pass

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 14 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 pass API

func (*Client) CreatePass deprecated

Deprecated: Use CreatePassShort instead.

CreatePass creates a pass

This API is used to create a pass for a draft season.<p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=1 (CREATE)</li><li><i>Returns</i>: created pass</li></ul>

func (*Client) CreatePassShort

func (a *Client) CreatePassShort(params *CreatePassParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePassCreated, error)

CreatePassShort creates a pass

This API is used to create a pass for a draft season.<p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=1 (CREATE)</li><li><i>Returns</i>: created pass</li></ul>

func (*Client) DeletePass deprecated

Deprecated: Use DeletePassShort instead.

DeletePass deletes a pass

This API is used to delete a pass permanently, only draft season pass can be deleted. <p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=8 (DELETE)</li></ul>

func (*Client) DeletePassShort

func (a *Client) DeletePassShort(params *DeletePassParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePassNoContent, error)

DeletePassShort deletes a pass

This API is used to delete a pass permanently, only draft season pass can be deleted. <p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=8 (DELETE)</li></ul>

func (*Client) GetPass deprecated

Deprecated: Use GetPassShort instead.

GetPass gets a pass

This API is used to get a pass for a season.<p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=2 (READ)</li><li><i>Returns</i>: pass data</li></ul>

func (*Client) GetPassShort

func (a *Client) GetPassShort(params *GetPassParams, authInfo runtime.ClientAuthInfoWriter) (*GetPassOK, error)

GetPassShort gets a pass

This API is used to get a pass for a season.<p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=2 (READ)</li><li><i>Returns</i>: pass data</li></ul>

func (*Client) GrantUserPass deprecated

Deprecated: Use GrantUserPassShort instead.

GrantUserPass grants pass to user

This API is used to grant pass 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.<p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SEASONPASS", action=4 (UPDATE)</li><li><i>Returns</i>: user season data</li></ul>

func (*Client) GrantUserPassShort

func (a *Client) GrantUserPassShort(params *GrantUserPassParams, authInfo runtime.ClientAuthInfoWriter) (*GrantUserPassOK, error)

GrantUserPassShort grants pass to user

This API is used to grant pass 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.<p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SEASONPASS", action=4 (UPDATE)</li><li><i>Returns</i>: user season data</li></ul>

func (*Client) QueryPasses deprecated

Deprecated: Use QueryPassesShort instead.

QueryPasses queries all passes for a season

This API is used to query all passes for a season.<p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=2 (READ)</li><li><i>Returns</i>: the list of passes</li></ul>

func (*Client) QueryPassesShort

func (a *Client) QueryPassesShort(params *QueryPassesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPassesOK, error)

QueryPassesShort queries all passes for a season

This API is used to query all passes for a season.<p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=2 (READ)</li><li><i>Returns</i>: the list of passes</li></ul>

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdatePass deprecated

Deprecated: Use UpdatePassShort instead.

UpdatePass updates a pass

This API is used to update a pass. Only draft season pass can be updated.<p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=4 (UPDATE)</li><li><i>Returns</i>: updated pass</li></ul>

func (*Client) UpdatePassShort

func (a *Client) UpdatePassShort(params *UpdatePassParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePassOK, error)

UpdatePassShort updates a pass

This API is used to update a pass. Only draft season pass can be updated.<p>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=4 (UPDATE)</li><li><i>Returns</i>: updated pass</li></ul>

type ClientService

type ClientService interface {
	CreatePass(params *CreatePassParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePassCreated, *CreatePassBadRequest, *CreatePassNotFound, *CreatePassConflict, *CreatePassUnprocessableEntity, error)
	CreatePassShort(params *CreatePassParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePassCreated, error)
	DeletePass(params *DeletePassParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePassNoContent, *DeletePassBadRequest, *DeletePassNotFound, *DeletePassConflict, error)
	DeletePassShort(params *DeletePassParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePassNoContent, error)
	GetPass(params *GetPassParams, authInfo runtime.ClientAuthInfoWriter) (*GetPassOK, *GetPassBadRequest, *GetPassNotFound, error)
	GetPassShort(params *GetPassParams, authInfo runtime.ClientAuthInfoWriter) (*GetPassOK, error)
	GrantUserPass(params *GrantUserPassParams, authInfo runtime.ClientAuthInfoWriter) (*GrantUserPassOK, *GrantUserPassBadRequest, error)
	GrantUserPassShort(params *GrantUserPassParams, authInfo runtime.ClientAuthInfoWriter) (*GrantUserPassOK, error)
	QueryPasses(params *QueryPassesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPassesOK, *QueryPassesBadRequest, *QueryPassesNotFound, error)
	QueryPassesShort(params *QueryPassesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPassesOK, error)
	UpdatePass(params *UpdatePassParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePassOK, *UpdatePassBadRequest, *UpdatePassNotFound, *UpdatePassConflict, *UpdatePassUnprocessableEntity, error)
	UpdatePassShort(params *UpdatePassParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePassOK, 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 pass API client.

type CreatePassBadRequest

type CreatePassBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

CreatePassBadRequest 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><tr><td>49121</td><td>Default language [{language}] required in localizations</td></tr></table>

func NewCreatePassBadRequest

func NewCreatePassBadRequest() *CreatePassBadRequest

NewCreatePassBadRequest creates a CreatePassBadRequest with default headers values

func (*CreatePassBadRequest) Error

func (o *CreatePassBadRequest) Error() string

func (*CreatePassBadRequest) GetPayload

func (*CreatePassBadRequest) ToJSONString added in v0.25.0

func (o *CreatePassBadRequest) ToJSONString() string

type CreatePassConflict

type CreatePassConflict struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

CreatePassConflict 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><tr><td>49174</td><td>Pass [{code}] already exists in the season</td></tr></table>

func NewCreatePassConflict

func NewCreatePassConflict() *CreatePassConflict

NewCreatePassConflict creates a CreatePassConflict with default headers values

func (*CreatePassConflict) Error

func (o *CreatePassConflict) Error() string

func (*CreatePassConflict) GetPayload

func (*CreatePassConflict) ToJSONString added in v0.25.0

func (o *CreatePassConflict) ToJSONString() string

type CreatePassCreated

type CreatePassCreated struct {
	Payload *seasonpassclientmodels.PassInfo
}

CreatePassCreated handles this case with default header values.

successful operation

func NewCreatePassCreated

func NewCreatePassCreated() *CreatePassCreated

NewCreatePassCreated creates a CreatePassCreated with default headers values

func (*CreatePassCreated) Error

func (o *CreatePassCreated) Error() string

func (*CreatePassCreated) GetPayload

func (*CreatePassCreated) ToJSONString added in v0.25.0

func (o *CreatePassCreated) ToJSONString() string

type CreatePassNotFound

type CreatePassNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

CreatePassNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>30141</td><td>Store [{storeId}] does not exist in namespace [{namespace}]</td></tr><tr><td>49142</td><td>Pass item does not exist in the store of namespace [{namespace}]</td></tr><tr><td>49143</td><td>Season [{seasonId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewCreatePassNotFound

func NewCreatePassNotFound() *CreatePassNotFound

NewCreatePassNotFound creates a CreatePassNotFound with default headers values

func (*CreatePassNotFound) Error

func (o *CreatePassNotFound) Error() string

func (*CreatePassNotFound) GetPayload

func (*CreatePassNotFound) ToJSONString added in v0.25.0

func (o *CreatePassNotFound) ToJSONString() string

type CreatePassParams

type CreatePassParams struct {

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

	*/
	Namespace string
	/*SeasonID*/
	SeasonID string

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

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

func NewCreatePassParams

func NewCreatePassParams() *CreatePassParams

NewCreatePassParams creates a new CreatePassParams object with the default values initialized.

func NewCreatePassParamsWithContext

func NewCreatePassParamsWithContext(ctx context.Context) *CreatePassParams

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

func NewCreatePassParamsWithHTTPClient

func NewCreatePassParamsWithHTTPClient(client *http.Client) *CreatePassParams

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

func NewCreatePassParamsWithTimeout

func NewCreatePassParamsWithTimeout(timeout time.Duration) *CreatePassParams

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

func (*CreatePassParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the create pass params

func (*CreatePassParams) SetBody

SetBody adds the body to the create pass params

func (*CreatePassParams) SetContext

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

SetContext adds the context to the create pass params

func (*CreatePassParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create pass params

func (*CreatePassParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the create pass params

func (*CreatePassParams) SetNamespace

func (o *CreatePassParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create pass params

func (*CreatePassParams) SetSeasonID

func (o *CreatePassParams) SetSeasonID(seasonID string)

SetSeasonID adds the seasonId to the create pass params

func (*CreatePassParams) SetTimeout

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

SetTimeout adds the timeout to the create pass params

func (*CreatePassParams) WithBody

WithBody adds the body to the create pass params

func (*CreatePassParams) WithContext

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

WithContext adds the context to the create pass params

func (*CreatePassParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create pass params

func (*CreatePassParams) WithNamespace

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

WithNamespace adds the namespace to the create pass params

func (*CreatePassParams) WithSeasonID

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

WithSeasonID adds the seasonID to the create pass params

func (*CreatePassParams) WithTimeout

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

WithTimeout adds the timeout to the create pass params

func (*CreatePassParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreatePassReader

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

CreatePassReader is a Reader for the CreatePass structure.

func (*CreatePassReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreatePassUnprocessableEntity

type CreatePassUnprocessableEntity struct {
	Payload *seasonpassclientmodels.ValidationErrorEntity
}

CreatePassUnprocessableEntity 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 NewCreatePassUnprocessableEntity

func NewCreatePassUnprocessableEntity() *CreatePassUnprocessableEntity

NewCreatePassUnprocessableEntity creates a CreatePassUnprocessableEntity with default headers values

func (*CreatePassUnprocessableEntity) Error

func (*CreatePassUnprocessableEntity) GetPayload

func (*CreatePassUnprocessableEntity) ToJSONString added in v0.25.0

func (o *CreatePassUnprocessableEntity) ToJSONString() string

type DeletePassBadRequest

type DeletePassBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

DeletePassBadRequest 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 NewDeletePassBadRequest

func NewDeletePassBadRequest() *DeletePassBadRequest

NewDeletePassBadRequest creates a DeletePassBadRequest with default headers values

func (*DeletePassBadRequest) Error

func (o *DeletePassBadRequest) Error() string

func (*DeletePassBadRequest) GetPayload

func (*DeletePassBadRequest) ToJSONString added in v0.25.0

func (o *DeletePassBadRequest) ToJSONString() string

type DeletePassConflict

type DeletePassConflict struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

DeletePassConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49171</td><td>Season is not updatable in status [{status}]</td></tr></table>

func NewDeletePassConflict

func NewDeletePassConflict() *DeletePassConflict

NewDeletePassConflict creates a DeletePassConflict with default headers values

func (*DeletePassConflict) Error

func (o *DeletePassConflict) Error() string

func (*DeletePassConflict) GetPayload

func (*DeletePassConflict) ToJSONString added in v0.25.0

func (o *DeletePassConflict) ToJSONString() string

type DeletePassNoContent

type DeletePassNoContent struct {
}

DeletePassNoContent handles this case with default header values.

Delete pass successfully

func NewDeletePassNoContent

func NewDeletePassNoContent() *DeletePassNoContent

NewDeletePassNoContent creates a DeletePassNoContent with default headers values

func (*DeletePassNoContent) Error

func (o *DeletePassNoContent) Error() string

type DeletePassNotFound

type DeletePassNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

DeletePassNotFound handles this case with default header values.

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

func NewDeletePassNotFound

func NewDeletePassNotFound() *DeletePassNotFound

NewDeletePassNotFound creates a DeletePassNotFound with default headers values

func (*DeletePassNotFound) Error

func (o *DeletePassNotFound) Error() string

func (*DeletePassNotFound) GetPayload

func (*DeletePassNotFound) ToJSONString added in v0.25.0

func (o *DeletePassNotFound) ToJSONString() string

type DeletePassParams

type DeletePassParams struct {

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

	*/
	Namespace string
	/*SeasonID*/
	SeasonID string

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

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

func NewDeletePassParams

func NewDeletePassParams() *DeletePassParams

NewDeletePassParams creates a new DeletePassParams object with the default values initialized.

func NewDeletePassParamsWithContext

func NewDeletePassParamsWithContext(ctx context.Context) *DeletePassParams

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

func NewDeletePassParamsWithHTTPClient

func NewDeletePassParamsWithHTTPClient(client *http.Client) *DeletePassParams

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

func NewDeletePassParamsWithTimeout

func NewDeletePassParamsWithTimeout(timeout time.Duration) *DeletePassParams

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

func (*DeletePassParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the delete pass params

func (*DeletePassParams) SetCode

func (o *DeletePassParams) SetCode(code string)

SetCode adds the code to the delete pass params

func (*DeletePassParams) SetContext

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

SetContext adds the context to the delete pass params

func (*DeletePassParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete pass params

func (*DeletePassParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the delete pass params

func (*DeletePassParams) SetNamespace

func (o *DeletePassParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete pass params

func (*DeletePassParams) SetSeasonID

func (o *DeletePassParams) SetSeasonID(seasonID string)

SetSeasonID adds the seasonId to the delete pass params

func (*DeletePassParams) SetTimeout

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

SetTimeout adds the timeout to the delete pass params

func (*DeletePassParams) WithCode

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

WithCode adds the code to the delete pass params

func (*DeletePassParams) WithContext

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

WithContext adds the context to the delete pass params

func (*DeletePassParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete pass params

func (*DeletePassParams) WithNamespace

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

WithNamespace adds the namespace to the delete pass params

func (*DeletePassParams) WithSeasonID

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

WithSeasonID adds the seasonID to the delete pass params

func (*DeletePassParams) WithTimeout

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

WithTimeout adds the timeout to the delete pass params

func (*DeletePassParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeletePassReader

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

DeletePassReader is a Reader for the DeletePass structure.

func (*DeletePassReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPassBadRequest

type GetPassBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

GetPassBadRequest 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 NewGetPassBadRequest

func NewGetPassBadRequest() *GetPassBadRequest

NewGetPassBadRequest creates a GetPassBadRequest with default headers values

func (*GetPassBadRequest) Error

func (o *GetPassBadRequest) Error() string

func (*GetPassBadRequest) GetPayload

func (*GetPassBadRequest) ToJSONString added in v0.25.0

func (o *GetPassBadRequest) ToJSONString() string

type GetPassNotFound

type GetPassNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

GetPassNotFound 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>49145</td><td>Pass [{code}] does not exist</td></tr></table>

func NewGetPassNotFound

func NewGetPassNotFound() *GetPassNotFound

NewGetPassNotFound creates a GetPassNotFound with default headers values

func (*GetPassNotFound) Error

func (o *GetPassNotFound) Error() string

func (*GetPassNotFound) GetPayload

func (*GetPassNotFound) ToJSONString added in v0.25.0

func (o *GetPassNotFound) ToJSONString() string

type GetPassOK

type GetPassOK struct {
	Payload *seasonpassclientmodels.PassInfo
}

GetPassOK handles this case with default header values.

successful operation

func NewGetPassOK

func NewGetPassOK() *GetPassOK

NewGetPassOK creates a GetPassOK with default headers values

func (*GetPassOK) Error

func (o *GetPassOK) Error() string

func (*GetPassOK) GetPayload

func (o *GetPassOK) GetPayload() *seasonpassclientmodels.PassInfo

func (*GetPassOK) ToJSONString added in v0.25.0

func (o *GetPassOK) ToJSONString() string

type GetPassParams

type GetPassParams struct {

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

	*/
	Namespace string
	/*SeasonID*/
	SeasonID string

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

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

func NewGetPassParams

func NewGetPassParams() *GetPassParams

NewGetPassParams creates a new GetPassParams object with the default values initialized.

func NewGetPassParamsWithContext

func NewGetPassParamsWithContext(ctx context.Context) *GetPassParams

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

func NewGetPassParamsWithHTTPClient

func NewGetPassParamsWithHTTPClient(client *http.Client) *GetPassParams

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

func NewGetPassParamsWithTimeout

func NewGetPassParamsWithTimeout(timeout time.Duration) *GetPassParams

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

func (*GetPassParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the get pass params

func (*GetPassParams) SetCode

func (o *GetPassParams) SetCode(code string)

SetCode adds the code to the get pass params

func (*GetPassParams) SetContext

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

SetContext adds the context to the get pass params

func (*GetPassParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get pass params

func (*GetPassParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the get pass params

func (*GetPassParams) SetNamespace

func (o *GetPassParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get pass params

func (*GetPassParams) SetSeasonID

func (o *GetPassParams) SetSeasonID(seasonID string)

SetSeasonID adds the seasonId to the get pass params

func (*GetPassParams) SetTimeout

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

SetTimeout adds the timeout to the get pass params

func (*GetPassParams) WithCode

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

WithCode adds the code to the get pass params

func (*GetPassParams) WithContext

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

WithContext adds the context to the get pass params

func (*GetPassParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get pass params

func (*GetPassParams) WithNamespace

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

WithNamespace adds the namespace to the get pass params

func (*GetPassParams) WithSeasonID

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

WithSeasonID adds the seasonID to the get pass params

func (*GetPassParams) WithTimeout

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

WithTimeout adds the timeout to the get pass params

func (*GetPassParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPassReader

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

GetPassReader is a Reader for the GetPass structure.

func (*GetPassReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GrantUserPassBadRequest

type GrantUserPassBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

GrantUserPassBadRequest 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 NewGrantUserPassBadRequest

func NewGrantUserPassBadRequest() *GrantUserPassBadRequest

NewGrantUserPassBadRequest creates a GrantUserPassBadRequest with default headers values

func (*GrantUserPassBadRequest) Error

func (o *GrantUserPassBadRequest) Error() string

func (*GrantUserPassBadRequest) GetPayload

func (*GrantUserPassBadRequest) ToJSONString added in v0.25.0

func (o *GrantUserPassBadRequest) ToJSONString() string

type GrantUserPassOK

type GrantUserPassOK struct {
	Payload *seasonpassclientmodels.UserSeasonSummary
}

GrantUserPassOK handles this case with default header values.

successful operation

func NewGrantUserPassOK

func NewGrantUserPassOK() *GrantUserPassOK

NewGrantUserPassOK creates a GrantUserPassOK with default headers values

func (*GrantUserPassOK) Error

func (o *GrantUserPassOK) Error() string

func (*GrantUserPassOK) GetPayload

func (*GrantUserPassOK) ToJSONString added in v0.25.0

func (o *GrantUserPassOK) ToJSONString() string

type GrantUserPassParams

type GrantUserPassParams struct {

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

	*/
	Namespace string
	/*UserID*/
	UserID string

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

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

func NewGrantUserPassParams

func NewGrantUserPassParams() *GrantUserPassParams

NewGrantUserPassParams creates a new GrantUserPassParams object with the default values initialized.

func NewGrantUserPassParamsWithContext

func NewGrantUserPassParamsWithContext(ctx context.Context) *GrantUserPassParams

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

func NewGrantUserPassParamsWithHTTPClient

func NewGrantUserPassParamsWithHTTPClient(client *http.Client) *GrantUserPassParams

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

func NewGrantUserPassParamsWithTimeout

func NewGrantUserPassParamsWithTimeout(timeout time.Duration) *GrantUserPassParams

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

func (*GrantUserPassParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the grant user pass params

func (*GrantUserPassParams) SetBody

SetBody adds the body to the grant user pass params

func (*GrantUserPassParams) SetContext

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

SetContext adds the context to the grant user pass params

func (*GrantUserPassParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the grant user pass params

func (*GrantUserPassParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the grant user pass params

func (*GrantUserPassParams) SetNamespace

func (o *GrantUserPassParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the grant user pass params

func (*GrantUserPassParams) SetTimeout

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

SetTimeout adds the timeout to the grant user pass params

func (*GrantUserPassParams) SetUserID

func (o *GrantUserPassParams) SetUserID(userID string)

SetUserID adds the userId to the grant user pass params

func (*GrantUserPassParams) WithBody

WithBody adds the body to the grant user pass params

func (*GrantUserPassParams) WithContext

WithContext adds the context to the grant user pass params

func (*GrantUserPassParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the grant user pass params

func (*GrantUserPassParams) WithNamespace

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

WithNamespace adds the namespace to the grant user pass params

func (*GrantUserPassParams) WithTimeout

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

WithTimeout adds the timeout to the grant user pass params

func (*GrantUserPassParams) WithUserID

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

WithUserID adds the userID to the grant user pass params

func (*GrantUserPassParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GrantUserPassReader

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

GrantUserPassReader is a Reader for the GrantUserPass structure.

func (*GrantUserPassReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryPassesBadRequest

type QueryPassesBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

QueryPassesBadRequest 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 NewQueryPassesBadRequest

func NewQueryPassesBadRequest() *QueryPassesBadRequest

NewQueryPassesBadRequest creates a QueryPassesBadRequest with default headers values

func (*QueryPassesBadRequest) Error

func (o *QueryPassesBadRequest) Error() string

func (*QueryPassesBadRequest) GetPayload

func (*QueryPassesBadRequest) ToJSONString added in v0.25.0

func (o *QueryPassesBadRequest) ToJSONString() string

type QueryPassesNotFound

type QueryPassesNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

QueryPassesNotFound 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 NewQueryPassesNotFound

func NewQueryPassesNotFound() *QueryPassesNotFound

NewQueryPassesNotFound creates a QueryPassesNotFound with default headers values

func (*QueryPassesNotFound) Error

func (o *QueryPassesNotFound) Error() string

func (*QueryPassesNotFound) GetPayload

func (*QueryPassesNotFound) ToJSONString added in v0.25.0

func (o *QueryPassesNotFound) ToJSONString() string

type QueryPassesOK

type QueryPassesOK struct {
	Payload []*seasonpassclientmodels.PassInfo
}

QueryPassesOK handles this case with default header values.

successful operation

func NewQueryPassesOK

func NewQueryPassesOK() *QueryPassesOK

NewQueryPassesOK creates a QueryPassesOK with default headers values

func (*QueryPassesOK) Error

func (o *QueryPassesOK) Error() string

func (*QueryPassesOK) GetPayload

func (o *QueryPassesOK) GetPayload() []*seasonpassclientmodels.PassInfo

func (*QueryPassesOK) ToJSONString added in v0.25.0

func (o *QueryPassesOK) ToJSONString() string

type QueryPassesParams

type QueryPassesParams struct {

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

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

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

func NewQueryPassesParams

func NewQueryPassesParams() *QueryPassesParams

NewQueryPassesParams creates a new QueryPassesParams object with the default values initialized.

func NewQueryPassesParamsWithContext

func NewQueryPassesParamsWithContext(ctx context.Context) *QueryPassesParams

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

func NewQueryPassesParamsWithHTTPClient

func NewQueryPassesParamsWithHTTPClient(client *http.Client) *QueryPassesParams

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

func NewQueryPassesParamsWithTimeout

func NewQueryPassesParamsWithTimeout(timeout time.Duration) *QueryPassesParams

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

func (*QueryPassesParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the query passes params

func (*QueryPassesParams) SetContext

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

SetContext adds the context to the query passes params

func (*QueryPassesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query passes params

func (*QueryPassesParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the query passes params

func (*QueryPassesParams) SetNamespace

func (o *QueryPassesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query passes params

func (*QueryPassesParams) SetSeasonID

func (o *QueryPassesParams) SetSeasonID(seasonID string)

SetSeasonID adds the seasonId to the query passes params

func (*QueryPassesParams) SetTimeout

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

SetTimeout adds the timeout to the query passes params

func (*QueryPassesParams) WithContext

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

WithContext adds the context to the query passes params

func (*QueryPassesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query passes params

func (*QueryPassesParams) WithNamespace

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

WithNamespace adds the namespace to the query passes params

func (*QueryPassesParams) WithSeasonID

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

WithSeasonID adds the seasonID to the query passes params

func (*QueryPassesParams) WithTimeout

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

WithTimeout adds the timeout to the query passes params

func (*QueryPassesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type QueryPassesReader

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

QueryPassesReader is a Reader for the QueryPasses structure.

func (*QueryPassesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdatePassBadRequest

type UpdatePassBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

UpdatePassBadRequest 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><tr><td>49121</td><td>Default language [{language}] required in localizations</td></tr></table>

func NewUpdatePassBadRequest

func NewUpdatePassBadRequest() *UpdatePassBadRequest

NewUpdatePassBadRequest creates a UpdatePassBadRequest with default headers values

func (*UpdatePassBadRequest) Error

func (o *UpdatePassBadRequest) Error() string

func (*UpdatePassBadRequest) GetPayload

func (*UpdatePassBadRequest) ToJSONString added in v0.25.0

func (o *UpdatePassBadRequest) ToJSONString() string

type UpdatePassConflict

type UpdatePassConflict struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

UpdatePassConflict 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 NewUpdatePassConflict

func NewUpdatePassConflict() *UpdatePassConflict

NewUpdatePassConflict creates a UpdatePassConflict with default headers values

func (*UpdatePassConflict) Error

func (o *UpdatePassConflict) Error() string

func (*UpdatePassConflict) GetPayload

func (*UpdatePassConflict) ToJSONString added in v0.25.0

func (o *UpdatePassConflict) ToJSONString() string

type UpdatePassNotFound

type UpdatePassNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

UpdatePassNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49145</td><td>Pass [{code}] does not exist</td></tr><tr><td>30141</td><td>Store [{storeId}] does not exist in namespace [{namespace}]</td></tr><tr><td>49142</td><td>Pass item does not exist in the store of namespace [{namespace}]</td></tr><tr><td>49143</td><td>Season [{seasonId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewUpdatePassNotFound

func NewUpdatePassNotFound() *UpdatePassNotFound

NewUpdatePassNotFound creates a UpdatePassNotFound with default headers values

func (*UpdatePassNotFound) Error

func (o *UpdatePassNotFound) Error() string

func (*UpdatePassNotFound) GetPayload

func (*UpdatePassNotFound) ToJSONString added in v0.25.0

func (o *UpdatePassNotFound) ToJSONString() string

type UpdatePassOK

type UpdatePassOK struct {
	Payload *seasonpassclientmodels.PassInfo
}

UpdatePassOK handles this case with default header values.

successful operation

func NewUpdatePassOK

func NewUpdatePassOK() *UpdatePassOK

NewUpdatePassOK creates a UpdatePassOK with default headers values

func (*UpdatePassOK) Error

func (o *UpdatePassOK) Error() string

func (*UpdatePassOK) GetPayload

func (o *UpdatePassOK) GetPayload() *seasonpassclientmodels.PassInfo

func (*UpdatePassOK) ToJSONString added in v0.25.0

func (o *UpdatePassOK) ToJSONString() string

type UpdatePassParams

type UpdatePassParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *seasonpassclientmodels.PassUpdate
	/*Code*/
	Code string
	/*Namespace*/
	Namespace string
	/*SeasonID*/
	SeasonID string

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

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

func NewUpdatePassParams

func NewUpdatePassParams() *UpdatePassParams

NewUpdatePassParams creates a new UpdatePassParams object with the default values initialized.

func NewUpdatePassParamsWithContext

func NewUpdatePassParamsWithContext(ctx context.Context) *UpdatePassParams

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

func NewUpdatePassParamsWithHTTPClient

func NewUpdatePassParamsWithHTTPClient(client *http.Client) *UpdatePassParams

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

func NewUpdatePassParamsWithTimeout

func NewUpdatePassParamsWithTimeout(timeout time.Duration) *UpdatePassParams

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

func (*UpdatePassParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the update pass params

func (*UpdatePassParams) SetBody

SetBody adds the body to the update pass params

func (*UpdatePassParams) SetCode

func (o *UpdatePassParams) SetCode(code string)

SetCode adds the code to the update pass params

func (*UpdatePassParams) SetContext

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

SetContext adds the context to the update pass params

func (*UpdatePassParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update pass params

func (*UpdatePassParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the update pass params

func (*UpdatePassParams) SetNamespace

func (o *UpdatePassParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update pass params

func (*UpdatePassParams) SetSeasonID

func (o *UpdatePassParams) SetSeasonID(seasonID string)

SetSeasonID adds the seasonId to the update pass params

func (*UpdatePassParams) SetTimeout

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

SetTimeout adds the timeout to the update pass params

func (*UpdatePassParams) WithBody

WithBody adds the body to the update pass params

func (*UpdatePassParams) WithCode

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

WithCode adds the code to the update pass params

func (*UpdatePassParams) WithContext

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

WithContext adds the context to the update pass params

func (*UpdatePassParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update pass params

func (*UpdatePassParams) WithNamespace

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

WithNamespace adds the namespace to the update pass params

func (*UpdatePassParams) WithSeasonID

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

WithSeasonID adds the seasonID to the update pass params

func (*UpdatePassParams) WithTimeout

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

WithTimeout adds the timeout to the update pass params

func (*UpdatePassParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdatePassReader

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

UpdatePassReader is a Reader for the UpdatePass structure.

func (*UpdatePassReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdatePassUnprocessableEntity

type UpdatePassUnprocessableEntity struct {
	Payload *seasonpassclientmodels.ValidationErrorEntity
}

UpdatePassUnprocessableEntity 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 NewUpdatePassUnprocessableEntity

func NewUpdatePassUnprocessableEntity() *UpdatePassUnprocessableEntity

NewUpdatePassUnprocessableEntity creates a UpdatePassUnprocessableEntity with default headers values

func (*UpdatePassUnprocessableEntity) Error

func (*UpdatePassUnprocessableEntity) GetPayload

func (*UpdatePassUnprocessableEntity) ToJSONString added in v0.25.0

func (o *UpdatePassUnprocessableEntity) ToJSONString() string

Jump to

Keyboard shortcuts

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