server_reinstall

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: BSD-3-Clause, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	// CreateServerReinstallParamsBodyDataTypeReinstalls captures enum value "reinstalls"
	CreateServerReinstallParamsBodyDataTypeReinstalls string = "reinstalls"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for server reinstall API

func (*Client) CreateServerReinstall

func (a *Client) CreateServerReinstall(params *CreateServerReinstallParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateServerReinstallCreated, error)

CreateServerReinstall runs server reinstall

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 {
	CreateServerReinstall(params *CreateServerReinstallParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateServerReinstallCreated, 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 server reinstall API client.

type CreateServerReinstallBody

type CreateServerReinstallBody struct {

	// data
	// Required: true
	Data *CreateServerReinstallParamsBodyData `json:"data"`
}

CreateServerReinstallBody create server reinstall body swagger:model CreateServerReinstallBody

func (*CreateServerReinstallBody) ContextValidate

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

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

func (*CreateServerReinstallBody) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateServerReinstallBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateServerReinstallBody) Validate

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

Validate validates this create server reinstall body

type CreateServerReinstallCreated

type CreateServerReinstallCreated struct {
}

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

Created

func NewCreateServerReinstallCreated

func NewCreateServerReinstallCreated() *CreateServerReinstallCreated

NewCreateServerReinstallCreated creates a CreateServerReinstallCreated with default headers values

func (*CreateServerReinstallCreated) Code

Code gets the status code for the create server reinstall created response

func (*CreateServerReinstallCreated) Error

func (*CreateServerReinstallCreated) IsClientError

func (o *CreateServerReinstallCreated) IsClientError() bool

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

func (*CreateServerReinstallCreated) IsCode

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

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

func (*CreateServerReinstallCreated) IsRedirect

func (o *CreateServerReinstallCreated) IsRedirect() bool

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

func (*CreateServerReinstallCreated) IsServerError

func (o *CreateServerReinstallCreated) IsServerError() bool

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

func (*CreateServerReinstallCreated) IsSuccess

func (o *CreateServerReinstallCreated) IsSuccess() bool

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

func (*CreateServerReinstallCreated) Render

func (o *CreateServerReinstallCreated) Render()

func (*CreateServerReinstallCreated) RenderJSON

func (o *CreateServerReinstallCreated) RenderJSON()

func (*CreateServerReinstallCreated) RenderTable

func (o *CreateServerReinstallCreated) RenderTable()

func (*CreateServerReinstallCreated) String

type CreateServerReinstallParams

type CreateServerReinstallParams struct {

	// Body.
	Body CreateServerReinstallBody

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

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

CreateServerReinstallParams contains all the parameters to send to the API endpoint

for the create server reinstall operation.

Typically these are written to a http.Request.

func NewCreateServerReinstallParams

func NewCreateServerReinstallParams() *CreateServerReinstallParams

NewCreateServerReinstallParams creates a new CreateServerReinstallParams 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 NewCreateServerReinstallParamsWithContext

func NewCreateServerReinstallParamsWithContext(ctx context.Context) *CreateServerReinstallParams

NewCreateServerReinstallParamsWithContext creates a new CreateServerReinstallParams object with the ability to set a context for a request.

func NewCreateServerReinstallParamsWithHTTPClient

func NewCreateServerReinstallParamsWithHTTPClient(client *http.Client) *CreateServerReinstallParams

NewCreateServerReinstallParamsWithHTTPClient creates a new CreateServerReinstallParams object with the ability to set a custom HTTPClient for a request.

func NewCreateServerReinstallParamsWithTimeout

func NewCreateServerReinstallParamsWithTimeout(timeout time.Duration) *CreateServerReinstallParams

NewCreateServerReinstallParamsWithTimeout creates a new CreateServerReinstallParams object with the ability to set a timeout on a request.

func (*CreateServerReinstallParams) SetBody

SetBody adds the body to the create server reinstall params

func (*CreateServerReinstallParams) SetContext

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

SetContext adds the context to the create server reinstall params

func (*CreateServerReinstallParams) SetDefaults

func (o *CreateServerReinstallParams) SetDefaults()

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

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

func (*CreateServerReinstallParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create server reinstall params

func (*CreateServerReinstallParams) SetServerID

func (o *CreateServerReinstallParams) SetServerID(serverID string)

SetServerID adds the serverId to the create server reinstall params

func (*CreateServerReinstallParams) SetTimeout

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

SetTimeout adds the timeout to the create server reinstall params

func (*CreateServerReinstallParams) WithBody

WithBody adds the body to the create server reinstall params

func (*CreateServerReinstallParams) WithContext

WithContext adds the context to the create server reinstall params

func (*CreateServerReinstallParams) WithDefaults

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

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

func (*CreateServerReinstallParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create server reinstall params

func (*CreateServerReinstallParams) WithServerID

WithServerID adds the serverID to the create server reinstall params

func (*CreateServerReinstallParams) WithTimeout

WithTimeout adds the timeout to the create server reinstall params

func (*CreateServerReinstallParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateServerReinstallParamsBodyData

type CreateServerReinstallParamsBodyData struct {

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

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

CreateServerReinstallParamsBodyData create server reinstall params body data swagger:model CreateServerReinstallParamsBodyData

func (*CreateServerReinstallParamsBodyData) ContextValidate

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

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

func (*CreateServerReinstallParamsBodyData) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateServerReinstallParamsBodyData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateServerReinstallParamsBodyData) Validate

Validate validates this create server reinstall params body data

type CreateServerReinstallParamsBodyDataAttributes

type CreateServerReinstallParamsBodyDataAttributes struct {

	// The server hostname to set upon reinstall
	Hostname string `json:"hostname,omitempty"`

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

	// The OS selected for the reinstall process
	// 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"`

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

	// SSH Keys to set upon reinstall
	SSHKeys []string `json:"ssh_keys,omitempty"`

	// User data to set upon reinstall
	UserData int64 `json:"user_data,omitempty"`
}

CreateServerReinstallParamsBodyDataAttributes create server reinstall params body data attributes swagger:model CreateServerReinstallParamsBodyDataAttributes

func (*CreateServerReinstallParamsBodyDataAttributes) ContextValidate

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

func (*CreateServerReinstallParamsBodyDataAttributes) MarshalBinary

MarshalBinary interface implementation

func (*CreateServerReinstallParamsBodyDataAttributes) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CreateServerReinstallParamsBodyDataAttributes) Validate

Validate validates this create server reinstall params body data attributes

type CreateServerReinstallReader

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

CreateServerReinstallReader is a Reader for the CreateServerReinstall structure.

func (*CreateServerReinstallReader) ReadResponse

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