public_reports

package
v0.59.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for public reports API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SubmitReport deprecated

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

SubmitReport submit a report User need to be authenticated to access this endpoint. 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.

User 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) SubmitReportShort

func (a *Client) SubmitReportShort(params *SubmitReportParams, authInfo runtime.ClientAuthInfoWriter) (*SubmitReportCreated, error)

SubmitReportShort submit a report User need to be authenticated to access this endpoint. 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.

User 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

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new public reports API client.

type SubmitReportBadRequest

type SubmitReportBadRequest struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

SubmitReportBadRequest handles this case with default header values.

func NewSubmitReportBadRequest

func NewSubmitReportBadRequest() *SubmitReportBadRequest

NewSubmitReportBadRequest creates a SubmitReportBadRequest with default headers values

func (*SubmitReportBadRequest) Error

func (o *SubmitReportBadRequest) Error() string

func (*SubmitReportBadRequest) GetPayload

func (*SubmitReportBadRequest) ToJSONString

func (o *SubmitReportBadRequest) ToJSONString() string

type SubmitReportConflict

type SubmitReportConflict struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

SubmitReportConflict handles this case with default header values.

func NewSubmitReportConflict

func NewSubmitReportConflict() *SubmitReportConflict

NewSubmitReportConflict creates a SubmitReportConflict with default headers values

func (*SubmitReportConflict) Error

func (o *SubmitReportConflict) Error() string

func (*SubmitReportConflict) GetPayload

func (*SubmitReportConflict) ToJSONString

func (o *SubmitReportConflict) ToJSONString() string

type SubmitReportCreated

type SubmitReportCreated struct {
	Payload *reportingclientmodels.RestapiSubmitReportResponse
}

SubmitReportCreated handles this case with default header values.

func NewSubmitReportCreated

func NewSubmitReportCreated() *SubmitReportCreated

NewSubmitReportCreated creates a SubmitReportCreated with default headers values

func (*SubmitReportCreated) Error

func (o *SubmitReportCreated) Error() string

func (*SubmitReportCreated) GetPayload

func (*SubmitReportCreated) ToJSONString

func (o *SubmitReportCreated) ToJSONString() string

type SubmitReportInternalServerError

type SubmitReportInternalServerError struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

SubmitReportInternalServerError handles this case with default header values.

func NewSubmitReportInternalServerError

func NewSubmitReportInternalServerError() *SubmitReportInternalServerError

NewSubmitReportInternalServerError creates a SubmitReportInternalServerError with default headers values

func (*SubmitReportInternalServerError) Error

func (*SubmitReportInternalServerError) GetPayload

func (*SubmitReportInternalServerError) ToJSONString

func (o *SubmitReportInternalServerError) ToJSONString() string

type SubmitReportParams

type SubmitReportParams 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
}

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

func NewSubmitReportParams

func NewSubmitReportParams() *SubmitReportParams

NewSubmitReportParams creates a new SubmitReportParams object with the default values initialized.

func NewSubmitReportParamsWithContext

func NewSubmitReportParamsWithContext(ctx context.Context) *SubmitReportParams

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

func NewSubmitReportParamsWithHTTPClient

func NewSubmitReportParamsWithHTTPClient(client *http.Client) *SubmitReportParams

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

func NewSubmitReportParamsWithTimeout

func NewSubmitReportParamsWithTimeout(timeout time.Duration) *SubmitReportParams

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

func (*SubmitReportParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the submit report params

func (*SubmitReportParams) SetBody

SetBody adds the body to the submit report params

func (*SubmitReportParams) SetContext

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

SetContext adds the context to the submit report params

func (*SubmitReportParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the submit report params

func (*SubmitReportParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the submit report params

func (*SubmitReportParams) SetNamespace

func (o *SubmitReportParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the submit report params

func (*SubmitReportParams) SetTimeout

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

SetTimeout adds the timeout to the submit report params

func (*SubmitReportParams) WithBody

WithBody adds the body to the submit report params

func (*SubmitReportParams) WithContext

WithContext adds the context to the submit report params

func (*SubmitReportParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the submit report params

func (*SubmitReportParams) WithNamespace

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

WithNamespace adds the namespace to the submit report params

func (*SubmitReportParams) WithTimeout

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

WithTimeout adds the timeout to the submit report params

func (*SubmitReportParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SubmitReportReader

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

SubmitReportReader is a Reader for the SubmitReport structure.

func (*SubmitReportReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubmitReportTooManyRequests

type SubmitReportTooManyRequests struct {
	Payload *reportingclientmodels.RestapiErrorResponse
}

SubmitReportTooManyRequests handles this case with default header values.

func NewSubmitReportTooManyRequests

func NewSubmitReportTooManyRequests() *SubmitReportTooManyRequests

NewSubmitReportTooManyRequests creates a SubmitReportTooManyRequests with default headers values

func (*SubmitReportTooManyRequests) Error

func (*SubmitReportTooManyRequests) GetPayload

func (*SubmitReportTooManyRequests) ToJSONString

func (o *SubmitReportTooManyRequests) ToJSONString() string

Jump to

Keyboard shortcuts

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