Documentation ¶
Index ¶
- type CheckEventConditionNotFound
- type CheckEventConditionOK
- type CheckEventConditionParams
- func NewCheckEventConditionParams() *CheckEventConditionParams
- func NewCheckEventConditionParamsWithContext(ctx context.Context) *CheckEventConditionParams
- func NewCheckEventConditionParamsWithHTTPClient(client *http.Client) *CheckEventConditionParams
- func NewCheckEventConditionParamsWithTimeout(timeout time.Duration) *CheckEventConditionParams
- func (o *CheckEventConditionParams) SetBody(body *platformclientmodels.EventPayload)
- func (o *CheckEventConditionParams) SetContext(ctx context.Context)
- func (o *CheckEventConditionParams) SetHTTPClient(client *http.Client)
- func (o *CheckEventConditionParams) SetNamespace(namespace string)
- func (o *CheckEventConditionParams) SetRewardID(rewardID string)
- func (o *CheckEventConditionParams) SetTimeout(timeout time.Duration)
- func (o *CheckEventConditionParams) WithBody(body *platformclientmodels.EventPayload) *CheckEventConditionParams
- func (o *CheckEventConditionParams) WithContext(ctx context.Context) *CheckEventConditionParams
- func (o *CheckEventConditionParams) WithHTTPClient(client *http.Client) *CheckEventConditionParams
- func (o *CheckEventConditionParams) WithNamespace(namespace string) *CheckEventConditionParams
- func (o *CheckEventConditionParams) WithRewardID(rewardID string) *CheckEventConditionParams
- func (o *CheckEventConditionParams) WithTimeout(timeout time.Duration) *CheckEventConditionParams
- func (o *CheckEventConditionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CheckEventConditionReader
- type Client
- func (a *Client) CheckEventCondition(params *CheckEventConditionParams, authInfo runtime.ClientAuthInfoWriter) (*CheckEventConditionOK, *CheckEventConditionNotFound, error)
- func (a *Client) CheckEventConditionShort(params *CheckEventConditionParams, authInfo runtime.ClientAuthInfoWriter) (*CheckEventConditionOK, error)
- func (a *Client) CreateReward(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardOK, *CreateRewardNotFound, *CreateRewardConflict, ...)
- func (a *Client) CreateRewardShort(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardOK, error)
- func (a *Client) DeleteReward(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardOK, *DeleteRewardNotFound, error)
- func (a *Client) DeleteRewardShort(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardOK, error)
- func (a *Client) ExportRewards(params *ExportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ExportRewardsOK, error)
- func (a *Client) ExportRewardsShort(params *ExportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ExportRewardsOK, error)
- func (a *Client) GetReward(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, *GetRewardNotFound, error)
- func (a *Client) GetReward1(params *GetReward1Params, authInfo runtime.ClientAuthInfoWriter) (*GetReward1OK, *GetReward1NotFound, error)
- func (a *Client) GetReward1Short(params *GetReward1Params, authInfo runtime.ClientAuthInfoWriter) (*GetReward1OK, error)
- func (a *Client) GetRewardByCode(params *GetRewardByCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardByCodeOK, *GetRewardByCodeNotFound, error)
- func (a *Client) GetRewardByCodeShort(params *GetRewardByCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardByCodeOK, error)
- func (a *Client) GetRewardShort(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, error)
- func (a *Client) ImportRewards(params *ImportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportRewardsOK, *ImportRewardsBadRequest, error)
- func (a *Client) ImportRewardsShort(params *ImportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportRewardsOK, error)
- func (a *Client) QueryRewards(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, *QueryRewardsUnprocessableEntity, error)
- func (a *Client) QueryRewards1(params *QueryRewards1Params, authInfo runtime.ClientAuthInfoWriter) (*QueryRewards1OK, *QueryRewards1UnprocessableEntity, error)
- func (a *Client) QueryRewards1Short(params *QueryRewards1Params, authInfo runtime.ClientAuthInfoWriter) (*QueryRewards1OK, error)
- func (a *Client) QueryRewardsShort(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateReward(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, *UpdateRewardNotFound, *UpdateRewardConflict, error)
- func (a *Client) UpdateRewardShort(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, error)
- type ClientService
- type CreateRewardConflict
- type CreateRewardNotFound
- type CreateRewardOK
- type CreateRewardParams
- func (o *CreateRewardParams) SetBody(body *platformclientmodels.RewardCreate)
- func (o *CreateRewardParams) SetContext(ctx context.Context)
- func (o *CreateRewardParams) SetHTTPClient(client *http.Client)
- func (o *CreateRewardParams) SetNamespace(namespace string)
- func (o *CreateRewardParams) SetTimeout(timeout time.Duration)
- func (o *CreateRewardParams) WithBody(body *platformclientmodels.RewardCreate) *CreateRewardParams
- func (o *CreateRewardParams) WithContext(ctx context.Context) *CreateRewardParams
- func (o *CreateRewardParams) WithHTTPClient(client *http.Client) *CreateRewardParams
- func (o *CreateRewardParams) WithNamespace(namespace string) *CreateRewardParams
- func (o *CreateRewardParams) WithTimeout(timeout time.Duration) *CreateRewardParams
- func (o *CreateRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateRewardReader
- type CreateRewardUnprocessableEntity
- type DeleteRewardNotFound
- type DeleteRewardOK
- type DeleteRewardParams
- func (o *DeleteRewardParams) SetContext(ctx context.Context)
- func (o *DeleteRewardParams) SetHTTPClient(client *http.Client)
- func (o *DeleteRewardParams) SetNamespace(namespace string)
- func (o *DeleteRewardParams) SetRewardID(rewardID string)
- func (o *DeleteRewardParams) SetTimeout(timeout time.Duration)
- func (o *DeleteRewardParams) WithContext(ctx context.Context) *DeleteRewardParams
- func (o *DeleteRewardParams) WithHTTPClient(client *http.Client) *DeleteRewardParams
- func (o *DeleteRewardParams) WithNamespace(namespace string) *DeleteRewardParams
- func (o *DeleteRewardParams) WithRewardID(rewardID string) *DeleteRewardParams
- func (o *DeleteRewardParams) WithTimeout(timeout time.Duration) *DeleteRewardParams
- func (o *DeleteRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRewardReader
- type ExportRewardsOK
- type ExportRewardsParams
- func (o *ExportRewardsParams) SetContext(ctx context.Context)
- func (o *ExportRewardsParams) SetHTTPClient(client *http.Client)
- func (o *ExportRewardsParams) SetNamespace(namespace string)
- func (o *ExportRewardsParams) SetTimeout(timeout time.Duration)
- func (o *ExportRewardsParams) WithContext(ctx context.Context) *ExportRewardsParams
- func (o *ExportRewardsParams) WithHTTPClient(client *http.Client) *ExportRewardsParams
- func (o *ExportRewardsParams) WithNamespace(namespace string) *ExportRewardsParams
- func (o *ExportRewardsParams) WithTimeout(timeout time.Duration) *ExportRewardsParams
- func (o *ExportRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ExportRewardsReader
- type GetReward1NotFound
- type GetReward1OK
- type GetReward1Params
- func (o *GetReward1Params) SetContext(ctx context.Context)
- func (o *GetReward1Params) SetHTTPClient(client *http.Client)
- func (o *GetReward1Params) SetNamespace(namespace string)
- func (o *GetReward1Params) SetRewardID(rewardID string)
- func (o *GetReward1Params) SetTimeout(timeout time.Duration)
- func (o *GetReward1Params) WithContext(ctx context.Context) *GetReward1Params
- func (o *GetReward1Params) WithHTTPClient(client *http.Client) *GetReward1Params
- func (o *GetReward1Params) WithNamespace(namespace string) *GetReward1Params
- func (o *GetReward1Params) WithRewardID(rewardID string) *GetReward1Params
- func (o *GetReward1Params) WithTimeout(timeout time.Duration) *GetReward1Params
- func (o *GetReward1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetReward1Reader
- type GetRewardByCodeNotFound
- type GetRewardByCodeOK
- type GetRewardByCodeParams
- func NewGetRewardByCodeParams() *GetRewardByCodeParams
- func NewGetRewardByCodeParamsWithContext(ctx context.Context) *GetRewardByCodeParams
- func NewGetRewardByCodeParamsWithHTTPClient(client *http.Client) *GetRewardByCodeParams
- func NewGetRewardByCodeParamsWithTimeout(timeout time.Duration) *GetRewardByCodeParams
- func (o *GetRewardByCodeParams) SetContext(ctx context.Context)
- func (o *GetRewardByCodeParams) SetHTTPClient(client *http.Client)
- func (o *GetRewardByCodeParams) SetNamespace(namespace string)
- func (o *GetRewardByCodeParams) SetRewardCode(rewardCode string)
- func (o *GetRewardByCodeParams) SetTimeout(timeout time.Duration)
- func (o *GetRewardByCodeParams) WithContext(ctx context.Context) *GetRewardByCodeParams
- func (o *GetRewardByCodeParams) WithHTTPClient(client *http.Client) *GetRewardByCodeParams
- func (o *GetRewardByCodeParams) WithNamespace(namespace string) *GetRewardByCodeParams
- func (o *GetRewardByCodeParams) WithRewardCode(rewardCode string) *GetRewardByCodeParams
- func (o *GetRewardByCodeParams) WithTimeout(timeout time.Duration) *GetRewardByCodeParams
- func (o *GetRewardByCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRewardByCodeReader
- type GetRewardNotFound
- type GetRewardOK
- type GetRewardParams
- func (o *GetRewardParams) SetContext(ctx context.Context)
- func (o *GetRewardParams) SetHTTPClient(client *http.Client)
- func (o *GetRewardParams) SetNamespace(namespace string)
- func (o *GetRewardParams) SetRewardID(rewardID string)
- func (o *GetRewardParams) SetTimeout(timeout time.Duration)
- func (o *GetRewardParams) WithContext(ctx context.Context) *GetRewardParams
- func (o *GetRewardParams) WithHTTPClient(client *http.Client) *GetRewardParams
- func (o *GetRewardParams) WithNamespace(namespace string) *GetRewardParams
- func (o *GetRewardParams) WithRewardID(rewardID string) *GetRewardParams
- func (o *GetRewardParams) WithTimeout(timeout time.Duration) *GetRewardParams
- func (o *GetRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRewardReader
- type ImportRewardsBadRequest
- type ImportRewardsOK
- type ImportRewardsParams
- func (o *ImportRewardsParams) SetContext(ctx context.Context)
- func (o *ImportRewardsParams) SetFile(file runtime.NamedReadCloser)
- func (o *ImportRewardsParams) SetHTTPClient(client *http.Client)
- func (o *ImportRewardsParams) SetNamespace(namespace string)
- func (o *ImportRewardsParams) SetReplaceExisting(replaceExisting bool)
- func (o *ImportRewardsParams) SetTimeout(timeout time.Duration)
- func (o *ImportRewardsParams) WithContext(ctx context.Context) *ImportRewardsParams
- func (o *ImportRewardsParams) WithFile(file runtime.NamedReadCloser) *ImportRewardsParams
- func (o *ImportRewardsParams) WithHTTPClient(client *http.Client) *ImportRewardsParams
- func (o *ImportRewardsParams) WithNamespace(namespace string) *ImportRewardsParams
- func (o *ImportRewardsParams) WithReplaceExisting(replaceExisting bool) *ImportRewardsParams
- func (o *ImportRewardsParams) WithTimeout(timeout time.Duration) *ImportRewardsParams
- func (o *ImportRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ImportRewardsReader
- type QueryRewards1OK
- type QueryRewards1Params
- func (o *QueryRewards1Params) SetContext(ctx context.Context)
- func (o *QueryRewards1Params) SetEventTopic(eventTopic *string)
- func (o *QueryRewards1Params) SetHTTPClient(client *http.Client)
- func (o *QueryRewards1Params) SetLimit(limit *int32)
- func (o *QueryRewards1Params) SetNamespace(namespace string)
- func (o *QueryRewards1Params) SetOffset(offset *int32)
- func (o *QueryRewards1Params) SetSortBy(sortBy *string)
- func (o *QueryRewards1Params) SetTimeout(timeout time.Duration)
- func (o *QueryRewards1Params) WithContext(ctx context.Context) *QueryRewards1Params
- func (o *QueryRewards1Params) WithEventTopic(eventTopic *string) *QueryRewards1Params
- func (o *QueryRewards1Params) WithHTTPClient(client *http.Client) *QueryRewards1Params
- func (o *QueryRewards1Params) WithLimit(limit *int32) *QueryRewards1Params
- func (o *QueryRewards1Params) WithNamespace(namespace string) *QueryRewards1Params
- func (o *QueryRewards1Params) WithOffset(offset *int32) *QueryRewards1Params
- func (o *QueryRewards1Params) WithSortBy(sortBy *string) *QueryRewards1Params
- func (o *QueryRewards1Params) WithTimeout(timeout time.Duration) *QueryRewards1Params
- func (o *QueryRewards1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QueryRewards1Reader
- type QueryRewards1UnprocessableEntity
- type QueryRewardsOK
- type QueryRewardsParams
- func (o *QueryRewardsParams) SetContext(ctx context.Context)
- func (o *QueryRewardsParams) SetEventTopic(eventTopic *string)
- func (o *QueryRewardsParams) SetHTTPClient(client *http.Client)
- func (o *QueryRewardsParams) SetLimit(limit *int32)
- func (o *QueryRewardsParams) SetNamespace(namespace string)
- func (o *QueryRewardsParams) SetOffset(offset *int32)
- func (o *QueryRewardsParams) SetSortBy(sortBy *string)
- func (o *QueryRewardsParams) SetTimeout(timeout time.Duration)
- func (o *QueryRewardsParams) WithContext(ctx context.Context) *QueryRewardsParams
- func (o *QueryRewardsParams) WithEventTopic(eventTopic *string) *QueryRewardsParams
- func (o *QueryRewardsParams) WithHTTPClient(client *http.Client) *QueryRewardsParams
- func (o *QueryRewardsParams) WithLimit(limit *int32) *QueryRewardsParams
- func (o *QueryRewardsParams) WithNamespace(namespace string) *QueryRewardsParams
- func (o *QueryRewardsParams) WithOffset(offset *int32) *QueryRewardsParams
- func (o *QueryRewardsParams) WithSortBy(sortBy *string) *QueryRewardsParams
- func (o *QueryRewardsParams) WithTimeout(timeout time.Duration) *QueryRewardsParams
- func (o *QueryRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QueryRewardsReader
- type QueryRewardsUnprocessableEntity
- type UpdateRewardConflict
- type UpdateRewardNotFound
- type UpdateRewardOK
- type UpdateRewardParams
- func (o *UpdateRewardParams) SetBody(body *platformclientmodels.RewardUpdate)
- func (o *UpdateRewardParams) SetContext(ctx context.Context)
- func (o *UpdateRewardParams) SetHTTPClient(client *http.Client)
- func (o *UpdateRewardParams) SetNamespace(namespace string)
- func (o *UpdateRewardParams) SetRewardID(rewardID string)
- func (o *UpdateRewardParams) SetTimeout(timeout time.Duration)
- func (o *UpdateRewardParams) WithBody(body *platformclientmodels.RewardUpdate) *UpdateRewardParams
- func (o *UpdateRewardParams) WithContext(ctx context.Context) *UpdateRewardParams
- func (o *UpdateRewardParams) WithHTTPClient(client *http.Client) *UpdateRewardParams
- func (o *UpdateRewardParams) WithNamespace(namespace string) *UpdateRewardParams
- func (o *UpdateRewardParams) WithRewardID(rewardID string) *UpdateRewardParams
- func (o *UpdateRewardParams) WithTimeout(timeout time.Duration) *UpdateRewardParams
- func (o *UpdateRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateRewardReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckEventConditionNotFound ¶ added in v0.8.0
type CheckEventConditionNotFound struct {
Payload *platformclientmodels.ErrorEntity
}
CheckEventConditionNotFound 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 NewCheckEventConditionNotFound ¶ added in v0.8.0
func NewCheckEventConditionNotFound() *CheckEventConditionNotFound
NewCheckEventConditionNotFound creates a CheckEventConditionNotFound with default headers values
func (*CheckEventConditionNotFound) Error ¶ added in v0.8.0
func (o *CheckEventConditionNotFound) Error() string
func (*CheckEventConditionNotFound) GetPayload ¶ added in v0.8.0
func (o *CheckEventConditionNotFound) GetPayload() *platformclientmodels.ErrorEntity
type CheckEventConditionOK ¶ added in v0.8.0
type CheckEventConditionOK struct {
Payload *platformclientmodels.ConditionMatchResult
}
CheckEventConditionOK handles this case with default header values.
successful operation
func NewCheckEventConditionOK ¶ added in v0.8.0
func NewCheckEventConditionOK() *CheckEventConditionOK
NewCheckEventConditionOK creates a CheckEventConditionOK with default headers values
func (*CheckEventConditionOK) Error ¶ added in v0.8.0
func (o *CheckEventConditionOK) Error() string
func (*CheckEventConditionOK) GetPayload ¶ added in v0.8.0
func (o *CheckEventConditionOK) GetPayload() *platformclientmodels.ConditionMatchResult
type CheckEventConditionParams ¶ added in v0.8.0
type CheckEventConditionParams struct { /*Body*/ Body *platformclientmodels.EventPayload /*Namespace*/ Namespace string /*RewardID*/ RewardID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CheckEventConditionParams contains all the parameters to send to the API endpoint for the check event condition operation typically these are written to a http.Request
func NewCheckEventConditionParams ¶ added in v0.8.0
func NewCheckEventConditionParams() *CheckEventConditionParams
NewCheckEventConditionParams creates a new CheckEventConditionParams object with the default values initialized.
func NewCheckEventConditionParamsWithContext ¶ added in v0.8.0
func NewCheckEventConditionParamsWithContext(ctx context.Context) *CheckEventConditionParams
NewCheckEventConditionParamsWithContext creates a new CheckEventConditionParams object with the default values initialized, and the ability to set a context for a request
func NewCheckEventConditionParamsWithHTTPClient ¶ added in v0.8.0
func NewCheckEventConditionParamsWithHTTPClient(client *http.Client) *CheckEventConditionParams
NewCheckEventConditionParamsWithHTTPClient creates a new CheckEventConditionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCheckEventConditionParamsWithTimeout ¶ added in v0.8.0
func NewCheckEventConditionParamsWithTimeout(timeout time.Duration) *CheckEventConditionParams
NewCheckEventConditionParamsWithTimeout creates a new CheckEventConditionParams object with the default values initialized, and the ability to set a timeout on a request
func (*CheckEventConditionParams) SetBody ¶ added in v0.8.0
func (o *CheckEventConditionParams) SetBody(body *platformclientmodels.EventPayload)
SetBody adds the body to the check event condition params
func (*CheckEventConditionParams) SetContext ¶ added in v0.8.0
func (o *CheckEventConditionParams) SetContext(ctx context.Context)
SetContext adds the context to the check event condition params
func (*CheckEventConditionParams) SetHTTPClient ¶ added in v0.8.0
func (o *CheckEventConditionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the check event condition params
func (*CheckEventConditionParams) SetNamespace ¶ added in v0.8.0
func (o *CheckEventConditionParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the check event condition params
func (*CheckEventConditionParams) SetRewardID ¶ added in v0.8.0
func (o *CheckEventConditionParams) SetRewardID(rewardID string)
SetRewardID adds the rewardId to the check event condition params
func (*CheckEventConditionParams) SetTimeout ¶ added in v0.8.0
func (o *CheckEventConditionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the check event condition params
func (*CheckEventConditionParams) WithBody ¶ added in v0.8.0
func (o *CheckEventConditionParams) WithBody(body *platformclientmodels.EventPayload) *CheckEventConditionParams
WithBody adds the body to the check event condition params
func (*CheckEventConditionParams) WithContext ¶ added in v0.8.0
func (o *CheckEventConditionParams) WithContext(ctx context.Context) *CheckEventConditionParams
WithContext adds the context to the check event condition params
func (*CheckEventConditionParams) WithHTTPClient ¶ added in v0.8.0
func (o *CheckEventConditionParams) WithHTTPClient(client *http.Client) *CheckEventConditionParams
WithHTTPClient adds the HTTPClient to the check event condition params
func (*CheckEventConditionParams) WithNamespace ¶ added in v0.8.0
func (o *CheckEventConditionParams) WithNamespace(namespace string) *CheckEventConditionParams
WithNamespace adds the namespace to the check event condition params
func (*CheckEventConditionParams) WithRewardID ¶ added in v0.8.0
func (o *CheckEventConditionParams) WithRewardID(rewardID string) *CheckEventConditionParams
WithRewardID adds the rewardID to the check event condition params
func (*CheckEventConditionParams) WithTimeout ¶ added in v0.8.0
func (o *CheckEventConditionParams) WithTimeout(timeout time.Duration) *CheckEventConditionParams
WithTimeout adds the timeout to the check event condition params
func (*CheckEventConditionParams) WriteToRequest ¶ added in v0.8.0
func (o *CheckEventConditionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CheckEventConditionReader ¶ added in v0.8.0
type CheckEventConditionReader struct {
// contains filtered or unexported fields
}
CheckEventConditionReader is a Reader for the CheckEventCondition structure.
func (*CheckEventConditionReader) ReadResponse ¶ added in v0.8.0
func (o *CheckEventConditionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for reward API
func (*Client) CheckEventCondition ¶ added in v0.8.0
func (a *Client) CheckEventCondition(params *CheckEventConditionParams, authInfo runtime.ClientAuthInfoWriter) (*CheckEventConditionOK, *CheckEventConditionNotFound, error)
CheckEventCondition checks if event payload match reward condition
<b>[TEST FACILITY ONLY] Forbidden in live environment. </b>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=2 (READ)</li><li><i>Returns</i>: match result</li></ul>
func (*Client) CheckEventConditionShort ¶ added in v0.8.0
func (a *Client) CheckEventConditionShort(params *CheckEventConditionParams, authInfo runtime.ClientAuthInfoWriter) (*CheckEventConditionOK, error)
func (*Client) CreateReward ¶
func (a *Client) CreateReward(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardOK, *CreateRewardNotFound, *CreateRewardConflict, *CreateRewardUnprocessableEntity, error)
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) CreateRewardShort ¶ added in v0.8.0
func (a *Client) CreateRewardShort(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardOK, error)
func (*Client) DeleteReward ¶
func (a *Client) DeleteReward(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardOK, *DeleteRewardNotFound, error)
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) DeleteRewardShort ¶ added in v0.8.0
func (a *Client) DeleteRewardShort(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardOK, error)
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) ExportRewardsShort ¶ added in v0.8.0
func (a *Client) ExportRewardsShort(params *ExportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ExportRewardsOK, error)
func (*Client) GetReward ¶
func (a *Client) GetReward(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, *GetRewardNotFound, error)
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 ¶
func (a *Client) GetReward1(params *GetReward1Params, authInfo runtime.ClientAuthInfoWriter) (*GetReward1OK, *GetReward1NotFound, error)
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) GetReward1Short ¶ added in v0.8.0
func (a *Client) GetReward1Short(params *GetReward1Params, authInfo runtime.ClientAuthInfoWriter) (*GetReward1OK, error)
func (*Client) GetRewardByCode ¶ added in v0.7.0
func (a *Client) GetRewardByCode(params *GetRewardByCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardByCodeOK, *GetRewardByCodeNotFound, error)
GetRewardByCode gets a reward by code
This API is used to get reward by reward code.<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) GetRewardByCodeShort ¶ added in v0.8.0
func (a *Client) GetRewardByCodeShort(params *GetRewardByCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardByCodeOK, error)
func (*Client) GetRewardShort ¶ added in v0.8.0
func (a *Client) GetRewardShort(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, error)
func (*Client) ImportRewards ¶
func (a *Client) ImportRewards(params *ImportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportRewardsOK, *ImportRewardsBadRequest, error)
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) ImportRewardsShort ¶ added in v0.8.0
func (a *Client) ImportRewardsShort(params *ImportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportRewardsOK, error)
func (*Client) QueryRewards ¶
func (a *Client) QueryRewards(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, *QueryRewardsUnprocessableEntity, error)
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 ¶
func (a *Client) QueryRewards1(params *QueryRewards1Params, authInfo runtime.ClientAuthInfoWriter) (*QueryRewards1OK, *QueryRewards1UnprocessableEntity, error)
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) QueryRewards1Short ¶ added in v0.8.0
func (a *Client) QueryRewards1Short(params *QueryRewards1Params, authInfo runtime.ClientAuthInfoWriter) (*QueryRewards1OK, error)
func (*Client) QueryRewardsShort ¶ added in v0.8.0
func (a *Client) QueryRewardsShort(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, error)
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateReward ¶
func (a *Client) UpdateReward(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, *UpdateRewardNotFound, *UpdateRewardConflict, error)
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>
func (*Client) UpdateRewardShort ¶ added in v0.8.0
func (a *Client) UpdateRewardShort(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, error)
type ClientService ¶
type ClientService interface { CheckEventCondition(params *CheckEventConditionParams, authInfo runtime.ClientAuthInfoWriter) (*CheckEventConditionOK, *CheckEventConditionNotFound, error) CheckEventConditionShort(params *CheckEventConditionParams, authInfo runtime.ClientAuthInfoWriter) (*CheckEventConditionOK, error) CreateReward(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardOK, *CreateRewardNotFound, *CreateRewardConflict, *CreateRewardUnprocessableEntity, error) CreateRewardShort(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardOK, error) DeleteReward(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardOK, *DeleteRewardNotFound, error) DeleteRewardShort(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardOK, error) ExportRewards(params *ExportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ExportRewardsOK, error) ExportRewardsShort(params *ExportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ExportRewardsOK, error) GetReward(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, *GetRewardNotFound, error) GetRewardShort(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, error) GetRewardByCode(params *GetRewardByCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardByCodeOK, *GetRewardByCodeNotFound, error) GetRewardByCodeShort(params *GetRewardByCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardByCodeOK, error) GetReward1(params *GetReward1Params, authInfo runtime.ClientAuthInfoWriter) (*GetReward1OK, *GetReward1NotFound, error) GetReward1Short(params *GetReward1Params, authInfo runtime.ClientAuthInfoWriter) (*GetReward1OK, error) ImportRewards(params *ImportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportRewardsOK, *ImportRewardsBadRequest, error) ImportRewardsShort(params *ImportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportRewardsOK, error) QueryRewards(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, *QueryRewardsUnprocessableEntity, error) QueryRewardsShort(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, error) QueryRewards1(params *QueryRewards1Params, authInfo runtime.ClientAuthInfoWriter) (*QueryRewards1OK, *QueryRewards1UnprocessableEntity, error) QueryRewards1Short(params *QueryRewards1Params, authInfo runtime.ClientAuthInfoWriter) (*QueryRewards1OK, error) UpdateReward(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, *UpdateRewardNotFound, *UpdateRewardConflict, error) UpdateRewardShort(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, 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 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 ¶
func (o *CreateRewardConflict) GetPayload() *platformclientmodels.ErrorEntity
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 ¶
func (o *CreateRewardNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 ¶
func (o *CreateRewardOK) GetPayload() *platformclientmodels.RewardInfo
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 ¶
func (o *CreateRewardParams) SetBody(body *platformclientmodels.RewardCreate)
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 ¶
func (o *CreateRewardParams) WithBody(body *platformclientmodels.RewardCreate) *CreateRewardParams
WithBody adds the body to the create reward params
func (*CreateRewardParams) WithContext ¶
func (o *CreateRewardParams) WithContext(ctx context.Context) *CreateRewardParams
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 (o *CreateRewardUnprocessableEntity) Error() string
func (*CreateRewardUnprocessableEntity) GetPayload ¶
func (o *CreateRewardUnprocessableEntity) GetPayload() *platformclientmodels.ValidationErrorEntity
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 ¶
func (o *DeleteRewardNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 ¶
func (o *DeleteRewardOK) GetPayload() *platformclientmodels.RewardInfo
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 ¶
func (o *DeleteRewardParams) WithContext(ctx context.Context) *DeleteRewardParams
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 ¶
func (o *ExportRewardsParams) WithContext(ctx context.Context) *ExportRewardsParams
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 ¶
func (o *GetReward1NotFound) GetPayload() *platformclientmodels.ErrorEntity
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 GetRewardByCodeNotFound ¶ added in v0.7.0
type GetRewardByCodeNotFound struct {
Payload *platformclientmodels.ErrorEntity
}
GetRewardByCodeNotFound handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34043</td><td>Reward with code [{rewardCode}] does not exist in namespace [{namespace}]</td></tr></table>
func NewGetRewardByCodeNotFound ¶ added in v0.7.0
func NewGetRewardByCodeNotFound() *GetRewardByCodeNotFound
NewGetRewardByCodeNotFound creates a GetRewardByCodeNotFound with default headers values
func (*GetRewardByCodeNotFound) Error ¶ added in v0.7.0
func (o *GetRewardByCodeNotFound) Error() string
func (*GetRewardByCodeNotFound) GetPayload ¶ added in v0.7.0
func (o *GetRewardByCodeNotFound) GetPayload() *platformclientmodels.ErrorEntity
type GetRewardByCodeOK ¶ added in v0.7.0
type GetRewardByCodeOK struct {
Payload *platformclientmodels.RewardInfo
}
GetRewardByCodeOK handles this case with default header values.
successful operation
func NewGetRewardByCodeOK ¶ added in v0.7.0
func NewGetRewardByCodeOK() *GetRewardByCodeOK
NewGetRewardByCodeOK creates a GetRewardByCodeOK with default headers values
func (*GetRewardByCodeOK) Error ¶ added in v0.7.0
func (o *GetRewardByCodeOK) Error() string
func (*GetRewardByCodeOK) GetPayload ¶ added in v0.7.0
func (o *GetRewardByCodeOK) GetPayload() *platformclientmodels.RewardInfo
type GetRewardByCodeParams ¶ added in v0.7.0
type GetRewardByCodeParams struct { /*Namespace*/ Namespace string /*RewardCode*/ RewardCode string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRewardByCodeParams contains all the parameters to send to the API endpoint for the get reward by code operation typically these are written to a http.Request
func NewGetRewardByCodeParams ¶ added in v0.7.0
func NewGetRewardByCodeParams() *GetRewardByCodeParams
NewGetRewardByCodeParams creates a new GetRewardByCodeParams object with the default values initialized.
func NewGetRewardByCodeParamsWithContext ¶ added in v0.7.0
func NewGetRewardByCodeParamsWithContext(ctx context.Context) *GetRewardByCodeParams
NewGetRewardByCodeParamsWithContext creates a new GetRewardByCodeParams object with the default values initialized, and the ability to set a context for a request
func NewGetRewardByCodeParamsWithHTTPClient ¶ added in v0.7.0
func NewGetRewardByCodeParamsWithHTTPClient(client *http.Client) *GetRewardByCodeParams
NewGetRewardByCodeParamsWithHTTPClient creates a new GetRewardByCodeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetRewardByCodeParamsWithTimeout ¶ added in v0.7.0
func NewGetRewardByCodeParamsWithTimeout(timeout time.Duration) *GetRewardByCodeParams
NewGetRewardByCodeParamsWithTimeout creates a new GetRewardByCodeParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetRewardByCodeParams) SetContext ¶ added in v0.7.0
func (o *GetRewardByCodeParams) SetContext(ctx context.Context)
SetContext adds the context to the get reward by code params
func (*GetRewardByCodeParams) SetHTTPClient ¶ added in v0.7.0
func (o *GetRewardByCodeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get reward by code params
func (*GetRewardByCodeParams) SetNamespace ¶ added in v0.7.0
func (o *GetRewardByCodeParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get reward by code params
func (*GetRewardByCodeParams) SetRewardCode ¶ added in v0.7.0
func (o *GetRewardByCodeParams) SetRewardCode(rewardCode string)
SetRewardCode adds the rewardCode to the get reward by code params
func (*GetRewardByCodeParams) SetTimeout ¶ added in v0.7.0
func (o *GetRewardByCodeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get reward by code params
func (*GetRewardByCodeParams) WithContext ¶ added in v0.7.0
func (o *GetRewardByCodeParams) WithContext(ctx context.Context) *GetRewardByCodeParams
WithContext adds the context to the get reward by code params
func (*GetRewardByCodeParams) WithHTTPClient ¶ added in v0.7.0
func (o *GetRewardByCodeParams) WithHTTPClient(client *http.Client) *GetRewardByCodeParams
WithHTTPClient adds the HTTPClient to the get reward by code params
func (*GetRewardByCodeParams) WithNamespace ¶ added in v0.7.0
func (o *GetRewardByCodeParams) WithNamespace(namespace string) *GetRewardByCodeParams
WithNamespace adds the namespace to the get reward by code params
func (*GetRewardByCodeParams) WithRewardCode ¶ added in v0.7.0
func (o *GetRewardByCodeParams) WithRewardCode(rewardCode string) *GetRewardByCodeParams
WithRewardCode adds the rewardCode to the get reward by code params
func (*GetRewardByCodeParams) WithTimeout ¶ added in v0.7.0
func (o *GetRewardByCodeParams) WithTimeout(timeout time.Duration) *GetRewardByCodeParams
WithTimeout adds the timeout to the get reward by code params
func (*GetRewardByCodeParams) WriteToRequest ¶ added in v0.7.0
func (o *GetRewardByCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRewardByCodeReader ¶ added in v0.7.0
type GetRewardByCodeReader struct {
// contains filtered or unexported fields
}
GetRewardByCodeReader is a Reader for the GetRewardByCode structure.
func (*GetRewardByCodeReader) ReadResponse ¶ added in v0.7.0
func (o *GetRewardByCodeReader) 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 ¶
func (o *GetRewardNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 ¶
func (o *ImportRewardsBadRequest) GetPayload() *platformclientmodels.ErrorEntity
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 ¶
func (o *ImportRewardsParams) WithContext(ctx context.Context) *ImportRewardsParams
WithContext adds the context to the import rewards params
func (*ImportRewardsParams) WithFile ¶
func (o *ImportRewardsParams) WithFile(file runtime.NamedReadCloser) *ImportRewardsParams
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 ¶
func (o *QueryRewards1OK) GetPayload() *platformclientmodels.RewardPagingSlicedResult
type QueryRewards1Params ¶
type QueryRewards1Params struct { /*EventTopic event topic */ EventTopic *string /*Limit limit */ Limit *int32 /*Namespace*/ Namespace string /*Offset offset */ Offset *int32 /*SortBy default is namespace:asc,rewardCode:asc, allow values: [namespace, namespace:asc, namespace:desc, rewardCode, rewardCode:asc, rewardCode:desc],and support sort group, eg: sortBy=namespace:asc,rewardCode:asc */ 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 ¶
func (o *QueryRewards1Params) WithContext(ctx context.Context) *QueryRewards1Params
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 (o *QueryRewards1UnprocessableEntity) Error() string
func (*QueryRewards1UnprocessableEntity) GetPayload ¶
func (o *QueryRewards1UnprocessableEntity) GetPayload() *platformclientmodels.ValidationErrorEntity
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 ¶
func (o *QueryRewardsOK) GetPayload() *platformclientmodels.RewardPagingSlicedResult
type QueryRewardsParams ¶
type QueryRewardsParams struct { /*EventTopic*/ EventTopic *string /*Limit limit */ Limit *int32 /*Namespace*/ Namespace string /*Offset offset */ Offset *int32 /*SortBy default is namespace:asc,rewardCode:asc, allow values: [namespace, namespace:asc, namespace:desc, rewardCode, rewardCode:asc, rewardCode:desc],and support sort group, eg: sortBy=namespace:asc,rewardCode:asc */ 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 ¶
func (o *QueryRewardsParams) WithContext(ctx context.Context) *QueryRewardsParams
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 (o *QueryRewardsUnprocessableEntity) Error() string
func (*QueryRewardsUnprocessableEntity) GetPayload ¶
func (o *QueryRewardsUnprocessableEntity) GetPayload() *platformclientmodels.ValidationErrorEntity
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 ¶
func (o *UpdateRewardConflict) GetPayload() *platformclientmodels.ErrorEntity
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 ¶
func (o *UpdateRewardNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 ¶
func (o *UpdateRewardOK) GetPayload() *platformclientmodels.RewardInfo
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 ¶
func (o *UpdateRewardParams) SetBody(body *platformclientmodels.RewardUpdate)
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 ¶
func (o *UpdateRewardParams) WithBody(body *platformclientmodels.RewardUpdate) *UpdateRewardParams
WithBody adds the body to the update reward params
func (*UpdateRewardParams) WithContext ¶
func (o *UpdateRewardParams) WithContext(ctx context.Context) *UpdateRewardParams
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.
Source Files ¶
- check_event_condition_parameters.go
- check_event_condition_responses.go
- create_reward_parameters.go
- create_reward_responses.go
- delete_reward_parameters.go
- delete_reward_responses.go
- export_rewards_parameters.go
- export_rewards_responses.go
- get_reward1_parameters.go
- get_reward1_responses.go
- get_reward_by_code_parameters.go
- get_reward_by_code_responses.go
- get_reward_parameters.go
- get_reward_responses.go
- import_rewards_parameters.go
- import_rewards_responses.go
- query_rewards1_parameters.go
- query_rewards1_responses.go
- query_rewards_parameters.go
- query_rewards_responses.go
- reward_client.go
- update_reward_parameters.go
- update_reward_responses.go