session

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type 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 ClaimServerStatus425

type ClaimServerStatus425 struct {
	Payload *dsmcclientmodels.ResponseError
}

ClaimServerStatus425 handles this case with default header values.

DS is not ready to be claimed

func NewClaimServerStatus425

func NewClaimServerStatus425() *ClaimServerStatus425

NewClaimServerStatus425 creates a ClaimServerStatus425 with default headers values

func (*ClaimServerStatus425) Error

func (o *ClaimServerStatus425) Error() string

func (*ClaimServerStatus425) GetPayload

func (*ClaimServerStatus425) ToJSONString added in v0.25.0

func (o *ClaimServerStatus425) 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) ClaimServer deprecated

Deprecated: Use ClaimServerShort instead.

ClaimServer claims a d s 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 claims a d s 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: Use CreateSessionShort instead.

CreateSession registers 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 registers 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: Use GetSessionShort instead.

GetSession queries 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 queries 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 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