session_platform

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: 15 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 session platform API

func (*Client) RegisterXblSessions deprecated

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

RegisterXblSessions register/update a session This API is used to register/update a session on xbox.

Other detail info:

  • Required permission : resource=ADMIN:NAMESPACE:{namespace}:USER:{userId}:INTEGRATION, action=4 (UPDATE)

func (*Client) RegisterXblSessionsShort

func (a *Client) RegisterXblSessionsShort(params *RegisterXblSessionsParams, authInfo runtime.ClientAuthInfoWriter) (*RegisterXblSessionsOK, error)

RegisterXblSessionsShort register/update a session This API is used to register/update a session on xbox.

Other detail info:

  • Required permission : resource=ADMIN:NAMESPACE:{namespace}:USER:{userId}:INTEGRATION, action=4 (UPDATE)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	RegisterXblSessions(params *RegisterXblSessionsParams, authInfo runtime.ClientAuthInfoWriter) (*RegisterXblSessionsOK, *RegisterXblSessionsBadRequest, error)
	RegisterXblSessionsShort(params *RegisterXblSessionsParams, authInfo runtime.ClientAuthInfoWriter) (*RegisterXblSessionsOK, 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 session platform API client.

type RegisterXblSessionsBadRequest

type RegisterXblSessionsBadRequest struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

RegisterXblSessionsBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewRegisterXblSessionsBadRequest

func NewRegisterXblSessionsBadRequest() *RegisterXblSessionsBadRequest

NewRegisterXblSessionsBadRequest creates a RegisterXblSessionsBadRequest with default headers values

func (*RegisterXblSessionsBadRequest) Error

func (*RegisterXblSessionsBadRequest) GetPayload

func (*RegisterXblSessionsBadRequest) ToJSONString

func (o *RegisterXblSessionsBadRequest) ToJSONString() string

type RegisterXblSessionsOK

type RegisterXblSessionsOK struct {
	Payload map[string]interface{}
}

RegisterXblSessionsOK handles this case with default header values.

OK

func NewRegisterXblSessionsOK

func NewRegisterXblSessionsOK() *RegisterXblSessionsOK

NewRegisterXblSessionsOK creates a RegisterXblSessionsOK with default headers values

func (*RegisterXblSessionsOK) Error

func (o *RegisterXblSessionsOK) Error() string

func (*RegisterXblSessionsOK) GetPayload

func (o *RegisterXblSessionsOK) GetPayload() map[string]interface{}

func (*RegisterXblSessionsOK) ToJSONString

func (o *RegisterXblSessionsOK) ToJSONString() string

type RegisterXblSessionsParams

type RegisterXblSessionsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.XblUserSessionRequest
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID 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
}

RegisterXblSessionsParams contains all the parameters to send to the API endpoint for the register xbl sessions operation typically these are written to a http.Request

func NewRegisterXblSessionsParams

func NewRegisterXblSessionsParams() *RegisterXblSessionsParams

NewRegisterXblSessionsParams creates a new RegisterXblSessionsParams object with the default values initialized.

func NewRegisterXblSessionsParamsWithContext

func NewRegisterXblSessionsParamsWithContext(ctx context.Context) *RegisterXblSessionsParams

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

func NewRegisterXblSessionsParamsWithHTTPClient

func NewRegisterXblSessionsParamsWithHTTPClient(client *http.Client) *RegisterXblSessionsParams

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

func NewRegisterXblSessionsParamsWithTimeout

func NewRegisterXblSessionsParamsWithTimeout(timeout time.Duration) *RegisterXblSessionsParams

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

func (*RegisterXblSessionsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the register xbl sessions params

func (*RegisterXblSessionsParams) SetBody

SetBody adds the body to the register xbl sessions params

func (*RegisterXblSessionsParams) SetContext

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

SetContext adds the context to the register xbl sessions params

func (*RegisterXblSessionsParams) SetFlightId added in v0.63.0

func (o *RegisterXblSessionsParams) SetFlightId(flightId string)

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

func (*RegisterXblSessionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the register xbl sessions params

func (*RegisterXblSessionsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the register xbl sessions params

func (*RegisterXblSessionsParams) SetNamespace

func (o *RegisterXblSessionsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the register xbl sessions params

func (*RegisterXblSessionsParams) SetTimeout

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

SetTimeout adds the timeout to the register xbl sessions params

func (*RegisterXblSessionsParams) SetUserID

func (o *RegisterXblSessionsParams) SetUserID(userID string)

SetUserID adds the userId to the register xbl sessions params

func (*RegisterXblSessionsParams) WithBody

WithBody adds the body to the register xbl sessions params

func (*RegisterXblSessionsParams) WithContext

WithContext adds the context to the register xbl sessions params

func (*RegisterXblSessionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the register xbl sessions params

func (*RegisterXblSessionsParams) WithNamespace

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

WithNamespace adds the namespace to the register xbl sessions params

func (*RegisterXblSessionsParams) WithTimeout

WithTimeout adds the timeout to the register xbl sessions params

func (*RegisterXblSessionsParams) WithUserID

WithUserID adds the userID to the register xbl sessions params

func (*RegisterXblSessionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RegisterXblSessionsReader

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

RegisterXblSessionsReader is a Reader for the RegisterXblSessions structure.

func (*RegisterXblSessionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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