Documentation ¶
Index ¶
- type Client
- func (a *Client) GetLikedContent(params *GetLikedContentParams, authInfo runtime.ClientAuthInfoWriter) (*GetLikedContentOK, *GetLikedContentBadRequest, *GetLikedContentUnauthorized, ...)deprecated
- func (a *Client) GetLikedContentShort(params *GetLikedContentParams, authInfo runtime.ClientAuthInfoWriter) (*GetLikedContentOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateContentLikeStatus(params *UpdateContentLikeStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateContentLikeStatusOK, *UpdateContentLikeStatusBadRequest, ...)deprecated
- func (a *Client) UpdateContentLikeStatusShort(params *UpdateContentLikeStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateContentLikeStatusOK, error)
- type ClientService
- type GetLikedContentBadRequest
- type GetLikedContentInternalServerError
- type GetLikedContentOK
- type GetLikedContentParams
- func NewGetLikedContentParams() *GetLikedContentParams
- func NewGetLikedContentParamsWithContext(ctx context.Context) *GetLikedContentParams
- func NewGetLikedContentParamsWithHTTPClient(client *http.Client) *GetLikedContentParams
- func NewGetLikedContentParamsWithTimeout(timeout time.Duration) *GetLikedContentParams
- func (o *GetLikedContentParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetLikedContentParams) SetContext(ctx context.Context)
- func (o *GetLikedContentParams) SetFlightId(flightId string)
- func (o *GetLikedContentParams) SetHTTPClient(client *http.Client)
- func (o *GetLikedContentParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetLikedContentParams) SetIsofficial(isofficial *bool)
- func (o *GetLikedContentParams) SetLimit(limit *int64)
- func (o *GetLikedContentParams) SetName(name *string)
- func (o *GetLikedContentParams) SetNamespace(namespace string)
- func (o *GetLikedContentParams) SetOffset(offset *int64)
- func (o *GetLikedContentParams) SetOrderby(orderby *string)
- func (o *GetLikedContentParams) SetSortby(sortby *string)
- func (o *GetLikedContentParams) SetSubtype(subtype *string)
- func (o *GetLikedContentParams) SetTags(tags []string)
- func (o *GetLikedContentParams) SetTimeout(timeout time.Duration)
- func (o *GetLikedContentParams) SetType(typeVar *string)
- func (o *GetLikedContentParams) WithContext(ctx context.Context) *GetLikedContentParams
- func (o *GetLikedContentParams) WithHTTPClient(client *http.Client) *GetLikedContentParams
- func (o *GetLikedContentParams) WithIsofficial(isofficial *bool) *GetLikedContentParams
- func (o *GetLikedContentParams) WithLimit(limit *int64) *GetLikedContentParams
- func (o *GetLikedContentParams) WithName(name *string) *GetLikedContentParams
- func (o *GetLikedContentParams) WithNamespace(namespace string) *GetLikedContentParams
- func (o *GetLikedContentParams) WithOffset(offset *int64) *GetLikedContentParams
- func (o *GetLikedContentParams) WithOrderby(orderby *string) *GetLikedContentParams
- func (o *GetLikedContentParams) WithSortby(sortby *string) *GetLikedContentParams
- func (o *GetLikedContentParams) WithSubtype(subtype *string) *GetLikedContentParams
- func (o *GetLikedContentParams) WithTags(tags []string) *GetLikedContentParams
- func (o *GetLikedContentParams) WithTimeout(timeout time.Duration) *GetLikedContentParams
- func (o *GetLikedContentParams) WithType(typeVar *string) *GetLikedContentParams
- func (o *GetLikedContentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLikedContentReader
- type GetLikedContentUnauthorized
- type UpdateContentLikeStatusBadRequest
- type UpdateContentLikeStatusInternalServerError
- type UpdateContentLikeStatusNotFound
- type UpdateContentLikeStatusOK
- type UpdateContentLikeStatusParams
- func NewUpdateContentLikeStatusParams() *UpdateContentLikeStatusParams
- func NewUpdateContentLikeStatusParamsWithContext(ctx context.Context) *UpdateContentLikeStatusParams
- func NewUpdateContentLikeStatusParamsWithHTTPClient(client *http.Client) *UpdateContentLikeStatusParams
- func NewUpdateContentLikeStatusParamsWithTimeout(timeout time.Duration) *UpdateContentLikeStatusParams
- func (o *UpdateContentLikeStatusParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *UpdateContentLikeStatusParams) SetBody(body *ugcclientmodels.ModelsContentLikeRequest)
- func (o *UpdateContentLikeStatusParams) SetContentID(contentID string)
- func (o *UpdateContentLikeStatusParams) SetContext(ctx context.Context)
- func (o *UpdateContentLikeStatusParams) SetFlightId(flightId string)
- func (o *UpdateContentLikeStatusParams) SetHTTPClient(client *http.Client)
- func (o *UpdateContentLikeStatusParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *UpdateContentLikeStatusParams) SetNamespace(namespace string)
- func (o *UpdateContentLikeStatusParams) SetTimeout(timeout time.Duration)
- func (o *UpdateContentLikeStatusParams) WithBody(body *ugcclientmodels.ModelsContentLikeRequest) *UpdateContentLikeStatusParams
- func (o *UpdateContentLikeStatusParams) WithContentID(contentID string) *UpdateContentLikeStatusParams
- func (o *UpdateContentLikeStatusParams) WithContext(ctx context.Context) *UpdateContentLikeStatusParams
- func (o *UpdateContentLikeStatusParams) WithHTTPClient(client *http.Client) *UpdateContentLikeStatusParams
- func (o *UpdateContentLikeStatusParams) WithNamespace(namespace string) *UpdateContentLikeStatusParams
- func (o *UpdateContentLikeStatusParams) WithTimeout(timeout time.Duration) *UpdateContentLikeStatusParams
- func (o *UpdateContentLikeStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateContentLikeStatusReader
- type UpdateContentLikeStatusUnauthorized
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 like legacy API
func (*Client) GetLikedContent
deprecated
func (a *Client) GetLikedContent(params *GetLikedContentParams, authInfo runtime.ClientAuthInfoWriter) (*GetLikedContentOK, *GetLikedContentBadRequest, *GetLikedContentUnauthorized, *GetLikedContentInternalServerError, error)
Deprecated: 2022-08-10 - Use GetLikedContentShort instead.
GetLikedContent get liked contents For advance tag filtering supports & as AND operator and | as OR operator and parentheses ( ) for priority. e.g:
*tags=red* *tags=red&animal;* *tags=red|animal* *tags=red&animal;|wild* *tags=red&(animal|wild)*
The precedence of logical operator is AND > OR, so if no parentheses, AND logical operator will be executed first.
Allowed character for operand: alphanumeric, underscore _ and dash -
Allowed character for operator: & | ( )
**Please note that value of tags query param should be URL encoded**
func (*Client) GetLikedContentShort ¶
func (a *Client) GetLikedContentShort(params *GetLikedContentParams, authInfo runtime.ClientAuthInfoWriter) (*GetLikedContentOK, error)
GetLikedContentShort get liked contents For advance tag filtering supports & as AND operator and | as OR operator and parentheses ( ) for priority. e.g:
*tags=red* *tags=red&animal;* *tags=red|animal* *tags=red&animal;|wild* *tags=red&(animal|wild)*
The precedence of logical operator is AND > OR, so if no parentheses, AND logical operator will be executed first.
Allowed character for operand: alphanumeric, underscore _ and dash -
Allowed character for operator: & | ( )
**Please note that value of tags query param should be URL encoded**
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateContentLikeStatus
deprecated
func (a *Client) UpdateContentLikeStatus(params *UpdateContentLikeStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateContentLikeStatusOK, *UpdateContentLikeStatusBadRequest, *UpdateContentLikeStatusUnauthorized, *UpdateContentLikeStatusNotFound, *UpdateContentLikeStatusInternalServerError, error)
Deprecated: 2022-08-10 - Use UpdateContentLikeStatusShort instead.
UpdateContentLikeStatus update like/unlike status to a content This endpoint will update like/unlike state from a content
func (*Client) UpdateContentLikeStatusShort ¶
func (a *Client) UpdateContentLikeStatusShort(params *UpdateContentLikeStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateContentLikeStatusOK, error)
UpdateContentLikeStatusShort update like/unlike status to a content This endpoint will update like/unlike state from a content
type ClientService ¶
type ClientService interface { GetLikedContent(params *GetLikedContentParams, authInfo runtime.ClientAuthInfoWriter) (*GetLikedContentOK, *GetLikedContentBadRequest, *GetLikedContentUnauthorized, *GetLikedContentInternalServerError, error) GetLikedContentShort(params *GetLikedContentParams, authInfo runtime.ClientAuthInfoWriter) (*GetLikedContentOK, error) UpdateContentLikeStatus(params *UpdateContentLikeStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateContentLikeStatusOK, *UpdateContentLikeStatusBadRequest, *UpdateContentLikeStatusUnauthorized, *UpdateContentLikeStatusNotFound, *UpdateContentLikeStatusInternalServerError, error) UpdateContentLikeStatusShort(params *UpdateContentLikeStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateContentLikeStatusOK, 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 like legacy API client.
type GetLikedContentBadRequest ¶ added in v0.60.0
type GetLikedContentBadRequest struct {
Payload *ugcclientmodels.ResponseError
}
GetLikedContentBadRequest handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771100</td><td>unable to parse isofficial param</td></tr></table>
func NewGetLikedContentBadRequest ¶ added in v0.60.0
func NewGetLikedContentBadRequest() *GetLikedContentBadRequest
NewGetLikedContentBadRequest creates a GetLikedContentBadRequest with default headers values
func (*GetLikedContentBadRequest) Error ¶ added in v0.60.0
func (o *GetLikedContentBadRequest) Error() string
func (*GetLikedContentBadRequest) GetPayload ¶ added in v0.60.0
func (o *GetLikedContentBadRequest) GetPayload() *ugcclientmodels.ResponseError
func (*GetLikedContentBadRequest) ToJSONString ¶ added in v0.60.0
func (o *GetLikedContentBadRequest) ToJSONString() string
type GetLikedContentInternalServerError ¶
type GetLikedContentInternalServerError struct {
Payload *ugcclientmodels.ResponseError
}
GetLikedContentInternalServerError handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771101</td><td>Unable to get ugc content: database error</td></tr><tr><td>770801</td><td>Unable to get ugc content: database/Unable to get creator</td></tr><tr><td>770803</td><td>Failed generate download URL</td></tr></table>
func NewGetLikedContentInternalServerError ¶
func NewGetLikedContentInternalServerError() *GetLikedContentInternalServerError
NewGetLikedContentInternalServerError creates a GetLikedContentInternalServerError with default headers values
func (*GetLikedContentInternalServerError) Error ¶
func (o *GetLikedContentInternalServerError) Error() string
func (*GetLikedContentInternalServerError) GetPayload ¶
func (o *GetLikedContentInternalServerError) GetPayload() *ugcclientmodels.ResponseError
func (*GetLikedContentInternalServerError) ToJSONString ¶
func (o *GetLikedContentInternalServerError) ToJSONString() string
type GetLikedContentOK ¶
type GetLikedContentOK struct {
Payload *ugcclientmodels.ModelsPaginatedContentDownloadResponse
}
GetLikedContentOK handles this case with default header values.
Get liked contents
func NewGetLikedContentOK ¶
func NewGetLikedContentOK() *GetLikedContentOK
NewGetLikedContentOK creates a GetLikedContentOK with default headers values
func (*GetLikedContentOK) Error ¶
func (o *GetLikedContentOK) Error() string
func (*GetLikedContentOK) GetPayload ¶
func (o *GetLikedContentOK) GetPayload() *ugcclientmodels.ModelsPaginatedContentDownloadResponse
func (*GetLikedContentOK) ToJSONString ¶
func (o *GetLikedContentOK) ToJSONString() string
type GetLikedContentParams ¶
type GetLikedContentParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace namespace of the game */ Namespace string /*Isofficial filter content by official or community */ Isofficial *bool /*Limit number of content per page */ Limit *int64 /*Name content name */ Name *string /*Offset the offset number to retrieve */ Offset *int64 /*Orderby sorting order: asc, desc. default=desc */ Orderby *string /*Sortby sorting criteria: name,download,like,date. default=date */ Sortby *string /*Subtype subtype */ Subtype *string /*Tags tags */ Tags []string /*Type type */ Type *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 }
GetLikedContentParams contains all the parameters to send to the API endpoint for the get liked content operation typically these are written to a http.Request
func NewGetLikedContentParams ¶
func NewGetLikedContentParams() *GetLikedContentParams
NewGetLikedContentParams creates a new GetLikedContentParams object with the default values initialized.
func NewGetLikedContentParamsWithContext ¶
func NewGetLikedContentParamsWithContext(ctx context.Context) *GetLikedContentParams
NewGetLikedContentParamsWithContext creates a new GetLikedContentParams object with the default values initialized, and the ability to set a context for a request
func NewGetLikedContentParamsWithHTTPClient ¶
func NewGetLikedContentParamsWithHTTPClient(client *http.Client) *GetLikedContentParams
NewGetLikedContentParamsWithHTTPClient creates a new GetLikedContentParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetLikedContentParamsWithTimeout ¶
func NewGetLikedContentParamsWithTimeout(timeout time.Duration) *GetLikedContentParams
NewGetLikedContentParamsWithTimeout creates a new GetLikedContentParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetLikedContentParams) SetAuthInfoWriter ¶
func (o *GetLikedContentParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the get liked content params
func (*GetLikedContentParams) SetContext ¶
func (o *GetLikedContentParams) SetContext(ctx context.Context)
SetContext adds the context to the get liked content params
func (*GetLikedContentParams) SetFlightId ¶ added in v0.63.0
func (o *GetLikedContentParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*GetLikedContentParams) SetHTTPClient ¶
func (o *GetLikedContentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get liked content params
func (*GetLikedContentParams) SetHTTPClientTransport ¶
func (o *GetLikedContentParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the get liked content params
func (*GetLikedContentParams) SetIsofficial ¶
func (o *GetLikedContentParams) SetIsofficial(isofficial *bool)
SetIsofficial adds the isofficial to the get liked content params
func (*GetLikedContentParams) SetLimit ¶
func (o *GetLikedContentParams) SetLimit(limit *int64)
SetLimit adds the limit to the get liked content params
func (*GetLikedContentParams) SetName ¶
func (o *GetLikedContentParams) SetName(name *string)
SetName adds the name to the get liked content params
func (*GetLikedContentParams) SetNamespace ¶
func (o *GetLikedContentParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get liked content params
func (*GetLikedContentParams) SetOffset ¶
func (o *GetLikedContentParams) SetOffset(offset *int64)
SetOffset adds the offset to the get liked content params
func (*GetLikedContentParams) SetOrderby ¶
func (o *GetLikedContentParams) SetOrderby(orderby *string)
SetOrderby adds the orderby to the get liked content params
func (*GetLikedContentParams) SetSortby ¶
func (o *GetLikedContentParams) SetSortby(sortby *string)
SetSortby adds the sortby to the get liked content params
func (*GetLikedContentParams) SetSubtype ¶
func (o *GetLikedContentParams) SetSubtype(subtype *string)
SetSubtype adds the subtype to the get liked content params
func (*GetLikedContentParams) SetTags ¶
func (o *GetLikedContentParams) SetTags(tags []string)
SetTags adds the tags to the get liked content params
func (*GetLikedContentParams) SetTimeout ¶
func (o *GetLikedContentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get liked content params
func (*GetLikedContentParams) SetType ¶
func (o *GetLikedContentParams) SetType(typeVar *string)
SetType adds the type to the get liked content params
func (*GetLikedContentParams) WithContext ¶
func (o *GetLikedContentParams) WithContext(ctx context.Context) *GetLikedContentParams
WithContext adds the context to the get liked content params
func (*GetLikedContentParams) WithHTTPClient ¶
func (o *GetLikedContentParams) WithHTTPClient(client *http.Client) *GetLikedContentParams
WithHTTPClient adds the HTTPClient to the get liked content params
func (*GetLikedContentParams) WithIsofficial ¶
func (o *GetLikedContentParams) WithIsofficial(isofficial *bool) *GetLikedContentParams
WithIsofficial adds the isofficial to the get liked content params
func (*GetLikedContentParams) WithLimit ¶
func (o *GetLikedContentParams) WithLimit(limit *int64) *GetLikedContentParams
WithLimit adds the limit to the get liked content params
func (*GetLikedContentParams) WithName ¶
func (o *GetLikedContentParams) WithName(name *string) *GetLikedContentParams
WithName adds the name to the get liked content params
func (*GetLikedContentParams) WithNamespace ¶
func (o *GetLikedContentParams) WithNamespace(namespace string) *GetLikedContentParams
WithNamespace adds the namespace to the get liked content params
func (*GetLikedContentParams) WithOffset ¶
func (o *GetLikedContentParams) WithOffset(offset *int64) *GetLikedContentParams
WithOffset adds the offset to the get liked content params
func (*GetLikedContentParams) WithOrderby ¶
func (o *GetLikedContentParams) WithOrderby(orderby *string) *GetLikedContentParams
WithOrderby adds the orderby to the get liked content params
func (*GetLikedContentParams) WithSortby ¶
func (o *GetLikedContentParams) WithSortby(sortby *string) *GetLikedContentParams
WithSortby adds the sortby to the get liked content params
func (*GetLikedContentParams) WithSubtype ¶
func (o *GetLikedContentParams) WithSubtype(subtype *string) *GetLikedContentParams
WithSubtype adds the subtype to the get liked content params
func (*GetLikedContentParams) WithTags ¶
func (o *GetLikedContentParams) WithTags(tags []string) *GetLikedContentParams
WithTags adds the tags to the get liked content params
func (*GetLikedContentParams) WithTimeout ¶
func (o *GetLikedContentParams) WithTimeout(timeout time.Duration) *GetLikedContentParams
WithTimeout adds the timeout to the get liked content params
func (*GetLikedContentParams) WithType ¶
func (o *GetLikedContentParams) WithType(typeVar *string) *GetLikedContentParams
WithType adds the typeVar to the get liked content params
func (*GetLikedContentParams) WriteToRequest ¶
func (o *GetLikedContentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetLikedContentReader ¶
type GetLikedContentReader struct {
// contains filtered or unexported fields
}
GetLikedContentReader is a Reader for the GetLikedContent structure.
func (*GetLikedContentReader) ReadResponse ¶
func (o *GetLikedContentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetLikedContentUnauthorized ¶
type GetLikedContentUnauthorized struct {
}GetLikedContentUnauthorized 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 NewGetLikedContentUnauthorized ¶
func NewGetLikedContentUnauthorized() *GetLikedContentUnauthorized
NewGetLikedContentUnauthorized creates a GetLikedContentUnauthorized with default headers values
func (*GetLikedContentUnauthorized) Error ¶
func (o *GetLikedContentUnauthorized) Error() string
func (*GetLikedContentUnauthorized) GetPayload ¶
func (o *GetLikedContentUnauthorized) GetPayload() *ugcclientmodels.ResponseError
func (*GetLikedContentUnauthorized) ToJSONString ¶
func (o *GetLikedContentUnauthorized) ToJSONString() string
type UpdateContentLikeStatusBadRequest ¶
type UpdateContentLikeStatusBadRequest struct {
Payload *ugcclientmodels.ResponseError
}
UpdateContentLikeStatusBadRequest handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771000</td><td>Malformed request/Content not found/Unable to update like status: content not found</td></tr></table>
func NewUpdateContentLikeStatusBadRequest ¶
func NewUpdateContentLikeStatusBadRequest() *UpdateContentLikeStatusBadRequest
NewUpdateContentLikeStatusBadRequest creates a UpdateContentLikeStatusBadRequest with default headers values
func (*UpdateContentLikeStatusBadRequest) Error ¶
func (o *UpdateContentLikeStatusBadRequest) Error() string
func (*UpdateContentLikeStatusBadRequest) GetPayload ¶
func (o *UpdateContentLikeStatusBadRequest) GetPayload() *ugcclientmodels.ResponseError
func (*UpdateContentLikeStatusBadRequest) ToJSONString ¶
func (o *UpdateContentLikeStatusBadRequest) ToJSONString() string
type UpdateContentLikeStatusInternalServerError ¶
type UpdateContentLikeStatusInternalServerError struct {
Payload *ugcclientmodels.ResponseError
}
UpdateContentLikeStatusInternalServerError handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771001</td><td>unable to like content/Unable to update like status: database error</td></tr></table>
func NewUpdateContentLikeStatusInternalServerError ¶
func NewUpdateContentLikeStatusInternalServerError() *UpdateContentLikeStatusInternalServerError
NewUpdateContentLikeStatusInternalServerError creates a UpdateContentLikeStatusInternalServerError with default headers values
func (*UpdateContentLikeStatusInternalServerError) Error ¶
func (o *UpdateContentLikeStatusInternalServerError) Error() string
func (*UpdateContentLikeStatusInternalServerError) GetPayload ¶
func (o *UpdateContentLikeStatusInternalServerError) GetPayload() *ugcclientmodels.ResponseError
func (*UpdateContentLikeStatusInternalServerError) ToJSONString ¶
func (o *UpdateContentLikeStatusInternalServerError) ToJSONString() string
type UpdateContentLikeStatusNotFound ¶ added in v0.60.0
type UpdateContentLikeStatusNotFound struct {
Payload *ugcclientmodels.ResponseError
}
UpdateContentLikeStatusNotFound handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771000</td><td>Malformed request/Content not found/Unable to update like status: content not found</td></tr><tr><td>771001</td><td>unable to like content/Unable to update like status: database error</td></tr><tr><td>771000</td><td>Malformed request/Content not found/Unable to update like status: content not found</td></tr></table>
func NewUpdateContentLikeStatusNotFound ¶ added in v0.60.0
func NewUpdateContentLikeStatusNotFound() *UpdateContentLikeStatusNotFound
NewUpdateContentLikeStatusNotFound creates a UpdateContentLikeStatusNotFound with default headers values
func (*UpdateContentLikeStatusNotFound) Error ¶ added in v0.60.0
func (o *UpdateContentLikeStatusNotFound) Error() string
func (*UpdateContentLikeStatusNotFound) GetPayload ¶ added in v0.60.0
func (o *UpdateContentLikeStatusNotFound) GetPayload() *ugcclientmodels.ResponseError
func (*UpdateContentLikeStatusNotFound) ToJSONString ¶ added in v0.60.0
func (o *UpdateContentLikeStatusNotFound) ToJSONString() string
type UpdateContentLikeStatusOK ¶
type UpdateContentLikeStatusOK struct {
Payload *ugcclientmodels.ModelsContentLikeResponse
}
UpdateContentLikeStatusOK handles this case with default header values.
Update like/unlike status to a content
func NewUpdateContentLikeStatusOK ¶
func NewUpdateContentLikeStatusOK() *UpdateContentLikeStatusOK
NewUpdateContentLikeStatusOK creates a UpdateContentLikeStatusOK with default headers values
func (*UpdateContentLikeStatusOK) Error ¶
func (o *UpdateContentLikeStatusOK) Error() string
func (*UpdateContentLikeStatusOK) GetPayload ¶
func (o *UpdateContentLikeStatusOK) GetPayload() *ugcclientmodels.ModelsContentLikeResponse
func (*UpdateContentLikeStatusOK) ToJSONString ¶
func (o *UpdateContentLikeStatusOK) ToJSONString() string
type UpdateContentLikeStatusParams ¶
type UpdateContentLikeStatusParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Body*/ Body *ugcclientmodels.ModelsContentLikeRequest /*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 }
UpdateContentLikeStatusParams contains all the parameters to send to the API endpoint for the update content like status operation typically these are written to a http.Request
func NewUpdateContentLikeStatusParams ¶
func NewUpdateContentLikeStatusParams() *UpdateContentLikeStatusParams
NewUpdateContentLikeStatusParams creates a new UpdateContentLikeStatusParams object with the default values initialized.
func NewUpdateContentLikeStatusParamsWithContext ¶
func NewUpdateContentLikeStatusParamsWithContext(ctx context.Context) *UpdateContentLikeStatusParams
NewUpdateContentLikeStatusParamsWithContext creates a new UpdateContentLikeStatusParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateContentLikeStatusParamsWithHTTPClient ¶
func NewUpdateContentLikeStatusParamsWithHTTPClient(client *http.Client) *UpdateContentLikeStatusParams
NewUpdateContentLikeStatusParamsWithHTTPClient creates a new UpdateContentLikeStatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateContentLikeStatusParamsWithTimeout ¶
func NewUpdateContentLikeStatusParamsWithTimeout(timeout time.Duration) *UpdateContentLikeStatusParams
NewUpdateContentLikeStatusParamsWithTimeout creates a new UpdateContentLikeStatusParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateContentLikeStatusParams) SetAuthInfoWriter ¶
func (o *UpdateContentLikeStatusParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the update content like status params
func (*UpdateContentLikeStatusParams) SetBody ¶
func (o *UpdateContentLikeStatusParams) SetBody(body *ugcclientmodels.ModelsContentLikeRequest)
SetBody adds the body to the update content like status params
func (*UpdateContentLikeStatusParams) SetContentID ¶
func (o *UpdateContentLikeStatusParams) SetContentID(contentID string)
SetContentID adds the contentId to the update content like status params
func (*UpdateContentLikeStatusParams) SetContext ¶
func (o *UpdateContentLikeStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the update content like status params
func (*UpdateContentLikeStatusParams) SetFlightId ¶ added in v0.63.0
func (o *UpdateContentLikeStatusParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*UpdateContentLikeStatusParams) SetHTTPClient ¶
func (o *UpdateContentLikeStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update content like status params
func (*UpdateContentLikeStatusParams) SetHTTPClientTransport ¶
func (o *UpdateContentLikeStatusParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the update content like status params
func (*UpdateContentLikeStatusParams) SetNamespace ¶
func (o *UpdateContentLikeStatusParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the update content like status params
func (*UpdateContentLikeStatusParams) SetTimeout ¶
func (o *UpdateContentLikeStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update content like status params
func (*UpdateContentLikeStatusParams) WithBody ¶
func (o *UpdateContentLikeStatusParams) WithBody(body *ugcclientmodels.ModelsContentLikeRequest) *UpdateContentLikeStatusParams
WithBody adds the body to the update content like status params
func (*UpdateContentLikeStatusParams) WithContentID ¶
func (o *UpdateContentLikeStatusParams) WithContentID(contentID string) *UpdateContentLikeStatusParams
WithContentID adds the contentID to the update content like status params
func (*UpdateContentLikeStatusParams) WithContext ¶
func (o *UpdateContentLikeStatusParams) WithContext(ctx context.Context) *UpdateContentLikeStatusParams
WithContext adds the context to the update content like status params
func (*UpdateContentLikeStatusParams) WithHTTPClient ¶
func (o *UpdateContentLikeStatusParams) WithHTTPClient(client *http.Client) *UpdateContentLikeStatusParams
WithHTTPClient adds the HTTPClient to the update content like status params
func (*UpdateContentLikeStatusParams) WithNamespace ¶
func (o *UpdateContentLikeStatusParams) WithNamespace(namespace string) *UpdateContentLikeStatusParams
WithNamespace adds the namespace to the update content like status params
func (*UpdateContentLikeStatusParams) WithTimeout ¶
func (o *UpdateContentLikeStatusParams) WithTimeout(timeout time.Duration) *UpdateContentLikeStatusParams
WithTimeout adds the timeout to the update content like status params
func (*UpdateContentLikeStatusParams) WriteToRequest ¶
func (o *UpdateContentLikeStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateContentLikeStatusReader ¶
type UpdateContentLikeStatusReader struct {
// contains filtered or unexported fields
}
UpdateContentLikeStatusReader is a Reader for the UpdateContentLikeStatus structure.
func (*UpdateContentLikeStatusReader) ReadResponse ¶
func (o *UpdateContentLikeStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateContentLikeStatusUnauthorized ¶
type UpdateContentLikeStatusUnauthorized struct {
}UpdateContentLikeStatusUnauthorized 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 NewUpdateContentLikeStatusUnauthorized ¶
func NewUpdateContentLikeStatusUnauthorized() *UpdateContentLikeStatusUnauthorized
NewUpdateContentLikeStatusUnauthorized creates a UpdateContentLikeStatusUnauthorized with default headers values
func (*UpdateContentLikeStatusUnauthorized) Error ¶
func (o *UpdateContentLikeStatusUnauthorized) Error() string
func (*UpdateContentLikeStatusUnauthorized) GetPayload ¶
func (o *UpdateContentLikeStatusUnauthorized) GetPayload() *ugcclientmodels.ResponseError
func (*UpdateContentLikeStatusUnauthorized) ToJSONString ¶
func (o *UpdateContentLikeStatusUnauthorized) ToJSONString() string