public_creator

package
v0.1.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Mar 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

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

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

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

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

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

func NewPublicGetCreatorInternalServerError() *PublicGetCreatorInternalServerError

NewPublicGetCreatorInternalServerError creates a PublicGetCreatorInternalServerError with default headers values

func (*PublicGetCreatorInternalServerError) Error

func (*PublicGetCreatorInternalServerError) GetPayload

func (*PublicGetCreatorInternalServerError) ToJSONString

func (o *PublicGetCreatorInternalServerError) ToJSONString() string

type PublicGetCreatorNotFound

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

func NewPublicGetCreatorNotFound() *PublicGetCreatorNotFound

NewPublicGetCreatorNotFound creates a PublicGetCreatorNotFound with default headers values

func (*PublicGetCreatorNotFound) Error

func (o *PublicGetCreatorNotFound) Error() string

func (*PublicGetCreatorNotFound) GetPayload

func (*PublicGetCreatorNotFound) ToJSONString

func (o *PublicGetCreatorNotFound) ToJSONString() string

type PublicGetCreatorOK

type PublicGetCreatorOK struct {
	Payload *ugcclientmodels.ModelsCreatorResponse
}

PublicGetCreatorOK handles this case with default header values.

Get creator stats

func NewPublicGetCreatorOK

func NewPublicGetCreatorOK() *PublicGetCreatorOK

NewPublicGetCreatorOK creates a PublicGetCreatorOK with default headers values

func (*PublicGetCreatorOK) Error

func (o *PublicGetCreatorOK) Error() string

func (*PublicGetCreatorOK) GetPayload

func (*PublicGetCreatorOK) ToJSONString

func (o *PublicGetCreatorOK) ToJSONString() string

type PublicGetCreatorParams

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

func NewPublicGetCreatorParams() *PublicGetCreatorParams

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

func NewPublicGetCreatorParamsWithContext

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the public get creator params

func (*PublicGetCreatorParams) SetContext

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

SetContext adds the context to the public get creator params

func (*PublicGetCreatorParams) SetFlightId

func (o *PublicGetCreatorParams) SetFlightId(flightId string)

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

func (*PublicGetCreatorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get creator params

func (*PublicGetCreatorParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the public get creator params

func (*PublicGetCreatorParams) SetNamespace

func (o *PublicGetCreatorParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get creator params

func (*PublicGetCreatorParams) SetTimeout

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

SetTimeout adds the timeout to the public get creator params

func (*PublicGetCreatorParams) SetUserID

func (o *PublicGetCreatorParams) SetUserID(userID string)

SetUserID adds the userId to the public get creator params

func (*PublicGetCreatorParams) WithContext

WithContext adds the context to the public get creator params

func (*PublicGetCreatorParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the public get creator params

func (*PublicGetCreatorParams) WithNamespace

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

WithNamespace adds the namespace to the public get creator params

func (*PublicGetCreatorParams) WithTimeout

WithTimeout adds the timeout to the public get creator params

func (*PublicGetCreatorParams) WithUserID

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

WithUserID adds the userID to the public get creator params

func (*PublicGetCreatorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetCreatorReader

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

PublicGetCreatorReader is a Reader for the PublicGetCreator structure.

func (*PublicGetCreatorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicGetCreatorUnauthorized

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

func NewPublicGetCreatorUnauthorized() *PublicGetCreatorUnauthorized

NewPublicGetCreatorUnauthorized creates a PublicGetCreatorUnauthorized with default headers values

func (*PublicGetCreatorUnauthorized) Error

func (*PublicGetCreatorUnauthorized) GetPayload

func (*PublicGetCreatorUnauthorized) ToJSONString

func (o *PublicGetCreatorUnauthorized) ToJSONString() string

type PublicSearchCreatorBadRequest

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

func NewPublicSearchCreatorBadRequest() *PublicSearchCreatorBadRequest

NewPublicSearchCreatorBadRequest creates a PublicSearchCreatorBadRequest with default headers values

func (*PublicSearchCreatorBadRequest) Error

func (*PublicSearchCreatorBadRequest) GetPayload

func (*PublicSearchCreatorBadRequest) ToJSONString

func (o *PublicSearchCreatorBadRequest) ToJSONString() string

type PublicSearchCreatorInternalServerError

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

func NewPublicSearchCreatorInternalServerError() *PublicSearchCreatorInternalServerError

NewPublicSearchCreatorInternalServerError creates a PublicSearchCreatorInternalServerError with default headers values

func (*PublicSearchCreatorInternalServerError) Error

func (*PublicSearchCreatorInternalServerError) GetPayload

func (*PublicSearchCreatorInternalServerError) ToJSONString

type PublicSearchCreatorOK

type PublicSearchCreatorOK struct {
	Payload *ugcclientmodels.ModelsPaginatedCreatorOverviewResponse
}

PublicSearchCreatorOK handles this case with default header values.

Search creator

func NewPublicSearchCreatorOK

func NewPublicSearchCreatorOK() *PublicSearchCreatorOK

NewPublicSearchCreatorOK creates a PublicSearchCreatorOK with default headers values

func (*PublicSearchCreatorOK) Error

func (o *PublicSearchCreatorOK) Error() string

func (*PublicSearchCreatorOK) GetPayload

func (*PublicSearchCreatorOK) ToJSONString

func (o *PublicSearchCreatorOK) ToJSONString() string

type PublicSearchCreatorParams

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

func NewPublicSearchCreatorParams() *PublicSearchCreatorParams

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

func NewPublicSearchCreatorParamsWithContext

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the public search creator params

func (*PublicSearchCreatorParams) SetContext

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

SetContext adds the context to the public search creator params

func (*PublicSearchCreatorParams) SetFlightId

func (o *PublicSearchCreatorParams) SetFlightId(flightId string)

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

func (*PublicSearchCreatorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public search creator params

func (*PublicSearchCreatorParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the public search creator params

func (*PublicSearchCreatorParams) SetLimit

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

SetLimit adds the limit to the public search creator params

func (*PublicSearchCreatorParams) SetNamespace

func (o *PublicSearchCreatorParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public search creator params

func (*PublicSearchCreatorParams) SetOffset

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

SetOffset adds the offset to the public search creator params

func (*PublicSearchCreatorParams) SetOrderby

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

SetOrderby adds the orderby to the public search creator params

func (*PublicSearchCreatorParams) SetSortby

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

SetSortby adds the sortby to the public search creator params

func (*PublicSearchCreatorParams) SetTimeout

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

SetTimeout adds the timeout to the public search creator params

func (*PublicSearchCreatorParams) WithContext

WithContext adds the context to the public search creator params

func (*PublicSearchCreatorParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the public search creator params

func (*PublicSearchCreatorParams) WithLimit

WithLimit adds the limit to the public search creator params

func (*PublicSearchCreatorParams) WithNamespace

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

WithNamespace adds the namespace to the public search creator params

func (*PublicSearchCreatorParams) WithOffset

WithOffset adds the offset to the public search creator params

func (*PublicSearchCreatorParams) WithOrderby

WithOrderby adds the orderby to the public search creator params

func (*PublicSearchCreatorParams) WithSortby

WithSortby adds the sortby to the public search creator params

func (*PublicSearchCreatorParams) WithTimeout

WithTimeout adds the timeout to the public search creator params

func (*PublicSearchCreatorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicSearchCreatorReader

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

PublicSearchCreatorReader is a Reader for the PublicSearchCreator structure.

func (*PublicSearchCreatorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicSearchCreatorUnauthorized

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

func NewPublicSearchCreatorUnauthorized() *PublicSearchCreatorUnauthorized

NewPublicSearchCreatorUnauthorized creates a PublicSearchCreatorUnauthorized with default headers values

func (*PublicSearchCreatorUnauthorized) Error

func (*PublicSearchCreatorUnauthorized) GetPayload

func (*PublicSearchCreatorUnauthorized) ToJSONString

func (o *PublicSearchCreatorUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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