Documentation ¶
Index ¶
- type AdminSubmitReportBadRequest
- type AdminSubmitReportConflict
- type AdminSubmitReportCreated
- type AdminSubmitReportInternalServerError
- type AdminSubmitReportParams
- func NewAdminSubmitReportParams() *AdminSubmitReportParams
- func NewAdminSubmitReportParamsWithContext(ctx context.Context) *AdminSubmitReportParams
- func NewAdminSubmitReportParamsWithHTTPClient(client *http.Client) *AdminSubmitReportParams
- func NewAdminSubmitReportParamsWithTimeout(timeout time.Duration) *AdminSubmitReportParams
- func (o *AdminSubmitReportParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *AdminSubmitReportParams) SetBody(body *reportingclientmodels.RestapiSubmitReportRequest)
- func (o *AdminSubmitReportParams) SetContext(ctx context.Context)
- func (o *AdminSubmitReportParams) SetHTTPClient(client *http.Client)
- func (o *AdminSubmitReportParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *AdminSubmitReportParams) SetNamespace(namespace string)
- func (o *AdminSubmitReportParams) SetTimeout(timeout time.Duration)
- func (o *AdminSubmitReportParams) WithBody(body *reportingclientmodels.RestapiSubmitReportRequest) *AdminSubmitReportParams
- func (o *AdminSubmitReportParams) WithContext(ctx context.Context) *AdminSubmitReportParams
- func (o *AdminSubmitReportParams) WithHTTPClient(client *http.Client) *AdminSubmitReportParams
- func (o *AdminSubmitReportParams) WithNamespace(namespace string) *AdminSubmitReportParams
- func (o *AdminSubmitReportParams) WithTimeout(timeout time.Duration) *AdminSubmitReportParams
- func (o *AdminSubmitReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AdminSubmitReportReader
- type Client
- func (a *Client) AdminSubmitReport(params *AdminSubmitReportParams, authInfo runtime.ClientAuthInfoWriter) (*AdminSubmitReportCreated, *AdminSubmitReportBadRequest, ...)deprecated
- func (a *Client) AdminSubmitReportShort(params *AdminSubmitReportParams, authInfo runtime.ClientAuthInfoWriter) (*AdminSubmitReportCreated, error)
- func (a *Client) ListReports(params *ListReportsParams, authInfo runtime.ClientAuthInfoWriter) (*ListReportsOK, *ListReportsInternalServerError, error)deprecated
- func (a *Client) ListReportsShort(params *ListReportsParams, authInfo runtime.ClientAuthInfoWriter) (*ListReportsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type ListReportsInternalServerError
- type ListReportsOK
- type ListReportsParams
- func (o *ListReportsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *ListReportsParams) SetCategory(category *string)
- func (o *ListReportsParams) SetContext(ctx context.Context)
- func (o *ListReportsParams) SetHTTPClient(client *http.Client)
- func (o *ListReportsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *ListReportsParams) SetLimit(limit *int64)
- func (o *ListReportsParams) SetNamespace(namespace string)
- func (o *ListReportsParams) SetOffset(offset *int64)
- func (o *ListReportsParams) SetReportedUserID(reportedUserID *string)
- func (o *ListReportsParams) SetSortBy(sortBy *string)
- func (o *ListReportsParams) SetTimeout(timeout time.Duration)
- func (o *ListReportsParams) WithCategory(category *string) *ListReportsParams
- func (o *ListReportsParams) WithContext(ctx context.Context) *ListReportsParams
- func (o *ListReportsParams) WithHTTPClient(client *http.Client) *ListReportsParams
- func (o *ListReportsParams) WithLimit(limit *int64) *ListReportsParams
- func (o *ListReportsParams) WithNamespace(namespace string) *ListReportsParams
- func (o *ListReportsParams) WithOffset(offset *int64) *ListReportsParams
- func (o *ListReportsParams) WithReportedUserID(reportedUserID *string) *ListReportsParams
- func (o *ListReportsParams) WithSortBy(sortBy *string) *ListReportsParams
- func (o *ListReportsParams) WithTimeout(timeout time.Duration) *ListReportsParams
- func (o *ListReportsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListReportsReader
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 (o *AdminSubmitReportBadRequest) Error() string
func (*AdminSubmitReportBadRequest) GetPayload ¶
func (o *AdminSubmitReportBadRequest) GetPayload() *reportingclientmodels.RestapiErrorResponse
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 (o *AdminSubmitReportConflict) GetPayload() *reportingclientmodels.RestapiErrorResponse
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 (o *AdminSubmitReportCreated) GetPayload() *reportingclientmodels.RestapiSubmitReportResponse
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 (o *AdminSubmitReportInternalServerError) Error() string
func (*AdminSubmitReportInternalServerError) GetPayload ¶
func (o *AdminSubmitReportInternalServerError) GetPayload() *reportingclientmodels.RestapiErrorResponse
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 ¶
func (o *AdminSubmitReportParams) SetBody(body *reportingclientmodels.RestapiSubmitReportRequest)
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 ¶
func (o *AdminSubmitReportParams) WithBody(body *reportingclientmodels.RestapiSubmitReportRequest) *AdminSubmitReportParams
WithBody adds the body to the admin submit report params
func (*AdminSubmitReportParams) WithContext ¶
func (o *AdminSubmitReportParams) WithContext(ctx context.Context) *AdminSubmitReportParams
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 ¶
func (o *AdminSubmitReportParams) WithTimeout(timeout time.Duration) *AdminSubmitReportParams
WithTimeout adds the timeout to the admin submit report params
func (*AdminSubmitReportParams) WriteToRequest ¶
func (o *AdminSubmitReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
func (a *Client) AdminSubmitReport(params *AdminSubmitReportParams, authInfo runtime.ClientAuthInfoWriter) (*AdminSubmitReportCreated, *AdminSubmitReportBadRequest, *AdminSubmitReportConflict, *AdminSubmitReportInternalServerError, error)
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
func (a *Client) ListReports(params *ListReportsParams, authInfo runtime.ClientAuthInfoWriter) (*ListReportsOK, *ListReportsInternalServerError, error)
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 ¶
type ClientService interface { ListReports(params *ListReportsParams, authInfo runtime.ClientAuthInfoWriter) (*ListReportsOK, *ListReportsInternalServerError, error) ListReportsShort(params *ListReportsParams, authInfo runtime.ClientAuthInfoWriter) (*ListReportsOK, error) AdminSubmitReport(params *AdminSubmitReportParams, authInfo runtime.ClientAuthInfoWriter) (*AdminSubmitReportCreated, *AdminSubmitReportBadRequest, *AdminSubmitReportConflict, *AdminSubmitReportInternalServerError, error) AdminSubmitReportShort(params *AdminSubmitReportParams, authInfo runtime.ClientAuthInfoWriter) (*AdminSubmitReportCreated, error) SetTransport(transport runtime.ClientTransport) }
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 (o *ListReportsInternalServerError) Error() string
func (*ListReportsInternalServerError) GetPayload ¶
func (o *ListReportsInternalServerError) GetPayload() *reportingclientmodels.RestapiErrorResponse
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 (o *ListReportsOK) GetPayload() *reportingclientmodels.RestapiReportListResponse
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.