user_data

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 user data API

func (*Client) GetUserLeaderboardRankingsAdminV1 deprecated

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

GetUserLeaderboardRankingsAdminV1 get user rankings

Required permission 'ADMIN:NAMESPACE:{namespace}:LEADERBOARD [READ]'

Get user leaderboard rankings

func (*Client) GetUserLeaderboardRankingsAdminV1Short added in v0.8.0

func (a *Client) GetUserLeaderboardRankingsAdminV1Short(params *GetUserLeaderboardRankingsAdminV1Params, authInfo runtime.ClientAuthInfoWriter) (*GetUserLeaderboardRankingsAdminV1OK, error)

GetUserLeaderboardRankingsAdminV1Short get user rankings

Required permission 'ADMIN:NAMESPACE:{namespace}:LEADERBOARD [READ]'

Get user leaderboard rankings

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 user data API client.

type GetUserLeaderboardRankingsAdminV1Forbidden

type GetUserLeaderboardRankingsAdminV1Forbidden struct {
	Payload *leaderboardclientmodels.ResponseErrorResponse
}

GetUserLeaderboardRankingsAdminV1Forbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permissions</td></tr></table>

func NewGetUserLeaderboardRankingsAdminV1Forbidden

func NewGetUserLeaderboardRankingsAdminV1Forbidden() *GetUserLeaderboardRankingsAdminV1Forbidden

NewGetUserLeaderboardRankingsAdminV1Forbidden creates a GetUserLeaderboardRankingsAdminV1Forbidden with default headers values

func (*GetUserLeaderboardRankingsAdminV1Forbidden) Error

func (*GetUserLeaderboardRankingsAdminV1Forbidden) GetPayload

func (*GetUserLeaderboardRankingsAdminV1Forbidden) ToJSONString added in v0.25.0

type GetUserLeaderboardRankingsAdminV1InternalServerError

type GetUserLeaderboardRankingsAdminV1InternalServerError struct {
	Payload *leaderboardclientmodels.ResponseErrorResponse
}

GetUserLeaderboardRankingsAdminV1InternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error</td></tr></table>

func NewGetUserLeaderboardRankingsAdminV1InternalServerError

func NewGetUserLeaderboardRankingsAdminV1InternalServerError() *GetUserLeaderboardRankingsAdminV1InternalServerError

NewGetUserLeaderboardRankingsAdminV1InternalServerError creates a GetUserLeaderboardRankingsAdminV1InternalServerError with default headers values

func (*GetUserLeaderboardRankingsAdminV1InternalServerError) Error

func (*GetUserLeaderboardRankingsAdminV1InternalServerError) GetPayload

func (*GetUserLeaderboardRankingsAdminV1InternalServerError) ToJSONString added in v0.25.0

type GetUserLeaderboardRankingsAdminV1OK

type GetUserLeaderboardRankingsAdminV1OK struct {
	Payload *leaderboardclientmodels.ModelsGetAllUserLeaderboardsResp
}

GetUserLeaderboardRankingsAdminV1OK handles this case with default header values.

User rankings retrieved

func NewGetUserLeaderboardRankingsAdminV1OK

func NewGetUserLeaderboardRankingsAdminV1OK() *GetUserLeaderboardRankingsAdminV1OK

NewGetUserLeaderboardRankingsAdminV1OK creates a GetUserLeaderboardRankingsAdminV1OK with default headers values

func (*GetUserLeaderboardRankingsAdminV1OK) Error

func (*GetUserLeaderboardRankingsAdminV1OK) GetPayload

func (*GetUserLeaderboardRankingsAdminV1OK) ToJSONString added in v0.25.0

func (o *GetUserLeaderboardRankingsAdminV1OK) ToJSONString() string

type GetUserLeaderboardRankingsAdminV1Params

type GetUserLeaderboardRankingsAdminV1Params struct {

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

	*/
	Namespace string
	/*UserID
	  User ID

	*/
	UserID string
	/*Limit
	  size of displayed data

	*/
	Limit *int64
	/*Offset
	  The start position that points to query data

	*/
	Offset *int64
	/*PreviousVersion
	  Specify specific version of leaderboard data, < 0 will be archived/history leaderboard data. Currently only support 1 previous version, default value will be 0 (active leaderboard)

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

GetUserLeaderboardRankingsAdminV1Params contains all the parameters to send to the API endpoint for the get user leaderboard rankings admin v1 operation typically these are written to a http.Request

func NewGetUserLeaderboardRankingsAdminV1Params

func NewGetUserLeaderboardRankingsAdminV1Params() *GetUserLeaderboardRankingsAdminV1Params

NewGetUserLeaderboardRankingsAdminV1Params creates a new GetUserLeaderboardRankingsAdminV1Params object with the default values initialized.

func NewGetUserLeaderboardRankingsAdminV1ParamsWithContext

func NewGetUserLeaderboardRankingsAdminV1ParamsWithContext(ctx context.Context) *GetUserLeaderboardRankingsAdminV1Params

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

func NewGetUserLeaderboardRankingsAdminV1ParamsWithHTTPClient

func NewGetUserLeaderboardRankingsAdminV1ParamsWithHTTPClient(client *http.Client) *GetUserLeaderboardRankingsAdminV1Params

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

func NewGetUserLeaderboardRankingsAdminV1ParamsWithTimeout

func NewGetUserLeaderboardRankingsAdminV1ParamsWithTimeout(timeout time.Duration) *GetUserLeaderboardRankingsAdminV1Params

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

func (*GetUserLeaderboardRankingsAdminV1Params) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) SetContext

SetContext adds the context to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) SetFlightId added in v0.63.0

func (o *GetUserLeaderboardRankingsAdminV1Params) SetFlightId(flightId string)

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

func (*GetUserLeaderboardRankingsAdminV1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) SetLimit

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

SetLimit adds the limit to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) SetNamespace

func (o *GetUserLeaderboardRankingsAdminV1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) SetOffset

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

SetOffset adds the offset to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) SetPreviousVersion added in v0.47.0

func (o *GetUserLeaderboardRankingsAdminV1Params) SetPreviousVersion(previousVersion *int64)

SetPreviousVersion adds the previousVersion to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) SetTimeout

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

SetTimeout adds the timeout to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) SetUserID

func (o *GetUserLeaderboardRankingsAdminV1Params) SetUserID(userID string)

SetUserID adds the userId to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) WithContext

WithContext adds the context to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) WithLimit

WithLimit adds the limit to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) WithNamespace

WithNamespace adds the namespace to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) WithOffset

WithOffset adds the offset to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) WithPreviousVersion added in v0.47.0

WithPreviousVersion adds the previousVersion to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) WithTimeout

WithTimeout adds the timeout to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) WithUserID

WithUserID adds the userID to the get user leaderboard rankings admin v1 params

func (*GetUserLeaderboardRankingsAdminV1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserLeaderboardRankingsAdminV1Reader

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

GetUserLeaderboardRankingsAdminV1Reader is a Reader for the GetUserLeaderboardRankingsAdminV1 structure.

func (*GetUserLeaderboardRankingsAdminV1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserLeaderboardRankingsAdminV1Unauthorized

type GetUserLeaderboardRankingsAdminV1Unauthorized struct {
	Payload *leaderboardclientmodels.ResponseErrorResponse
}

GetUserLeaderboardRankingsAdminV1Unauthorized 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 NewGetUserLeaderboardRankingsAdminV1Unauthorized

func NewGetUserLeaderboardRankingsAdminV1Unauthorized() *GetUserLeaderboardRankingsAdminV1Unauthorized

NewGetUserLeaderboardRankingsAdminV1Unauthorized creates a GetUserLeaderboardRankingsAdminV1Unauthorized with default headers values

func (*GetUserLeaderboardRankingsAdminV1Unauthorized) Error

func (*GetUserLeaderboardRankingsAdminV1Unauthorized) GetPayload

func (*GetUserLeaderboardRankingsAdminV1Unauthorized) ToJSONString added in v0.25.0

Jump to

Keyboard shortcuts

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