servers

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: BSD-3-Clause, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CreateServerParamsBodyDataAttributesBillingHourly captures enum value "hourly"
	CreateServerParamsBodyDataAttributesBillingHourly string = "hourly"

	// CreateServerParamsBodyDataAttributesBillingMonthly captures enum value "monthly"
	CreateServerParamsBodyDataAttributesBillingMonthly string = "monthly"

	// CreateServerParamsBodyDataAttributesBillingYearly captures enum value "yearly"
	CreateServerParamsBodyDataAttributesBillingYearly string = "yearly"
)
View Source
const (

	// CreateServerParamsBodyDataAttributesOperatingSystemIpxe captures enum value "ipxe"
	CreateServerParamsBodyDataAttributesOperatingSystemIpxe string = "ipxe"

	// CreateServerParamsBodyDataAttributesOperatingSystemWindowsServer2019StdV1 captures enum value "windows_server_2019_std_v1"
	CreateServerParamsBodyDataAttributesOperatingSystemWindowsServer2019StdV1 string = "windows_server_2019_std_v1"

	// CreateServerParamsBodyDataAttributesOperatingSystemUbuntu2204X64Lts captures enum value "ubuntu_22_04_x64_lts"
	CreateServerParamsBodyDataAttributesOperatingSystemUbuntu2204X64Lts string = "ubuntu_22_04_x64_lts"

	// CreateServerParamsBodyDataAttributesOperatingSystemDebian11 captures enum value "debian_11"
	CreateServerParamsBodyDataAttributesOperatingSystemDebian11 string = "debian_11"

	// CreateServerParamsBodyDataAttributesOperatingSystemRockylinux8 captures enum value "rockylinux_8"
	CreateServerParamsBodyDataAttributesOperatingSystemRockylinux8 string = "rockylinux_8"

	// CreateServerParamsBodyDataAttributesOperatingSystemDebian10 captures enum value "debian_10"
	CreateServerParamsBodyDataAttributesOperatingSystemDebian10 string = "debian_10"

	// CreateServerParamsBodyDataAttributesOperatingSystemRhel8 captures enum value "rhel8"
	CreateServerParamsBodyDataAttributesOperatingSystemRhel8 string = "rhel8"

	// CreateServerParamsBodyDataAttributesOperatingSystemCentos74X64 captures enum value "centos_7_4_x64"
	CreateServerParamsBodyDataAttributesOperatingSystemCentos74X64 string = "centos_7_4_x64"

	// CreateServerParamsBodyDataAttributesOperatingSystemCentos8X64 captures enum value "centos_8_x64"
	CreateServerParamsBodyDataAttributesOperatingSystemCentos8X64 string = "centos_8_x64"

	// CreateServerParamsBodyDataAttributesOperatingSystemUbuntu2004X64Lts captures enum value "ubuntu_20_04_x64_lts"
	CreateServerParamsBodyDataAttributesOperatingSystemUbuntu2004X64Lts string = "ubuntu_20_04_x64_lts"

	// CreateServerParamsBodyDataAttributesOperatingSystemDebian12 captures enum value "debian_12"
	CreateServerParamsBodyDataAttributesOperatingSystemDebian12 string = "debian_12"

	// CreateServerParamsBodyDataAttributesOperatingSystemUbuntu22MlInaBox captures enum value "ubuntu22_ml_in_a_box"
	CreateServerParamsBodyDataAttributesOperatingSystemUbuntu22MlInaBox string = "ubuntu22_ml_in_a_box"

	// CreateServerParamsBodyDataAttributesOperatingSystemWindows2022 captures enum value "windows2022"
	CreateServerParamsBodyDataAttributesOperatingSystemWindows2022 string = "windows2022"
)
View Source
const (

	// CreateServerParamsBodyDataAttributesPlanC2DashLargeDashX86 captures enum value "c2-large-x86"
	CreateServerParamsBodyDataAttributesPlanC2DashLargeDashX86 string = "c2-large-x86"

	// CreateServerParamsBodyDataAttributesPlanC2DashMediumDashX86 captures enum value "c2-medium-x86"
	CreateServerParamsBodyDataAttributesPlanC2DashMediumDashX86 string = "c2-medium-x86"

	// CreateServerParamsBodyDataAttributesPlanC2DashSmallDashX86 captures enum value "c2-small-x86"
	CreateServerParamsBodyDataAttributesPlanC2DashSmallDashX86 string = "c2-small-x86"

	// CreateServerParamsBodyDataAttributesPlanC3DashLargeDashX86 captures enum value "c3-large-x86"
	CreateServerParamsBodyDataAttributesPlanC3DashLargeDashX86 string = "c3-large-x86"

	// CreateServerParamsBodyDataAttributesPlanC3DashMediumDashX86 captures enum value "c3-medium-x86"
	CreateServerParamsBodyDataAttributesPlanC3DashMediumDashX86 string = "c3-medium-x86"

	// CreateServerParamsBodyDataAttributesPlanC3DashSmallDashX86 captures enum value "c3-small-x86"
	CreateServerParamsBodyDataAttributesPlanC3DashSmallDashX86 string = "c3-small-x86"

	// CreateServerParamsBodyDataAttributesPlanC3DashXlargeDashX86 captures enum value "c3-xlarge-x86"
	CreateServerParamsBodyDataAttributesPlanC3DashXlargeDashX86 string = "c3-xlarge-x86"

	// CreateServerParamsBodyDataAttributesPlanG3DashLargeDashX86 captures enum value "g3-large-x86"
	CreateServerParamsBodyDataAttributesPlanG3DashLargeDashX86 string = "g3-large-x86"

	// CreateServerParamsBodyDataAttributesPlanG3DashMediumDashX86 captures enum value "g3-medium-x86"
	CreateServerParamsBodyDataAttributesPlanG3DashMediumDashX86 string = "g3-medium-x86"

	// CreateServerParamsBodyDataAttributesPlanG3DashSmallDashX86 captures enum value "g3-small-x86"
	CreateServerParamsBodyDataAttributesPlanG3DashSmallDashX86 string = "g3-small-x86"

	// CreateServerParamsBodyDataAttributesPlanG3DashXlargeDashX86 captures enum value "g3-xlarge-x86"
	CreateServerParamsBodyDataAttributesPlanG3DashXlargeDashX86 string = "g3-xlarge-x86"

	// CreateServerParamsBodyDataAttributesPlanM3DashLargeDashX86 captures enum value "m3-large-x86"
	CreateServerParamsBodyDataAttributesPlanM3DashLargeDashX86 string = "m3-large-x86"

	// CreateServerParamsBodyDataAttributesPlanS2DashSmallDashX86 captures enum value "s2-small-x86"
	CreateServerParamsBodyDataAttributesPlanS2DashSmallDashX86 string = "s2-small-x86"

	// CreateServerParamsBodyDataAttributesPlanS3DashLargeDashX86 captures enum value "s3-large-x86"
	CreateServerParamsBodyDataAttributesPlanS3DashLargeDashX86 string = "s3-large-x86"
)
View Source
const (

	// CreateServerParamsBodyDataAttributesRaidRaidDash0 captures enum value "raid-0"
	CreateServerParamsBodyDataAttributesRaidRaidDash0 string = "raid-0"

	// CreateServerParamsBodyDataAttributesRaidRaidDash1 captures enum value "raid-1"
	CreateServerParamsBodyDataAttributesRaidRaidDash1 string = "raid-1"
)
View Source
const (

	// CreateServerParamsBodyDataAttributesSiteASH captures enum value "ASH"
	CreateServerParamsBodyDataAttributesSiteASH string = "ASH"

	// CreateServerParamsBodyDataAttributesSiteBGT captures enum value "BGT"
	CreateServerParamsBodyDataAttributesSiteBGT string = "BGT"

	// CreateServerParamsBodyDataAttributesSiteBUE captures enum value "BUE"
	CreateServerParamsBodyDataAttributesSiteBUE string = "BUE"

	// CreateServerParamsBodyDataAttributesSiteCHI captures enum value "CHI"
	CreateServerParamsBodyDataAttributesSiteCHI string = "CHI"

	// CreateServerParamsBodyDataAttributesSiteDAL captures enum value "DAL"
	CreateServerParamsBodyDataAttributesSiteDAL string = "DAL"

	// CreateServerParamsBodyDataAttributesSiteFRA captures enum value "FRA"
	CreateServerParamsBodyDataAttributesSiteFRA string = "FRA"

	// CreateServerParamsBodyDataAttributesSiteLAX captures enum value "LAX"
	CreateServerParamsBodyDataAttributesSiteLAX string = "LAX"

	// CreateServerParamsBodyDataAttributesSiteLON captures enum value "LON"
	CreateServerParamsBodyDataAttributesSiteLON string = "LON"

	// CreateServerParamsBodyDataAttributesSiteMEX captures enum value "MEX"
	CreateServerParamsBodyDataAttributesSiteMEX string = "MEX"

	// CreateServerParamsBodyDataAttributesSiteMEX2 captures enum value "MEX2"
	CreateServerParamsBodyDataAttributesSiteMEX2 string = "MEX2"

	// CreateServerParamsBodyDataAttributesSiteMIA captures enum value "MIA"
	CreateServerParamsBodyDataAttributesSiteMIA string = "MIA"

	// CreateServerParamsBodyDataAttributesSiteMIA2 captures enum value "MIA2"
	CreateServerParamsBodyDataAttributesSiteMIA2 string = "MIA2"

	// CreateServerParamsBodyDataAttributesSiteNYC captures enum value "NYC"
	CreateServerParamsBodyDataAttributesSiteNYC string = "NYC"

	// CreateServerParamsBodyDataAttributesSiteSAN captures enum value "SAN"
	CreateServerParamsBodyDataAttributesSiteSAN string = "SAN"

	// CreateServerParamsBodyDataAttributesSiteSAN2 captures enum value "SAN2"
	CreateServerParamsBodyDataAttributesSiteSAN2 string = "SAN2"

	// CreateServerParamsBodyDataAttributesSiteSAO captures enum value "SAO"
	CreateServerParamsBodyDataAttributesSiteSAO string = "SAO"

	// CreateServerParamsBodyDataAttributesSiteSAO2 captures enum value "SAO2"
	CreateServerParamsBodyDataAttributesSiteSAO2 string = "SAO2"

	// CreateServerParamsBodyDataAttributesSiteSYD captures enum value "SYD"
	CreateServerParamsBodyDataAttributesSiteSYD string = "SYD"

	// CreateServerParamsBodyDataAttributesSiteTYO captures enum value "TYO"
	CreateServerParamsBodyDataAttributesSiteTYO string = "TYO"

	// CreateServerParamsBodyDataAttributesSiteTYO2 captures enum value "TYO2"
	CreateServerParamsBodyDataAttributesSiteTYO2 string = "TYO2"
)
View Source
const (

	// CreateServerParamsBodyDataTypeServers captures enum value "servers"
	CreateServerParamsBodyDataTypeServers string = "servers"
)
View Source
const (

	// UpdateServerBodyTypeServers captures enum value "servers"
	UpdateServerBodyTypeServers string = "servers"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for servers API

func (*Client) CreateServer

func (a *Client) CreateServer(params *CreateServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateServerCreated, error)

CreateServer deploys a new server

func (*Client) DestroyServer

func (a *Client) DestroyServer(params *DestroyServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyServerNoContent, error)

DestroyServer removes a server

func (*Client) GetServer

func (a *Client) GetServer(params *GetServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServerOK, error)

GetServer retrieves a server

Returns a server that belongs to the team.

func (*Client) GetServers

func (a *Client) GetServers(params *GetServersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServersOK, error)

GetServers lists all servers

Returns a list of all servers belonging to the team.

func (*Client) ServerScheduleDeletion

func (a *Client) ServerScheduleDeletion(params *ServerScheduleDeletionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerScheduleDeletionCreated, error)

ServerScheduleDeletion schedules the server deletion

Schedules the server to be removed at the end of the billing cycle.

func (*Client) ServerUnscheduleDeletion

ServerUnscheduleDeletion unschedules the server deletion

Unschedules the server removal at the end of the billing cycle.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateServer

func (a *Client) UpdateServer(params *UpdateServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateServerOK, error)

UpdateServer updates a server

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateServer(params *CreateServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateServerCreated, error)

	DestroyServer(params *DestroyServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyServerNoContent, error)

	GetServer(params *GetServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServerOK, error)

	GetServers(params *GetServersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServersOK, error)

	ServerScheduleDeletion(params *ServerScheduleDeletionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerScheduleDeletionCreated, error)

	ServerUnscheduleDeletion(params *ServerUnscheduleDeletionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerUnscheduleDeletionNoContent, error)

	UpdateServer(params *UpdateServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateServerOK, 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 servers API client.

type CreateServerBody

type CreateServerBody struct {

	// data
	Data *CreateServerParamsBodyData `json:"data,omitempty"`
}

CreateServerBody create server body swagger:model CreateServerBody

func (*CreateServerBody) ContextValidate

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

ContextValidate validate this create server body based on the context it is used

func (*CreateServerBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateServerBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateServerBody) Validate

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

Validate validates this create server body

type CreateServerCreated

type CreateServerCreated struct {
	Payload *models.Server
}

CreateServerCreated describes a response with status code 201, with default header values.

Created

func NewCreateServerCreated

func NewCreateServerCreated() *CreateServerCreated

NewCreateServerCreated creates a CreateServerCreated with default headers values

func (*CreateServerCreated) Code

func (o *CreateServerCreated) Code() int

Code gets the status code for the create server created response

func (*CreateServerCreated) Error

func (o *CreateServerCreated) Error() string

func (*CreateServerCreated) GetData

func (o *CreateServerCreated) GetData() []renderer.ResponseData

func (*CreateServerCreated) GetPayload

func (o *CreateServerCreated) GetPayload() *models.Server

func (*CreateServerCreated) IsClientError

func (o *CreateServerCreated) IsClientError() bool

IsClientError returns true when this create server created response has a 4xx status code

func (*CreateServerCreated) IsCode

func (o *CreateServerCreated) IsCode(code int) bool

IsCode returns true when this create server created response a status code equal to that given

func (*CreateServerCreated) IsRedirect

func (o *CreateServerCreated) IsRedirect() bool

IsRedirect returns true when this create server created response has a 3xx status code

func (*CreateServerCreated) IsServerError

func (o *CreateServerCreated) IsServerError() bool

IsServerError returns true when this create server created response has a 5xx status code

func (*CreateServerCreated) IsSuccess

func (o *CreateServerCreated) IsSuccess() bool

IsSuccess returns true when this create server created response has a 2xx status code

func (*CreateServerCreated) String

func (o *CreateServerCreated) String() string

type CreateServerParams

type CreateServerParams struct {

	// Body.
	Body CreateServerBody

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

CreateServerParams contains all the parameters to send to the API endpoint

for the create server operation.

Typically these are written to a http.Request.

func NewCreateServerParams

func NewCreateServerParams() *CreateServerParams

NewCreateServerParams creates a new CreateServerParams 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 NewCreateServerParamsWithContext

func NewCreateServerParamsWithContext(ctx context.Context) *CreateServerParams

NewCreateServerParamsWithContext creates a new CreateServerParams object with the ability to set a context for a request.

func NewCreateServerParamsWithHTTPClient

func NewCreateServerParamsWithHTTPClient(client *http.Client) *CreateServerParams

NewCreateServerParamsWithHTTPClient creates a new CreateServerParams object with the ability to set a custom HTTPClient for a request.

func NewCreateServerParamsWithTimeout

func NewCreateServerParamsWithTimeout(timeout time.Duration) *CreateServerParams

NewCreateServerParamsWithTimeout creates a new CreateServerParams object with the ability to set a timeout on a request.

func (*CreateServerParams) SetBody

func (o *CreateServerParams) SetBody(body CreateServerBody)

SetBody adds the body to the create server params

func (*CreateServerParams) SetContext

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

SetContext adds the context to the create server params

func (*CreateServerParams) SetDefaults

func (o *CreateServerParams) SetDefaults()

SetDefaults hydrates default values in the create server params (not the query body).

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

func (*CreateServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create server params

func (*CreateServerParams) SetTimeout

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

SetTimeout adds the timeout to the create server params

func (*CreateServerParams) WithBody

WithBody adds the body to the create server params

func (*CreateServerParams) WithContext

WithContext adds the context to the create server params

func (*CreateServerParams) WithDefaults

func (o *CreateServerParams) WithDefaults() *CreateServerParams

WithDefaults hydrates default values in the create server params (not the query body).

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

func (*CreateServerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create server params

func (*CreateServerParams) WithTimeout

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

WithTimeout adds the timeout to the create server params

func (*CreateServerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateServerParamsBodyData

type CreateServerParamsBodyData struct {

	// attributes
	Attributes *CreateServerParamsBodyDataAttributes `json:"attributes,omitempty"`

	// type
	// Required: true
	// Enum: [servers]
	Type *string `json:"type"`
}

CreateServerParamsBodyData create server params body data swagger:model CreateServerParamsBodyData

func (*CreateServerParamsBodyData) ContextValidate

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

ContextValidate validate this create server params body data based on the context it is used

func (*CreateServerParamsBodyData) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateServerParamsBodyData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateServerParamsBodyData) Validate

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

Validate validates this create server params body data

type CreateServerParamsBodyDataAttributes

type CreateServerParamsBodyDataAttributes struct {

	// The server billing type. Accepts `hourly` and `monthly` for on demand projects and `yearly` for reserved projects.
	// Enum: [hourly monthly yearly]
	Billing string `json:"billing,omitempty"`

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

	// URL where iPXE script is stored on, necessary for custom image deployments.This attribute is required when iPXE is selected as operating system.
	IpxeURL string `json:"ipxe_url,omitempty"`

	// The operating system for the new server
	// Enum: [ipxe windows_server_2019_std_v1 ubuntu_22_04_x64_lts debian_11 rockylinux_8 debian_10 rhel8 centos_7_4_x64 centos_8_x64 ubuntu_20_04_x64_lts debian_12 ubuntu22_ml_in_a_box windows2022]
	OperatingSystem string `json:"operating_system,omitempty"`

	// The plan to choose server from
	// Enum: [c2-large-x86 c2-medium-x86 c2-small-x86 c3-large-x86 c3-medium-x86 c3-small-x86 c3-xlarge-x86 g3-large-x86 g3-medium-x86 g3-small-x86 g3-xlarge-x86 m3-large-x86 s2-small-x86 s3-large-x86]
	Plan string `json:"plan,omitempty"`

	// The project (ID or Slug) to deploy the server
	Project string `json:"project,omitempty"`

	// RAID mode for the server
	// Enum: [raid-0 raid-1]
	Raid string `json:"raid,omitempty"`

	// The site to deploy the server
	// Enum: [ASH BGT BUE CHI DAL FRA LAX LON MEX MEX2 MIA MIA2 NYC SAN SAN2 SAO SAO2 SYD TYO TYO2]
	Site string `json:"site,omitempty"`

	// SSH Keys to set on the server
	SSHKeys []string `json:"ssh_keys,omitempty"`

	// User data to set on the server
	UserData int64 `json:"user_data,omitempty"`
}

CreateServerParamsBodyDataAttributes create server params body data attributes swagger:model CreateServerParamsBodyDataAttributes

func (*CreateServerParamsBodyDataAttributes) ContextValidate

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

ContextValidate validates this create server params body data attributes based on context it is used

func (*CreateServerParamsBodyDataAttributes) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateServerParamsBodyDataAttributes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateServerParamsBodyDataAttributes) Validate

Validate validates this create server params body data attributes

type CreateServerReader

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

CreateServerReader is a Reader for the CreateServer structure.

func (*CreateServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DestroyServerNoContent

type DestroyServerNoContent struct {
}

DestroyServerNoContent describes a response with status code 204, with default header values.

No Content

func NewDestroyServerNoContent

func NewDestroyServerNoContent() *DestroyServerNoContent

NewDestroyServerNoContent creates a DestroyServerNoContent with default headers values

func (*DestroyServerNoContent) Code

func (o *DestroyServerNoContent) Code() int

Code gets the status code for the destroy server no content response

func (*DestroyServerNoContent) Error

func (o *DestroyServerNoContent) Error() string

func (*DestroyServerNoContent) IsClientError

func (o *DestroyServerNoContent) IsClientError() bool

IsClientError returns true when this destroy server no content response has a 4xx status code

func (*DestroyServerNoContent) IsCode

func (o *DestroyServerNoContent) IsCode(code int) bool

IsCode returns true when this destroy server no content response a status code equal to that given

func (*DestroyServerNoContent) IsRedirect

func (o *DestroyServerNoContent) IsRedirect() bool

IsRedirect returns true when this destroy server no content response has a 3xx status code

func (*DestroyServerNoContent) IsServerError

func (o *DestroyServerNoContent) IsServerError() bool

IsServerError returns true when this destroy server no content response has a 5xx status code

func (*DestroyServerNoContent) IsSuccess

func (o *DestroyServerNoContent) IsSuccess() bool

IsSuccess returns true when this destroy server no content response has a 2xx status code

func (*DestroyServerNoContent) Render

func (o *DestroyServerNoContent) Render()

func (*DestroyServerNoContent) String

func (o *DestroyServerNoContent) String() string

type DestroyServerParams

type DestroyServerParams struct {
	ID string `json:"id"`

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

DestroyServerParams contains all the parameters to send to the API endpoint

for the destroy server operation.

Typically these are written to a http.Request.

func NewDestroyServerParams

func NewDestroyServerParams() *DestroyServerParams

NewDestroyServerParams creates a new DestroyServerParams 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 NewDestroyServerParamsWithContext

func NewDestroyServerParamsWithContext(ctx context.Context) *DestroyServerParams

NewDestroyServerParamsWithContext creates a new DestroyServerParams object with the ability to set a context for a request.

func NewDestroyServerParamsWithHTTPClient

func NewDestroyServerParamsWithHTTPClient(client *http.Client) *DestroyServerParams

NewDestroyServerParamsWithHTTPClient creates a new DestroyServerParams object with the ability to set a custom HTTPClient for a request.

func NewDestroyServerParamsWithTimeout

func NewDestroyServerParamsWithTimeout(timeout time.Duration) *DestroyServerParams

NewDestroyServerParamsWithTimeout creates a new DestroyServerParams object with the ability to set a timeout on a request.

func (*DestroyServerParams) SetContext

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

SetContext adds the context to the destroy server params

func (*DestroyServerParams) SetDefaults

func (o *DestroyServerParams) SetDefaults()

SetDefaults hydrates default values in the destroy server params (not the query body).

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

func (*DestroyServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the destroy server params

func (*DestroyServerParams) SetID

func (o *DestroyServerParams) SetID(id string)

SetID adds the id to the destroy server params

func (*DestroyServerParams) SetTimeout

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

SetTimeout adds the timeout to the destroy server params

func (*DestroyServerParams) WithContext

WithContext adds the context to the destroy server params

func (*DestroyServerParams) WithDefaults

func (o *DestroyServerParams) WithDefaults() *DestroyServerParams

WithDefaults hydrates default values in the destroy server params (not the query body).

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

func (*DestroyServerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the destroy server params

func (*DestroyServerParams) WithID

WithID adds the id to the destroy server params

func (*DestroyServerParams) WithTimeout

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

WithTimeout adds the timeout to the destroy server params

func (*DestroyServerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DestroyServerReader

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

DestroyServerReader is a Reader for the DestroyServer structure.

func (*DestroyServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServerOK

type GetServerOK struct {
	Payload *models.Server
}

GetServerOK describes a response with status code 200, with default header values.

Success

func NewGetServerOK

func NewGetServerOK() *GetServerOK

NewGetServerOK creates a GetServerOK with default headers values

func (*GetServerOK) Code

func (o *GetServerOK) Code() int

Code gets the status code for the get server o k response

func (*GetServerOK) Error

func (o *GetServerOK) Error() string

func (*GetServerOK) GetData

func (o *GetServerOK) GetData() []renderer.ResponseData

func (*GetServerOK) GetPayload

func (o *GetServerOK) GetPayload() *models.Server

func (*GetServerOK) IsClientError

func (o *GetServerOK) IsClientError() bool

IsClientError returns true when this get server o k response has a 4xx status code

func (*GetServerOK) IsCode

func (o *GetServerOK) IsCode(code int) bool

IsCode returns true when this get server o k response a status code equal to that given

func (*GetServerOK) IsRedirect

func (o *GetServerOK) IsRedirect() bool

IsRedirect returns true when this get server o k response has a 3xx status code

func (*GetServerOK) IsServerError

func (o *GetServerOK) IsServerError() bool

IsServerError returns true when this get server o k response has a 5xx status code

func (*GetServerOK) IsSuccess

func (o *GetServerOK) IsSuccess() bool

IsSuccess returns true when this get server o k response has a 2xx status code

func (*GetServerOK) String

func (o *GetServerOK) String() string

type GetServerParams

type GetServerParams struct {

	/* ExtraFieldsServers.

	   The `credentials` are provided as extra attributes that is lazy loaded. To request it, just set `extra_fields[servers]=credentials` in the query string.
	*/
	ExtraFieldsServers *string

	/* ServerID.

	   The Server ID
	*/
	ServerID string

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

GetServerParams contains all the parameters to send to the API endpoint

for the get server operation.

Typically these are written to a http.Request.

func NewGetServerParams

func NewGetServerParams() *GetServerParams

NewGetServerParams creates a new GetServerParams 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 NewGetServerParamsWithContext

func NewGetServerParamsWithContext(ctx context.Context) *GetServerParams

NewGetServerParamsWithContext creates a new GetServerParams object with the ability to set a context for a request.

func NewGetServerParamsWithHTTPClient

func NewGetServerParamsWithHTTPClient(client *http.Client) *GetServerParams

NewGetServerParamsWithHTTPClient creates a new GetServerParams object with the ability to set a custom HTTPClient for a request.

func NewGetServerParamsWithTimeout

func NewGetServerParamsWithTimeout(timeout time.Duration) *GetServerParams

NewGetServerParamsWithTimeout creates a new GetServerParams object with the ability to set a timeout on a request.

func (*GetServerParams) SetContext

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

SetContext adds the context to the get server params

func (*GetServerParams) SetDefaults

func (o *GetServerParams) SetDefaults()

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

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

func (*GetServerParams) SetExtraFieldsServers

func (o *GetServerParams) SetExtraFieldsServers(extraFieldsServers *string)

SetExtraFieldsServers adds the extraFieldsServers to the get server params

func (*GetServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get server params

func (*GetServerParams) SetServerID

func (o *GetServerParams) SetServerID(serverID string)

SetServerID adds the serverId to the get server params

func (*GetServerParams) SetTimeout

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

SetTimeout adds the timeout to the get server params

func (*GetServerParams) WithContext

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

WithContext adds the context to the get server params

func (*GetServerParams) WithDefaults

func (o *GetServerParams) WithDefaults() *GetServerParams

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

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

func (*GetServerParams) WithExtraFieldsServers

func (o *GetServerParams) WithExtraFieldsServers(extraFieldsServers *string) *GetServerParams

WithExtraFieldsServers adds the extraFieldsServers to the get server params

func (*GetServerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get server params

func (*GetServerParams) WithServerID

func (o *GetServerParams) WithServerID(serverID string) *GetServerParams

WithServerID adds the serverID to the get server params

func (*GetServerParams) WithTimeout

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

WithTimeout adds the timeout to the get server params

func (*GetServerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetServerReader

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

GetServerReader is a Reader for the GetServer structure.

func (*GetServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServersOK

type GetServersOK struct {
	Payload *models.Servers
}

GetServersOK describes a response with status code 200, with default header values.

Success

func NewGetServersOK

func NewGetServersOK() *GetServersOK

NewGetServersOK creates a GetServersOK with default headers values

func (*GetServersOK) Code

func (o *GetServersOK) Code() int

Code gets the status code for the get servers o k response

func (*GetServersOK) Error

func (o *GetServersOK) Error() string

func (*GetServersOK) GetData

func (o *GetServersOK) GetData() []renderer.ResponseData

func (*GetServersOK) GetPayload

func (o *GetServersOK) GetPayload() *models.Servers

func (*GetServersOK) IsClientError

func (o *GetServersOK) IsClientError() bool

IsClientError returns true when this get servers o k response has a 4xx status code

func (*GetServersOK) IsCode

func (o *GetServersOK) IsCode(code int) bool

IsCode returns true when this get servers o k response a status code equal to that given

func (*GetServersOK) IsRedirect

func (o *GetServersOK) IsRedirect() bool

IsRedirect returns true when this get servers o k response has a 3xx status code

func (*GetServersOK) IsServerError

func (o *GetServersOK) IsServerError() bool

IsServerError returns true when this get servers o k response has a 5xx status code

func (*GetServersOK) IsSuccess

func (o *GetServersOK) IsSuccess() bool

IsSuccess returns true when this get servers o k response has a 2xx status code

func (*GetServersOK) String

func (o *GetServersOK) String() string

type GetServersParams

type GetServersParams struct {

	/* ExtraFieldsServers.

	   The `credentials` are provided as extra attributes that is lazy loaded. To request it, just set `extra_fields[servers]=credentials` in the query string.
	*/
	ExtraFieldsServers *string

	/* FilterCreatedAtGte.

	   The created at greater than equal date to filter by
	*/
	FilterCreatedAtGte *string

	/* FilterCreatedAtLte.

	   The created at less than equal date to filter by
	*/
	FilterCreatedAtLte *string

	/* FilterDisk.

	   The disk size in Gigabytes to filter by, should be used with the following options:
	                            [eql] to filter for values equal to the provided value.
	                            [gte] to filter for values greater or equal to the provided value.
	                            [lte] to filter by values lower or equal to the provided value.
	*/
	FilterDiskEql *int64
	FilterDiskLte *int64
	FilterDiskGte *int64

	/* FilterGpu.

	   Filter by the existence of an associated GPU
	*/
	FilterGpu *bool

	/* FilterHostname.

	   The hostname of server to filter by
	*/
	FilterHostname *string

	/* FilterLabel.

	   The label of server to filter by
	*/
	FilterLabel *string

	/* FilterOperatingSystem.

	   The operating system name or slug of the server to filter by
	*/
	FilterOperatingSystem *string

	/* FilterPlan.

	   The platform/plan name of the server to filter by
	*/
	FilterPlan *string

	/* FilterProject.

	   The project ID or Slug to filter by
	*/
	FilterProject *string

	/* FilterRAMEql.

	   Filter servers with RAM size (in GB) equals the provided value.
	*/
	FilterRAMEql *int64

	/* FilterRAMGte.

	   Filter servers with RAM size (in GB) greater than or equal the provided value.
	*/
	FilterRAMGte *int64

	/* FilterRAMLte.

	   Filter servers with RAM size (in GB) less than or equal the provided value.
	*/
	FilterRAMLte *int64

	/* FilterRegion.

	   The region Slug to filter by
	*/
	FilterRegion *string

	/* FilterStatus.

	   The status of server to filter by
	*/
	FilterStatus *string

	FilterTags *string

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

GetServersParams contains all the parameters to send to the API endpoint

for the get servers operation.

Typically these are written to a http.Request.

func NewGetServersParams

func NewGetServersParams() *GetServersParams

NewGetServersParams creates a new GetServersParams 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 NewGetServersParamsWithContext

func NewGetServersParamsWithContext(ctx context.Context) *GetServersParams

NewGetServersParamsWithContext creates a new GetServersParams object with the ability to set a context for a request.

func NewGetServersParamsWithHTTPClient

func NewGetServersParamsWithHTTPClient(client *http.Client) *GetServersParams

NewGetServersParamsWithHTTPClient creates a new GetServersParams object with the ability to set a custom HTTPClient for a request.

func NewGetServersParamsWithTimeout

func NewGetServersParamsWithTimeout(timeout time.Duration) *GetServersParams

NewGetServersParamsWithTimeout creates a new GetServersParams object with the ability to set a timeout on a request.

func (*GetServersParams) SetContext

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

SetContext adds the context to the get servers params

func (*GetServersParams) SetDefaults

func (o *GetServersParams) SetDefaults()

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

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

func (*GetServersParams) SetExtraFieldsServers

func (o *GetServersParams) SetExtraFieldsServers(extraFieldsServers *string)

SetExtraFieldsServers adds the extraFieldsServers to the get servers params

func (*GetServersParams) SetFilterCreatedAtGte

func (o *GetServersParams) SetFilterCreatedAtGte(filterCreatedAtGte *string)

SetFilterCreatedAtGte adds the filterCreatedAtGte to the get servers params

func (*GetServersParams) SetFilterCreatedAtLte

func (o *GetServersParams) SetFilterCreatedAtLte(filterCreatedAtLte *string)

SetFilterCreatedAtLte adds the filterCreatedAtLte to the get servers params

func (*GetServersParams) SetFilterDiskEql

func (o *GetServersParams) SetFilterDiskEql(filterDiskEql *int64)

SetFilterDiskEql adds the filterDiskEql to the get servers params

func (*GetServersParams) SetFilterDiskGte

func (o *GetServersParams) SetFilterDiskGte(filterDiskGte *int64)

SetFilterDiskGte adds the filterDiskGte to the get servers params

func (*GetServersParams) SetFilterDiskLte

func (o *GetServersParams) SetFilterDiskLte(filterDiskLte *int64)

SetFilterDiskLte adds the filterDiskLte to the get servers params

func (*GetServersParams) SetFilterGpu

func (o *GetServersParams) SetFilterGpu(filterGpu *bool)

SetFilterGpu adds the filterGpu to the get servers params

func (*GetServersParams) SetFilterHostname

func (o *GetServersParams) SetFilterHostname(filterHostname *string)

SetFilterHostname adds the filterHostname to the get servers params

func (*GetServersParams) SetFilterLabel

func (o *GetServersParams) SetFilterLabel(filterLabel *string)

SetFilterLabel adds the filterLabel to the get servers params

func (*GetServersParams) SetFilterOperatingSystem

func (o *GetServersParams) SetFilterOperatingSystem(filterOperatingSystem *string)

SetFilterOperatingSystem adds the filterOperatingSystem to the get servers params

func (*GetServersParams) SetFilterPlan

func (o *GetServersParams) SetFilterPlan(filterPlan *string)

SetFilterPlan adds the filterPlan to the get servers params

func (*GetServersParams) SetFilterProject

func (o *GetServersParams) SetFilterProject(filterProject *string)

SetFilterProject adds the filterProject to the get servers params

func (*GetServersParams) SetFilterRAMEql

func (o *GetServersParams) SetFilterRAMEql(filterRAMEql *int64)

SetFilterRAMEql adds the filterRamEql to the get servers params

func (*GetServersParams) SetFilterRAMGte

func (o *GetServersParams) SetFilterRAMGte(filterRAMGte *int64)

SetFilterRAMGte adds the filterRamGte to the get servers params

func (*GetServersParams) SetFilterRAMLte

func (o *GetServersParams) SetFilterRAMLte(filterRAMLte *int64)

SetFilterRAMLte adds the filterRamLte to the get servers params

func (*GetServersParams) SetFilterRegion

func (o *GetServersParams) SetFilterRegion(filterRegion *string)

SetFilterRegion adds the filterRegion to the get servers params

func (*GetServersParams) SetFilterStatus

func (o *GetServersParams) SetFilterStatus(filterStatus *string)

SetFilterStatus adds the filterStatus to the get servers params

func (*GetServersParams) SetFilterTags

func (o *GetServersParams) SetFilterTags(filterTags *string)

func (*GetServersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get servers params

func (*GetServersParams) SetTimeout

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

SetTimeout adds the timeout to the get servers params

func (*GetServersParams) WithContext

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

WithContext adds the context to the get servers params

func (*GetServersParams) WithDefaults

func (o *GetServersParams) WithDefaults() *GetServersParams

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

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

func (*GetServersParams) WithExtraFieldsServers

func (o *GetServersParams) WithExtraFieldsServers(extraFieldsServers *string) *GetServersParams

WithExtraFieldsServers adds the extraFieldsServers to the get servers params

func (*GetServersParams) WithFilterCreatedAtGte

func (o *GetServersParams) WithFilterCreatedAtGte(filterCreatedAtGte *string) *GetServersParams

WithFilterCreatedAtGte adds the filterCreatedAtGte to the get servers params

func (*GetServersParams) WithFilterCreatedAtLte

func (o *GetServersParams) WithFilterCreatedAtLte(filterCreatedAtLte *string) *GetServersParams

WithFilterCreatedAtLte adds the filterCreatedAtLte to the get servers params

func (*GetServersParams) WithFilterDiskEql

func (o *GetServersParams) WithFilterDiskEql(filterDiskEql *int64) *GetServersParams

WithFilterDiskEql adds the filterDiskEql to the get servers params

func (*GetServersParams) WithFilterDiskGte

func (o *GetServersParams) WithFilterDiskGte(filterDiskGte *int64) *GetServersParams

WithFilterDiskGte adds the filterDiskGte to the get servers params

func (*GetServersParams) WithFilterDiskLte

func (o *GetServersParams) WithFilterDiskLte(filterDiskLte *int64) *GetServersParams

WithFilterDiskLte adds the filterDiskLte to the get servers params

func (*GetServersParams) WithFilterGpu

func (o *GetServersParams) WithFilterGpu(filterGpu *bool) *GetServersParams

WithFilterGpu adds the filterGpu to the get servers params

func (*GetServersParams) WithFilterHostname

func (o *GetServersParams) WithFilterHostname(filterHostname *string) *GetServersParams

WithFilterHostname adds the filterHostname to the get servers params

func (*GetServersParams) WithFilterLabel

func (o *GetServersParams) WithFilterLabel(filterLabel *string) *GetServersParams

WithFilterLabel adds the filterLabel to the get servers params

func (*GetServersParams) WithFilterOperatingSystem

func (o *GetServersParams) WithFilterOperatingSystem(filterOperatingSystem *string) *GetServersParams

WithFilterOperatingSystem adds the filterOperatingSystem to the get servers params

func (*GetServersParams) WithFilterPlan

func (o *GetServersParams) WithFilterPlan(filterPlan *string) *GetServersParams

WithFilterPlan adds the filterPlan to the get servers params

func (*GetServersParams) WithFilterProject

func (o *GetServersParams) WithFilterProject(filterProject *string) *GetServersParams

WithFilterProject adds the filterProject to the get servers params

func (*GetServersParams) WithFilterRAMEql

func (o *GetServersParams) WithFilterRAMEql(filterRAMEql *int64) *GetServersParams

WithFilterRAMEql adds the filterRAMEql to the get servers params

func (*GetServersParams) WithFilterRAMGte

func (o *GetServersParams) WithFilterRAMGte(filterRAMGte *int64) *GetServersParams

WithFilterRAMGte adds the filterRAMGte to the get servers params

func (*GetServersParams) WithFilterRAMLte

func (o *GetServersParams) WithFilterRAMLte(filterRAMLte *int64) *GetServersParams

WithFilterRAMLte adds the filterRAMLte to the get servers params

func (*GetServersParams) WithFilterRegion

func (o *GetServersParams) WithFilterRegion(filterRegion *string) *GetServersParams

WithFilterRegion adds the filterRegion to the get servers params

func (*GetServersParams) WithFilterStatus

func (o *GetServersParams) WithFilterStatus(filterStatus *string) *GetServersParams

WithFilterStatus adds the filterStatus to the get servers params

func (*GetServersParams) WithFilterTags

func (o *GetServersParams) WithFilterTags(filterTags *string) *GetServersParams

func (*GetServersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get servers params

func (*GetServersParams) WithTimeout

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

WithTimeout adds the timeout to the get servers params

func (*GetServersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetServersReader

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

GetServersReader is a Reader for the GetServers structure.

func (*GetServersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ServerScheduleDeletionCreated

type ServerScheduleDeletionCreated struct {
	Payload *models.ServerScheduleDeletion
}

ServerScheduleDeletionCreated describes a response with status code 201, with default header values.

Created

func NewServerScheduleDeletionCreated

func NewServerScheduleDeletionCreated() *ServerScheduleDeletionCreated

NewServerScheduleDeletionCreated creates a ServerScheduleDeletionCreated with default headers values

func (*ServerScheduleDeletionCreated) Code

Code gets the status code for the server schedule deletion created response

func (*ServerScheduleDeletionCreated) Error

func (*ServerScheduleDeletionCreated) GetData

func (*ServerScheduleDeletionCreated) GetPayload

func (*ServerScheduleDeletionCreated) IsClientError

func (o *ServerScheduleDeletionCreated) IsClientError() bool

IsClientError returns true when this server schedule deletion created response has a 4xx status code

func (*ServerScheduleDeletionCreated) IsCode

func (o *ServerScheduleDeletionCreated) IsCode(code int) bool

IsCode returns true when this server schedule deletion created response a status code equal to that given

func (*ServerScheduleDeletionCreated) IsRedirect

func (o *ServerScheduleDeletionCreated) IsRedirect() bool

IsRedirect returns true when this server schedule deletion created response has a 3xx status code

func (*ServerScheduleDeletionCreated) IsServerError

func (o *ServerScheduleDeletionCreated) IsServerError() bool

IsServerError returns true when this server schedule deletion created response has a 5xx status code

func (*ServerScheduleDeletionCreated) IsSuccess

func (o *ServerScheduleDeletionCreated) IsSuccess() bool

IsSuccess returns true when this server schedule deletion created response has a 2xx status code

func (*ServerScheduleDeletionCreated) String

type ServerScheduleDeletionParams

type ServerScheduleDeletionParams struct {

	// ServerID.
	ServerID string `json:"id"`

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

ServerScheduleDeletionParams contains all the parameters to send to the API endpoint

for the server schedule deletion operation.

Typically these are written to a http.Request.

func NewServerScheduleDeletionParams

func NewServerScheduleDeletionParams() *ServerScheduleDeletionParams

NewServerScheduleDeletionParams creates a new ServerScheduleDeletionParams 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 NewServerScheduleDeletionParamsWithContext

func NewServerScheduleDeletionParamsWithContext(ctx context.Context) *ServerScheduleDeletionParams

NewServerScheduleDeletionParamsWithContext creates a new ServerScheduleDeletionParams object with the ability to set a context for a request.

func NewServerScheduleDeletionParamsWithHTTPClient

func NewServerScheduleDeletionParamsWithHTTPClient(client *http.Client) *ServerScheduleDeletionParams

NewServerScheduleDeletionParamsWithHTTPClient creates a new ServerScheduleDeletionParams object with the ability to set a custom HTTPClient for a request.

func NewServerScheduleDeletionParamsWithTimeout

func NewServerScheduleDeletionParamsWithTimeout(timeout time.Duration) *ServerScheduleDeletionParams

NewServerScheduleDeletionParamsWithTimeout creates a new ServerScheduleDeletionParams object with the ability to set a timeout on a request.

func (*ServerScheduleDeletionParams) SetContext

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

SetContext adds the context to the server schedule deletion params

func (*ServerScheduleDeletionParams) SetDefaults

func (o *ServerScheduleDeletionParams) SetDefaults()

SetDefaults hydrates default values in the server schedule deletion params (not the query body).

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

func (*ServerScheduleDeletionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the server schedule deletion params

func (*ServerScheduleDeletionParams) SetServerID

func (o *ServerScheduleDeletionParams) SetServerID(serverID string)

SetServerID adds the serverId to the server schedule deletion params

func (*ServerScheduleDeletionParams) SetTimeout

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

SetTimeout adds the timeout to the server schedule deletion params

func (*ServerScheduleDeletionParams) WithContext

WithContext adds the context to the server schedule deletion params

func (*ServerScheduleDeletionParams) WithDefaults

WithDefaults hydrates default values in the server schedule deletion params (not the query body).

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

func (*ServerScheduleDeletionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the server schedule deletion params

func (*ServerScheduleDeletionParams) WithServerID

WithServerID adds the serverID to the server schedule deletion params

func (*ServerScheduleDeletionParams) WithTimeout

WithTimeout adds the timeout to the server schedule deletion params

func (*ServerScheduleDeletionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ServerScheduleDeletionReader

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

ServerScheduleDeletionReader is a Reader for the ServerScheduleDeletion structure.

func (*ServerScheduleDeletionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ServerUnscheduleDeletionNoContent

type ServerUnscheduleDeletionNoContent struct {
}

ServerUnscheduleDeletionNoContent describes a response with status code 204, with default header values.

No content

func NewServerUnscheduleDeletionNoContent

func NewServerUnscheduleDeletionNoContent() *ServerUnscheduleDeletionNoContent

NewServerUnscheduleDeletionNoContent creates a ServerUnscheduleDeletionNoContent with default headers values

func (*ServerUnscheduleDeletionNoContent) Code

Code gets the status code for the server unschedule deletion no content response

func (*ServerUnscheduleDeletionNoContent) Error

func (*ServerUnscheduleDeletionNoContent) IsClientError

func (o *ServerUnscheduleDeletionNoContent) IsClientError() bool

IsClientError returns true when this server unschedule deletion no content response has a 4xx status code

func (*ServerUnscheduleDeletionNoContent) IsCode

func (o *ServerUnscheduleDeletionNoContent) IsCode(code int) bool

IsCode returns true when this server unschedule deletion no content response a status code equal to that given

func (*ServerUnscheduleDeletionNoContent) IsRedirect

func (o *ServerUnscheduleDeletionNoContent) IsRedirect() bool

IsRedirect returns true when this server unschedule deletion no content response has a 3xx status code

func (*ServerUnscheduleDeletionNoContent) IsServerError

func (o *ServerUnscheduleDeletionNoContent) IsServerError() bool

IsServerError returns true when this server unschedule deletion no content response has a 5xx status code

func (*ServerUnscheduleDeletionNoContent) IsSuccess

func (o *ServerUnscheduleDeletionNoContent) IsSuccess() bool

IsSuccess returns true when this server unschedule deletion no content response has a 2xx status code

func (*ServerUnscheduleDeletionNoContent) Render

func (*ServerUnscheduleDeletionNoContent) String

type ServerUnscheduleDeletionParams

type ServerUnscheduleDeletionParams struct {

	// ServerID.
	ServerID string `json:"id"`

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

ServerUnscheduleDeletionParams contains all the parameters to send to the API endpoint

for the server unschedule deletion operation.

Typically these are written to a http.Request.

func NewServerUnscheduleDeletionParams

func NewServerUnscheduleDeletionParams() *ServerUnscheduleDeletionParams

NewServerUnscheduleDeletionParams creates a new ServerUnscheduleDeletionParams 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 NewServerUnscheduleDeletionParamsWithContext

func NewServerUnscheduleDeletionParamsWithContext(ctx context.Context) *ServerUnscheduleDeletionParams

NewServerUnscheduleDeletionParamsWithContext creates a new ServerUnscheduleDeletionParams object with the ability to set a context for a request.

func NewServerUnscheduleDeletionParamsWithHTTPClient

func NewServerUnscheduleDeletionParamsWithHTTPClient(client *http.Client) *ServerUnscheduleDeletionParams

NewServerUnscheduleDeletionParamsWithHTTPClient creates a new ServerUnscheduleDeletionParams object with the ability to set a custom HTTPClient for a request.

func NewServerUnscheduleDeletionParamsWithTimeout

func NewServerUnscheduleDeletionParamsWithTimeout(timeout time.Duration) *ServerUnscheduleDeletionParams

NewServerUnscheduleDeletionParamsWithTimeout creates a new ServerUnscheduleDeletionParams object with the ability to set a timeout on a request.

func (*ServerUnscheduleDeletionParams) SetContext

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

SetContext adds the context to the server unschedule deletion params

func (*ServerUnscheduleDeletionParams) SetDefaults

func (o *ServerUnscheduleDeletionParams) SetDefaults()

SetDefaults hydrates default values in the server unschedule deletion params (not the query body).

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

func (*ServerUnscheduleDeletionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the server unschedule deletion params

func (*ServerUnscheduleDeletionParams) SetServerID

func (o *ServerUnscheduleDeletionParams) SetServerID(serverID string)

SetServerID adds the serverId to the server unschedule deletion params

func (*ServerUnscheduleDeletionParams) SetTimeout

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

SetTimeout adds the timeout to the server unschedule deletion params

func (*ServerUnscheduleDeletionParams) WithContext

WithContext adds the context to the server unschedule deletion params

func (*ServerUnscheduleDeletionParams) WithDefaults

WithDefaults hydrates default values in the server unschedule deletion params (not the query body).

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

func (*ServerUnscheduleDeletionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the server unschedule deletion params

func (*ServerUnscheduleDeletionParams) WithServerID

WithServerID adds the serverID to the server unschedule deletion params

func (*ServerUnscheduleDeletionParams) WithTimeout

WithTimeout adds the timeout to the server unschedule deletion params

func (*ServerUnscheduleDeletionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ServerUnscheduleDeletionReader

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

ServerUnscheduleDeletionReader is a Reader for the ServerUnscheduleDeletion structure.

func (*ServerUnscheduleDeletionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateServerBody

type UpdateServerBody struct {
	// data
	// Required: true
	Data *UpdateServerParamsBodyData `json:"data"`
}

UpdateServerBody update server body swagger:model UpdateServerBody

func (*UpdateServerBody) ContextValidate

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

ContextValidate validate this update server body based on the context it is used

func (*UpdateServerBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateServerBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateServerBody) Validate

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

Validate validates this update server body

type UpdateServerOK

type UpdateServerOK struct {
	Payload *models.Server
}

UpdateServerOK describes a response with status code 200, with default header values.

Updated

func NewUpdateServerOK

func NewUpdateServerOK() *UpdateServerOK

NewUpdateServerOK creates a UpdateServerOK with default headers values

func (*UpdateServerOK) Code

func (o *UpdateServerOK) Code() int

Code gets the status code for the update server o k response

func (*UpdateServerOK) Error

func (o *UpdateServerOK) Error() string

func (*UpdateServerOK) GetData

func (o *UpdateServerOK) GetData() []renderer.ResponseData

func (*UpdateServerOK) GetPayload

func (o *UpdateServerOK) GetPayload() *models.Server

func (*UpdateServerOK) IsClientError

func (o *UpdateServerOK) IsClientError() bool

IsClientError returns true when this update server o k response has a 4xx status code

func (*UpdateServerOK) IsCode

func (o *UpdateServerOK) IsCode(code int) bool

IsCode returns true when this update server o k response a status code equal to that given

func (*UpdateServerOK) IsRedirect

func (o *UpdateServerOK) IsRedirect() bool

IsRedirect returns true when this update server o k response has a 3xx status code

func (*UpdateServerOK) IsServerError

func (o *UpdateServerOK) IsServerError() bool

IsServerError returns true when this update server o k response has a 5xx status code

func (*UpdateServerOK) IsSuccess

func (o *UpdateServerOK) IsSuccess() bool

IsSuccess returns true when this update server o k response has a 2xx status code

func (*UpdateServerOK) String

func (o *UpdateServerOK) String() string

type UpdateServerParams

type UpdateServerParams struct {

	// Body.
	Body UpdateServerBody

	ID string `json:"id"`

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

UpdateServerParams contains all the parameters to send to the API endpoint

for the update server operation.

Typically these are written to a http.Request.

func NewUpdateServerParams

func NewUpdateServerParams() *UpdateServerParams

NewUpdateServerParams creates a new UpdateServerParams 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 NewUpdateServerParamsWithContext

func NewUpdateServerParamsWithContext(ctx context.Context) *UpdateServerParams

NewUpdateServerParamsWithContext creates a new UpdateServerParams object with the ability to set a context for a request.

func NewUpdateServerParamsWithHTTPClient

func NewUpdateServerParamsWithHTTPClient(client *http.Client) *UpdateServerParams

NewUpdateServerParamsWithHTTPClient creates a new UpdateServerParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateServerParamsWithTimeout

func NewUpdateServerParamsWithTimeout(timeout time.Duration) *UpdateServerParams

NewUpdateServerParamsWithTimeout creates a new UpdateServerParams object with the ability to set a timeout on a request.

func (*UpdateServerParams) SetBody

func (o *UpdateServerParams) SetBody(body UpdateServerBody)

SetBody adds the body to the update server params

func (*UpdateServerParams) SetContext

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

SetContext adds the context to the update server params

func (*UpdateServerParams) SetDefaults

func (o *UpdateServerParams) SetDefaults()

SetDefaults hydrates default values in the update server params (not the query body).

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

func (*UpdateServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update server params

func (*UpdateServerParams) SetID

func (o *UpdateServerParams) SetID(id string)

SetID adds the serverId to the update server params

func (*UpdateServerParams) SetTimeout

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

SetTimeout adds the timeout to the update server params

func (*UpdateServerParams) WithBody

WithBody adds the body to the update server params

func (*UpdateServerParams) WithContext

WithContext adds the context to the update server params

func (*UpdateServerParams) WithDefaults

func (o *UpdateServerParams) WithDefaults() *UpdateServerParams

WithDefaults hydrates default values in the update server params (not the query body).

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

func (*UpdateServerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update server params

func (*UpdateServerParams) WithID

WithID adds the id to the update server params

func (*UpdateServerParams) WithTimeout

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

WithTimeout adds the timeout to the update server params

func (*UpdateServerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateServerParamsBodyAttributes

type UpdateServerParamsBodyAttributes struct {

	// billing
	Billing string `json:"billing,omitempty"`

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

	Tags []string `json:"tags,omitempty"`
}

UpdateServerParamsBodyAttributes update server params body attributes swagger:model UpdateServerParamsBodyAttributes

func (*UpdateServerParamsBodyAttributes) ContextValidate

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

ContextValidate validates this update server params body attributes based on context it is used

func (*UpdateServerParamsBodyAttributes) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateServerParamsBodyAttributes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateServerParamsBodyAttributes) Validate

Validate validates this update server params body attributes

type UpdateServerParamsBodyData

type UpdateServerParamsBodyData struct {

	// attributes
	Attributes *UpdateServerParamsBodyAttributes `json:"attributes,omitempty"`

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

	// type
	// Enum: [servers]
	Type string `json:"type,omitempty"`
}

type UpdateServerReader

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

UpdateServerReader is a Reader for the UpdateServer structure.

func (*UpdateServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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