match_tickets

package
v0.68.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for match tickets API

func (*Client) CreateMatchTicket deprecated

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

CreateMatchTicket create a matchmaking ticket Creates a new request for matchmaking.

Cross Platform: Allow player to play game with "all" registered platforms. 1. Cross Platform can be enabled through session service or create match ticket. a. via ticket: specify several cross_platform on create match ticket attributes. **[DEPRECATED]** client should not send from attribute `cross_platform` will be populated from backend This value will override player attributes in session service. e.g. cross_platform:[xbox,psn,steam] b. via session service: set player/party cross_platform attributes. c. Enable match options ruleset with name cross_platform and type "all". ``` { "name": "co-op", "data": { "alliance": { "min_number": 1, "max_number": 1, "player_min_number": 1, "player_max_number": 4 }, "match_options": { "options": [ {"name": "cross_platform", "type": "all"} ] } } } ``` 2. Cross Platform can be disabled from the matchpool configuration `crossplay_disabled=true` 3. When matchpool `crossplay_disabled=false` * request attribute cross_platform is empty **[Recommended]**: * Matchmaking will consider Party leader `crossplayEnabled` preference or Session attribute `crossplayEnabled` preference. * When `crossplayEnabled=true` `cross_platforms` attributes will be populated from [active login methods](/iam/apidocs/#/Third%20Party%20Credential/RetrieveAllActiveThirdPartyLoginPlatformCredentialPublicV3) otherwise it will set to leader current platform * When `crossplayEnabled=false` `cross_platforms` attributes will be set to user's currentPlatform * request attribute cross_platform is not empty **[Not Recommended]**: * Cross Platform can be disabled with specify only ONE cross_platform. Current matchmaking use this behavior. e.g. cross_platform:[xbox] * Multiple cross_platform values is considered to be crossplay enabled 4. This behavior only works for Default Matchmaker. Custom matchmaker (custom gRPC matchmaker) need to consider this on its own implementation.

func (*Client) CreateMatchTicketShort

func (a *Client) CreateMatchTicketShort(params *CreateMatchTicketParams, authInfo runtime.ClientAuthInfoWriter) (*CreateMatchTicketCreated, error)

CreateMatchTicketShort create a matchmaking ticket Creates a new request for matchmaking.

Cross Platform: Allow player to play game with "all" registered platforms. 1. Cross Platform can be enabled through session service or create match ticket. a. via ticket: specify several cross_platform on create match ticket attributes. **[DEPRECATED]** client should not send from attribute `cross_platform` will be populated from backend This value will override player attributes in session service. e.g. cross_platform:[xbox,psn,steam] b. via session service: set player/party cross_platform attributes. c. Enable match options ruleset with name cross_platform and type "all". ``` { "name": "co-op", "data": { "alliance": { "min_number": 1, "max_number": 1, "player_min_number": 1, "player_max_number": 4 }, "match_options": { "options": [ {"name": "cross_platform", "type": "all"} ] } } } ``` 2. Cross Platform can be disabled from the matchpool configuration `crossplay_disabled=true` 3. When matchpool `crossplay_disabled=false` * request attribute cross_platform is empty **[Recommended]**: * Matchmaking will consider Party leader `crossplayEnabled` preference or Session attribute `crossplayEnabled` preference. * When `crossplayEnabled=true` `cross_platforms` attributes will be populated from [active login methods](/iam/apidocs/#/Third%20Party%20Credential/RetrieveAllActiveThirdPartyLoginPlatformCredentialPublicV3) otherwise it will set to leader current platform * When `crossplayEnabled=false` `cross_platforms` attributes will be set to user's currentPlatform * request attribute cross_platform is not empty **[Not Recommended]**: * Cross Platform can be disabled with specify only ONE cross_platform. Current matchmaking use this behavior. e.g. cross_platform:[xbox] * Multiple cross_platform values is considered to be crossplay enabled 4. This behavior only works for Default Matchmaker. Custom matchmaker (custom gRPC matchmaker) need to consider this on its own implementation.

func (*Client) DeleteMatchTicket deprecated

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

DeleteMatchTicket delete a match ticket Deletes an existing matchmaking ticket.

func (*Client) DeleteMatchTicketShort

func (a *Client) DeleteMatchTicketShort(params *DeleteMatchTicketParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteMatchTicketNoContent, error)

DeleteMatchTicketShort delete a match ticket Deletes an existing matchmaking ticket.

func (*Client) GetMyMatchTickets deprecated added in v0.51.0

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

GetMyMatchTickets get my match tickets Get my match tickets.

func (*Client) GetMyMatchTicketsShort added in v0.51.0

func (a *Client) GetMyMatchTicketsShort(params *GetMyMatchTicketsParams, authInfo runtime.ClientAuthInfoWriter) (*GetMyMatchTicketsOK, error)

GetMyMatchTicketsShort get my match tickets Get my match tickets.

func (*Client) MatchTicketDetails deprecated

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

MatchTicketDetails get details for a specific match ticket Get details for a specific match ticket

func (*Client) MatchTicketDetailsShort

func (a *Client) MatchTicketDetailsShort(params *MatchTicketDetailsParams, authInfo runtime.ClientAuthInfoWriter) (*MatchTicketDetailsOK, error)

MatchTicketDetailsShort get details for a specific match ticket Get details for a specific match ticket

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	CreateMatchTicket(params *CreateMatchTicketParams, authInfo runtime.ClientAuthInfoWriter) (*CreateMatchTicketCreated, *CreateMatchTicketBadRequest, *CreateMatchTicketUnauthorized, *CreateMatchTicketForbidden, *CreateMatchTicketNotFound, *CreateMatchTicketConflict, *CreateMatchTicketInternalServerError, error)
	CreateMatchTicketShort(params *CreateMatchTicketParams, authInfo runtime.ClientAuthInfoWriter) (*CreateMatchTicketCreated, error)
	GetMyMatchTickets(params *GetMyMatchTicketsParams, authInfo runtime.ClientAuthInfoWriter) (*GetMyMatchTicketsOK, *GetMyMatchTicketsUnauthorized, *GetMyMatchTicketsForbidden, *GetMyMatchTicketsInternalServerError, error)
	GetMyMatchTicketsShort(params *GetMyMatchTicketsParams, authInfo runtime.ClientAuthInfoWriter) (*GetMyMatchTicketsOK, error)
	MatchTicketDetails(params *MatchTicketDetailsParams, authInfo runtime.ClientAuthInfoWriter) (*MatchTicketDetailsOK, *MatchTicketDetailsUnauthorized, *MatchTicketDetailsForbidden, *MatchTicketDetailsNotFound, *MatchTicketDetailsInternalServerError, error)
	MatchTicketDetailsShort(params *MatchTicketDetailsParams, authInfo runtime.ClientAuthInfoWriter) (*MatchTicketDetailsOK, error)
	DeleteMatchTicket(params *DeleteMatchTicketParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteMatchTicketNoContent, *DeleteMatchTicketUnauthorized, *DeleteMatchTicketForbidden, *DeleteMatchTicketNotFound, *DeleteMatchTicketInternalServerError, error)
	DeleteMatchTicketShort(params *DeleteMatchTicketParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteMatchTicketNoContent, 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 match tickets API client.

type CreateMatchTicketBadRequest

type CreateMatchTicketBadRequest struct {
	Payload *match2clientmodels.ResponseError
}

CreateMatchTicketBadRequest handles this case with default header values.

Bad Request

func NewCreateMatchTicketBadRequest

func NewCreateMatchTicketBadRequest() *CreateMatchTicketBadRequest

NewCreateMatchTicketBadRequest creates a CreateMatchTicketBadRequest with default headers values

func (*CreateMatchTicketBadRequest) Error

func (*CreateMatchTicketBadRequest) GetPayload

func (*CreateMatchTicketBadRequest) ToJSONString

func (o *CreateMatchTicketBadRequest) ToJSONString() string

type CreateMatchTicketConflict

type CreateMatchTicketConflict struct {
	Payload *match2clientmodels.ResponseError
}

CreateMatchTicketConflict handles this case with default header values.

Conflict

func NewCreateMatchTicketConflict

func NewCreateMatchTicketConflict() *CreateMatchTicketConflict

NewCreateMatchTicketConflict creates a CreateMatchTicketConflict with default headers values

func (*CreateMatchTicketConflict) Error

func (o *CreateMatchTicketConflict) Error() string

func (*CreateMatchTicketConflict) GetPayload

func (*CreateMatchTicketConflict) ToJSONString

func (o *CreateMatchTicketConflict) ToJSONString() string

type CreateMatchTicketCreated

type CreateMatchTicketCreated struct {
	Payload *match2clientmodels.APIMatchTicketResponse
}

CreateMatchTicketCreated handles this case with default header values.

Created

func NewCreateMatchTicketCreated

func NewCreateMatchTicketCreated() *CreateMatchTicketCreated

NewCreateMatchTicketCreated creates a CreateMatchTicketCreated with default headers values

func (*CreateMatchTicketCreated) Error

func (o *CreateMatchTicketCreated) Error() string

func (*CreateMatchTicketCreated) GetPayload

func (*CreateMatchTicketCreated) ToJSONString

func (o *CreateMatchTicketCreated) ToJSONString() string

type CreateMatchTicketForbidden

type CreateMatchTicketForbidden struct {
	Payload *match2clientmodels.ResponseError
}

CreateMatchTicketForbidden handles this case with default header values.

Forbidden

func NewCreateMatchTicketForbidden

func NewCreateMatchTicketForbidden() *CreateMatchTicketForbidden

NewCreateMatchTicketForbidden creates a CreateMatchTicketForbidden with default headers values

func (*CreateMatchTicketForbidden) Error

func (*CreateMatchTicketForbidden) GetPayload

func (*CreateMatchTicketForbidden) ToJSONString

func (o *CreateMatchTicketForbidden) ToJSONString() string

type CreateMatchTicketInternalServerError

type CreateMatchTicketInternalServerError struct {
	Payload *match2clientmodels.ResponseError
}

CreateMatchTicketInternalServerError handles this case with default header values.

Internal Server Error

func NewCreateMatchTicketInternalServerError

func NewCreateMatchTicketInternalServerError() *CreateMatchTicketInternalServerError

NewCreateMatchTicketInternalServerError creates a CreateMatchTicketInternalServerError with default headers values

func (*CreateMatchTicketInternalServerError) Error

func (*CreateMatchTicketInternalServerError) GetPayload

func (*CreateMatchTicketInternalServerError) ToJSONString

func (o *CreateMatchTicketInternalServerError) ToJSONString() string

type CreateMatchTicketNotFound

type CreateMatchTicketNotFound struct {
	Payload *match2clientmodels.ResponseError
}

CreateMatchTicketNotFound handles this case with default header values.

Not Found when the specified match pool does not exist

func NewCreateMatchTicketNotFound

func NewCreateMatchTicketNotFound() *CreateMatchTicketNotFound

NewCreateMatchTicketNotFound creates a CreateMatchTicketNotFound with default headers values

func (*CreateMatchTicketNotFound) Error

func (o *CreateMatchTicketNotFound) Error() string

func (*CreateMatchTicketNotFound) GetPayload

func (*CreateMatchTicketNotFound) ToJSONString

func (o *CreateMatchTicketNotFound) ToJSONString() string

type CreateMatchTicketParams

type CreateMatchTicketParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *match2clientmodels.APIMatchTicketRequest
	/*Namespace
	  namespace of the game

	*/
	Namespace string

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

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

CreateMatchTicketParams contains all the parameters to send to the API endpoint for the create match ticket operation typically these are written to a http.Request

func NewCreateMatchTicketParams

func NewCreateMatchTicketParams() *CreateMatchTicketParams

NewCreateMatchTicketParams creates a new CreateMatchTicketParams object with the default values initialized.

func NewCreateMatchTicketParamsWithContext

func NewCreateMatchTicketParamsWithContext(ctx context.Context) *CreateMatchTicketParams

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

func NewCreateMatchTicketParamsWithHTTPClient

func NewCreateMatchTicketParamsWithHTTPClient(client *http.Client) *CreateMatchTicketParams

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

func NewCreateMatchTicketParamsWithTimeout

func NewCreateMatchTicketParamsWithTimeout(timeout time.Duration) *CreateMatchTicketParams

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

func (*CreateMatchTicketParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the create match ticket params

func (*CreateMatchTicketParams) SetBody

SetBody adds the body to the create match ticket params

func (*CreateMatchTicketParams) SetContext

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

SetContext adds the context to the create match ticket params

func (*CreateMatchTicketParams) SetFlightId added in v0.63.0

func (o *CreateMatchTicketParams) SetFlightId(flightId string)

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

func (*CreateMatchTicketParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create match ticket params

func (*CreateMatchTicketParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the create match ticket params

func (*CreateMatchTicketParams) SetNamespace

func (o *CreateMatchTicketParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create match ticket params

func (*CreateMatchTicketParams) SetTimeout

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

SetTimeout adds the timeout to the create match ticket params

func (*CreateMatchTicketParams) WithBody

WithBody adds the body to the create match ticket params

func (*CreateMatchTicketParams) WithContext

WithContext adds the context to the create match ticket params

func (*CreateMatchTicketParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create match ticket params

func (*CreateMatchTicketParams) WithNamespace

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

WithNamespace adds the namespace to the create match ticket params

func (*CreateMatchTicketParams) WithTimeout

WithTimeout adds the timeout to the create match ticket params

func (*CreateMatchTicketParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateMatchTicketReader

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

CreateMatchTicketReader is a Reader for the CreateMatchTicket structure.

func (*CreateMatchTicketReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateMatchTicketUnauthorized

type CreateMatchTicketUnauthorized struct {
	Payload *match2clientmodels.ResponseError
}

CreateMatchTicketUnauthorized handles this case with default header values.

Unauthorized

func NewCreateMatchTicketUnauthorized

func NewCreateMatchTicketUnauthorized() *CreateMatchTicketUnauthorized

NewCreateMatchTicketUnauthorized creates a CreateMatchTicketUnauthorized with default headers values

func (*CreateMatchTicketUnauthorized) Error

func (*CreateMatchTicketUnauthorized) GetPayload

func (*CreateMatchTicketUnauthorized) ToJSONString

func (o *CreateMatchTicketUnauthorized) ToJSONString() string

type DeleteMatchTicketForbidden

type DeleteMatchTicketForbidden struct {
	Payload *match2clientmodels.ResponseError
}

DeleteMatchTicketForbidden handles this case with default header values.

Forbidden

func NewDeleteMatchTicketForbidden

func NewDeleteMatchTicketForbidden() *DeleteMatchTicketForbidden

NewDeleteMatchTicketForbidden creates a DeleteMatchTicketForbidden with default headers values

func (*DeleteMatchTicketForbidden) Error

func (*DeleteMatchTicketForbidden) GetPayload

func (*DeleteMatchTicketForbidden) ToJSONString

func (o *DeleteMatchTicketForbidden) ToJSONString() string

type DeleteMatchTicketInternalServerError

type DeleteMatchTicketInternalServerError struct {
	Payload *match2clientmodels.ResponseError
}

DeleteMatchTicketInternalServerError handles this case with default header values.

Internal Server Error

func NewDeleteMatchTicketInternalServerError

func NewDeleteMatchTicketInternalServerError() *DeleteMatchTicketInternalServerError

NewDeleteMatchTicketInternalServerError creates a DeleteMatchTicketInternalServerError with default headers values

func (*DeleteMatchTicketInternalServerError) Error

func (*DeleteMatchTicketInternalServerError) GetPayload

func (*DeleteMatchTicketInternalServerError) ToJSONString

func (o *DeleteMatchTicketInternalServerError) ToJSONString() string

type DeleteMatchTicketNoContent

type DeleteMatchTicketNoContent struct {
}

DeleteMatchTicketNoContent handles this case with default header values.

No Content

func NewDeleteMatchTicketNoContent

func NewDeleteMatchTicketNoContent() *DeleteMatchTicketNoContent

NewDeleteMatchTicketNoContent creates a DeleteMatchTicketNoContent with default headers values

func (*DeleteMatchTicketNoContent) Error

type DeleteMatchTicketNotFound

type DeleteMatchTicketNotFound struct {
	Payload *match2clientmodels.ResponseError
}

DeleteMatchTicketNotFound handles this case with default header values.

Not Found

func NewDeleteMatchTicketNotFound

func NewDeleteMatchTicketNotFound() *DeleteMatchTicketNotFound

NewDeleteMatchTicketNotFound creates a DeleteMatchTicketNotFound with default headers values

func (*DeleteMatchTicketNotFound) Error

func (o *DeleteMatchTicketNotFound) Error() string

func (*DeleteMatchTicketNotFound) GetPayload

func (*DeleteMatchTicketNotFound) ToJSONString

func (o *DeleteMatchTicketNotFound) ToJSONString() string

type DeleteMatchTicketParams

type DeleteMatchTicketParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*Ticketid
	  ID of the match ticket

	*/
	Ticketid string

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

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

DeleteMatchTicketParams contains all the parameters to send to the API endpoint for the delete match ticket operation typically these are written to a http.Request

func NewDeleteMatchTicketParams

func NewDeleteMatchTicketParams() *DeleteMatchTicketParams

NewDeleteMatchTicketParams creates a new DeleteMatchTicketParams object with the default values initialized.

func NewDeleteMatchTicketParamsWithContext

func NewDeleteMatchTicketParamsWithContext(ctx context.Context) *DeleteMatchTicketParams

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

func NewDeleteMatchTicketParamsWithHTTPClient

func NewDeleteMatchTicketParamsWithHTTPClient(client *http.Client) *DeleteMatchTicketParams

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

func NewDeleteMatchTicketParamsWithTimeout

func NewDeleteMatchTicketParamsWithTimeout(timeout time.Duration) *DeleteMatchTicketParams

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

func (*DeleteMatchTicketParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the delete match ticket params

func (*DeleteMatchTicketParams) SetContext

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

SetContext adds the context to the delete match ticket params

func (*DeleteMatchTicketParams) SetFlightId added in v0.63.0

func (o *DeleteMatchTicketParams) SetFlightId(flightId string)

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

func (*DeleteMatchTicketParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete match ticket params

func (*DeleteMatchTicketParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the delete match ticket params

func (*DeleteMatchTicketParams) SetNamespace

func (o *DeleteMatchTicketParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete match ticket params

func (*DeleteMatchTicketParams) SetTicketid

func (o *DeleteMatchTicketParams) SetTicketid(ticketid string)

SetTicketid adds the ticketid to the delete match ticket params

func (*DeleteMatchTicketParams) SetTimeout

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

SetTimeout adds the timeout to the delete match ticket params

func (*DeleteMatchTicketParams) WithContext

WithContext adds the context to the delete match ticket params

func (*DeleteMatchTicketParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete match ticket params

func (*DeleteMatchTicketParams) WithNamespace

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

WithNamespace adds the namespace to the delete match ticket params

func (*DeleteMatchTicketParams) WithTicketid

func (o *DeleteMatchTicketParams) WithTicketid(ticketid string) *DeleteMatchTicketParams

WithTicketid adds the ticketid to the delete match ticket params

func (*DeleteMatchTicketParams) WithTimeout

WithTimeout adds the timeout to the delete match ticket params

func (*DeleteMatchTicketParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteMatchTicketReader

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

DeleteMatchTicketReader is a Reader for the DeleteMatchTicket structure.

func (*DeleteMatchTicketReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteMatchTicketUnauthorized

type DeleteMatchTicketUnauthorized struct {
	Payload *match2clientmodels.ResponseError
}

DeleteMatchTicketUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteMatchTicketUnauthorized

func NewDeleteMatchTicketUnauthorized() *DeleteMatchTicketUnauthorized

NewDeleteMatchTicketUnauthorized creates a DeleteMatchTicketUnauthorized with default headers values

func (*DeleteMatchTicketUnauthorized) Error

func (*DeleteMatchTicketUnauthorized) GetPayload

func (*DeleteMatchTicketUnauthorized) ToJSONString

func (o *DeleteMatchTicketUnauthorized) ToJSONString() string

type GetMyMatchTicketsForbidden added in v0.51.0

type GetMyMatchTicketsForbidden struct {
	Payload *match2clientmodels.ResponseError
}

GetMyMatchTicketsForbidden handles this case with default header values.

Forbidden

func NewGetMyMatchTicketsForbidden added in v0.51.0

func NewGetMyMatchTicketsForbidden() *GetMyMatchTicketsForbidden

NewGetMyMatchTicketsForbidden creates a GetMyMatchTicketsForbidden with default headers values

func (*GetMyMatchTicketsForbidden) Error added in v0.51.0

func (*GetMyMatchTicketsForbidden) GetPayload added in v0.51.0

func (*GetMyMatchTicketsForbidden) ToJSONString added in v0.51.0

func (o *GetMyMatchTicketsForbidden) ToJSONString() string

type GetMyMatchTicketsInternalServerError added in v0.51.0

type GetMyMatchTicketsInternalServerError struct {
	Payload *match2clientmodels.ResponseError
}

GetMyMatchTicketsInternalServerError handles this case with default header values.

Internal Server Error

func NewGetMyMatchTicketsInternalServerError added in v0.51.0

func NewGetMyMatchTicketsInternalServerError() *GetMyMatchTicketsInternalServerError

NewGetMyMatchTicketsInternalServerError creates a GetMyMatchTicketsInternalServerError with default headers values

func (*GetMyMatchTicketsInternalServerError) Error added in v0.51.0

func (*GetMyMatchTicketsInternalServerError) GetPayload added in v0.51.0

func (*GetMyMatchTicketsInternalServerError) ToJSONString added in v0.51.0

func (o *GetMyMatchTicketsInternalServerError) ToJSONString() string

type GetMyMatchTicketsOK added in v0.51.0

type GetMyMatchTicketsOK struct {
	Payload *match2clientmodels.APIMatchTicketStatuses
}

GetMyMatchTicketsOK handles this case with default header values.

OK

func NewGetMyMatchTicketsOK added in v0.51.0

func NewGetMyMatchTicketsOK() *GetMyMatchTicketsOK

NewGetMyMatchTicketsOK creates a GetMyMatchTicketsOK with default headers values

func (*GetMyMatchTicketsOK) Error added in v0.51.0

func (o *GetMyMatchTicketsOK) Error() string

func (*GetMyMatchTicketsOK) GetPayload added in v0.51.0

func (*GetMyMatchTicketsOK) ToJSONString added in v0.51.0

func (o *GetMyMatchTicketsOK) ToJSONString() string

type GetMyMatchTicketsParams added in v0.51.0

type GetMyMatchTicketsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*Limit
	  limit of the returned data

	*/
	Limit *int64
	/*MatchPool
	  ticket match pool

	*/
	MatchPool *string
	/*Offset
	  offset of the data

	*/
	Offset *int64

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

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

GetMyMatchTicketsParams contains all the parameters to send to the API endpoint for the get my match tickets operation typically these are written to a http.Request

func NewGetMyMatchTicketsParams added in v0.51.0

func NewGetMyMatchTicketsParams() *GetMyMatchTicketsParams

NewGetMyMatchTicketsParams creates a new GetMyMatchTicketsParams object with the default values initialized.

func NewGetMyMatchTicketsParamsWithContext added in v0.51.0

func NewGetMyMatchTicketsParamsWithContext(ctx context.Context) *GetMyMatchTicketsParams

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

func NewGetMyMatchTicketsParamsWithHTTPClient added in v0.51.0

func NewGetMyMatchTicketsParamsWithHTTPClient(client *http.Client) *GetMyMatchTicketsParams

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

func NewGetMyMatchTicketsParamsWithTimeout added in v0.51.0

func NewGetMyMatchTicketsParamsWithTimeout(timeout time.Duration) *GetMyMatchTicketsParams

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

func (*GetMyMatchTicketsParams) SetAuthInfoWriter added in v0.51.0

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

SetAuthInfoWriter adds the authInfoWriter to the get my match tickets params

func (*GetMyMatchTicketsParams) SetContext added in v0.51.0

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

SetContext adds the context to the get my match tickets params

func (*GetMyMatchTicketsParams) SetFlightId added in v0.63.0

func (o *GetMyMatchTicketsParams) SetFlightId(flightId string)

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

func (*GetMyMatchTicketsParams) SetHTTPClient added in v0.51.0

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

SetHTTPClient adds the HTTPClient to the get my match tickets params

func (*GetMyMatchTicketsParams) SetHTTPClientTransport added in v0.51.0

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

SetHTTPClient adds the HTTPClient Transport to the get my match tickets params

func (*GetMyMatchTicketsParams) SetLimit added in v0.51.0

func (o *GetMyMatchTicketsParams) SetLimit(limit *int64)

SetLimit adds the limit to the get my match tickets params

func (*GetMyMatchTicketsParams) SetMatchPool added in v0.51.0

func (o *GetMyMatchTicketsParams) SetMatchPool(matchPool *string)

SetMatchPool adds the matchPool to the get my match tickets params

func (*GetMyMatchTicketsParams) SetNamespace added in v0.51.0

func (o *GetMyMatchTicketsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get my match tickets params

func (*GetMyMatchTicketsParams) SetOffset added in v0.51.0

func (o *GetMyMatchTicketsParams) SetOffset(offset *int64)

SetOffset adds the offset to the get my match tickets params

func (*GetMyMatchTicketsParams) SetTimeout added in v0.51.0

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

SetTimeout adds the timeout to the get my match tickets params

func (*GetMyMatchTicketsParams) WithContext added in v0.51.0

WithContext adds the context to the get my match tickets params

func (*GetMyMatchTicketsParams) WithHTTPClient added in v0.51.0

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

WithHTTPClient adds the HTTPClient to the get my match tickets params

func (*GetMyMatchTicketsParams) WithLimit added in v0.51.0

WithLimit adds the limit to the get my match tickets params

func (*GetMyMatchTicketsParams) WithMatchPool added in v0.51.0

func (o *GetMyMatchTicketsParams) WithMatchPool(matchPool *string) *GetMyMatchTicketsParams

WithMatchPool adds the matchPool to the get my match tickets params

func (*GetMyMatchTicketsParams) WithNamespace added in v0.51.0

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

WithNamespace adds the namespace to the get my match tickets params

func (*GetMyMatchTicketsParams) WithOffset added in v0.51.0

func (o *GetMyMatchTicketsParams) WithOffset(offset *int64) *GetMyMatchTicketsParams

WithOffset adds the offset to the get my match tickets params

func (*GetMyMatchTicketsParams) WithTimeout added in v0.51.0

WithTimeout adds the timeout to the get my match tickets params

func (*GetMyMatchTicketsParams) WriteToRequest added in v0.51.0

WriteToRequest writes these params to a swagger request

type GetMyMatchTicketsReader added in v0.51.0

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

GetMyMatchTicketsReader is a Reader for the GetMyMatchTickets structure.

func (*GetMyMatchTicketsReader) ReadResponse added in v0.51.0

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

ReadResponse reads a server response into the received o.

type GetMyMatchTicketsUnauthorized added in v0.51.0

type GetMyMatchTicketsUnauthorized struct {
	Payload *match2clientmodels.ResponseError
}

GetMyMatchTicketsUnauthorized handles this case with default header values.

Unauthorized

func NewGetMyMatchTicketsUnauthorized added in v0.51.0

func NewGetMyMatchTicketsUnauthorized() *GetMyMatchTicketsUnauthorized

NewGetMyMatchTicketsUnauthorized creates a GetMyMatchTicketsUnauthorized with default headers values

func (*GetMyMatchTicketsUnauthorized) Error added in v0.51.0

func (*GetMyMatchTicketsUnauthorized) GetPayload added in v0.51.0

func (*GetMyMatchTicketsUnauthorized) ToJSONString added in v0.51.0

func (o *GetMyMatchTicketsUnauthorized) ToJSONString() string

type MatchTicketDetailsForbidden

type MatchTicketDetailsForbidden struct {
	Payload *match2clientmodels.ResponseError
}

MatchTicketDetailsForbidden handles this case with default header values.

Forbidden

func NewMatchTicketDetailsForbidden

func NewMatchTicketDetailsForbidden() *MatchTicketDetailsForbidden

NewMatchTicketDetailsForbidden creates a MatchTicketDetailsForbidden with default headers values

func (*MatchTicketDetailsForbidden) Error

func (*MatchTicketDetailsForbidden) GetPayload

func (*MatchTicketDetailsForbidden) ToJSONString

func (o *MatchTicketDetailsForbidden) ToJSONString() string

type MatchTicketDetailsInternalServerError

type MatchTicketDetailsInternalServerError struct {
	Payload *match2clientmodels.ResponseError
}

MatchTicketDetailsInternalServerError handles this case with default header values.

Internal Server Error

func NewMatchTicketDetailsInternalServerError

func NewMatchTicketDetailsInternalServerError() *MatchTicketDetailsInternalServerError

NewMatchTicketDetailsInternalServerError creates a MatchTicketDetailsInternalServerError with default headers values

func (*MatchTicketDetailsInternalServerError) Error

func (*MatchTicketDetailsInternalServerError) GetPayload

func (*MatchTicketDetailsInternalServerError) ToJSONString

type MatchTicketDetailsNotFound

type MatchTicketDetailsNotFound struct {
	Payload *match2clientmodels.ResponseError
}

MatchTicketDetailsNotFound handles this case with default header values.

Not Found

func NewMatchTicketDetailsNotFound

func NewMatchTicketDetailsNotFound() *MatchTicketDetailsNotFound

NewMatchTicketDetailsNotFound creates a MatchTicketDetailsNotFound with default headers values

func (*MatchTicketDetailsNotFound) Error

func (*MatchTicketDetailsNotFound) GetPayload

func (*MatchTicketDetailsNotFound) ToJSONString

func (o *MatchTicketDetailsNotFound) ToJSONString() string

type MatchTicketDetailsOK

type MatchTicketDetailsOK struct {
	Payload *match2clientmodels.APIMatchTicketStatus
}

MatchTicketDetailsOK handles this case with default header values.

Created

func NewMatchTicketDetailsOK

func NewMatchTicketDetailsOK() *MatchTicketDetailsOK

NewMatchTicketDetailsOK creates a MatchTicketDetailsOK with default headers values

func (*MatchTicketDetailsOK) Error

func (o *MatchTicketDetailsOK) Error() string

func (*MatchTicketDetailsOK) GetPayload

func (*MatchTicketDetailsOK) ToJSONString

func (o *MatchTicketDetailsOK) ToJSONString() string

type MatchTicketDetailsParams

type MatchTicketDetailsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*Ticketid
	  id of the ticket to get the status of

	*/
	Ticketid string

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

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

MatchTicketDetailsParams contains all the parameters to send to the API endpoint for the match ticket details operation typically these are written to a http.Request

func NewMatchTicketDetailsParams

func NewMatchTicketDetailsParams() *MatchTicketDetailsParams

NewMatchTicketDetailsParams creates a new MatchTicketDetailsParams object with the default values initialized.

func NewMatchTicketDetailsParamsWithContext

func NewMatchTicketDetailsParamsWithContext(ctx context.Context) *MatchTicketDetailsParams

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

func NewMatchTicketDetailsParamsWithHTTPClient

func NewMatchTicketDetailsParamsWithHTTPClient(client *http.Client) *MatchTicketDetailsParams

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

func NewMatchTicketDetailsParamsWithTimeout

func NewMatchTicketDetailsParamsWithTimeout(timeout time.Duration) *MatchTicketDetailsParams

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

func (*MatchTicketDetailsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the match ticket details params

func (*MatchTicketDetailsParams) SetContext

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

SetContext adds the context to the match ticket details params

func (*MatchTicketDetailsParams) SetFlightId added in v0.63.0

func (o *MatchTicketDetailsParams) SetFlightId(flightId string)

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

func (*MatchTicketDetailsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the match ticket details params

func (*MatchTicketDetailsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the match ticket details params

func (*MatchTicketDetailsParams) SetNamespace

func (o *MatchTicketDetailsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the match ticket details params

func (*MatchTicketDetailsParams) SetTicketid

func (o *MatchTicketDetailsParams) SetTicketid(ticketid string)

SetTicketid adds the ticketid to the match ticket details params

func (*MatchTicketDetailsParams) SetTimeout

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

SetTimeout adds the timeout to the match ticket details params

func (*MatchTicketDetailsParams) WithContext

WithContext adds the context to the match ticket details params

func (*MatchTicketDetailsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the match ticket details params

func (*MatchTicketDetailsParams) WithNamespace

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

WithNamespace adds the namespace to the match ticket details params

func (*MatchTicketDetailsParams) WithTicketid

func (o *MatchTicketDetailsParams) WithTicketid(ticketid string) *MatchTicketDetailsParams

WithTicketid adds the ticketid to the match ticket details params

func (*MatchTicketDetailsParams) WithTimeout

WithTimeout adds the timeout to the match ticket details params

func (*MatchTicketDetailsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type MatchTicketDetailsReader

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

MatchTicketDetailsReader is a Reader for the MatchTicketDetails structure.

func (*MatchTicketDetailsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type MatchTicketDetailsUnauthorized

type MatchTicketDetailsUnauthorized struct {
	Payload *match2clientmodels.ResponseError
}

MatchTicketDetailsUnauthorized handles this case with default header values.

Unauthorized

func NewMatchTicketDetailsUnauthorized

func NewMatchTicketDetailsUnauthorized() *MatchTicketDetailsUnauthorized

NewMatchTicketDetailsUnauthorized creates a MatchTicketDetailsUnauthorized with default headers values

func (*MatchTicketDetailsUnauthorized) Error

func (*MatchTicketDetailsUnauthorized) GetPayload

func (*MatchTicketDetailsUnauthorized) ToJSONString

func (o *MatchTicketDetailsUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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