Help us shape the future of Go! Take the 2026 Go Developer Survey

campaign

package
v0.89.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyUserRedemptionConflict

type ApplyUserRedemptionConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

ApplyUserRedemptionConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37172</td><td>Campaign [{campaignId}] is inactive in namespace [{namespace}]</td></tr><tr><td>37173</td><td>Code [{code}] is inactive in namespace [{namespace}]</td></tr><tr><td>37174</td><td>Exceeded max redeem count per code [{maxCount}]</td></tr><tr><td>37175</td><td>Exceeded max redeem count per code per user [{maxCount}]</td></tr><tr><td>37177</td><td>Code redemption not started</td></tr><tr><td>37178</td><td>Code redemption already ended</td></tr><tr><td>37179</td><td>Exceeded max redeem count per campaign per user [{maxCount}]</td></tr></table>

func NewApplyUserRedemptionConflict

func NewApplyUserRedemptionConflict() *ApplyUserRedemptionConflict

NewApplyUserRedemptionConflict creates a ApplyUserRedemptionConflict with default headers values

func (*ApplyUserRedemptionConflict) Error

func (*ApplyUserRedemptionConflict) GetPayload

func (*ApplyUserRedemptionConflict) ToJSONString added in v0.25.0

func (o *ApplyUserRedemptionConflict) ToJSONString() string

type ApplyUserRedemptionNotFound

type ApplyUserRedemptionNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

ApplyUserRedemptionNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37142</td><td>Code [{code}] does not exist in namespace [{namespace}]</td></tr></table>

func NewApplyUserRedemptionNotFound

func NewApplyUserRedemptionNotFound() *ApplyUserRedemptionNotFound

NewApplyUserRedemptionNotFound creates a ApplyUserRedemptionNotFound with default headers values

func (*ApplyUserRedemptionNotFound) Error

func (*ApplyUserRedemptionNotFound) GetPayload

func (*ApplyUserRedemptionNotFound) ToJSONString added in v0.25.0

func (o *ApplyUserRedemptionNotFound) ToJSONString() string

type ApplyUserRedemptionOK

type ApplyUserRedemptionOK struct {
	Payload *platformclientmodels.RedeemResult
}

ApplyUserRedemptionOK handles this case with default header values.

successful operation

func NewApplyUserRedemptionOK

func NewApplyUserRedemptionOK() *ApplyUserRedemptionOK

NewApplyUserRedemptionOK creates a ApplyUserRedemptionOK with default headers values

func (*ApplyUserRedemptionOK) Error

func (o *ApplyUserRedemptionOK) Error() string

func (*ApplyUserRedemptionOK) GetPayload

func (*ApplyUserRedemptionOK) ToJSONString added in v0.25.0

func (o *ApplyUserRedemptionOK) ToJSONString() string

type ApplyUserRedemptionParams

type ApplyUserRedemptionParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.RedeemRequest
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

ApplyUserRedemptionParams contains all the parameters to send to the API endpoint for the apply user redemption operation typically these are written to a http.Request

func NewApplyUserRedemptionParams

func NewApplyUserRedemptionParams() *ApplyUserRedemptionParams

NewApplyUserRedemptionParams creates a new ApplyUserRedemptionParams object with the default values initialized.

func NewApplyUserRedemptionParamsWithContext

func NewApplyUserRedemptionParamsWithContext(ctx context.Context) *ApplyUserRedemptionParams

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

func NewApplyUserRedemptionParamsWithHTTPClient

func NewApplyUserRedemptionParamsWithHTTPClient(client *http.Client) *ApplyUserRedemptionParams

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

func NewApplyUserRedemptionParamsWithTimeout

func NewApplyUserRedemptionParamsWithTimeout(timeout time.Duration) *ApplyUserRedemptionParams

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

func (*ApplyUserRedemptionParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the apply user redemption params

func (*ApplyUserRedemptionParams) SetBody

SetBody adds the body to the apply user redemption params

func (*ApplyUserRedemptionParams) SetContext

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

SetContext adds the context to the apply user redemption params

func (*ApplyUserRedemptionParams) SetFlightId added in v0.63.0

func (o *ApplyUserRedemptionParams) SetFlightId(flightId string)

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

func (*ApplyUserRedemptionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the apply user redemption params

func (*ApplyUserRedemptionParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the apply user redemption params

func (*ApplyUserRedemptionParams) SetNamespace

func (o *ApplyUserRedemptionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the apply user redemption params

func (*ApplyUserRedemptionParams) SetTimeout

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

SetTimeout adds the timeout to the apply user redemption params

func (*ApplyUserRedemptionParams) SetUserID

func (o *ApplyUserRedemptionParams) SetUserID(userID string)

SetUserID adds the userId to the apply user redemption params

func (*ApplyUserRedemptionParams) WithBody

WithBody adds the body to the apply user redemption params

func (*ApplyUserRedemptionParams) WithContext

WithContext adds the context to the apply user redemption params

func (*ApplyUserRedemptionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the apply user redemption params

func (*ApplyUserRedemptionParams) WithNamespace

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

WithNamespace adds the namespace to the apply user redemption params

func (*ApplyUserRedemptionParams) WithTimeout

WithTimeout adds the timeout to the apply user redemption params

func (*ApplyUserRedemptionParams) WithUserID

WithUserID adds the userID to the apply user redemption params

func (*ApplyUserRedemptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ApplyUserRedemptionReader

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

ApplyUserRedemptionReader is a Reader for the ApplyUserRedemption structure.

func (*ApplyUserRedemptionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ApplyUserRedemptionUnprocessableEntity

type ApplyUserRedemptionUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

ApplyUserRedemptionUnprocessableEntity 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 NewApplyUserRedemptionUnprocessableEntity

func NewApplyUserRedemptionUnprocessableEntity() *ApplyUserRedemptionUnprocessableEntity

NewApplyUserRedemptionUnprocessableEntity creates a ApplyUserRedemptionUnprocessableEntity with default headers values

func (*ApplyUserRedemptionUnprocessableEntity) Error

func (*ApplyUserRedemptionUnprocessableEntity) GetPayload

func (*ApplyUserRedemptionUnprocessableEntity) ToJSONString added in v0.25.0

type BulkDisableCodesOK

type BulkDisableCodesOK struct {
	Payload *platformclientmodels.BulkOperationResult
}

BulkDisableCodesOK handles this case with default header values.

successful operation

func NewBulkDisableCodesOK

func NewBulkDisableCodesOK() *BulkDisableCodesOK

NewBulkDisableCodesOK creates a BulkDisableCodesOK with default headers values

func (*BulkDisableCodesOK) Error

func (o *BulkDisableCodesOK) Error() string

func (*BulkDisableCodesOK) GetPayload

func (*BulkDisableCodesOK) ToJSONString added in v0.25.0

func (o *BulkDisableCodesOK) ToJSONString() string

type BulkDisableCodesParams

type BulkDisableCodesParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*CampaignID*/
	CampaignID string
	/*Namespace*/
	Namespace string
	/*BatchName*/
	BatchName *string
	/*BatchNo
	  if not present will match all except 0

	*/
	BatchNo []int32

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

BulkDisableCodesParams contains all the parameters to send to the API endpoint for the bulk disable codes operation typically these are written to a http.Request

func NewBulkDisableCodesParams

func NewBulkDisableCodesParams() *BulkDisableCodesParams

NewBulkDisableCodesParams creates a new BulkDisableCodesParams object with the default values initialized.

func NewBulkDisableCodesParamsWithContext

func NewBulkDisableCodesParamsWithContext(ctx context.Context) *BulkDisableCodesParams

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

func NewBulkDisableCodesParamsWithHTTPClient

func NewBulkDisableCodesParamsWithHTTPClient(client *http.Client) *BulkDisableCodesParams

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

func NewBulkDisableCodesParamsWithTimeout

func NewBulkDisableCodesParamsWithTimeout(timeout time.Duration) *BulkDisableCodesParams

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

func (*BulkDisableCodesParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the bulk disable codes params

func (*BulkDisableCodesParams) SetBatchName added in v0.73.0

func (o *BulkDisableCodesParams) SetBatchName(batchName *string)

SetBatchName adds the batchName to the bulk disable codes params

func (*BulkDisableCodesParams) SetBatchNo

func (o *BulkDisableCodesParams) SetBatchNo(batchNo []int32)

SetBatchNo adds the batchNo to the bulk disable codes params

func (*BulkDisableCodesParams) SetCampaignID

func (o *BulkDisableCodesParams) SetCampaignID(campaignID string)

SetCampaignID adds the campaignId to the bulk disable codes params

func (*BulkDisableCodesParams) SetContext

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

SetContext adds the context to the bulk disable codes params

func (*BulkDisableCodesParams) SetFlightId added in v0.63.0

func (o *BulkDisableCodesParams) SetFlightId(flightId string)

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

func (*BulkDisableCodesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the bulk disable codes params

func (*BulkDisableCodesParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the bulk disable codes params

func (*BulkDisableCodesParams) SetNamespace

func (o *BulkDisableCodesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the bulk disable codes params

func (*BulkDisableCodesParams) SetTimeout

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

SetTimeout adds the timeout to the bulk disable codes params

func (*BulkDisableCodesParams) WithBatchName_ added in v0.73.0

func (o *BulkDisableCodesParams) WithBatchName_(batchName *string) *BulkDisableCodesParams

WithBatchName_ adds the batchName to the bulk disable codes params

func (*BulkDisableCodesParams) WithBatchNo

func (o *BulkDisableCodesParams) WithBatchNo(batchNo []int32) *BulkDisableCodesParams

WithBatchNo adds the batchNo to the bulk disable codes params

func (*BulkDisableCodesParams) WithCampaignID

func (o *BulkDisableCodesParams) WithCampaignID(campaignID string) *BulkDisableCodesParams

WithCampaignID adds the campaignID to the bulk disable codes params

func (*BulkDisableCodesParams) WithContext

WithContext adds the context to the bulk disable codes params

func (*BulkDisableCodesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the bulk disable codes params

func (*BulkDisableCodesParams) WithNamespace

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

WithNamespace adds the namespace to the bulk disable codes params

func (*BulkDisableCodesParams) WithTimeout

WithTimeout adds the timeout to the bulk disable codes params

func (*BulkDisableCodesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BulkDisableCodesReader

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

BulkDisableCodesReader is a Reader for the BulkDisableCodes structure.

func (*BulkDisableCodesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BulkEnableCodesOK

type BulkEnableCodesOK struct {
	Payload *platformclientmodels.BulkOperationResult
}

BulkEnableCodesOK handles this case with default header values.

successful operation

func NewBulkEnableCodesOK

func NewBulkEnableCodesOK() *BulkEnableCodesOK

NewBulkEnableCodesOK creates a BulkEnableCodesOK with default headers values

func (*BulkEnableCodesOK) Error

func (o *BulkEnableCodesOK) Error() string

func (*BulkEnableCodesOK) GetPayload

func (*BulkEnableCodesOK) ToJSONString added in v0.25.0

func (o *BulkEnableCodesOK) ToJSONString() string

type BulkEnableCodesParams

type BulkEnableCodesParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*CampaignID*/
	CampaignID string
	/*Namespace*/
	Namespace string
	/*BatchName*/
	BatchName *string
	/*BatchNo
	  if not present will match all except 0

	*/
	BatchNo []int32

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

BulkEnableCodesParams contains all the parameters to send to the API endpoint for the bulk enable codes operation typically these are written to a http.Request

func NewBulkEnableCodesParams

func NewBulkEnableCodesParams() *BulkEnableCodesParams

NewBulkEnableCodesParams creates a new BulkEnableCodesParams object with the default values initialized.

func NewBulkEnableCodesParamsWithContext

func NewBulkEnableCodesParamsWithContext(ctx context.Context) *BulkEnableCodesParams

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

func NewBulkEnableCodesParamsWithHTTPClient

func NewBulkEnableCodesParamsWithHTTPClient(client *http.Client) *BulkEnableCodesParams

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

func NewBulkEnableCodesParamsWithTimeout

func NewBulkEnableCodesParamsWithTimeout(timeout time.Duration) *BulkEnableCodesParams

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

func (*BulkEnableCodesParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the bulk enable codes params

func (*BulkEnableCodesParams) SetBatchName added in v0.73.0

func (o *BulkEnableCodesParams) SetBatchName(batchName *string)

SetBatchName adds the batchName to the bulk enable codes params

func (*BulkEnableCodesParams) SetBatchNo

func (o *BulkEnableCodesParams) SetBatchNo(batchNo []int32)

SetBatchNo adds the batchNo to the bulk enable codes params

func (*BulkEnableCodesParams) SetCampaignID

func (o *BulkEnableCodesParams) SetCampaignID(campaignID string)

SetCampaignID adds the campaignId to the bulk enable codes params

func (*BulkEnableCodesParams) SetContext

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

SetContext adds the context to the bulk enable codes params

func (*BulkEnableCodesParams) SetFlightId added in v0.63.0

func (o *BulkEnableCodesParams) SetFlightId(flightId string)

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

func (*BulkEnableCodesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the bulk enable codes params

func (*BulkEnableCodesParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the bulk enable codes params

func (*BulkEnableCodesParams) SetNamespace

func (o *BulkEnableCodesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the bulk enable codes params

func (*BulkEnableCodesParams) SetTimeout

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

SetTimeout adds the timeout to the bulk enable codes params

func (*BulkEnableCodesParams) WithBatchName_ added in v0.73.0

func (o *BulkEnableCodesParams) WithBatchName_(batchName *string) *BulkEnableCodesParams

WithBatchName_ adds the batchName to the bulk enable codes params

func (*BulkEnableCodesParams) WithBatchNo

func (o *BulkEnableCodesParams) WithBatchNo(batchNo []int32) *BulkEnableCodesParams

WithBatchNo adds the batchNo to the bulk enable codes params

func (*BulkEnableCodesParams) WithCampaignID

func (o *BulkEnableCodesParams) WithCampaignID(campaignID string) *BulkEnableCodesParams

WithCampaignID adds the campaignID to the bulk enable codes params

func (*BulkEnableCodesParams) WithContext

WithContext adds the context to the bulk enable codes params

func (*BulkEnableCodesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the bulk enable codes params

func (*BulkEnableCodesParams) WithNamespace

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

WithNamespace adds the namespace to the bulk enable codes params

func (*BulkEnableCodesParams) WithTimeout

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

WithTimeout adds the timeout to the bulk enable codes params

func (*BulkEnableCodesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type BulkEnableCodesReader

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

BulkEnableCodesReader is a Reader for the BulkEnableCodes structure.

func (*BulkEnableCodesReader) ReadResponse

func (o *BulkEnableCodesReader) 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 campaign API

func (*Client) ApplyUserRedemption deprecated

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

ApplyUserRedemption redeem code

[SERVICE COMMUNICATION ONLY] Redeem code. If the campaign which the code belongs to is INACTIVE, the code couldn't be redeemed even if its status is ACTIVE.

Other detail info:

  • Returns : Redeem result

func (*Client) ApplyUserRedemptionShort added in v0.8.0

func (a *Client) ApplyUserRedemptionShort(params *ApplyUserRedemptionParams, authInfo runtime.ClientAuthInfoWriter) (*ApplyUserRedemptionOK, error)

ApplyUserRedemptionShort redeem code

[SERVICE COMMUNICATION ONLY] Redeem code. If the campaign which the code belongs to is INACTIVE, the code couldn't be redeemed even if its status is ACTIVE.

Other detail info:

  • Returns : Redeem result

func (*Client) BulkDisableCodes deprecated

func (a *Client) BulkDisableCodes(params *BulkDisableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkDisableCodesOK, error)

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

BulkDisableCodes bulk disable codes Bulk disable codes.

Bulk disable campaign codes, all matched codes will be disabled except those have already been redeemed. Other detail info:

  • Returns : the number of code actually disabled

func (*Client) BulkDisableCodesShort added in v0.8.0

func (a *Client) BulkDisableCodesShort(params *BulkDisableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkDisableCodesOK, error)

BulkDisableCodesShort bulk disable codes Bulk disable codes.

Bulk disable campaign codes, all matched codes will be disabled except those have already been redeemed. Other detail info:

  • Returns : the number of code actually disabled

func (*Client) BulkEnableCodes deprecated

func (a *Client) BulkEnableCodes(params *BulkEnableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkEnableCodesOK, error)

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

BulkEnableCodes bulk enable codes Bulk enable campaign codes. Other detail info:

  • Returns : the number of code actually enabled

func (*Client) BulkEnableCodesShort added in v0.8.0

func (a *Client) BulkEnableCodesShort(params *BulkEnableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkEnableCodesOK, error)

BulkEnableCodesShort bulk enable codes Bulk enable campaign codes. Other detail info:

  • Returns : the number of code actually enabled

func (*Client) CreateCampaign deprecated

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

CreateCampaign create campaign Create campaign. Other detail info:

  • Returns : created campaign

func (*Client) CreateCampaignShort added in v0.8.0

func (a *Client) CreateCampaignShort(params *CreateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCampaignCreated, error)

CreateCampaignShort create campaign Create campaign. Other detail info:

  • Returns : created campaign

func (*Client) CreateCodes deprecated

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

CreateCodes create campaign codes This API is used to create campaign codes, it will increase the batch No. based on last creation. Other detail info:

  • Returns : number of codes created

func (*Client) CreateCodesShort added in v0.8.0

func (a *Client) CreateCodesShort(params *CreateCodesParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCodesCreated, error)

CreateCodesShort create campaign codes This API is used to create campaign codes, it will increase the batch No. based on last creation. Other detail info:

  • Returns : number of codes created

func (*Client) DisableCode deprecated

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

DisableCode disable code Disable code.

Disable an active code, the code can't be disabled if it has already been redeemed. Other detail info:

  • Returns : disabled code

func (*Client) DisableCodeShort added in v0.8.0

func (a *Client) DisableCodeShort(params *DisableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*DisableCodeOK, error)

DisableCodeShort disable code Disable code.

Disable an active code, the code can't be disabled if it has already been redeemed. Other detail info:

  • Returns : disabled code

func (*Client) Download deprecated

func (a *Client) Download(params *DownloadParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*DownloadOK, error)

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

Download download codes Download all or a batch of campaign's codes as a csv file. Other detail info:

  • Returns : codes csv file
  • The csv file will always have Batch Name column, but this column will be filled only when the withBatchName parameter is true , or when the batchName filter is not blank.

func (*Client) DownloadShort added in v0.8.0

func (a *Client) DownloadShort(params *DownloadParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*DownloadOK, error)

DownloadShort download codes Download all or a batch of campaign's codes as a csv file. Other detail info:

  • Returns : codes csv file
  • The csv file will always have Batch Name column, but this column will be filled only when the withBatchName parameter is true , or when the batchName filter is not blank.

func (*Client) EnableCode deprecated

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

EnableCode enable code Enable code. Other detail info:

  • Returns : enabled code

func (*Client) EnableCodeShort added in v0.8.0

func (a *Client) EnableCodeShort(params *EnableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*EnableCodeOK, error)

EnableCodeShort enable code Enable code. Other detail info:

  • Returns : enabled code

func (*Client) GetCampaign deprecated

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

GetCampaign get campaign Get campaign info. Other detail info:

  • Returns : campaign info

func (*Client) GetCampaignDynamic deprecated

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

GetCampaignDynamic get campaign dynamic Get campaign dynamic. Other detail info:

  • Returns : campaign dynamic

func (*Client) GetCampaignDynamicShort added in v0.8.0

func (a *Client) GetCampaignDynamicShort(params *GetCampaignDynamicParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignDynamicOK, error)

GetCampaignDynamicShort get campaign dynamic Get campaign dynamic. Other detail info:

  • Returns : campaign dynamic

func (*Client) GetCampaignShort added in v0.8.0

func (a *Client) GetCampaignShort(params *GetCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignOK, error)

GetCampaignShort get campaign Get campaign info. Other detail info:

  • Returns : campaign info

func (*Client) GetCode deprecated

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

GetCode get code info Get campaign code, it will check code whether available to redeem if redeemable true. Other detail info:

  • Returns : code info

func (*Client) GetCodeShort added in v0.8.0

func (a *Client) GetCodeShort(params *GetCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetCodeOK, error)

GetCodeShort get code info Get campaign code, it will check code whether available to redeem if redeemable true. Other detail info:

  • Returns : code info

func (*Client) QueryCampaignBatchNames deprecated added in v0.73.0

func (a *Client) QueryCampaignBatchNames(params *QueryCampaignBatchNamesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCampaignBatchNamesOK, error)

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

QueryCampaignBatchNames query campaign batch names Query campaign batch name by fuzzy match. Other detail info:

  • Returns : list of campaign batch names

func (*Client) QueryCampaignBatchNamesShort added in v0.73.0

func (a *Client) QueryCampaignBatchNamesShort(params *QueryCampaignBatchNamesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCampaignBatchNamesOK, error)

QueryCampaignBatchNamesShort query campaign batch names Query campaign batch name by fuzzy match. Other detail info:

  • Returns : list of campaign batch names

func (*Client) QueryCampaigns deprecated

func (a *Client) QueryCampaigns(params *QueryCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCampaignsOK, error)

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

QueryCampaigns query campaigns Query campaigns, if name is presented, it's fuzzy match. Other detail info:

  • Returns : slice of campaigns

func (*Client) QueryCampaignsShort added in v0.8.0

func (a *Client) QueryCampaignsShort(params *QueryCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCampaignsOK, error)

QueryCampaignsShort query campaigns Query campaigns, if name is presented, it's fuzzy match. Other detail info:

  • Returns : slice of campaigns

func (*Client) QueryCodes deprecated

func (a *Client) QueryCodes(params *QueryCodesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCodesOK, error)

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

QueryCodes query codes Query campaign codes. Other detail info:

  • Returns : list of codes
  • The batchName field in the codes response will be present only when the withBatchName parameter is true , or when the batchName filter is not blank.

func (*Client) QueryCodesShort added in v0.8.0

func (a *Client) QueryCodesShort(params *QueryCodesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCodesOK, error)

QueryCodesShort query codes Query campaign codes. Other detail info:

  • Returns : list of codes
  • The batchName field in the codes response will be present only when the withBatchName parameter is true , or when the batchName filter is not blank.

func (*Client) QueryRedeemHistory deprecated

func (a *Client) QueryRedeemHistory(params *QueryRedeemHistoryParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRedeemHistoryOK, error)

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

QueryRedeemHistory query redeem history Query redeem history. Other detail info:

  • Returns : slice of redeem history

func (*Client) QueryRedeemHistoryShort added in v0.8.0

func (a *Client) QueryRedeemHistoryShort(params *QueryRedeemHistoryParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRedeemHistoryOK, error)

QueryRedeemHistoryShort query redeem history Query redeem history. Other detail info:

  • Returns : slice of redeem history

func (*Client) RenameBatch deprecated added in v0.73.0

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

RenameBatch rename batch Change campaign batch name. Other detail info:

func (*Client) RenameBatchShort added in v0.73.0

func (a *Client) RenameBatchShort(params *RenameBatchParams, authInfo runtime.ClientAuthInfoWriter) (*RenameBatchNoContent, error)

RenameBatchShort rename batch Change campaign batch name. Other detail info:

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateCampaign deprecated

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

UpdateCampaign update campaign Update campaign. Other detail info:

  • Returns : updated campaign

func (*Client) UpdateCampaignShort added in v0.8.0

func (a *Client) UpdateCampaignShort(params *UpdateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCampaignOK, error)

UpdateCampaignShort update campaign Update campaign. Other detail info:

  • Returns : updated campaign

type ClientService

type ClientService interface {
	QueryCampaigns(params *QueryCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCampaignsOK, error)
	QueryCampaignsShort(params *QueryCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCampaignsOK, error)
	CreateCampaign(params *CreateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCampaignCreated, *CreateCampaignBadRequest, *CreateCampaignConflict, *CreateCampaignUnprocessableEntity, error)
	CreateCampaignShort(params *CreateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCampaignCreated, error)
	GetCampaign(params *GetCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignOK, *GetCampaignNotFound, error)
	GetCampaignShort(params *GetCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignOK, error)
	UpdateCampaign(params *UpdateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCampaignOK, *UpdateCampaignNotFound, *UpdateCampaignConflict, *UpdateCampaignUnprocessableEntity, error)
	UpdateCampaignShort(params *UpdateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCampaignOK, error)
	RenameBatch(params *RenameBatchParams, authInfo runtime.ClientAuthInfoWriter) (*RenameBatchNoContent, *RenameBatchNotFound, error)
	RenameBatchShort(params *RenameBatchParams, authInfo runtime.ClientAuthInfoWriter) (*RenameBatchNoContent, error)
	QueryCampaignBatchNames(params *QueryCampaignBatchNamesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCampaignBatchNamesOK, error)
	QueryCampaignBatchNamesShort(params *QueryCampaignBatchNamesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCampaignBatchNamesOK, error)
	GetCampaignDynamic(params *GetCampaignDynamicParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignDynamicOK, *GetCampaignDynamicNotFound, error)
	GetCampaignDynamicShort(params *GetCampaignDynamicParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignDynamicOK, error)
	QueryCodes(params *QueryCodesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCodesOK, error)
	QueryCodesShort(params *QueryCodesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCodesOK, error)
	CreateCodes(params *CreateCodesParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCodesCreated, *CreateCodesNotFound, *CreateCodesConflict, *CreateCodesUnprocessableEntity, error)
	CreateCodesShort(params *CreateCodesParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCodesCreated, error)
	Download(params *DownloadParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*DownloadOK, error)
	DownloadShort(params *DownloadParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*DownloadOK, error)
	BulkDisableCodes(params *BulkDisableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkDisableCodesOK, error)
	BulkDisableCodesShort(params *BulkDisableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkDisableCodesOK, error)
	BulkEnableCodes(params *BulkEnableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkEnableCodesOK, error)
	BulkEnableCodesShort(params *BulkEnableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkEnableCodesOK, error)
	QueryRedeemHistory(params *QueryRedeemHistoryParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRedeemHistoryOK, error)
	QueryRedeemHistoryShort(params *QueryRedeemHistoryParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRedeemHistoryOK, error)
	GetCode(params *GetCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetCodeOK, *GetCodeNotFound, *GetCodeConflict, error)
	GetCodeShort(params *GetCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetCodeOK, error)
	DisableCode(params *DisableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*DisableCodeOK, *DisableCodeNotFound, error)
	DisableCodeShort(params *DisableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*DisableCodeOK, error)
	EnableCode(params *EnableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*EnableCodeOK, *EnableCodeNotFound, error)
	EnableCodeShort(params *EnableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*EnableCodeOK, error)
	ApplyUserRedemption(params *ApplyUserRedemptionParams, authInfo runtime.ClientAuthInfoWriter) (*ApplyUserRedemptionOK, *ApplyUserRedemptionNotFound, *ApplyUserRedemptionConflict, *ApplyUserRedemptionUnprocessableEntity, error)
	ApplyUserRedemptionShort(params *ApplyUserRedemptionParams, authInfo runtime.ClientAuthInfoWriter) (*ApplyUserRedemptionOK, 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 campaign API client.

type CreateCampaignBadRequest added in v0.69.0

type CreateCampaignBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateCampaignBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37121</td><td>Invalid currency namespace [{namespace}] in discount config: {tips}</td></tr></table>

func NewCreateCampaignBadRequest added in v0.69.0

func NewCreateCampaignBadRequest() *CreateCampaignBadRequest

NewCreateCampaignBadRequest creates a CreateCampaignBadRequest with default headers values

func (*CreateCampaignBadRequest) Error added in v0.69.0

func (o *CreateCampaignBadRequest) Error() string

func (*CreateCampaignBadRequest) GetPayload added in v0.69.0

func (*CreateCampaignBadRequest) ToJSONString added in v0.69.0

func (o *CreateCampaignBadRequest) ToJSONString() string

type CreateCampaignConflict

type CreateCampaignConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateCampaignConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37171</td><td>Campaign [{name}] already exists in namespace [{namespace}]</td></tr></table>

func NewCreateCampaignConflict

func NewCreateCampaignConflict() *CreateCampaignConflict

NewCreateCampaignConflict creates a CreateCampaignConflict with default headers values

func (*CreateCampaignConflict) Error

func (o *CreateCampaignConflict) Error() string

func (*CreateCampaignConflict) GetPayload

func (*CreateCampaignConflict) ToJSONString added in v0.25.0

func (o *CreateCampaignConflict) ToJSONString() string

type CreateCampaignCreated

type CreateCampaignCreated struct {
	Payload *platformclientmodels.CampaignInfo
}

CreateCampaignCreated handles this case with default header values.

successful operation

func NewCreateCampaignCreated

func NewCreateCampaignCreated() *CreateCampaignCreated

NewCreateCampaignCreated creates a CreateCampaignCreated with default headers values

func (*CreateCampaignCreated) Error

func (o *CreateCampaignCreated) Error() string

func (*CreateCampaignCreated) GetPayload

func (*CreateCampaignCreated) ToJSONString added in v0.25.0

func (o *CreateCampaignCreated) ToJSONString() string

type CreateCampaignParams

type CreateCampaignParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.CampaignCreate
	/*Namespace*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewCreateCampaignParams

func NewCreateCampaignParams() *CreateCampaignParams

NewCreateCampaignParams creates a new CreateCampaignParams object with the default values initialized.

func NewCreateCampaignParamsWithContext

func NewCreateCampaignParamsWithContext(ctx context.Context) *CreateCampaignParams

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

func NewCreateCampaignParamsWithHTTPClient

func NewCreateCampaignParamsWithHTTPClient(client *http.Client) *CreateCampaignParams

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

func NewCreateCampaignParamsWithTimeout

func NewCreateCampaignParamsWithTimeout(timeout time.Duration) *CreateCampaignParams

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

func (*CreateCampaignParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the create campaign params

func (*CreateCampaignParams) SetBody

SetBody adds the body to the create campaign params

func (*CreateCampaignParams) SetContext

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

SetContext adds the context to the create campaign params

func (*CreateCampaignParams) SetFlightId added in v0.63.0

func (o *CreateCampaignParams) SetFlightId(flightId string)

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

func (*CreateCampaignParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create campaign params

func (*CreateCampaignParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the create campaign params

func (*CreateCampaignParams) SetNamespace

func (o *CreateCampaignParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create campaign params

func (*CreateCampaignParams) SetTimeout

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

SetTimeout adds the timeout to the create campaign params

func (*CreateCampaignParams) WithBody

WithBody adds the body to the create campaign params

func (*CreateCampaignParams) WithContext

WithContext adds the context to the create campaign params

func (*CreateCampaignParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create campaign params

func (*CreateCampaignParams) WithNamespace

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

WithNamespace adds the namespace to the create campaign params

func (*CreateCampaignParams) WithTimeout

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

WithTimeout adds the timeout to the create campaign params

func (*CreateCampaignParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateCampaignReader

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

CreateCampaignReader is a Reader for the CreateCampaign structure.

func (*CreateCampaignReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateCampaignUnprocessableEntity

type CreateCampaignUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

CreateCampaignUnprocessableEntity 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 NewCreateCampaignUnprocessableEntity

func NewCreateCampaignUnprocessableEntity() *CreateCampaignUnprocessableEntity

NewCreateCampaignUnprocessableEntity creates a CreateCampaignUnprocessableEntity with default headers values

func (*CreateCampaignUnprocessableEntity) Error

func (*CreateCampaignUnprocessableEntity) GetPayload

func (*CreateCampaignUnprocessableEntity) ToJSONString added in v0.25.0

func (o *CreateCampaignUnprocessableEntity) ToJSONString() string

type CreateCodesConflict added in v0.69.0

type CreateCodesConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateCodesConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37180</td><td>Code [{code}] already exists in namespace [{namespace}]</td></tr></table>

func NewCreateCodesConflict added in v0.69.0

func NewCreateCodesConflict() *CreateCodesConflict

NewCreateCodesConflict creates a CreateCodesConflict with default headers values

func (*CreateCodesConflict) Error added in v0.69.0

func (o *CreateCodesConflict) Error() string

func (*CreateCodesConflict) GetPayload added in v0.69.0

func (*CreateCodesConflict) ToJSONString added in v0.69.0

func (o *CreateCodesConflict) ToJSONString() string

type CreateCodesCreated

type CreateCodesCreated struct {
	Payload *platformclientmodels.CodeCreateResult
}

CreateCodesCreated handles this case with default header values.

successful operation

func NewCreateCodesCreated

func NewCreateCodesCreated() *CreateCodesCreated

NewCreateCodesCreated creates a CreateCodesCreated with default headers values

func (*CreateCodesCreated) Error

func (o *CreateCodesCreated) Error() string

func (*CreateCodesCreated) GetPayload

func (*CreateCodesCreated) ToJSONString added in v0.25.0

func (o *CreateCodesCreated) ToJSONString() string

type CreateCodesNotFound

type CreateCodesNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateCodesNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37141</td><td>Campaign [{campaignId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewCreateCodesNotFound

func NewCreateCodesNotFound() *CreateCodesNotFound

NewCreateCodesNotFound creates a CreateCodesNotFound with default headers values

func (*CreateCodesNotFound) Error

func (o *CreateCodesNotFound) Error() string

func (*CreateCodesNotFound) GetPayload

func (*CreateCodesNotFound) ToJSONString added in v0.25.0

func (o *CreateCodesNotFound) ToJSONString() string

type CreateCodesParams

type CreateCodesParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.CodeCreate
	/*CampaignID*/
	CampaignID string
	/*Namespace*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewCreateCodesParams

func NewCreateCodesParams() *CreateCodesParams

NewCreateCodesParams creates a new CreateCodesParams object with the default values initialized.

func NewCreateCodesParamsWithContext

func NewCreateCodesParamsWithContext(ctx context.Context) *CreateCodesParams

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

func NewCreateCodesParamsWithHTTPClient

func NewCreateCodesParamsWithHTTPClient(client *http.Client) *CreateCodesParams

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

func NewCreateCodesParamsWithTimeout

func NewCreateCodesParamsWithTimeout(timeout time.Duration) *CreateCodesParams

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

func (*CreateCodesParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the create codes params

func (*CreateCodesParams) SetBody

SetBody adds the body to the create codes params

func (*CreateCodesParams) SetCampaignID

func (o *CreateCodesParams) SetCampaignID(campaignID string)

SetCampaignID adds the campaignId to the create codes params

func (*CreateCodesParams) SetContext

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

SetContext adds the context to the create codes params

func (*CreateCodesParams) SetFlightId added in v0.63.0

func (o *CreateCodesParams) SetFlightId(flightId string)

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

func (*CreateCodesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create codes params

func (*CreateCodesParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the create codes params

func (*CreateCodesParams) SetNamespace

func (o *CreateCodesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create codes params

func (*CreateCodesParams) SetTimeout

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

SetTimeout adds the timeout to the create codes params

func (*CreateCodesParams) WithBody

WithBody adds the body to the create codes params

func (*CreateCodesParams) WithCampaignID

func (o *CreateCodesParams) WithCampaignID(campaignID string) *CreateCodesParams

WithCampaignID adds the campaignID to the create codes params

func (*CreateCodesParams) WithContext

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

WithContext adds the context to the create codes params

func (*CreateCodesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create codes params

func (*CreateCodesParams) WithNamespace

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

WithNamespace adds the namespace to the create codes params

func (*CreateCodesParams) WithTimeout

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

WithTimeout adds the timeout to the create codes params

func (*CreateCodesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateCodesReader

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

CreateCodesReader is a Reader for the CreateCodes structure.

func (*CreateCodesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateCodesUnprocessableEntity

type CreateCodesUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

CreateCodesUnprocessableEntity 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 NewCreateCodesUnprocessableEntity

func NewCreateCodesUnprocessableEntity() *CreateCodesUnprocessableEntity

NewCreateCodesUnprocessableEntity creates a CreateCodesUnprocessableEntity with default headers values

func (*CreateCodesUnprocessableEntity) Error

func (*CreateCodesUnprocessableEntity) GetPayload

func (*CreateCodesUnprocessableEntity) ToJSONString added in v0.25.0

func (o *CreateCodesUnprocessableEntity) ToJSONString() string

type DisableCodeNotFound

type DisableCodeNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

DisableCodeNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37142</td><td>Code [{code}] does not exist in namespace [{namespace}]</td></tr><tr><td>37176</td><td>Code [{code}] has been redeemed in namespace [{namespace}]</td></tr></table>

func NewDisableCodeNotFound

func NewDisableCodeNotFound() *DisableCodeNotFound

NewDisableCodeNotFound creates a DisableCodeNotFound with default headers values

func (*DisableCodeNotFound) Error

func (o *DisableCodeNotFound) Error() string

func (*DisableCodeNotFound) GetPayload

func (*DisableCodeNotFound) ToJSONString added in v0.25.0

func (o *DisableCodeNotFound) ToJSONString() string

type DisableCodeOK

type DisableCodeOK struct {
	Payload *platformclientmodels.CodeInfo
}

DisableCodeOK handles this case with default header values.

successful operation

func NewDisableCodeOK

func NewDisableCodeOK() *DisableCodeOK

NewDisableCodeOK creates a DisableCodeOK with default headers values

func (*DisableCodeOK) Error

func (o *DisableCodeOK) Error() string

func (*DisableCodeOK) GetPayload

func (o *DisableCodeOK) GetPayload() *platformclientmodels.CodeInfo

func (*DisableCodeOK) ToJSONString added in v0.25.0

func (o *DisableCodeOK) ToJSONString() string

type DisableCodeParams

type DisableCodeParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Code*/
	Code string
	/*Namespace*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

DisableCodeParams contains all the parameters to send to the API endpoint for the disable code operation typically these are written to a http.Request

func NewDisableCodeParams

func NewDisableCodeParams() *DisableCodeParams

NewDisableCodeParams creates a new DisableCodeParams object with the default values initialized.

func NewDisableCodeParamsWithContext

func NewDisableCodeParamsWithContext(ctx context.Context) *DisableCodeParams

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

func NewDisableCodeParamsWithHTTPClient

func NewDisableCodeParamsWithHTTPClient(client *http.Client) *DisableCodeParams

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

func NewDisableCodeParamsWithTimeout

func NewDisableCodeParamsWithTimeout(timeout time.Duration) *DisableCodeParams

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

func (*DisableCodeParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the disable code params

func (*DisableCodeParams) SetCode

func (o *DisableCodeParams) SetCode(code string)

SetCode adds the code to the disable code params

func (*DisableCodeParams) SetContext

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

SetContext adds the context to the disable code params

func (*DisableCodeParams) SetFlightId added in v0.63.0

func (o *DisableCodeParams) SetFlightId(flightId string)

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

func (*DisableCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the disable code params

func (*DisableCodeParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the disable code params

func (*DisableCodeParams) SetNamespace

func (o *DisableCodeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the disable code params

func (*DisableCodeParams) SetTimeout

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

SetTimeout adds the timeout to the disable code params

func (*DisableCodeParams) WithCode

func (o *DisableCodeParams) WithCode(code string) *DisableCodeParams

WithCode adds the code to the disable code params

func (*DisableCodeParams) WithContext

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

WithContext adds the context to the disable code params

func (*DisableCodeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the disable code params

func (*DisableCodeParams) WithNamespace

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

WithNamespace adds the namespace to the disable code params

func (*DisableCodeParams) WithTimeout

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

WithTimeout adds the timeout to the disable code params

func (*DisableCodeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DisableCodeReader

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

DisableCodeReader is a Reader for the DisableCode structure.

func (*DisableCodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DownloadOK

type DownloadOK struct {
	Payload io.Writer
}

DownloadOK handles this case with default header values.

Successful operation

func NewDownloadOK

func NewDownloadOK(writer io.Writer) *DownloadOK

NewDownloadOK creates a DownloadOK with default headers values

func (*DownloadOK) Error

func (o *DownloadOK) Error() string

func (*DownloadOK) GetPayload added in v0.32.0

func (o *DownloadOK) GetPayload() io.Writer

func (*DownloadOK) ToJSONString added in v0.32.0

func (o *DownloadOK) ToJSONString() string

type DownloadParams

type DownloadParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*CampaignID*/
	CampaignID string
	/*Namespace*/
	Namespace string
	/*BatchName*/
	BatchName *string
	/*BatchNo*/
	BatchNo []int32
	/*WithBatchName*/
	WithBatchName *bool

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

DownloadParams contains all the parameters to send to the API endpoint for the download operation typically these are written to a http.Request

func NewDownloadParams

func NewDownloadParams() *DownloadParams

NewDownloadParams creates a new DownloadParams object with the default values initialized.

func NewDownloadParamsWithContext

func NewDownloadParamsWithContext(ctx context.Context) *DownloadParams

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

func NewDownloadParamsWithHTTPClient

func NewDownloadParamsWithHTTPClient(client *http.Client) *DownloadParams

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

func NewDownloadParamsWithTimeout

func NewDownloadParamsWithTimeout(timeout time.Duration) *DownloadParams

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

func (*DownloadParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the download params

func (*DownloadParams) SetBatchName added in v0.73.0

func (o *DownloadParams) SetBatchName(batchName *string)

SetBatchName adds the batchName to the download params

func (*DownloadParams) SetBatchNo

func (o *DownloadParams) SetBatchNo(batchNo []int32)

SetBatchNo adds the batchNo to the download params

func (*DownloadParams) SetCampaignID

func (o *DownloadParams) SetCampaignID(campaignID string)

SetCampaignID adds the campaignId to the download params

func (*DownloadParams) SetContext

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

SetContext adds the context to the download params

func (*DownloadParams) SetFlightId added in v0.63.0

func (o *DownloadParams) SetFlightId(flightId string)

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

func (*DownloadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the download params

func (*DownloadParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the download params

func (*DownloadParams) SetNamespace

func (o *DownloadParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the download params

func (*DownloadParams) SetTimeout

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

SetTimeout adds the timeout to the download params

func (*DownloadParams) SetWithBatchName added in v0.73.0

func (o *DownloadParams) SetWithBatchName(withBatchName *bool)

SetWithBatchName adds the withBatchName to the download params

func (*DownloadParams) WithBatchName_ added in v0.73.0

func (o *DownloadParams) WithBatchName_(batchName *string) *DownloadParams

WithBatchName_ adds the batchName to the download params

func (*DownloadParams) WithBatchNo

func (o *DownloadParams) WithBatchNo(batchNo []int32) *DownloadParams

WithBatchNo adds the batchNo to the download params

func (*DownloadParams) WithCampaignID

func (o *DownloadParams) WithCampaignID(campaignID string) *DownloadParams

WithCampaignID adds the campaignID to the download params

func (*DownloadParams) WithContext

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

WithContext adds the context to the download params

func (*DownloadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the download params

func (*DownloadParams) WithNamespace

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

WithNamespace adds the namespace to the download params

func (*DownloadParams) WithTimeout

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

WithTimeout adds the timeout to the download params

func (*DownloadParams) WithWithBatchName_ added in v0.73.0

func (o *DownloadParams) WithWithBatchName_(withBatchName *bool) *DownloadParams

WithWithBatchName_ adds the withBatchName to the download params

func (*DownloadParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DownloadReader

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

DownloadReader is a Reader for the Download structure.

func (*DownloadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EnableCodeNotFound

type EnableCodeNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

EnableCodeNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37142</td><td>Code [{code}] does not exist in namespace [{namespace}]</td></tr></table>

func NewEnableCodeNotFound

func NewEnableCodeNotFound() *EnableCodeNotFound

NewEnableCodeNotFound creates a EnableCodeNotFound with default headers values

func (*EnableCodeNotFound) Error

func (o *EnableCodeNotFound) Error() string

func (*EnableCodeNotFound) GetPayload

func (*EnableCodeNotFound) ToJSONString added in v0.25.0

func (o *EnableCodeNotFound) ToJSONString() string

type EnableCodeOK

type EnableCodeOK struct {
	Payload *platformclientmodels.CodeInfo
}

EnableCodeOK handles this case with default header values.

successful operation

func NewEnableCodeOK

func NewEnableCodeOK() *EnableCodeOK

NewEnableCodeOK creates a EnableCodeOK with default headers values

func (*EnableCodeOK) Error

func (o *EnableCodeOK) Error() string

func (*EnableCodeOK) GetPayload

func (o *EnableCodeOK) GetPayload() *platformclientmodels.CodeInfo

func (*EnableCodeOK) ToJSONString added in v0.25.0

func (o *EnableCodeOK) ToJSONString() string

type EnableCodeParams

type EnableCodeParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Code*/
	Code string
	/*Namespace*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

EnableCodeParams contains all the parameters to send to the API endpoint for the enable code operation typically these are written to a http.Request

func NewEnableCodeParams

func NewEnableCodeParams() *EnableCodeParams

NewEnableCodeParams creates a new EnableCodeParams object with the default values initialized.

func NewEnableCodeParamsWithContext

func NewEnableCodeParamsWithContext(ctx context.Context) *EnableCodeParams

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

func NewEnableCodeParamsWithHTTPClient

func NewEnableCodeParamsWithHTTPClient(client *http.Client) *EnableCodeParams

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

func NewEnableCodeParamsWithTimeout

func NewEnableCodeParamsWithTimeout(timeout time.Duration) *EnableCodeParams

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

func (*EnableCodeParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the enable code params

func (*EnableCodeParams) SetCode

func (o *EnableCodeParams) SetCode(code string)

SetCode adds the code to the enable code params

func (*EnableCodeParams) SetContext

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

SetContext adds the context to the enable code params

func (*EnableCodeParams) SetFlightId added in v0.63.0

func (o *EnableCodeParams) SetFlightId(flightId string)

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

func (*EnableCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the enable code params

func (*EnableCodeParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the enable code params

func (*EnableCodeParams) SetNamespace

func (o *EnableCodeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the enable code params

func (*EnableCodeParams) SetTimeout

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

SetTimeout adds the timeout to the enable code params

func (*EnableCodeParams) WithCode

func (o *EnableCodeParams) WithCode(code string) *EnableCodeParams

WithCode adds the code to the enable code params

func (*EnableCodeParams) WithContext

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

WithContext adds the context to the enable code params

func (*EnableCodeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the enable code params

func (*EnableCodeParams) WithNamespace

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

WithNamespace adds the namespace to the enable code params

func (*EnableCodeParams) WithTimeout

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

WithTimeout adds the timeout to the enable code params

func (*EnableCodeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EnableCodeReader

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

EnableCodeReader is a Reader for the EnableCode structure.

func (*EnableCodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCampaignDynamicNotFound

type GetCampaignDynamicNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetCampaignDynamicNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37141</td><td>Campaign [{campaignId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewGetCampaignDynamicNotFound

func NewGetCampaignDynamicNotFound() *GetCampaignDynamicNotFound

NewGetCampaignDynamicNotFound creates a GetCampaignDynamicNotFound with default headers values

func (*GetCampaignDynamicNotFound) Error

func (*GetCampaignDynamicNotFound) GetPayload

func (*GetCampaignDynamicNotFound) ToJSONString added in v0.25.0

func (o *GetCampaignDynamicNotFound) ToJSONString() string

type GetCampaignDynamicOK

type GetCampaignDynamicOK struct {
	Payload *platformclientmodels.CampaignDynamicInfo
}

GetCampaignDynamicOK handles this case with default header values.

successful operation

func NewGetCampaignDynamicOK

func NewGetCampaignDynamicOK() *GetCampaignDynamicOK

NewGetCampaignDynamicOK creates a GetCampaignDynamicOK with default headers values

func (*GetCampaignDynamicOK) Error

func (o *GetCampaignDynamicOK) Error() string

func (*GetCampaignDynamicOK) GetPayload

func (*GetCampaignDynamicOK) ToJSONString added in v0.25.0

func (o *GetCampaignDynamicOK) ToJSONString() string

type GetCampaignDynamicParams

type GetCampaignDynamicParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*CampaignID*/
	CampaignID string
	/*Namespace*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

GetCampaignDynamicParams contains all the parameters to send to the API endpoint for the get campaign dynamic operation typically these are written to a http.Request

func NewGetCampaignDynamicParams

func NewGetCampaignDynamicParams() *GetCampaignDynamicParams

NewGetCampaignDynamicParams creates a new GetCampaignDynamicParams object with the default values initialized.

func NewGetCampaignDynamicParamsWithContext

func NewGetCampaignDynamicParamsWithContext(ctx context.Context) *GetCampaignDynamicParams

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

func NewGetCampaignDynamicParamsWithHTTPClient

func NewGetCampaignDynamicParamsWithHTTPClient(client *http.Client) *GetCampaignDynamicParams

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

func NewGetCampaignDynamicParamsWithTimeout

func NewGetCampaignDynamicParamsWithTimeout(timeout time.Duration) *GetCampaignDynamicParams

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

func (*GetCampaignDynamicParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the get campaign dynamic params

func (*GetCampaignDynamicParams) SetCampaignID

func (o *GetCampaignDynamicParams) SetCampaignID(campaignID string)

SetCampaignID adds the campaignId to the get campaign dynamic params

func (*GetCampaignDynamicParams) SetContext

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

SetContext adds the context to the get campaign dynamic params

func (*GetCampaignDynamicParams) SetFlightId added in v0.63.0

func (o *GetCampaignDynamicParams) SetFlightId(flightId string)

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

func (*GetCampaignDynamicParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get campaign dynamic params

func (*GetCampaignDynamicParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the get campaign dynamic params

func (*GetCampaignDynamicParams) SetNamespace

func (o *GetCampaignDynamicParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get campaign dynamic params

func (*GetCampaignDynamicParams) SetTimeout

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

SetTimeout adds the timeout to the get campaign dynamic params

func (*GetCampaignDynamicParams) WithCampaignID

func (o *GetCampaignDynamicParams) WithCampaignID(campaignID string) *GetCampaignDynamicParams

WithCampaignID adds the campaignID to the get campaign dynamic params

func (*GetCampaignDynamicParams) WithContext

WithContext adds the context to the get campaign dynamic params

func (*GetCampaignDynamicParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get campaign dynamic params

func (*GetCampaignDynamicParams) WithNamespace

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

WithNamespace adds the namespace to the get campaign dynamic params

func (*GetCampaignDynamicParams) WithTimeout

WithTimeout adds the timeout to the get campaign dynamic params

func (*GetCampaignDynamicParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCampaignDynamicReader

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

GetCampaignDynamicReader is a Reader for the GetCampaignDynamic structure.

func (*GetCampaignDynamicReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCampaignNotFound

type GetCampaignNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetCampaignNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37141</td><td>Campaign [{campaignId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewGetCampaignNotFound

func NewGetCampaignNotFound() *GetCampaignNotFound

NewGetCampaignNotFound creates a GetCampaignNotFound with default headers values

func (*GetCampaignNotFound) Error

func (o *GetCampaignNotFound) Error() string

func (*GetCampaignNotFound) GetPayload

func (*GetCampaignNotFound) ToJSONString added in v0.25.0

func (o *GetCampaignNotFound) ToJSONString() string

type GetCampaignOK

type GetCampaignOK struct {
	Payload *platformclientmodels.CampaignInfo
}

GetCampaignOK handles this case with default header values.

successful operation

func NewGetCampaignOK

func NewGetCampaignOK() *GetCampaignOK

NewGetCampaignOK creates a GetCampaignOK with default headers values

func (*GetCampaignOK) Error

func (o *GetCampaignOK) Error() string

func (*GetCampaignOK) GetPayload

func (*GetCampaignOK) ToJSONString added in v0.25.0

func (o *GetCampaignOK) ToJSONString() string

type GetCampaignParams

type GetCampaignParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*CampaignID*/
	CampaignID string
	/*Namespace*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewGetCampaignParams

func NewGetCampaignParams() *GetCampaignParams

NewGetCampaignParams creates a new GetCampaignParams object with the default values initialized.

func NewGetCampaignParamsWithContext

func NewGetCampaignParamsWithContext(ctx context.Context) *GetCampaignParams

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

func NewGetCampaignParamsWithHTTPClient

func NewGetCampaignParamsWithHTTPClient(client *http.Client) *GetCampaignParams

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

func NewGetCampaignParamsWithTimeout

func NewGetCampaignParamsWithTimeout(timeout time.Duration) *GetCampaignParams

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

func (*GetCampaignParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the get campaign params

func (*GetCampaignParams) SetCampaignID

func (o *GetCampaignParams) SetCampaignID(campaignID string)

SetCampaignID adds the campaignId to the get campaign params

func (*GetCampaignParams) SetContext

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

SetContext adds the context to the get campaign params

func (*GetCampaignParams) SetFlightId added in v0.63.0

func (o *GetCampaignParams) SetFlightId(flightId string)

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

func (*GetCampaignParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get campaign params

func (*GetCampaignParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the get campaign params

func (*GetCampaignParams) SetNamespace

func (o *GetCampaignParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get campaign params

func (*GetCampaignParams) SetTimeout

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

SetTimeout adds the timeout to the get campaign params

func (*GetCampaignParams) WithCampaignID

func (o *GetCampaignParams) WithCampaignID(campaignID string) *GetCampaignParams

WithCampaignID adds the campaignID to the get campaign params

func (*GetCampaignParams) WithContext

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

WithContext adds the context to the get campaign params

func (*GetCampaignParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get campaign params

func (*GetCampaignParams) WithNamespace

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

WithNamespace adds the namespace to the get campaign params

func (*GetCampaignParams) WithTimeout

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

WithTimeout adds the timeout to the get campaign params

func (*GetCampaignParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCampaignReader

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

GetCampaignReader is a Reader for the GetCampaign structure.

func (*GetCampaignReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCodeConflict

type GetCodeConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

GetCodeConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37172</td><td>Campaign [{campaignId}] is inactive in namespace [{namespace}]</td></tr><tr><td>37173</td><td>Code [{code}] is inactive in namespace [{namespace}]</td></tr><tr><td>37174</td><td>Exceeded max redeem count per code [{maxCount}]</td></tr><tr><td>37177</td><td>Code redemption not started</td></tr><tr><td>37178</td><td>Code redemption already ended</td></tr></table>

func NewGetCodeConflict

func NewGetCodeConflict() *GetCodeConflict

NewGetCodeConflict creates a GetCodeConflict with default headers values

func (*GetCodeConflict) Error

func (o *GetCodeConflict) Error() string

func (*GetCodeConflict) GetPayload

func (*GetCodeConflict) ToJSONString added in v0.25.0

func (o *GetCodeConflict) ToJSONString() string

type GetCodeNotFound

type GetCodeNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetCodeNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37142</td><td>Code [{code}] does not exist in namespace [{namespace}]</td></tr><tr><td>37144</td><td>Campaign batch name does not exist for batch number [{batchNo}] campaign [{campaignId}] in namespace [{namespace}].</td></tr></table>

func NewGetCodeNotFound

func NewGetCodeNotFound() *GetCodeNotFound

NewGetCodeNotFound creates a GetCodeNotFound with default headers values

func (*GetCodeNotFound) Error

func (o *GetCodeNotFound) Error() string

func (*GetCodeNotFound) GetPayload

func (*GetCodeNotFound) ToJSONString added in v0.25.0

func (o *GetCodeNotFound) ToJSONString() string

type GetCodeOK

type GetCodeOK struct {
	Payload *platformclientmodels.CodeInfo
}

GetCodeOK handles this case with default header values.

successful operation

func NewGetCodeOK

func NewGetCodeOK() *GetCodeOK

NewGetCodeOK creates a GetCodeOK with default headers values

func (*GetCodeOK) Error

func (o *GetCodeOK) Error() string

func (*GetCodeOK) GetPayload

func (o *GetCodeOK) GetPayload() *platformclientmodels.CodeInfo

func (*GetCodeOK) ToJSONString added in v0.25.0

func (o *GetCodeOK) ToJSONString() string

type GetCodeParams

type GetCodeParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Code*/
	Code string
	/*Namespace*/
	Namespace string
	/*Redeemable*/
	Redeemable *bool
	/*WithBatchName*/
	WithBatchName *bool

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewGetCodeParams

func NewGetCodeParams() *GetCodeParams

NewGetCodeParams creates a new GetCodeParams object with the default values initialized.

func NewGetCodeParamsWithContext

func NewGetCodeParamsWithContext(ctx context.Context) *GetCodeParams

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

func NewGetCodeParamsWithHTTPClient

func NewGetCodeParamsWithHTTPClient(client *http.Client) *GetCodeParams

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

func NewGetCodeParamsWithTimeout

func NewGetCodeParamsWithTimeout(timeout time.Duration) *GetCodeParams

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

func (*GetCodeParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the get code params

func (*GetCodeParams) SetCode

func (o *GetCodeParams) SetCode(code string)

SetCode adds the code to the get code params

func (*GetCodeParams) SetContext

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

SetContext adds the context to the get code params

func (*GetCodeParams) SetFlightId added in v0.63.0

func (o *GetCodeParams) SetFlightId(flightId string)

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

func (*GetCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get code params

func (*GetCodeParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the get code params

func (*GetCodeParams) SetNamespace

func (o *GetCodeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get code params

func (*GetCodeParams) SetRedeemable

func (o *GetCodeParams) SetRedeemable(redeemable *bool)

SetRedeemable adds the redeemable to the get code params

func (*GetCodeParams) SetTimeout

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

SetTimeout adds the timeout to the get code params

func (*GetCodeParams) SetWithBatchName added in v0.73.0

func (o *GetCodeParams) SetWithBatchName(withBatchName *bool)

SetWithBatchName adds the withBatchName to the get code params

func (*GetCodeParams) WithCode

func (o *GetCodeParams) WithCode(code string) *GetCodeParams

WithCode adds the code to the get code params

func (*GetCodeParams) WithContext

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

WithContext adds the context to the get code params

func (*GetCodeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get code params

func (*GetCodeParams) WithNamespace

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

WithNamespace adds the namespace to the get code params

func (*GetCodeParams) WithRedeemable

func (o *GetCodeParams) WithRedeemable(redeemable *bool) *GetCodeParams

WithRedeemable adds the redeemable to the get code params

func (*GetCodeParams) WithTimeout

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

WithTimeout adds the timeout to the get code params

func (*GetCodeParams) WithWithBatchName_ added in v0.73.0

func (o *GetCodeParams) WithWithBatchName_(withBatchName *bool) *GetCodeParams

WithWithBatchName_ adds the withBatchName to the get code params

func (*GetCodeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCodeReader

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

GetCodeReader is a Reader for the GetCode structure.

func (*GetCodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryCampaignBatchNamesOK added in v0.73.0

type QueryCampaignBatchNamesOK struct {
	Payload []*platformclientmodels.CampaignBatchNameInfo
}

QueryCampaignBatchNamesOK handles this case with default header values.

successful operation

func NewQueryCampaignBatchNamesOK added in v0.73.0

func NewQueryCampaignBatchNamesOK() *QueryCampaignBatchNamesOK

NewQueryCampaignBatchNamesOK creates a QueryCampaignBatchNamesOK with default headers values

func (*QueryCampaignBatchNamesOK) Error added in v0.73.0

func (o *QueryCampaignBatchNamesOK) Error() string

func (*QueryCampaignBatchNamesOK) GetPayload added in v0.73.0

func (*QueryCampaignBatchNamesOK) ToJSONString added in v0.73.0

func (o *QueryCampaignBatchNamesOK) ToJSONString() string

type QueryCampaignBatchNamesParams added in v0.73.0

type QueryCampaignBatchNamesParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*CampaignID*/
	CampaignID string
	/*Namespace*/
	Namespace string
	/*BatchName*/
	BatchName *string
	/*Limit*/
	Limit *int32

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

QueryCampaignBatchNamesParams contains all the parameters to send to the API endpoint for the query campaign batch names operation typically these are written to a http.Request

func NewQueryCampaignBatchNamesParams added in v0.73.0

func NewQueryCampaignBatchNamesParams() *QueryCampaignBatchNamesParams

NewQueryCampaignBatchNamesParams creates a new QueryCampaignBatchNamesParams object with the default values initialized.

func NewQueryCampaignBatchNamesParamsWithContext added in v0.73.0

func NewQueryCampaignBatchNamesParamsWithContext(ctx context.Context) *QueryCampaignBatchNamesParams

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

func NewQueryCampaignBatchNamesParamsWithHTTPClient added in v0.73.0

func NewQueryCampaignBatchNamesParamsWithHTTPClient(client *http.Client) *QueryCampaignBatchNamesParams

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

func NewQueryCampaignBatchNamesParamsWithTimeout added in v0.73.0

func NewQueryCampaignBatchNamesParamsWithTimeout(timeout time.Duration) *QueryCampaignBatchNamesParams

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

func (*QueryCampaignBatchNamesParams) SetAuthInfoWriter added in v0.73.0

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

SetAuthInfoWriter adds the authInfoWriter to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) SetBatchName added in v0.73.0

func (o *QueryCampaignBatchNamesParams) SetBatchName(batchName *string)

SetBatchName adds the batchName to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) SetCampaignID added in v0.73.0

func (o *QueryCampaignBatchNamesParams) SetCampaignID(campaignID string)

SetCampaignID adds the campaignId to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) SetContext added in v0.73.0

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

SetContext adds the context to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) SetFlightId added in v0.73.0

func (o *QueryCampaignBatchNamesParams) SetFlightId(flightId string)

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

func (*QueryCampaignBatchNamesParams) SetHTTPClient added in v0.73.0

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

SetHTTPClient adds the HTTPClient to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) SetHTTPClientTransport added in v0.73.0

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

SetHTTPClient adds the HTTPClient Transport to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) SetLimit added in v0.73.0

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

SetLimit adds the limit to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) SetNamespace added in v0.73.0

func (o *QueryCampaignBatchNamesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) SetTimeout added in v0.73.0

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

SetTimeout adds the timeout to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) WithBatchName_ added in v0.73.0

WithBatchName_ adds the batchName to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) WithCampaignID added in v0.73.0

WithCampaignID adds the campaignID to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) WithContext added in v0.73.0

WithContext adds the context to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) WithHTTPClient added in v0.73.0

WithHTTPClient adds the HTTPClient to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) WithLimit added in v0.73.0

WithLimit adds the limit to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) WithNamespace added in v0.73.0

WithNamespace adds the namespace to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) WithTimeout added in v0.73.0

WithTimeout adds the timeout to the query campaign batch names params

func (*QueryCampaignBatchNamesParams) WriteToRequest added in v0.73.0

WriteToRequest writes these params to a swagger request

type QueryCampaignBatchNamesReader added in v0.73.0

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

QueryCampaignBatchNamesReader is a Reader for the QueryCampaignBatchNames structure.

func (*QueryCampaignBatchNamesReader) ReadResponse added in v0.73.0

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

ReadResponse reads a server response into the received o.

type QueryCampaignsOK

type QueryCampaignsOK struct {
	Payload *platformclientmodels.CampaignPagingSlicedResult
}

QueryCampaignsOK handles this case with default header values.

successful operation

func NewQueryCampaignsOK

func NewQueryCampaignsOK() *QueryCampaignsOK

NewQueryCampaignsOK creates a QueryCampaignsOK with default headers values

func (*QueryCampaignsOK) Error

func (o *QueryCampaignsOK) Error() string

func (*QueryCampaignsOK) GetPayload

func (*QueryCampaignsOK) ToJSONString added in v0.25.0

func (o *QueryCampaignsOK) ToJSONString() string

type QueryCampaignsParams

type QueryCampaignsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*Limit
	    limit. <div style="border-left: 4px solid #ffc107; background-color: #fff8e1; padding: 10px; margin: 10px 0;">
	    For performance and stability reasons, it is recommended to keep the
	    <code>limit</code> value <strong>no greater than 100</strong>. Using higher values may lead to increased response times or degraded service performance.
	</div>


	*/
	Limit *int32
	/*Name*/
	Name *string
	/*Offset*/
	Offset *int32
	/*Tag*/
	Tag *string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewQueryCampaignsParams

func NewQueryCampaignsParams() *QueryCampaignsParams

NewQueryCampaignsParams creates a new QueryCampaignsParams object with the default values initialized.

func NewQueryCampaignsParamsWithContext

func NewQueryCampaignsParamsWithContext(ctx context.Context) *QueryCampaignsParams

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

func NewQueryCampaignsParamsWithHTTPClient

func NewQueryCampaignsParamsWithHTTPClient(client *http.Client) *QueryCampaignsParams

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

func NewQueryCampaignsParamsWithTimeout

func NewQueryCampaignsParamsWithTimeout(timeout time.Duration) *QueryCampaignsParams

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

func (*QueryCampaignsParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the query campaigns params

func (*QueryCampaignsParams) SetContext

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

SetContext adds the context to the query campaigns params

func (*QueryCampaignsParams) SetFlightId added in v0.63.0

func (o *QueryCampaignsParams) SetFlightId(flightId string)

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

func (*QueryCampaignsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query campaigns params

func (*QueryCampaignsParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the query campaigns params

func (*QueryCampaignsParams) SetLimit

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

SetLimit adds the limit to the query campaigns params

func (*QueryCampaignsParams) SetName

func (o *QueryCampaignsParams) SetName(name *string)

SetName adds the name to the query campaigns params

func (*QueryCampaignsParams) SetNamespace

func (o *QueryCampaignsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query campaigns params

func (*QueryCampaignsParams) SetOffset

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

SetOffset adds the offset to the query campaigns params

func (*QueryCampaignsParams) SetTag

func (o *QueryCampaignsParams) SetTag(tag *string)

SetTag adds the tag to the query campaigns params

func (*QueryCampaignsParams) SetTimeout

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

SetTimeout adds the timeout to the query campaigns params

func (*QueryCampaignsParams) WithContext

WithContext adds the context to the query campaigns params

func (*QueryCampaignsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query campaigns params

func (*QueryCampaignsParams) WithLimit

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

WithLimit adds the limit to the query campaigns params

func (*QueryCampaignsParams) WithName

func (o *QueryCampaignsParams) WithName(name *string) *QueryCampaignsParams

WithName adds the name to the query campaigns params

func (*QueryCampaignsParams) WithNamespace

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

WithNamespace adds the namespace to the query campaigns params

func (*QueryCampaignsParams) WithOffset

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

WithOffset adds the offset to the query campaigns params

func (*QueryCampaignsParams) WithTag

WithTag adds the tag to the query campaigns params

func (*QueryCampaignsParams) WithTimeout

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

WithTimeout adds the timeout to the query campaigns params

func (*QueryCampaignsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type QueryCampaignsReader

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

QueryCampaignsReader is a Reader for the QueryCampaigns structure.

func (*QueryCampaignsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryCodesOK

type QueryCodesOK struct {
	Payload *platformclientmodels.CodeInfoPagingSlicedResult
}

QueryCodesOK handles this case with default header values.

successful operation

func NewQueryCodesOK

func NewQueryCodesOK() *QueryCodesOK

NewQueryCodesOK creates a QueryCodesOK with default headers values

func (*QueryCodesOK) Error

func (o *QueryCodesOK) Error() string

func (*QueryCodesOK) GetPayload

func (*QueryCodesOK) ToJSONString added in v0.25.0

func (o *QueryCodesOK) ToJSONString() string

type QueryCodesParams

type QueryCodesParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*CampaignID*/
	CampaignID string
	/*Namespace*/
	Namespace string
	/*ActiveOnly*/
	ActiveOnly *bool
	/*BatchName*/
	BatchName *string
	/*BatchNo*/
	BatchNo []int32
	/*Code*/
	Code *string
	/*Limit
	    limit. <div style="border-left: 4px solid #ffc107; background-color: #fff8e1; padding: 10px; margin: 10px 0;">
	    For performance and stability reasons, it is recommended to keep the
	    <code>limit</code> value <strong>no greater than 100</strong>. Using higher values may lead to increased response times or degraded service performance.
	</div>


	*/
	Limit *int32
	/*Offset*/
	Offset *int32
	/*WithBatchName*/
	WithBatchName *bool

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewQueryCodesParams

func NewQueryCodesParams() *QueryCodesParams

NewQueryCodesParams creates a new QueryCodesParams object with the default values initialized.

func NewQueryCodesParamsWithContext

func NewQueryCodesParamsWithContext(ctx context.Context) *QueryCodesParams

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

func NewQueryCodesParamsWithHTTPClient

func NewQueryCodesParamsWithHTTPClient(client *http.Client) *QueryCodesParams

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

func NewQueryCodesParamsWithTimeout

func NewQueryCodesParamsWithTimeout(timeout time.Duration) *QueryCodesParams

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

func (*QueryCodesParams) SetActiveOnly

func (o *QueryCodesParams) SetActiveOnly(activeOnly *bool)

SetActiveOnly adds the activeOnly to the query codes params

func (*QueryCodesParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the query codes params

func (*QueryCodesParams) SetBatchName added in v0.73.0

func (o *QueryCodesParams) SetBatchName(batchName *string)

SetBatchName adds the batchName to the query codes params

func (*QueryCodesParams) SetBatchNo

func (o *QueryCodesParams) SetBatchNo(batchNo []int32)

SetBatchNo adds the batchNo to the query codes params

func (*QueryCodesParams) SetCampaignID

func (o *QueryCodesParams) SetCampaignID(campaignID string)

SetCampaignID adds the campaignId to the query codes params

func (*QueryCodesParams) SetCode

func (o *QueryCodesParams) SetCode(code *string)

SetCode adds the code to the query codes params

func (*QueryCodesParams) SetContext

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

SetContext adds the context to the query codes params

func (*QueryCodesParams) SetFlightId added in v0.63.0

func (o *QueryCodesParams) SetFlightId(flightId string)

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

func (*QueryCodesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query codes params

func (*QueryCodesParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the query codes params

func (*QueryCodesParams) SetLimit

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

SetLimit adds the limit to the query codes params

func (*QueryCodesParams) SetNamespace

func (o *QueryCodesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query codes params

func (*QueryCodesParams) SetOffset

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

SetOffset adds the offset to the query codes params

func (*QueryCodesParams) SetTimeout

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

SetTimeout adds the timeout to the query codes params

func (*QueryCodesParams) SetWithBatchName added in v0.73.0

func (o *QueryCodesParams) SetWithBatchName(withBatchName *bool)

SetWithBatchName adds the withBatchName to the query codes params

func (*QueryCodesParams) WithActiveOnly

func (o *QueryCodesParams) WithActiveOnly(activeOnly *bool) *QueryCodesParams

WithActiveOnly adds the activeOnly to the query codes params

func (*QueryCodesParams) WithBatchName_ added in v0.73.0

func (o *QueryCodesParams) WithBatchName_(batchName *string) *QueryCodesParams

WithBatchName_ adds the batchName to the query codes params

func (*QueryCodesParams) WithBatchNo

func (o *QueryCodesParams) WithBatchNo(batchNo []int32) *QueryCodesParams

WithBatchNo adds the batchNo to the query codes params

func (*QueryCodesParams) WithCampaignID

func (o *QueryCodesParams) WithCampaignID(campaignID string) *QueryCodesParams

WithCampaignID adds the campaignID to the query codes params

func (*QueryCodesParams) WithCode

func (o *QueryCodesParams) WithCode(code *string) *QueryCodesParams

WithCode adds the code to the query codes params

func (*QueryCodesParams) WithContext

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

WithContext adds the context to the query codes params

func (*QueryCodesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query codes params

func (*QueryCodesParams) WithLimit

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

WithLimit adds the limit to the query codes params

func (*QueryCodesParams) WithNamespace

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

WithNamespace adds the namespace to the query codes params

func (*QueryCodesParams) WithOffset

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

WithOffset adds the offset to the query codes params

func (*QueryCodesParams) WithTimeout

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

WithTimeout adds the timeout to the query codes params

func (*QueryCodesParams) WithWithBatchName_ added in v0.73.0

func (o *QueryCodesParams) WithWithBatchName_(withBatchName *bool) *QueryCodesParams

WithWithBatchName_ adds the withBatchName to the query codes params

func (*QueryCodesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type QueryCodesReader

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

QueryCodesReader is a Reader for the QueryCodes structure.

func (*QueryCodesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryRedeemHistoryOK

type QueryRedeemHistoryOK struct {
	Payload *platformclientmodels.RedeemHistoryPagingSlicedResult
}

QueryRedeemHistoryOK handles this case with default header values.

successful operation

func NewQueryRedeemHistoryOK

func NewQueryRedeemHistoryOK() *QueryRedeemHistoryOK

NewQueryRedeemHistoryOK creates a QueryRedeemHistoryOK with default headers values

func (*QueryRedeemHistoryOK) Error

func (o *QueryRedeemHistoryOK) Error() string

func (*QueryRedeemHistoryOK) GetPayload

func (*QueryRedeemHistoryOK) ToJSONString added in v0.25.0

func (o *QueryRedeemHistoryOK) ToJSONString() string

type QueryRedeemHistoryParams

type QueryRedeemHistoryParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*CampaignID*/
	CampaignID string
	/*Namespace*/
	Namespace string
	/*Code*/
	Code *string
	/*Limit
	    limit. <div style="border-left: 4px solid #ffc107; background-color: #fff8e1; padding: 10px; margin: 10px 0;">
	    For performance and stability reasons, it is recommended to keep the
	    <code>limit</code> value <strong>no greater than 100</strong>. Using higher values may lead to increased response times or degraded service performance.
	</div>


	*/
	Limit *int32
	/*Offset*/
	Offset *int32
	/*UserID*/
	UserID *string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

QueryRedeemHistoryParams contains all the parameters to send to the API endpoint for the query redeem history operation typically these are written to a http.Request

func NewQueryRedeemHistoryParams

func NewQueryRedeemHistoryParams() *QueryRedeemHistoryParams

NewQueryRedeemHistoryParams creates a new QueryRedeemHistoryParams object with the default values initialized.

func NewQueryRedeemHistoryParamsWithContext

func NewQueryRedeemHistoryParamsWithContext(ctx context.Context) *QueryRedeemHistoryParams

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

func NewQueryRedeemHistoryParamsWithHTTPClient

func NewQueryRedeemHistoryParamsWithHTTPClient(client *http.Client) *QueryRedeemHistoryParams

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

func NewQueryRedeemHistoryParamsWithTimeout

func NewQueryRedeemHistoryParamsWithTimeout(timeout time.Duration) *QueryRedeemHistoryParams

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

func (*QueryRedeemHistoryParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the query redeem history params

func (*QueryRedeemHistoryParams) SetCampaignID

func (o *QueryRedeemHistoryParams) SetCampaignID(campaignID string)

SetCampaignID adds the campaignId to the query redeem history params

func (*QueryRedeemHistoryParams) SetCode

func (o *QueryRedeemHistoryParams) SetCode(code *string)

SetCode adds the code to the query redeem history params

func (*QueryRedeemHistoryParams) SetContext

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

SetContext adds the context to the query redeem history params

func (*QueryRedeemHistoryParams) SetFlightId added in v0.63.0

func (o *QueryRedeemHistoryParams) SetFlightId(flightId string)

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

func (*QueryRedeemHistoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query redeem history params

func (*QueryRedeemHistoryParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the query redeem history params

func (*QueryRedeemHistoryParams) SetLimit

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

SetLimit adds the limit to the query redeem history params

func (*QueryRedeemHistoryParams) SetNamespace

func (o *QueryRedeemHistoryParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query redeem history params

func (*QueryRedeemHistoryParams) SetOffset

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

SetOffset adds the offset to the query redeem history params

func (*QueryRedeemHistoryParams) SetTimeout

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

SetTimeout adds the timeout to the query redeem history params

func (*QueryRedeemHistoryParams) SetUserID

func (o *QueryRedeemHistoryParams) SetUserID(userID *string)

SetUserID adds the userId to the query redeem history params

func (*QueryRedeemHistoryParams) WithCampaignID

func (o *QueryRedeemHistoryParams) WithCampaignID(campaignID string) *QueryRedeemHistoryParams

WithCampaignID adds the campaignID to the query redeem history params

func (*QueryRedeemHistoryParams) WithCode

WithCode adds the code to the query redeem history params

func (*QueryRedeemHistoryParams) WithContext

WithContext adds the context to the query redeem history params

func (*QueryRedeemHistoryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query redeem history params

func (*QueryRedeemHistoryParams) WithLimit

WithLimit adds the limit to the query redeem history params

func (*QueryRedeemHistoryParams) WithNamespace

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

WithNamespace adds the namespace to the query redeem history params

func (*QueryRedeemHistoryParams) WithOffset

WithOffset adds the offset to the query redeem history params

func (*QueryRedeemHistoryParams) WithTimeout

WithTimeout adds the timeout to the query redeem history params

func (*QueryRedeemHistoryParams) WithUserID

WithUserID adds the userID to the query redeem history params

func (*QueryRedeemHistoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type QueryRedeemHistoryReader

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

QueryRedeemHistoryReader is a Reader for the QueryRedeemHistory structure.

func (*QueryRedeemHistoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RenameBatchNoContent added in v0.73.0

type RenameBatchNoContent struct {
}

RenameBatchNoContent handles this case with default header values.

Batch was renamed successfully

func NewRenameBatchNoContent added in v0.73.0

func NewRenameBatchNoContent() *RenameBatchNoContent

NewRenameBatchNoContent creates a RenameBatchNoContent with default headers values

func (*RenameBatchNoContent) Error added in v0.73.0

func (o *RenameBatchNoContent) Error() string

type RenameBatchNotFound added in v0.73.0

type RenameBatchNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

RenameBatchNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37141</td><td>Campaign [{campaignId}] does not exist in namespace [{namespace}]</td></tr><tr><td>37143</td><td>Batch name [{batchName}] does not exist for campaign [{campaignId}] in namespace [{namespace}].</td></tr></table>

func NewRenameBatchNotFound added in v0.73.0

func NewRenameBatchNotFound() *RenameBatchNotFound

NewRenameBatchNotFound creates a RenameBatchNotFound with default headers values

func (*RenameBatchNotFound) Error added in v0.73.0

func (o *RenameBatchNotFound) Error() string

func (*RenameBatchNotFound) GetPayload added in v0.73.0

func (*RenameBatchNotFound) ToJSONString added in v0.73.0

func (o *RenameBatchNotFound) ToJSONString() string

type RenameBatchParams added in v0.73.0

type RenameBatchParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.CampaignBatchNameChange
	/*CampaignID*/
	CampaignID string
	/*Namespace*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

RenameBatchParams contains all the parameters to send to the API endpoint for the rename batch operation typically these are written to a http.Request

func NewRenameBatchParams added in v0.73.0

func NewRenameBatchParams() *RenameBatchParams

NewRenameBatchParams creates a new RenameBatchParams object with the default values initialized.

func NewRenameBatchParamsWithContext added in v0.73.0

func NewRenameBatchParamsWithContext(ctx context.Context) *RenameBatchParams

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

func NewRenameBatchParamsWithHTTPClient added in v0.73.0

func NewRenameBatchParamsWithHTTPClient(client *http.Client) *RenameBatchParams

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

func NewRenameBatchParamsWithTimeout added in v0.73.0

func NewRenameBatchParamsWithTimeout(timeout time.Duration) *RenameBatchParams

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

func (*RenameBatchParams) SetAuthInfoWriter added in v0.73.0

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

SetAuthInfoWriter adds the authInfoWriter to the rename batch params

func (*RenameBatchParams) SetBody added in v0.73.0

SetBody adds the body to the rename batch params

func (*RenameBatchParams) SetCampaignID added in v0.73.0

func (o *RenameBatchParams) SetCampaignID(campaignID string)

SetCampaignID adds the campaignId to the rename batch params

func (*RenameBatchParams) SetContext added in v0.73.0

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

SetContext adds the context to the rename batch params

func (*RenameBatchParams) SetFlightId added in v0.73.0

func (o *RenameBatchParams) SetFlightId(flightId string)

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

func (*RenameBatchParams) SetHTTPClient added in v0.73.0

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

SetHTTPClient adds the HTTPClient to the rename batch params

func (*RenameBatchParams) SetHTTPClientTransport added in v0.73.0

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

SetHTTPClient adds the HTTPClient Transport to the rename batch params

func (*RenameBatchParams) SetNamespace added in v0.73.0

func (o *RenameBatchParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the rename batch params

func (*RenameBatchParams) SetTimeout added in v0.73.0

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

SetTimeout adds the timeout to the rename batch params

func (*RenameBatchParams) WithBody added in v0.73.0

WithBody adds the body to the rename batch params

func (*RenameBatchParams) WithCampaignID added in v0.73.0

func (o *RenameBatchParams) WithCampaignID(campaignID string) *RenameBatchParams

WithCampaignID adds the campaignID to the rename batch params

func (*RenameBatchParams) WithContext added in v0.73.0

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

WithContext adds the context to the rename batch params

func (*RenameBatchParams) WithHTTPClient added in v0.73.0

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

WithHTTPClient adds the HTTPClient to the rename batch params

func (*RenameBatchParams) WithNamespace added in v0.73.0

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

WithNamespace adds the namespace to the rename batch params

func (*RenameBatchParams) WithTimeout added in v0.73.0

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

WithTimeout adds the timeout to the rename batch params

func (*RenameBatchParams) WriteToRequest added in v0.73.0

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

WriteToRequest writes these params to a swagger request

type RenameBatchReader added in v0.73.0

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

RenameBatchReader is a Reader for the RenameBatch structure.

func (*RenameBatchReader) ReadResponse added in v0.73.0

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

ReadResponse reads a server response into the received o.

type UpdateCampaignConflict

type UpdateCampaignConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateCampaignConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37171</td><td>Campaign [{name}] already exists in namespace [{namespace}]</td></tr></table>

func NewUpdateCampaignConflict

func NewUpdateCampaignConflict() *UpdateCampaignConflict

NewUpdateCampaignConflict creates a UpdateCampaignConflict with default headers values

func (*UpdateCampaignConflict) Error

func (o *UpdateCampaignConflict) Error() string

func (*UpdateCampaignConflict) GetPayload

func (*UpdateCampaignConflict) ToJSONString added in v0.25.0

func (o *UpdateCampaignConflict) ToJSONString() string

type UpdateCampaignNotFound

type UpdateCampaignNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateCampaignNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37141</td><td>Campaign [{campaignId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewUpdateCampaignNotFound

func NewUpdateCampaignNotFound() *UpdateCampaignNotFound

NewUpdateCampaignNotFound creates a UpdateCampaignNotFound with default headers values

func (*UpdateCampaignNotFound) Error

func (o *UpdateCampaignNotFound) Error() string

func (*UpdateCampaignNotFound) GetPayload

func (*UpdateCampaignNotFound) ToJSONString added in v0.25.0

func (o *UpdateCampaignNotFound) ToJSONString() string

type UpdateCampaignOK

type UpdateCampaignOK struct {
	Payload *platformclientmodels.CampaignInfo
}

UpdateCampaignOK handles this case with default header values.

successful operation

func NewUpdateCampaignOK

func NewUpdateCampaignOK() *UpdateCampaignOK

NewUpdateCampaignOK creates a UpdateCampaignOK with default headers values

func (*UpdateCampaignOK) Error

func (o *UpdateCampaignOK) Error() string

func (*UpdateCampaignOK) GetPayload

func (*UpdateCampaignOK) ToJSONString added in v0.25.0

func (o *UpdateCampaignOK) ToJSONString() string

type UpdateCampaignParams

type UpdateCampaignParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.CampaignUpdate
	/*CampaignID*/
	CampaignID string
	/*Namespace*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewUpdateCampaignParams

func NewUpdateCampaignParams() *UpdateCampaignParams

NewUpdateCampaignParams creates a new UpdateCampaignParams object with the default values initialized.

func NewUpdateCampaignParamsWithContext

func NewUpdateCampaignParamsWithContext(ctx context.Context) *UpdateCampaignParams

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

func NewUpdateCampaignParamsWithHTTPClient

func NewUpdateCampaignParamsWithHTTPClient(client *http.Client) *UpdateCampaignParams

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

func NewUpdateCampaignParamsWithTimeout

func NewUpdateCampaignParamsWithTimeout(timeout time.Duration) *UpdateCampaignParams

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

func (*UpdateCampaignParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the update campaign params

func (*UpdateCampaignParams) SetBody

SetBody adds the body to the update campaign params

func (*UpdateCampaignParams) SetCampaignID

func (o *UpdateCampaignParams) SetCampaignID(campaignID string)

SetCampaignID adds the campaignId to the update campaign params

func (*UpdateCampaignParams) SetContext

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

SetContext adds the context to the update campaign params

func (*UpdateCampaignParams) SetFlightId added in v0.63.0

func (o *UpdateCampaignParams) SetFlightId(flightId string)

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

func (*UpdateCampaignParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update campaign params

func (*UpdateCampaignParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the update campaign params

func (*UpdateCampaignParams) SetNamespace

func (o *UpdateCampaignParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update campaign params

func (*UpdateCampaignParams) SetTimeout

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

SetTimeout adds the timeout to the update campaign params

func (*UpdateCampaignParams) WithBody

WithBody adds the body to the update campaign params

func (*UpdateCampaignParams) WithCampaignID

func (o *UpdateCampaignParams) WithCampaignID(campaignID string) *UpdateCampaignParams

WithCampaignID adds the campaignID to the update campaign params

func (*UpdateCampaignParams) WithContext

WithContext adds the context to the update campaign params

func (*UpdateCampaignParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update campaign params

func (*UpdateCampaignParams) WithNamespace

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

WithNamespace adds the namespace to the update campaign params

func (*UpdateCampaignParams) WithTimeout

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

WithTimeout adds the timeout to the update campaign params

func (*UpdateCampaignParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateCampaignReader

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

UpdateCampaignReader is a Reader for the UpdateCampaign structure.

func (*UpdateCampaignReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateCampaignUnprocessableEntity

type UpdateCampaignUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

UpdateCampaignUnprocessableEntity 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 NewUpdateCampaignUnprocessableEntity

func NewUpdateCampaignUnprocessableEntity() *UpdateCampaignUnprocessableEntity

NewUpdateCampaignUnprocessableEntity creates a UpdateCampaignUnprocessableEntity with default headers values

func (*UpdateCampaignUnprocessableEntity) Error

func (*UpdateCampaignUnprocessableEntity) GetPayload

func (*UpdateCampaignUnprocessableEntity) ToJSONString added in v0.25.0

func (o *UpdateCampaignUnprocessableEntity) ToJSONString() string

Jump to

Keyboard shortcuts

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