service

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 service API

func (*Client) GetServices

func (a *Client) GetServices(params *GetServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServicesOK, error)

GetServices gets all services

Get a list of all services for an account.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetServices(params *GetServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServicesOK, 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 service API client.

type GetServicesDefault

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

Default error response.

func NewGetServicesDefault

func NewGetServicesDefault(code int) *GetServicesDefault

NewGetServicesDefault creates a GetServicesDefault with default headers values

func (*GetServicesDefault) Code

func (o *GetServicesDefault) Code() int

Code gets the status code for the get services default response

func (*GetServicesDefault) Error

func (o *GetServicesDefault) Error() string

func (*GetServicesDefault) GetPayload

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

type GetServicesOK

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

success response

func NewGetServicesOK

func NewGetServicesOK() *GetServicesOK

NewGetServicesOK creates a GetServicesOK with default headers values

func (*GetServicesOK) Error

func (o *GetServicesOK) Error() string

func (*GetServicesOK) GetPayload

func (o *GetServicesOK) GetPayload() *GetServicesOKBody

type GetServicesOKBody

type GetServicesOKBody struct {

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

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

GetServicesOKBody get services o k body swagger:model GetServicesOKBody

func (*GetServicesOKBody) ContextValidate

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

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

func (*GetServicesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetServicesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetServicesOKBody) Validate

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

Validate validates this get services o k body

type GetServicesOKBodyData

type GetServicesOKBodyData struct {

	// services
	Services []*GetServicesOKBodyDataServicesItems0 `json:"services"`
}

GetServicesOKBodyData get services o k body data swagger:model GetServicesOKBodyData

func (*GetServicesOKBodyData) ContextValidate

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

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

func (*GetServicesOKBodyData) MarshalBinary

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

MarshalBinary interface implementation

func (*GetServicesOKBodyData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetServicesOKBodyData) Validate

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

Validate validates this get services o k body data

type GetServicesOKBodyDataServicesItems0

type GetServicesOKBodyDataServicesItems0 struct {

	// auto extension
	AutoExtension bool `json:"auto_extension,omitempty"`

	// auto extension duration
	AutoExtensionDuration int32 `json:"auto_extension_duration,omitempty"`

	// auto extension external
	AutoExtensionExternal bool `json:"auto_extension_external,omitempty"`

	// comment
	Comment string `json:"comment,omitempty"`

	// delete date
	DeleteDate string `json:"delete_date,omitempty"`

	// deleting in
	DeletingIn int32 `json:"deleting_in,omitempty"`

	// details
	Details *GetServicesOKBodyDataServicesItems0Details `json:"details,omitempty"`

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

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

	// managedroot id
	ManagedrootID string `json:"managedroot_id,omitempty"`

	// roles
	Roles []string `json:"roles"`

	// start date
	StartDate string `json:"start_date,omitempty"`

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

	// suspend date
	SuspendDate string `json:"suspend_date,omitempty"`

	// suspending in
	SuspendingIn int32 `json:"suspending_in,omitempty"`

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

	// type human
	TypeHuman string `json:"type_human,omitempty"`

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

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

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

GetServicesOKBodyDataServicesItems0 get services o k body data services items0 swagger:model GetServicesOKBodyDataServicesItems0

func (*GetServicesOKBodyDataServicesItems0) ContextValidate

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

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

func (*GetServicesOKBodyDataServicesItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetServicesOKBodyDataServicesItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetServicesOKBodyDataServicesItems0) Validate

Validate validates this get services o k body data services items0

type GetServicesOKBodyDataServicesItems0Details

type GetServicesOKBodyDataServicesItems0Details struct {

	// address
	Address string `json:"address,omitempty"`

	// folder short
	FolderShort string `json:"folder_short,omitempty"`

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

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

	// portlist short
	PortlistShort string `json:"portlist_short,omitempty"`

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

GetServicesOKBodyDataServicesItems0Details get services o k body data services items0 details swagger:model GetServicesOKBodyDataServicesItems0Details

func (*GetServicesOKBodyDataServicesItems0Details) ContextValidate

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

func (*GetServicesOKBodyDataServicesItems0Details) MarshalBinary

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

MarshalBinary interface implementation

func (*GetServicesOKBodyDataServicesItems0Details) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetServicesOKBodyDataServicesItems0Details) Validate

Validate validates this get services o k body data services items0 details

type GetServicesParams

type GetServicesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetServicesParams contains all the parameters to send to the API endpoint

for the get services operation.

Typically these are written to a http.Request.

func NewGetServicesParams

func NewGetServicesParams() *GetServicesParams

NewGetServicesParams creates a new GetServicesParams 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 NewGetServicesParamsWithContext

func NewGetServicesParamsWithContext(ctx context.Context) *GetServicesParams

NewGetServicesParamsWithContext creates a new GetServicesParams object with the ability to set a context for a request.

func NewGetServicesParamsWithHTTPClient

func NewGetServicesParamsWithHTTPClient(client *http.Client) *GetServicesParams

NewGetServicesParamsWithHTTPClient creates a new GetServicesParams object with the ability to set a custom HTTPClient for a request.

func NewGetServicesParamsWithTimeout

func NewGetServicesParamsWithTimeout(timeout time.Duration) *GetServicesParams

NewGetServicesParamsWithTimeout creates a new GetServicesParams object with the ability to set a timeout on a request.

func (*GetServicesParams) SetContext

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

SetContext adds the context to the get services params

func (*GetServicesParams) SetDefaults

func (o *GetServicesParams) SetDefaults()

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

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

func (*GetServicesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get services params

func (*GetServicesParams) SetTimeout

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

SetTimeout adds the timeout to the get services params

func (*GetServicesParams) WithContext

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

WithContext adds the context to the get services params

func (*GetServicesParams) WithDefaults

func (o *GetServicesParams) WithDefaults() *GetServicesParams

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

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

func (*GetServicesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get services params

func (*GetServicesParams) WithTimeout

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

WithTimeout adds the timeout to the get services params

func (*GetServicesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetServicesReader

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

GetServicesReader is a Reader for the GetServices structure.

func (*GetServicesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServicesServiceUnavailable

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

func NewGetServicesServiceUnavailable() *GetServicesServiceUnavailable

NewGetServicesServiceUnavailable creates a GetServicesServiceUnavailable with default headers values

func (*GetServicesServiceUnavailable) Error

func (*GetServicesServiceUnavailable) GetPayload

type GetServicesTooManyRequests

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

func NewGetServicesTooManyRequests() *GetServicesTooManyRequests

NewGetServicesTooManyRequests creates a GetServicesTooManyRequests with default headers values

func (*GetServicesTooManyRequests) Error

func (*GetServicesTooManyRequests) GetPayload

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

type GetServicesUnauthorized

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

The provided access token is not valid (anymore).

func NewGetServicesUnauthorized

func NewGetServicesUnauthorized() *GetServicesUnauthorized

NewGetServicesUnauthorized creates a GetServicesUnauthorized with default headers values

func (*GetServicesUnauthorized) Error

func (o *GetServicesUnauthorized) Error() string

func (*GetServicesUnauthorized) GetPayload

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

Jump to

Keyboard shortcuts

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