tier

package
v0.68.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for tier API

func (*Client) CreateTier deprecated

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

CreateTier create tier This API is used to create tier for a draft season, can create multiple tiers at same time.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=1 (CREATE)

func (*Client) CreateTierShort

func (a *Client) CreateTierShort(params *CreateTierParams, authInfo runtime.ClientAuthInfoWriter) (*CreateTierCreated, error)

CreateTierShort create tier This API is used to create tier for a draft season, can create multiple tiers at same time.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=1 (CREATE)

func (*Client) DeleteTier deprecated

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

DeleteTier delete a tier This API is used to delete a tier permanently, only draft season pass can be deleted.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=8 (DELETE)

func (*Client) DeleteTierShort

func (a *Client) DeleteTierShort(params *DeleteTierParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteTierNoContent, error)

DeleteTierShort delete a tier This API is used to delete a tier permanently, only draft season pass can be deleted.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=8 (DELETE)

func (*Client) GrantUserExp deprecated

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

GrantUserExp grant exp to user This API is used to grant exp to user, it will auto enroll if there's no user season but active published season exist, season only located in non-publisher namespace, otherwise ignore.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SEASONPASS", action=4 (UPDATE)
  • Returns : user season data

func (*Client) GrantUserExpShort

func (a *Client) GrantUserExpShort(params *GrantUserExpParams, authInfo runtime.ClientAuthInfoWriter) (*GrantUserExpOK, error)

GrantUserExpShort grant exp to user This API is used to grant exp to user, it will auto enroll if there's no user season but active published season exist, season only located in non-publisher namespace, otherwise ignore.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SEASONPASS", action=4 (UPDATE)
  • Returns : user season data

func (*Client) GrantUserTier deprecated

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

GrantUserTier grant tier to user This API is used to grant tier to user, it will auto enroll if there's no user season but active published season exist, season only located in non-publisher namespace, otherwise ignore.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SEASONPASS", action=4 (UPDATE)
  • Returns : user season data

func (*Client) GrantUserTierShort

func (a *Client) GrantUserTierShort(params *GrantUserTierParams, authInfo runtime.ClientAuthInfoWriter) (*GrantUserTierOK, error)

GrantUserTierShort grant tier to user This API is used to grant tier to user, it will auto enroll if there's no user season but active published season exist, season only located in non-publisher namespace, otherwise ignore.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SEASONPASS", action=4 (UPDATE)
  • Returns : user season data

func (*Client) QueryTiers deprecated

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

QueryTiers query paginated tiers for a season This API is used to query paginated tiers for a season.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=2 (READ)
  • Returns : the list of passes

func (*Client) QueryTiersShort

func (a *Client) QueryTiersShort(params *QueryTiersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryTiersOK, error)

QueryTiersShort query paginated tiers for a season This API is used to query paginated tiers for a season.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=2 (READ)
  • Returns : the list of passes

func (*Client) ReorderTier deprecated added in v0.12.0

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

ReorderTier reorder a tier This API is used to reorder a tier. Only draft season pass can be updated.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=4 (UPDATE)

func (*Client) ReorderTierShort added in v0.12.0

func (a *Client) ReorderTierShort(params *ReorderTierParams, authInfo runtime.ClientAuthInfoWriter) (*ReorderTierOK, error)

ReorderTierShort reorder a tier This API is used to reorder a tier. Only draft season pass can be updated.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=4 (UPDATE)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateTier deprecated

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

UpdateTier update a tier This API is used to update a tier. Only draft season pass can be updated.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=4 (UPDATE)

func (*Client) UpdateTierShort

func (a *Client) UpdateTierShort(params *UpdateTierParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateTierOK, error)

UpdateTierShort update a tier This API is used to update a tier. Only draft season pass can be updated.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=4 (UPDATE)

type ClientService

type ClientService interface {
	QueryTiers(params *QueryTiersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryTiersOK, *QueryTiersBadRequest, *QueryTiersNotFound, error)
	QueryTiersShort(params *QueryTiersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryTiersOK, error)
	CreateTier(params *CreateTierParams, authInfo runtime.ClientAuthInfoWriter) (*CreateTierCreated, *CreateTierBadRequest, *CreateTierNotFound, *CreateTierConflict, *CreateTierUnprocessableEntity, error)
	CreateTierShort(params *CreateTierParams, authInfo runtime.ClientAuthInfoWriter) (*CreateTierCreated, error)
	UpdateTier(params *UpdateTierParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateTierOK, *UpdateTierBadRequest, *UpdateTierNotFound, *UpdateTierConflict, *UpdateTierUnprocessableEntity, error)
	UpdateTierShort(params *UpdateTierParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateTierOK, error)
	DeleteTier(params *DeleteTierParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteTierNoContent, *DeleteTierBadRequest, *DeleteTierNotFound, *DeleteTierConflict, error)
	DeleteTierShort(params *DeleteTierParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteTierNoContent, error)
	ReorderTier(params *ReorderTierParams, authInfo runtime.ClientAuthInfoWriter) (*ReorderTierOK, *ReorderTierBadRequest, *ReorderTierNotFound, *ReorderTierConflict, *ReorderTierUnprocessableEntity, error)
	ReorderTierShort(params *ReorderTierParams, authInfo runtime.ClientAuthInfoWriter) (*ReorderTierOK, error)
	GrantUserExp(params *GrantUserExpParams, authInfo runtime.ClientAuthInfoWriter) (*GrantUserExpOK, *GrantUserExpBadRequest, error)
	GrantUserExpShort(params *GrantUserExpParams, authInfo runtime.ClientAuthInfoWriter) (*GrantUserExpOK, error)
	GrantUserTier(params *GrantUserTierParams, authInfo runtime.ClientAuthInfoWriter) (*GrantUserTierOK, *GrantUserTierBadRequest, *GrantUserTierNotFound, error)
	GrantUserTierShort(params *GrantUserTierParams, authInfo runtime.ClientAuthInfoWriter) (*GrantUserTierOK, 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 tier API client.

type CreateTierBadRequest

type CreateTierBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

CreateTierBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20026</td><td>publisher namespace not allowed</td></tr></table>

func NewCreateTierBadRequest

func NewCreateTierBadRequest() *CreateTierBadRequest

NewCreateTierBadRequest creates a CreateTierBadRequest with default headers values

func (*CreateTierBadRequest) Error

func (o *CreateTierBadRequest) Error() string

func (*CreateTierBadRequest) GetPayload

func (*CreateTierBadRequest) ToJSONString added in v0.25.0

func (o *CreateTierBadRequest) ToJSONString() string

type CreateTierConflict

type CreateTierConflict struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

CreateTierConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49171</td><td>Invalid season status [{status}]</td></tr></table>

func NewCreateTierConflict

func NewCreateTierConflict() *CreateTierConflict

NewCreateTierConflict creates a CreateTierConflict with default headers values

func (*CreateTierConflict) Error

func (o *CreateTierConflict) Error() string

func (*CreateTierConflict) GetPayload

func (*CreateTierConflict) ToJSONString added in v0.25.0

func (o *CreateTierConflict) ToJSONString() string

type CreateTierCreated

type CreateTierCreated struct {
	Payload []*seasonpassclientmodels.Tier
}

CreateTierCreated handles this case with default header values.

successful operation

func NewCreateTierCreated

func NewCreateTierCreated() *CreateTierCreated

NewCreateTierCreated creates a CreateTierCreated with default headers values

func (*CreateTierCreated) Error

func (o *CreateTierCreated) Error() string

func (*CreateTierCreated) GetPayload

func (o *CreateTierCreated) GetPayload() []*seasonpassclientmodels.Tier

func (*CreateTierCreated) ToJSONString added in v0.25.0

func (o *CreateTierCreated) ToJSONString() string

type CreateTierNotFound

type CreateTierNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

CreateTierNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49143</td><td>Season [{seasonId}] does not exist in namespace [{namespace}]</td></tr><tr><td>49144</td><td>Reward [{code}] does not exist</td></tr><tr><td>49145</td><td>Pass [{code}] does not exist</td></tr></table>

func NewCreateTierNotFound

func NewCreateTierNotFound() *CreateTierNotFound

NewCreateTierNotFound creates a CreateTierNotFound with default headers values

func (*CreateTierNotFound) Error

func (o *CreateTierNotFound) Error() string

func (*CreateTierNotFound) GetPayload

func (*CreateTierNotFound) ToJSONString added in v0.25.0

func (o *CreateTierNotFound) ToJSONString() string

type CreateTierParams

type CreateTierParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *seasonpassclientmodels.TierCreate
	/*Namespace
	  Namespace

	*/
	Namespace string
	/*SeasonID*/
	SeasonID 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
}

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

func NewCreateTierParams

func NewCreateTierParams() *CreateTierParams

NewCreateTierParams creates a new CreateTierParams object with the default values initialized.

func NewCreateTierParamsWithContext

func NewCreateTierParamsWithContext(ctx context.Context) *CreateTierParams

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

func NewCreateTierParamsWithHTTPClient

func NewCreateTierParamsWithHTTPClient(client *http.Client) *CreateTierParams

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

func NewCreateTierParamsWithTimeout

func NewCreateTierParamsWithTimeout(timeout time.Duration) *CreateTierParams

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

func (*CreateTierParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the create tier params

func (*CreateTierParams) SetBody

SetBody adds the body to the create tier params

func (*CreateTierParams) SetContext

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

SetContext adds the context to the create tier params

func (*CreateTierParams) SetFlightId added in v0.63.0

func (o *CreateTierParams) SetFlightId(flightId string)

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

func (*CreateTierParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create tier params

func (*CreateTierParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the create tier params

func (*CreateTierParams) SetNamespace

func (o *CreateTierParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create tier params

func (*CreateTierParams) SetSeasonID

func (o *CreateTierParams) SetSeasonID(seasonID string)

SetSeasonID adds the seasonId to the create tier params

func (*CreateTierParams) SetTimeout

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

SetTimeout adds the timeout to the create tier params

func (*CreateTierParams) WithBody

WithBody adds the body to the create tier params

func (*CreateTierParams) WithContext

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

WithContext adds the context to the create tier params

func (*CreateTierParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create tier params

func (*CreateTierParams) WithNamespace

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

WithNamespace adds the namespace to the create tier params

func (*CreateTierParams) WithSeasonID

func (o *CreateTierParams) WithSeasonID(seasonID string) *CreateTierParams

WithSeasonID adds the seasonID to the create tier params

func (*CreateTierParams) WithTimeout

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

WithTimeout adds the timeout to the create tier params

func (*CreateTierParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateTierReader

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

CreateTierReader is a Reader for the CreateTier structure.

func (*CreateTierReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateTierUnprocessableEntity

type CreateTierUnprocessableEntity struct {
	Payload *seasonpassclientmodels.ValidationErrorEntity
}

CreateTierUnprocessableEntity 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 NewCreateTierUnprocessableEntity

func NewCreateTierUnprocessableEntity() *CreateTierUnprocessableEntity

NewCreateTierUnprocessableEntity creates a CreateTierUnprocessableEntity with default headers values

func (*CreateTierUnprocessableEntity) Error

func (*CreateTierUnprocessableEntity) GetPayload

func (*CreateTierUnprocessableEntity) ToJSONString added in v0.25.0

func (o *CreateTierUnprocessableEntity) ToJSONString() string

type DeleteTierBadRequest

type DeleteTierBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

DeleteTierBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20026</td><td>publisher namespace not allowed</td></tr></table>

func NewDeleteTierBadRequest

func NewDeleteTierBadRequest() *DeleteTierBadRequest

NewDeleteTierBadRequest creates a DeleteTierBadRequest with default headers values

func (*DeleteTierBadRequest) Error

func (o *DeleteTierBadRequest) Error() string

func (*DeleteTierBadRequest) GetPayload

func (*DeleteTierBadRequest) ToJSONString added in v0.25.0

func (o *DeleteTierBadRequest) ToJSONString() string

type DeleteTierConflict

type DeleteTierConflict struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

DeleteTierConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49171</td><td>Invalid season status [{status}]</td></tr></table>

func NewDeleteTierConflict

func NewDeleteTierConflict() *DeleteTierConflict

NewDeleteTierConflict creates a DeleteTierConflict with default headers values

func (*DeleteTierConflict) Error

func (o *DeleteTierConflict) Error() string

func (*DeleteTierConflict) GetPayload

func (*DeleteTierConflict) ToJSONString added in v0.25.0

func (o *DeleteTierConflict) ToJSONString() string

type DeleteTierNoContent

type DeleteTierNoContent struct {
}

DeleteTierNoContent handles this case with default header values.

Delete tier successfully

func NewDeleteTierNoContent

func NewDeleteTierNoContent() *DeleteTierNoContent

NewDeleteTierNoContent creates a DeleteTierNoContent with default headers values

func (*DeleteTierNoContent) Error

func (o *DeleteTierNoContent) Error() string

type DeleteTierNotFound

type DeleteTierNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

DeleteTierNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49143</td><td>Season [{seasonId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewDeleteTierNotFound

func NewDeleteTierNotFound() *DeleteTierNotFound

NewDeleteTierNotFound creates a DeleteTierNotFound with default headers values

func (*DeleteTierNotFound) Error

func (o *DeleteTierNotFound) Error() string

func (*DeleteTierNotFound) GetPayload

func (*DeleteTierNotFound) ToJSONString added in v0.25.0

func (o *DeleteTierNotFound) ToJSONString() string

type DeleteTierParams

type DeleteTierParams struct {

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

	*/
	Namespace string
	/*SeasonID*/
	SeasonID 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
}

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

func NewDeleteTierParams

func NewDeleteTierParams() *DeleteTierParams

NewDeleteTierParams creates a new DeleteTierParams object with the default values initialized.

func NewDeleteTierParamsWithContext

func NewDeleteTierParamsWithContext(ctx context.Context) *DeleteTierParams

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

func NewDeleteTierParamsWithHTTPClient

func NewDeleteTierParamsWithHTTPClient(client *http.Client) *DeleteTierParams

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

func NewDeleteTierParamsWithTimeout

func NewDeleteTierParamsWithTimeout(timeout time.Duration) *DeleteTierParams

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

func (*DeleteTierParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the delete tier params

func (*DeleteTierParams) SetContext

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

SetContext adds the context to the delete tier params

func (*DeleteTierParams) SetFlightId added in v0.63.0

func (o *DeleteTierParams) SetFlightId(flightId string)

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

func (*DeleteTierParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete tier params

func (*DeleteTierParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the delete tier params

func (*DeleteTierParams) SetID

func (o *DeleteTierParams) SetID(idVar string)

SetID adds the id to the delete tier params

func (*DeleteTierParams) SetNamespace

func (o *DeleteTierParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete tier params

func (*DeleteTierParams) SetSeasonID

func (o *DeleteTierParams) SetSeasonID(seasonID string)

SetSeasonID adds the seasonId to the delete tier params

func (*DeleteTierParams) SetTimeout

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

SetTimeout adds the timeout to the delete tier params

func (*DeleteTierParams) WithContext

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

WithContext adds the context to the delete tier params

func (*DeleteTierParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete tier params

func (*DeleteTierParams) WithID

func (o *DeleteTierParams) WithID(idVar string) *DeleteTierParams

WithID adds the idVar to the delete tier params

func (*DeleteTierParams) WithNamespace

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

WithNamespace adds the namespace to the delete tier params

func (*DeleteTierParams) WithSeasonID

func (o *DeleteTierParams) WithSeasonID(seasonID string) *DeleteTierParams

WithSeasonID adds the seasonID to the delete tier params

func (*DeleteTierParams) WithTimeout

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

WithTimeout adds the timeout to the delete tier params

func (*DeleteTierParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteTierReader

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

DeleteTierReader is a Reader for the DeleteTier structure.

func (*DeleteTierReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GrantUserExpBadRequest

type GrantUserExpBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

GrantUserExpBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20026</td><td>publisher namespace not allowed</td></tr></table>

func NewGrantUserExpBadRequest

func NewGrantUserExpBadRequest() *GrantUserExpBadRequest

NewGrantUserExpBadRequest creates a GrantUserExpBadRequest with default headers values

func (*GrantUserExpBadRequest) Error

func (o *GrantUserExpBadRequest) Error() string

func (*GrantUserExpBadRequest) GetPayload

func (*GrantUserExpBadRequest) ToJSONString added in v0.25.0

func (o *GrantUserExpBadRequest) ToJSONString() string

type GrantUserExpOK

type GrantUserExpOK struct {
	Payload *seasonpassclientmodels.UserSeasonSummary
}

GrantUserExpOK handles this case with default header values.

successful operation

func NewGrantUserExpOK

func NewGrantUserExpOK() *GrantUserExpOK

NewGrantUserExpOK creates a GrantUserExpOK with default headers values

func (*GrantUserExpOK) Error

func (o *GrantUserExpOK) Error() string

func (*GrantUserExpOK) GetPayload

func (*GrantUserExpOK) ToJSONString added in v0.25.0

func (o *GrantUserExpOK) ToJSONString() string

type GrantUserExpParams

type GrantUserExpParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *seasonpassclientmodels.UserExpGrant
	/*Namespace
	  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
}

GrantUserExpParams contains all the parameters to send to the API endpoint for the grant user exp operation typically these are written to a http.Request

func NewGrantUserExpParams

func NewGrantUserExpParams() *GrantUserExpParams

NewGrantUserExpParams creates a new GrantUserExpParams object with the default values initialized.

func NewGrantUserExpParamsWithContext

func NewGrantUserExpParamsWithContext(ctx context.Context) *GrantUserExpParams

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

func NewGrantUserExpParamsWithHTTPClient

func NewGrantUserExpParamsWithHTTPClient(client *http.Client) *GrantUserExpParams

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

func NewGrantUserExpParamsWithTimeout

func NewGrantUserExpParamsWithTimeout(timeout time.Duration) *GrantUserExpParams

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

func (*GrantUserExpParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the grant user exp params

func (*GrantUserExpParams) SetBody

SetBody adds the body to the grant user exp params

func (*GrantUserExpParams) SetContext

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

SetContext adds the context to the grant user exp params

func (*GrantUserExpParams) SetFlightId added in v0.63.0

func (o *GrantUserExpParams) SetFlightId(flightId string)

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

func (*GrantUserExpParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the grant user exp params

func (*GrantUserExpParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the grant user exp params

func (*GrantUserExpParams) SetNamespace

func (o *GrantUserExpParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the grant user exp params

func (*GrantUserExpParams) SetTimeout

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

SetTimeout adds the timeout to the grant user exp params

func (*GrantUserExpParams) SetUserID

func (o *GrantUserExpParams) SetUserID(userID string)

SetUserID adds the userId to the grant user exp params

func (*GrantUserExpParams) WithBody

WithBody adds the body to the grant user exp params

func (*GrantUserExpParams) WithContext

WithContext adds the context to the grant user exp params

func (*GrantUserExpParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the grant user exp params

func (*GrantUserExpParams) WithNamespace

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

WithNamespace adds the namespace to the grant user exp params

func (*GrantUserExpParams) WithTimeout

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

WithTimeout adds the timeout to the grant user exp params

func (*GrantUserExpParams) WithUserID

func (o *GrantUserExpParams) WithUserID(userID string) *GrantUserExpParams

WithUserID adds the userID to the grant user exp params

func (*GrantUserExpParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GrantUserExpReader

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

GrantUserExpReader is a Reader for the GrantUserExp structure.

func (*GrantUserExpReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GrantUserTierBadRequest

type GrantUserTierBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

GrantUserTierBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20026</td><td>publisher namespace not allowed</td></tr></table>

func NewGrantUserTierBadRequest

func NewGrantUserTierBadRequest() *GrantUserTierBadRequest

NewGrantUserTierBadRequest creates a GrantUserTierBadRequest with default headers values

func (*GrantUserTierBadRequest) Error

func (o *GrantUserTierBadRequest) Error() string

func (*GrantUserTierBadRequest) GetPayload

func (*GrantUserTierBadRequest) ToJSONString added in v0.25.0

func (o *GrantUserTierBadRequest) ToJSONString() string

type GrantUserTierNotFound

type GrantUserTierNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

GrantUserTierNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49148</td><td>User season does not exist</td></tr></table>

func NewGrantUserTierNotFound

func NewGrantUserTierNotFound() *GrantUserTierNotFound

NewGrantUserTierNotFound creates a GrantUserTierNotFound with default headers values

func (*GrantUserTierNotFound) Error

func (o *GrantUserTierNotFound) Error() string

func (*GrantUserTierNotFound) GetPayload

func (*GrantUserTierNotFound) ToJSONString added in v0.25.0

func (o *GrantUserTierNotFound) ToJSONString() string

type GrantUserTierOK

type GrantUserTierOK struct {
	Payload *seasonpassclientmodels.UserSeasonSummary
}

GrantUserTierOK handles this case with default header values.

successful operation

func NewGrantUserTierOK

func NewGrantUserTierOK() *GrantUserTierOK

NewGrantUserTierOK creates a GrantUserTierOK with default headers values

func (*GrantUserTierOK) Error

func (o *GrantUserTierOK) Error() string

func (*GrantUserTierOK) GetPayload

func (*GrantUserTierOK) ToJSONString added in v0.25.0

func (o *GrantUserTierOK) ToJSONString() string

type GrantUserTierParams

type GrantUserTierParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *seasonpassclientmodels.UserTierGrant
	/*Namespace
	  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
}

GrantUserTierParams contains all the parameters to send to the API endpoint for the grant user tier operation typically these are written to a http.Request

func NewGrantUserTierParams

func NewGrantUserTierParams() *GrantUserTierParams

NewGrantUserTierParams creates a new GrantUserTierParams object with the default values initialized.

func NewGrantUserTierParamsWithContext

func NewGrantUserTierParamsWithContext(ctx context.Context) *GrantUserTierParams

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

func NewGrantUserTierParamsWithHTTPClient

func NewGrantUserTierParamsWithHTTPClient(client *http.Client) *GrantUserTierParams

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

func NewGrantUserTierParamsWithTimeout

func NewGrantUserTierParamsWithTimeout(timeout time.Duration) *GrantUserTierParams

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

func (*GrantUserTierParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the grant user tier params

func (*GrantUserTierParams) SetBody

SetBody adds the body to the grant user tier params

func (*GrantUserTierParams) SetContext

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

SetContext adds the context to the grant user tier params

func (*GrantUserTierParams) SetFlightId added in v0.63.0

func (o *GrantUserTierParams) SetFlightId(flightId string)

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

func (*GrantUserTierParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the grant user tier params

func (*GrantUserTierParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the grant user tier params

func (*GrantUserTierParams) SetNamespace

func (o *GrantUserTierParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the grant user tier params

func (*GrantUserTierParams) SetTimeout

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

SetTimeout adds the timeout to the grant user tier params

func (*GrantUserTierParams) SetUserID

func (o *GrantUserTierParams) SetUserID(userID string)

SetUserID adds the userId to the grant user tier params

func (*GrantUserTierParams) WithBody

WithBody adds the body to the grant user tier params

func (*GrantUserTierParams) WithContext

WithContext adds the context to the grant user tier params

func (*GrantUserTierParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the grant user tier params

func (*GrantUserTierParams) WithNamespace

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

WithNamespace adds the namespace to the grant user tier params

func (*GrantUserTierParams) WithTimeout

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

WithTimeout adds the timeout to the grant user tier params

func (*GrantUserTierParams) WithUserID

func (o *GrantUserTierParams) WithUserID(userID string) *GrantUserTierParams

WithUserID adds the userID to the grant user tier params

func (*GrantUserTierParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GrantUserTierReader

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

GrantUserTierReader is a Reader for the GrantUserTier structure.

func (*GrantUserTierReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryTiersBadRequest

type QueryTiersBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

QueryTiersBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20026</td><td>publisher namespace not allowed</td></tr></table>

func NewQueryTiersBadRequest

func NewQueryTiersBadRequest() *QueryTiersBadRequest

NewQueryTiersBadRequest creates a QueryTiersBadRequest with default headers values

func (*QueryTiersBadRequest) Error

func (o *QueryTiersBadRequest) Error() string

func (*QueryTiersBadRequest) GetPayload

func (*QueryTiersBadRequest) ToJSONString added in v0.25.0

func (o *QueryTiersBadRequest) ToJSONString() string

type QueryTiersNotFound

type QueryTiersNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

QueryTiersNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49143</td><td>Season [{seasonId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewQueryTiersNotFound

func NewQueryTiersNotFound() *QueryTiersNotFound

NewQueryTiersNotFound creates a QueryTiersNotFound with default headers values

func (*QueryTiersNotFound) Error

func (o *QueryTiersNotFound) Error() string

func (*QueryTiersNotFound) GetPayload

func (*QueryTiersNotFound) ToJSONString added in v0.25.0

func (o *QueryTiersNotFound) ToJSONString() string

type QueryTiersOK

type QueryTiersOK struct {
	Payload *seasonpassclientmodels.TierPagingSlicedResult
}

QueryTiersOK handles this case with default header values.

successful operation

func NewQueryTiersOK

func NewQueryTiersOK() *QueryTiersOK

NewQueryTiersOK creates a QueryTiersOK with default headers values

func (*QueryTiersOK) Error

func (o *QueryTiersOK) Error() string

func (*QueryTiersOK) GetPayload

func (*QueryTiersOK) ToJSONString added in v0.25.0

func (o *QueryTiersOK) ToJSONString() string

type QueryTiersParams

type QueryTiersParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*SeasonID*/
	SeasonID string
	/*Limit
	  limit

	*/
	Limit *int32
	/*Offset
	  offset

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

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

func NewQueryTiersParams

func NewQueryTiersParams() *QueryTiersParams

NewQueryTiersParams creates a new QueryTiersParams object with the default values initialized.

func NewQueryTiersParamsWithContext

func NewQueryTiersParamsWithContext(ctx context.Context) *QueryTiersParams

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

func NewQueryTiersParamsWithHTTPClient

func NewQueryTiersParamsWithHTTPClient(client *http.Client) *QueryTiersParams

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

func NewQueryTiersParamsWithTimeout

func NewQueryTiersParamsWithTimeout(timeout time.Duration) *QueryTiersParams

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

func (*QueryTiersParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the query tiers params

func (*QueryTiersParams) SetContext

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

SetContext adds the context to the query tiers params

func (*QueryTiersParams) SetFlightId added in v0.63.0

func (o *QueryTiersParams) SetFlightId(flightId string)

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

func (*QueryTiersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query tiers params

func (*QueryTiersParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the query tiers params

func (*QueryTiersParams) SetLimit

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

SetLimit adds the limit to the query tiers params

func (*QueryTiersParams) SetNamespace

func (o *QueryTiersParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query tiers params

func (*QueryTiersParams) SetOffset

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

SetOffset adds the offset to the query tiers params

func (*QueryTiersParams) SetSeasonID

func (o *QueryTiersParams) SetSeasonID(seasonID string)

SetSeasonID adds the seasonId to the query tiers params

func (*QueryTiersParams) SetTimeout

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

SetTimeout adds the timeout to the query tiers params

func (*QueryTiersParams) WithContext

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

WithContext adds the context to the query tiers params

func (*QueryTiersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query tiers params

func (*QueryTiersParams) WithLimit

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

WithLimit adds the limit to the query tiers params

func (*QueryTiersParams) WithNamespace

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

WithNamespace adds the namespace to the query tiers params

func (*QueryTiersParams) WithOffset

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

WithOffset adds the offset to the query tiers params

func (*QueryTiersParams) WithSeasonID

func (o *QueryTiersParams) WithSeasonID(seasonID string) *QueryTiersParams

WithSeasonID adds the seasonID to the query tiers params

func (*QueryTiersParams) WithTimeout

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

WithTimeout adds the timeout to the query tiers params

func (*QueryTiersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type QueryTiersReader

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

QueryTiersReader is a Reader for the QueryTiers structure.

func (*QueryTiersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReorderTierBadRequest added in v0.12.0

type ReorderTierBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

ReorderTierBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20026</td><td>publisher namespace not allowed</td></tr></table>

func NewReorderTierBadRequest added in v0.12.0

func NewReorderTierBadRequest() *ReorderTierBadRequest

NewReorderTierBadRequest creates a ReorderTierBadRequest with default headers values

func (*ReorderTierBadRequest) Error added in v0.12.0

func (o *ReorderTierBadRequest) Error() string

func (*ReorderTierBadRequest) GetPayload added in v0.12.0

func (*ReorderTierBadRequest) ToJSONString added in v0.25.0

func (o *ReorderTierBadRequest) ToJSONString() string

type ReorderTierConflict added in v0.12.0

type ReorderTierConflict struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

ReorderTierConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49171</td><td>Invalid season status [{status}]</td></tr></table>

func NewReorderTierConflict added in v0.12.0

func NewReorderTierConflict() *ReorderTierConflict

NewReorderTierConflict creates a ReorderTierConflict with default headers values

func (*ReorderTierConflict) Error added in v0.12.0

func (o *ReorderTierConflict) Error() string

func (*ReorderTierConflict) GetPayload added in v0.12.0

func (*ReorderTierConflict) ToJSONString added in v0.25.0

func (o *ReorderTierConflict) ToJSONString() string

type ReorderTierNotFound added in v0.12.0

type ReorderTierNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

ReorderTierNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49143</td><td>Season [{seasonId}] does not exist in namespace [{namespace}]</td></tr><tr><td>49146</td><td>Tier does not exist</td></tr></table>

func NewReorderTierNotFound added in v0.12.0

func NewReorderTierNotFound() *ReorderTierNotFound

NewReorderTierNotFound creates a ReorderTierNotFound with default headers values

func (*ReorderTierNotFound) Error added in v0.12.0

func (o *ReorderTierNotFound) Error() string

func (*ReorderTierNotFound) GetPayload added in v0.12.0

func (*ReorderTierNotFound) ToJSONString added in v0.25.0

func (o *ReorderTierNotFound) ToJSONString() string

type ReorderTierOK added in v0.12.0

type ReorderTierOK struct {
	Payload *seasonpassclientmodels.Tier
}

ReorderTierOK handles this case with default header values.

successful operation

func NewReorderTierOK added in v0.12.0

func NewReorderTierOK() *ReorderTierOK

NewReorderTierOK creates a ReorderTierOK with default headers values

func (*ReorderTierOK) Error added in v0.12.0

func (o *ReorderTierOK) Error() string

func (*ReorderTierOK) GetPayload added in v0.12.0

func (o *ReorderTierOK) GetPayload() *seasonpassclientmodels.Tier

func (*ReorderTierOK) ToJSONString added in v0.25.0

func (o *ReorderTierOK) ToJSONString() string

type ReorderTierParams added in v0.12.0

type ReorderTierParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *seasonpassclientmodels.TierReorder
	/*ID*/
	ID string
	/*Namespace*/
	Namespace string
	/*SeasonID*/
	SeasonID 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
}

ReorderTierParams contains all the parameters to send to the API endpoint for the reorder tier operation typically these are written to a http.Request

func NewReorderTierParams added in v0.12.0

func NewReorderTierParams() *ReorderTierParams

NewReorderTierParams creates a new ReorderTierParams object with the default values initialized.

func NewReorderTierParamsWithContext added in v0.12.0

func NewReorderTierParamsWithContext(ctx context.Context) *ReorderTierParams

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

func NewReorderTierParamsWithHTTPClient added in v0.12.0

func NewReorderTierParamsWithHTTPClient(client *http.Client) *ReorderTierParams

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

func NewReorderTierParamsWithTimeout added in v0.12.0

func NewReorderTierParamsWithTimeout(timeout time.Duration) *ReorderTierParams

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

func (*ReorderTierParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the reorder tier params

func (*ReorderTierParams) SetBody added in v0.12.0

SetBody adds the body to the reorder tier params

func (*ReorderTierParams) SetContext added in v0.12.0

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

SetContext adds the context to the reorder tier params

func (*ReorderTierParams) SetFlightId added in v0.63.0

func (o *ReorderTierParams) SetFlightId(flightId string)

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

func (*ReorderTierParams) SetHTTPClient added in v0.12.0

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

SetHTTPClient adds the HTTPClient to the reorder tier params

func (*ReorderTierParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the reorder tier params

func (*ReorderTierParams) SetID added in v0.12.0

func (o *ReorderTierParams) SetID(idVar string)

SetID adds the id to the reorder tier params

func (*ReorderTierParams) SetNamespace added in v0.12.0

func (o *ReorderTierParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the reorder tier params

func (*ReorderTierParams) SetSeasonID added in v0.12.0

func (o *ReorderTierParams) SetSeasonID(seasonID string)

SetSeasonID adds the seasonId to the reorder tier params

func (*ReorderTierParams) SetTimeout added in v0.12.0

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

SetTimeout adds the timeout to the reorder tier params

func (*ReorderTierParams) WithBody added in v0.12.0

WithBody adds the body to the reorder tier params

func (*ReorderTierParams) WithContext added in v0.12.0

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

WithContext adds the context to the reorder tier params

func (*ReorderTierParams) WithHTTPClient added in v0.12.0

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

WithHTTPClient adds the HTTPClient to the reorder tier params

func (*ReorderTierParams) WithID added in v0.12.0

func (o *ReorderTierParams) WithID(idVar string) *ReorderTierParams

WithID adds the idVar to the reorder tier params

func (*ReorderTierParams) WithNamespace added in v0.12.0

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

WithNamespace adds the namespace to the reorder tier params

func (*ReorderTierParams) WithSeasonID added in v0.12.0

func (o *ReorderTierParams) WithSeasonID(seasonID string) *ReorderTierParams

WithSeasonID adds the seasonID to the reorder tier params

func (*ReorderTierParams) WithTimeout added in v0.12.0

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

WithTimeout adds the timeout to the reorder tier params

func (*ReorderTierParams) WriteToRequest added in v0.12.0

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

WriteToRequest writes these params to a swagger request

type ReorderTierReader added in v0.12.0

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

ReorderTierReader is a Reader for the ReorderTier structure.

func (*ReorderTierReader) ReadResponse added in v0.12.0

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

ReadResponse reads a server response into the received o.

type ReorderTierUnprocessableEntity added in v0.12.0

type ReorderTierUnprocessableEntity struct {
	Payload *seasonpassclientmodels.ValidationErrorEntity
}

ReorderTierUnprocessableEntity 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 NewReorderTierUnprocessableEntity added in v0.12.0

func NewReorderTierUnprocessableEntity() *ReorderTierUnprocessableEntity

NewReorderTierUnprocessableEntity creates a ReorderTierUnprocessableEntity with default headers values

func (*ReorderTierUnprocessableEntity) Error added in v0.12.0

func (*ReorderTierUnprocessableEntity) GetPayload added in v0.12.0

func (*ReorderTierUnprocessableEntity) ToJSONString added in v0.25.0

func (o *ReorderTierUnprocessableEntity) ToJSONString() string

type UpdateTierBadRequest

type UpdateTierBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

UpdateTierBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20026</td><td>publisher namespace not allowed</td></tr></table>

func NewUpdateTierBadRequest

func NewUpdateTierBadRequest() *UpdateTierBadRequest

NewUpdateTierBadRequest creates a UpdateTierBadRequest with default headers values

func (*UpdateTierBadRequest) Error

func (o *UpdateTierBadRequest) Error() string

func (*UpdateTierBadRequest) GetPayload

func (*UpdateTierBadRequest) ToJSONString added in v0.25.0

func (o *UpdateTierBadRequest) ToJSONString() string

type UpdateTierConflict

type UpdateTierConflict struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

UpdateTierConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49171</td><td>Invalid season status [{status}]</td></tr></table>

func NewUpdateTierConflict

func NewUpdateTierConflict() *UpdateTierConflict

NewUpdateTierConflict creates a UpdateTierConflict with default headers values

func (*UpdateTierConflict) Error

func (o *UpdateTierConflict) Error() string

func (*UpdateTierConflict) GetPayload

func (*UpdateTierConflict) ToJSONString added in v0.25.0

func (o *UpdateTierConflict) ToJSONString() string

type UpdateTierNotFound

type UpdateTierNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

UpdateTierNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49143</td><td>Season [{seasonId}] does not exist in namespace [{namespace}]</td></tr><tr><td>49144</td><td>Reward [{code}] does not exist</td></tr><tr><td>49145</td><td>Pass [{code}] does not exist</td></tr><tr><td>49146</td><td>Tier does not exist</td></tr></table>

func NewUpdateTierNotFound

func NewUpdateTierNotFound() *UpdateTierNotFound

NewUpdateTierNotFound creates a UpdateTierNotFound with default headers values

func (*UpdateTierNotFound) Error

func (o *UpdateTierNotFound) Error() string

func (*UpdateTierNotFound) GetPayload

func (*UpdateTierNotFound) ToJSONString added in v0.25.0

func (o *UpdateTierNotFound) ToJSONString() string

type UpdateTierOK

type UpdateTierOK struct {
	Payload *seasonpassclientmodels.Tier
}

UpdateTierOK handles this case with default header values.

successful operation

func NewUpdateTierOK

func NewUpdateTierOK() *UpdateTierOK

NewUpdateTierOK creates a UpdateTierOK with default headers values

func (*UpdateTierOK) Error

func (o *UpdateTierOK) Error() string

func (*UpdateTierOK) GetPayload

func (o *UpdateTierOK) GetPayload() *seasonpassclientmodels.Tier

func (*UpdateTierOK) ToJSONString added in v0.25.0

func (o *UpdateTierOK) ToJSONString() string

type UpdateTierParams

type UpdateTierParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *seasonpassclientmodels.TierInput
	/*ID*/
	ID string
	/*Namespace*/
	Namespace string
	/*SeasonID*/
	SeasonID 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
}

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

func NewUpdateTierParams

func NewUpdateTierParams() *UpdateTierParams

NewUpdateTierParams creates a new UpdateTierParams object with the default values initialized.

func NewUpdateTierParamsWithContext

func NewUpdateTierParamsWithContext(ctx context.Context) *UpdateTierParams

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

func NewUpdateTierParamsWithHTTPClient

func NewUpdateTierParamsWithHTTPClient(client *http.Client) *UpdateTierParams

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

func NewUpdateTierParamsWithTimeout

func NewUpdateTierParamsWithTimeout(timeout time.Duration) *UpdateTierParams

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

func (*UpdateTierParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the update tier params

func (*UpdateTierParams) SetBody

SetBody adds the body to the update tier params

func (*UpdateTierParams) SetContext

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

SetContext adds the context to the update tier params

func (*UpdateTierParams) SetFlightId added in v0.63.0

func (o *UpdateTierParams) SetFlightId(flightId string)

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

func (*UpdateTierParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update tier params

func (*UpdateTierParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the update tier params

func (*UpdateTierParams) SetID

func (o *UpdateTierParams) SetID(idVar string)

SetID adds the id to the update tier params

func (*UpdateTierParams) SetNamespace

func (o *UpdateTierParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update tier params

func (*UpdateTierParams) SetSeasonID

func (o *UpdateTierParams) SetSeasonID(seasonID string)

SetSeasonID adds the seasonId to the update tier params

func (*UpdateTierParams) SetTimeout

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

SetTimeout adds the timeout to the update tier params

func (*UpdateTierParams) WithBody

WithBody adds the body to the update tier params

func (*UpdateTierParams) WithContext

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

WithContext adds the context to the update tier params

func (*UpdateTierParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update tier params

func (*UpdateTierParams) WithID

func (o *UpdateTierParams) WithID(idVar string) *UpdateTierParams

WithID adds the idVar to the update tier params

func (*UpdateTierParams) WithNamespace

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

WithNamespace adds the namespace to the update tier params

func (*UpdateTierParams) WithSeasonID

func (o *UpdateTierParams) WithSeasonID(seasonID string) *UpdateTierParams

WithSeasonID adds the seasonID to the update tier params

func (*UpdateTierParams) WithTimeout

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

WithTimeout adds the timeout to the update tier params

func (*UpdateTierParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateTierReader

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

UpdateTierReader is a Reader for the UpdateTier structure.

func (*UpdateTierReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateTierUnprocessableEntity

type UpdateTierUnprocessableEntity struct {
	Payload *seasonpassclientmodels.ValidationErrorEntity
}

UpdateTierUnprocessableEntity 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 NewUpdateTierUnprocessableEntity

func NewUpdateTierUnprocessableEntity() *UpdateTierUnprocessableEntity

NewUpdateTierUnprocessableEntity creates a UpdateTierUnprocessableEntity with default headers values

func (*UpdateTierUnprocessableEntity) Error

func (*UpdateTierUnprocessableEntity) GetPayload

func (*UpdateTierUnprocessableEntity) ToJSONString added in v0.25.0

func (o *UpdateTierUnprocessableEntity) ToJSONString() string

Jump to

Keyboard shortcuts

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