Documentation ¶
Index ¶
- type AddDownloadCountInternalServerError
- type AddDownloadCountNotFound
- type AddDownloadCountOK
- type AddDownloadCountParams
- func NewAddDownloadCountParams() *AddDownloadCountParams
- func NewAddDownloadCountParamsWithContext(ctx context.Context) *AddDownloadCountParams
- func NewAddDownloadCountParamsWithHTTPClient(client *http.Client) *AddDownloadCountParams
- func NewAddDownloadCountParamsWithTimeout(timeout time.Duration) *AddDownloadCountParams
- func (o *AddDownloadCountParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *AddDownloadCountParams) SetContentID(contentID string)
- func (o *AddDownloadCountParams) SetContext(ctx context.Context)
- func (o *AddDownloadCountParams) SetFlightId(flightId string)
- func (o *AddDownloadCountParams) SetHTTPClient(client *http.Client)
- func (o *AddDownloadCountParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *AddDownloadCountParams) SetNamespace(namespace string)
- func (o *AddDownloadCountParams) SetTimeout(timeout time.Duration)
- func (o *AddDownloadCountParams) WithContentID(contentID string) *AddDownloadCountParams
- func (o *AddDownloadCountParams) WithContext(ctx context.Context) *AddDownloadCountParams
- func (o *AddDownloadCountParams) WithHTTPClient(client *http.Client) *AddDownloadCountParams
- func (o *AddDownloadCountParams) WithNamespace(namespace string) *AddDownloadCountParams
- func (o *AddDownloadCountParams) WithTimeout(timeout time.Duration) *AddDownloadCountParams
- func (o *AddDownloadCountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddDownloadCountReader
- type AddDownloadCountUnauthorized
- type Client
- func (a *Client) AddDownloadCount(params *AddDownloadCountParams, authInfo runtime.ClientAuthInfoWriter) (*AddDownloadCountOK, *AddDownloadCountUnauthorized, *AddDownloadCountNotFound, ...)deprecated
- func (a *Client) AddDownloadCountShort(params *AddDownloadCountParams, authInfo runtime.ClientAuthInfoWriter) (*AddDownloadCountOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
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 (o *AddDownloadCountInternalServerError) Error() string
func (*AddDownloadCountInternalServerError) GetPayload ¶
func (o *AddDownloadCountInternalServerError) GetPayload() *ugcclientmodels.ResponseError
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 (o *AddDownloadCountNotFound) GetPayload() *ugcclientmodels.ResponseError
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 (o *AddDownloadCountOK) GetPayload() *ugcclientmodels.ModelsAddDownloadCountResponse
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 ¶
func (o *AddDownloadCountParams) WithContext(ctx context.Context) *AddDownloadCountParams
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 ¶
func (o *AddDownloadCountParams) WithTimeout(timeout time.Duration) *AddDownloadCountParams
WithTimeout adds the timeout to the add download count params
func (*AddDownloadCountParams) WriteToRequest ¶
func (o *AddDownloadCountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 (o *AddDownloadCountUnauthorized) Error() string
func (*AddDownloadCountUnauthorized) GetPayload ¶
func (o *AddDownloadCountUnauthorized) GetPayload() *ugcclientmodels.ResponseError
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
func (a *Client) AddDownloadCount(params *AddDownloadCountParams, authInfo runtime.ClientAuthInfoWriter) (*AddDownloadCountOK, *AddDownloadCountUnauthorized, *AddDownloadCountNotFound, *AddDownloadCountInternalServerError, error)
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 ¶
type ClientService interface { AddDownloadCount(params *AddDownloadCountParams, authInfo runtime.ClientAuthInfoWriter) (*AddDownloadCountOK, *AddDownloadCountUnauthorized, *AddDownloadCountNotFound, *AddDownloadCountInternalServerError, error) AddDownloadCountShort(params *AddDownloadCountParams, authInfo runtime.ClientAuthInfoWriter) (*AddDownloadCountOK, 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 public download count legacy API client.