gameserver

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: GPL-3.0 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 gameserver API

func (*Client) DownloadFile

func (a *Client) DownloadFile(params *DownloadFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DownloadFileOK, error)

DownloadFile gets download file url

Get a url to download the specified file.

func (*Client) FilesStats

func (a *Client) FilesStats(params *FilesStatsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FilesStatsOK, error)

FilesStats detaileds file stats

Detailed stats for a list of files.

func (*Client) GetGameserver

func (a *Client) GetGameserver(params *GetGameserverParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGameserverOK, error)

GetGameserver gets gameserver details

Get details about the gameserver.

func (*Client) ListFiles

func (a *Client) ListFiles(params *ListFilesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFilesOK, error)

ListFiles lists files

List all files in a directory.

func (*Client) RestartGameserver

func (a *Client) RestartGameserver(params *RestartGameserverParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestartGameserverOK, error)

RestartGameserver restarts gameserver

Restart the specified gameserver.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) StopGameserver

func (a *Client) StopGameserver(params *StopGameserverParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StopGameserverOK, error)

StopGameserver stops gameserver

Stop the specified gameserver.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DownloadFile(params *DownloadFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DownloadFileOK, error)

	FilesStats(params *FilesStatsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FilesStatsOK, error)

	GetGameserver(params *GetGameserverParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGameserverOK, error)

	ListFiles(params *ListFilesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFilesOK, error)

	RestartGameserver(params *RestartGameserverParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestartGameserverOK, error)

	StopGameserver(params *StopGameserverParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*StopGameserverOK, 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 gameserver API client.

type DownloadFileDefault

type DownloadFileDefault struct {
	Payload *models.ErrorModel
	// contains filtered or unexported fields
}
DownloadFileDefault describes a response with status code -1, with default header values.

Default error response.

func NewDownloadFileDefault

func NewDownloadFileDefault(code int) *DownloadFileDefault

NewDownloadFileDefault creates a DownloadFileDefault with default headers values

func (*DownloadFileDefault) Code

func (o *DownloadFileDefault) Code() int

Code gets the status code for the download file default response

func (*DownloadFileDefault) Error

func (o *DownloadFileDefault) Error() string

func (*DownloadFileDefault) GetPayload

func (o *DownloadFileDefault) GetPayload() *models.ErrorModel

type DownloadFileOK

type DownloadFileOK struct {
	Payload *DownloadFileOKBody
}
DownloadFileOK describes a response with status code 200, with default header values.

success response

func NewDownloadFileOK

func NewDownloadFileOK() *DownloadFileOK

NewDownloadFileOK creates a DownloadFileOK with default headers values

func (*DownloadFileOK) Error

func (o *DownloadFileOK) Error() string

func (*DownloadFileOK) GetPayload

func (o *DownloadFileOK) GetPayload() *DownloadFileOKBody

type DownloadFileOKBody

type DownloadFileOKBody struct {

	// data
	Data *DownloadFileOKBodyData `json:"data,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

DownloadFileOKBody download file o k body swagger:model DownloadFileOKBody

func (*DownloadFileOKBody) ContextValidate

func (o *DownloadFileOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this download file o k body based on the context it is used

func (*DownloadFileOKBody) MarshalBinary

func (o *DownloadFileOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DownloadFileOKBody) UnmarshalBinary

func (o *DownloadFileOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DownloadFileOKBody) Validate

func (o *DownloadFileOKBody) Validate(formats strfmt.Registry) error

Validate validates this download file o k body

type DownloadFileOKBodyData

type DownloadFileOKBodyData struct {

	// token
	Token *DownloadFileOKBodyDataToken `json:"token,omitempty"`
}

DownloadFileOKBodyData download file o k body data swagger:model DownloadFileOKBodyData

func (*DownloadFileOKBodyData) ContextValidate

func (o *DownloadFileOKBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this download file o k body data based on the context it is used

func (*DownloadFileOKBodyData) MarshalBinary

func (o *DownloadFileOKBodyData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DownloadFileOKBodyData) UnmarshalBinary

func (o *DownloadFileOKBodyData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DownloadFileOKBodyData) Validate

func (o *DownloadFileOKBodyData) Validate(formats strfmt.Registry) error

Validate validates this download file o k body data

type DownloadFileOKBodyDataToken

type DownloadFileOKBodyDataToken struct {

	// token
	Token string `json:"token,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

DownloadFileOKBodyDataToken download file o k body data token swagger:model DownloadFileOKBodyDataToken

func (*DownloadFileOKBodyDataToken) ContextValidate

func (o *DownloadFileOKBodyDataToken) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this download file o k body data token based on context it is used

func (*DownloadFileOKBodyDataToken) MarshalBinary

func (o *DownloadFileOKBodyDataToken) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DownloadFileOKBodyDataToken) UnmarshalBinary

func (o *DownloadFileOKBodyDataToken) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DownloadFileOKBodyDataToken) Validate

func (o *DownloadFileOKBodyDataToken) Validate(formats strfmt.Registry) error

Validate validates this download file o k body data token

type DownloadFileParams

type DownloadFileParams struct {

	/* File.

	   File to download
	*/
	File string

	/* ServiceID.

	   Service identifier
	*/
	ServiceID string

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

DownloadFileParams contains all the parameters to send to the API endpoint

for the download file operation.

Typically these are written to a http.Request.

func NewDownloadFileParams

func NewDownloadFileParams() *DownloadFileParams

NewDownloadFileParams creates a new DownloadFileParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDownloadFileParamsWithContext

func NewDownloadFileParamsWithContext(ctx context.Context) *DownloadFileParams

NewDownloadFileParamsWithContext creates a new DownloadFileParams object with the ability to set a context for a request.

func NewDownloadFileParamsWithHTTPClient

func NewDownloadFileParamsWithHTTPClient(client *http.Client) *DownloadFileParams

NewDownloadFileParamsWithHTTPClient creates a new DownloadFileParams object with the ability to set a custom HTTPClient for a request.

func NewDownloadFileParamsWithTimeout

func NewDownloadFileParamsWithTimeout(timeout time.Duration) *DownloadFileParams

NewDownloadFileParamsWithTimeout creates a new DownloadFileParams object with the ability to set a timeout on a request.

func (*DownloadFileParams) SetContext

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

SetContext adds the context to the download file params

func (*DownloadFileParams) SetDefaults

func (o *DownloadFileParams) SetDefaults()

SetDefaults hydrates default values in the download file params (not the query body).

All values with no default are reset to their zero value.

func (*DownloadFileParams) SetFile

func (o *DownloadFileParams) SetFile(file string)

SetFile adds the file to the download file params

func (*DownloadFileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the download file params

func (*DownloadFileParams) SetServiceID

func (o *DownloadFileParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the download file params

func (*DownloadFileParams) SetTimeout

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

SetTimeout adds the timeout to the download file params

func (*DownloadFileParams) WithContext

WithContext adds the context to the download file params

func (*DownloadFileParams) WithDefaults

func (o *DownloadFileParams) WithDefaults() *DownloadFileParams

WithDefaults hydrates default values in the download file params (not the query body).

All values with no default are reset to their zero value.

func (*DownloadFileParams) WithFile

func (o *DownloadFileParams) WithFile(file string) *DownloadFileParams

WithFile adds the file to the download file params

func (*DownloadFileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the download file params

func (*DownloadFileParams) WithServiceID

func (o *DownloadFileParams) WithServiceID(serviceID string) *DownloadFileParams

WithServiceID adds the serviceID to the download file params

func (*DownloadFileParams) WithTimeout

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

WithTimeout adds the timeout to the download file params

func (*DownloadFileParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DownloadFileReader

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

DownloadFileReader is a Reader for the DownloadFile structure.

func (*DownloadFileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DownloadFileServiceUnavailable

type DownloadFileServiceUnavailable struct {
	Payload *models.ErrorModel
}
DownloadFileServiceUnavailable describes a response with status code 503, with default header values.

Maintenance. API is currently not available. Please come back in a few minutes and try it again.

func NewDownloadFileServiceUnavailable

func NewDownloadFileServiceUnavailable() *DownloadFileServiceUnavailable

NewDownloadFileServiceUnavailable creates a DownloadFileServiceUnavailable with default headers values

func (*DownloadFileServiceUnavailable) Error

func (*DownloadFileServiceUnavailable) GetPayload

type DownloadFileTooManyRequests

type DownloadFileTooManyRequests struct {
	Payload *models.ErrorModel
}
DownloadFileTooManyRequests describes a response with status code 429, with default header values.

The rate limit has been exceeded. Please contact our support if you have a legit reason get a higher rate limit.

func NewDownloadFileTooManyRequests

func NewDownloadFileTooManyRequests() *DownloadFileTooManyRequests

NewDownloadFileTooManyRequests creates a DownloadFileTooManyRequests with default headers values

func (*DownloadFileTooManyRequests) Error

func (*DownloadFileTooManyRequests) GetPayload

type DownloadFileUnauthorized

type DownloadFileUnauthorized struct {
	Payload *models.ErrorModel
}
DownloadFileUnauthorized describes a response with status code 401, with default header values.

The provided access token is not valid (anymore).

func NewDownloadFileUnauthorized

func NewDownloadFileUnauthorized() *DownloadFileUnauthorized

NewDownloadFileUnauthorized creates a DownloadFileUnauthorized with default headers values

func (*DownloadFileUnauthorized) Error

func (o *DownloadFileUnauthorized) Error() string

func (*DownloadFileUnauthorized) GetPayload

func (o *DownloadFileUnauthorized) GetPayload() *models.ErrorModel

type FilesStatsDefault

type FilesStatsDefault struct {
	Payload *models.ErrorModel
	// contains filtered or unexported fields
}
FilesStatsDefault describes a response with status code -1, with default header values.

Default error response.

func NewFilesStatsDefault

func NewFilesStatsDefault(code int) *FilesStatsDefault

NewFilesStatsDefault creates a FilesStatsDefault with default headers values

func (*FilesStatsDefault) Code

func (o *FilesStatsDefault) Code() int

Code gets the status code for the files stats default response

func (*FilesStatsDefault) Error

func (o *FilesStatsDefault) Error() string

func (*FilesStatsDefault) GetPayload

func (o *FilesStatsDefault) GetPayload() *models.ErrorModel

type FilesStatsOK

type FilesStatsOK struct {
	Payload *FilesStatsOKBody
}
FilesStatsOK describes a response with status code 200, with default header values.

success response

func NewFilesStatsOK

func NewFilesStatsOK() *FilesStatsOK

NewFilesStatsOK creates a FilesStatsOK with default headers values

func (*FilesStatsOK) Error

func (o *FilesStatsOK) Error() string

func (*FilesStatsOK) GetPayload

func (o *FilesStatsOK) GetPayload() *FilesStatsOKBody

type FilesStatsOKBody

type FilesStatsOKBody struct {

	// data
	Data *FilesStatsOKBodyData `json:"data,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

FilesStatsOKBody files stats o k body swagger:model FilesStatsOKBody

func (*FilesStatsOKBody) ContextValidate

func (o *FilesStatsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this files stats o k body based on the context it is used

func (*FilesStatsOKBody) MarshalBinary

func (o *FilesStatsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FilesStatsOKBody) UnmarshalBinary

func (o *FilesStatsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FilesStatsOKBody) Validate

func (o *FilesStatsOKBody) Validate(formats strfmt.Registry) error

Validate validates this files stats o k body

type FilesStatsOKBodyData

type FilesStatsOKBodyData struct {

	// entries
	Entries map[string]FilesStatsOKBodyDataEntriesAnon `json:"entries,omitempty"`
}

FilesStatsOKBodyData files stats o k body data swagger:model FilesStatsOKBodyData

func (*FilesStatsOKBodyData) ContextValidate

func (o *FilesStatsOKBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this files stats o k body data based on the context it is used

func (*FilesStatsOKBodyData) MarshalBinary

func (o *FilesStatsOKBodyData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FilesStatsOKBodyData) UnmarshalBinary

func (o *FilesStatsOKBodyData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FilesStatsOKBodyData) Validate

func (o *FilesStatsOKBodyData) Validate(formats strfmt.Registry) error

Validate validates this files stats o k body data

type FilesStatsOKBodyDataEntriesAnon added in v0.0.4

type FilesStatsOKBodyDataEntriesAnon struct {

	// accessed at
	AccessedAt int32 `json:"accessed_at,omitempty"`

	// chmod
	Chmod string `json:"chmod,omitempty"`

	// created at
	CreatedAt int32 `json:"created_at,omitempty"`

	// group
	Group string `json:"group,omitempty"`

	// modified at
	ModifiedAt int32 `json:"modified_at,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`

	// path
	Path string `json:"path,omitempty"`

	// size
	Size int32 `json:"size,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

FilesStatsOKBodyDataEntriesAnon files stats o k body data entries anon swagger:model FilesStatsOKBodyDataEntriesAnon

func (*FilesStatsOKBodyDataEntriesAnon) ContextValidate added in v0.0.4

func (o *FilesStatsOKBodyDataEntriesAnon) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this files stats o k body data entries anon based on context it is used

func (*FilesStatsOKBodyDataEntriesAnon) MarshalBinary added in v0.0.4

func (o *FilesStatsOKBodyDataEntriesAnon) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FilesStatsOKBodyDataEntriesAnon) UnmarshalBinary added in v0.0.4

func (o *FilesStatsOKBodyDataEntriesAnon) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FilesStatsOKBodyDataEntriesAnon) Validate added in v0.0.4

Validate validates this files stats o k body data entries anon

type FilesStatsParams

type FilesStatsParams struct {

	/* Files0.

	   File to stat
	*/
	Files0 string

	/* ServiceID.

	   Service identifier
	*/
	ServiceID string

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

FilesStatsParams contains all the parameters to send to the API endpoint

for the files stats operation.

Typically these are written to a http.Request.

func NewFilesStatsParams

func NewFilesStatsParams() *FilesStatsParams

NewFilesStatsParams creates a new FilesStatsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewFilesStatsParamsWithContext

func NewFilesStatsParamsWithContext(ctx context.Context) *FilesStatsParams

NewFilesStatsParamsWithContext creates a new FilesStatsParams object with the ability to set a context for a request.

func NewFilesStatsParamsWithHTTPClient

func NewFilesStatsParamsWithHTTPClient(client *http.Client) *FilesStatsParams

NewFilesStatsParamsWithHTTPClient creates a new FilesStatsParams object with the ability to set a custom HTTPClient for a request.

func NewFilesStatsParamsWithTimeout

func NewFilesStatsParamsWithTimeout(timeout time.Duration) *FilesStatsParams

NewFilesStatsParamsWithTimeout creates a new FilesStatsParams object with the ability to set a timeout on a request.

func (*FilesStatsParams) SetContext

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

SetContext adds the context to the files stats params

func (*FilesStatsParams) SetDefaults

func (o *FilesStatsParams) SetDefaults()

SetDefaults hydrates default values in the files stats params (not the query body).

All values with no default are reset to their zero value.

func (*FilesStatsParams) SetFiles0 added in v0.0.3

func (o *FilesStatsParams) SetFiles0(files0 string)

SetFiles0 adds the files0 to the files stats params

func (*FilesStatsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the files stats params

func (*FilesStatsParams) SetServiceID

func (o *FilesStatsParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the files stats params

func (*FilesStatsParams) SetTimeout

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

SetTimeout adds the timeout to the files stats params

func (*FilesStatsParams) WithContext

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

WithContext adds the context to the files stats params

func (*FilesStatsParams) WithDefaults

func (o *FilesStatsParams) WithDefaults() *FilesStatsParams

WithDefaults hydrates default values in the files stats params (not the query body).

All values with no default are reset to their zero value.

func (*FilesStatsParams) WithFiles0 added in v0.0.3

func (o *FilesStatsParams) WithFiles0(files0 string) *FilesStatsParams

WithFiles0 adds the files0 to the files stats params

func (*FilesStatsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the files stats params

func (*FilesStatsParams) WithServiceID

func (o *FilesStatsParams) WithServiceID(serviceID string) *FilesStatsParams

WithServiceID adds the serviceID to the files stats params

func (*FilesStatsParams) WithTimeout

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

WithTimeout adds the timeout to the files stats params

func (*FilesStatsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type FilesStatsReader

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

FilesStatsReader is a Reader for the FilesStats structure.

func (*FilesStatsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type FilesStatsServiceUnavailable

type FilesStatsServiceUnavailable struct {
	Payload *models.ErrorModel
}
FilesStatsServiceUnavailable describes a response with status code 503, with default header values.

Maintenance. API is currently not available. Please come back in a few minutes and try it again.

func NewFilesStatsServiceUnavailable

func NewFilesStatsServiceUnavailable() *FilesStatsServiceUnavailable

NewFilesStatsServiceUnavailable creates a FilesStatsServiceUnavailable with default headers values

func (*FilesStatsServiceUnavailable) Error

func (*FilesStatsServiceUnavailable) GetPayload

type FilesStatsTooManyRequests

type FilesStatsTooManyRequests struct {
	Payload *models.ErrorModel
}
FilesStatsTooManyRequests describes a response with status code 429, with default header values.

The rate limit has been exceeded. Please contact our support if you have a legit reason get a higher rate limit.

func NewFilesStatsTooManyRequests

func NewFilesStatsTooManyRequests() *FilesStatsTooManyRequests

NewFilesStatsTooManyRequests creates a FilesStatsTooManyRequests with default headers values

func (*FilesStatsTooManyRequests) Error

func (o *FilesStatsTooManyRequests) Error() string

func (*FilesStatsTooManyRequests) GetPayload

func (o *FilesStatsTooManyRequests) GetPayload() *models.ErrorModel

type FilesStatsUnauthorized

type FilesStatsUnauthorized struct {
	Payload *models.ErrorModel
}
FilesStatsUnauthorized describes a response with status code 401, with default header values.

The provided access token is not valid (anymore).

func NewFilesStatsUnauthorized

func NewFilesStatsUnauthorized() *FilesStatsUnauthorized

NewFilesStatsUnauthorized creates a FilesStatsUnauthorized with default headers values

func (*FilesStatsUnauthorized) Error

func (o *FilesStatsUnauthorized) Error() string

func (*FilesStatsUnauthorized) GetPayload

func (o *FilesStatsUnauthorized) GetPayload() *models.ErrorModel

type GetGameserverDefault

type GetGameserverDefault struct {
	Payload *models.ErrorModel
	// contains filtered or unexported fields
}
GetGameserverDefault describes a response with status code -1, with default header values.

Default error response.

func NewGetGameserverDefault

func NewGetGameserverDefault(code int) *GetGameserverDefault

NewGetGameserverDefault creates a GetGameserverDefault with default headers values

func (*GetGameserverDefault) Code

func (o *GetGameserverDefault) Code() int

Code gets the status code for the get gameserver default response

func (*GetGameserverDefault) Error

func (o *GetGameserverDefault) Error() string

func (*GetGameserverDefault) GetPayload

func (o *GetGameserverDefault) GetPayload() *models.ErrorModel

type GetGameserverOK

type GetGameserverOK struct {
	Payload *GetGameserverOKBody
}
GetGameserverOK describes a response with status code 200, with default header values.

success response

func NewGetGameserverOK

func NewGetGameserverOK() *GetGameserverOK

NewGetGameserverOK creates a GetGameserverOK with default headers values

func (*GetGameserverOK) Error

func (o *GetGameserverOK) Error() string

func (*GetGameserverOK) GetPayload

func (o *GetGameserverOK) GetPayload() *GetGameserverOKBody

type GetGameserverOKBody

type GetGameserverOKBody struct {

	// data
	Data *GetGameserverOKBodyData `json:"data,omitempty"`

	// last status change
	LastStatusChange int32 `json:"last_status_change,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

GetGameserverOKBody get gameserver o k body swagger:model GetGameserverOKBody

func (*GetGameserverOKBody) ContextValidate

func (o *GetGameserverOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get gameserver o k body based on the context it is used

func (*GetGameserverOKBody) MarshalBinary

func (o *GetGameserverOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetGameserverOKBody) UnmarshalBinary

func (o *GetGameserverOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetGameserverOKBody) Validate

func (o *GetGameserverOKBody) Validate(formats strfmt.Registry) error

Validate validates this get gameserver o k body

type GetGameserverOKBodyData

type GetGameserverOKBodyData struct {

	// gameserver
	Gameserver *GetGameserverOKBodyDataGameserver `json:"gameserver,omitempty"`
}

GetGameserverOKBodyData get gameserver o k body data swagger:model GetGameserverOKBodyData

func (*GetGameserverOKBodyData) ContextValidate

func (o *GetGameserverOKBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get gameserver o k body data based on the context it is used

func (*GetGameserverOKBodyData) MarshalBinary

func (o *GetGameserverOKBodyData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetGameserverOKBodyData) UnmarshalBinary

func (o *GetGameserverOKBodyData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyData) Validate

func (o *GetGameserverOKBodyData) Validate(formats strfmt.Registry) error

Validate validates this get gameserver o k body data

type GetGameserverOKBodyDataGameserver

type GetGameserverOKBodyDataGameserver struct {

	// credentials
	Credentials *GetGameserverOKBodyDataGameserverCredentials `json:"credentials,omitempty"`

	// game
	Game string `json:"game,omitempty"`

	// game human
	GameHuman string `json:"game_human,omitempty"`

	// game specific
	GameSpecific *GetGameserverOKBodyDataGameserverGameSpecific `json:"game_specific,omitempty"`

	// hostsystems
	Hostsystems *GetGameserverOKBodyDataGameserverHostsystems `json:"hostsystems,omitempty"`

	// ip
	IP string `json:"ip,omitempty"`

	// ipv6
	IPV6 string `json:"ipv6,omitempty"`

	// label
	Label string `json:"label,omitempty"`

	// location
	Location string `json:"location,omitempty"`

	// location id
	LocationID int32 `json:"location_id,omitempty"`

	// managed root
	ManagedRoot bool `json:"managed_root,omitempty"`

	// memory
	Memory string `json:"memory,omitempty"`

	// memory mb
	MemoryMb int32 `json:"memory_mb,omitempty"`

	// minecraft mode
	MinecraftMode bool `json:"minecraft_mode,omitempty"`

	// modpacks
	Modpacks *GetGameserverOKBodyDataGameserverModpacks `json:"modpacks,omitempty"`

	// must be started
	MustBeStarted bool `json:"must_be_started,omitempty"`

	// port
	Port int32 `json:"port,omitempty"`

	// query
	Query *GetGameserverOKBodyDataGameserverQuery `json:"query,omitempty"`

	// query port
	QueryPort int32 `json:"query_port,omitempty"`

	// quota
	Quota *GetGameserverOKBodyDataGameserverQuota `json:"quota,omitempty"`

	// rcon port
	RconPort int32 `json:"rcon_port,omitempty"`

	// service id
	ServiceID int32 `json:"service_id,omitempty"`

	// settings
	Settings *GetGameserverOKBodyDataGameserverSettings `json:"settings,omitempty"`

	// slots
	Slots int32 `json:"slots,omitempty"`

	// status
	Status string `json:"status,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// user id
	UserID int32 `json:"user_id,omitempty"`

	// username
	Username string `json:"username,omitempty"`

	// websocket token
	WebsocketToken string `json:"websocket_token,omitempty"`
}

GetGameserverOKBodyDataGameserver get gameserver o k body data gameserver swagger:model GetGameserverOKBodyDataGameserver

func (*GetGameserverOKBodyDataGameserver) ContextValidate

func (o *GetGameserverOKBodyDataGameserver) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get gameserver o k body data gameserver based on the context it is used

func (*GetGameserverOKBodyDataGameserver) MarshalBinary

func (o *GetGameserverOKBodyDataGameserver) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserver) UnmarshalBinary

func (o *GetGameserverOKBodyDataGameserver) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserver) Validate

Validate validates this get gameserver o k body data gameserver

type GetGameserverOKBodyDataGameserverCredentials

type GetGameserverOKBodyDataGameserverCredentials struct {

	// ftp
	Ftp *GetGameserverOKBodyDataGameserverCredentialsFtp `json:"ftp,omitempty"`

	// mysql
	Mysql *GetGameserverOKBodyDataGameserverCredentialsMysql `json:"mysql,omitempty"`
}

GetGameserverOKBodyDataGameserverCredentials get gameserver o k body data gameserver credentials swagger:model GetGameserverOKBodyDataGameserverCredentials

func (*GetGameserverOKBodyDataGameserverCredentials) ContextValidate

ContextValidate validate this get gameserver o k body data gameserver credentials based on the context it is used

func (*GetGameserverOKBodyDataGameserverCredentials) MarshalBinary

MarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverCredentials) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverCredentials) Validate

Validate validates this get gameserver o k body data gameserver credentials

type GetGameserverOKBodyDataGameserverCredentialsFtp

type GetGameserverOKBodyDataGameserverCredentialsFtp struct {

	// hostname
	Hostname string `json:"hostname,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// port
	Port int32 `json:"port,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

GetGameserverOKBodyDataGameserverCredentialsFtp get gameserver o k body data gameserver credentials ftp swagger:model GetGameserverOKBodyDataGameserverCredentialsFtp

func (*GetGameserverOKBodyDataGameserverCredentialsFtp) ContextValidate

ContextValidate validates this get gameserver o k body data gameserver credentials ftp based on context it is used

func (*GetGameserverOKBodyDataGameserverCredentialsFtp) MarshalBinary

MarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverCredentialsFtp) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverCredentialsFtp) Validate

Validate validates this get gameserver o k body data gameserver credentials ftp

type GetGameserverOKBodyDataGameserverCredentialsMysql

type GetGameserverOKBodyDataGameserverCredentialsMysql struct {

	// database
	Database string `json:"database,omitempty"`

	// hostname
	Hostname string `json:"hostname,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// port
	Port int32 `json:"port,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

GetGameserverOKBodyDataGameserverCredentialsMysql get gameserver o k body data gameserver credentials mysql swagger:model GetGameserverOKBodyDataGameserverCredentialsMysql

func (*GetGameserverOKBodyDataGameserverCredentialsMysql) ContextValidate

ContextValidate validates this get gameserver o k body data gameserver credentials mysql based on context it is used

func (*GetGameserverOKBodyDataGameserverCredentialsMysql) MarshalBinary

MarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverCredentialsMysql) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverCredentialsMysql) Validate

Validate validates this get gameserver o k body data gameserver credentials mysql

type GetGameserverOKBodyDataGameserverGameSpecific

type GetGameserverOKBodyDataGameserverGameSpecific struct {

	// config files
	ConfigFiles []string `json:"config_files"`

	// features
	Features *GetGameserverOKBodyDataGameserverGameSpecificFeatures `json:"features,omitempty"`

	// last update
	LastUpdate string `json:"last_update,omitempty"`

	// log files
	LogFiles []string `json:"log_files"`

	// path
	Path string `json:"path,omitempty"`

	// path available
	PathAvailable bool `json:"path_available,omitempty"`

	// update status
	UpdateStatus string `json:"update_status,omitempty"`
}

GetGameserverOKBodyDataGameserverGameSpecific get gameserver o k body data gameserver game specific swagger:model GetGameserverOKBodyDataGameserverGameSpecific

func (*GetGameserverOKBodyDataGameserverGameSpecific) ContextValidate

ContextValidate validate this get gameserver o k body data gameserver game specific based on the context it is used

func (*GetGameserverOKBodyDataGameserverGameSpecific) MarshalBinary

MarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverGameSpecific) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverGameSpecific) Validate

Validate validates this get gameserver o k body data gameserver game specific

type GetGameserverOKBodyDataGameserverGameSpecificFeatures

type GetGameserverOKBodyDataGameserverGameSpecificFeatures struct {

	// has application server
	HasApplicationServer bool `json:"has_application_server,omitempty"`

	// has backups
	HasBackups bool `json:"has_backups,omitempty"`

	// has container websocket
	HasContainerWebsocket bool `json:"has_container_websocket,omitempty"`

	// has database
	HasDatabase bool `json:"has_database,omitempty"`

	// has expert mode
	HasExpertMode bool `json:"has_expert_mode,omitempty"`

	// has file browser
	HasFileBrowser bool `json:"has_file_browser,omitempty"`

	// has ftp
	HasFtp bool `json:"has_ftp,omitempty"`

	// has plugin system
	HasPluginSystem bool `json:"has_plugin_system,omitempty"`

	// has rcon
	HasRcon bool `json:"has_rcon,omitempty"`

	// has restart message support
	HasRestartMessageSupport bool `json:"has_restart_message_support,omitempty"`

	// has world backups
	HasWorldBackups bool `json:"has_world_backups,omitempty"`
}

GetGameserverOKBodyDataGameserverGameSpecificFeatures get gameserver o k body data gameserver game specific features swagger:model GetGameserverOKBodyDataGameserverGameSpecificFeatures

func (*GetGameserverOKBodyDataGameserverGameSpecificFeatures) ContextValidate

ContextValidate validates this get gameserver o k body data gameserver game specific features based on context it is used

func (*GetGameserverOKBodyDataGameserverGameSpecificFeatures) MarshalBinary

MarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverGameSpecificFeatures) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverGameSpecificFeatures) Validate

Validate validates this get gameserver o k body data gameserver game specific features

type GetGameserverOKBodyDataGameserverHostsystems

type GetGameserverOKBodyDataGameserverHostsystems struct {

	// linux
	Linux *GetGameserverOKBodyDataGameserverHostsystemsLinux `json:"linux,omitempty"`
}

GetGameserverOKBodyDataGameserverHostsystems get gameserver o k body data gameserver hostsystems swagger:model GetGameserverOKBodyDataGameserverHostsystems

func (*GetGameserverOKBodyDataGameserverHostsystems) ContextValidate

ContextValidate validate this get gameserver o k body data gameserver hostsystems based on the context it is used

func (*GetGameserverOKBodyDataGameserverHostsystems) MarshalBinary

MarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverHostsystems) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverHostsystems) Validate

Validate validates this get gameserver o k body data gameserver hostsystems

type GetGameserverOKBodyDataGameserverHostsystemsLinux

type GetGameserverOKBodyDataGameserverHostsystemsLinux struct {

	// hostname
	Hostname string `json:"hostname,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

GetGameserverOKBodyDataGameserverHostsystemsLinux get gameserver o k body data gameserver hostsystems linux swagger:model GetGameserverOKBodyDataGameserverHostsystemsLinux

func (*GetGameserverOKBodyDataGameserverHostsystemsLinux) ContextValidate

ContextValidate validates this get gameserver o k body data gameserver hostsystems linux based on context it is used

func (*GetGameserverOKBodyDataGameserverHostsystemsLinux) MarshalBinary

MarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverHostsystemsLinux) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverHostsystemsLinux) Validate

Validate validates this get gameserver o k body data gameserver hostsystems linux

type GetGameserverOKBodyDataGameserverModpacks

type GetGameserverOKBodyDataGameserverModpacks struct {

	// mcrdns
	Mcrdns *GetGameserverOKBodyDataGameserverModpacksMcrdns `json:"mcrdns,omitempty"`
}

GetGameserverOKBodyDataGameserverModpacks get gameserver o k body data gameserver modpacks swagger:model GetGameserverOKBodyDataGameserverModpacks

func (*GetGameserverOKBodyDataGameserverModpacks) ContextValidate

ContextValidate validate this get gameserver o k body data gameserver modpacks based on the context it is used

func (*GetGameserverOKBodyDataGameserverModpacks) MarshalBinary

func (o *GetGameserverOKBodyDataGameserverModpacks) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverModpacks) UnmarshalBinary

func (o *GetGameserverOKBodyDataGameserverModpacks) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverModpacks) Validate

Validate validates this get gameserver o k body data gameserver modpacks

type GetGameserverOKBodyDataGameserverModpacksMcrdns

type GetGameserverOKBodyDataGameserverModpacksMcrdns struct {

	// game version
	GameVersion string `json:"game_version,omitempty"`

	// modpack version
	ModpackVersion string `json:"modpack_version,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

GetGameserverOKBodyDataGameserverModpacksMcrdns get gameserver o k body data gameserver modpacks mcrdns swagger:model GetGameserverOKBodyDataGameserverModpacksMcrdns

func (*GetGameserverOKBodyDataGameserverModpacksMcrdns) ContextValidate

ContextValidate validates this get gameserver o k body data gameserver modpacks mcrdns based on context it is used

func (*GetGameserverOKBodyDataGameserverModpacksMcrdns) MarshalBinary

MarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverModpacksMcrdns) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverModpacksMcrdns) Validate

Validate validates this get gameserver o k body data gameserver modpacks mcrdns

type GetGameserverOKBodyDataGameserverQuery

type GetGameserverOKBodyDataGameserverQuery struct {

	// connect ip
	ConnectIP string `json:"connect_ip,omitempty"`

	// map
	Map string `json:"map,omitempty"`

	// player current
	PlayerCurrent int32 `json:"player_current,omitempty"`

	// player max
	PlayerMax int32 `json:"player_max,omitempty"`

	// players
	Players []*GetGameserverOKBodyDataGameserverQueryPlayersItems0 `json:"players"`

	// server name
	ServerName string `json:"server_name,omitempty"`

	// version
	Version string `json:"version,omitempty"`
}

GetGameserverOKBodyDataGameserverQuery get gameserver o k body data gameserver query swagger:model GetGameserverOKBodyDataGameserverQuery

func (*GetGameserverOKBodyDataGameserverQuery) ContextValidate

ContextValidate validate this get gameserver o k body data gameserver query based on the context it is used

func (*GetGameserverOKBodyDataGameserverQuery) MarshalBinary

func (o *GetGameserverOKBodyDataGameserverQuery) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverQuery) UnmarshalBinary

func (o *GetGameserverOKBodyDataGameserverQuery) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverQuery) Validate

Validate validates this get gameserver o k body data gameserver query

type GetGameserverOKBodyDataGameserverQueryPlayersItems0

type GetGameserverOKBodyDataGameserverQueryPlayersItems0 struct {

	// bot
	Bot bool `json:"bot,omitempty"`

	// deaths
	Deaths int32 `json:"deaths,omitempty"`

	// frags
	Frags int32 `json:"frags,omitempty"`

	// id
	ID int32 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// ping
	Ping int32 `json:"ping,omitempty"`

	// score
	Score int32 `json:"score,omitempty"`

	// time
	Time int32 `json:"time,omitempty"`
}

GetGameserverOKBodyDataGameserverQueryPlayersItems0 get gameserver o k body data gameserver query players items0 swagger:model GetGameserverOKBodyDataGameserverQueryPlayersItems0

func (*GetGameserverOKBodyDataGameserverQueryPlayersItems0) ContextValidate

ContextValidate validates this get gameserver o k body data gameserver query players items0 based on context it is used

func (*GetGameserverOKBodyDataGameserverQueryPlayersItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverQueryPlayersItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverQueryPlayersItems0) Validate

Validate validates this get gameserver o k body data gameserver query players items0

type GetGameserverOKBodyDataGameserverQuota

type GetGameserverOKBodyDataGameserverQuota struct {

	// block hardlimit
	BlockHardlimit int32 `json:"block_hardlimit,omitempty"`

	// block softlimit
	BlockSoftlimit int32 `json:"block_softlimit,omitempty"`

	// block usage
	BlockUsage int32 `json:"block_usage,omitempty"`

	// file hardlimit
	FileHardlimit int32 `json:"file_hardlimit,omitempty"`

	// file softlimit
	FileSoftlimit int32 `json:"file_softlimit,omitempty"`

	// file usage
	FileUsage int32 `json:"file_usage,omitempty"`
}

GetGameserverOKBodyDataGameserverQuota get gameserver o k body data gameserver quota swagger:model GetGameserverOKBodyDataGameserverQuota

func (*GetGameserverOKBodyDataGameserverQuota) ContextValidate

ContextValidate validates this get gameserver o k body data gameserver quota based on context it is used

func (*GetGameserverOKBodyDataGameserverQuota) MarshalBinary

func (o *GetGameserverOKBodyDataGameserverQuota) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverQuota) UnmarshalBinary

func (o *GetGameserverOKBodyDataGameserverQuota) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverQuota) Validate

Validate validates this get gameserver o k body data gameserver quota

type GetGameserverOKBodyDataGameserverSettings

type GetGameserverOKBodyDataGameserverSettings struct {

	// base
	Base *GetGameserverOKBodyDataGameserverSettingsBase `json:"base,omitempty"`

	// config
	Config map[string]string `json:"config,omitempty"`

	// gameini
	Gameini map[string]string `json:"gameini,omitempty"`

	// general
	General map[string]string `json:"general,omitempty"`

	// start param
	StartParam map[string]string `json:"start-param,omitempty"`
}

GetGameserverOKBodyDataGameserverSettings get gameserver o k body data gameserver settings swagger:model GetGameserverOKBodyDataGameserverSettings

func (*GetGameserverOKBodyDataGameserverSettings) ContextValidate

ContextValidate validate this get gameserver o k body data gameserver settings based on the context it is used

func (*GetGameserverOKBodyDataGameserverSettings) MarshalBinary

func (o *GetGameserverOKBodyDataGameserverSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverSettings) UnmarshalBinary

func (o *GetGameserverOKBodyDataGameserverSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverSettings) Validate

Validate validates this get gameserver o k body data gameserver settings

type GetGameserverOKBodyDataGameserverSettingsBase

type GetGameserverOKBodyDataGameserverSettingsBase struct {

	// dailyrestart
	Dailyrestart string `json:"dailyrestart,omitempty"`
}

GetGameserverOKBodyDataGameserverSettingsBase get gameserver o k body data gameserver settings base swagger:model GetGameserverOKBodyDataGameserverSettingsBase

func (*GetGameserverOKBodyDataGameserverSettingsBase) ContextValidate

ContextValidate validates this get gameserver o k body data gameserver settings base based on context it is used

func (*GetGameserverOKBodyDataGameserverSettingsBase) MarshalBinary

MarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverSettingsBase) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetGameserverOKBodyDataGameserverSettingsBase) Validate

Validate validates this get gameserver o k body data gameserver settings base

type GetGameserverParams

type GetGameserverParams struct {

	/* ServiceID.

	   Service identifier
	*/
	ServiceID string

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

GetGameserverParams contains all the parameters to send to the API endpoint

for the get gameserver operation.

Typically these are written to a http.Request.

func NewGetGameserverParams

func NewGetGameserverParams() *GetGameserverParams

NewGetGameserverParams creates a new GetGameserverParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetGameserverParamsWithContext

func NewGetGameserverParamsWithContext(ctx context.Context) *GetGameserverParams

NewGetGameserverParamsWithContext creates a new GetGameserverParams object with the ability to set a context for a request.

func NewGetGameserverParamsWithHTTPClient

func NewGetGameserverParamsWithHTTPClient(client *http.Client) *GetGameserverParams

NewGetGameserverParamsWithHTTPClient creates a new GetGameserverParams object with the ability to set a custom HTTPClient for a request.

func NewGetGameserverParamsWithTimeout

func NewGetGameserverParamsWithTimeout(timeout time.Duration) *GetGameserverParams

NewGetGameserverParamsWithTimeout creates a new GetGameserverParams object with the ability to set a timeout on a request.

func (*GetGameserverParams) SetContext

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

SetContext adds the context to the get gameserver params

func (*GetGameserverParams) SetDefaults

func (o *GetGameserverParams) SetDefaults()

SetDefaults hydrates default values in the get gameserver params (not the query body).

All values with no default are reset to their zero value.

func (*GetGameserverParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get gameserver params

func (*GetGameserverParams) SetServiceID

func (o *GetGameserverParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the get gameserver params

func (*GetGameserverParams) SetTimeout

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

SetTimeout adds the timeout to the get gameserver params

func (*GetGameserverParams) WithContext

WithContext adds the context to the get gameserver params

func (*GetGameserverParams) WithDefaults

func (o *GetGameserverParams) WithDefaults() *GetGameserverParams

WithDefaults hydrates default values in the get gameserver params (not the query body).

All values with no default are reset to their zero value.

func (*GetGameserverParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get gameserver params

func (*GetGameserverParams) WithServiceID

func (o *GetGameserverParams) WithServiceID(serviceID string) *GetGameserverParams

WithServiceID adds the serviceID to the get gameserver params

func (*GetGameserverParams) WithTimeout

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

WithTimeout adds the timeout to the get gameserver params

func (*GetGameserverParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetGameserverReader

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

GetGameserverReader is a Reader for the GetGameserver structure.

func (*GetGameserverReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetGameserverServiceUnavailable

type GetGameserverServiceUnavailable struct {
	Payload *models.ErrorModel
}
GetGameserverServiceUnavailable describes a response with status code 503, with default header values.

Maintenance. API is currently not available. Please come back in a few minutes and try it again.

func NewGetGameserverServiceUnavailable

func NewGetGameserverServiceUnavailable() *GetGameserverServiceUnavailable

NewGetGameserverServiceUnavailable creates a GetGameserverServiceUnavailable with default headers values

func (*GetGameserverServiceUnavailable) Error

func (*GetGameserverServiceUnavailable) GetPayload

type GetGameserverTooManyRequests

type GetGameserverTooManyRequests struct {
	Payload *models.ErrorModel
}
GetGameserverTooManyRequests describes a response with status code 429, with default header values.

The rate limit has been exceeded. Please contact our support if you have a legit reason get a higher rate limit.

func NewGetGameserverTooManyRequests

func NewGetGameserverTooManyRequests() *GetGameserverTooManyRequests

NewGetGameserverTooManyRequests creates a GetGameserverTooManyRequests with default headers values

func (*GetGameserverTooManyRequests) Error

func (*GetGameserverTooManyRequests) GetPayload

type GetGameserverUnauthorized

type GetGameserverUnauthorized struct {
	Payload *models.ErrorModel
}
GetGameserverUnauthorized describes a response with status code 401, with default header values.

The provided access token is not valid (anymore).

func NewGetGameserverUnauthorized

func NewGetGameserverUnauthorized() *GetGameserverUnauthorized

NewGetGameserverUnauthorized creates a GetGameserverUnauthorized with default headers values

func (*GetGameserverUnauthorized) Error

func (o *GetGameserverUnauthorized) Error() string

func (*GetGameserverUnauthorized) GetPayload

func (o *GetGameserverUnauthorized) GetPayload() *models.ErrorModel

type ListFilesDefault

type ListFilesDefault struct {
	Payload *models.ErrorModel
	// contains filtered or unexported fields
}
ListFilesDefault describes a response with status code -1, with default header values.

Default error response.

func NewListFilesDefault

func NewListFilesDefault(code int) *ListFilesDefault

NewListFilesDefault creates a ListFilesDefault with default headers values

func (*ListFilesDefault) Code

func (o *ListFilesDefault) Code() int

Code gets the status code for the list files default response

func (*ListFilesDefault) Error

func (o *ListFilesDefault) Error() string

func (*ListFilesDefault) GetPayload

func (o *ListFilesDefault) GetPayload() *models.ErrorModel

type ListFilesOK

type ListFilesOK struct {
	Payload *ListFilesOKBody
}
ListFilesOK describes a response with status code 200, with default header values.

success response

func NewListFilesOK

func NewListFilesOK() *ListFilesOK

NewListFilesOK creates a ListFilesOK with default headers values

func (*ListFilesOK) Error

func (o *ListFilesOK) Error() string

func (*ListFilesOK) GetPayload

func (o *ListFilesOK) GetPayload() *ListFilesOKBody

type ListFilesOKBody

type ListFilesOKBody struct {

	// data
	Data *ListFilesOKBodyData `json:"data,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

ListFilesOKBody list files o k body swagger:model ListFilesOKBody

func (*ListFilesOKBody) ContextValidate

func (o *ListFilesOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this list files o k body based on the context it is used

func (*ListFilesOKBody) MarshalBinary

func (o *ListFilesOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListFilesOKBody) UnmarshalBinary

func (o *ListFilesOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListFilesOKBody) Validate

func (o *ListFilesOKBody) Validate(formats strfmt.Registry) error

Validate validates this list files o k body

type ListFilesOKBodyData

type ListFilesOKBodyData struct {

	// entries
	Entries []*ListFilesOKBodyDataEntriesItems0 `json:"entries"`
}

ListFilesOKBodyData list files o k body data swagger:model ListFilesOKBodyData

func (*ListFilesOKBodyData) ContextValidate

func (o *ListFilesOKBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this list files o k body data based on the context it is used

func (*ListFilesOKBodyData) MarshalBinary

func (o *ListFilesOKBodyData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListFilesOKBodyData) UnmarshalBinary

func (o *ListFilesOKBodyData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListFilesOKBodyData) Validate

func (o *ListFilesOKBodyData) Validate(formats strfmt.Registry) error

Validate validates this list files o k body data

type ListFilesOKBodyDataEntriesItems0

type ListFilesOKBodyDataEntriesItems0 struct {

	// accessed at
	AccessedAt int32 `json:"accessed_at,omitempty"`

	// chmod
	Chmod string `json:"chmod,omitempty"`

	// created at
	CreatedAt int32 `json:"created_at,omitempty"`

	// group
	Group string `json:"group,omitempty"`

	// modified at
	ModifiedAt int32 `json:"modified_at,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`

	// path
	Path string `json:"path,omitempty"`

	// size
	Size int32 `json:"size,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

ListFilesOKBodyDataEntriesItems0 list files o k body data entries items0 swagger:model ListFilesOKBodyDataEntriesItems0

func (*ListFilesOKBodyDataEntriesItems0) ContextValidate

func (o *ListFilesOKBodyDataEntriesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this list files o k body data entries items0 based on context it is used

func (*ListFilesOKBodyDataEntriesItems0) MarshalBinary

func (o *ListFilesOKBodyDataEntriesItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListFilesOKBodyDataEntriesItems0) UnmarshalBinary

func (o *ListFilesOKBodyDataEntriesItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListFilesOKBodyDataEntriesItems0) Validate

Validate validates this list files o k body data entries items0

type ListFilesParams

type ListFilesParams struct {

	/* Dir.

	   Directory to list
	*/
	Dir *string

	/* Search.

	   Search pattern for specific files
	*/
	Search *string

	/* ServiceID.

	   Service identifier
	*/
	ServiceID string

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

ListFilesParams contains all the parameters to send to the API endpoint

for the list files operation.

Typically these are written to a http.Request.

func NewListFilesParams

func NewListFilesParams() *ListFilesParams

NewListFilesParams creates a new ListFilesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListFilesParamsWithContext

func NewListFilesParamsWithContext(ctx context.Context) *ListFilesParams

NewListFilesParamsWithContext creates a new ListFilesParams object with the ability to set a context for a request.

func NewListFilesParamsWithHTTPClient

func NewListFilesParamsWithHTTPClient(client *http.Client) *ListFilesParams

NewListFilesParamsWithHTTPClient creates a new ListFilesParams object with the ability to set a custom HTTPClient for a request.

func NewListFilesParamsWithTimeout

func NewListFilesParamsWithTimeout(timeout time.Duration) *ListFilesParams

NewListFilesParamsWithTimeout creates a new ListFilesParams object with the ability to set a timeout on a request.

func (*ListFilesParams) SetContext

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

SetContext adds the context to the list files params

func (*ListFilesParams) SetDefaults

func (o *ListFilesParams) SetDefaults()

SetDefaults hydrates default values in the list files params (not the query body).

All values with no default are reset to their zero value.

func (*ListFilesParams) SetDir

func (o *ListFilesParams) SetDir(dir *string)

SetDir adds the dir to the list files params

func (*ListFilesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list files params

func (*ListFilesParams) SetSearch

func (o *ListFilesParams) SetSearch(search *string)

SetSearch adds the search to the list files params

func (*ListFilesParams) SetServiceID

func (o *ListFilesParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the list files params

func (*ListFilesParams) SetTimeout

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

SetTimeout adds the timeout to the list files params

func (*ListFilesParams) WithContext

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

WithContext adds the context to the list files params

func (*ListFilesParams) WithDefaults

func (o *ListFilesParams) WithDefaults() *ListFilesParams

WithDefaults hydrates default values in the list files params (not the query body).

All values with no default are reset to their zero value.

func (*ListFilesParams) WithDir

func (o *ListFilesParams) WithDir(dir *string) *ListFilesParams

WithDir adds the dir to the list files params

func (*ListFilesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list files params

func (*ListFilesParams) WithSearch

func (o *ListFilesParams) WithSearch(search *string) *ListFilesParams

WithSearch adds the search to the list files params

func (*ListFilesParams) WithServiceID

func (o *ListFilesParams) WithServiceID(serviceID string) *ListFilesParams

WithServiceID adds the serviceID to the list files params

func (*ListFilesParams) WithTimeout

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

WithTimeout adds the timeout to the list files params

func (*ListFilesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListFilesReader

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

ListFilesReader is a Reader for the ListFiles structure.

func (*ListFilesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListFilesServiceUnavailable

type ListFilesServiceUnavailable struct {
	Payload *models.ErrorModel
}
ListFilesServiceUnavailable describes a response with status code 503, with default header values.

Maintenance. API is currently not available. Please come back in a few minutes and try it again.

func NewListFilesServiceUnavailable

func NewListFilesServiceUnavailable() *ListFilesServiceUnavailable

NewListFilesServiceUnavailable creates a ListFilesServiceUnavailable with default headers values

func (*ListFilesServiceUnavailable) Error

func (*ListFilesServiceUnavailable) GetPayload

type ListFilesTooManyRequests

type ListFilesTooManyRequests struct {
	Payload *models.ErrorModel
}
ListFilesTooManyRequests describes a response with status code 429, with default header values.

The rate limit has been exceeded. Please contact our support if you have a legit reason get a higher rate limit.

func NewListFilesTooManyRequests

func NewListFilesTooManyRequests() *ListFilesTooManyRequests

NewListFilesTooManyRequests creates a ListFilesTooManyRequests with default headers values

func (*ListFilesTooManyRequests) Error

func (o *ListFilesTooManyRequests) Error() string

func (*ListFilesTooManyRequests) GetPayload

func (o *ListFilesTooManyRequests) GetPayload() *models.ErrorModel

type ListFilesUnauthorized

type ListFilesUnauthorized struct {
	Payload *models.ErrorModel
}
ListFilesUnauthorized describes a response with status code 401, with default header values.

The provided access token is not valid (anymore).

func NewListFilesUnauthorized

func NewListFilesUnauthorized() *ListFilesUnauthorized

NewListFilesUnauthorized creates a ListFilesUnauthorized with default headers values

func (*ListFilesUnauthorized) Error

func (o *ListFilesUnauthorized) Error() string

func (*ListFilesUnauthorized) GetPayload

func (o *ListFilesUnauthorized) GetPayload() *models.ErrorModel

type RestartGameserverBody

type RestartGameserverBody struct {

	// message
	Message string `json:"message,omitempty"`

	// restart message
	RestartMessage string `json:"restart_message,omitempty"`
}

RestartGameserverBody restart gameserver body swagger:model RestartGameserverBody

func (*RestartGameserverBody) ContextValidate

func (o *RestartGameserverBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this restart gameserver body based on context it is used

func (*RestartGameserverBody) MarshalBinary

func (o *RestartGameserverBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestartGameserverBody) UnmarshalBinary

func (o *RestartGameserverBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestartGameserverBody) Validate

func (o *RestartGameserverBody) Validate(formats strfmt.Registry) error

Validate validates this restart gameserver body

type RestartGameserverDefault

type RestartGameserverDefault struct {
	Payload *models.ErrorModel
	// contains filtered or unexported fields
}
RestartGameserverDefault describes a response with status code -1, with default header values.

Default error response.

func NewRestartGameserverDefault

func NewRestartGameserverDefault(code int) *RestartGameserverDefault

NewRestartGameserverDefault creates a RestartGameserverDefault with default headers values

func (*RestartGameserverDefault) Code

func (o *RestartGameserverDefault) Code() int

Code gets the status code for the restart gameserver default response

func (*RestartGameserverDefault) Error

func (o *RestartGameserverDefault) Error() string

func (*RestartGameserverDefault) GetPayload

func (o *RestartGameserverDefault) GetPayload() *models.ErrorModel

type RestartGameserverOK

type RestartGameserverOK struct {
	Payload *RestartGameserverOKBody
}
RestartGameserverOK describes a response with status code 200, with default header values.

success response

func NewRestartGameserverOK

func NewRestartGameserverOK() *RestartGameserverOK

NewRestartGameserverOK creates a RestartGameserverOK with default headers values

func (*RestartGameserverOK) Error

func (o *RestartGameserverOK) Error() string

func (*RestartGameserverOK) GetPayload

type RestartGameserverOKBody

type RestartGameserverOKBody struct {

	// message
	Message string `json:"message,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

RestartGameserverOKBody restart gameserver o k body swagger:model RestartGameserverOKBody

func (*RestartGameserverOKBody) ContextValidate

func (o *RestartGameserverOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this restart gameserver o k body based on context it is used

func (*RestartGameserverOKBody) MarshalBinary

func (o *RestartGameserverOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RestartGameserverOKBody) UnmarshalBinary

func (o *RestartGameserverOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RestartGameserverOKBody) Validate

func (o *RestartGameserverOKBody) Validate(formats strfmt.Registry) error

Validate validates this restart gameserver o k body

type RestartGameserverParams

type RestartGameserverParams struct {

	/* Body.

	   Restart a gameserver body
	*/
	Body RestartGameserverBody

	/* ServiceID.

	   Service identifier
	*/
	ServiceID string

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

RestartGameserverParams contains all the parameters to send to the API endpoint

for the restart gameserver operation.

Typically these are written to a http.Request.

func NewRestartGameserverParams

func NewRestartGameserverParams() *RestartGameserverParams

NewRestartGameserverParams creates a new RestartGameserverParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRestartGameserverParamsWithContext

func NewRestartGameserverParamsWithContext(ctx context.Context) *RestartGameserverParams

NewRestartGameserverParamsWithContext creates a new RestartGameserverParams object with the ability to set a context for a request.

func NewRestartGameserverParamsWithHTTPClient

func NewRestartGameserverParamsWithHTTPClient(client *http.Client) *RestartGameserverParams

NewRestartGameserverParamsWithHTTPClient creates a new RestartGameserverParams object with the ability to set a custom HTTPClient for a request.

func NewRestartGameserverParamsWithTimeout

func NewRestartGameserverParamsWithTimeout(timeout time.Duration) *RestartGameserverParams

NewRestartGameserverParamsWithTimeout creates a new RestartGameserverParams object with the ability to set a timeout on a request.

func (*RestartGameserverParams) SetBody

SetBody adds the body to the restart gameserver params

func (*RestartGameserverParams) SetContext

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

SetContext adds the context to the restart gameserver params

func (*RestartGameserverParams) SetDefaults

func (o *RestartGameserverParams) SetDefaults()

SetDefaults hydrates default values in the restart gameserver params (not the query body).

All values with no default are reset to their zero value.

func (*RestartGameserverParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the restart gameserver params

func (*RestartGameserverParams) SetServiceID

func (o *RestartGameserverParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the restart gameserver params

func (*RestartGameserverParams) SetTimeout

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

SetTimeout adds the timeout to the restart gameserver params

func (*RestartGameserverParams) WithBody

WithBody adds the body to the restart gameserver params

func (*RestartGameserverParams) WithContext

WithContext adds the context to the restart gameserver params

func (*RestartGameserverParams) WithDefaults

WithDefaults hydrates default values in the restart gameserver params (not the query body).

All values with no default are reset to their zero value.

func (*RestartGameserverParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the restart gameserver params

func (*RestartGameserverParams) WithServiceID

func (o *RestartGameserverParams) WithServiceID(serviceID string) *RestartGameserverParams

WithServiceID adds the serviceID to the restart gameserver params

func (*RestartGameserverParams) WithTimeout

WithTimeout adds the timeout to the restart gameserver params

func (*RestartGameserverParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RestartGameserverReader

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

RestartGameserverReader is a Reader for the RestartGameserver structure.

func (*RestartGameserverReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestartGameserverServiceUnavailable

type RestartGameserverServiceUnavailable struct {
	Payload *models.ErrorModel
}
RestartGameserverServiceUnavailable describes a response with status code 503, with default header values.

Maintenance. API is currently not available. Please come back in a few minutes and try it again.

func NewRestartGameserverServiceUnavailable

func NewRestartGameserverServiceUnavailable() *RestartGameserverServiceUnavailable

NewRestartGameserverServiceUnavailable creates a RestartGameserverServiceUnavailable with default headers values

func (*RestartGameserverServiceUnavailable) Error

func (*RestartGameserverServiceUnavailable) GetPayload

type RestartGameserverTooManyRequests

type RestartGameserverTooManyRequests struct {
	Payload *models.ErrorModel
}
RestartGameserverTooManyRequests describes a response with status code 429, with default header values.

The rate limit has been exceeded. Please contact our support if you have a legit reason get a higher rate limit.

func NewRestartGameserverTooManyRequests

func NewRestartGameserverTooManyRequests() *RestartGameserverTooManyRequests

NewRestartGameserverTooManyRequests creates a RestartGameserverTooManyRequests with default headers values

func (*RestartGameserverTooManyRequests) Error

func (*RestartGameserverTooManyRequests) GetPayload

type RestartGameserverUnauthorized

type RestartGameserverUnauthorized struct {
	Payload *models.ErrorModel
}
RestartGameserverUnauthorized describes a response with status code 401, with default header values.

The provided access token is not valid (anymore).

func NewRestartGameserverUnauthorized

func NewRestartGameserverUnauthorized() *RestartGameserverUnauthorized

NewRestartGameserverUnauthorized creates a RestartGameserverUnauthorized with default headers values

func (*RestartGameserverUnauthorized) Error

func (*RestartGameserverUnauthorized) GetPayload

type StopGameserverBody

type StopGameserverBody struct {

	// message
	Message string `json:"message,omitempty"`

	// stop message
	StopMessage string `json:"stop_message,omitempty"`
}

StopGameserverBody stop gameserver body swagger:model StopGameserverBody

func (*StopGameserverBody) ContextValidate

func (o *StopGameserverBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this stop gameserver body based on context it is used

func (*StopGameserverBody) MarshalBinary

func (o *StopGameserverBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StopGameserverBody) UnmarshalBinary

func (o *StopGameserverBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StopGameserverBody) Validate

func (o *StopGameserverBody) Validate(formats strfmt.Registry) error

Validate validates this stop gameserver body

type StopGameserverDefault

type StopGameserverDefault struct {
	Payload *models.ErrorModel
	// contains filtered or unexported fields
}
StopGameserverDefault describes a response with status code -1, with default header values.

Default error response.

func NewStopGameserverDefault

func NewStopGameserverDefault(code int) *StopGameserverDefault

NewStopGameserverDefault creates a StopGameserverDefault with default headers values

func (*StopGameserverDefault) Code

func (o *StopGameserverDefault) Code() int

Code gets the status code for the stop gameserver default response

func (*StopGameserverDefault) Error

func (o *StopGameserverDefault) Error() string

func (*StopGameserverDefault) GetPayload

func (o *StopGameserverDefault) GetPayload() *models.ErrorModel

type StopGameserverOK

type StopGameserverOK struct {
	Payload *StopGameserverOKBody
}
StopGameserverOK describes a response with status code 200, with default header values.

success response

func NewStopGameserverOK

func NewStopGameserverOK() *StopGameserverOK

NewStopGameserverOK creates a StopGameserverOK with default headers values

func (*StopGameserverOK) Error

func (o *StopGameserverOK) Error() string

func (*StopGameserverOK) GetPayload

func (o *StopGameserverOK) GetPayload() *StopGameserverOKBody

type StopGameserverOKBody

type StopGameserverOKBody struct {

	// message
	Message string `json:"message,omitempty"`

	// status
	Status string `json:"status,omitempty"`
}

StopGameserverOKBody stop gameserver o k body swagger:model StopGameserverOKBody

func (*StopGameserverOKBody) ContextValidate

func (o *StopGameserverOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this stop gameserver o k body based on context it is used

func (*StopGameserverOKBody) MarshalBinary

func (o *StopGameserverOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StopGameserverOKBody) UnmarshalBinary

func (o *StopGameserverOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StopGameserverOKBody) Validate

func (o *StopGameserverOKBody) Validate(formats strfmt.Registry) error

Validate validates this stop gameserver o k body

type StopGameserverParams

type StopGameserverParams struct {

	/* Body.

	   Stop a gameserver body
	*/
	Body StopGameserverBody

	/* ServiceID.

	   Service identifier
	*/
	ServiceID string

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

StopGameserverParams contains all the parameters to send to the API endpoint

for the stop gameserver operation.

Typically these are written to a http.Request.

func NewStopGameserverParams

func NewStopGameserverParams() *StopGameserverParams

NewStopGameserverParams creates a new StopGameserverParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewStopGameserverParamsWithContext

func NewStopGameserverParamsWithContext(ctx context.Context) *StopGameserverParams

NewStopGameserverParamsWithContext creates a new StopGameserverParams object with the ability to set a context for a request.

func NewStopGameserverParamsWithHTTPClient

func NewStopGameserverParamsWithHTTPClient(client *http.Client) *StopGameserverParams

NewStopGameserverParamsWithHTTPClient creates a new StopGameserverParams object with the ability to set a custom HTTPClient for a request.

func NewStopGameserverParamsWithTimeout

func NewStopGameserverParamsWithTimeout(timeout time.Duration) *StopGameserverParams

NewStopGameserverParamsWithTimeout creates a new StopGameserverParams object with the ability to set a timeout on a request.

func (*StopGameserverParams) SetBody

func (o *StopGameserverParams) SetBody(body StopGameserverBody)

SetBody adds the body to the stop gameserver params

func (*StopGameserverParams) SetContext

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

SetContext adds the context to the stop gameserver params

func (*StopGameserverParams) SetDefaults

func (o *StopGameserverParams) SetDefaults()

SetDefaults hydrates default values in the stop gameserver params (not the query body).

All values with no default are reset to their zero value.

func (*StopGameserverParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stop gameserver params

func (*StopGameserverParams) SetServiceID

func (o *StopGameserverParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the stop gameserver params

func (*StopGameserverParams) SetTimeout

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

SetTimeout adds the timeout to the stop gameserver params

func (*StopGameserverParams) WithBody

WithBody adds the body to the stop gameserver params

func (*StopGameserverParams) WithContext

WithContext adds the context to the stop gameserver params

func (*StopGameserverParams) WithDefaults

func (o *StopGameserverParams) WithDefaults() *StopGameserverParams

WithDefaults hydrates default values in the stop gameserver params (not the query body).

All values with no default are reset to their zero value.

func (*StopGameserverParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stop gameserver params

func (*StopGameserverParams) WithServiceID

func (o *StopGameserverParams) WithServiceID(serviceID string) *StopGameserverParams

WithServiceID adds the serviceID to the stop gameserver params

func (*StopGameserverParams) WithTimeout

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

WithTimeout adds the timeout to the stop gameserver params

func (*StopGameserverParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StopGameserverReader

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

StopGameserverReader is a Reader for the StopGameserver structure.

func (*StopGameserverReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StopGameserverServiceUnavailable

type StopGameserverServiceUnavailable struct {
	Payload *models.ErrorModel
}
StopGameserverServiceUnavailable describes a response with status code 503, with default header values.

Maintenance. API is currently not available. Please come back in a few minutes and try it again.

func NewStopGameserverServiceUnavailable

func NewStopGameserverServiceUnavailable() *StopGameserverServiceUnavailable

NewStopGameserverServiceUnavailable creates a StopGameserverServiceUnavailable with default headers values

func (*StopGameserverServiceUnavailable) Error

func (*StopGameserverServiceUnavailable) GetPayload

type StopGameserverTooManyRequests

type StopGameserverTooManyRequests struct {
	Payload *models.ErrorModel
}
StopGameserverTooManyRequests describes a response with status code 429, with default header values.

The rate limit has been exceeded. Please contact our support if you have a legit reason get a higher rate limit.

func NewStopGameserverTooManyRequests

func NewStopGameserverTooManyRequests() *StopGameserverTooManyRequests

NewStopGameserverTooManyRequests creates a StopGameserverTooManyRequests with default headers values

func (*StopGameserverTooManyRequests) Error

func (*StopGameserverTooManyRequests) GetPayload

type StopGameserverUnauthorized

type StopGameserverUnauthorized struct {
	Payload *models.ErrorModel
}
StopGameserverUnauthorized describes a response with status code 401, with default header values.

The provided access token is not valid (anymore).

func NewStopGameserverUnauthorized

func NewStopGameserverUnauthorized() *StopGameserverUnauthorized

NewStopGameserverUnauthorized creates a StopGameserverUnauthorized with default headers values

func (*StopGameserverUnauthorized) Error

func (*StopGameserverUnauthorized) GetPayload

func (o *StopGameserverUnauthorized) GetPayload() *models.ErrorModel

Jump to

Keyboard shortcuts

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