Documentation
¶
Index ¶
- Constants
- type Client
- type ClientOption
- type ClientService
- type CreateServerReinstallBody
- func (o *CreateServerReinstallBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateServerReinstallBody) MarshalBinary() ([]byte, error)
- func (o *CreateServerReinstallBody) UnmarshalBinary(b []byte) error
- func (o *CreateServerReinstallBody) Validate(formats strfmt.Registry) error
- type CreateServerReinstallCreated
- func (o *CreateServerReinstallCreated) Code() int
- func (o *CreateServerReinstallCreated) Error() string
- func (o *CreateServerReinstallCreated) IsClientError() bool
- func (o *CreateServerReinstallCreated) IsCode(code int) bool
- func (o *CreateServerReinstallCreated) IsRedirect() bool
- func (o *CreateServerReinstallCreated) IsServerError() bool
- func (o *CreateServerReinstallCreated) IsSuccess() bool
- func (o *CreateServerReinstallCreated) Render()
- func (o *CreateServerReinstallCreated) RenderJSON()
- func (o *CreateServerReinstallCreated) RenderTable()
- func (o *CreateServerReinstallCreated) String() string
- type CreateServerReinstallParams
- func NewCreateServerReinstallParams() *CreateServerReinstallParams
- func NewCreateServerReinstallParamsWithContext(ctx context.Context) *CreateServerReinstallParams
- func NewCreateServerReinstallParamsWithHTTPClient(client *http.Client) *CreateServerReinstallParams
- func NewCreateServerReinstallParamsWithTimeout(timeout time.Duration) *CreateServerReinstallParams
- func (o *CreateServerReinstallParams) SetBody(body CreateServerReinstallBody)
- func (o *CreateServerReinstallParams) SetContext(ctx context.Context)
- func (o *CreateServerReinstallParams) SetDefaults()
- func (o *CreateServerReinstallParams) SetHTTPClient(client *http.Client)
- func (o *CreateServerReinstallParams) SetServerID(serverID string)
- func (o *CreateServerReinstallParams) SetTimeout(timeout time.Duration)
- func (o *CreateServerReinstallParams) WithBody(body CreateServerReinstallBody) *CreateServerReinstallParams
- func (o *CreateServerReinstallParams) WithContext(ctx context.Context) *CreateServerReinstallParams
- func (o *CreateServerReinstallParams) WithDefaults() *CreateServerReinstallParams
- func (o *CreateServerReinstallParams) WithHTTPClient(client *http.Client) *CreateServerReinstallParams
- func (o *CreateServerReinstallParams) WithServerID(serverID string) *CreateServerReinstallParams
- func (o *CreateServerReinstallParams) WithTimeout(timeout time.Duration) *CreateServerReinstallParams
- func (o *CreateServerReinstallParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateServerReinstallParamsBodyData
- func (o *CreateServerReinstallParamsBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateServerReinstallParamsBodyData) MarshalBinary() ([]byte, error)
- func (o *CreateServerReinstallParamsBodyData) UnmarshalBinary(b []byte) error
- func (o *CreateServerReinstallParamsBodyData) Validate(formats strfmt.Registry) error
- type CreateServerReinstallParamsBodyDataAttributes
- func (o *CreateServerReinstallParamsBodyDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateServerReinstallParamsBodyDataAttributes) MarshalBinary() ([]byte, error)
- func (o *CreateServerReinstallParamsBodyDataAttributes) UnmarshalBinary(b []byte) error
- func (o *CreateServerReinstallParamsBodyDataAttributes) Validate(formats strfmt.Registry) error
- type CreateServerReinstallReader
Constants ¶
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" )
const ( // CreateServerReinstallParamsBodyDataAttributesRaidRaidDash0 captures enum value "raid-0" CreateServerReinstallParamsBodyDataAttributesRaidRaidDash0 string = "raid-0" // CreateServerReinstallParamsBodyDataAttributesRaidRaidDash1 captures enum value "raid-1" CreateServerReinstallParamsBodyDataAttributesRaidRaidDash1 string = "raid-1" )
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
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 ¶
func (o *CreateServerReinstallCreated) Code() int
Code gets the status code for the create server reinstall created response
func (*CreateServerReinstallCreated) Error ¶
func (o *CreateServerReinstallCreated) Error() string
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 ¶
func (o *CreateServerReinstallCreated) String() 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 ¶
func (o *CreateServerReinstallParams) SetBody(body CreateServerReinstallBody)
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 ¶
func (o *CreateServerReinstallParams) WithBody(body CreateServerReinstallBody) *CreateServerReinstallParams
WithBody adds the body to the create server reinstall params
func (*CreateServerReinstallParams) WithContext ¶
func (o *CreateServerReinstallParams) WithContext(ctx context.Context) *CreateServerReinstallParams
WithContext adds the context to the create server reinstall params
func (*CreateServerReinstallParams) WithDefaults ¶
func (o *CreateServerReinstallParams) WithDefaults() *CreateServerReinstallParams
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 ¶
func (o *CreateServerReinstallParams) WithHTTPClient(client *http.Client) *CreateServerReinstallParams
WithHTTPClient adds the HTTPClient to the create server reinstall params
func (*CreateServerReinstallParams) WithServerID ¶
func (o *CreateServerReinstallParams) WithServerID(serverID string) *CreateServerReinstallParams
WithServerID adds the serverID to the create server reinstall params
func (*CreateServerReinstallParams) WithTimeout ¶
func (o *CreateServerReinstallParams) WithTimeout(timeout time.Duration) *CreateServerReinstallParams
WithTimeout adds the timeout to the create server reinstall params
func (*CreateServerReinstallParams) WriteToRequest ¶
func (o *CreateServerReinstallParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
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 ¶
func (o *CreateServerReinstallParamsBodyDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create server reinstall params body data attributes based on context it is used
func (*CreateServerReinstallParamsBodyDataAttributes) MarshalBinary ¶
func (o *CreateServerReinstallParamsBodyDataAttributes) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateServerReinstallParamsBodyDataAttributes) UnmarshalBinary ¶
func (o *CreateServerReinstallParamsBodyDataAttributes) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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.