Documentation
¶
Index ¶
- type AddDownloadCountBadRequest
- 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) 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, *AddDownloadCountBadRequest, ...)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 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 (o *AddDownloadCountBadRequest) Error() string
func (*AddDownloadCountBadRequest) GetPayload ¶
func (o *AddDownloadCountBadRequest) GetPayload() *ugcclientmodels.ResponseError
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 (o *AddDownloadCountInternalServerError) Error() string
func (*AddDownloadCountInternalServerError) GetPayload ¶
func (o *AddDownloadCountInternalServerError) GetPayload() *ugcclientmodels.ResponseError
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 (o *AddDownloadCountNotFound) GetPayload() *ugcclientmodels.ResponseError
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 (o *AddDownloadCountOK) GetPayload() *ugcclientmodels.ModelsAddDownloadCountResponse
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 ¶
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.
Unauthorized
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 ¶ 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
func (a *Client) AddDownloadCount(params *AddDownloadCountParams, authInfo runtime.ClientAuthInfoWriter) (*AddDownloadCountOK, *AddDownloadCountBadRequest, *AddDownloadCountUnauthorized, *AddDownloadCountNotFound, *AddDownloadCountInternalServerError, error)
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 ¶
type ClientService interface { AddDownloadCount(params *AddDownloadCountParams, authInfo runtime.ClientAuthInfoWriter) (*AddDownloadCountOK, *AddDownloadCountBadRequest, *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 API client.