public_download_count_v2

package
v0.1.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 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 Client

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

Client for public download count v2 API

func (*Client) PublicAddDownloadCountV2 deprecated

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

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

func (*Client) PublicAddDownloadCountV2Short

func (a *Client) PublicAddDownloadCountV2Short(params *PublicAddDownloadCountV2Params, authInfo runtime.ClientAuthInfoWriter) (*PublicAddDownloadCountV2OK, error)

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

func (*Client) PublicListContentDownloaderV2 deprecated

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

PublicListContentDownloaderV2 list content downloader This endpoint will only display the list of users who performed add download count from v2 endpoint.

func (*Client) PublicListContentDownloaderV2Short

func (a *Client) PublicListContentDownloaderV2Short(params *PublicListContentDownloaderV2Params, authInfo runtime.ClientAuthInfoWriter) (*PublicListContentDownloaderV2OK, error)

PublicListContentDownloaderV2Short list content downloader This endpoint will only display the list of users who performed add download count from v2 endpoint.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type PublicAddDownloadCountV2InternalServerError

type PublicAddDownloadCountV2InternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

PublicAddDownloadCountV2InternalServerError 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 NewPublicAddDownloadCountV2InternalServerError

func NewPublicAddDownloadCountV2InternalServerError() *PublicAddDownloadCountV2InternalServerError

NewPublicAddDownloadCountV2InternalServerError creates a PublicAddDownloadCountV2InternalServerError with default headers values

func (*PublicAddDownloadCountV2InternalServerError) Error

func (*PublicAddDownloadCountV2InternalServerError) GetPayload

func (*PublicAddDownloadCountV2InternalServerError) ToJSONString

type PublicAddDownloadCountV2NotFound

type PublicAddDownloadCountV2NotFound struct {
	Payload *ugcclientmodels.ResponseError
}

PublicAddDownloadCountV2NotFound 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 NewPublicAddDownloadCountV2NotFound

func NewPublicAddDownloadCountV2NotFound() *PublicAddDownloadCountV2NotFound

NewPublicAddDownloadCountV2NotFound creates a PublicAddDownloadCountV2NotFound with default headers values

func (*PublicAddDownloadCountV2NotFound) Error

func (*PublicAddDownloadCountV2NotFound) GetPayload

func (*PublicAddDownloadCountV2NotFound) ToJSONString

func (o *PublicAddDownloadCountV2NotFound) ToJSONString() string

type PublicAddDownloadCountV2OK

type PublicAddDownloadCountV2OK struct {
	Payload *ugcclientmodels.ModelsAddDownloadCountResponse
}

PublicAddDownloadCountV2OK handles this case with default header values.

Added download count to a content

func NewPublicAddDownloadCountV2OK

func NewPublicAddDownloadCountV2OK() *PublicAddDownloadCountV2OK

NewPublicAddDownloadCountV2OK creates a PublicAddDownloadCountV2OK with default headers values

func (*PublicAddDownloadCountV2OK) Error

func (*PublicAddDownloadCountV2OK) GetPayload

func (*PublicAddDownloadCountV2OK) ToJSONString

func (o *PublicAddDownloadCountV2OK) ToJSONString() string

type PublicAddDownloadCountV2Params

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

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

func NewPublicAddDownloadCountV2Params

func NewPublicAddDownloadCountV2Params() *PublicAddDownloadCountV2Params

NewPublicAddDownloadCountV2Params creates a new PublicAddDownloadCountV2Params object with the default values initialized.

func NewPublicAddDownloadCountV2ParamsWithContext

func NewPublicAddDownloadCountV2ParamsWithContext(ctx context.Context) *PublicAddDownloadCountV2Params

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

func NewPublicAddDownloadCountV2ParamsWithHTTPClient

func NewPublicAddDownloadCountV2ParamsWithHTTPClient(client *http.Client) *PublicAddDownloadCountV2Params

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

func NewPublicAddDownloadCountV2ParamsWithTimeout

func NewPublicAddDownloadCountV2ParamsWithTimeout(timeout time.Duration) *PublicAddDownloadCountV2Params

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

func (*PublicAddDownloadCountV2Params) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the public add download count v2 params

func (*PublicAddDownloadCountV2Params) SetContentID

func (o *PublicAddDownloadCountV2Params) SetContentID(contentID string)

SetContentID adds the contentId to the public add download count v2 params

func (*PublicAddDownloadCountV2Params) SetContext

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

SetContext adds the context to the public add download count v2 params

func (*PublicAddDownloadCountV2Params) SetFlightId

func (o *PublicAddDownloadCountV2Params) SetFlightId(flightId string)

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

func (*PublicAddDownloadCountV2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public add download count v2 params

func (*PublicAddDownloadCountV2Params) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the public add download count v2 params

func (*PublicAddDownloadCountV2Params) SetNamespace

func (o *PublicAddDownloadCountV2Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the public add download count v2 params

func (*PublicAddDownloadCountV2Params) SetTimeout

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

SetTimeout adds the timeout to the public add download count v2 params

func (*PublicAddDownloadCountV2Params) WithContentID

WithContentID adds the contentID to the public add download count v2 params

func (*PublicAddDownloadCountV2Params) WithContext

WithContext adds the context to the public add download count v2 params

func (*PublicAddDownloadCountV2Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public add download count v2 params

func (*PublicAddDownloadCountV2Params) WithNamespace

WithNamespace adds the namespace to the public add download count v2 params

func (*PublicAddDownloadCountV2Params) WithTimeout

WithTimeout adds the timeout to the public add download count v2 params

func (*PublicAddDownloadCountV2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicAddDownloadCountV2Reader

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

PublicAddDownloadCountV2Reader is a Reader for the PublicAddDownloadCountV2 structure.

func (*PublicAddDownloadCountV2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicAddDownloadCountV2TooManyRequests

type PublicAddDownloadCountV2TooManyRequests struct {
	Payload *ugcclientmodels.ResponseError
}

PublicAddDownloadCountV2TooManyRequests handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>772906</td><td>Unable to add content download: too many request</td></tr></table>

func NewPublicAddDownloadCountV2TooManyRequests

func NewPublicAddDownloadCountV2TooManyRequests() *PublicAddDownloadCountV2TooManyRequests

NewPublicAddDownloadCountV2TooManyRequests creates a PublicAddDownloadCountV2TooManyRequests with default headers values

func (*PublicAddDownloadCountV2TooManyRequests) Error

func (*PublicAddDownloadCountV2TooManyRequests) GetPayload

func (*PublicAddDownloadCountV2TooManyRequests) ToJSONString

type PublicAddDownloadCountV2Unauthorized

type PublicAddDownloadCountV2Unauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

PublicAddDownloadCountV2Unauthorized 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 NewPublicAddDownloadCountV2Unauthorized

func NewPublicAddDownloadCountV2Unauthorized() *PublicAddDownloadCountV2Unauthorized

NewPublicAddDownloadCountV2Unauthorized creates a PublicAddDownloadCountV2Unauthorized with default headers values

func (*PublicAddDownloadCountV2Unauthorized) Error

func (*PublicAddDownloadCountV2Unauthorized) GetPayload

func (*PublicAddDownloadCountV2Unauthorized) ToJSONString

func (o *PublicAddDownloadCountV2Unauthorized) ToJSONString() string

type PublicListContentDownloaderV2BadRequest

type PublicListContentDownloaderV2BadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

PublicListContentDownloaderV2BadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>770800</td><td>invalid paging parameter/max allowed number of tags is {maxTags}/invalid official parameter/invalid ishidden parameter</td></tr></table>

func NewPublicListContentDownloaderV2BadRequest

func NewPublicListContentDownloaderV2BadRequest() *PublicListContentDownloaderV2BadRequest

NewPublicListContentDownloaderV2BadRequest creates a PublicListContentDownloaderV2BadRequest with default headers values

func (*PublicListContentDownloaderV2BadRequest) Error

func (*PublicListContentDownloaderV2BadRequest) GetPayload

func (*PublicListContentDownloaderV2BadRequest) ToJSONString

type PublicListContentDownloaderV2InternalServerError

type PublicListContentDownloaderV2InternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

PublicListContentDownloaderV2InternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>772904</td><td>Unable to list content downloader: database error</td></tr></table>

func NewPublicListContentDownloaderV2InternalServerError

func NewPublicListContentDownloaderV2InternalServerError() *PublicListContentDownloaderV2InternalServerError

NewPublicListContentDownloaderV2InternalServerError creates a PublicListContentDownloaderV2InternalServerError with default headers values

func (*PublicListContentDownloaderV2InternalServerError) Error

func (*PublicListContentDownloaderV2InternalServerError) GetPayload

func (*PublicListContentDownloaderV2InternalServerError) ToJSONString

type PublicListContentDownloaderV2OK

type PublicListContentDownloaderV2OK struct {
	Payload *ugcclientmodels.ModelsPaginatedContentDownloaderResponse
}

PublicListContentDownloaderV2OK handles this case with default header values.

List content downloader

func NewPublicListContentDownloaderV2OK

func NewPublicListContentDownloaderV2OK() *PublicListContentDownloaderV2OK

NewPublicListContentDownloaderV2OK creates a PublicListContentDownloaderV2OK with default headers values

func (*PublicListContentDownloaderV2OK) Error

func (*PublicListContentDownloaderV2OK) GetPayload

func (*PublicListContentDownloaderV2OK) ToJSONString

func (o *PublicListContentDownloaderV2OK) ToJSONString() string

type PublicListContentDownloaderV2Params

type PublicListContentDownloaderV2Params struct {

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

	*/
	ContentID string
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*Limit
	  number of content per page

	*/
	Limit *int64
	/*Offset
	  the offset number to retrieve

	*/
	Offset *int64
	/*SortBy
	    sort the result.

	available value:
	- *createdTime*
	- *createdTime:desc*
	- *createdTime:asc*

	*/
	SortBy *string
	/*UserID
	  user ID

	*/
	UserID *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
}

PublicListContentDownloaderV2Params contains all the parameters to send to the API endpoint for the public list content downloader v2 operation typically these are written to a http.Request

func NewPublicListContentDownloaderV2Params

func NewPublicListContentDownloaderV2Params() *PublicListContentDownloaderV2Params

NewPublicListContentDownloaderV2Params creates a new PublicListContentDownloaderV2Params object with the default values initialized.

func NewPublicListContentDownloaderV2ParamsWithContext

func NewPublicListContentDownloaderV2ParamsWithContext(ctx context.Context) *PublicListContentDownloaderV2Params

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

func NewPublicListContentDownloaderV2ParamsWithHTTPClient

func NewPublicListContentDownloaderV2ParamsWithHTTPClient(client *http.Client) *PublicListContentDownloaderV2Params

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

func NewPublicListContentDownloaderV2ParamsWithTimeout

func NewPublicListContentDownloaderV2ParamsWithTimeout(timeout time.Duration) *PublicListContentDownloaderV2Params

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

func (*PublicListContentDownloaderV2Params) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) SetContentID

func (o *PublicListContentDownloaderV2Params) SetContentID(contentID string)

SetContentID adds the contentId to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) SetContext

SetContext adds the context to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) SetFlightId

func (o *PublicListContentDownloaderV2Params) SetFlightId(flightId string)

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

func (*PublicListContentDownloaderV2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) SetLimit

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

SetLimit adds the limit to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) SetNamespace

func (o *PublicListContentDownloaderV2Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) SetOffset

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

SetOffset adds the offset to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) SetSortBy

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

SetSortBy adds the sortBy to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) SetTimeout

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

SetTimeout adds the timeout to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) SetUserID

func (o *PublicListContentDownloaderV2Params) SetUserID(userID *string)

SetUserID adds the userId to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) WithContentID

WithContentID adds the contentID to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) WithContext

WithContext adds the context to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) WithLimit

WithLimit adds the limit to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) WithNamespace

WithNamespace adds the namespace to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) WithOffset

WithOffset adds the offset to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) WithSortBy

WithSortBy adds the sortBy to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) WithTimeout

WithTimeout adds the timeout to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) WithUserID

WithUserID adds the userID to the public list content downloader v2 params

func (*PublicListContentDownloaderV2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicListContentDownloaderV2Reader

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

PublicListContentDownloaderV2Reader is a Reader for the PublicListContentDownloaderV2 structure.

func (*PublicListContentDownloaderV2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicListContentDownloaderV2Unauthorized

type PublicListContentDownloaderV2Unauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

PublicListContentDownloaderV2Unauthorized 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 NewPublicListContentDownloaderV2Unauthorized

func NewPublicListContentDownloaderV2Unauthorized() *PublicListContentDownloaderV2Unauthorized

NewPublicListContentDownloaderV2Unauthorized creates a PublicListContentDownloaderV2Unauthorized with default headers values

func (*PublicListContentDownloaderV2Unauthorized) Error

func (*PublicListContentDownloaderV2Unauthorized) GetPayload

func (*PublicListContentDownloaderV2Unauthorized) ToJSONString

Jump to

Keyboard shortcuts

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