Documentation ¶
Index ¶
- type Client
- func (a *Client) CreatePass(params *CreatePassParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePassCreated, *CreatePassBadRequest, *CreatePassNotFound, ...)deprecated
- func (a *Client) CreatePassShort(params *CreatePassParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePassCreated, error)
- func (a *Client) DeletePass(params *DeletePassParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePassNoContent, *DeletePassBadRequest, *DeletePassNotFound, ...)deprecated
- func (a *Client) DeletePassShort(params *DeletePassParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePassNoContent, error)
- func (a *Client) GetPass(params *GetPassParams, authInfo runtime.ClientAuthInfoWriter) (*GetPassOK, *GetPassBadRequest, *GetPassNotFound, error)deprecated
- func (a *Client) GetPassShort(params *GetPassParams, authInfo runtime.ClientAuthInfoWriter) (*GetPassOK, error)
- func (a *Client) GrantUserPass(params *GrantUserPassParams, authInfo runtime.ClientAuthInfoWriter) (*GrantUserPassOK, *GrantUserPassBadRequest, error)deprecated
- func (a *Client) GrantUserPassShort(params *GrantUserPassParams, authInfo runtime.ClientAuthInfoWriter) (*GrantUserPassOK, error)
- func (a *Client) QueryPasses(params *QueryPassesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPassesOK, *QueryPassesBadRequest, *QueryPassesNotFound, error)deprecated
- func (a *Client) QueryPassesShort(params *QueryPassesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPassesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdatePass(params *UpdatePassParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePassOK, *UpdatePassBadRequest, *UpdatePassNotFound, *UpdatePassConflict, ...)deprecated
- func (a *Client) UpdatePassShort(params *UpdatePassParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePassOK, error)
- type ClientService
- type CreatePassBadRequest
- type CreatePassConflict
- type CreatePassCreated
- type CreatePassNotFound
- type CreatePassParams
- func (o *CreatePassParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *CreatePassParams) SetBody(body *seasonpassclientmodels.PassCreate)
- func (o *CreatePassParams) SetContext(ctx context.Context)
- func (o *CreatePassParams) SetHTTPClient(client *http.Client)
- func (o *CreatePassParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *CreatePassParams) SetNamespace(namespace string)
- func (o *CreatePassParams) SetSeasonID(seasonID string)
- func (o *CreatePassParams) SetTimeout(timeout time.Duration)
- func (o *CreatePassParams) WithBody(body *seasonpassclientmodels.PassCreate) *CreatePassParams
- func (o *CreatePassParams) WithContext(ctx context.Context) *CreatePassParams
- func (o *CreatePassParams) WithHTTPClient(client *http.Client) *CreatePassParams
- func (o *CreatePassParams) WithNamespace(namespace string) *CreatePassParams
- func (o *CreatePassParams) WithSeasonID(seasonID string) *CreatePassParams
- func (o *CreatePassParams) WithTimeout(timeout time.Duration) *CreatePassParams
- func (o *CreatePassParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePassReader
- type CreatePassUnprocessableEntity
- type DeletePassBadRequest
- type DeletePassConflict
- type DeletePassNoContent
- type DeletePassNotFound
- type DeletePassParams
- func (o *DeletePassParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *DeletePassParams) SetCode(code string)
- func (o *DeletePassParams) SetContext(ctx context.Context)
- func (o *DeletePassParams) SetHTTPClient(client *http.Client)
- func (o *DeletePassParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *DeletePassParams) SetNamespace(namespace string)
- func (o *DeletePassParams) SetSeasonID(seasonID string)
- func (o *DeletePassParams) SetTimeout(timeout time.Duration)
- func (o *DeletePassParams) WithCode(code string) *DeletePassParams
- func (o *DeletePassParams) WithContext(ctx context.Context) *DeletePassParams
- func (o *DeletePassParams) WithHTTPClient(client *http.Client) *DeletePassParams
- func (o *DeletePassParams) WithNamespace(namespace string) *DeletePassParams
- func (o *DeletePassParams) WithSeasonID(seasonID string) *DeletePassParams
- func (o *DeletePassParams) WithTimeout(timeout time.Duration) *DeletePassParams
- func (o *DeletePassParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePassReader
- type GetPassBadRequest
- type GetPassNotFound
- type GetPassOK
- type GetPassParams
- func (o *GetPassParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetPassParams) SetCode(code string)
- func (o *GetPassParams) SetContext(ctx context.Context)
- func (o *GetPassParams) SetHTTPClient(client *http.Client)
- func (o *GetPassParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetPassParams) SetNamespace(namespace string)
- func (o *GetPassParams) SetSeasonID(seasonID string)
- func (o *GetPassParams) SetTimeout(timeout time.Duration)
- func (o *GetPassParams) WithCode(code string) *GetPassParams
- func (o *GetPassParams) WithContext(ctx context.Context) *GetPassParams
- func (o *GetPassParams) WithHTTPClient(client *http.Client) *GetPassParams
- func (o *GetPassParams) WithNamespace(namespace string) *GetPassParams
- func (o *GetPassParams) WithSeasonID(seasonID string) *GetPassParams
- func (o *GetPassParams) WithTimeout(timeout time.Duration) *GetPassParams
- func (o *GetPassParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPassReader
- type GrantUserPassBadRequest
- type GrantUserPassOK
- type GrantUserPassParams
- func (o *GrantUserPassParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GrantUserPassParams) SetBody(body *seasonpassclientmodels.UserPassGrant)
- func (o *GrantUserPassParams) SetContext(ctx context.Context)
- func (o *GrantUserPassParams) SetHTTPClient(client *http.Client)
- func (o *GrantUserPassParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GrantUserPassParams) SetNamespace(namespace string)
- func (o *GrantUserPassParams) SetTimeout(timeout time.Duration)
- func (o *GrantUserPassParams) SetUserID(userID string)
- func (o *GrantUserPassParams) WithBody(body *seasonpassclientmodels.UserPassGrant) *GrantUserPassParams
- func (o *GrantUserPassParams) WithContext(ctx context.Context) *GrantUserPassParams
- func (o *GrantUserPassParams) WithHTTPClient(client *http.Client) *GrantUserPassParams
- func (o *GrantUserPassParams) WithNamespace(namespace string) *GrantUserPassParams
- func (o *GrantUserPassParams) WithTimeout(timeout time.Duration) *GrantUserPassParams
- func (o *GrantUserPassParams) WithUserID(userID string) *GrantUserPassParams
- func (o *GrantUserPassParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GrantUserPassReader
- type QueryPassesBadRequest
- type QueryPassesNotFound
- type QueryPassesOK
- type QueryPassesParams
- func (o *QueryPassesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *QueryPassesParams) SetContext(ctx context.Context)
- func (o *QueryPassesParams) SetHTTPClient(client *http.Client)
- func (o *QueryPassesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *QueryPassesParams) SetNamespace(namespace string)
- func (o *QueryPassesParams) SetSeasonID(seasonID string)
- func (o *QueryPassesParams) SetTimeout(timeout time.Duration)
- func (o *QueryPassesParams) WithContext(ctx context.Context) *QueryPassesParams
- func (o *QueryPassesParams) WithHTTPClient(client *http.Client) *QueryPassesParams
- func (o *QueryPassesParams) WithNamespace(namespace string) *QueryPassesParams
- func (o *QueryPassesParams) WithSeasonID(seasonID string) *QueryPassesParams
- func (o *QueryPassesParams) WithTimeout(timeout time.Duration) *QueryPassesParams
- func (o *QueryPassesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QueryPassesReader
- type UpdatePassBadRequest
- type UpdatePassConflict
- type UpdatePassNotFound
- type UpdatePassOK
- type UpdatePassParams
- func (o *UpdatePassParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *UpdatePassParams) SetBody(body *seasonpassclientmodels.PassUpdate)
- func (o *UpdatePassParams) SetCode(code string)
- func (o *UpdatePassParams) SetContext(ctx context.Context)
- func (o *UpdatePassParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePassParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *UpdatePassParams) SetNamespace(namespace string)
- func (o *UpdatePassParams) SetSeasonID(seasonID string)
- func (o *UpdatePassParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePassParams) WithBody(body *seasonpassclientmodels.PassUpdate) *UpdatePassParams
- func (o *UpdatePassParams) WithCode(code string) *UpdatePassParams
- func (o *UpdatePassParams) WithContext(ctx context.Context) *UpdatePassParams
- func (o *UpdatePassParams) WithHTTPClient(client *http.Client) *UpdatePassParams
- func (o *UpdatePassParams) WithNamespace(namespace string) *UpdatePassParams
- func (o *UpdatePassParams) WithSeasonID(seasonID string) *UpdatePassParams
- func (o *UpdatePassParams) WithTimeout(timeout time.Duration) *UpdatePassParams
- func (o *UpdatePassParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePassReader
- type UpdatePassUnprocessableEntity
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
func (a *Client) CreatePass(params *CreatePassParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePassCreated, *CreatePassBadRequest, *CreatePassNotFound, *CreatePassConflict, *CreatePassUnprocessableEntity, error)
Deprecated: 2022-08-10 - Use CreatePassShort instead.
CreatePass create a pass This API is used to create a pass for a draft season.
Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=1 (CREATE)
- Returns : created pass
func (*Client) CreatePassShort ¶
func (a *Client) CreatePassShort(params *CreatePassParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePassCreated, error)
CreatePassShort create a pass This API is used to create a pass for a draft season.
Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=1 (CREATE)
- Returns : created pass
func (*Client) DeletePass
deprecated
func (a *Client) DeletePass(params *DeletePassParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePassNoContent, *DeletePassBadRequest, *DeletePassNotFound, *DeletePassConflict, error)
Deprecated: 2022-08-10 - Use DeletePassShort instead.
DeletePass delete a pass This API is used to delete a pass permanently, only draft season pass can be deleted.
Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=8 (DELETE)
func (*Client) DeletePassShort ¶
func (a *Client) DeletePassShort(params *DeletePassParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePassNoContent, error)
DeletePassShort delete a pass This API is used to delete a pass permanently, only draft season pass can be deleted.
Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=8 (DELETE)
func (*Client) GetPass
deprecated
func (a *Client) GetPass(params *GetPassParams, authInfo runtime.ClientAuthInfoWriter) (*GetPassOK, *GetPassBadRequest, *GetPassNotFound, error)
Deprecated: 2022-08-10 - Use GetPassShort instead.
GetPass get a pass This API is used to get a pass for a season.
Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=2 (READ)
- Returns : pass data
func (*Client) GetPassShort ¶
func (a *Client) GetPassShort(params *GetPassParams, authInfo runtime.ClientAuthInfoWriter) (*GetPassOK, error)
GetPassShort get a pass This API is used to get a pass for a season.
Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=2 (READ)
- Returns : pass data
func (*Client) GrantUserPass
deprecated
func (a *Client) GrantUserPass(params *GrantUserPassParams, authInfo runtime.ClientAuthInfoWriter) (*GrantUserPassOK, *GrantUserPassBadRequest, error)
Deprecated: 2022-08-10 - Use GrantUserPassShort instead.
GrantUserPass grant 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.
Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SEASONPASS", action=4 (UPDATE)
- Returns : user season data
func (*Client) GrantUserPassShort ¶
func (a *Client) GrantUserPassShort(params *GrantUserPassParams, authInfo runtime.ClientAuthInfoWriter) (*GrantUserPassOK, error)
GrantUserPassShort grant 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.
Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:SEASONPASS", action=4 (UPDATE)
- Returns : user season data
func (*Client) QueryPasses
deprecated
func (a *Client) QueryPasses(params *QueryPassesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPassesOK, *QueryPassesBadRequest, *QueryPassesNotFound, error)
Deprecated: 2022-08-10 - Use QueryPassesShort instead.
QueryPasses query all passes for a season This API is used to query all passes for a season.
Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=2 (READ)
- Returns : the list of passes
func (*Client) QueryPassesShort ¶
func (a *Client) QueryPassesShort(params *QueryPassesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPassesOK, error)
QueryPassesShort query all passes for a season This API is used to query all passes for a season.
Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=2 (READ)
- Returns : the list of passes
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdatePass
deprecated
func (a *Client) UpdatePass(params *UpdatePassParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePassOK, *UpdatePassBadRequest, *UpdatePassNotFound, *UpdatePassConflict, *UpdatePassUnprocessableEntity, error)
Deprecated: 2022-08-10 - Use UpdatePassShort instead.
UpdatePass update a pass This API is used to update a pass. Only draft season pass can be updated.
Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=4 (UPDATE)
- Returns : updated pass
func (*Client) UpdatePassShort ¶
func (a *Client) UpdatePassShort(params *UpdatePassParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePassOK, error)
UpdatePassShort update a pass This API is used to update a pass. Only draft season pass can be updated.
Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=4 (UPDATE)
- Returns : updated pass
type ClientService ¶
type ClientService interface { QueryPasses(params *QueryPassesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPassesOK, *QueryPassesBadRequest, *QueryPassesNotFound, error) QueryPassesShort(params *QueryPassesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPassesOK, error) CreatePass(params *CreatePassParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePassCreated, *CreatePassBadRequest, *CreatePassNotFound, *CreatePassConflict, *CreatePassUnprocessableEntity, error) CreatePassShort(params *CreatePassParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePassCreated, error) GetPass(params *GetPassParams, authInfo runtime.ClientAuthInfoWriter) (*GetPassOK, *GetPassBadRequest, *GetPassNotFound, error) GetPassShort(params *GetPassParams, authInfo runtime.ClientAuthInfoWriter) (*GetPassOK, error) DeletePass(params *DeletePassParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePassNoContent, *DeletePassBadRequest, *DeletePassNotFound, *DeletePassConflict, error) DeletePassShort(params *DeletePassParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePassNoContent, error) UpdatePass(params *UpdatePassParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePassOK, *UpdatePassBadRequest, *UpdatePassNotFound, *UpdatePassConflict, *UpdatePassUnprocessableEntity, error) UpdatePassShort(params *UpdatePassParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePassOK, error) GrantUserPass(params *GrantUserPassParams, authInfo runtime.ClientAuthInfoWriter) (*GrantUserPassOK, *GrantUserPassBadRequest, error) GrantUserPassShort(params *GrantUserPassParams, authInfo runtime.ClientAuthInfoWriter) (*GrantUserPassOK, 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 (o *CreatePassBadRequest) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *CreatePassConflict) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *CreatePassCreated) GetPayload() *seasonpassclientmodels.PassInfo
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 (o *CreatePassNotFound) GetPayload() *seasonpassclientmodels.ErrorEntity
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 ¶
func (o *CreatePassParams) SetBody(body *seasonpassclientmodels.PassCreate)
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 ¶
func (o *CreatePassParams) WithBody(body *seasonpassclientmodels.PassCreate) *CreatePassParams
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 (o *CreatePassUnprocessableEntity) Error() string
func (*CreatePassUnprocessableEntity) GetPayload ¶
func (o *CreatePassUnprocessableEntity) GetPayload() *seasonpassclientmodels.ValidationErrorEntity
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 (o *DeletePassBadRequest) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *DeletePassConflict) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *DeletePassNotFound) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *GetPassBadRequest) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *GetPassNotFound) GetPayload() *seasonpassclientmodels.ErrorEntity
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) GetPayload ¶
func (o *GetPassOK) GetPayload() *seasonpassclientmodels.PassInfo
func (*GetPassOK) ToJSONString ¶ added in v0.25.0
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 (o *GrantUserPassBadRequest) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *GrantUserPassOK) GetPayload() *seasonpassclientmodels.UserSeasonSummary
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 ¶
func (o *GrantUserPassParams) SetBody(body *seasonpassclientmodels.UserPassGrant)
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 ¶
func (o *GrantUserPassParams) WithBody(body *seasonpassclientmodels.UserPassGrant) *GrantUserPassParams
WithBody adds the body to the grant user pass params
func (*GrantUserPassParams) WithContext ¶
func (o *GrantUserPassParams) WithContext(ctx context.Context) *GrantUserPassParams
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 (o *QueryPassesBadRequest) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *QueryPassesNotFound) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *UpdatePassBadRequest) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *UpdatePassConflict) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *UpdatePassNotFound) GetPayload() *seasonpassclientmodels.ErrorEntity
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 ¶
func (o *UpdatePassParams) SetBody(body *seasonpassclientmodels.PassUpdate)
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 ¶
func (o *UpdatePassParams) WithBody(body *seasonpassclientmodels.PassUpdate) *UpdatePassParams
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 (o *UpdatePassUnprocessableEntity) Error() string
func (*UpdatePassUnprocessableEntity) GetPayload ¶
func (o *UpdatePassUnprocessableEntity) GetPayload() *seasonpassclientmodels.ValidationErrorEntity
func (*UpdatePassUnprocessableEntity) ToJSONString ¶ added in v0.25.0
func (o *UpdatePassUnprocessableEntity) ToJSONString() string
Source Files ¶
- create_pass_parameters.go
- create_pass_responses.go
- delete_pass_parameters.go
- delete_pass_responses.go
- get_pass_parameters.go
- get_pass_responses.go
- grant_user_pass_parameters.go
- grant_user_pass_responses.go
- pass_client.go
- query_passes_parameters.go
- query_passes_responses.go
- update_pass_parameters.go
- update_pass_responses.go