player_reward

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminGetUserRewardsCLAIMEDConstant   = "CLAIMED"
	AdminGetUserRewardsUNCLAIMEDConstant = "UNCLAIMED"
)

Get the enum in AdminGetUserRewardsParams

View Source
const (
	PublicGetUserRewardsCLAIMEDConstant   = "CLAIMED"
	PublicGetUserRewardsUNCLAIMEDConstant = "UNCLAIMED"
)

Get the enum in PublicGetUserRewardsParams

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminClaimUserRewardsForbidden added in v0.71.0

type AdminClaimUserRewardsForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUserRewardsForbidden handles this case with default header values.

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

func NewAdminClaimUserRewardsForbidden added in v0.71.0

func NewAdminClaimUserRewardsForbidden() *AdminClaimUserRewardsForbidden

NewAdminClaimUserRewardsForbidden creates a AdminClaimUserRewardsForbidden with default headers values

func (*AdminClaimUserRewardsForbidden) Error added in v0.71.0

func (*AdminClaimUserRewardsForbidden) GetPayload added in v0.71.0

func (*AdminClaimUserRewardsForbidden) ToJSONString added in v0.71.0

func (o *AdminClaimUserRewardsForbidden) ToJSONString() string

type AdminClaimUserRewardsInternalServerError added in v0.71.0

type AdminClaimUserRewardsInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

AdminClaimUserRewardsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>

func NewAdminClaimUserRewardsInternalServerError added in v0.71.0

func NewAdminClaimUserRewardsInternalServerError() *AdminClaimUserRewardsInternalServerError

NewAdminClaimUserRewardsInternalServerError creates a AdminClaimUserRewardsInternalServerError with default headers values

func (*AdminClaimUserRewardsInternalServerError) Error added in v0.71.0

func (*AdminClaimUserRewardsInternalServerError) GetPayload added in v0.71.0

func (*AdminClaimUserRewardsInternalServerError) ToJSONString added in v0.71.0

type AdminClaimUserRewardsNotFound added in v0.71.0

type AdminClaimUserRewardsNotFound struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUserRewardsNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20029</td><td>not found</td></tr></table>

func NewAdminClaimUserRewardsNotFound added in v0.71.0

func NewAdminClaimUserRewardsNotFound() *AdminClaimUserRewardsNotFound

NewAdminClaimUserRewardsNotFound creates a AdminClaimUserRewardsNotFound with default headers values

func (*AdminClaimUserRewardsNotFound) Error added in v0.71.0

func (*AdminClaimUserRewardsNotFound) GetPayload added in v0.71.0

func (*AdminClaimUserRewardsNotFound) ToJSONString added in v0.71.0

func (o *AdminClaimUserRewardsNotFound) ToJSONString() string

type AdminClaimUserRewardsOK added in v0.71.0

type AdminClaimUserRewardsOK struct {
	Payload []*challengeclientmodels.ModelUserReward
}

AdminClaimUserRewardsOK handles this case with default header values.

OK

func NewAdminClaimUserRewardsOK added in v0.71.0

func NewAdminClaimUserRewardsOK() *AdminClaimUserRewardsOK

NewAdminClaimUserRewardsOK creates a AdminClaimUserRewardsOK with default headers values

func (*AdminClaimUserRewardsOK) Error added in v0.71.0

func (o *AdminClaimUserRewardsOK) Error() string

func (*AdminClaimUserRewardsOK) GetPayload added in v0.71.0

func (*AdminClaimUserRewardsOK) ToJSONString added in v0.71.0

func (o *AdminClaimUserRewardsOK) ToJSONString() string

type AdminClaimUserRewardsParams added in v0.71.0

type AdminClaimUserRewardsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *challengeclientmodels.ModelClaimUserRewardsReq
	/*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
}

AdminClaimUserRewardsParams contains all the parameters to send to the API endpoint for the admin claim user rewards operation typically these are written to a http.Request

func NewAdminClaimUserRewardsParams added in v0.71.0

func NewAdminClaimUserRewardsParams() *AdminClaimUserRewardsParams

NewAdminClaimUserRewardsParams creates a new AdminClaimUserRewardsParams object with the default values initialized.

func NewAdminClaimUserRewardsParamsWithContext added in v0.71.0

func NewAdminClaimUserRewardsParamsWithContext(ctx context.Context) *AdminClaimUserRewardsParams

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

func NewAdminClaimUserRewardsParamsWithHTTPClient added in v0.71.0

func NewAdminClaimUserRewardsParamsWithHTTPClient(client *http.Client) *AdminClaimUserRewardsParams

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

func NewAdminClaimUserRewardsParamsWithTimeout added in v0.71.0

func NewAdminClaimUserRewardsParamsWithTimeout(timeout time.Duration) *AdminClaimUserRewardsParams

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

func (*AdminClaimUserRewardsParams) SetAuthInfoWriter added in v0.71.0

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

SetAuthInfoWriter adds the authInfoWriter to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) SetBody added in v0.71.0

SetBody adds the body to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) SetContext added in v0.71.0

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

SetContext adds the context to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) SetFlightId added in v0.71.0

func (o *AdminClaimUserRewardsParams) SetFlightId(flightId string)

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

func (*AdminClaimUserRewardsParams) SetHTTPClient added in v0.71.0

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

SetHTTPClient adds the HTTPClient to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) SetHTTPClientTransport added in v0.71.0

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

SetHTTPClient adds the HTTPClient Transport to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) SetNamespace added in v0.71.0

func (o *AdminClaimUserRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) SetTimeout added in v0.71.0

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

SetTimeout adds the timeout to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) SetUserID added in v0.71.0

func (o *AdminClaimUserRewardsParams) SetUserID(userID string)

SetUserID adds the userId to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) WithBody added in v0.71.0

WithBody adds the body to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) WithContext added in v0.71.0

WithContext adds the context to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) WithHTTPClient added in v0.71.0

WithHTTPClient adds the HTTPClient to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) WithNamespace added in v0.71.0

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

WithNamespace adds the namespace to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) WithTimeout added in v0.71.0

WithTimeout adds the timeout to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) WithUserID added in v0.71.0

WithUserID adds the userID to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) WriteToRequest added in v0.71.0

WriteToRequest writes these params to a swagger request

type AdminClaimUserRewardsReader added in v0.71.0

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

AdminClaimUserRewardsReader is a Reader for the AdminClaimUserRewards structure.

func (*AdminClaimUserRewardsReader) ReadResponse added in v0.71.0

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

ReadResponse reads a server response into the received o.

type AdminClaimUserRewardsUnauthorized added in v0.71.0

type AdminClaimUserRewardsUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUserRewardsUnauthorized 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 NewAdminClaimUserRewardsUnauthorized added in v0.71.0

func NewAdminClaimUserRewardsUnauthorized() *AdminClaimUserRewardsUnauthorized

NewAdminClaimUserRewardsUnauthorized creates a AdminClaimUserRewardsUnauthorized with default headers values

func (*AdminClaimUserRewardsUnauthorized) Error added in v0.71.0

func (*AdminClaimUserRewardsUnauthorized) GetPayload added in v0.71.0

func (*AdminClaimUserRewardsUnauthorized) ToJSONString added in v0.71.0

func (o *AdminClaimUserRewardsUnauthorized) ToJSONString() string

type AdminClaimUserRewardsUnprocessableEntity added in v0.71.0

type AdminClaimUserRewardsUnprocessableEntity struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUserRewardsUnprocessableEntity handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>99004</td><td>unprocessable entity: {{message}}</td></tr></table>

func NewAdminClaimUserRewardsUnprocessableEntity added in v0.71.0

func NewAdminClaimUserRewardsUnprocessableEntity() *AdminClaimUserRewardsUnprocessableEntity

NewAdminClaimUserRewardsUnprocessableEntity creates a AdminClaimUserRewardsUnprocessableEntity with default headers values

func (*AdminClaimUserRewardsUnprocessableEntity) Error added in v0.71.0

func (*AdminClaimUserRewardsUnprocessableEntity) GetPayload added in v0.71.0

func (*AdminClaimUserRewardsUnprocessableEntity) ToJSONString added in v0.71.0

type AdminClaimUsersRewardsBadRequest added in v0.71.0

type AdminClaimUsersRewardsBadRequest struct {
	Payload *challengeclientmodels.ResponseError
}

AdminClaimUsersRewardsBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20018</td><td>bad request: {{message}}</td></tr></table>

func NewAdminClaimUsersRewardsBadRequest added in v0.71.0

func NewAdminClaimUsersRewardsBadRequest() *AdminClaimUsersRewardsBadRequest

NewAdminClaimUsersRewardsBadRequest creates a AdminClaimUsersRewardsBadRequest with default headers values

func (*AdminClaimUsersRewardsBadRequest) Error added in v0.71.0

func (*AdminClaimUsersRewardsBadRequest) GetPayload added in v0.71.0

func (*AdminClaimUsersRewardsBadRequest) ToJSONString added in v0.71.0

func (o *AdminClaimUsersRewardsBadRequest) ToJSONString() string

type AdminClaimUsersRewardsForbidden added in v0.71.0

type AdminClaimUsersRewardsForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUsersRewardsForbidden handles this case with default header values.

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

func NewAdminClaimUsersRewardsForbidden added in v0.71.0

func NewAdminClaimUsersRewardsForbidden() *AdminClaimUsersRewardsForbidden

NewAdminClaimUsersRewardsForbidden creates a AdminClaimUsersRewardsForbidden with default headers values

func (*AdminClaimUsersRewardsForbidden) Error added in v0.71.0

func (*AdminClaimUsersRewardsForbidden) GetPayload added in v0.71.0

func (*AdminClaimUsersRewardsForbidden) ToJSONString added in v0.71.0

func (o *AdminClaimUsersRewardsForbidden) ToJSONString() string

type AdminClaimUsersRewardsInternalServerError added in v0.71.0

type AdminClaimUsersRewardsInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

AdminClaimUsersRewardsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>

func NewAdminClaimUsersRewardsInternalServerError added in v0.71.0

func NewAdminClaimUsersRewardsInternalServerError() *AdminClaimUsersRewardsInternalServerError

NewAdminClaimUsersRewardsInternalServerError creates a AdminClaimUsersRewardsInternalServerError with default headers values

func (*AdminClaimUsersRewardsInternalServerError) Error added in v0.71.0

func (*AdminClaimUsersRewardsInternalServerError) GetPayload added in v0.71.0

func (*AdminClaimUsersRewardsInternalServerError) ToJSONString added in v0.71.0

type AdminClaimUsersRewardsNotFound added in v0.71.0

type AdminClaimUsersRewardsNotFound struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUsersRewardsNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20029</td><td>not found</td></tr></table>

func NewAdminClaimUsersRewardsNotFound added in v0.71.0

func NewAdminClaimUsersRewardsNotFound() *AdminClaimUsersRewardsNotFound

NewAdminClaimUsersRewardsNotFound creates a AdminClaimUsersRewardsNotFound with default headers values

func (*AdminClaimUsersRewardsNotFound) Error added in v0.71.0

func (*AdminClaimUsersRewardsNotFound) GetPayload added in v0.71.0

func (*AdminClaimUsersRewardsNotFound) ToJSONString added in v0.71.0

func (o *AdminClaimUsersRewardsNotFound) ToJSONString() string

type AdminClaimUsersRewardsOK added in v0.71.0

type AdminClaimUsersRewardsOK struct {
	Payload []*challengeclientmodels.ModelClaimUsersRewardsResponse
}

AdminClaimUsersRewardsOK handles this case with default header values.

OK

func NewAdminClaimUsersRewardsOK added in v0.71.0

func NewAdminClaimUsersRewardsOK() *AdminClaimUsersRewardsOK

NewAdminClaimUsersRewardsOK creates a AdminClaimUsersRewardsOK with default headers values

func (*AdminClaimUsersRewardsOK) Error added in v0.71.0

func (o *AdminClaimUsersRewardsOK) Error() string

func (*AdminClaimUsersRewardsOK) GetPayload added in v0.71.0

func (*AdminClaimUsersRewardsOK) ToJSONString added in v0.71.0

func (o *AdminClaimUsersRewardsOK) ToJSONString() string

type AdminClaimUsersRewardsParams added in v0.71.0

type AdminClaimUsersRewardsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body []*challengeclientmodels.ModelClaimUsersRewardsRequest
	/*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
}

AdminClaimUsersRewardsParams contains all the parameters to send to the API endpoint for the admin claim users rewards operation typically these are written to a http.Request

func NewAdminClaimUsersRewardsParams added in v0.71.0

func NewAdminClaimUsersRewardsParams() *AdminClaimUsersRewardsParams

NewAdminClaimUsersRewardsParams creates a new AdminClaimUsersRewardsParams object with the default values initialized.

func NewAdminClaimUsersRewardsParamsWithContext added in v0.71.0

func NewAdminClaimUsersRewardsParamsWithContext(ctx context.Context) *AdminClaimUsersRewardsParams

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

func NewAdminClaimUsersRewardsParamsWithHTTPClient added in v0.71.0

func NewAdminClaimUsersRewardsParamsWithHTTPClient(client *http.Client) *AdminClaimUsersRewardsParams

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

func NewAdminClaimUsersRewardsParamsWithTimeout added in v0.71.0

func NewAdminClaimUsersRewardsParamsWithTimeout(timeout time.Duration) *AdminClaimUsersRewardsParams

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

func (*AdminClaimUsersRewardsParams) SetAuthInfoWriter added in v0.71.0

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

SetAuthInfoWriter adds the authInfoWriter to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) SetBody added in v0.71.0

SetBody adds the body to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) SetContext added in v0.71.0

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

SetContext adds the context to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) SetFlightId added in v0.71.0

func (o *AdminClaimUsersRewardsParams) SetFlightId(flightId string)

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

func (*AdminClaimUsersRewardsParams) SetHTTPClient added in v0.71.0

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

SetHTTPClient adds the HTTPClient to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) SetHTTPClientTransport added in v0.71.0

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

SetHTTPClient adds the HTTPClient Transport to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) SetNamespace added in v0.71.0

func (o *AdminClaimUsersRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) SetTimeout added in v0.71.0

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

SetTimeout adds the timeout to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) WithBody added in v0.71.0

WithBody adds the body to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) WithContext added in v0.71.0

WithContext adds the context to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) WithHTTPClient added in v0.71.0

WithHTTPClient adds the HTTPClient to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) WithNamespace added in v0.71.0

WithNamespace adds the namespace to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) WithTimeout added in v0.71.0

WithTimeout adds the timeout to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) WriteToRequest added in v0.71.0

WriteToRequest writes these params to a swagger request

type AdminClaimUsersRewardsReader added in v0.71.0

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

AdminClaimUsersRewardsReader is a Reader for the AdminClaimUsersRewards structure.

func (*AdminClaimUsersRewardsReader) ReadResponse added in v0.71.0

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

ReadResponse reads a server response into the received o.

type AdminClaimUsersRewardsUnauthorized added in v0.71.0

type AdminClaimUsersRewardsUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUsersRewardsUnauthorized 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 NewAdminClaimUsersRewardsUnauthorized added in v0.71.0

func NewAdminClaimUsersRewardsUnauthorized() *AdminClaimUsersRewardsUnauthorized

NewAdminClaimUsersRewardsUnauthorized creates a AdminClaimUsersRewardsUnauthorized with default headers values

func (*AdminClaimUsersRewardsUnauthorized) Error added in v0.71.0

func (*AdminClaimUsersRewardsUnauthorized) GetPayload added in v0.71.0

func (*AdminClaimUsersRewardsUnauthorized) ToJSONString added in v0.71.0

func (o *AdminClaimUsersRewardsUnauthorized) ToJSONString() string

type AdminGetUserRewardsForbidden

type AdminGetUserRewardsForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminGetUserRewardsForbidden handles this case with default header values.

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

func NewAdminGetUserRewardsForbidden

func NewAdminGetUserRewardsForbidden() *AdminGetUserRewardsForbidden

NewAdminGetUserRewardsForbidden creates a AdminGetUserRewardsForbidden with default headers values

func (*AdminGetUserRewardsForbidden) Error

func (*AdminGetUserRewardsForbidden) GetPayload

func (*AdminGetUserRewardsForbidden) ToJSONString

func (o *AdminGetUserRewardsForbidden) ToJSONString() string

type AdminGetUserRewardsInternalServerError

type AdminGetUserRewardsInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

AdminGetUserRewardsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>

func NewAdminGetUserRewardsInternalServerError

func NewAdminGetUserRewardsInternalServerError() *AdminGetUserRewardsInternalServerError

NewAdminGetUserRewardsInternalServerError creates a AdminGetUserRewardsInternalServerError with default headers values

func (*AdminGetUserRewardsInternalServerError) Error

func (*AdminGetUserRewardsInternalServerError) GetPayload

func (*AdminGetUserRewardsInternalServerError) ToJSONString

type AdminGetUserRewardsOK

type AdminGetUserRewardsOK struct {
	Payload *challengeclientmodels.ModelListUserRewardsResponse
}

AdminGetUserRewardsOK handles this case with default header values.

OK

func NewAdminGetUserRewardsOK

func NewAdminGetUserRewardsOK() *AdminGetUserRewardsOK

NewAdminGetUserRewardsOK creates a AdminGetUserRewardsOK with default headers values

func (*AdminGetUserRewardsOK) Error

func (o *AdminGetUserRewardsOK) Error() string

func (*AdminGetUserRewardsOK) GetPayload

func (*AdminGetUserRewardsOK) ToJSONString

func (o *AdminGetUserRewardsOK) ToJSONString() string

type AdminGetUserRewardsParams

type AdminGetUserRewardsParams struct {

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

	*/
	Namespace string
	/*UserID
	  user id

	*/
	UserID string
	/*Limit
	  limit the amount of data retrieved

	*/
	Limit *int64
	/*Offset
	  offset

	*/
	Offset *int64
	/*SortBy
	    sort list by attributes.
				default value: updatedAt:desc.
				available value:
					<li>createdAt, createdAt:desc, createdAt:asc</li>
					<li>updatedAt, updatedAt:desc, updatedAt:asc</li>


	*/
	SortBy *string
	/*Status
	  user reward status

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

AdminGetUserRewardsParams contains all the parameters to send to the API endpoint for the admin get user rewards operation typically these are written to a http.Request

func NewAdminGetUserRewardsParams

func NewAdminGetUserRewardsParams() *AdminGetUserRewardsParams

NewAdminGetUserRewardsParams creates a new AdminGetUserRewardsParams object with the default values initialized.

func NewAdminGetUserRewardsParamsWithContext

func NewAdminGetUserRewardsParamsWithContext(ctx context.Context) *AdminGetUserRewardsParams

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

func NewAdminGetUserRewardsParamsWithHTTPClient

func NewAdminGetUserRewardsParamsWithHTTPClient(client *http.Client) *AdminGetUserRewardsParams

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

func NewAdminGetUserRewardsParamsWithTimeout

func NewAdminGetUserRewardsParamsWithTimeout(timeout time.Duration) *AdminGetUserRewardsParams

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

func (*AdminGetUserRewardsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetContext

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

SetContext adds the context to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetFlightId

func (o *AdminGetUserRewardsParams) SetFlightId(flightId string)

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

func (*AdminGetUserRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetLimit

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

SetLimit adds the limit to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetNamespace

func (o *AdminGetUserRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetOffset

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

SetOffset adds the offset to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetSortBy

func (o *AdminGetUserRewardsParams) SetSortBy(sortBy *string)

SetSortBy adds the sortBy to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetStatus

func (o *AdminGetUserRewardsParams) SetStatus(status *string)

SetStatus adds the status to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetUserID

func (o *AdminGetUserRewardsParams) SetUserID(userID string)

SetUserID adds the userId to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithContext

WithContext adds the context to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithLimit

WithLimit adds the limit to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithNamespace

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

WithNamespace adds the namespace to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithOffset

WithOffset adds the offset to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithSortBy

WithSortBy adds the sortBy to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithStatus

WithStatus adds the status to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithTimeout

WithTimeout adds the timeout to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithUserID

WithUserID adds the userID to the admin get user rewards params

func (*AdminGetUserRewardsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminGetUserRewardsReader

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

AdminGetUserRewardsReader is a Reader for the AdminGetUserRewards structure.

func (*AdminGetUserRewardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminGetUserRewardsUnauthorized

type AdminGetUserRewardsUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminGetUserRewardsUnauthorized 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 NewAdminGetUserRewardsUnauthorized

func NewAdminGetUserRewardsUnauthorized() *AdminGetUserRewardsUnauthorized

NewAdminGetUserRewardsUnauthorized creates a AdminGetUserRewardsUnauthorized with default headers values

func (*AdminGetUserRewardsUnauthorized) Error

func (*AdminGetUserRewardsUnauthorized) GetPayload

func (*AdminGetUserRewardsUnauthorized) ToJSONString

func (o *AdminGetUserRewardsUnauthorized) ToJSONString() string

type Client

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

Client for player reward API

func (*Client) AdminClaimUserRewards deprecated added in v0.71.0

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

AdminClaimUserRewards claim rewards of a single user

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) AdminClaimUserRewardsShort added in v0.71.0

func (a *Client) AdminClaimUserRewardsShort(params *AdminClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminClaimUserRewardsOK, error)

AdminClaimUserRewardsShort claim rewards of a single user

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) AdminClaimUsersRewards deprecated added in v0.71.0

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

AdminClaimUsersRewards claim rewards of multiple users

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) AdminClaimUsersRewardsShort added in v0.71.0

func (a *Client) AdminClaimUsersRewardsShort(params *AdminClaimUsersRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminClaimUsersRewardsOK, error)

AdminClaimUsersRewardsShort claim rewards of multiple users

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) AdminGetUserRewards deprecated

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

AdminGetUserRewards list user's rewards

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [READ]

func (*Client) AdminGetUserRewardsShort

func (a *Client) AdminGetUserRewardsShort(params *AdminGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetUserRewardsOK, error)

AdminGetUserRewardsShort list user's rewards

  • Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [READ]

func (*Client) PublicClaimUserRewards deprecated

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

PublicClaimUserRewards claim user's rewards

  • Required permission: NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) PublicClaimUserRewardsShort

func (a *Client) PublicClaimUserRewardsShort(params *PublicClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardsOK, error)

PublicClaimUserRewardsShort claim user's rewards

  • Required permission: NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) PublicGetUserRewards deprecated

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

PublicGetUserRewards list user's rewards

  • Required permission: NAMESPACE:{namespace}:CHALLENGE:REWARD [READ]

func (*Client) PublicGetUserRewardsShort

func (a *Client) PublicGetUserRewardsShort(params *PublicGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserRewardsOK, error)

PublicGetUserRewardsShort list user's rewards

  • Required permission: NAMESPACE:{namespace}:CHALLENGE:REWARD [READ]

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	AdminClaimUsersRewards(params *AdminClaimUsersRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminClaimUsersRewardsOK, *AdminClaimUsersRewardsBadRequest, *AdminClaimUsersRewardsUnauthorized, *AdminClaimUsersRewardsForbidden, *AdminClaimUsersRewardsNotFound, *AdminClaimUsersRewardsInternalServerError, error)
	AdminClaimUsersRewardsShort(params *AdminClaimUsersRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminClaimUsersRewardsOK, error)
	AdminGetUserRewards(params *AdminGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetUserRewardsOK, *AdminGetUserRewardsUnauthorized, *AdminGetUserRewardsForbidden, *AdminGetUserRewardsInternalServerError, error)
	AdminGetUserRewardsShort(params *AdminGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetUserRewardsOK, error)
	AdminClaimUserRewards(params *AdminClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminClaimUserRewardsOK, *AdminClaimUserRewardsUnauthorized, *AdminClaimUserRewardsForbidden, *AdminClaimUserRewardsNotFound, *AdminClaimUserRewardsUnprocessableEntity, *AdminClaimUserRewardsInternalServerError, error)
	AdminClaimUserRewardsShort(params *AdminClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminClaimUserRewardsOK, error)
	PublicGetUserRewards(params *PublicGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserRewardsOK, *PublicGetUserRewardsUnauthorized, *PublicGetUserRewardsForbidden, *PublicGetUserRewardsInternalServerError, error)
	PublicGetUserRewardsShort(params *PublicGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserRewardsOK, error)
	PublicClaimUserRewards(params *PublicClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardsOK, *PublicClaimUserRewardsUnauthorized, *PublicClaimUserRewardsForbidden, *PublicClaimUserRewardsNotFound, *PublicClaimUserRewardsUnprocessableEntity, *PublicClaimUserRewardsInternalServerError, error)
	PublicClaimUserRewardsShort(params *PublicClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardsOK, 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 player reward API client.

type PublicClaimUserRewardsForbidden

type PublicClaimUserRewardsForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicClaimUserRewardsForbidden handles this case with default header values.

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

func NewPublicClaimUserRewardsForbidden

func NewPublicClaimUserRewardsForbidden() *PublicClaimUserRewardsForbidden

NewPublicClaimUserRewardsForbidden creates a PublicClaimUserRewardsForbidden with default headers values

func (*PublicClaimUserRewardsForbidden) Error

func (*PublicClaimUserRewardsForbidden) GetPayload

func (*PublicClaimUserRewardsForbidden) ToJSONString

func (o *PublicClaimUserRewardsForbidden) ToJSONString() string

type PublicClaimUserRewardsInternalServerError

type PublicClaimUserRewardsInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

PublicClaimUserRewardsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>

func NewPublicClaimUserRewardsInternalServerError

func NewPublicClaimUserRewardsInternalServerError() *PublicClaimUserRewardsInternalServerError

NewPublicClaimUserRewardsInternalServerError creates a PublicClaimUserRewardsInternalServerError with default headers values

func (*PublicClaimUserRewardsInternalServerError) Error

func (*PublicClaimUserRewardsInternalServerError) GetPayload

func (*PublicClaimUserRewardsInternalServerError) ToJSONString

type PublicClaimUserRewardsNotFound

type PublicClaimUserRewardsNotFound struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicClaimUserRewardsNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20029</td><td>not found</td></tr></table>

func NewPublicClaimUserRewardsNotFound

func NewPublicClaimUserRewardsNotFound() *PublicClaimUserRewardsNotFound

NewPublicClaimUserRewardsNotFound creates a PublicClaimUserRewardsNotFound with default headers values

func (*PublicClaimUserRewardsNotFound) Error

func (*PublicClaimUserRewardsNotFound) GetPayload

func (*PublicClaimUserRewardsNotFound) ToJSONString

func (o *PublicClaimUserRewardsNotFound) ToJSONString() string

type PublicClaimUserRewardsOK

type PublicClaimUserRewardsOK struct {
	Payload []*challengeclientmodels.ModelUserReward
}

PublicClaimUserRewardsOK handles this case with default header values.

OK

func NewPublicClaimUserRewardsOK

func NewPublicClaimUserRewardsOK() *PublicClaimUserRewardsOK

NewPublicClaimUserRewardsOK creates a PublicClaimUserRewardsOK with default headers values

func (*PublicClaimUserRewardsOK) Error

func (o *PublicClaimUserRewardsOK) Error() string

func (*PublicClaimUserRewardsOK) GetPayload

func (*PublicClaimUserRewardsOK) ToJSONString

func (o *PublicClaimUserRewardsOK) ToJSONString() string

type PublicClaimUserRewardsParams

type PublicClaimUserRewardsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *challengeclientmodels.ModelClaimUserRewardsReq
	/*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
}

PublicClaimUserRewardsParams contains all the parameters to send to the API endpoint for the public claim user rewards operation typically these are written to a http.Request

func NewPublicClaimUserRewardsParams

func NewPublicClaimUserRewardsParams() *PublicClaimUserRewardsParams

NewPublicClaimUserRewardsParams creates a new PublicClaimUserRewardsParams object with the default values initialized.

func NewPublicClaimUserRewardsParamsWithContext

func NewPublicClaimUserRewardsParamsWithContext(ctx context.Context) *PublicClaimUserRewardsParams

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

func NewPublicClaimUserRewardsParamsWithHTTPClient

func NewPublicClaimUserRewardsParamsWithHTTPClient(client *http.Client) *PublicClaimUserRewardsParams

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

func NewPublicClaimUserRewardsParamsWithTimeout

func NewPublicClaimUserRewardsParamsWithTimeout(timeout time.Duration) *PublicClaimUserRewardsParams

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

func (*PublicClaimUserRewardsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the public claim user rewards params

func (*PublicClaimUserRewardsParams) SetBody

SetBody adds the body to the public claim user rewards params

func (*PublicClaimUserRewardsParams) SetContext

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

SetContext adds the context to the public claim user rewards params

func (*PublicClaimUserRewardsParams) SetFlightId

func (o *PublicClaimUserRewardsParams) SetFlightId(flightId string)

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

func (*PublicClaimUserRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public claim user rewards params

func (*PublicClaimUserRewardsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the public claim user rewards params

func (*PublicClaimUserRewardsParams) SetNamespace

func (o *PublicClaimUserRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public claim user rewards params

func (*PublicClaimUserRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the public claim user rewards params

func (*PublicClaimUserRewardsParams) WithBody

WithBody adds the body to the public claim user rewards params

func (*PublicClaimUserRewardsParams) WithContext

WithContext adds the context to the public claim user rewards params

func (*PublicClaimUserRewardsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public claim user rewards params

func (*PublicClaimUserRewardsParams) WithNamespace

WithNamespace adds the namespace to the public claim user rewards params

func (*PublicClaimUserRewardsParams) WithTimeout

WithTimeout adds the timeout to the public claim user rewards params

func (*PublicClaimUserRewardsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicClaimUserRewardsReader

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

PublicClaimUserRewardsReader is a Reader for the PublicClaimUserRewards structure.

func (*PublicClaimUserRewardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicClaimUserRewardsUnauthorized

type PublicClaimUserRewardsUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicClaimUserRewardsUnauthorized 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 NewPublicClaimUserRewardsUnauthorized

func NewPublicClaimUserRewardsUnauthorized() *PublicClaimUserRewardsUnauthorized

NewPublicClaimUserRewardsUnauthorized creates a PublicClaimUserRewardsUnauthorized with default headers values

func (*PublicClaimUserRewardsUnauthorized) Error

func (*PublicClaimUserRewardsUnauthorized) GetPayload

func (*PublicClaimUserRewardsUnauthorized) ToJSONString

func (o *PublicClaimUserRewardsUnauthorized) ToJSONString() string

type PublicClaimUserRewardsUnprocessableEntity added in v0.71.0

type PublicClaimUserRewardsUnprocessableEntity struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicClaimUserRewardsUnprocessableEntity handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>99004</td><td>unprocessable entity: {{message}}</td></tr></table>

func NewPublicClaimUserRewardsUnprocessableEntity added in v0.71.0

func NewPublicClaimUserRewardsUnprocessableEntity() *PublicClaimUserRewardsUnprocessableEntity

NewPublicClaimUserRewardsUnprocessableEntity creates a PublicClaimUserRewardsUnprocessableEntity with default headers values

func (*PublicClaimUserRewardsUnprocessableEntity) Error added in v0.71.0

func (*PublicClaimUserRewardsUnprocessableEntity) GetPayload added in v0.71.0

func (*PublicClaimUserRewardsUnprocessableEntity) ToJSONString added in v0.71.0

type PublicGetUserRewardsForbidden

type PublicGetUserRewardsForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicGetUserRewardsForbidden handles this case with default header values.

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

func NewPublicGetUserRewardsForbidden

func NewPublicGetUserRewardsForbidden() *PublicGetUserRewardsForbidden

NewPublicGetUserRewardsForbidden creates a PublicGetUserRewardsForbidden with default headers values

func (*PublicGetUserRewardsForbidden) Error

func (*PublicGetUserRewardsForbidden) GetPayload

func (*PublicGetUserRewardsForbidden) ToJSONString

func (o *PublicGetUserRewardsForbidden) ToJSONString() string

type PublicGetUserRewardsInternalServerError

type PublicGetUserRewardsInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

PublicGetUserRewardsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>

func NewPublicGetUserRewardsInternalServerError

func NewPublicGetUserRewardsInternalServerError() *PublicGetUserRewardsInternalServerError

NewPublicGetUserRewardsInternalServerError creates a PublicGetUserRewardsInternalServerError with default headers values

func (*PublicGetUserRewardsInternalServerError) Error

func (*PublicGetUserRewardsInternalServerError) GetPayload

func (*PublicGetUserRewardsInternalServerError) ToJSONString

type PublicGetUserRewardsOK

type PublicGetUserRewardsOK struct {
	Payload *challengeclientmodels.ModelListUserRewardsResponse
}

PublicGetUserRewardsOK handles this case with default header values.

OK

func NewPublicGetUserRewardsOK

func NewPublicGetUserRewardsOK() *PublicGetUserRewardsOK

NewPublicGetUserRewardsOK creates a PublicGetUserRewardsOK with default headers values

func (*PublicGetUserRewardsOK) Error

func (o *PublicGetUserRewardsOK) Error() string

func (*PublicGetUserRewardsOK) GetPayload

func (*PublicGetUserRewardsOK) ToJSONString

func (o *PublicGetUserRewardsOK) ToJSONString() string

type PublicGetUserRewardsParams

type PublicGetUserRewardsParams struct {

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

	*/
	Namespace string
	/*Limit
	  limit the amount of data retrieved

	*/
	Limit *int64
	/*Offset
	  offset

	*/
	Offset *int64
	/*SortBy
	    sort list by attributes.
				default value: updatedAt:desc.
				available value:
					<li>createdAt, createdAt:desc, createdAt:asc</li>
					<li>updatedAt, updatedAt:desc, updatedAt:asc</li>


	*/
	SortBy *string
	/*Status
	  user reward status

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

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

func NewPublicGetUserRewardsParams

func NewPublicGetUserRewardsParams() *PublicGetUserRewardsParams

NewPublicGetUserRewardsParams creates a new PublicGetUserRewardsParams object with the default values initialized.

func NewPublicGetUserRewardsParamsWithContext

func NewPublicGetUserRewardsParamsWithContext(ctx context.Context) *PublicGetUserRewardsParams

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

func NewPublicGetUserRewardsParamsWithHTTPClient

func NewPublicGetUserRewardsParamsWithHTTPClient(client *http.Client) *PublicGetUserRewardsParams

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

func NewPublicGetUserRewardsParamsWithTimeout

func NewPublicGetUserRewardsParamsWithTimeout(timeout time.Duration) *PublicGetUserRewardsParams

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

func (*PublicGetUserRewardsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the public get user rewards params

func (*PublicGetUserRewardsParams) SetContext

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

SetContext adds the context to the public get user rewards params

func (*PublicGetUserRewardsParams) SetFlightId

func (o *PublicGetUserRewardsParams) SetFlightId(flightId string)

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

func (*PublicGetUserRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get user rewards params

func (*PublicGetUserRewardsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the public get user rewards params

func (*PublicGetUserRewardsParams) SetLimit

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

SetLimit adds the limit to the public get user rewards params

func (*PublicGetUserRewardsParams) SetNamespace

func (o *PublicGetUserRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get user rewards params

func (*PublicGetUserRewardsParams) SetOffset

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

SetOffset adds the offset to the public get user rewards params

func (*PublicGetUserRewardsParams) SetSortBy

func (o *PublicGetUserRewardsParams) SetSortBy(sortBy *string)

SetSortBy adds the sortBy to the public get user rewards params

func (*PublicGetUserRewardsParams) SetStatus

func (o *PublicGetUserRewardsParams) SetStatus(status *string)

SetStatus adds the status to the public get user rewards params

func (*PublicGetUserRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the public get user rewards params

func (*PublicGetUserRewardsParams) WithContext

WithContext adds the context to the public get user rewards params

func (*PublicGetUserRewardsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public get user rewards params

func (*PublicGetUserRewardsParams) WithLimit

WithLimit adds the limit to the public get user rewards params

func (*PublicGetUserRewardsParams) WithNamespace

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

WithNamespace adds the namespace to the public get user rewards params

func (*PublicGetUserRewardsParams) WithOffset

WithOffset adds the offset to the public get user rewards params

func (*PublicGetUserRewardsParams) WithSortBy

WithSortBy adds the sortBy to the public get user rewards params

func (*PublicGetUserRewardsParams) WithStatus

WithStatus adds the status to the public get user rewards params

func (*PublicGetUserRewardsParams) WithTimeout

WithTimeout adds the timeout to the public get user rewards params

func (*PublicGetUserRewardsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetUserRewardsReader

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

PublicGetUserRewardsReader is a Reader for the PublicGetUserRewards structure.

func (*PublicGetUserRewardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicGetUserRewardsUnauthorized

type PublicGetUserRewardsUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicGetUserRewardsUnauthorized 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 NewPublicGetUserRewardsUnauthorized

func NewPublicGetUserRewardsUnauthorized() *PublicGetUserRewardsUnauthorized

NewPublicGetUserRewardsUnauthorized creates a PublicGetUserRewardsUnauthorized with default headers values

func (*PublicGetUserRewardsUnauthorized) Error

func (*PublicGetUserRewardsUnauthorized) GetPayload

func (*PublicGetUserRewardsUnauthorized) ToJSONString

func (o *PublicGetUserRewardsUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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