reward

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 13 Imported by: 1

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 reward API

func (*Client) CreateReward

CreateReward creates a reward

This API is used to create a reward.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=1 (CREATE)</li><li><i>Returns</i>: created reward data</li></ul>

func (*Client) DeleteReward

DeleteReward deletes a reward

This API is used to delete a reward by reward Id. <p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=8 (DELETE)</li><li><i>Returns</i>: the deleted reward data</li></ul>

func (*Client) ExportRewards

func (a *Client) ExportRewards(params *ExportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ExportRewardsOK, error)

ExportRewards exports all reward configurations

Export reward configurations for a given namespace into file. At current, only JSON file is supported.<p>Other detail info:<ul><li><i>*Required permission*: resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=2 (READ)</li></ul>

func (*Client) GetReward

GetReward gets a reward

This API is used to get reward by reward Id.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=2 (READ)</li><li><i>Returns</i>: reward instance</li></ul>

func (*Client) GetReward1

GetReward1 gets a reward

This API is used to get reward by reward Id.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:REWARD", action=2 (READ)</li><li><i>Returns</i>: reward instance</li></ul>

func (*Client) ImportRewards

ImportRewards imports reward configurations

Import reward configurations for a given namespace from file. At current, only JSON file is supported.<p>Other detail info:<ul><li><i>*Required permission*: resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=1 (CREATE)</li></ul>

func (*Client) QueryRewards

QueryRewards queries rewards by criteria

This API is used to query rewards by criteria.<p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=2 (READ)</li><li><i>Returns</i>: the list of rewards</li></ul>

func (*Client) QueryRewards1

QueryRewards1 queries rewards by criteria

This API is used to query rewards by criteria.<p>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:REWARD", action=2 (READ)</li><li><i>Returns</i>: the list of rewards</li></ul>

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateReward

UpdateReward updates a reward

This API is used to update a reward.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=4 (UPDATE)</li><li><i>Returns</i>: reward instance</li></ul>

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new reward API client.

type CreateRewardConflict

type CreateRewardConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateRewardConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34071</td><td>Reward with code [{rewardCode}] already exists in namespace [{namespace}]</td></tr><tr><td>34072</td><td>Duplicate reward condition [{rewardConditionName}] found in reward [{rewardCode}]</td></tr></table>

func NewCreateRewardConflict

func NewCreateRewardConflict() *CreateRewardConflict

NewCreateRewardConflict creates a CreateRewardConflict with default headers values

func (*CreateRewardConflict) Error

func (o *CreateRewardConflict) Error() string

func (*CreateRewardConflict) GetPayload

type CreateRewardNotFound

type CreateRewardNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateRewardNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34042</td><td>Reward item [{itemId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewCreateRewardNotFound

func NewCreateRewardNotFound() *CreateRewardNotFound

NewCreateRewardNotFound creates a CreateRewardNotFound with default headers values

func (*CreateRewardNotFound) Error

func (o *CreateRewardNotFound) Error() string

func (*CreateRewardNotFound) GetPayload

type CreateRewardOK

type CreateRewardOK struct {
	Payload *platformclientmodels.RewardInfo
}

CreateRewardOK handles this case with default header values.

successful operation

func NewCreateRewardOK

func NewCreateRewardOK() *CreateRewardOK

NewCreateRewardOK creates a CreateRewardOK with default headers values

func (*CreateRewardOK) Error

func (o *CreateRewardOK) Error() string

func (*CreateRewardOK) GetPayload

type CreateRewardParams

type CreateRewardParams struct {

	/*Body*/
	Body *platformclientmodels.RewardCreate
	/*Namespace*/
	Namespace string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateRewardParams contains all the parameters to send to the API endpoint for the create reward operation typically these are written to a http.Request

func NewCreateRewardParams

func NewCreateRewardParams() *CreateRewardParams

NewCreateRewardParams creates a new CreateRewardParams object with the default values initialized.

func NewCreateRewardParamsWithContext

func NewCreateRewardParamsWithContext(ctx context.Context) *CreateRewardParams

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

func NewCreateRewardParamsWithHTTPClient

func NewCreateRewardParamsWithHTTPClient(client *http.Client) *CreateRewardParams

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

func NewCreateRewardParamsWithTimeout

func NewCreateRewardParamsWithTimeout(timeout time.Duration) *CreateRewardParams

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

func (*CreateRewardParams) SetBody

SetBody adds the body to the create reward params

func (*CreateRewardParams) SetContext

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

SetContext adds the context to the create reward params

func (*CreateRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create reward params

func (*CreateRewardParams) SetNamespace

func (o *CreateRewardParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create reward params

func (*CreateRewardParams) SetTimeout

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

SetTimeout adds the timeout to the create reward params

func (*CreateRewardParams) WithBody

WithBody adds the body to the create reward params

func (*CreateRewardParams) WithContext

WithContext adds the context to the create reward params

func (*CreateRewardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create reward params

func (*CreateRewardParams) WithNamespace

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

WithNamespace adds the namespace to the create reward params

func (*CreateRewardParams) WithTimeout

func (o *CreateRewardParams) WithTimeout(timeout time.Duration) *CreateRewardParams

WithTimeout adds the timeout to the create reward params

func (*CreateRewardParams) WriteToRequest

func (o *CreateRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateRewardReader

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

CreateRewardReader is a Reader for the CreateReward structure.

func (*CreateRewardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateRewardUnprocessableEntity

type CreateRewardUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

CreateRewardUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewCreateRewardUnprocessableEntity

func NewCreateRewardUnprocessableEntity() *CreateRewardUnprocessableEntity

NewCreateRewardUnprocessableEntity creates a CreateRewardUnprocessableEntity with default headers values

func (*CreateRewardUnprocessableEntity) Error

func (*CreateRewardUnprocessableEntity) GetPayload

type DeleteRewardNotFound

type DeleteRewardNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

DeleteRewardNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34041</td><td>Reward [{rewardId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewDeleteRewardNotFound

func NewDeleteRewardNotFound() *DeleteRewardNotFound

NewDeleteRewardNotFound creates a DeleteRewardNotFound with default headers values

func (*DeleteRewardNotFound) Error

func (o *DeleteRewardNotFound) Error() string

func (*DeleteRewardNotFound) GetPayload

type DeleteRewardOK

type DeleteRewardOK struct {
	Payload *platformclientmodels.RewardInfo
}

DeleteRewardOK handles this case with default header values.

successful operation

func NewDeleteRewardOK

func NewDeleteRewardOK() *DeleteRewardOK

NewDeleteRewardOK creates a DeleteRewardOK with default headers values

func (*DeleteRewardOK) Error

func (o *DeleteRewardOK) Error() string

func (*DeleteRewardOK) GetPayload

type DeleteRewardParams

type DeleteRewardParams struct {

	/*Namespace
	  Namespace

	*/
	Namespace string
	/*RewardID*/
	RewardID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteRewardParams contains all the parameters to send to the API endpoint for the delete reward operation typically these are written to a http.Request

func NewDeleteRewardParams

func NewDeleteRewardParams() *DeleteRewardParams

NewDeleteRewardParams creates a new DeleteRewardParams object with the default values initialized.

func NewDeleteRewardParamsWithContext

func NewDeleteRewardParamsWithContext(ctx context.Context) *DeleteRewardParams

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

func NewDeleteRewardParamsWithHTTPClient

func NewDeleteRewardParamsWithHTTPClient(client *http.Client) *DeleteRewardParams

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

func NewDeleteRewardParamsWithTimeout

func NewDeleteRewardParamsWithTimeout(timeout time.Duration) *DeleteRewardParams

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

func (*DeleteRewardParams) SetContext

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

SetContext adds the context to the delete reward params

func (*DeleteRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete reward params

func (*DeleteRewardParams) SetNamespace

func (o *DeleteRewardParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete reward params

func (*DeleteRewardParams) SetRewardID

func (o *DeleteRewardParams) SetRewardID(rewardID string)

SetRewardID adds the rewardId to the delete reward params

func (*DeleteRewardParams) SetTimeout

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

SetTimeout adds the timeout to the delete reward params

func (*DeleteRewardParams) WithContext

WithContext adds the context to the delete reward params

func (*DeleteRewardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete reward params

func (*DeleteRewardParams) WithNamespace

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

WithNamespace adds the namespace to the delete reward params

func (*DeleteRewardParams) WithRewardID

func (o *DeleteRewardParams) WithRewardID(rewardID string) *DeleteRewardParams

WithRewardID adds the rewardID to the delete reward params

func (*DeleteRewardParams) WithTimeout

func (o *DeleteRewardParams) WithTimeout(timeout time.Duration) *DeleteRewardParams

WithTimeout adds the timeout to the delete reward params

func (*DeleteRewardParams) WriteToRequest

func (o *DeleteRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteRewardReader

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

DeleteRewardReader is a Reader for the DeleteReward structure.

func (*DeleteRewardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ExportRewardsOK

type ExportRewardsOK struct {
}

ExportRewardsOK handles this case with default header values.

successful export of reward configs

func NewExportRewardsOK

func NewExportRewardsOK() *ExportRewardsOK

NewExportRewardsOK creates a ExportRewardsOK with default headers values

func (*ExportRewardsOK) Error

func (o *ExportRewardsOK) Error() string

type ExportRewardsParams

type ExportRewardsParams struct {

	/*Namespace
	  namespace

	*/
	Namespace string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ExportRewardsParams contains all the parameters to send to the API endpoint for the export rewards operation typically these are written to a http.Request

func NewExportRewardsParams

func NewExportRewardsParams() *ExportRewardsParams

NewExportRewardsParams creates a new ExportRewardsParams object with the default values initialized.

func NewExportRewardsParamsWithContext

func NewExportRewardsParamsWithContext(ctx context.Context) *ExportRewardsParams

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

func NewExportRewardsParamsWithHTTPClient

func NewExportRewardsParamsWithHTTPClient(client *http.Client) *ExportRewardsParams

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

func NewExportRewardsParamsWithTimeout

func NewExportRewardsParamsWithTimeout(timeout time.Duration) *ExportRewardsParams

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

func (*ExportRewardsParams) SetContext

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

SetContext adds the context to the export rewards params

func (*ExportRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the export rewards params

func (*ExportRewardsParams) SetNamespace

func (o *ExportRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the export rewards params

func (*ExportRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the export rewards params

func (*ExportRewardsParams) WithContext

WithContext adds the context to the export rewards params

func (*ExportRewardsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the export rewards params

func (*ExportRewardsParams) WithNamespace

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

WithNamespace adds the namespace to the export rewards params

func (*ExportRewardsParams) WithTimeout

func (o *ExportRewardsParams) WithTimeout(timeout time.Duration) *ExportRewardsParams

WithTimeout adds the timeout to the export rewards params

func (*ExportRewardsParams) WriteToRequest

func (o *ExportRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ExportRewardsReader

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

ExportRewardsReader is a Reader for the ExportRewards structure.

func (*ExportRewardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetReward1NotFound

type GetReward1NotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetReward1NotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34041</td><td>Reward [{rewardId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewGetReward1NotFound

func NewGetReward1NotFound() *GetReward1NotFound

NewGetReward1NotFound creates a GetReward1NotFound with default headers values

func (*GetReward1NotFound) Error

func (o *GetReward1NotFound) Error() string

func (*GetReward1NotFound) GetPayload

type GetReward1OK

type GetReward1OK struct {
	Payload *platformclientmodels.RewardInfo
}

GetReward1OK handles this case with default header values.

successful operation

func NewGetReward1OK

func NewGetReward1OK() *GetReward1OK

NewGetReward1OK creates a GetReward1OK with default headers values

func (*GetReward1OK) Error

func (o *GetReward1OK) Error() string

func (*GetReward1OK) GetPayload

func (o *GetReward1OK) GetPayload() *platformclientmodels.RewardInfo

type GetReward1Params

type GetReward1Params struct {

	/*Namespace*/
	Namespace string
	/*RewardID*/
	RewardID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetReward1Params contains all the parameters to send to the API endpoint for the get reward 1 operation typically these are written to a http.Request

func NewGetReward1Params

func NewGetReward1Params() *GetReward1Params

NewGetReward1Params creates a new GetReward1Params object with the default values initialized.

func NewGetReward1ParamsWithContext

func NewGetReward1ParamsWithContext(ctx context.Context) *GetReward1Params

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

func NewGetReward1ParamsWithHTTPClient

func NewGetReward1ParamsWithHTTPClient(client *http.Client) *GetReward1Params

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

func NewGetReward1ParamsWithTimeout

func NewGetReward1ParamsWithTimeout(timeout time.Duration) *GetReward1Params

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

func (*GetReward1Params) SetContext

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

SetContext adds the context to the get reward 1 params

func (*GetReward1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get reward 1 params

func (*GetReward1Params) SetNamespace

func (o *GetReward1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the get reward 1 params

func (*GetReward1Params) SetRewardID

func (o *GetReward1Params) SetRewardID(rewardID string)

SetRewardID adds the rewardId to the get reward 1 params

func (*GetReward1Params) SetTimeout

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

SetTimeout adds the timeout to the get reward 1 params

func (*GetReward1Params) WithContext

func (o *GetReward1Params) WithContext(ctx context.Context) *GetReward1Params

WithContext adds the context to the get reward 1 params

func (*GetReward1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get reward 1 params

func (*GetReward1Params) WithNamespace

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

WithNamespace adds the namespace to the get reward 1 params

func (*GetReward1Params) WithRewardID

func (o *GetReward1Params) WithRewardID(rewardID string) *GetReward1Params

WithRewardID adds the rewardID to the get reward 1 params

func (*GetReward1Params) WithTimeout

func (o *GetReward1Params) WithTimeout(timeout time.Duration) *GetReward1Params

WithTimeout adds the timeout to the get reward 1 params

func (*GetReward1Params) WriteToRequest

func (o *GetReward1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetReward1Reader

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

GetReward1Reader is a Reader for the GetReward1 structure.

func (*GetReward1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRewardNotFound

type GetRewardNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetRewardNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34041</td><td>Reward [{rewardId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewGetRewardNotFound

func NewGetRewardNotFound() *GetRewardNotFound

NewGetRewardNotFound creates a GetRewardNotFound with default headers values

func (*GetRewardNotFound) Error

func (o *GetRewardNotFound) Error() string

func (*GetRewardNotFound) GetPayload

type GetRewardOK

type GetRewardOK struct {
	Payload *platformclientmodels.RewardInfo
}

GetRewardOK handles this case with default header values.

successful operation

func NewGetRewardOK

func NewGetRewardOK() *GetRewardOK

NewGetRewardOK creates a GetRewardOK with default headers values

func (*GetRewardOK) Error

func (o *GetRewardOK) Error() string

func (*GetRewardOK) GetPayload

func (o *GetRewardOK) GetPayload() *platformclientmodels.RewardInfo

type GetRewardParams

type GetRewardParams struct {

	/*Namespace*/
	Namespace string
	/*RewardID*/
	RewardID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetRewardParams contains all the parameters to send to the API endpoint for the get reward operation typically these are written to a http.Request

func NewGetRewardParams

func NewGetRewardParams() *GetRewardParams

NewGetRewardParams creates a new GetRewardParams object with the default values initialized.

func NewGetRewardParamsWithContext

func NewGetRewardParamsWithContext(ctx context.Context) *GetRewardParams

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

func NewGetRewardParamsWithHTTPClient

func NewGetRewardParamsWithHTTPClient(client *http.Client) *GetRewardParams

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

func NewGetRewardParamsWithTimeout

func NewGetRewardParamsWithTimeout(timeout time.Duration) *GetRewardParams

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

func (*GetRewardParams) SetContext

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

SetContext adds the context to the get reward params

func (*GetRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get reward params

func (*GetRewardParams) SetNamespace

func (o *GetRewardParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get reward params

func (*GetRewardParams) SetRewardID

func (o *GetRewardParams) SetRewardID(rewardID string)

SetRewardID adds the rewardId to the get reward params

func (*GetRewardParams) SetTimeout

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

SetTimeout adds the timeout to the get reward params

func (*GetRewardParams) WithContext

func (o *GetRewardParams) WithContext(ctx context.Context) *GetRewardParams

WithContext adds the context to the get reward params

func (*GetRewardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get reward params

func (*GetRewardParams) WithNamespace

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

WithNamespace adds the namespace to the get reward params

func (*GetRewardParams) WithRewardID

func (o *GetRewardParams) WithRewardID(rewardID string) *GetRewardParams

WithRewardID adds the rewardID to the get reward params

func (*GetRewardParams) WithTimeout

func (o *GetRewardParams) WithTimeout(timeout time.Duration) *GetRewardParams

WithTimeout adds the timeout to the get reward params

func (*GetRewardParams) WriteToRequest

func (o *GetRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetRewardReader

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

GetRewardReader is a Reader for the GetReward structure.

func (*GetRewardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ImportRewardsBadRequest

type ImportRewardsBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

ImportRewardsBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34021</td><td>Reward data for namespace [{namespace}] is invalid</td></tr></table>

func NewImportRewardsBadRequest

func NewImportRewardsBadRequest() *ImportRewardsBadRequest

NewImportRewardsBadRequest creates a ImportRewardsBadRequest with default headers values

func (*ImportRewardsBadRequest) Error

func (o *ImportRewardsBadRequest) Error() string

func (*ImportRewardsBadRequest) GetPayload

type ImportRewardsOK

type ImportRewardsOK struct {
}

ImportRewardsOK handles this case with default header values.

successful import of reward configs

func NewImportRewardsOK

func NewImportRewardsOK() *ImportRewardsOK

NewImportRewardsOK creates a ImportRewardsOK with default headers values

func (*ImportRewardsOK) Error

func (o *ImportRewardsOK) Error() string

type ImportRewardsParams

type ImportRewardsParams struct {

	/*File*/
	File runtime.NamedReadCloser
	/*Namespace
	  namespace

	*/
	Namespace string
	/*ReplaceExisting
	  replaceExisting

	*/
	ReplaceExisting bool

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ImportRewardsParams contains all the parameters to send to the API endpoint for the import rewards operation typically these are written to a http.Request

func NewImportRewardsParams

func NewImportRewardsParams() *ImportRewardsParams

NewImportRewardsParams creates a new ImportRewardsParams object with the default values initialized.

func NewImportRewardsParamsWithContext

func NewImportRewardsParamsWithContext(ctx context.Context) *ImportRewardsParams

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

func NewImportRewardsParamsWithHTTPClient

func NewImportRewardsParamsWithHTTPClient(client *http.Client) *ImportRewardsParams

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

func NewImportRewardsParamsWithTimeout

func NewImportRewardsParamsWithTimeout(timeout time.Duration) *ImportRewardsParams

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

func (*ImportRewardsParams) SetContext

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

SetContext adds the context to the import rewards params

func (*ImportRewardsParams) SetFile

func (o *ImportRewardsParams) SetFile(file runtime.NamedReadCloser)

SetFile adds the file to the import rewards params

func (*ImportRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the import rewards params

func (*ImportRewardsParams) SetNamespace

func (o *ImportRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the import rewards params

func (*ImportRewardsParams) SetReplaceExisting

func (o *ImportRewardsParams) SetReplaceExisting(replaceExisting bool)

SetReplaceExisting adds the replaceExisting to the import rewards params

func (*ImportRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the import rewards params

func (*ImportRewardsParams) WithContext

WithContext adds the context to the import rewards params

func (*ImportRewardsParams) WithFile

WithFile adds the file to the import rewards params

func (*ImportRewardsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the import rewards params

func (*ImportRewardsParams) WithNamespace

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

WithNamespace adds the namespace to the import rewards params

func (*ImportRewardsParams) WithReplaceExisting

func (o *ImportRewardsParams) WithReplaceExisting(replaceExisting bool) *ImportRewardsParams

WithReplaceExisting adds the replaceExisting to the import rewards params

func (*ImportRewardsParams) WithTimeout

func (o *ImportRewardsParams) WithTimeout(timeout time.Duration) *ImportRewardsParams

WithTimeout adds the timeout to the import rewards params

func (*ImportRewardsParams) WriteToRequest

func (o *ImportRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ImportRewardsReader

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

ImportRewardsReader is a Reader for the ImportRewards structure.

func (*ImportRewardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryRewards1OK

type QueryRewards1OK struct {
	Payload *platformclientmodels.RewardPagingSlicedResult
}

QueryRewards1OK handles this case with default header values.

successful operation

func NewQueryRewards1OK

func NewQueryRewards1OK() *QueryRewards1OK

NewQueryRewards1OK creates a QueryRewards1OK with default headers values

func (*QueryRewards1OK) Error

func (o *QueryRewards1OK) Error() string

func (*QueryRewards1OK) GetPayload

type QueryRewards1Params

type QueryRewards1Params struct {

	/*EventTopic
	  event topic

	*/
	EventTopic *string
	/*Limit
	  limit

	*/
	Limit *int32
	/*Namespace*/
	Namespace string
	/*Offset
	  offset

	*/
	Offset *int32
	/*SortBy
	  default is name:asc,displayOrder:asc, allow values: [name, name:asc, name:desc, createdAt, createdAt:asc, createdAt:desc, updatedAt, updatedAt:asc, updatedAt:desc, displayOrder, displayOrder:asc, displayOrder:desc],and support sort group, eg: sortBy=name:asc,createdAt:desc

	*/
	SortBy *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

QueryRewards1Params contains all the parameters to send to the API endpoint for the query rewards 1 operation typically these are written to a http.Request

func NewQueryRewards1Params

func NewQueryRewards1Params() *QueryRewards1Params

NewQueryRewards1Params creates a new QueryRewards1Params object with the default values initialized.

func NewQueryRewards1ParamsWithContext

func NewQueryRewards1ParamsWithContext(ctx context.Context) *QueryRewards1Params

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

func NewQueryRewards1ParamsWithHTTPClient

func NewQueryRewards1ParamsWithHTTPClient(client *http.Client) *QueryRewards1Params

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

func NewQueryRewards1ParamsWithTimeout

func NewQueryRewards1ParamsWithTimeout(timeout time.Duration) *QueryRewards1Params

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

func (*QueryRewards1Params) SetContext

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

SetContext adds the context to the query rewards 1 params

func (*QueryRewards1Params) SetEventTopic

func (o *QueryRewards1Params) SetEventTopic(eventTopic *string)

SetEventTopic adds the eventTopic to the query rewards 1 params

func (*QueryRewards1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query rewards 1 params

func (*QueryRewards1Params) SetLimit

func (o *QueryRewards1Params) SetLimit(limit *int32)

SetLimit adds the limit to the query rewards 1 params

func (*QueryRewards1Params) SetNamespace

func (o *QueryRewards1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the query rewards 1 params

func (*QueryRewards1Params) SetOffset

func (o *QueryRewards1Params) SetOffset(offset *int32)

SetOffset adds the offset to the query rewards 1 params

func (*QueryRewards1Params) SetSortBy

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

SetSortBy adds the sortBy to the query rewards 1 params

func (*QueryRewards1Params) SetTimeout

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

SetTimeout adds the timeout to the query rewards 1 params

func (*QueryRewards1Params) WithContext

WithContext adds the context to the query rewards 1 params

func (*QueryRewards1Params) WithEventTopic

func (o *QueryRewards1Params) WithEventTopic(eventTopic *string) *QueryRewards1Params

WithEventTopic adds the eventTopic to the query rewards 1 params

func (*QueryRewards1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query rewards 1 params

func (*QueryRewards1Params) WithLimit

func (o *QueryRewards1Params) WithLimit(limit *int32) *QueryRewards1Params

WithLimit adds the limit to the query rewards 1 params

func (*QueryRewards1Params) WithNamespace

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

WithNamespace adds the namespace to the query rewards 1 params

func (*QueryRewards1Params) WithOffset

func (o *QueryRewards1Params) WithOffset(offset *int32) *QueryRewards1Params

WithOffset adds the offset to the query rewards 1 params

func (*QueryRewards1Params) WithSortBy

func (o *QueryRewards1Params) WithSortBy(sortBy *string) *QueryRewards1Params

WithSortBy adds the sortBy to the query rewards 1 params

func (*QueryRewards1Params) WithTimeout

func (o *QueryRewards1Params) WithTimeout(timeout time.Duration) *QueryRewards1Params

WithTimeout adds the timeout to the query rewards 1 params

func (*QueryRewards1Params) WriteToRequest

func (o *QueryRewards1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type QueryRewards1Reader

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

QueryRewards1Reader is a Reader for the QueryRewards1 structure.

func (*QueryRewards1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryRewards1UnprocessableEntity

type QueryRewards1UnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

QueryRewards1UnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewQueryRewards1UnprocessableEntity

func NewQueryRewards1UnprocessableEntity() *QueryRewards1UnprocessableEntity

NewQueryRewards1UnprocessableEntity creates a QueryRewards1UnprocessableEntity with default headers values

func (*QueryRewards1UnprocessableEntity) Error

func (*QueryRewards1UnprocessableEntity) GetPayload

type QueryRewardsOK

type QueryRewardsOK struct {
	Payload *platformclientmodels.RewardPagingSlicedResult
}

QueryRewardsOK handles this case with default header values.

successful operation

func NewQueryRewardsOK

func NewQueryRewardsOK() *QueryRewardsOK

NewQueryRewardsOK creates a QueryRewardsOK with default headers values

func (*QueryRewardsOK) Error

func (o *QueryRewardsOK) Error() string

func (*QueryRewardsOK) GetPayload

type QueryRewardsParams

type QueryRewardsParams struct {

	/*EventTopic*/
	EventTopic *string
	/*Limit
	  limit

	*/
	Limit *int32
	/*Namespace*/
	Namespace string
	/*Offset
	  offset

	*/
	Offset *int32
	/*SortBy
	  default is name:asc,displayOrder:asc, allow values: [name, name:asc, name:desc, createdAt, createdAt:asc, createdAt:desc, updatedAt, updatedAt:asc, updatedAt:desc, displayOrder, displayOrder:asc, displayOrder:desc],and support sort group, eg: sortBy=name:asc,createdAt:desc

	*/
	SortBy *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

QueryRewardsParams contains all the parameters to send to the API endpoint for the query rewards operation typically these are written to a http.Request

func NewQueryRewardsParams

func NewQueryRewardsParams() *QueryRewardsParams

NewQueryRewardsParams creates a new QueryRewardsParams object with the default values initialized.

func NewQueryRewardsParamsWithContext

func NewQueryRewardsParamsWithContext(ctx context.Context) *QueryRewardsParams

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

func NewQueryRewardsParamsWithHTTPClient

func NewQueryRewardsParamsWithHTTPClient(client *http.Client) *QueryRewardsParams

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

func NewQueryRewardsParamsWithTimeout

func NewQueryRewardsParamsWithTimeout(timeout time.Duration) *QueryRewardsParams

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

func (*QueryRewardsParams) SetContext

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

SetContext adds the context to the query rewards params

func (*QueryRewardsParams) SetEventTopic

func (o *QueryRewardsParams) SetEventTopic(eventTopic *string)

SetEventTopic adds the eventTopic to the query rewards params

func (*QueryRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query rewards params

func (*QueryRewardsParams) SetLimit

func (o *QueryRewardsParams) SetLimit(limit *int32)

SetLimit adds the limit to the query rewards params

func (*QueryRewardsParams) SetNamespace

func (o *QueryRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query rewards params

func (*QueryRewardsParams) SetOffset

func (o *QueryRewardsParams) SetOffset(offset *int32)

SetOffset adds the offset to the query rewards params

func (*QueryRewardsParams) SetSortBy

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

SetSortBy adds the sortBy to the query rewards params

func (*QueryRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the query rewards params

func (*QueryRewardsParams) WithContext

WithContext adds the context to the query rewards params

func (*QueryRewardsParams) WithEventTopic

func (o *QueryRewardsParams) WithEventTopic(eventTopic *string) *QueryRewardsParams

WithEventTopic adds the eventTopic to the query rewards params

func (*QueryRewardsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query rewards params

func (*QueryRewardsParams) WithLimit

func (o *QueryRewardsParams) WithLimit(limit *int32) *QueryRewardsParams

WithLimit adds the limit to the query rewards params

func (*QueryRewardsParams) WithNamespace

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

WithNamespace adds the namespace to the query rewards params

func (*QueryRewardsParams) WithOffset

func (o *QueryRewardsParams) WithOffset(offset *int32) *QueryRewardsParams

WithOffset adds the offset to the query rewards params

func (*QueryRewardsParams) WithSortBy

func (o *QueryRewardsParams) WithSortBy(sortBy *string) *QueryRewardsParams

WithSortBy adds the sortBy to the query rewards params

func (*QueryRewardsParams) WithTimeout

func (o *QueryRewardsParams) WithTimeout(timeout time.Duration) *QueryRewardsParams

WithTimeout adds the timeout to the query rewards params

func (*QueryRewardsParams) WriteToRequest

func (o *QueryRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type QueryRewardsReader

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

QueryRewardsReader is a Reader for the QueryRewards structure.

func (*QueryRewardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryRewardsUnprocessableEntity

type QueryRewardsUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

QueryRewardsUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewQueryRewardsUnprocessableEntity

func NewQueryRewardsUnprocessableEntity() *QueryRewardsUnprocessableEntity

NewQueryRewardsUnprocessableEntity creates a QueryRewardsUnprocessableEntity with default headers values

func (*QueryRewardsUnprocessableEntity) Error

func (*QueryRewardsUnprocessableEntity) GetPayload

type UpdateRewardConflict

type UpdateRewardConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateRewardConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34072</td><td>Duplicate reward condition [{rewardConditionName}] found in reward [{rewardCode}]</td></tr></table>

func NewUpdateRewardConflict

func NewUpdateRewardConflict() *UpdateRewardConflict

NewUpdateRewardConflict creates a UpdateRewardConflict with default headers values

func (*UpdateRewardConflict) Error

func (o *UpdateRewardConflict) Error() string

func (*UpdateRewardConflict) GetPayload

type UpdateRewardNotFound

type UpdateRewardNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateRewardNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34041</td><td>Reward [{rewardId}] does not exist in namespace [{namespace}]</td></tr><tr><td>34042</td><td>Reward item [{itemId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewUpdateRewardNotFound

func NewUpdateRewardNotFound() *UpdateRewardNotFound

NewUpdateRewardNotFound creates a UpdateRewardNotFound with default headers values

func (*UpdateRewardNotFound) Error

func (o *UpdateRewardNotFound) Error() string

func (*UpdateRewardNotFound) GetPayload

type UpdateRewardOK

type UpdateRewardOK struct {
	Payload *platformclientmodels.RewardInfo
}

UpdateRewardOK handles this case with default header values.

successful operation

func NewUpdateRewardOK

func NewUpdateRewardOK() *UpdateRewardOK

NewUpdateRewardOK creates a UpdateRewardOK with default headers values

func (*UpdateRewardOK) Error

func (o *UpdateRewardOK) Error() string

func (*UpdateRewardOK) GetPayload

type UpdateRewardParams

type UpdateRewardParams struct {

	/*Body*/
	Body *platformclientmodels.RewardUpdate
	/*Namespace*/
	Namespace string
	/*RewardID*/
	RewardID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateRewardParams contains all the parameters to send to the API endpoint for the update reward operation typically these are written to a http.Request

func NewUpdateRewardParams

func NewUpdateRewardParams() *UpdateRewardParams

NewUpdateRewardParams creates a new UpdateRewardParams object with the default values initialized.

func NewUpdateRewardParamsWithContext

func NewUpdateRewardParamsWithContext(ctx context.Context) *UpdateRewardParams

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

func NewUpdateRewardParamsWithHTTPClient

func NewUpdateRewardParamsWithHTTPClient(client *http.Client) *UpdateRewardParams

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

func NewUpdateRewardParamsWithTimeout

func NewUpdateRewardParamsWithTimeout(timeout time.Duration) *UpdateRewardParams

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

func (*UpdateRewardParams) SetBody

SetBody adds the body to the update reward params

func (*UpdateRewardParams) SetContext

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

SetContext adds the context to the update reward params

func (*UpdateRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update reward params

func (*UpdateRewardParams) SetNamespace

func (o *UpdateRewardParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update reward params

func (*UpdateRewardParams) SetRewardID

func (o *UpdateRewardParams) SetRewardID(rewardID string)

SetRewardID adds the rewardId to the update reward params

func (*UpdateRewardParams) SetTimeout

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

SetTimeout adds the timeout to the update reward params

func (*UpdateRewardParams) WithBody

WithBody adds the body to the update reward params

func (*UpdateRewardParams) WithContext

WithContext adds the context to the update reward params

func (*UpdateRewardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update reward params

func (*UpdateRewardParams) WithNamespace

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

WithNamespace adds the namespace to the update reward params

func (*UpdateRewardParams) WithRewardID

func (o *UpdateRewardParams) WithRewardID(rewardID string) *UpdateRewardParams

WithRewardID adds the rewardID to the update reward params

func (*UpdateRewardParams) WithTimeout

func (o *UpdateRewardParams) WithTimeout(timeout time.Duration) *UpdateRewardParams

WithTimeout adds the timeout to the update reward params

func (*UpdateRewardParams) WriteToRequest

func (o *UpdateRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateRewardReader

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

UpdateRewardReader is a Reader for the UpdateReward structure.

func (*UpdateRewardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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