public_creator

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: Feb 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 creator API

func (*Client) PublicGetCreator deprecated added in v0.24.0

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

PublicGetCreator get creator stats: number of total like by other user, number of total following and follower user Public user can access without token or if token specified, requires valid user token

func (*Client) PublicGetCreatorShort added in v0.24.0

func (a *Client) PublicGetCreatorShort(params *PublicGetCreatorParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetCreatorOK, error)

PublicGetCreatorShort get creator stats: number of total like by other user, number of total following and follower user Public user can access without token or if token specified, requires valid user token

func (*Client) PublicSearchCreator deprecated added in v0.24.0

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

PublicSearchCreator search creator Public user can access without token or if token specified, requires valid user token

func (*Client) PublicSearchCreatorShort added in v0.24.0

func (a *Client) PublicSearchCreatorShort(params *PublicSearchCreatorParams, authInfo runtime.ClientAuthInfoWriter) (*PublicSearchCreatorOK, error)

PublicSearchCreatorShort search creator Public user can access without token or if token specified, requires valid user token

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new public creator API client.

type PublicGetCreatorInternalServerError added in v0.24.0

type PublicGetCreatorInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

PublicGetCreatorInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771103</td><td>Unable to get total liked content</td></tr></table>

func NewPublicGetCreatorInternalServerError added in v0.24.0

func NewPublicGetCreatorInternalServerError() *PublicGetCreatorInternalServerError

NewPublicGetCreatorInternalServerError creates a PublicGetCreatorInternalServerError with default headers values

func (*PublicGetCreatorInternalServerError) Error added in v0.24.0

func (*PublicGetCreatorInternalServerError) GetPayload added in v0.24.0

func (*PublicGetCreatorInternalServerError) ToJSONString added in v0.25.0

func (o *PublicGetCreatorInternalServerError) ToJSONString() string

type PublicGetCreatorNotFound added in v0.24.0

type PublicGetCreatorNotFound struct {
	Payload *ugcclientmodels.ResponseError
}

PublicGetCreatorNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>771601</td><td>Creator not found</td></tr></table>

func NewPublicGetCreatorNotFound added in v0.24.0

func NewPublicGetCreatorNotFound() *PublicGetCreatorNotFound

NewPublicGetCreatorNotFound creates a PublicGetCreatorNotFound with default headers values

func (*PublicGetCreatorNotFound) Error added in v0.24.0

func (o *PublicGetCreatorNotFound) Error() string

func (*PublicGetCreatorNotFound) GetPayload added in v0.24.0

func (*PublicGetCreatorNotFound) ToJSONString added in v0.25.0

func (o *PublicGetCreatorNotFound) ToJSONString() string

type PublicGetCreatorOK added in v0.24.0

type PublicGetCreatorOK struct {
	Payload *ugcclientmodels.ModelsCreatorResponse
}

PublicGetCreatorOK handles this case with default header values.

Get creator stats

func NewPublicGetCreatorOK added in v0.24.0

func NewPublicGetCreatorOK() *PublicGetCreatorOK

NewPublicGetCreatorOK creates a PublicGetCreatorOK with default headers values

func (*PublicGetCreatorOK) Error added in v0.24.0

func (o *PublicGetCreatorOK) Error() string

func (*PublicGetCreatorOK) GetPayload added in v0.24.0

func (*PublicGetCreatorOK) ToJSONString added in v0.25.0

func (o *PublicGetCreatorOK) ToJSONString() string

type PublicGetCreatorParams added in v0.24.0

type PublicGetCreatorParams struct {

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

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

PublicGetCreatorParams contains all the parameters to send to the API endpoint for the public get creator operation typically these are written to a http.Request

func NewPublicGetCreatorParams added in v0.24.0

func NewPublicGetCreatorParams() *PublicGetCreatorParams

NewPublicGetCreatorParams creates a new PublicGetCreatorParams object with the default values initialized.

func NewPublicGetCreatorParamsWithContext added in v0.24.0

func NewPublicGetCreatorParamsWithContext(ctx context.Context) *PublicGetCreatorParams

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

func NewPublicGetCreatorParamsWithHTTPClient added in v0.24.0

func NewPublicGetCreatorParamsWithHTTPClient(client *http.Client) *PublicGetCreatorParams

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

func NewPublicGetCreatorParamsWithTimeout added in v0.24.0

func NewPublicGetCreatorParamsWithTimeout(timeout time.Duration) *PublicGetCreatorParams

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

func (*PublicGetCreatorParams) SetAuthInfoWriter added in v0.24.0

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

SetAuthInfoWriter adds the authInfoWriter to the public get creator params

func (*PublicGetCreatorParams) SetContext added in v0.24.0

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

SetContext adds the context to the public get creator params

func (*PublicGetCreatorParams) SetFlightId added in v0.63.0

func (o *PublicGetCreatorParams) SetFlightId(flightId string)

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

func (*PublicGetCreatorParams) SetHTTPClient added in v0.24.0

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

SetHTTPClient adds the HTTPClient to the public get creator params

func (*PublicGetCreatorParams) SetHTTPClientTransport added in v0.24.0

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

SetHTTPClient adds the HTTPClient Transport to the public get creator params

func (*PublicGetCreatorParams) SetNamespace added in v0.24.0

func (o *PublicGetCreatorParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get creator params

func (*PublicGetCreatorParams) SetTimeout added in v0.24.0

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

SetTimeout adds the timeout to the public get creator params

func (*PublicGetCreatorParams) SetUserID added in v0.24.0

func (o *PublicGetCreatorParams) SetUserID(userID string)

SetUserID adds the userId to the public get creator params

func (*PublicGetCreatorParams) WithContext added in v0.24.0

WithContext adds the context to the public get creator params

func (*PublicGetCreatorParams) WithHTTPClient added in v0.24.0

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

WithHTTPClient adds the HTTPClient to the public get creator params

func (*PublicGetCreatorParams) WithNamespace added in v0.24.0

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

WithNamespace adds the namespace to the public get creator params

func (*PublicGetCreatorParams) WithTimeout added in v0.24.0

WithTimeout adds the timeout to the public get creator params

func (*PublicGetCreatorParams) WithUserID added in v0.24.0

func (o *PublicGetCreatorParams) WithUserID(userID string) *PublicGetCreatorParams

WithUserID adds the userID to the public get creator params

func (*PublicGetCreatorParams) WriteToRequest added in v0.24.0

WriteToRequest writes these params to a swagger request

type PublicGetCreatorReader added in v0.24.0

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

PublicGetCreatorReader is a Reader for the PublicGetCreator structure.

func (*PublicGetCreatorReader) ReadResponse added in v0.24.0

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

ReadResponse reads a server response into the received o.

type PublicGetCreatorUnauthorized added in v0.24.0

type PublicGetCreatorUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

PublicGetCreatorUnauthorized 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 NewPublicGetCreatorUnauthorized added in v0.24.0

func NewPublicGetCreatorUnauthorized() *PublicGetCreatorUnauthorized

NewPublicGetCreatorUnauthorized creates a PublicGetCreatorUnauthorized with default headers values

func (*PublicGetCreatorUnauthorized) Error added in v0.24.0

func (*PublicGetCreatorUnauthorized) GetPayload added in v0.24.0

func (*PublicGetCreatorUnauthorized) ToJSONString added in v0.25.0

func (o *PublicGetCreatorUnauthorized) ToJSONString() string

type PublicSearchCreatorBadRequest added in v0.24.0

type PublicSearchCreatorBadRequest struct {
	Payload *ugcclientmodels.ResponseError
}

PublicSearchCreatorBadRequest 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 NewPublicSearchCreatorBadRequest added in v0.24.0

func NewPublicSearchCreatorBadRequest() *PublicSearchCreatorBadRequest

NewPublicSearchCreatorBadRequest creates a PublicSearchCreatorBadRequest with default headers values

func (*PublicSearchCreatorBadRequest) Error added in v0.24.0

func (*PublicSearchCreatorBadRequest) GetPayload added in v0.24.0

func (*PublicSearchCreatorBadRequest) ToJSONString added in v0.25.0

func (o *PublicSearchCreatorBadRequest) ToJSONString() string

type PublicSearchCreatorInternalServerError added in v0.24.0

type PublicSearchCreatorInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

PublicSearchCreatorInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>770801</td><td>Unable to get ugc content: database/Unable to get creator</td></tr></table>

func NewPublicSearchCreatorInternalServerError added in v0.24.0

func NewPublicSearchCreatorInternalServerError() *PublicSearchCreatorInternalServerError

NewPublicSearchCreatorInternalServerError creates a PublicSearchCreatorInternalServerError with default headers values

func (*PublicSearchCreatorInternalServerError) Error added in v0.24.0

func (*PublicSearchCreatorInternalServerError) GetPayload added in v0.24.0

func (*PublicSearchCreatorInternalServerError) ToJSONString added in v0.25.0

type PublicSearchCreatorOK added in v0.24.0

type PublicSearchCreatorOK struct {
	Payload *ugcclientmodels.ModelsPaginatedCreatorOverviewResponse
}

PublicSearchCreatorOK handles this case with default header values.

Search creator

func NewPublicSearchCreatorOK added in v0.24.0

func NewPublicSearchCreatorOK() *PublicSearchCreatorOK

NewPublicSearchCreatorOK creates a PublicSearchCreatorOK with default headers values

func (*PublicSearchCreatorOK) Error added in v0.24.0

func (o *PublicSearchCreatorOK) Error() string

func (*PublicSearchCreatorOK) GetPayload added in v0.24.0

func (*PublicSearchCreatorOK) ToJSONString added in v0.25.0

func (o *PublicSearchCreatorOK) ToJSONString() string

type PublicSearchCreatorParams added in v0.24.0

type PublicSearchCreatorParams 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
	/*Orderby
	  sorting order: asc, desc. default=desc

	*/
	Orderby *string
	/*Sortby
	  sorting criteria: followCount, totalLikedContent. default=object id

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

PublicSearchCreatorParams contains all the parameters to send to the API endpoint for the public search creator operation typically these are written to a http.Request

func NewPublicSearchCreatorParams added in v0.24.0

func NewPublicSearchCreatorParams() *PublicSearchCreatorParams

NewPublicSearchCreatorParams creates a new PublicSearchCreatorParams object with the default values initialized.

func NewPublicSearchCreatorParamsWithContext added in v0.24.0

func NewPublicSearchCreatorParamsWithContext(ctx context.Context) *PublicSearchCreatorParams

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

func NewPublicSearchCreatorParamsWithHTTPClient added in v0.24.0

func NewPublicSearchCreatorParamsWithHTTPClient(client *http.Client) *PublicSearchCreatorParams

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

func NewPublicSearchCreatorParamsWithTimeout added in v0.24.0

func NewPublicSearchCreatorParamsWithTimeout(timeout time.Duration) *PublicSearchCreatorParams

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

func (*PublicSearchCreatorParams) SetAuthInfoWriter added in v0.24.0

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

SetAuthInfoWriter adds the authInfoWriter to the public search creator params

func (*PublicSearchCreatorParams) SetContext added in v0.24.0

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

SetContext adds the context to the public search creator params

func (*PublicSearchCreatorParams) SetFlightId added in v0.63.0

func (o *PublicSearchCreatorParams) SetFlightId(flightId string)

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

func (*PublicSearchCreatorParams) SetHTTPClient added in v0.24.0

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

SetHTTPClient adds the HTTPClient to the public search creator params

func (*PublicSearchCreatorParams) SetHTTPClientTransport added in v0.24.0

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

SetHTTPClient adds the HTTPClient Transport to the public search creator params

func (*PublicSearchCreatorParams) SetLimit added in v0.24.0

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

SetLimit adds the limit to the public search creator params

func (*PublicSearchCreatorParams) SetNamespace added in v0.24.0

func (o *PublicSearchCreatorParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public search creator params

func (*PublicSearchCreatorParams) SetOffset added in v0.24.0

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

SetOffset adds the offset to the public search creator params

func (*PublicSearchCreatorParams) SetOrderby added in v0.24.0

func (o *PublicSearchCreatorParams) SetOrderby(orderby *string)

SetOrderby adds the orderby to the public search creator params

func (*PublicSearchCreatorParams) SetSortby added in v0.24.0

func (o *PublicSearchCreatorParams) SetSortby(sortby *string)

SetSortby adds the sortby to the public search creator params

func (*PublicSearchCreatorParams) SetTimeout added in v0.24.0

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

SetTimeout adds the timeout to the public search creator params

func (*PublicSearchCreatorParams) WithContext added in v0.24.0

WithContext adds the context to the public search creator params

func (*PublicSearchCreatorParams) WithHTTPClient added in v0.24.0

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

WithHTTPClient adds the HTTPClient to the public search creator params

func (*PublicSearchCreatorParams) WithLimit added in v0.24.0

WithLimit adds the limit to the public search creator params

func (*PublicSearchCreatorParams) WithNamespace added in v0.24.0

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

WithNamespace adds the namespace to the public search creator params

func (*PublicSearchCreatorParams) WithOffset added in v0.24.0

WithOffset adds the offset to the public search creator params

func (*PublicSearchCreatorParams) WithOrderby added in v0.24.0

WithOrderby adds the orderby to the public search creator params

func (*PublicSearchCreatorParams) WithSortby added in v0.24.0

WithSortby adds the sortby to the public search creator params

func (*PublicSearchCreatorParams) WithTimeout added in v0.24.0

WithTimeout adds the timeout to the public search creator params

func (*PublicSearchCreatorParams) WriteToRequest added in v0.24.0

WriteToRequest writes these params to a swagger request

type PublicSearchCreatorReader added in v0.24.0

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

PublicSearchCreatorReader is a Reader for the PublicSearchCreator structure.

func (*PublicSearchCreatorReader) ReadResponse added in v0.24.0

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

ReadResponse reads a server response into the received o.

type PublicSearchCreatorUnauthorized added in v0.24.0

type PublicSearchCreatorUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

PublicSearchCreatorUnauthorized 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 NewPublicSearchCreatorUnauthorized added in v0.24.0

func NewPublicSearchCreatorUnauthorized() *PublicSearchCreatorUnauthorized

NewPublicSearchCreatorUnauthorized creates a PublicSearchCreatorUnauthorized with default headers values

func (*PublicSearchCreatorUnauthorized) Error added in v0.24.0

func (*PublicSearchCreatorUnauthorized) GetPayload added in v0.24.0

func (*PublicSearchCreatorUnauthorized) ToJSONString added in v0.25.0

func (o *PublicSearchCreatorUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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