player_management

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 BanPlayerBody

type BanPlayerBody struct {

	// identifier
	Identifier string `json:"identifier,omitempty"`
}

BanPlayerBody ban player body swagger:model BanPlayerBody

func (*BanPlayerBody) ContextValidate

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

ContextValidate validates this ban player body based on context it is used

func (*BanPlayerBody) MarshalBinary

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

MarshalBinary interface implementation

func (*BanPlayerBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BanPlayerBody) Validate

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

Validate validates this ban player body

type BanPlayerDefault

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

Default error response.

func NewBanPlayerDefault

func NewBanPlayerDefault(code int) *BanPlayerDefault

NewBanPlayerDefault creates a BanPlayerDefault with default headers values

func (*BanPlayerDefault) Code

func (o *BanPlayerDefault) Code() int

Code gets the status code for the ban player default response

func (*BanPlayerDefault) Error

func (o *BanPlayerDefault) Error() string

func (*BanPlayerDefault) GetPayload

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

type BanPlayerOK

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

success response

func NewBanPlayerOK

func NewBanPlayerOK() *BanPlayerOK

NewBanPlayerOK creates a BanPlayerOK with default headers values

func (*BanPlayerOK) Error

func (o *BanPlayerOK) Error() string

func (*BanPlayerOK) GetPayload

func (o *BanPlayerOK) GetPayload() *BanPlayerOKBody

type BanPlayerOKBody

type BanPlayerOKBody struct {

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

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

BanPlayerOKBody ban player o k body swagger:model BanPlayerOKBody

func (*BanPlayerOKBody) ContextValidate

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

ContextValidate validates this ban player o k body based on context it is used

func (*BanPlayerOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*BanPlayerOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BanPlayerOKBody) Validate

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

Validate validates this ban player o k body

type BanPlayerParams

type BanPlayerParams struct {

	/* Body.

	   Ban a player body
	*/
	Body BanPlayerBody

	/* ServiceID.

	   Service identifier
	*/
	ServiceID string

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

BanPlayerParams contains all the parameters to send to the API endpoint

for the ban player operation.

Typically these are written to a http.Request.

func NewBanPlayerParams

func NewBanPlayerParams() *BanPlayerParams

NewBanPlayerParams creates a new BanPlayerParams 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 NewBanPlayerParamsWithContext

func NewBanPlayerParamsWithContext(ctx context.Context) *BanPlayerParams

NewBanPlayerParamsWithContext creates a new BanPlayerParams object with the ability to set a context for a request.

func NewBanPlayerParamsWithHTTPClient

func NewBanPlayerParamsWithHTTPClient(client *http.Client) *BanPlayerParams

NewBanPlayerParamsWithHTTPClient creates a new BanPlayerParams object with the ability to set a custom HTTPClient for a request.

func NewBanPlayerParamsWithTimeout

func NewBanPlayerParamsWithTimeout(timeout time.Duration) *BanPlayerParams

NewBanPlayerParamsWithTimeout creates a new BanPlayerParams object with the ability to set a timeout on a request.

func (*BanPlayerParams) SetBody

func (o *BanPlayerParams) SetBody(body BanPlayerBody)

SetBody adds the body to the ban player params

func (*BanPlayerParams) SetContext

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

SetContext adds the context to the ban player params

func (*BanPlayerParams) SetDefaults

func (o *BanPlayerParams) SetDefaults()

SetDefaults hydrates default values in the ban player params (not the query body).

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

func (*BanPlayerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the ban player params

func (*BanPlayerParams) SetServiceID

func (o *BanPlayerParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the ban player params

func (*BanPlayerParams) SetTimeout

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

SetTimeout adds the timeout to the ban player params

func (*BanPlayerParams) WithBody

func (o *BanPlayerParams) WithBody(body BanPlayerBody) *BanPlayerParams

WithBody adds the body to the ban player params

func (*BanPlayerParams) WithContext

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

WithContext adds the context to the ban player params

func (*BanPlayerParams) WithDefaults

func (o *BanPlayerParams) WithDefaults() *BanPlayerParams

WithDefaults hydrates default values in the ban player params (not the query body).

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

func (*BanPlayerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the ban player params

func (*BanPlayerParams) WithServiceID

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

WithServiceID adds the serviceID to the ban player params

func (*BanPlayerParams) WithTimeout

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

WithTimeout adds the timeout to the ban player params

func (*BanPlayerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type BanPlayerReader

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

BanPlayerReader is a Reader for the BanPlayer structure.

func (*BanPlayerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BanPlayerServiceUnavailable

type BanPlayerServiceUnavailable struct {
	Payload *models.ErrorModel
}
BanPlayerServiceUnavailable 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 NewBanPlayerServiceUnavailable

func NewBanPlayerServiceUnavailable() *BanPlayerServiceUnavailable

NewBanPlayerServiceUnavailable creates a BanPlayerServiceUnavailable with default headers values

func (*BanPlayerServiceUnavailable) Error

func (*BanPlayerServiceUnavailable) GetPayload

type BanPlayerTooManyRequests

type BanPlayerTooManyRequests struct {
	Payload *models.ErrorModel
}
BanPlayerTooManyRequests 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 NewBanPlayerTooManyRequests

func NewBanPlayerTooManyRequests() *BanPlayerTooManyRequests

NewBanPlayerTooManyRequests creates a BanPlayerTooManyRequests with default headers values

func (*BanPlayerTooManyRequests) Error

func (o *BanPlayerTooManyRequests) Error() string

func (*BanPlayerTooManyRequests) GetPayload

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

type BanPlayerUnauthorized

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

The provided access token is not valid (anymore).

func NewBanPlayerUnauthorized

func NewBanPlayerUnauthorized() *BanPlayerUnauthorized

NewBanPlayerUnauthorized creates a BanPlayerUnauthorized with default headers values

func (*BanPlayerUnauthorized) Error

func (o *BanPlayerUnauthorized) Error() string

func (*BanPlayerUnauthorized) GetPayload

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

type Client

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

Client for player management API

func (*Client) BanPlayer

func (a *Client) BanPlayer(params *BanPlayerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BanPlayerOK, error)

BanPlayer bans a player

Add a player to the banlist.

func (*Client) GetBanlist

func (a *Client) GetBanlist(params *GetBanlistParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBanlistOK, error)

GetBanlist lists banned players

List all banned players on a gameserver.

func (*Client) GetWhitelist

func (a *Client) GetWhitelist(params *GetWhitelistParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWhitelistOK, error)

GetWhitelist lists whitelisted players

List all whitelisted players on a gameserver.

func (*Client) ListPlayers

func (a *Client) ListPlayers(params *ListPlayersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPlayersOK, error)

ListPlayers lists players on a server

List players on the server. The returned list contains an array of players with their ingame name and an ID.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UnbanPlayer

func (a *Client) UnbanPlayer(params *UnbanPlayerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnbanPlayerOK, error)

UnbanPlayer unbans a player

Remove a player from the banlist.

func (*Client) UnwhitelistPlayer

func (a *Client) UnwhitelistPlayer(params *UnwhitelistPlayerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnwhitelistPlayerOK, error)

UnwhitelistPlayer unwhitelists a player

Remove a player from the whitelist.

func (*Client) WhitelistPlayer

func (a *Client) WhitelistPlayer(params *WhitelistPlayerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WhitelistPlayerOK, error)

WhitelistPlayer whitelists a player

Add a player to the whitelist.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	BanPlayer(params *BanPlayerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BanPlayerOK, error)

	GetBanlist(params *GetBanlistParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBanlistOK, error)

	GetWhitelist(params *GetWhitelistParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWhitelistOK, error)

	ListPlayers(params *ListPlayersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPlayersOK, error)

	UnbanPlayer(params *UnbanPlayerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnbanPlayerOK, error)

	UnwhitelistPlayer(params *UnwhitelistPlayerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnwhitelistPlayerOK, error)

	WhitelistPlayer(params *WhitelistPlayerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WhitelistPlayerOK, 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 player management API client.

type GetBanlistDefault

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

Default error response.

func NewGetBanlistDefault

func NewGetBanlistDefault(code int) *GetBanlistDefault

NewGetBanlistDefault creates a GetBanlistDefault with default headers values

func (*GetBanlistDefault) Code

func (o *GetBanlistDefault) Code() int

Code gets the status code for the get banlist default response

func (*GetBanlistDefault) Error

func (o *GetBanlistDefault) Error() string

func (*GetBanlistDefault) GetPayload

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

type GetBanlistOK

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

success response

func NewGetBanlistOK

func NewGetBanlistOK() *GetBanlistOK

NewGetBanlistOK creates a GetBanlistOK with default headers values

func (*GetBanlistOK) Error

func (o *GetBanlistOK) Error() string

func (*GetBanlistOK) GetPayload

func (o *GetBanlistOK) GetPayload() *GetBanlistOKBody

type GetBanlistOKBody

type GetBanlistOKBody struct {

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

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

GetBanlistOKBody get banlist o k body swagger:model GetBanlistOKBody

func (*GetBanlistOKBody) ContextValidate

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

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

func (*GetBanlistOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetBanlistOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetBanlistOKBody) Validate

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

Validate validates this get banlist o k body

type GetBanlistOKBodyData

type GetBanlistOKBodyData struct {

	// banlist
	Banlist []*GetBanlistOKBodyDataBanlistItems0 `json:"banlist"`
}

GetBanlistOKBodyData get banlist o k body data swagger:model GetBanlistOKBodyData

func (*GetBanlistOKBodyData) ContextValidate

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

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

func (*GetBanlistOKBodyData) MarshalBinary

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

MarshalBinary interface implementation

func (*GetBanlistOKBodyData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetBanlistOKBodyData) Validate

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

Validate validates this get banlist o k body data

type GetBanlistOKBodyDataBanlistItems0

type GetBanlistOKBodyDataBanlistItems0 struct {

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

	// id type
	IDType string `json:"id_type,omitempty"`

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

GetBanlistOKBodyDataBanlistItems0 get banlist o k body data banlist items0 swagger:model GetBanlistOKBodyDataBanlistItems0

func (*GetBanlistOKBodyDataBanlistItems0) ContextValidate

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

ContextValidate validates this get banlist o k body data banlist items0 based on context it is used

func (*GetBanlistOKBodyDataBanlistItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetBanlistOKBodyDataBanlistItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetBanlistOKBodyDataBanlistItems0) Validate

Validate validates this get banlist o k body data banlist items0

type GetBanlistParams

type GetBanlistParams struct {

	/* ServiceID.

	   Service identifier
	*/
	ServiceID string

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

GetBanlistParams contains all the parameters to send to the API endpoint

for the get banlist operation.

Typically these are written to a http.Request.

func NewGetBanlistParams

func NewGetBanlistParams() *GetBanlistParams

NewGetBanlistParams creates a new GetBanlistParams 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 NewGetBanlistParamsWithContext

func NewGetBanlistParamsWithContext(ctx context.Context) *GetBanlistParams

NewGetBanlistParamsWithContext creates a new GetBanlistParams object with the ability to set a context for a request.

func NewGetBanlistParamsWithHTTPClient

func NewGetBanlistParamsWithHTTPClient(client *http.Client) *GetBanlistParams

NewGetBanlistParamsWithHTTPClient creates a new GetBanlistParams object with the ability to set a custom HTTPClient for a request.

func NewGetBanlistParamsWithTimeout

func NewGetBanlistParamsWithTimeout(timeout time.Duration) *GetBanlistParams

NewGetBanlistParamsWithTimeout creates a new GetBanlistParams object with the ability to set a timeout on a request.

func (*GetBanlistParams) SetContext

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

SetContext adds the context to the get banlist params

func (*GetBanlistParams) SetDefaults

func (o *GetBanlistParams) SetDefaults()

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

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

func (*GetBanlistParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get banlist params

func (*GetBanlistParams) SetServiceID

func (o *GetBanlistParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the get banlist params

func (*GetBanlistParams) SetTimeout

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

SetTimeout adds the timeout to the get banlist params

func (*GetBanlistParams) WithContext

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

WithContext adds the context to the get banlist params

func (*GetBanlistParams) WithDefaults

func (o *GetBanlistParams) WithDefaults() *GetBanlistParams

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

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

func (*GetBanlistParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get banlist params

func (*GetBanlistParams) WithServiceID

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

WithServiceID adds the serviceID to the get banlist params

func (*GetBanlistParams) WithTimeout

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

WithTimeout adds the timeout to the get banlist params

func (*GetBanlistParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetBanlistReader

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

GetBanlistReader is a Reader for the GetBanlist structure.

func (*GetBanlistReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBanlistServiceUnavailable

type GetBanlistServiceUnavailable struct {
	Payload *models.ErrorModel
}
GetBanlistServiceUnavailable 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 NewGetBanlistServiceUnavailable

func NewGetBanlistServiceUnavailable() *GetBanlistServiceUnavailable

NewGetBanlistServiceUnavailable creates a GetBanlistServiceUnavailable with default headers values

func (*GetBanlistServiceUnavailable) Error

func (*GetBanlistServiceUnavailable) GetPayload

type GetBanlistTooManyRequests

type GetBanlistTooManyRequests struct {
	Payload *models.ErrorModel
}
GetBanlistTooManyRequests 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 NewGetBanlistTooManyRequests

func NewGetBanlistTooManyRequests() *GetBanlistTooManyRequests

NewGetBanlistTooManyRequests creates a GetBanlistTooManyRequests with default headers values

func (*GetBanlistTooManyRequests) Error

func (o *GetBanlistTooManyRequests) Error() string

func (*GetBanlistTooManyRequests) GetPayload

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

type GetBanlistUnauthorized

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

The provided access token is not valid (anymore).

func NewGetBanlistUnauthorized

func NewGetBanlistUnauthorized() *GetBanlistUnauthorized

NewGetBanlistUnauthorized creates a GetBanlistUnauthorized with default headers values

func (*GetBanlistUnauthorized) Error

func (o *GetBanlistUnauthorized) Error() string

func (*GetBanlistUnauthorized) GetPayload

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

type GetWhitelistDefault

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

Default error response.

func NewGetWhitelistDefault

func NewGetWhitelistDefault(code int) *GetWhitelistDefault

NewGetWhitelistDefault creates a GetWhitelistDefault with default headers values

func (*GetWhitelistDefault) Code

func (o *GetWhitelistDefault) Code() int

Code gets the status code for the get whitelist default response

func (*GetWhitelistDefault) Error

func (o *GetWhitelistDefault) Error() string

func (*GetWhitelistDefault) GetPayload

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

type GetWhitelistOK

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

success response

func NewGetWhitelistOK

func NewGetWhitelistOK() *GetWhitelistOK

NewGetWhitelistOK creates a GetWhitelistOK with default headers values

func (*GetWhitelistOK) Error

func (o *GetWhitelistOK) Error() string

func (*GetWhitelistOK) GetPayload

func (o *GetWhitelistOK) GetPayload() *GetWhitelistOKBody

type GetWhitelistOKBody

type GetWhitelistOKBody struct {

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

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

GetWhitelistOKBody get whitelist o k body swagger:model GetWhitelistOKBody

func (*GetWhitelistOKBody) ContextValidate

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

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

func (*GetWhitelistOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetWhitelistOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetWhitelistOKBody) Validate

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

Validate validates this get whitelist o k body

type GetWhitelistOKBodyData

type GetWhitelistOKBodyData struct {

	// whitelist
	Whitelist []*GetWhitelistOKBodyDataWhitelistItems0 `json:"whitelist"`
}

GetWhitelistOKBodyData get whitelist o k body data swagger:model GetWhitelistOKBodyData

func (*GetWhitelistOKBodyData) ContextValidate

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

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

func (*GetWhitelistOKBodyData) MarshalBinary

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

MarshalBinary interface implementation

func (*GetWhitelistOKBodyData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetWhitelistOKBodyData) Validate

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

Validate validates this get whitelist o k body data

type GetWhitelistOKBodyDataWhitelistItems0

type GetWhitelistOKBodyDataWhitelistItems0 struct {

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

	// id type
	IDType string `json:"id_type,omitempty"`

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

GetWhitelistOKBodyDataWhitelistItems0 get whitelist o k body data whitelist items0 swagger:model GetWhitelistOKBodyDataWhitelistItems0

func (*GetWhitelistOKBodyDataWhitelistItems0) ContextValidate

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

ContextValidate validates this get whitelist o k body data whitelist items0 based on context it is used

func (*GetWhitelistOKBodyDataWhitelistItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetWhitelistOKBodyDataWhitelistItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetWhitelistOKBodyDataWhitelistItems0) Validate

Validate validates this get whitelist o k body data whitelist items0

type GetWhitelistParams

type GetWhitelistParams struct {

	/* ServiceID.

	   Service identifier
	*/
	ServiceID string

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

GetWhitelistParams contains all the parameters to send to the API endpoint

for the get whitelist operation.

Typically these are written to a http.Request.

func NewGetWhitelistParams

func NewGetWhitelistParams() *GetWhitelistParams

NewGetWhitelistParams creates a new GetWhitelistParams 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 NewGetWhitelistParamsWithContext

func NewGetWhitelistParamsWithContext(ctx context.Context) *GetWhitelistParams

NewGetWhitelistParamsWithContext creates a new GetWhitelistParams object with the ability to set a context for a request.

func NewGetWhitelistParamsWithHTTPClient

func NewGetWhitelistParamsWithHTTPClient(client *http.Client) *GetWhitelistParams

NewGetWhitelistParamsWithHTTPClient creates a new GetWhitelistParams object with the ability to set a custom HTTPClient for a request.

func NewGetWhitelistParamsWithTimeout

func NewGetWhitelistParamsWithTimeout(timeout time.Duration) *GetWhitelistParams

NewGetWhitelistParamsWithTimeout creates a new GetWhitelistParams object with the ability to set a timeout on a request.

func (*GetWhitelistParams) SetContext

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

SetContext adds the context to the get whitelist params

func (*GetWhitelistParams) SetDefaults

func (o *GetWhitelistParams) SetDefaults()

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

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

func (*GetWhitelistParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get whitelist params

func (*GetWhitelistParams) SetServiceID

func (o *GetWhitelistParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the get whitelist params

func (*GetWhitelistParams) SetTimeout

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

SetTimeout adds the timeout to the get whitelist params

func (*GetWhitelistParams) WithContext

WithContext adds the context to the get whitelist params

func (*GetWhitelistParams) WithDefaults

func (o *GetWhitelistParams) WithDefaults() *GetWhitelistParams

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

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

func (*GetWhitelistParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get whitelist params

func (*GetWhitelistParams) WithServiceID

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

WithServiceID adds the serviceID to the get whitelist params

func (*GetWhitelistParams) WithTimeout

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

WithTimeout adds the timeout to the get whitelist params

func (*GetWhitelistParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetWhitelistReader

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

GetWhitelistReader is a Reader for the GetWhitelist structure.

func (*GetWhitelistReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetWhitelistServiceUnavailable

type GetWhitelistServiceUnavailable struct {
	Payload *models.ErrorModel
}
GetWhitelistServiceUnavailable 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 NewGetWhitelistServiceUnavailable

func NewGetWhitelistServiceUnavailable() *GetWhitelistServiceUnavailable

NewGetWhitelistServiceUnavailable creates a GetWhitelistServiceUnavailable with default headers values

func (*GetWhitelistServiceUnavailable) Error

func (*GetWhitelistServiceUnavailable) GetPayload

type GetWhitelistTooManyRequests

type GetWhitelistTooManyRequests struct {
	Payload *models.ErrorModel
}
GetWhitelistTooManyRequests 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 NewGetWhitelistTooManyRequests

func NewGetWhitelistTooManyRequests() *GetWhitelistTooManyRequests

NewGetWhitelistTooManyRequests creates a GetWhitelistTooManyRequests with default headers values

func (*GetWhitelistTooManyRequests) Error

func (*GetWhitelistTooManyRequests) GetPayload

type GetWhitelistUnauthorized

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

The provided access token is not valid (anymore).

func NewGetWhitelistUnauthorized

func NewGetWhitelistUnauthorized() *GetWhitelistUnauthorized

NewGetWhitelistUnauthorized creates a GetWhitelistUnauthorized with default headers values

func (*GetWhitelistUnauthorized) Error

func (o *GetWhitelistUnauthorized) Error() string

func (*GetWhitelistUnauthorized) GetPayload

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

type ListPlayersDefault

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

Default error response.

func NewListPlayersDefault

func NewListPlayersDefault(code int) *ListPlayersDefault

NewListPlayersDefault creates a ListPlayersDefault with default headers values

func (*ListPlayersDefault) Code

func (o *ListPlayersDefault) Code() int

Code gets the status code for the list players default response

func (*ListPlayersDefault) Error

func (o *ListPlayersDefault) Error() string

func (*ListPlayersDefault) GetPayload

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

type ListPlayersOK

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

success response

func NewListPlayersOK

func NewListPlayersOK() *ListPlayersOK

NewListPlayersOK creates a ListPlayersOK with default headers values

func (*ListPlayersOK) Error

func (o *ListPlayersOK) Error() string

func (*ListPlayersOK) GetPayload

func (o *ListPlayersOK) GetPayload() *ListPlayersOKBody

type ListPlayersOKBody

type ListPlayersOKBody struct {

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

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

ListPlayersOKBody list players o k body swagger:model ListPlayersOKBody

func (*ListPlayersOKBody) ContextValidate

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

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

func (*ListPlayersOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListPlayersOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListPlayersOKBody) Validate

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

Validate validates this list players o k body

type ListPlayersOKBodyData

type ListPlayersOKBodyData struct {

	// players
	Players []*ListPlayersOKBodyDataPlayersItems0 `json:"players"`
}

ListPlayersOKBodyData list players o k body data swagger:model ListPlayersOKBodyData

func (*ListPlayersOKBodyData) ContextValidate

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

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

func (*ListPlayersOKBodyData) MarshalBinary

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

MarshalBinary interface implementation

func (*ListPlayersOKBodyData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListPlayersOKBodyData) Validate

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

Validate validates this list players o k body data

type ListPlayersOKBodyDataPlayersItems0

type ListPlayersOKBodyDataPlayersItems0 struct {

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

	// id type
	IDType string `json:"id_type,omitempty"`

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

	// online
	Online string `json:"online,omitempty"`
}

ListPlayersOKBodyDataPlayersItems0 list players o k body data players items0 swagger:model ListPlayersOKBodyDataPlayersItems0

func (*ListPlayersOKBodyDataPlayersItems0) ContextValidate

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

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

func (*ListPlayersOKBodyDataPlayersItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*ListPlayersOKBodyDataPlayersItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListPlayersOKBodyDataPlayersItems0) Validate

Validate validates this list players o k body data players items0

type ListPlayersParams

type ListPlayersParams struct {

	/* ServiceID.

	   Service identifier
	*/
	ServiceID string

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

ListPlayersParams contains all the parameters to send to the API endpoint

for the list players operation.

Typically these are written to a http.Request.

func NewListPlayersParams

func NewListPlayersParams() *ListPlayersParams

NewListPlayersParams creates a new ListPlayersParams 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 NewListPlayersParamsWithContext

func NewListPlayersParamsWithContext(ctx context.Context) *ListPlayersParams

NewListPlayersParamsWithContext creates a new ListPlayersParams object with the ability to set a context for a request.

func NewListPlayersParamsWithHTTPClient

func NewListPlayersParamsWithHTTPClient(client *http.Client) *ListPlayersParams

NewListPlayersParamsWithHTTPClient creates a new ListPlayersParams object with the ability to set a custom HTTPClient for a request.

func NewListPlayersParamsWithTimeout

func NewListPlayersParamsWithTimeout(timeout time.Duration) *ListPlayersParams

NewListPlayersParamsWithTimeout creates a new ListPlayersParams object with the ability to set a timeout on a request.

func (*ListPlayersParams) SetContext

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

SetContext adds the context to the list players params

func (*ListPlayersParams) SetDefaults

func (o *ListPlayersParams) SetDefaults()

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

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

func (*ListPlayersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list players params

func (*ListPlayersParams) SetServiceID

func (o *ListPlayersParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the list players params

func (*ListPlayersParams) SetTimeout

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

SetTimeout adds the timeout to the list players params

func (*ListPlayersParams) WithContext

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

WithContext adds the context to the list players params

func (*ListPlayersParams) WithDefaults

func (o *ListPlayersParams) WithDefaults() *ListPlayersParams

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

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

func (*ListPlayersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list players params

func (*ListPlayersParams) WithServiceID

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

WithServiceID adds the serviceID to the list players params

func (*ListPlayersParams) WithTimeout

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

WithTimeout adds the timeout to the list players params

func (*ListPlayersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListPlayersReader

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

ListPlayersReader is a Reader for the ListPlayers structure.

func (*ListPlayersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListPlayersServiceUnavailable

type ListPlayersServiceUnavailable struct {
	Payload *models.ErrorModel
}
ListPlayersServiceUnavailable 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 NewListPlayersServiceUnavailable

func NewListPlayersServiceUnavailable() *ListPlayersServiceUnavailable

NewListPlayersServiceUnavailable creates a ListPlayersServiceUnavailable with default headers values

func (*ListPlayersServiceUnavailable) Error

func (*ListPlayersServiceUnavailable) GetPayload

type ListPlayersTooManyRequests

type ListPlayersTooManyRequests struct {
	Payload *models.ErrorModel
}
ListPlayersTooManyRequests 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 NewListPlayersTooManyRequests

func NewListPlayersTooManyRequests() *ListPlayersTooManyRequests

NewListPlayersTooManyRequests creates a ListPlayersTooManyRequests with default headers values

func (*ListPlayersTooManyRequests) Error

func (*ListPlayersTooManyRequests) GetPayload

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

type ListPlayersUnauthorized

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

The provided access token is not valid (anymore).

func NewListPlayersUnauthorized

func NewListPlayersUnauthorized() *ListPlayersUnauthorized

NewListPlayersUnauthorized creates a ListPlayersUnauthorized with default headers values

func (*ListPlayersUnauthorized) Error

func (o *ListPlayersUnauthorized) Error() string

func (*ListPlayersUnauthorized) GetPayload

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

type UnbanPlayerBody

type UnbanPlayerBody struct {

	// identifier
	Identifier string `json:"identifier,omitempty"`
}

UnbanPlayerBody unban player body swagger:model UnbanPlayerBody

func (*UnbanPlayerBody) ContextValidate

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

ContextValidate validates this unban player body based on context it is used

func (*UnbanPlayerBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UnbanPlayerBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UnbanPlayerBody) Validate

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

Validate validates this unban player body

type UnbanPlayerDefault

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

Default error response.

func NewUnbanPlayerDefault

func NewUnbanPlayerDefault(code int) *UnbanPlayerDefault

NewUnbanPlayerDefault creates a UnbanPlayerDefault with default headers values

func (*UnbanPlayerDefault) Code

func (o *UnbanPlayerDefault) Code() int

Code gets the status code for the unban player default response

func (*UnbanPlayerDefault) Error

func (o *UnbanPlayerDefault) Error() string

func (*UnbanPlayerDefault) GetPayload

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

type UnbanPlayerOK

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

success response

func NewUnbanPlayerOK

func NewUnbanPlayerOK() *UnbanPlayerOK

NewUnbanPlayerOK creates a UnbanPlayerOK with default headers values

func (*UnbanPlayerOK) Error

func (o *UnbanPlayerOK) Error() string

func (*UnbanPlayerOK) GetPayload

func (o *UnbanPlayerOK) GetPayload() *UnbanPlayerOKBody

type UnbanPlayerOKBody

type UnbanPlayerOKBody struct {

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

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

UnbanPlayerOKBody unban player o k body swagger:model UnbanPlayerOKBody

func (*UnbanPlayerOKBody) ContextValidate

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

ContextValidate validates this unban player o k body based on context it is used

func (*UnbanPlayerOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UnbanPlayerOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UnbanPlayerOKBody) Validate

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

Validate validates this unban player o k body

type UnbanPlayerParams

type UnbanPlayerParams struct {

	/* Body.

	   Unban a player body
	*/
	Body UnbanPlayerBody

	/* ServiceID.

	   Service identifier
	*/
	ServiceID string

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

UnbanPlayerParams contains all the parameters to send to the API endpoint

for the unban player operation.

Typically these are written to a http.Request.

func NewUnbanPlayerParams

func NewUnbanPlayerParams() *UnbanPlayerParams

NewUnbanPlayerParams creates a new UnbanPlayerParams 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 NewUnbanPlayerParamsWithContext

func NewUnbanPlayerParamsWithContext(ctx context.Context) *UnbanPlayerParams

NewUnbanPlayerParamsWithContext creates a new UnbanPlayerParams object with the ability to set a context for a request.

func NewUnbanPlayerParamsWithHTTPClient

func NewUnbanPlayerParamsWithHTTPClient(client *http.Client) *UnbanPlayerParams

NewUnbanPlayerParamsWithHTTPClient creates a new UnbanPlayerParams object with the ability to set a custom HTTPClient for a request.

func NewUnbanPlayerParamsWithTimeout

func NewUnbanPlayerParamsWithTimeout(timeout time.Duration) *UnbanPlayerParams

NewUnbanPlayerParamsWithTimeout creates a new UnbanPlayerParams object with the ability to set a timeout on a request.

func (*UnbanPlayerParams) SetBody

func (o *UnbanPlayerParams) SetBody(body UnbanPlayerBody)

SetBody adds the body to the unban player params

func (*UnbanPlayerParams) SetContext

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

SetContext adds the context to the unban player params

func (*UnbanPlayerParams) SetDefaults

func (o *UnbanPlayerParams) SetDefaults()

SetDefaults hydrates default values in the unban player params (not the query body).

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

func (*UnbanPlayerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unban player params

func (*UnbanPlayerParams) SetServiceID

func (o *UnbanPlayerParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the unban player params

func (*UnbanPlayerParams) SetTimeout

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

SetTimeout adds the timeout to the unban player params

func (*UnbanPlayerParams) WithBody

WithBody adds the body to the unban player params

func (*UnbanPlayerParams) WithContext

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

WithContext adds the context to the unban player params

func (*UnbanPlayerParams) WithDefaults

func (o *UnbanPlayerParams) WithDefaults() *UnbanPlayerParams

WithDefaults hydrates default values in the unban player params (not the query body).

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

func (*UnbanPlayerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the unban player params

func (*UnbanPlayerParams) WithServiceID

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

WithServiceID adds the serviceID to the unban player params

func (*UnbanPlayerParams) WithTimeout

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

WithTimeout adds the timeout to the unban player params

func (*UnbanPlayerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UnbanPlayerReader

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

UnbanPlayerReader is a Reader for the UnbanPlayer structure.

func (*UnbanPlayerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UnbanPlayerServiceUnavailable

type UnbanPlayerServiceUnavailable struct {
	Payload *models.ErrorModel
}
UnbanPlayerServiceUnavailable 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 NewUnbanPlayerServiceUnavailable

func NewUnbanPlayerServiceUnavailable() *UnbanPlayerServiceUnavailable

NewUnbanPlayerServiceUnavailable creates a UnbanPlayerServiceUnavailable with default headers values

func (*UnbanPlayerServiceUnavailable) Error

func (*UnbanPlayerServiceUnavailable) GetPayload

type UnbanPlayerTooManyRequests

type UnbanPlayerTooManyRequests struct {
	Payload *models.ErrorModel
}
UnbanPlayerTooManyRequests 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 NewUnbanPlayerTooManyRequests

func NewUnbanPlayerTooManyRequests() *UnbanPlayerTooManyRequests

NewUnbanPlayerTooManyRequests creates a UnbanPlayerTooManyRequests with default headers values

func (*UnbanPlayerTooManyRequests) Error

func (*UnbanPlayerTooManyRequests) GetPayload

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

type UnbanPlayerUnauthorized

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

The provided access token is not valid (anymore).

func NewUnbanPlayerUnauthorized

func NewUnbanPlayerUnauthorized() *UnbanPlayerUnauthorized

NewUnbanPlayerUnauthorized creates a UnbanPlayerUnauthorized with default headers values

func (*UnbanPlayerUnauthorized) Error

func (o *UnbanPlayerUnauthorized) Error() string

func (*UnbanPlayerUnauthorized) GetPayload

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

type UnwhitelistPlayerBody

type UnwhitelistPlayerBody struct {

	// identifier
	Identifier string `json:"identifier,omitempty"`
}

UnwhitelistPlayerBody unwhitelist player body swagger:model UnwhitelistPlayerBody

func (*UnwhitelistPlayerBody) ContextValidate

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

ContextValidate validates this unwhitelist player body based on context it is used

func (*UnwhitelistPlayerBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UnwhitelistPlayerBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UnwhitelistPlayerBody) Validate

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

Validate validates this unwhitelist player body

type UnwhitelistPlayerDefault

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

Default error response.

func NewUnwhitelistPlayerDefault

func NewUnwhitelistPlayerDefault(code int) *UnwhitelistPlayerDefault

NewUnwhitelistPlayerDefault creates a UnwhitelistPlayerDefault with default headers values

func (*UnwhitelistPlayerDefault) Code

func (o *UnwhitelistPlayerDefault) Code() int

Code gets the status code for the unwhitelist player default response

func (*UnwhitelistPlayerDefault) Error

func (o *UnwhitelistPlayerDefault) Error() string

func (*UnwhitelistPlayerDefault) GetPayload

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

type UnwhitelistPlayerOK

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

success response

func NewUnwhitelistPlayerOK

func NewUnwhitelistPlayerOK() *UnwhitelistPlayerOK

NewUnwhitelistPlayerOK creates a UnwhitelistPlayerOK with default headers values

func (*UnwhitelistPlayerOK) Error

func (o *UnwhitelistPlayerOK) Error() string

func (*UnwhitelistPlayerOK) GetPayload

type UnwhitelistPlayerOKBody

type UnwhitelistPlayerOKBody struct {

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

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

UnwhitelistPlayerOKBody unwhitelist player o k body swagger:model UnwhitelistPlayerOKBody

func (*UnwhitelistPlayerOKBody) ContextValidate

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

ContextValidate validates this unwhitelist player o k body based on context it is used

func (*UnwhitelistPlayerOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UnwhitelistPlayerOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UnwhitelistPlayerOKBody) Validate

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

Validate validates this unwhitelist player o k body

type UnwhitelistPlayerParams

type UnwhitelistPlayerParams struct {

	/* Body.

	   Unwhitelist a player body
	*/
	Body UnwhitelistPlayerBody

	/* ServiceID.

	   Service identifier
	*/
	ServiceID string

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

UnwhitelistPlayerParams contains all the parameters to send to the API endpoint

for the unwhitelist player operation.

Typically these are written to a http.Request.

func NewUnwhitelistPlayerParams

func NewUnwhitelistPlayerParams() *UnwhitelistPlayerParams

NewUnwhitelistPlayerParams creates a new UnwhitelistPlayerParams 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 NewUnwhitelistPlayerParamsWithContext

func NewUnwhitelistPlayerParamsWithContext(ctx context.Context) *UnwhitelistPlayerParams

NewUnwhitelistPlayerParamsWithContext creates a new UnwhitelistPlayerParams object with the ability to set a context for a request.

func NewUnwhitelistPlayerParamsWithHTTPClient

func NewUnwhitelistPlayerParamsWithHTTPClient(client *http.Client) *UnwhitelistPlayerParams

NewUnwhitelistPlayerParamsWithHTTPClient creates a new UnwhitelistPlayerParams object with the ability to set a custom HTTPClient for a request.

func NewUnwhitelistPlayerParamsWithTimeout

func NewUnwhitelistPlayerParamsWithTimeout(timeout time.Duration) *UnwhitelistPlayerParams

NewUnwhitelistPlayerParamsWithTimeout creates a new UnwhitelistPlayerParams object with the ability to set a timeout on a request.

func (*UnwhitelistPlayerParams) SetBody

SetBody adds the body to the unwhitelist player params

func (*UnwhitelistPlayerParams) SetContext

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

SetContext adds the context to the unwhitelist player params

func (*UnwhitelistPlayerParams) SetDefaults

func (o *UnwhitelistPlayerParams) SetDefaults()

SetDefaults hydrates default values in the unwhitelist player params (not the query body).

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

func (*UnwhitelistPlayerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unwhitelist player params

func (*UnwhitelistPlayerParams) SetServiceID

func (o *UnwhitelistPlayerParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the unwhitelist player params

func (*UnwhitelistPlayerParams) SetTimeout

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

SetTimeout adds the timeout to the unwhitelist player params

func (*UnwhitelistPlayerParams) WithBody

WithBody adds the body to the unwhitelist player params

func (*UnwhitelistPlayerParams) WithContext

WithContext adds the context to the unwhitelist player params

func (*UnwhitelistPlayerParams) WithDefaults

WithDefaults hydrates default values in the unwhitelist player params (not the query body).

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

func (*UnwhitelistPlayerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the unwhitelist player params

func (*UnwhitelistPlayerParams) WithServiceID

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

WithServiceID adds the serviceID to the unwhitelist player params

func (*UnwhitelistPlayerParams) WithTimeout

WithTimeout adds the timeout to the unwhitelist player params

func (*UnwhitelistPlayerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UnwhitelistPlayerReader

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

UnwhitelistPlayerReader is a Reader for the UnwhitelistPlayer structure.

func (*UnwhitelistPlayerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UnwhitelistPlayerServiceUnavailable

type UnwhitelistPlayerServiceUnavailable struct {
	Payload *models.ErrorModel
}
UnwhitelistPlayerServiceUnavailable 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 NewUnwhitelistPlayerServiceUnavailable

func NewUnwhitelistPlayerServiceUnavailable() *UnwhitelistPlayerServiceUnavailable

NewUnwhitelistPlayerServiceUnavailable creates a UnwhitelistPlayerServiceUnavailable with default headers values

func (*UnwhitelistPlayerServiceUnavailable) Error

func (*UnwhitelistPlayerServiceUnavailable) GetPayload

type UnwhitelistPlayerTooManyRequests

type UnwhitelistPlayerTooManyRequests struct {
	Payload *models.ErrorModel
}
UnwhitelistPlayerTooManyRequests 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 NewUnwhitelistPlayerTooManyRequests

func NewUnwhitelistPlayerTooManyRequests() *UnwhitelistPlayerTooManyRequests

NewUnwhitelistPlayerTooManyRequests creates a UnwhitelistPlayerTooManyRequests with default headers values

func (*UnwhitelistPlayerTooManyRequests) Error

func (*UnwhitelistPlayerTooManyRequests) GetPayload

type UnwhitelistPlayerUnauthorized

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

The provided access token is not valid (anymore).

func NewUnwhitelistPlayerUnauthorized

func NewUnwhitelistPlayerUnauthorized() *UnwhitelistPlayerUnauthorized

NewUnwhitelistPlayerUnauthorized creates a UnwhitelistPlayerUnauthorized with default headers values

func (*UnwhitelistPlayerUnauthorized) Error

func (*UnwhitelistPlayerUnauthorized) GetPayload

type WhitelistPlayerBody

type WhitelistPlayerBody struct {

	// identifier
	Identifier string `json:"identifier,omitempty"`
}

WhitelistPlayerBody whitelist player body swagger:model WhitelistPlayerBody

func (*WhitelistPlayerBody) ContextValidate

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

ContextValidate validates this whitelist player body based on context it is used

func (*WhitelistPlayerBody) MarshalBinary

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

MarshalBinary interface implementation

func (*WhitelistPlayerBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*WhitelistPlayerBody) Validate

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

Validate validates this whitelist player body

type WhitelistPlayerDefault

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

Default error response.

func NewWhitelistPlayerDefault

func NewWhitelistPlayerDefault(code int) *WhitelistPlayerDefault

NewWhitelistPlayerDefault creates a WhitelistPlayerDefault with default headers values

func (*WhitelistPlayerDefault) Code

func (o *WhitelistPlayerDefault) Code() int

Code gets the status code for the whitelist player default response

func (*WhitelistPlayerDefault) Error

func (o *WhitelistPlayerDefault) Error() string

func (*WhitelistPlayerDefault) GetPayload

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

type WhitelistPlayerOK

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

success response

func NewWhitelistPlayerOK

func NewWhitelistPlayerOK() *WhitelistPlayerOK

NewWhitelistPlayerOK creates a WhitelistPlayerOK with default headers values

func (*WhitelistPlayerOK) Error

func (o *WhitelistPlayerOK) Error() string

func (*WhitelistPlayerOK) GetPayload

func (o *WhitelistPlayerOK) GetPayload() *WhitelistPlayerOKBody

type WhitelistPlayerOKBody

type WhitelistPlayerOKBody struct {

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

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

WhitelistPlayerOKBody whitelist player o k body swagger:model WhitelistPlayerOKBody

func (*WhitelistPlayerOKBody) ContextValidate

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

ContextValidate validates this whitelist player o k body based on context it is used

func (*WhitelistPlayerOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*WhitelistPlayerOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*WhitelistPlayerOKBody) Validate

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

Validate validates this whitelist player o k body

type WhitelistPlayerParams

type WhitelistPlayerParams struct {

	/* Body.

	   Whitelist a player body
	*/
	Body WhitelistPlayerBody

	/* ServiceID.

	   Service identifier
	*/
	ServiceID string

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

WhitelistPlayerParams contains all the parameters to send to the API endpoint

for the whitelist player operation.

Typically these are written to a http.Request.

func NewWhitelistPlayerParams

func NewWhitelistPlayerParams() *WhitelistPlayerParams

NewWhitelistPlayerParams creates a new WhitelistPlayerParams 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 NewWhitelistPlayerParamsWithContext

func NewWhitelistPlayerParamsWithContext(ctx context.Context) *WhitelistPlayerParams

NewWhitelistPlayerParamsWithContext creates a new WhitelistPlayerParams object with the ability to set a context for a request.

func NewWhitelistPlayerParamsWithHTTPClient

func NewWhitelistPlayerParamsWithHTTPClient(client *http.Client) *WhitelistPlayerParams

NewWhitelistPlayerParamsWithHTTPClient creates a new WhitelistPlayerParams object with the ability to set a custom HTTPClient for a request.

func NewWhitelistPlayerParamsWithTimeout

func NewWhitelistPlayerParamsWithTimeout(timeout time.Duration) *WhitelistPlayerParams

NewWhitelistPlayerParamsWithTimeout creates a new WhitelistPlayerParams object with the ability to set a timeout on a request.

func (*WhitelistPlayerParams) SetBody

func (o *WhitelistPlayerParams) SetBody(body WhitelistPlayerBody)

SetBody adds the body to the whitelist player params

func (*WhitelistPlayerParams) SetContext

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

SetContext adds the context to the whitelist player params

func (*WhitelistPlayerParams) SetDefaults

func (o *WhitelistPlayerParams) SetDefaults()

SetDefaults hydrates default values in the whitelist player params (not the query body).

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

func (*WhitelistPlayerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the whitelist player params

func (*WhitelistPlayerParams) SetServiceID

func (o *WhitelistPlayerParams) SetServiceID(serviceID string)

SetServiceID adds the serviceId to the whitelist player params

func (*WhitelistPlayerParams) SetTimeout

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

SetTimeout adds the timeout to the whitelist player params

func (*WhitelistPlayerParams) WithBody

WithBody adds the body to the whitelist player params

func (*WhitelistPlayerParams) WithContext

WithContext adds the context to the whitelist player params

func (*WhitelistPlayerParams) WithDefaults

func (o *WhitelistPlayerParams) WithDefaults() *WhitelistPlayerParams

WithDefaults hydrates default values in the whitelist player params (not the query body).

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

func (*WhitelistPlayerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the whitelist player params

func (*WhitelistPlayerParams) WithServiceID

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

WithServiceID adds the serviceID to the whitelist player params

func (*WhitelistPlayerParams) WithTimeout

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

WithTimeout adds the timeout to the whitelist player params

func (*WhitelistPlayerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type WhitelistPlayerReader

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

WhitelistPlayerReader is a Reader for the WhitelistPlayer structure.

func (*WhitelistPlayerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type WhitelistPlayerServiceUnavailable

type WhitelistPlayerServiceUnavailable struct {
	Payload *models.ErrorModel
}
WhitelistPlayerServiceUnavailable 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 NewWhitelistPlayerServiceUnavailable

func NewWhitelistPlayerServiceUnavailable() *WhitelistPlayerServiceUnavailable

NewWhitelistPlayerServiceUnavailable creates a WhitelistPlayerServiceUnavailable with default headers values

func (*WhitelistPlayerServiceUnavailable) Error

func (*WhitelistPlayerServiceUnavailable) GetPayload

type WhitelistPlayerTooManyRequests

type WhitelistPlayerTooManyRequests struct {
	Payload *models.ErrorModel
}
WhitelistPlayerTooManyRequests 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 NewWhitelistPlayerTooManyRequests

func NewWhitelistPlayerTooManyRequests() *WhitelistPlayerTooManyRequests

NewWhitelistPlayerTooManyRequests creates a WhitelistPlayerTooManyRequests with default headers values

func (*WhitelistPlayerTooManyRequests) Error

func (*WhitelistPlayerTooManyRequests) GetPayload

type WhitelistPlayerUnauthorized

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

The provided access token is not valid (anymore).

func NewWhitelistPlayerUnauthorized

func NewWhitelistPlayerUnauthorized() *WhitelistPlayerUnauthorized

NewWhitelistPlayerUnauthorized creates a WhitelistPlayerUnauthorized with default headers values

func (*WhitelistPlayerUnauthorized) Error

func (*WhitelistPlayerUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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