public_download_count

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 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 AddDownloadCountBadRequest

type AddDownloadCountBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

AddDownloadCountBadRequest handles this case with default header values.

Bad Request

func NewAddDownloadCountBadRequest

func NewAddDownloadCountBadRequest() *AddDownloadCountBadRequest

NewAddDownloadCountBadRequest creates a AddDownloadCountBadRequest with default headers values

func (*AddDownloadCountBadRequest) Error

func (*AddDownloadCountBadRequest) GetPayload

func (*AddDownloadCountBadRequest) ToJSONString added in v0.25.0

func (o *AddDownloadCountBadRequest) ToJSONString() string

type AddDownloadCountInternalServerError

type AddDownloadCountInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

AddDownloadCountInternalServerError handles this case with default header values.

Internal Server Error

func NewAddDownloadCountInternalServerError

func NewAddDownloadCountInternalServerError() *AddDownloadCountInternalServerError

NewAddDownloadCountInternalServerError creates a AddDownloadCountInternalServerError with default headers values

func (*AddDownloadCountInternalServerError) Error

func (*AddDownloadCountInternalServerError) GetPayload

func (*AddDownloadCountInternalServerError) ToJSONString added in v0.25.0

func (o *AddDownloadCountInternalServerError) ToJSONString() string

type AddDownloadCountNotFound

type AddDownloadCountNotFound struct {
	Payload *ugcclientmodels.ResponseError
}

AddDownloadCountNotFound handles this case with default header values.

Not Found

func NewAddDownloadCountNotFound

func NewAddDownloadCountNotFound() *AddDownloadCountNotFound

NewAddDownloadCountNotFound creates a AddDownloadCountNotFound with default headers values

func (*AddDownloadCountNotFound) Error

func (o *AddDownloadCountNotFound) Error() string

func (*AddDownloadCountNotFound) GetPayload

func (*AddDownloadCountNotFound) ToJSONString added in v0.25.0

func (o *AddDownloadCountNotFound) ToJSONString() string

type AddDownloadCountOK

type AddDownloadCountOK struct {
	Payload *ugcclientmodels.ModelsAddDownloadCountResponse
}

AddDownloadCountOK handles this case with default header values.

OK

func NewAddDownloadCountOK

func NewAddDownloadCountOK() *AddDownloadCountOK

NewAddDownloadCountOK creates a AddDownloadCountOK with default headers values

func (*AddDownloadCountOK) Error

func (o *AddDownloadCountOK) Error() string

func (*AddDownloadCountOK) GetPayload

func (*AddDownloadCountOK) ToJSONString added in v0.25.0

func (o *AddDownloadCountOK) ToJSONString() string

type AddDownloadCountParams

type AddDownloadCountParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*ContentID
	  content ID

	*/
	ContentID string
	/*Namespace
	  namespace of the game

	*/
	Namespace string

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

AddDownloadCountParams contains all the parameters to send to the API endpoint for the add download count operation typically these are written to a http.Request

func NewAddDownloadCountParams

func NewAddDownloadCountParams() *AddDownloadCountParams

NewAddDownloadCountParams creates a new AddDownloadCountParams object with the default values initialized.

func NewAddDownloadCountParamsWithContext

func NewAddDownloadCountParamsWithContext(ctx context.Context) *AddDownloadCountParams

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

func NewAddDownloadCountParamsWithHTTPClient

func NewAddDownloadCountParamsWithHTTPClient(client *http.Client) *AddDownloadCountParams

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

func NewAddDownloadCountParamsWithTimeout

func NewAddDownloadCountParamsWithTimeout(timeout time.Duration) *AddDownloadCountParams

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

func (*AddDownloadCountParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the add download count params

func (*AddDownloadCountParams) SetContentID

func (o *AddDownloadCountParams) SetContentID(contentID string)

SetContentID adds the contentId to the add download count params

func (*AddDownloadCountParams) SetContext

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

SetContext adds the context to the add download count params

func (*AddDownloadCountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add download count params

func (*AddDownloadCountParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the add download count params

func (*AddDownloadCountParams) SetNamespace

func (o *AddDownloadCountParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the add download count params

func (*AddDownloadCountParams) SetTimeout

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

SetTimeout adds the timeout to the add download count params

func (*AddDownloadCountParams) WithContentID

func (o *AddDownloadCountParams) WithContentID(contentID string) *AddDownloadCountParams

WithContentID adds the contentID to the add download count params

func (*AddDownloadCountParams) WithContext

WithContext adds the context to the add download count params

func (*AddDownloadCountParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add download count params

func (*AddDownloadCountParams) WithNamespace

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

WithNamespace adds the namespace to the add download count params

func (*AddDownloadCountParams) WithTimeout

WithTimeout adds the timeout to the add download count params

func (*AddDownloadCountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AddDownloadCountReader

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

AddDownloadCountReader is a Reader for the AddDownloadCount structure.

func (*AddDownloadCountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddDownloadCountUnauthorized

type AddDownloadCountUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

AddDownloadCountUnauthorized handles this case with default header values.

Unauthorized

func NewAddDownloadCountUnauthorized

func NewAddDownloadCountUnauthorized() *AddDownloadCountUnauthorized

NewAddDownloadCountUnauthorized creates a AddDownloadCountUnauthorized with default headers values

func (*AddDownloadCountUnauthorized) Error

func (*AddDownloadCountUnauthorized) GetPayload

func (*AddDownloadCountUnauthorized) ToJSONString added in v0.25.0

func (o *AddDownloadCountUnauthorized) ToJSONString() string

type Client

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

Client for public download count API

func (*Client) AddDownloadCount deprecated

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

AddDownloadCount add unique download count to a content Requires valid user token

func (*Client) AddDownloadCountShort

func (a *Client) AddDownloadCountShort(params *AddDownloadCountParams, authInfo runtime.ClientAuthInfoWriter) (*AddDownloadCountOK, error)

AddDownloadCountShort add unique download count to a content Requires valid user token

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 public download count API client.

Jump to

Keyboard shortcuts

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