public_tag

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 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 tag API

func (*Client) GetTag deprecated

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

GetTag get tags Get available tags paginated

func (*Client) GetTagShort

func (a *Client) GetTagShort(params *GetTagParams, authInfo runtime.ClientAuthInfoWriter) (*GetTagOK, error)

GetTagShort get tags Get available tags paginated

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetTag(params *GetTagParams, authInfo runtime.ClientAuthInfoWriter) (*GetTagOK, *GetTagBadRequest, *GetTagUnauthorized, *GetTagInternalServerError, error)
	GetTagShort(params *GetTagParams, authInfo runtime.ClientAuthInfoWriter) (*GetTagOK, 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 tag API client.

type GetTagBadRequest added in v0.60.0

type GetTagBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

GetTagBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771501</td><td>invalid paging parameter</td></tr></table>

func NewGetTagBadRequest added in v0.60.0

func NewGetTagBadRequest() *GetTagBadRequest

NewGetTagBadRequest creates a GetTagBadRequest with default headers values

func (*GetTagBadRequest) Error added in v0.60.0

func (o *GetTagBadRequest) Error() string

func (*GetTagBadRequest) GetPayload added in v0.60.0

func (*GetTagBadRequest) ToJSONString added in v0.60.0

func (o *GetTagBadRequest) ToJSONString() string

type GetTagInternalServerError

type GetTagInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

GetTagInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771502</td><td>Unable get user tags</td></tr></table>

func NewGetTagInternalServerError

func NewGetTagInternalServerError() *GetTagInternalServerError

NewGetTagInternalServerError creates a GetTagInternalServerError with default headers values

func (*GetTagInternalServerError) Error

func (o *GetTagInternalServerError) Error() string

func (*GetTagInternalServerError) GetPayload

func (*GetTagInternalServerError) ToJSONString added in v0.25.0

func (o *GetTagInternalServerError) ToJSONString() string

type GetTagOK

type GetTagOK struct {
	Payload *ugcclientmodels.ModelsPaginatedGetTagResponse
}

GetTagOK handles this case with default header values.

Get tags

func NewGetTagOK

func NewGetTagOK() *GetTagOK

NewGetTagOK creates a GetTagOK with default headers values

func (*GetTagOK) Error

func (o *GetTagOK) Error() string

func (*GetTagOK) GetPayload

func (*GetTagOK) ToJSONString added in v0.25.0

func (o *GetTagOK) ToJSONString() string

type GetTagParams

type GetTagParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

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

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

	*/
	Offset *int64

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

GetTagParams contains all the parameters to send to the API endpoint for the get tag operation typically these are written to a http.Request

func NewGetTagParams

func NewGetTagParams() *GetTagParams

NewGetTagParams creates a new GetTagParams object with the default values initialized.

func NewGetTagParamsWithContext

func NewGetTagParamsWithContext(ctx context.Context) *GetTagParams

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

func NewGetTagParamsWithHTTPClient

func NewGetTagParamsWithHTTPClient(client *http.Client) *GetTagParams

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

func NewGetTagParamsWithTimeout

func NewGetTagParamsWithTimeout(timeout time.Duration) *GetTagParams

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

func (*GetTagParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the get tag params

func (*GetTagParams) SetContext

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

SetContext adds the context to the get tag params

func (*GetTagParams) SetFlightId added in v0.63.0

func (o *GetTagParams) SetFlightId(flightId string)

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

func (*GetTagParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get tag params

func (*GetTagParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the get tag params

func (*GetTagParams) SetLimit

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

SetLimit adds the limit to the get tag params

func (*GetTagParams) SetNamespace

func (o *GetTagParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get tag params

func (*GetTagParams) SetOffset

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

SetOffset adds the offset to the get tag params

func (*GetTagParams) SetTimeout

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

SetTimeout adds the timeout to the get tag params

func (*GetTagParams) WithContext

func (o *GetTagParams) WithContext(ctx context.Context) *GetTagParams

WithContext adds the context to the get tag params

func (*GetTagParams) WithHTTPClient

func (o *GetTagParams) WithHTTPClient(client *http.Client) *GetTagParams

WithHTTPClient adds the HTTPClient to the get tag params

func (*GetTagParams) WithLimit

func (o *GetTagParams) WithLimit(limit *int64) *GetTagParams

WithLimit adds the limit to the get tag params

func (*GetTagParams) WithNamespace

func (o *GetTagParams) WithNamespace(namespace string) *GetTagParams

WithNamespace adds the namespace to the get tag params

func (*GetTagParams) WithOffset

func (o *GetTagParams) WithOffset(offset *int64) *GetTagParams

WithOffset adds the offset to the get tag params

func (*GetTagParams) WithTimeout

func (o *GetTagParams) WithTimeout(timeout time.Duration) *GetTagParams

WithTimeout adds the timeout to the get tag params

func (*GetTagParams) WriteToRequest

func (o *GetTagParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetTagReader

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

GetTagReader is a Reader for the GetTag structure.

func (*GetTagReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTagUnauthorized

type GetTagUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

GetTagUnauthorized 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 NewGetTagUnauthorized

func NewGetTagUnauthorized() *GetTagUnauthorized

NewGetTagUnauthorized creates a GetTagUnauthorized with default headers values

func (*GetTagUnauthorized) Error

func (o *GetTagUnauthorized) Error() string

func (*GetTagUnauthorized) GetPayload

func (*GetTagUnauthorized) ToJSONString added in v0.25.0

func (o *GetTagUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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