integration

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: MIT Imports: 12 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 integration API

func (*Client) GetGameServerConfig

GetGameServerConfig gets game server configuration

Get game server configuration.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:INTEGRATION", action=2 (READ)</li><li><i>Returns</i>: Game server config</li></ul>

func (*Client) GetGameServerConfigShort added in v0.8.0

func (a *Client) GetGameServerConfigShort(params *GetGameServerConfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetGameServerConfigOK, error)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateGameServerConfig

func (a *Client) UpdateGameServerConfig(params *UpdateGameServerConfigParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateGameServerConfigOK, error)

UpdateGameServerConfig updates game server configuration

Update game server configuration.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:INTEGRATION", action=4 (UPDATE)</li><li><i>Returns</i>: Game server config</li></ul>

func (*Client) UpdateGameServerConfigShort added in v0.8.0

func (a *Client) UpdateGameServerConfigShort(params *UpdateGameServerConfigParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateGameServerConfigOK, error)

type ClientService

type ClientService interface {
	GetGameServerConfig(params *GetGameServerConfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetGameServerConfigOK, *GetGameServerConfigNotFound, error)
	GetGameServerConfigShort(params *GetGameServerConfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetGameServerConfigOK, error)
	UpdateGameServerConfig(params *UpdateGameServerConfigParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateGameServerConfigOK, error)
	UpdateGameServerConfigShort(params *UpdateGameServerConfigParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateGameServerConfigOK, 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 integration API client.

type GetGameServerConfigNotFound

type GetGameServerConfigNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetGameServerConfigNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>39241</td><td>Game server config for [{namespace}] does not exist</td></tr></table>

func NewGetGameServerConfigNotFound

func NewGetGameServerConfigNotFound() *GetGameServerConfigNotFound

NewGetGameServerConfigNotFound creates a GetGameServerConfigNotFound with default headers values

func (*GetGameServerConfigNotFound) Error

func (*GetGameServerConfigNotFound) GetPayload

type GetGameServerConfigOK

type GetGameServerConfigOK struct {
	Payload *platformclientmodels.GameServerConfig
}

GetGameServerConfigOK handles this case with default header values.

successful operation

func NewGetGameServerConfigOK

func NewGetGameServerConfigOK() *GetGameServerConfigOK

NewGetGameServerConfigOK creates a GetGameServerConfigOK with default headers values

func (*GetGameServerConfigOK) Error

func (o *GetGameServerConfigOK) Error() string

func (*GetGameServerConfigOK) GetPayload

type GetGameServerConfigParams

type GetGameServerConfigParams struct {

	/*Namespace*/
	Namespace string

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

GetGameServerConfigParams contains all the parameters to send to the API endpoint for the get game server config operation typically these are written to a http.Request

func NewGetGameServerConfigParams

func NewGetGameServerConfigParams() *GetGameServerConfigParams

NewGetGameServerConfigParams creates a new GetGameServerConfigParams object with the default values initialized.

func NewGetGameServerConfigParamsWithContext

func NewGetGameServerConfigParamsWithContext(ctx context.Context) *GetGameServerConfigParams

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

func NewGetGameServerConfigParamsWithHTTPClient

func NewGetGameServerConfigParamsWithHTTPClient(client *http.Client) *GetGameServerConfigParams

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

func NewGetGameServerConfigParamsWithTimeout

func NewGetGameServerConfigParamsWithTimeout(timeout time.Duration) *GetGameServerConfigParams

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

func (*GetGameServerConfigParams) SetContext

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

SetContext adds the context to the get game server config params

func (*GetGameServerConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get game server config params

func (*GetGameServerConfigParams) SetNamespace

func (o *GetGameServerConfigParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get game server config params

func (*GetGameServerConfigParams) SetTimeout

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

SetTimeout adds the timeout to the get game server config params

func (*GetGameServerConfigParams) WithContext

WithContext adds the context to the get game server config params

func (*GetGameServerConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get game server config params

func (*GetGameServerConfigParams) WithNamespace

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

WithNamespace adds the namespace to the get game server config params

func (*GetGameServerConfigParams) WithTimeout

WithTimeout adds the timeout to the get game server config params

func (*GetGameServerConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetGameServerConfigReader

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

GetGameServerConfigReader is a Reader for the GetGameServerConfig structure.

func (*GetGameServerConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateGameServerConfigOK

type UpdateGameServerConfigOK struct {
	Payload *platformclientmodels.GameServerConfig
}

UpdateGameServerConfigOK handles this case with default header values.

successful operation

func NewUpdateGameServerConfigOK

func NewUpdateGameServerConfigOK() *UpdateGameServerConfigOK

NewUpdateGameServerConfigOK creates a UpdateGameServerConfigOK with default headers values

func (*UpdateGameServerConfigOK) Error

func (o *UpdateGameServerConfigOK) Error() string

func (*UpdateGameServerConfigOK) GetPayload

type UpdateGameServerConfigParams

type UpdateGameServerConfigParams struct {

	/*Body*/
	Body *platformclientmodels.GameServerConfig
	/*Namespace*/
	Namespace string

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

UpdateGameServerConfigParams contains all the parameters to send to the API endpoint for the update game server config operation typically these are written to a http.Request

func NewUpdateGameServerConfigParams

func NewUpdateGameServerConfigParams() *UpdateGameServerConfigParams

NewUpdateGameServerConfigParams creates a new UpdateGameServerConfigParams object with the default values initialized.

func NewUpdateGameServerConfigParamsWithContext

func NewUpdateGameServerConfigParamsWithContext(ctx context.Context) *UpdateGameServerConfigParams

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

func NewUpdateGameServerConfigParamsWithHTTPClient

func NewUpdateGameServerConfigParamsWithHTTPClient(client *http.Client) *UpdateGameServerConfigParams

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

func NewUpdateGameServerConfigParamsWithTimeout

func NewUpdateGameServerConfigParamsWithTimeout(timeout time.Duration) *UpdateGameServerConfigParams

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

func (*UpdateGameServerConfigParams) SetBody

SetBody adds the body to the update game server config params

func (*UpdateGameServerConfigParams) SetContext

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

SetContext adds the context to the update game server config params

func (*UpdateGameServerConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update game server config params

func (*UpdateGameServerConfigParams) SetNamespace

func (o *UpdateGameServerConfigParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update game server config params

func (*UpdateGameServerConfigParams) SetTimeout

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

SetTimeout adds the timeout to the update game server config params

func (*UpdateGameServerConfigParams) WithBody

WithBody adds the body to the update game server config params

func (*UpdateGameServerConfigParams) WithContext

WithContext adds the context to the update game server config params

func (*UpdateGameServerConfigParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update game server config params

func (*UpdateGameServerConfigParams) WithNamespace

WithNamespace adds the namespace to the update game server config params

func (*UpdateGameServerConfigParams) WithTimeout

WithTimeout adds the timeout to the update game server config params

func (*UpdateGameServerConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateGameServerConfigReader

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

UpdateGameServerConfigReader is a Reader for the UpdateGameServerConfig structure.

func (*UpdateGameServerConfigReader) ReadResponse

func (o *UpdateGameServerConfigReader) 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