session

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelSessionInternalServerError added in v0.45.0

type CancelSessionInternalServerError struct {
	Payload *dsmcclientmodels.ResponseError
}

CancelSessionInternalServerError handles this case with default header values.

Internal Server Error

func NewCancelSessionInternalServerError added in v0.45.0

func NewCancelSessionInternalServerError() *CancelSessionInternalServerError

NewCancelSessionInternalServerError creates a CancelSessionInternalServerError with default headers values

func (*CancelSessionInternalServerError) Error added in v0.45.0

func (*CancelSessionInternalServerError) GetPayload added in v0.45.0

func (*CancelSessionInternalServerError) ToJSONString added in v0.45.0

func (o *CancelSessionInternalServerError) ToJSONString() string

type CancelSessionNoContent added in v0.45.0

type CancelSessionNoContent struct {
}

CancelSessionNoContent handles this case with default header values.

DS creation successfully canceled

func NewCancelSessionNoContent added in v0.45.0

func NewCancelSessionNoContent() *CancelSessionNoContent

NewCancelSessionNoContent creates a CancelSessionNoContent with default headers values

func (*CancelSessionNoContent) Error added in v0.45.0

func (o *CancelSessionNoContent) Error() string

type CancelSessionNotFound added in v0.45.0

type CancelSessionNotFound struct {
	Payload *dsmcclientmodels.ResponseError
}

CancelSessionNotFound handles this case with default header values.

session not found

func NewCancelSessionNotFound added in v0.45.0

func NewCancelSessionNotFound() *CancelSessionNotFound

NewCancelSessionNotFound creates a CancelSessionNotFound with default headers values

func (*CancelSessionNotFound) Error added in v0.45.0

func (o *CancelSessionNotFound) Error() string

func (*CancelSessionNotFound) GetPayload added in v0.45.0

func (*CancelSessionNotFound) ToJSONString added in v0.45.0

func (o *CancelSessionNotFound) ToJSONString() string

type CancelSessionParams added in v0.45.0

type CancelSessionParams struct {

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

	*/
	Namespace string
	/*SessionID
	  session ID

	*/
	SessionID string

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

CancelSessionParams contains all the parameters to send to the API endpoint for the cancel session operation typically these are written to a http.Request

func NewCancelSessionParams added in v0.45.0

func NewCancelSessionParams() *CancelSessionParams

NewCancelSessionParams creates a new CancelSessionParams object with the default values initialized.

func NewCancelSessionParamsWithContext added in v0.45.0

func NewCancelSessionParamsWithContext(ctx context.Context) *CancelSessionParams

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

func NewCancelSessionParamsWithHTTPClient added in v0.45.0

func NewCancelSessionParamsWithHTTPClient(client *http.Client) *CancelSessionParams

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

func NewCancelSessionParamsWithTimeout added in v0.45.0

func NewCancelSessionParamsWithTimeout(timeout time.Duration) *CancelSessionParams

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

func (*CancelSessionParams) SetAuthInfoWriter added in v0.45.0

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

SetAuthInfoWriter adds the authInfoWriter to the cancel session params

func (*CancelSessionParams) SetContext added in v0.45.0

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

SetContext adds the context to the cancel session params

func (*CancelSessionParams) SetHTTPClient added in v0.45.0

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

SetHTTPClient adds the HTTPClient to the cancel session params

func (*CancelSessionParams) SetHTTPClientTransport added in v0.45.0

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

SetHTTPClient adds the HTTPClient Transport to the cancel session params

func (*CancelSessionParams) SetNamespace added in v0.45.0

func (o *CancelSessionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the cancel session params

func (*CancelSessionParams) SetSessionID added in v0.45.0

func (o *CancelSessionParams) SetSessionID(sessionID string)

SetSessionID adds the sessionId to the cancel session params

func (*CancelSessionParams) SetTimeout added in v0.45.0

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

SetTimeout adds the timeout to the cancel session params

func (*CancelSessionParams) WithContext added in v0.45.0

WithContext adds the context to the cancel session params

func (*CancelSessionParams) WithHTTPClient added in v0.45.0

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

WithHTTPClient adds the HTTPClient to the cancel session params

func (*CancelSessionParams) WithNamespace added in v0.45.0

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

WithNamespace adds the namespace to the cancel session params

func (*CancelSessionParams) WithSessionID added in v0.45.0

func (o *CancelSessionParams) WithSessionID(sessionID string) *CancelSessionParams

WithSessionID adds the sessionID to the cancel session params

func (*CancelSessionParams) WithTimeout added in v0.45.0

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

WithTimeout adds the timeout to the cancel session params

func (*CancelSessionParams) WriteToRequest added in v0.45.0

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

WriteToRequest writes these params to a swagger request

type CancelSessionReader added in v0.45.0

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

CancelSessionReader is a Reader for the CancelSession structure.

func (*CancelSessionReader) ReadResponse added in v0.45.0

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

ReadResponse reads a server response into the received o.

type CancelSessionUnauthorized added in v0.45.0

type CancelSessionUnauthorized struct {
	Payload *dsmcclientmodels.ResponseError
}

CancelSessionUnauthorized handles this case with default header values.

Unauthorized

func NewCancelSessionUnauthorized added in v0.45.0

func NewCancelSessionUnauthorized() *CancelSessionUnauthorized

NewCancelSessionUnauthorized creates a CancelSessionUnauthorized with default headers values

func (*CancelSessionUnauthorized) Error added in v0.45.0

func (o *CancelSessionUnauthorized) Error() string

func (*CancelSessionUnauthorized) GetPayload added in v0.45.0

func (*CancelSessionUnauthorized) ToJSONString added in v0.45.0

func (o *CancelSessionUnauthorized) ToJSONString() string

type CancelSessionUnprocessableEntity added in v0.45.0

type CancelSessionUnprocessableEntity struct {
	Payload *dsmcclientmodels.ResponseError
}

CancelSessionUnprocessableEntity handles this case with default header values.

session cannot be canceled

func NewCancelSessionUnprocessableEntity added in v0.45.0

func NewCancelSessionUnprocessableEntity() *CancelSessionUnprocessableEntity

NewCancelSessionUnprocessableEntity creates a CancelSessionUnprocessableEntity with default headers values

func (*CancelSessionUnprocessableEntity) Error added in v0.45.0

func (*CancelSessionUnprocessableEntity) GetPayload added in v0.45.0

func (*CancelSessionUnprocessableEntity) ToJSONString added in v0.45.0

func (o *CancelSessionUnprocessableEntity) ToJSONString() string

type ClaimServerConflict

type ClaimServerConflict struct {
	Payload *dsmcclientmodels.ResponseError
}

ClaimServerConflict handles this case with default header values.

DS is already claimed

func NewClaimServerConflict

func NewClaimServerConflict() *ClaimServerConflict

NewClaimServerConflict creates a ClaimServerConflict with default headers values

func (*ClaimServerConflict) Error

func (o *ClaimServerConflict) Error() string

func (*ClaimServerConflict) GetPayload

func (*ClaimServerConflict) ToJSONString added in v0.25.0

func (o *ClaimServerConflict) ToJSONString() string

type ClaimServerInternalServerError

type ClaimServerInternalServerError struct {
	Payload *dsmcclientmodels.ResponseError
}

ClaimServerInternalServerError handles this case with default header values.

Internal Server Error

func NewClaimServerInternalServerError

func NewClaimServerInternalServerError() *ClaimServerInternalServerError

NewClaimServerInternalServerError creates a ClaimServerInternalServerError with default headers values

func (*ClaimServerInternalServerError) Error

func (*ClaimServerInternalServerError) GetPayload

func (*ClaimServerInternalServerError) ToJSONString added in v0.25.0

func (o *ClaimServerInternalServerError) ToJSONString() string

type ClaimServerNoContent

type ClaimServerNoContent struct {
}

ClaimServerNoContent handles this case with default header values.

DS claimed for session

func NewClaimServerNoContent

func NewClaimServerNoContent() *ClaimServerNoContent

NewClaimServerNoContent creates a ClaimServerNoContent with default headers values

func (*ClaimServerNoContent) Error

func (o *ClaimServerNoContent) Error() string

type ClaimServerNotFound

type ClaimServerNotFound struct {
	Payload *dsmcclientmodels.ResponseError
}

ClaimServerNotFound handles this case with default header values.

session not found

func NewClaimServerNotFound

func NewClaimServerNotFound() *ClaimServerNotFound

NewClaimServerNotFound creates a ClaimServerNotFound with default headers values

func (*ClaimServerNotFound) Error

func (o *ClaimServerNotFound) Error() string

func (*ClaimServerNotFound) GetPayload

func (*ClaimServerNotFound) ToJSONString added in v0.25.0

func (o *ClaimServerNotFound) ToJSONString() string

type ClaimServerParams

type ClaimServerParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *dsmcclientmodels.ModelsClaimSessionRequest
	/*Namespace
	  namespace of the game

	*/
	Namespace string

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

ClaimServerParams contains all the parameters to send to the API endpoint for the claim server operation typically these are written to a http.Request

func NewClaimServerParams

func NewClaimServerParams() *ClaimServerParams

NewClaimServerParams creates a new ClaimServerParams object with the default values initialized.

func NewClaimServerParamsWithContext

func NewClaimServerParamsWithContext(ctx context.Context) *ClaimServerParams

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

func NewClaimServerParamsWithHTTPClient

func NewClaimServerParamsWithHTTPClient(client *http.Client) *ClaimServerParams

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

func NewClaimServerParamsWithTimeout

func NewClaimServerParamsWithTimeout(timeout time.Duration) *ClaimServerParams

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

func (*ClaimServerParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the claim server params

func (*ClaimServerParams) SetBody

SetBody adds the body to the claim server params

func (*ClaimServerParams) SetContext

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

SetContext adds the context to the claim server params

func (*ClaimServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the claim server params

func (*ClaimServerParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the claim server params

func (*ClaimServerParams) SetNamespace

func (o *ClaimServerParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the claim server params

func (*ClaimServerParams) SetTimeout

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

SetTimeout adds the timeout to the claim server params

func (*ClaimServerParams) WithBody

WithBody adds the body to the claim server params

func (*ClaimServerParams) WithContext

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

WithContext adds the context to the claim server params

func (*ClaimServerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the claim server params

func (*ClaimServerParams) WithNamespace

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

WithNamespace adds the namespace to the claim server params

func (*ClaimServerParams) WithTimeout

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

WithTimeout adds the timeout to the claim server params

func (*ClaimServerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ClaimServerReader

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

ClaimServerReader is a Reader for the ClaimServer structure.

func (*ClaimServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ClaimServerServiceUnavailable

type ClaimServerServiceUnavailable struct {
	Payload *dsmcclientmodels.ResponseError
}

ClaimServerServiceUnavailable handles this case with default header values.

DS is unreachable

func NewClaimServerServiceUnavailable

func NewClaimServerServiceUnavailable() *ClaimServerServiceUnavailable

NewClaimServerServiceUnavailable creates a ClaimServerServiceUnavailable with default headers values

func (*ClaimServerServiceUnavailable) Error

func (*ClaimServerServiceUnavailable) GetPayload

func (*ClaimServerServiceUnavailable) ToJSONString added in v0.25.0

func (o *ClaimServerServiceUnavailable) ToJSONString() string

type ClaimServerTooEarly added in v0.44.0

type ClaimServerTooEarly struct {
	Payload *dsmcclientmodels.ResponseError
}

ClaimServerTooEarly handles this case with default header values.

DS is not ready to be claimed

func NewClaimServerTooEarly added in v0.44.0

func NewClaimServerTooEarly() *ClaimServerTooEarly

NewClaimServerTooEarly creates a ClaimServerTooEarly with default headers values

func (*ClaimServerTooEarly) Error added in v0.44.0

func (o *ClaimServerTooEarly) Error() string

func (*ClaimServerTooEarly) GetPayload added in v0.44.0

func (*ClaimServerTooEarly) ToJSONString added in v0.44.0

func (o *ClaimServerTooEarly) ToJSONString() string

type ClaimServerUnauthorized

type ClaimServerUnauthorized struct {
	Payload *dsmcclientmodels.ResponseError
}

ClaimServerUnauthorized handles this case with default header values.

Unauthorized

func NewClaimServerUnauthorized

func NewClaimServerUnauthorized() *ClaimServerUnauthorized

NewClaimServerUnauthorized creates a ClaimServerUnauthorized with default headers values

func (*ClaimServerUnauthorized) Error

func (o *ClaimServerUnauthorized) Error() string

func (*ClaimServerUnauthorized) GetPayload

func (*ClaimServerUnauthorized) ToJSONString added in v0.25.0

func (o *ClaimServerUnauthorized) ToJSONString() string

type Client

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

Client for session API

func (*Client) CancelSession deprecated added in v0.45.0

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

CancelSession cancel session of a temporary ds Required permission: NAMESPACE:{namespace}:DSM:SESSION [DELETE]

Required scope: social

This endpoint is intended to be called by game session manager (matchmaker, lobby, etc.) to cancel a temporary dedicated server. The dedicated server cannot be canceled unless the status is CREATING

func (*Client) CancelSessionShort added in v0.45.0

func (a *Client) CancelSessionShort(params *CancelSessionParams, authInfo runtime.ClientAuthInfoWriter) (*CancelSessionNoContent, error)

CancelSessionShort cancel session of a temporary ds Required permission: NAMESPACE:{namespace}:DSM:SESSION [DELETE]

Required scope: social

This endpoint is intended to be called by game session manager (matchmaker, lobby, etc.) to cancel a temporary dedicated server. The dedicated server cannot be canceled unless the status is CREATING

func (*Client) ClaimServer deprecated

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

ClaimServer claim a ds for a game session Required permission: NAMESPACE:{namespace}:DSM:SESSION [UPDATE]

Required scope: social

This endpoint is intended to be called by game session manager (matchmaker, lobby, etc.) to claim a dedicated server. The dedicated server cannot be claimed unless the status is READY

func (*Client) ClaimServerShort added in v0.8.0

func (a *Client) ClaimServerShort(params *ClaimServerParams, authInfo runtime.ClientAuthInfoWriter) (*ClaimServerNoContent, error)

ClaimServerShort claim a ds for a game session Required permission: NAMESPACE:{namespace}:DSM:SESSION [UPDATE]

Required scope: social

This endpoint is intended to be called by game session manager (matchmaker, lobby, etc.) to claim a dedicated server. The dedicated server cannot be claimed unless the status is READY

func (*Client) CreateSession deprecated

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

CreateSession register a new game session Required permission: NAMESPACE:{namespace}:DSM:SESSION [CREATE]

Required scope: social

This endpoint is intended to be called by game session manager (matchmaker, lobby, etc.) to get a dedicated server for a game session.

If a dedicated server is available, it will respond with a dedicated server details ready to be used.

Otherwise it will trigger new dedicated server creation and respond with a server status CREATING. The game session manager then expected to wait and query the server readiness with GET /namespaces/{namespace}/sessions/{sessionID} endpoint until the serverstatus is READY

Specify pod_name with name of local DS in the request to create a session using the registered local DS

func (*Client) CreateSessionShort added in v0.8.0

func (a *Client) CreateSessionShort(params *CreateSessionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSessionOK, error)

CreateSessionShort register a new game session Required permission: NAMESPACE:{namespace}:DSM:SESSION [CREATE]

Required scope: social

This endpoint is intended to be called by game session manager (matchmaker, lobby, etc.) to get a dedicated server for a game session.

If a dedicated server is available, it will respond with a dedicated server details ready to be used.

Otherwise it will trigger new dedicated server creation and respond with a server status CREATING. The game session manager then expected to wait and query the server readiness with GET /namespaces/{namespace}/sessions/{sessionID} endpoint until the serverstatus is READY

Specify pod_name with name of local DS in the request to create a session using the registered local DS

func (*Client) GetSession deprecated

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

GetSession query specified session Required permission: NAMESPACE:{namespace}:DSM:SESSION [READ]

Required scope: social

This endpoint is intended to be called by game session manager (matchmaker, lobby, etc.) to query the status of dedicated server that is created for the session.

The server is ready to use when the status is READY. At which point, the game session manager can claim the server using the GET /namespaces/{namespace}/sessions/{sessionID}/claim endpoint

func (*Client) GetSessionShort added in v0.8.0

func (a *Client) GetSessionShort(params *GetSessionParams, authInfo runtime.ClientAuthInfoWriter) (*GetSessionOK, error)

GetSessionShort query specified session Required permission: NAMESPACE:{namespace}:DSM:SESSION [READ]

Required scope: social

This endpoint is intended to be called by game session manager (matchmaker, lobby, etc.) to query the status of dedicated server that is created for the session.

The server is ready to use when the status is READY. At which point, the game session manager can claim the server using the GET /namespaces/{namespace}/sessions/{sessionID}/claim endpoint

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new session API client.

type CreateSessionBadRequest

type CreateSessionBadRequest struct {
	Payload *dsmcclientmodels.ResponseError
}

CreateSessionBadRequest handles this case with default header values.

malformed request

func NewCreateSessionBadRequest

func NewCreateSessionBadRequest() *CreateSessionBadRequest

NewCreateSessionBadRequest creates a CreateSessionBadRequest with default headers values

func (*CreateSessionBadRequest) Error

func (o *CreateSessionBadRequest) Error() string

func (*CreateSessionBadRequest) GetPayload

func (*CreateSessionBadRequest) ToJSONString added in v0.25.0

func (o *CreateSessionBadRequest) ToJSONString() string

type CreateSessionConflict

type CreateSessionConflict struct {
	Payload *dsmcclientmodels.ResponseError
}

CreateSessionConflict handles this case with default header values.

session already exists

func NewCreateSessionConflict

func NewCreateSessionConflict() *CreateSessionConflict

NewCreateSessionConflict creates a CreateSessionConflict with default headers values

func (*CreateSessionConflict) Error

func (o *CreateSessionConflict) Error() string

func (*CreateSessionConflict) GetPayload

func (*CreateSessionConflict) ToJSONString added in v0.25.0

func (o *CreateSessionConflict) ToJSONString() string

type CreateSessionInternalServerError

type CreateSessionInternalServerError struct {
	Payload *dsmcclientmodels.ResponseError
}

CreateSessionInternalServerError handles this case with default header values.

Internal Server Error

func NewCreateSessionInternalServerError

func NewCreateSessionInternalServerError() *CreateSessionInternalServerError

NewCreateSessionInternalServerError creates a CreateSessionInternalServerError with default headers values

func (*CreateSessionInternalServerError) Error

func (*CreateSessionInternalServerError) GetPayload

func (*CreateSessionInternalServerError) ToJSONString added in v0.25.0

func (o *CreateSessionInternalServerError) ToJSONString() string

type CreateSessionNotFound

type CreateSessionNotFound struct {
	Payload *dsmcclientmodels.ResponseError
}

CreateSessionNotFound handles this case with default header values.

local server not found

func NewCreateSessionNotFound

func NewCreateSessionNotFound() *CreateSessionNotFound

NewCreateSessionNotFound creates a CreateSessionNotFound with default headers values

func (*CreateSessionNotFound) Error

func (o *CreateSessionNotFound) Error() string

func (*CreateSessionNotFound) GetPayload

func (*CreateSessionNotFound) ToJSONString added in v0.25.0

func (o *CreateSessionNotFound) ToJSONString() string

type CreateSessionOK

type CreateSessionOK struct {
	Payload *dsmcclientmodels.ModelsSessionResponse
}

CreateSessionOK handles this case with default header values.

session created

func NewCreateSessionOK

func NewCreateSessionOK() *CreateSessionOK

NewCreateSessionOK creates a CreateSessionOK with default headers values

func (*CreateSessionOK) Error

func (o *CreateSessionOK) Error() string

func (*CreateSessionOK) GetPayload

func (*CreateSessionOK) ToJSONString added in v0.25.0

func (o *CreateSessionOK) ToJSONString() string

type CreateSessionParams

type CreateSessionParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *dsmcclientmodels.ModelsCreateSessionRequest
	/*Namespace
	  namespace of the game

	*/
	Namespace string

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

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

func NewCreateSessionParams

func NewCreateSessionParams() *CreateSessionParams

NewCreateSessionParams creates a new CreateSessionParams object with the default values initialized.

func NewCreateSessionParamsWithContext

func NewCreateSessionParamsWithContext(ctx context.Context) *CreateSessionParams

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

func NewCreateSessionParamsWithHTTPClient

func NewCreateSessionParamsWithHTTPClient(client *http.Client) *CreateSessionParams

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

func NewCreateSessionParamsWithTimeout

func NewCreateSessionParamsWithTimeout(timeout time.Duration) *CreateSessionParams

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

func (*CreateSessionParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the create session params

func (*CreateSessionParams) SetBody

SetBody adds the body to the create session params

func (*CreateSessionParams) SetContext

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

SetContext adds the context to the create session params

func (*CreateSessionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create session params

func (*CreateSessionParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the create session params

func (*CreateSessionParams) SetNamespace

func (o *CreateSessionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create session params

func (*CreateSessionParams) SetTimeout

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

SetTimeout adds the timeout to the create session params

func (*CreateSessionParams) WithBody

WithBody adds the body to the create session params

func (*CreateSessionParams) WithContext

WithContext adds the context to the create session params

func (*CreateSessionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create session params

func (*CreateSessionParams) WithNamespace

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

WithNamespace adds the namespace to the create session params

func (*CreateSessionParams) WithTimeout

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

WithTimeout adds the timeout to the create session params

func (*CreateSessionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateSessionReader

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

CreateSessionReader is a Reader for the CreateSession structure.

func (*CreateSessionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateSessionServiceUnavailable

type CreateSessionServiceUnavailable struct {
	Payload *dsmcclientmodels.ResponseError
}

CreateSessionServiceUnavailable handles this case with default header values.

server count is at max

func NewCreateSessionServiceUnavailable

func NewCreateSessionServiceUnavailable() *CreateSessionServiceUnavailable

NewCreateSessionServiceUnavailable creates a CreateSessionServiceUnavailable with default headers values

func (*CreateSessionServiceUnavailable) Error

func (*CreateSessionServiceUnavailable) GetPayload

func (*CreateSessionServiceUnavailable) ToJSONString added in v0.25.0

func (o *CreateSessionServiceUnavailable) ToJSONString() string

type CreateSessionUnauthorized

type CreateSessionUnauthorized struct {
	Payload *dsmcclientmodels.ResponseError
}

CreateSessionUnauthorized handles this case with default header values.

Unauthorized

func NewCreateSessionUnauthorized

func NewCreateSessionUnauthorized() *CreateSessionUnauthorized

NewCreateSessionUnauthorized creates a CreateSessionUnauthorized with default headers values

func (*CreateSessionUnauthorized) Error

func (o *CreateSessionUnauthorized) Error() string

func (*CreateSessionUnauthorized) GetPayload

func (*CreateSessionUnauthorized) ToJSONString added in v0.25.0

func (o *CreateSessionUnauthorized) ToJSONString() string

type GetSessionInternalServerError

type GetSessionInternalServerError struct {
	Payload *dsmcclientmodels.ResponseError
}

GetSessionInternalServerError handles this case with default header values.

Internal Server Error

func NewGetSessionInternalServerError

func NewGetSessionInternalServerError() *GetSessionInternalServerError

NewGetSessionInternalServerError creates a GetSessionInternalServerError with default headers values

func (*GetSessionInternalServerError) Error

func (*GetSessionInternalServerError) GetPayload

func (*GetSessionInternalServerError) ToJSONString added in v0.25.0

func (o *GetSessionInternalServerError) ToJSONString() string

type GetSessionNotFound

type GetSessionNotFound struct {
	Payload *dsmcclientmodels.ResponseError
}

GetSessionNotFound handles this case with default header values.

session not found

func NewGetSessionNotFound

func NewGetSessionNotFound() *GetSessionNotFound

NewGetSessionNotFound creates a GetSessionNotFound with default headers values

func (*GetSessionNotFound) Error

func (o *GetSessionNotFound) Error() string

func (*GetSessionNotFound) GetPayload

func (*GetSessionNotFound) ToJSONString added in v0.25.0

func (o *GetSessionNotFound) ToJSONString() string

type GetSessionOK

type GetSessionOK struct {
	Payload *dsmcclientmodels.ModelsSessionResponse
}

GetSessionOK handles this case with default header values.

session queried

func NewGetSessionOK

func NewGetSessionOK() *GetSessionOK

NewGetSessionOK creates a GetSessionOK with default headers values

func (*GetSessionOK) Error

func (o *GetSessionOK) Error() string

func (*GetSessionOK) GetPayload

func (*GetSessionOK) ToJSONString added in v0.25.0

func (o *GetSessionOK) ToJSONString() string

type GetSessionParams

type GetSessionParams struct {

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

	*/
	Namespace string
	/*SessionID
	  session ID

	*/
	SessionID string

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

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

func NewGetSessionParams

func NewGetSessionParams() *GetSessionParams

NewGetSessionParams creates a new GetSessionParams object with the default values initialized.

func NewGetSessionParamsWithContext

func NewGetSessionParamsWithContext(ctx context.Context) *GetSessionParams

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

func NewGetSessionParamsWithHTTPClient

func NewGetSessionParamsWithHTTPClient(client *http.Client) *GetSessionParams

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

func NewGetSessionParamsWithTimeout

func NewGetSessionParamsWithTimeout(timeout time.Duration) *GetSessionParams

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

func (*GetSessionParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the get session params

func (*GetSessionParams) SetContext

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

SetContext adds the context to the get session params

func (*GetSessionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get session params

func (*GetSessionParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the get session params

func (*GetSessionParams) SetNamespace

func (o *GetSessionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get session params

func (*GetSessionParams) SetSessionID

func (o *GetSessionParams) SetSessionID(sessionID string)

SetSessionID adds the sessionId to the get session params

func (*GetSessionParams) SetTimeout

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

SetTimeout adds the timeout to the get session params

func (*GetSessionParams) WithContext

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

WithContext adds the context to the get session params

func (*GetSessionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get session params

func (*GetSessionParams) WithNamespace

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

WithNamespace adds the namespace to the get session params

func (*GetSessionParams) WithSessionID

func (o *GetSessionParams) WithSessionID(sessionID string) *GetSessionParams

WithSessionID adds the sessionID to the get session params

func (*GetSessionParams) WithTimeout

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

WithTimeout adds the timeout to the get session params

func (*GetSessionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSessionReader

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

GetSessionReader is a Reader for the GetSession structure.

func (*GetSessionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSessionUnauthorized

type GetSessionUnauthorized struct {
	Payload *dsmcclientmodels.ResponseError
}

GetSessionUnauthorized handles this case with default header values.

Unauthorized

func NewGetSessionUnauthorized

func NewGetSessionUnauthorized() *GetSessionUnauthorized

NewGetSessionUnauthorized creates a GetSessionUnauthorized with default headers values

func (*GetSessionUnauthorized) Error

func (o *GetSessionUnauthorized) Error() string

func (*GetSessionUnauthorized) GetPayload

func (*GetSessionUnauthorized) ToJSONString added in v0.25.0

func (o *GetSessionUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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