public_download_count_legacy

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 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 AddDownloadCountInternalServerError

type AddDownloadCountInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

AddDownloadCountInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>772902</td><td>Unable to add content download: database error</td></tr></table>

func NewAddDownloadCountInternalServerError

func NewAddDownloadCountInternalServerError() *AddDownloadCountInternalServerError

NewAddDownloadCountInternalServerError creates a AddDownloadCountInternalServerError with default headers values

func (*AddDownloadCountInternalServerError) Error

func (*AddDownloadCountInternalServerError) GetPayload

func (*AddDownloadCountInternalServerError) ToJSONString

func (o *AddDownloadCountInternalServerError) ToJSONString() string

type AddDownloadCountNotFound

type AddDownloadCountNotFound struct {
	Payload *ugcclientmodels.ResponseError
}

AddDownloadCountNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>772903</td><td>Unable to add content download: content not found</td></tr></table>

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

func (o *AddDownloadCountNotFound) ToJSONString() string

type AddDownloadCountOK

type AddDownloadCountOK struct {
	Payload *ugcclientmodels.ModelsAddDownloadCountResponse
}

AddDownloadCountOK handles this case with default header values.

added download count to a content

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

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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

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) SetFlightId added in v0.63.0

func (o *AddDownloadCountParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*AddDownloadCountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add download count params

func (*AddDownloadCountParams) SetHTTPClientTransport

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.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewAddDownloadCountUnauthorized

func NewAddDownloadCountUnauthorized() *AddDownloadCountUnauthorized

NewAddDownloadCountUnauthorized creates a AddDownloadCountUnauthorized with default headers values

func (*AddDownloadCountUnauthorized) Error

func (*AddDownloadCountUnauthorized) GetPayload

func (*AddDownloadCountUnauthorized) ToJSONString

func (o *AddDownloadCountUnauthorized) ToJSONString() string

type Client

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

Client for public download count legacy API

func (*Client) AddDownloadCount deprecated

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

AddDownloadCount add unique download count to a content This endpoint can be used to count how many the ugc downloaded

func (*Client) AddDownloadCountShort

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

AddDownloadCountShort add unique download count to a content This endpoint can be used to count how many the ugc downloaded

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 legacy API client.

Jump to

Keyboard shortcuts

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