admin_reports

package
v0.59.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminSubmitReportBadRequest

type AdminSubmitReportBadRequest struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

AdminSubmitReportBadRequest handles this case with default header values.

func NewAdminSubmitReportBadRequest

func NewAdminSubmitReportBadRequest() *AdminSubmitReportBadRequest

NewAdminSubmitReportBadRequest creates a AdminSubmitReportBadRequest with default headers values

func (*AdminSubmitReportBadRequest) Error

func (*AdminSubmitReportBadRequest) GetPayload

func (*AdminSubmitReportBadRequest) ToJSONString

func (o *AdminSubmitReportBadRequest) ToJSONString() string

type AdminSubmitReportConflict

type AdminSubmitReportConflict struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

AdminSubmitReportConflict handles this case with default header values.

func NewAdminSubmitReportConflict

func NewAdminSubmitReportConflict() *AdminSubmitReportConflict

NewAdminSubmitReportConflict creates a AdminSubmitReportConflict with default headers values

func (*AdminSubmitReportConflict) Error

func (o *AdminSubmitReportConflict) Error() string

func (*AdminSubmitReportConflict) GetPayload

func (*AdminSubmitReportConflict) ToJSONString

func (o *AdminSubmitReportConflict) ToJSONString() string

type AdminSubmitReportCreated

type AdminSubmitReportCreated struct {
	Payload *reportingclientmodels.RestapiSubmitReportResponse
}

AdminSubmitReportCreated handles this case with default header values.

func NewAdminSubmitReportCreated

func NewAdminSubmitReportCreated() *AdminSubmitReportCreated

NewAdminSubmitReportCreated creates a AdminSubmitReportCreated with default headers values

func (*AdminSubmitReportCreated) Error

func (o *AdminSubmitReportCreated) Error() string

func (*AdminSubmitReportCreated) GetPayload

func (*AdminSubmitReportCreated) ToJSONString

func (o *AdminSubmitReportCreated) ToJSONString() string

type AdminSubmitReportInternalServerError

type AdminSubmitReportInternalServerError struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

AdminSubmitReportInternalServerError handles this case with default header values.

func NewAdminSubmitReportInternalServerError

func NewAdminSubmitReportInternalServerError() *AdminSubmitReportInternalServerError

NewAdminSubmitReportInternalServerError creates a AdminSubmitReportInternalServerError with default headers values

func (*AdminSubmitReportInternalServerError) Error

func (*AdminSubmitReportInternalServerError) GetPayload

func (*AdminSubmitReportInternalServerError) ToJSONString

func (o *AdminSubmitReportInternalServerError) ToJSONString() string

type AdminSubmitReportParams

type AdminSubmitReportParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *reportingclientmodels.RestapiSubmitReportRequest
	/*Namespace*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

AdminSubmitReportParams contains all the parameters to send to the API endpoint for the admin submit report operation typically these are written to a http.Request

func NewAdminSubmitReportParams

func NewAdminSubmitReportParams() *AdminSubmitReportParams

NewAdminSubmitReportParams creates a new AdminSubmitReportParams object with the default values initialized.

func NewAdminSubmitReportParamsWithContext

func NewAdminSubmitReportParamsWithContext(ctx context.Context) *AdminSubmitReportParams

NewAdminSubmitReportParamsWithContext creates a new AdminSubmitReportParams object with the default values initialized, and the ability to set a context for a request

func NewAdminSubmitReportParamsWithHTTPClient

func NewAdminSubmitReportParamsWithHTTPClient(client *http.Client) *AdminSubmitReportParams

NewAdminSubmitReportParamsWithHTTPClient creates a new AdminSubmitReportParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAdminSubmitReportParamsWithTimeout

func NewAdminSubmitReportParamsWithTimeout(timeout time.Duration) *AdminSubmitReportParams

NewAdminSubmitReportParamsWithTimeout creates a new AdminSubmitReportParams object with the default values initialized, and the ability to set a timeout on a request

func (*AdminSubmitReportParams) SetAuthInfoWriter

func (o *AdminSubmitReportParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the admin submit report params

func (*AdminSubmitReportParams) SetBody

SetBody adds the body to the admin submit report params

func (*AdminSubmitReportParams) SetContext

func (o *AdminSubmitReportParams) SetContext(ctx context.Context)

SetContext adds the context to the admin submit report params

func (*AdminSubmitReportParams) SetHTTPClient

func (o *AdminSubmitReportParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the admin submit report params

func (*AdminSubmitReportParams) SetHTTPClientTransport

func (o *AdminSubmitReportParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the admin submit report params

func (*AdminSubmitReportParams) SetNamespace

func (o *AdminSubmitReportParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin submit report params

func (*AdminSubmitReportParams) SetTimeout

func (o *AdminSubmitReportParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the admin submit report params

func (*AdminSubmitReportParams) WithBody

WithBody adds the body to the admin submit report params

func (*AdminSubmitReportParams) WithContext

WithContext adds the context to the admin submit report params

func (*AdminSubmitReportParams) WithHTTPClient

func (o *AdminSubmitReportParams) WithHTTPClient(client *http.Client) *AdminSubmitReportParams

WithHTTPClient adds the HTTPClient to the admin submit report params

func (*AdminSubmitReportParams) WithNamespace

func (o *AdminSubmitReportParams) WithNamespace(namespace string) *AdminSubmitReportParams

WithNamespace adds the namespace to the admin submit report params

func (*AdminSubmitReportParams) WithTimeout

WithTimeout adds the timeout to the admin submit report params

func (*AdminSubmitReportParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminSubmitReportReader

type AdminSubmitReportReader struct {
	// contains filtered or unexported fields
}

AdminSubmitReportReader is a Reader for the AdminSubmitReport structure.

func (*AdminSubmitReportReader) ReadResponse

func (o *AdminSubmitReportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for admin reports API

func (*Client) AdminSubmitReport deprecated

Deprecated: 2022-08-10 - Use AdminSubmitReportShort instead.

AdminSubmitReport submit a report by admin Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [CREATE] Submit a report and will return ticket for reported object. New ticket will be created if no OPEN ticket present for reported object (based by objectId and objectType) in a namespace.

Admin can only submit report once for each different user / object reported in the same OPEN ticket. Reporting the same user / object in the same OPEN ticket will return HTTP code 409 (conflict).

Fill the 'reason' field with a 'reason title' Supported category:

  • UGC
  • USER
  • CHAT
  • EXTENSION

func (*Client) AdminSubmitReportShort

func (a *Client) AdminSubmitReportShort(params *AdminSubmitReportParams, authInfo runtime.ClientAuthInfoWriter) (*AdminSubmitReportCreated, error)

AdminSubmitReportShort submit a report by admin Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [CREATE] Submit a report and will return ticket for reported object. New ticket will be created if no OPEN ticket present for reported object (based by objectId and objectType) in a namespace.

Admin can only submit report once for each different user / object reported in the same OPEN ticket. Reporting the same user / object in the same OPEN ticket will return HTTP code 409 (conflict).

Fill the 'reason' field with a 'reason title' Supported category:

  • UGC
  • USER
  • CHAT
  • EXTENSION

func (*Client) ListReports deprecated

Deprecated: 2022-08-10 - Use ListReportsShort instead.

ListReports list reports Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [READ] Reports list can be ordered by: - createdAt - updatedAt

func (*Client) ListReportsShort

func (a *Client) ListReportsShort(params *ListReportsParams, authInfo runtime.ClientAuthInfoWriter) (*ListReportsOK, error)

ListReportsShort list reports Required permission: ADMIN:NAMESPACE:{namespace}:TICKET [READ] Reports list can be ordered by: - createdAt - updatedAt

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new admin reports API client.

type ListReportsInternalServerError

type ListReportsInternalServerError struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

ListReportsInternalServerError handles this case with default header values.

func NewListReportsInternalServerError

func NewListReportsInternalServerError() *ListReportsInternalServerError

NewListReportsInternalServerError creates a ListReportsInternalServerError with default headers values

func (*ListReportsInternalServerError) Error

func (*ListReportsInternalServerError) GetPayload

func (*ListReportsInternalServerError) ToJSONString

func (o *ListReportsInternalServerError) ToJSONString() string

type ListReportsOK

type ListReportsOK struct {
	Payload *reportingclientmodels.RestapiReportListResponse
}

ListReportsOK handles this case with default header values.

func NewListReportsOK

func NewListReportsOK() *ListReportsOK

NewListReportsOK creates a ListReportsOK with default headers values

func (*ListReportsOK) Error

func (o *ListReportsOK) Error() string

func (*ListReportsOK) GetPayload

func (*ListReportsOK) ToJSONString

func (o *ListReportsOK) ToJSONString() string

type ListReportsParams

type ListReportsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*Category
	  filter reports by category

	*/
	Category *string
	/*Limit
	  number of data requested (default 25)

	*/
	Limit *int64
	/*Offset
	  number of data offset (default 0)

	*/
	Offset *int64
	/*ReportedUserID
	  filter reports by reportedUserId

	*/
	ReportedUserID *string
	/*SortBy
	  Only support one level of sortBy; default createdAt:desc

	*/
	SortBy *string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

ListReportsParams contains all the parameters to send to the API endpoint for the list reports operation typically these are written to a http.Request

func NewListReportsParams

func NewListReportsParams() *ListReportsParams

NewListReportsParams creates a new ListReportsParams object with the default values initialized.

func NewListReportsParamsWithContext

func NewListReportsParamsWithContext(ctx context.Context) *ListReportsParams

NewListReportsParamsWithContext creates a new ListReportsParams object with the default values initialized, and the ability to set a context for a request

func NewListReportsParamsWithHTTPClient

func NewListReportsParamsWithHTTPClient(client *http.Client) *ListReportsParams

NewListReportsParamsWithHTTPClient creates a new ListReportsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListReportsParamsWithTimeout

func NewListReportsParamsWithTimeout(timeout time.Duration) *ListReportsParams

NewListReportsParamsWithTimeout creates a new ListReportsParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListReportsParams) SetAuthInfoWriter

func (o *ListReportsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the list reports params

func (*ListReportsParams) SetCategory

func (o *ListReportsParams) SetCategory(category *string)

SetCategory adds the category to the list reports params

func (*ListReportsParams) SetContext

func (o *ListReportsParams) SetContext(ctx context.Context)

SetContext adds the context to the list reports params

func (*ListReportsParams) SetHTTPClient

func (o *ListReportsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list reports params

func (*ListReportsParams) SetHTTPClientTransport

func (o *ListReportsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the list reports params

func (*ListReportsParams) SetLimit

func (o *ListReportsParams) SetLimit(limit *int64)

SetLimit adds the limit to the list reports params

func (*ListReportsParams) SetNamespace

func (o *ListReportsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the list reports params

func (*ListReportsParams) SetOffset

func (o *ListReportsParams) SetOffset(offset *int64)

SetOffset adds the offset to the list reports params

func (*ListReportsParams) SetReportedUserID

func (o *ListReportsParams) SetReportedUserID(reportedUserID *string)

SetReportedUserID adds the reportedUserId to the list reports params

func (*ListReportsParams) SetSortBy

func (o *ListReportsParams) SetSortBy(sortBy *string)

SetSortBy adds the sortBy to the list reports params

func (*ListReportsParams) SetTimeout

func (o *ListReportsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list reports params

func (*ListReportsParams) WithCategory

func (o *ListReportsParams) WithCategory(category *string) *ListReportsParams

WithCategory adds the category to the list reports params

func (*ListReportsParams) WithContext

func (o *ListReportsParams) WithContext(ctx context.Context) *ListReportsParams

WithContext adds the context to the list reports params

func (*ListReportsParams) WithHTTPClient

func (o *ListReportsParams) WithHTTPClient(client *http.Client) *ListReportsParams

WithHTTPClient adds the HTTPClient to the list reports params

func (*ListReportsParams) WithLimit

func (o *ListReportsParams) WithLimit(limit *int64) *ListReportsParams

WithLimit adds the limit to the list reports params

func (*ListReportsParams) WithNamespace

func (o *ListReportsParams) WithNamespace(namespace string) *ListReportsParams

WithNamespace adds the namespace to the list reports params

func (*ListReportsParams) WithOffset

func (o *ListReportsParams) WithOffset(offset *int64) *ListReportsParams

WithOffset adds the offset to the list reports params

func (*ListReportsParams) WithReportedUserID

func (o *ListReportsParams) WithReportedUserID(reportedUserID *string) *ListReportsParams

WithReportedUserID adds the reportedUserID to the list reports params

func (*ListReportsParams) WithSortBy

func (o *ListReportsParams) WithSortBy(sortBy *string) *ListReportsParams

WithSortBy adds the sortBy to the list reports params

func (*ListReportsParams) WithTimeout

func (o *ListReportsParams) WithTimeout(timeout time.Duration) *ListReportsParams

WithTimeout adds the timeout to the list reports params

func (*ListReportsParams) WriteToRequest

func (o *ListReportsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListReportsReader

type ListReportsReader struct {
	// contains filtered or unexported fields
}

ListReportsReader is a Reader for the ListReports structure.

func (*ListReportsReader) ReadResponse

func (o *ListReportsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL