player_reward

package
v0.68.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

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 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) 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 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 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