bmcapi

package module
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MPL-2.0 Imports: 21 Imported by: 5

README

Go API client for bmcapi

Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API. Deprovision servers, get or edit SSH key details, assign public IPs, assign servers to networks and a lot more. Manage your infrastructure more efficiently using just a few simple API calls.

Knowledge base articles to help you can be found here

All URLs are relative to (https://api.phoenixnap.com/bmc/v1/)

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import bmcapi "github.com/phoenixnap/go-sdk-bmc/bmcapi"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value bmcapi.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), bmcapi.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value bmcapi.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), bmcapi.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using bmcapi.ContextOperationServerIndices and bmcapi.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), bmcapi.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), bmcapi.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://api.phoenixnap.com/bmc/v1

Class Method HTTP request Description
QuotasAPI QuotasGet Get /quotas List quotas
QuotasAPI QuotasQuotaIdActionsRequestEditPost Post /quotas/{quotaId}/actions/request-edit Request quota limit change.
QuotasAPI QuotasQuotaIdGet Get /quotas/{quotaId} Get a quota.
SSHKeysAPI SshKeysGet Get /ssh-keys List SSH Keys.
SSHKeysAPI SshKeysPost Post /ssh-keys Create SSH Key.
SSHKeysAPI SshKeysSshKeyIdDelete Delete /ssh-keys/{sshKeyId} Delete SSH Key.
SSHKeysAPI SshKeysSshKeyIdGet Get /ssh-keys/{sshKeyId} Get SSH Key.
SSHKeysAPI SshKeysSshKeyIdPut Put /ssh-keys/{sshKeyId} Edit SSH Key.
ServersAPI DeletePrivateNetwork Delete /servers/{serverId}/network-configuration/private-network-configuration/private-networks/{privateNetworkId} Removes the server from private network.
ServersAPI ServersGet Get /servers List servers.
ServersAPI ServersPost Post /servers Create new server.
ServersAPI ServersServerIdActionsDeprovisionPost Post /servers/{serverId}/actions/deprovision Deprovision a server.
ServersAPI ServersServerIdActionsPowerOffPost Post /servers/{serverId}/actions/power-off Power off server.
ServersAPI ServersServerIdActionsPowerOnPost Post /servers/{serverId}/actions/power-on Power on server.
ServersAPI ServersServerIdActionsProvisionPost Post /servers/{serverId}/actions/provision Provision server.
ServersAPI ServersServerIdActionsRebootPost Post /servers/{serverId}/actions/reboot Reboot server.
ServersAPI ServersServerIdActionsReservePost Post /servers/{serverId}/actions/reserve Reserve server.
ServersAPI ServersServerIdActionsResetPost Post /servers/{serverId}/actions/reset Reset server.
ServersAPI ServersServerIdActionsShutdownPost Post /servers/{serverId}/actions/shutdown Shutdown server.
ServersAPI ServersServerIdDelete Delete /servers/{serverId} Delete server.
ServersAPI ServersServerIdGet Get /servers/{serverId} Get server.
ServersAPI ServersServerIdIpBlocksIpBlockIdDelete Delete /servers/{serverId}/network-configuration/ip-block-configurations/ip-blocks/{ipBlockId} Unassign IP Block from Server.
ServersAPI ServersServerIdIpBlocksPost Post /servers/{serverId}/network-configuration/ip-block-configurations/ip-blocks Assign IP Block to Server.
ServersAPI ServersServerIdPatch Patch /servers/{serverId} Patch a Server.
ServersAPI ServersServerIdPrivateNetworksPatch Patch /servers/{serverId}/network-configuration/private-network-configuration/private-networks/{privateNetworkId} Updates the server's private network's IP addresses
ServersAPI ServersServerIdPrivateNetworksPost Post /servers/{serverId}/network-configuration/private-network-configuration/private-networks Adds the server to a private network.
ServersAPI ServersServerIdPublicNetworksDelete Delete /servers/{serverId}/network-configuration/public-network-configuration/public-networks/{publicNetworkId} Removes the server from the Public Network
ServersAPI ServersServerIdPublicNetworksPatch Patch /servers/{serverId}/network-configuration/public-network-configuration/public-networks/{publicNetworkId} Updates the server's public network's IP addresses.
ServersAPI ServersServerIdPublicNetworksPost Post /servers/{serverId}/network-configuration/public-network-configuration/public-networks Adds the server to a Public Network.
ServersAPI ServersServerIdTagsPut Put /servers/{serverId}/tags Overwrite tags assigned for Server.

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

OAuth2
  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
  • bmc: Grants full access to bmc-api.
  • bmc.read: Grants read only access to bmc-api.

Example

auth := context.WithValue(context.Background(), bmcapi.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, bmcapi.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

[email protected]

Documentation

Index

Constants

View Source
const SdkVersion = "3.1.0"

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	QuotasAPI QuotasAPI

	SSHKeysAPI SSHKeysAPI

	ServersAPI ServersAPI
	// contains filtered or unexported fields
}

APIClient manages communication with the Bare Metal Cloud API API v0.1 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ActionResult

type ActionResult struct {
	// Message describing the action's result.
	Result               string `json:"result"`
	AdditionalProperties map[string]interface{}
}

ActionResult Result of a successful action.

func NewActionResult

func NewActionResult(result string) *ActionResult

NewActionResult instantiates a new ActionResult object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewActionResultWithDefaults

func NewActionResultWithDefaults() *ActionResult

NewActionResultWithDefaults instantiates a new ActionResult object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ActionResult) GetResult

func (o *ActionResult) GetResult() string

GetResult returns the Result field value

func (*ActionResult) GetResultOk

func (o *ActionResult) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value and a boolean to check if the value has been set.

func (ActionResult) MarshalJSON

func (o ActionResult) MarshalJSON() ([]byte, error)

func (*ActionResult) SetResult

func (o *ActionResult) SetResult(v string)

SetResult sets field value

func (ActionResult) ToMap

func (o ActionResult) ToMap() (map[string]interface{}, error)

func (*ActionResult) UnmarshalJSON

func (o *ActionResult) UnmarshalJSON(data []byte) (err error)

type ApiDeletePrivateNetworkRequest

type ApiDeletePrivateNetworkRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiDeletePrivateNetworkRequest) Execute

type ApiQuotasGetRequest

type ApiQuotasGetRequest struct {
	ApiService QuotasAPI
	// contains filtered or unexported fields
}

func (ApiQuotasGetRequest) Execute

func (r ApiQuotasGetRequest) Execute() ([]Quota, *http.Response, error)

type ApiQuotasQuotaIdActionsRequestEditPostRequest

type ApiQuotasQuotaIdActionsRequestEditPostRequest struct {
	ApiService QuotasAPI
	// contains filtered or unexported fields
}

func (ApiQuotasQuotaIdActionsRequestEditPostRequest) Execute

func (ApiQuotasQuotaIdActionsRequestEditPostRequest) QuotaEditLimitRequest

type ApiQuotasQuotaIdGetRequest

type ApiQuotasQuotaIdGetRequest struct {
	ApiService QuotasAPI
	// contains filtered or unexported fields
}

func (ApiQuotasQuotaIdGetRequest) Execute

type ApiServersGetRequest

type ApiServersGetRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersGetRequest) Execute

func (r ApiServersGetRequest) Execute() ([]Server, *http.Response, error)

func (ApiServersGetRequest) Tag

A list of query parameters related to tags in the form of tagName.tagValue

type ApiServersPostRequest

type ApiServersPostRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersPostRequest) Execute

func (r ApiServersPostRequest) Execute() (*Server, *http.Response, error)

func (ApiServersPostRequest) Force

Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.

func (ApiServersPostRequest) ServerCreate

func (r ApiServersPostRequest) ServerCreate(serverCreate ServerCreate) ApiServersPostRequest

type ApiServersServerIdActionsDeprovisionPostRequest

type ApiServersServerIdActionsDeprovisionPostRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdActionsDeprovisionPostRequest) Execute

func (ApiServersServerIdActionsDeprovisionPostRequest) RelinquishIpBlock

type ApiServersServerIdActionsPowerOffPostRequest

type ApiServersServerIdActionsPowerOffPostRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdActionsPowerOffPostRequest) Execute

type ApiServersServerIdActionsPowerOnPostRequest

type ApiServersServerIdActionsPowerOnPostRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdActionsPowerOnPostRequest) Execute

type ApiServersServerIdActionsProvisionPostRequest

type ApiServersServerIdActionsProvisionPostRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdActionsProvisionPostRequest) Execute

func (ApiServersServerIdActionsProvisionPostRequest) Force

Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.

func (ApiServersServerIdActionsProvisionPostRequest) ServerProvision

type ApiServersServerIdActionsRebootPostRequest

type ApiServersServerIdActionsRebootPostRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdActionsRebootPostRequest) Execute

type ApiServersServerIdActionsReservePostRequest

type ApiServersServerIdActionsReservePostRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdActionsReservePostRequest) Execute

func (ApiServersServerIdActionsReservePostRequest) ServerReserve

type ApiServersServerIdActionsResetPostRequest

type ApiServersServerIdActionsResetPostRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdActionsResetPostRequest) Execute

func (ApiServersServerIdActionsResetPostRequest) ServerReset

type ApiServersServerIdActionsShutdownPostRequest

type ApiServersServerIdActionsShutdownPostRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdActionsShutdownPostRequest) Execute

type ApiServersServerIdDeleteRequest

type ApiServersServerIdDeleteRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdDeleteRequest) Execute

type ApiServersServerIdGetRequest

type ApiServersServerIdGetRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdGetRequest) Execute

type ApiServersServerIdIpBlocksIpBlockIdDeleteRequest

type ApiServersServerIdIpBlocksIpBlockIdDeleteRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdIpBlocksIpBlockIdDeleteRequest) Execute

func (ApiServersServerIdIpBlocksIpBlockIdDeleteRequest) RelinquishIpBlock

type ApiServersServerIdIpBlocksPostRequest

type ApiServersServerIdIpBlocksPostRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdIpBlocksPostRequest) Execute

func (ApiServersServerIdIpBlocksPostRequest) ServerIpBlock

type ApiServersServerIdPatchRequest

type ApiServersServerIdPatchRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdPatchRequest) Execute

func (ApiServersServerIdPatchRequest) ServerPatch

type ApiServersServerIdPrivateNetworksPatchRequest

type ApiServersServerIdPrivateNetworksPatchRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdPrivateNetworksPatchRequest) Execute

func (ApiServersServerIdPrivateNetworksPatchRequest) Force

Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.

func (ApiServersServerIdPrivateNetworksPatchRequest) ServerNetworkUpdate

type ApiServersServerIdPrivateNetworksPostRequest

type ApiServersServerIdPrivateNetworksPostRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdPrivateNetworksPostRequest) Execute

func (ApiServersServerIdPrivateNetworksPostRequest) Force

Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.

func (ApiServersServerIdPrivateNetworksPostRequest) ServerPrivateNetwork

type ApiServersServerIdPublicNetworksDeleteRequest

type ApiServersServerIdPublicNetworksDeleteRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdPublicNetworksDeleteRequest) Execute

type ApiServersServerIdPublicNetworksPatchRequest

type ApiServersServerIdPublicNetworksPatchRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdPublicNetworksPatchRequest) Execute

func (ApiServersServerIdPublicNetworksPatchRequest) Force

Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.

func (ApiServersServerIdPublicNetworksPatchRequest) ServerNetworkUpdate

type ApiServersServerIdPublicNetworksPostRequest

type ApiServersServerIdPublicNetworksPostRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdPublicNetworksPostRequest) Execute

func (ApiServersServerIdPublicNetworksPostRequest) Force

Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.

func (ApiServersServerIdPublicNetworksPostRequest) ServerPublicNetwork

type ApiServersServerIdTagsPutRequest

type ApiServersServerIdTagsPutRequest struct {
	ApiService ServersAPI
	// contains filtered or unexported fields
}

func (ApiServersServerIdTagsPutRequest) Execute

func (ApiServersServerIdTagsPutRequest) TagAssignmentRequest

func (r ApiServersServerIdTagsPutRequest) TagAssignmentRequest(tagAssignmentRequest []TagAssignmentRequest) ApiServersServerIdTagsPutRequest

type ApiSshKeysGetRequest

type ApiSshKeysGetRequest struct {
	ApiService SSHKeysAPI
	// contains filtered or unexported fields
}

func (ApiSshKeysGetRequest) Execute

func (r ApiSshKeysGetRequest) Execute() ([]SshKey, *http.Response, error)

type ApiSshKeysPostRequest

type ApiSshKeysPostRequest struct {
	ApiService SSHKeysAPI
	// contains filtered or unexported fields
}

func (ApiSshKeysPostRequest) Execute

func (r ApiSshKeysPostRequest) Execute() (*SshKey, *http.Response, error)

func (ApiSshKeysPostRequest) SshKeyCreate

func (r ApiSshKeysPostRequest) SshKeyCreate(sshKeyCreate SshKeyCreate) ApiSshKeysPostRequest

type ApiSshKeysSshKeyIdDeleteRequest

type ApiSshKeysSshKeyIdDeleteRequest struct {
	ApiService SSHKeysAPI
	// contains filtered or unexported fields
}

func (ApiSshKeysSshKeyIdDeleteRequest) Execute

type ApiSshKeysSshKeyIdGetRequest

type ApiSshKeysSshKeyIdGetRequest struct {
	ApiService SSHKeysAPI
	// contains filtered or unexported fields
}

func (ApiSshKeysSshKeyIdGetRequest) Execute

type ApiSshKeysSshKeyIdPutRequest

type ApiSshKeysSshKeyIdPutRequest struct {
	ApiService SSHKeysAPI
	// contains filtered or unexported fields
}

func (ApiSshKeysSshKeyIdPutRequest) Execute

func (ApiSshKeysSshKeyIdPutRequest) SshKeyUpdate

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	XPoweredBy       string            `json:"xPoweredBy,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type DeleteResult

type DeleteResult struct {
	// Server has been deleted.
	Result string `json:"result"`
	// The unique identifier of the server.
	ServerId             string `json:"serverId"`
	AdditionalProperties map[string]interface{}
}

DeleteResult Result of a successful delete action.

func NewDeleteResult

func NewDeleteResult(result string, serverId string) *DeleteResult

NewDeleteResult instantiates a new DeleteResult object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDeleteResultWithDefaults

func NewDeleteResultWithDefaults() *DeleteResult

NewDeleteResultWithDefaults instantiates a new DeleteResult object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DeleteResult) GetResult

func (o *DeleteResult) GetResult() string

GetResult returns the Result field value

func (*DeleteResult) GetResultOk

func (o *DeleteResult) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value and a boolean to check if the value has been set.

func (*DeleteResult) GetServerId

func (o *DeleteResult) GetServerId() string

GetServerId returns the ServerId field value

func (*DeleteResult) GetServerIdOk

func (o *DeleteResult) GetServerIdOk() (*string, bool)

GetServerIdOk returns a tuple with the ServerId field value and a boolean to check if the value has been set.

func (DeleteResult) MarshalJSON

func (o DeleteResult) MarshalJSON() ([]byte, error)

func (*DeleteResult) SetResult

func (o *DeleteResult) SetResult(v string)

SetResult sets field value

func (*DeleteResult) SetServerId

func (o *DeleteResult) SetServerId(v string)

SetServerId sets field value

func (DeleteResult) ToMap

func (o DeleteResult) ToMap() (map[string]interface{}, error)

func (*DeleteResult) UnmarshalJSON

func (o *DeleteResult) UnmarshalJSON(data []byte) (err error)

type DeleteSshKeyResult

type DeleteSshKeyResult struct {
	// Resource has been deleted.
	Result string `json:"result"`
	// The unique identifier of the deleted resource.
	SshKeyId             string `json:"sshKeyId"`
	AdditionalProperties map[string]interface{}
}

DeleteSshKeyResult Result of a successful delete action on a SSH key.

func NewDeleteSshKeyResult

func NewDeleteSshKeyResult(result string, sshKeyId string) *DeleteSshKeyResult

NewDeleteSshKeyResult instantiates a new DeleteSshKeyResult object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDeleteSshKeyResultWithDefaults

func NewDeleteSshKeyResultWithDefaults() *DeleteSshKeyResult

NewDeleteSshKeyResultWithDefaults instantiates a new DeleteSshKeyResult object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DeleteSshKeyResult) GetResult

func (o *DeleteSshKeyResult) GetResult() string

GetResult returns the Result field value

func (*DeleteSshKeyResult) GetResultOk

func (o *DeleteSshKeyResult) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value and a boolean to check if the value has been set.

func (*DeleteSshKeyResult) GetSshKeyId

func (o *DeleteSshKeyResult) GetSshKeyId() string

GetSshKeyId returns the SshKeyId field value

func (*DeleteSshKeyResult) GetSshKeyIdOk

func (o *DeleteSshKeyResult) GetSshKeyIdOk() (*string, bool)

GetSshKeyIdOk returns a tuple with the SshKeyId field value and a boolean to check if the value has been set.

func (DeleteSshKeyResult) MarshalJSON

func (o DeleteSshKeyResult) MarshalJSON() ([]byte, error)

func (*DeleteSshKeyResult) SetResult

func (o *DeleteSshKeyResult) SetResult(v string)

SetResult sets field value

func (*DeleteSshKeyResult) SetSshKeyId

func (o *DeleteSshKeyResult) SetSshKeyId(v string)

SetSshKeyId sets field value

func (DeleteSshKeyResult) ToMap

func (o DeleteSshKeyResult) ToMap() (map[string]interface{}, error)

func (*DeleteSshKeyResult) UnmarshalJSON

func (o *DeleteSshKeyResult) UnmarshalJSON(data []byte) (err error)

type Error

type Error struct {
	// The description detailing the cause of the error code.
	Message string `json:"message"`
	// Validation errors, if any.
	ValidationErrors     []string `json:"validationErrors,omitempty"`
	AdditionalProperties map[string]interface{}
}

Error struct for Error

func NewError

func NewError(message string) *Error

NewError instantiates a new Error object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorWithDefaults

func NewErrorWithDefaults() *Error

NewErrorWithDefaults instantiates a new Error object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Error) GetMessage

func (o *Error) GetMessage() string

GetMessage returns the Message field value

func (*Error) GetMessageOk

func (o *Error) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*Error) GetValidationErrors

func (o *Error) GetValidationErrors() []string

GetValidationErrors returns the ValidationErrors field value if set, zero value otherwise.

func (*Error) GetValidationErrorsOk

func (o *Error) GetValidationErrorsOk() ([]string, bool)

GetValidationErrorsOk returns a tuple with the ValidationErrors field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Error) HasValidationErrors

func (o *Error) HasValidationErrors() bool

HasValidationErrors returns a boolean if a field has been set.

func (Error) MarshalJSON

func (o Error) MarshalJSON() ([]byte, error)

func (*Error) SetMessage

func (o *Error) SetMessage(v string)

SetMessage sets field value

func (*Error) SetValidationErrors

func (o *Error) SetValidationErrors(v []string)

SetValidationErrors gets a reference to the given []string and assigns it to the ValidationErrors field.

func (Error) ToMap

func (o Error) ToMap() (map[string]interface{}, error)

func (*Error) UnmarshalJSON

func (o *Error) UnmarshalJSON(data []byte) (err error)

type EsxiDatastoreConfiguration added in v3.1.0

type EsxiDatastoreConfiguration struct {
	// Datastore name
	DatastoreName        string `json:"datastoreName"`
	AdditionalProperties map[string]interface{}
}

EsxiDatastoreConfiguration Esxi data storage configuration.

func NewEsxiDatastoreConfiguration added in v3.1.0

func NewEsxiDatastoreConfiguration(datastoreName string) *EsxiDatastoreConfiguration

NewEsxiDatastoreConfiguration instantiates a new EsxiDatastoreConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEsxiDatastoreConfigurationWithDefaults added in v3.1.0

func NewEsxiDatastoreConfigurationWithDefaults() *EsxiDatastoreConfiguration

NewEsxiDatastoreConfigurationWithDefaults instantiates a new EsxiDatastoreConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*EsxiDatastoreConfiguration) GetDatastoreName added in v3.1.0

func (o *EsxiDatastoreConfiguration) GetDatastoreName() string

GetDatastoreName returns the DatastoreName field value

func (*EsxiDatastoreConfiguration) GetDatastoreNameOk added in v3.1.0

func (o *EsxiDatastoreConfiguration) GetDatastoreNameOk() (*string, bool)

GetDatastoreNameOk returns a tuple with the DatastoreName field value and a boolean to check if the value has been set.

func (EsxiDatastoreConfiguration) MarshalJSON added in v3.1.0

func (o EsxiDatastoreConfiguration) MarshalJSON() ([]byte, error)

func (*EsxiDatastoreConfiguration) SetDatastoreName added in v3.1.0

func (o *EsxiDatastoreConfiguration) SetDatastoreName(v string)

SetDatastoreName sets field value

func (EsxiDatastoreConfiguration) ToMap added in v3.1.0

func (o EsxiDatastoreConfiguration) ToMap() (map[string]interface{}, error)

func (*EsxiDatastoreConfiguration) UnmarshalJSON added in v3.1.0

func (o *EsxiDatastoreConfiguration) UnmarshalJSON(data []byte) (err error)

type EsxiOsConfiguration added in v3.1.0

type EsxiOsConfiguration struct {
	DatastoreConfiguration *EsxiDatastoreConfiguration `json:"datastoreConfiguration,omitempty"`
	AdditionalProperties   map[string]interface{}
}

EsxiOsConfiguration Esxi OS configuration.

func NewEsxiOsConfiguration added in v3.1.0

func NewEsxiOsConfiguration() *EsxiOsConfiguration

NewEsxiOsConfiguration instantiates a new EsxiOsConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEsxiOsConfigurationWithDefaults added in v3.1.0

func NewEsxiOsConfigurationWithDefaults() *EsxiOsConfiguration

NewEsxiOsConfigurationWithDefaults instantiates a new EsxiOsConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*EsxiOsConfiguration) GetDatastoreConfiguration added in v3.1.0

func (o *EsxiOsConfiguration) GetDatastoreConfiguration() EsxiDatastoreConfiguration

GetDatastoreConfiguration returns the DatastoreConfiguration field value if set, zero value otherwise.

func (*EsxiOsConfiguration) GetDatastoreConfigurationOk added in v3.1.0

func (o *EsxiOsConfiguration) GetDatastoreConfigurationOk() (*EsxiDatastoreConfiguration, bool)

GetDatastoreConfigurationOk returns a tuple with the DatastoreConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EsxiOsConfiguration) HasDatastoreConfiguration added in v3.1.0

func (o *EsxiOsConfiguration) HasDatastoreConfiguration() bool

HasDatastoreConfiguration returns a boolean if a field has been set.

func (EsxiOsConfiguration) MarshalJSON added in v3.1.0

func (o EsxiOsConfiguration) MarshalJSON() ([]byte, error)

func (*EsxiOsConfiguration) SetDatastoreConfiguration added in v3.1.0

func (o *EsxiOsConfiguration) SetDatastoreConfiguration(v EsxiDatastoreConfiguration)

SetDatastoreConfiguration gets a reference to the given EsxiDatastoreConfiguration and assigns it to the DatastoreConfiguration field.

func (EsxiOsConfiguration) ToMap added in v3.1.0

func (o EsxiOsConfiguration) ToMap() (map[string]interface{}, error)

func (*EsxiOsConfiguration) UnmarshalJSON added in v3.1.0

func (o *EsxiOsConfiguration) UnmarshalJSON(data []byte) (err error)

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type IpBlocksConfiguration

type IpBlocksConfiguration struct {
	// (Write-only) Determines the approach for configuring IP blocks for the server being provisioned. If PURCHASE_NEW is selected, the smallest supported range, depending on the operating system, is allocated to the server.
	ConfigurationType *string `json:"configurationType,omitempty"`
	// Used to specify the previously purchased IP blocks to assign to this server upon provisioning. Used alongside the USER_DEFINED configurationType.
	IpBlocks             []ServerIpBlock `json:"ipBlocks,omitempty"`
	AdditionalProperties map[string]interface{}
}

IpBlocksConfiguration The IP blocks to assign to this server. <b>This is an exclusive allocation</b>, i.e. the IP blocks cannot be shared with other servers. If IpBlocksConfiguration is not defined, the purchase of a new IP block is determined by the networkType field.

func NewIpBlocksConfiguration

func NewIpBlocksConfiguration() *IpBlocksConfiguration

NewIpBlocksConfiguration instantiates a new IpBlocksConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewIpBlocksConfigurationWithDefaults

func NewIpBlocksConfigurationWithDefaults() *IpBlocksConfiguration

NewIpBlocksConfigurationWithDefaults instantiates a new IpBlocksConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*IpBlocksConfiguration) GetConfigurationType

func (o *IpBlocksConfiguration) GetConfigurationType() string

GetConfigurationType returns the ConfigurationType field value if set, zero value otherwise.

func (*IpBlocksConfiguration) GetConfigurationTypeOk

func (o *IpBlocksConfiguration) GetConfigurationTypeOk() (*string, bool)

GetConfigurationTypeOk returns a tuple with the ConfigurationType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*IpBlocksConfiguration) GetIpBlocks

func (o *IpBlocksConfiguration) GetIpBlocks() []ServerIpBlock

GetIpBlocks returns the IpBlocks field value if set, zero value otherwise.

func (*IpBlocksConfiguration) GetIpBlocksOk

func (o *IpBlocksConfiguration) GetIpBlocksOk() ([]ServerIpBlock, bool)

GetIpBlocksOk returns a tuple with the IpBlocks field value if set, nil otherwise and a boolean to check if the value has been set.

func (*IpBlocksConfiguration) HasConfigurationType

func (o *IpBlocksConfiguration) HasConfigurationType() bool

HasConfigurationType returns a boolean if a field has been set.

func (*IpBlocksConfiguration) HasIpBlocks

func (o *IpBlocksConfiguration) HasIpBlocks() bool

HasIpBlocks returns a boolean if a field has been set.

func (IpBlocksConfiguration) MarshalJSON

func (o IpBlocksConfiguration) MarshalJSON() ([]byte, error)

func (*IpBlocksConfiguration) SetConfigurationType

func (o *IpBlocksConfiguration) SetConfigurationType(v string)

SetConfigurationType gets a reference to the given string and assigns it to the ConfigurationType field.

func (*IpBlocksConfiguration) SetIpBlocks

func (o *IpBlocksConfiguration) SetIpBlocks(v []ServerIpBlock)

SetIpBlocks gets a reference to the given []ServerIpBlock and assigns it to the IpBlocks field.

func (IpBlocksConfiguration) ToMap

func (o IpBlocksConfiguration) ToMap() (map[string]interface{}, error)

func (*IpBlocksConfiguration) UnmarshalJSON added in v3.0.1

func (o *IpBlocksConfiguration) UnmarshalJSON(data []byte) (err error)

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NetworkConfiguration

type NetworkConfiguration struct {
	// The address of the gateway assigned / to assign to the server.<br> When used as part of request body, IP address has to be part of a private/public network or an IP block assigned to this server.<br> Gateway address also has to be assigned on an already deployed resource unless the address matches the BMC gateway address in a public network/IP block or the `force` query parameter is true.
	GatewayAddress              *string                      `json:"gatewayAddress,omitempty"`
	PrivateNetworkConfiguration *PrivateNetworkConfiguration `json:"privateNetworkConfiguration,omitempty"`
	IpBlocksConfiguration       *IpBlocksConfiguration       `json:"ipBlocksConfiguration,omitempty"`
	PublicNetworkConfiguration  *PublicNetworkConfiguration  `json:"publicNetworkConfiguration,omitempty"`
	AdditionalProperties        map[string]interface{}
}

NetworkConfiguration Entire network details of bare metal server.

func NewNetworkConfiguration

func NewNetworkConfiguration() *NetworkConfiguration

NewNetworkConfiguration instantiates a new NetworkConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewNetworkConfigurationWithDefaults

func NewNetworkConfigurationWithDefaults() *NetworkConfiguration

NewNetworkConfigurationWithDefaults instantiates a new NetworkConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*NetworkConfiguration) GetGatewayAddress

func (o *NetworkConfiguration) GetGatewayAddress() string

GetGatewayAddress returns the GatewayAddress field value if set, zero value otherwise.

func (*NetworkConfiguration) GetGatewayAddressOk

func (o *NetworkConfiguration) GetGatewayAddressOk() (*string, bool)

GetGatewayAddressOk returns a tuple with the GatewayAddress field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetworkConfiguration) GetIpBlocksConfiguration

func (o *NetworkConfiguration) GetIpBlocksConfiguration() IpBlocksConfiguration

GetIpBlocksConfiguration returns the IpBlocksConfiguration field value if set, zero value otherwise.

func (*NetworkConfiguration) GetIpBlocksConfigurationOk

func (o *NetworkConfiguration) GetIpBlocksConfigurationOk() (*IpBlocksConfiguration, bool)

GetIpBlocksConfigurationOk returns a tuple with the IpBlocksConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetworkConfiguration) GetPrivateNetworkConfiguration

func (o *NetworkConfiguration) GetPrivateNetworkConfiguration() PrivateNetworkConfiguration

GetPrivateNetworkConfiguration returns the PrivateNetworkConfiguration field value if set, zero value otherwise.

func (*NetworkConfiguration) GetPrivateNetworkConfigurationOk

func (o *NetworkConfiguration) GetPrivateNetworkConfigurationOk() (*PrivateNetworkConfiguration, bool)

GetPrivateNetworkConfigurationOk returns a tuple with the PrivateNetworkConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetworkConfiguration) GetPublicNetworkConfiguration

func (o *NetworkConfiguration) GetPublicNetworkConfiguration() PublicNetworkConfiguration

GetPublicNetworkConfiguration returns the PublicNetworkConfiguration field value if set, zero value otherwise.

func (*NetworkConfiguration) GetPublicNetworkConfigurationOk

func (o *NetworkConfiguration) GetPublicNetworkConfigurationOk() (*PublicNetworkConfiguration, bool)

GetPublicNetworkConfigurationOk returns a tuple with the PublicNetworkConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetworkConfiguration) HasGatewayAddress

func (o *NetworkConfiguration) HasGatewayAddress() bool

HasGatewayAddress returns a boolean if a field has been set.

func (*NetworkConfiguration) HasIpBlocksConfiguration

func (o *NetworkConfiguration) HasIpBlocksConfiguration() bool

HasIpBlocksConfiguration returns a boolean if a field has been set.

func (*NetworkConfiguration) HasPrivateNetworkConfiguration

func (o *NetworkConfiguration) HasPrivateNetworkConfiguration() bool

HasPrivateNetworkConfiguration returns a boolean if a field has been set.

func (*NetworkConfiguration) HasPublicNetworkConfiguration

func (o *NetworkConfiguration) HasPublicNetworkConfiguration() bool

HasPublicNetworkConfiguration returns a boolean if a field has been set.

func (NetworkConfiguration) MarshalJSON

func (o NetworkConfiguration) MarshalJSON() ([]byte, error)

func (*NetworkConfiguration) SetGatewayAddress

func (o *NetworkConfiguration) SetGatewayAddress(v string)

SetGatewayAddress gets a reference to the given string and assigns it to the GatewayAddress field.

func (*NetworkConfiguration) SetIpBlocksConfiguration

func (o *NetworkConfiguration) SetIpBlocksConfiguration(v IpBlocksConfiguration)

SetIpBlocksConfiguration gets a reference to the given IpBlocksConfiguration and assigns it to the IpBlocksConfiguration field.

func (*NetworkConfiguration) SetPrivateNetworkConfiguration

func (o *NetworkConfiguration) SetPrivateNetworkConfiguration(v PrivateNetworkConfiguration)

SetPrivateNetworkConfiguration gets a reference to the given PrivateNetworkConfiguration and assigns it to the PrivateNetworkConfiguration field.

func (*NetworkConfiguration) SetPublicNetworkConfiguration

func (o *NetworkConfiguration) SetPublicNetworkConfiguration(v PublicNetworkConfiguration)

SetPublicNetworkConfiguration gets a reference to the given PublicNetworkConfiguration and assigns it to the PublicNetworkConfiguration field.

func (NetworkConfiguration) ToMap

func (o NetworkConfiguration) ToMap() (map[string]interface{}, error)

func (*NetworkConfiguration) UnmarshalJSON added in v3.0.1

func (o *NetworkConfiguration) UnmarshalJSON(data []byte) (err error)

type NullableActionResult

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

func NewNullableActionResult

func NewNullableActionResult(val *ActionResult) *NullableActionResult

func (NullableActionResult) Get

func (NullableActionResult) IsSet

func (v NullableActionResult) IsSet() bool

func (NullableActionResult) MarshalJSON

func (v NullableActionResult) MarshalJSON() ([]byte, error)

func (*NullableActionResult) Set

func (v *NullableActionResult) Set(val *ActionResult)

func (*NullableActionResult) UnmarshalJSON

func (v *NullableActionResult) UnmarshalJSON(src []byte) error

func (*NullableActionResult) Unset

func (v *NullableActionResult) Unset()

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableDeleteResult

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

func NewNullableDeleteResult

func NewNullableDeleteResult(val *DeleteResult) *NullableDeleteResult

func (NullableDeleteResult) Get

func (NullableDeleteResult) IsSet

func (v NullableDeleteResult) IsSet() bool

func (NullableDeleteResult) MarshalJSON

func (v NullableDeleteResult) MarshalJSON() ([]byte, error)

func (*NullableDeleteResult) Set

func (v *NullableDeleteResult) Set(val *DeleteResult)

func (*NullableDeleteResult) UnmarshalJSON

func (v *NullableDeleteResult) UnmarshalJSON(src []byte) error

func (*NullableDeleteResult) Unset

func (v *NullableDeleteResult) Unset()

type NullableDeleteSshKeyResult

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

func NewNullableDeleteSshKeyResult

func NewNullableDeleteSshKeyResult(val *DeleteSshKeyResult) *NullableDeleteSshKeyResult

func (NullableDeleteSshKeyResult) Get

func (NullableDeleteSshKeyResult) IsSet

func (v NullableDeleteSshKeyResult) IsSet() bool

func (NullableDeleteSshKeyResult) MarshalJSON

func (v NullableDeleteSshKeyResult) MarshalJSON() ([]byte, error)

func (*NullableDeleteSshKeyResult) Set

func (*NullableDeleteSshKeyResult) UnmarshalJSON

func (v *NullableDeleteSshKeyResult) UnmarshalJSON(src []byte) error

func (*NullableDeleteSshKeyResult) Unset

func (v *NullableDeleteSshKeyResult) Unset()

type NullableError

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

func NewNullableError

func NewNullableError(val *Error) *NullableError

func (NullableError) Get

func (v NullableError) Get() *Error

func (NullableError) IsSet

func (v NullableError) IsSet() bool

func (NullableError) MarshalJSON

func (v NullableError) MarshalJSON() ([]byte, error)

func (*NullableError) Set

func (v *NullableError) Set(val *Error)

func (*NullableError) UnmarshalJSON

func (v *NullableError) UnmarshalJSON(src []byte) error

func (*NullableError) Unset

func (v *NullableError) Unset()

type NullableEsxiDatastoreConfiguration added in v3.1.0

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

func NewNullableEsxiDatastoreConfiguration added in v3.1.0

func NewNullableEsxiDatastoreConfiguration(val *EsxiDatastoreConfiguration) *NullableEsxiDatastoreConfiguration

func (NullableEsxiDatastoreConfiguration) Get added in v3.1.0

func (NullableEsxiDatastoreConfiguration) IsSet added in v3.1.0

func (NullableEsxiDatastoreConfiguration) MarshalJSON added in v3.1.0

func (v NullableEsxiDatastoreConfiguration) MarshalJSON() ([]byte, error)

func (*NullableEsxiDatastoreConfiguration) Set added in v3.1.0

func (*NullableEsxiDatastoreConfiguration) UnmarshalJSON added in v3.1.0

func (v *NullableEsxiDatastoreConfiguration) UnmarshalJSON(src []byte) error

func (*NullableEsxiDatastoreConfiguration) Unset added in v3.1.0

type NullableEsxiOsConfiguration added in v3.1.0

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

func NewNullableEsxiOsConfiguration added in v3.1.0

func NewNullableEsxiOsConfiguration(val *EsxiOsConfiguration) *NullableEsxiOsConfiguration

func (NullableEsxiOsConfiguration) Get added in v3.1.0

func (NullableEsxiOsConfiguration) IsSet added in v3.1.0

func (NullableEsxiOsConfiguration) MarshalJSON added in v3.1.0

func (v NullableEsxiOsConfiguration) MarshalJSON() ([]byte, error)

func (*NullableEsxiOsConfiguration) Set added in v3.1.0

func (*NullableEsxiOsConfiguration) UnmarshalJSON added in v3.1.0

func (v *NullableEsxiOsConfiguration) UnmarshalJSON(src []byte) error

func (*NullableEsxiOsConfiguration) Unset added in v3.1.0

func (v *NullableEsxiOsConfiguration) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableIpBlocksConfiguration

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

func (NullableIpBlocksConfiguration) Get

func (NullableIpBlocksConfiguration) IsSet

func (NullableIpBlocksConfiguration) MarshalJSON

func (v NullableIpBlocksConfiguration) MarshalJSON() ([]byte, error)

func (*NullableIpBlocksConfiguration) Set

func (*NullableIpBlocksConfiguration) UnmarshalJSON

func (v *NullableIpBlocksConfiguration) UnmarshalJSON(src []byte) error

func (*NullableIpBlocksConfiguration) Unset

func (v *NullableIpBlocksConfiguration) Unset()

type NullableNetworkConfiguration

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

func NewNullableNetworkConfiguration

func NewNullableNetworkConfiguration(val *NetworkConfiguration) *NullableNetworkConfiguration

func (NullableNetworkConfiguration) Get

func (NullableNetworkConfiguration) IsSet

func (NullableNetworkConfiguration) MarshalJSON

func (v NullableNetworkConfiguration) MarshalJSON() ([]byte, error)

func (*NullableNetworkConfiguration) Set

func (*NullableNetworkConfiguration) UnmarshalJSON

func (v *NullableNetworkConfiguration) UnmarshalJSON(src []byte) error

func (*NullableNetworkConfiguration) Unset

func (v *NullableNetworkConfiguration) Unset()

type NullableOsConfiguration

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

func NewNullableOsConfiguration

func NewNullableOsConfiguration(val *OsConfiguration) *NullableOsConfiguration

func (NullableOsConfiguration) Get

func (NullableOsConfiguration) IsSet

func (v NullableOsConfiguration) IsSet() bool

func (NullableOsConfiguration) MarshalJSON

func (v NullableOsConfiguration) MarshalJSON() ([]byte, error)

func (*NullableOsConfiguration) Set

func (*NullableOsConfiguration) UnmarshalJSON

func (v *NullableOsConfiguration) UnmarshalJSON(src []byte) error

func (*NullableOsConfiguration) Unset

func (v *NullableOsConfiguration) Unset()

type NullableOsConfigurationCloudInit

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

func (NullableOsConfigurationCloudInit) Get

func (NullableOsConfigurationCloudInit) IsSet

func (NullableOsConfigurationCloudInit) MarshalJSON

func (v NullableOsConfigurationCloudInit) MarshalJSON() ([]byte, error)

func (*NullableOsConfigurationCloudInit) Set

func (*NullableOsConfigurationCloudInit) UnmarshalJSON

func (v *NullableOsConfigurationCloudInit) UnmarshalJSON(src []byte) error

func (*NullableOsConfigurationCloudInit) Unset

type NullableOsConfigurationMap

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

func NewNullableOsConfigurationMap

func NewNullableOsConfigurationMap(val *OsConfigurationMap) *NullableOsConfigurationMap

func (NullableOsConfigurationMap) Get

func (NullableOsConfigurationMap) IsSet

func (v NullableOsConfigurationMap) IsSet() bool

func (NullableOsConfigurationMap) MarshalJSON

func (v NullableOsConfigurationMap) MarshalJSON() ([]byte, error)

func (*NullableOsConfigurationMap) Set

func (*NullableOsConfigurationMap) UnmarshalJSON

func (v *NullableOsConfigurationMap) UnmarshalJSON(src []byte) error

func (*NullableOsConfigurationMap) Unset

func (v *NullableOsConfigurationMap) Unset()

type NullableOsConfigurationMapEsxi

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

func (NullableOsConfigurationMapEsxi) Get

func (NullableOsConfigurationMapEsxi) IsSet

func (NullableOsConfigurationMapEsxi) MarshalJSON

func (v NullableOsConfigurationMapEsxi) MarshalJSON() ([]byte, error)

func (*NullableOsConfigurationMapEsxi) Set

func (*NullableOsConfigurationMapEsxi) UnmarshalJSON

func (v *NullableOsConfigurationMapEsxi) UnmarshalJSON(src []byte) error

func (*NullableOsConfigurationMapEsxi) Unset

func (v *NullableOsConfigurationMapEsxi) Unset()

type NullableOsConfigurationMapProxmox

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

func (NullableOsConfigurationMapProxmox) Get

func (NullableOsConfigurationMapProxmox) IsSet

func (NullableOsConfigurationMapProxmox) MarshalJSON

func (v NullableOsConfigurationMapProxmox) MarshalJSON() ([]byte, error)

func (*NullableOsConfigurationMapProxmox) Set

func (*NullableOsConfigurationMapProxmox) UnmarshalJSON

func (v *NullableOsConfigurationMapProxmox) UnmarshalJSON(src []byte) error

func (*NullableOsConfigurationMapProxmox) Unset

type NullableOsConfigurationNetrisController

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

func (NullableOsConfigurationNetrisController) Get

func (NullableOsConfigurationNetrisController) IsSet

func (NullableOsConfigurationNetrisController) MarshalJSON

func (v NullableOsConfigurationNetrisController) MarshalJSON() ([]byte, error)

func (*NullableOsConfigurationNetrisController) Set

func (*NullableOsConfigurationNetrisController) UnmarshalJSON

func (v *NullableOsConfigurationNetrisController) UnmarshalJSON(src []byte) error

func (*NullableOsConfigurationNetrisController) Unset

type NullableOsConfigurationNetrisSoftgate

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

func (NullableOsConfigurationNetrisSoftgate) Get

func (NullableOsConfigurationNetrisSoftgate) IsSet

func (NullableOsConfigurationNetrisSoftgate) MarshalJSON

func (v NullableOsConfigurationNetrisSoftgate) MarshalJSON() ([]byte, error)

func (*NullableOsConfigurationNetrisSoftgate) Set

func (*NullableOsConfigurationNetrisSoftgate) UnmarshalJSON

func (v *NullableOsConfigurationNetrisSoftgate) UnmarshalJSON(src []byte) error

func (*NullableOsConfigurationNetrisSoftgate) Unset

type NullableOsConfigurationWindows

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

func (NullableOsConfigurationWindows) Get

func (NullableOsConfigurationWindows) IsSet

func (NullableOsConfigurationWindows) MarshalJSON

func (v NullableOsConfigurationWindows) MarshalJSON() ([]byte, error)

func (*NullableOsConfigurationWindows) Set

func (*NullableOsConfigurationWindows) UnmarshalJSON

func (v *NullableOsConfigurationWindows) UnmarshalJSON(src []byte) error

func (*NullableOsConfigurationWindows) Unset

func (v *NullableOsConfigurationWindows) Unset()

type NullablePrivateNetworkConfiguration

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

func (NullablePrivateNetworkConfiguration) Get

func (NullablePrivateNetworkConfiguration) IsSet

func (NullablePrivateNetworkConfiguration) MarshalJSON

func (v NullablePrivateNetworkConfiguration) MarshalJSON() ([]byte, error)

func (*NullablePrivateNetworkConfiguration) Set

func (*NullablePrivateNetworkConfiguration) UnmarshalJSON

func (v *NullablePrivateNetworkConfiguration) UnmarshalJSON(src []byte) error

func (*NullablePrivateNetworkConfiguration) Unset

type NullablePublicNetworkConfiguration

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

func (NullablePublicNetworkConfiguration) Get

func (NullablePublicNetworkConfiguration) IsSet

func (NullablePublicNetworkConfiguration) MarshalJSON

func (v NullablePublicNetworkConfiguration) MarshalJSON() ([]byte, error)

func (*NullablePublicNetworkConfiguration) Set

func (*NullablePublicNetworkConfiguration) UnmarshalJSON

func (v *NullablePublicNetworkConfiguration) UnmarshalJSON(src []byte) error

func (*NullablePublicNetworkConfiguration) Unset

type NullableQuota

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

func NewNullableQuota

func NewNullableQuota(val *Quota) *NullableQuota

func (NullableQuota) Get

func (v NullableQuota) Get() *Quota

func (NullableQuota) IsSet

func (v NullableQuota) IsSet() bool

func (NullableQuota) MarshalJSON

func (v NullableQuota) MarshalJSON() ([]byte, error)

func (*NullableQuota) Set

func (v *NullableQuota) Set(val *Quota)

func (*NullableQuota) UnmarshalJSON

func (v *NullableQuota) UnmarshalJSON(src []byte) error

func (*NullableQuota) Unset

func (v *NullableQuota) Unset()

type NullableQuotaEditLimitRequest

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

func (NullableQuotaEditLimitRequest) Get

func (NullableQuotaEditLimitRequest) IsSet

func (NullableQuotaEditLimitRequest) MarshalJSON

func (v NullableQuotaEditLimitRequest) MarshalJSON() ([]byte, error)

func (*NullableQuotaEditLimitRequest) Set

func (*NullableQuotaEditLimitRequest) UnmarshalJSON

func (v *NullableQuotaEditLimitRequest) UnmarshalJSON(src []byte) error

func (*NullableQuotaEditLimitRequest) Unset

func (v *NullableQuotaEditLimitRequest) Unset()

type NullableQuotaEditLimitRequestDetails

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

func (NullableQuotaEditLimitRequestDetails) Get

func (NullableQuotaEditLimitRequestDetails) IsSet

func (NullableQuotaEditLimitRequestDetails) MarshalJSON

func (v NullableQuotaEditLimitRequestDetails) MarshalJSON() ([]byte, error)

func (*NullableQuotaEditLimitRequestDetails) Set

func (*NullableQuotaEditLimitRequestDetails) UnmarshalJSON

func (v *NullableQuotaEditLimitRequestDetails) UnmarshalJSON(src []byte) error

func (*NullableQuotaEditLimitRequestDetails) Unset

type NullableRelinquishIpBlock

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

func NewNullableRelinquishIpBlock

func NewNullableRelinquishIpBlock(val *RelinquishIpBlock) *NullableRelinquishIpBlock

func (NullableRelinquishIpBlock) Get

func (NullableRelinquishIpBlock) IsSet

func (v NullableRelinquishIpBlock) IsSet() bool

func (NullableRelinquishIpBlock) MarshalJSON

func (v NullableRelinquishIpBlock) MarshalJSON() ([]byte, error)

func (*NullableRelinquishIpBlock) Set

func (*NullableRelinquishIpBlock) UnmarshalJSON

func (v *NullableRelinquishIpBlock) UnmarshalJSON(src []byte) error

func (*NullableRelinquishIpBlock) Unset

func (v *NullableRelinquishIpBlock) Unset()

type NullableResetResult

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

func NewNullableResetResult

func NewNullableResetResult(val *ResetResult) *NullableResetResult

func (NullableResetResult) Get

func (NullableResetResult) IsSet

func (v NullableResetResult) IsSet() bool

func (NullableResetResult) MarshalJSON

func (v NullableResetResult) MarshalJSON() ([]byte, error)

func (*NullableResetResult) Set

func (v *NullableResetResult) Set(val *ResetResult)

func (*NullableResetResult) UnmarshalJSON

func (v *NullableResetResult) UnmarshalJSON(src []byte) error

func (*NullableResetResult) Unset

func (v *NullableResetResult) Unset()

type NullableServer

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

func NewNullableServer

func NewNullableServer(val *Server) *NullableServer

func (NullableServer) Get

func (v NullableServer) Get() *Server

func (NullableServer) IsSet

func (v NullableServer) IsSet() bool

func (NullableServer) MarshalJSON

func (v NullableServer) MarshalJSON() ([]byte, error)

func (*NullableServer) Set

func (v *NullableServer) Set(val *Server)

func (*NullableServer) UnmarshalJSON

func (v *NullableServer) UnmarshalJSON(src []byte) error

func (*NullableServer) Unset

func (v *NullableServer) Unset()

type NullableServerCreate

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

func NewNullableServerCreate

func NewNullableServerCreate(val *ServerCreate) *NullableServerCreate

func (NullableServerCreate) Get

func (NullableServerCreate) IsSet

func (v NullableServerCreate) IsSet() bool

func (NullableServerCreate) MarshalJSON

func (v NullableServerCreate) MarshalJSON() ([]byte, error)

func (*NullableServerCreate) Set

func (v *NullableServerCreate) Set(val *ServerCreate)

func (*NullableServerCreate) UnmarshalJSON

func (v *NullableServerCreate) UnmarshalJSON(src []byte) error

func (*NullableServerCreate) Unset

func (v *NullableServerCreate) Unset()

type NullableServerIpBlock

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

func NewNullableServerIpBlock

func NewNullableServerIpBlock(val *ServerIpBlock) *NullableServerIpBlock

func (NullableServerIpBlock) Get

func (NullableServerIpBlock) IsSet

func (v NullableServerIpBlock) IsSet() bool

func (NullableServerIpBlock) MarshalJSON

func (v NullableServerIpBlock) MarshalJSON() ([]byte, error)

func (*NullableServerIpBlock) Set

func (v *NullableServerIpBlock) Set(val *ServerIpBlock)

func (*NullableServerIpBlock) UnmarshalJSON

func (v *NullableServerIpBlock) UnmarshalJSON(src []byte) error

func (*NullableServerIpBlock) Unset

func (v *NullableServerIpBlock) Unset()

type NullableServerNetworkUpdate

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

func NewNullableServerNetworkUpdate

func NewNullableServerNetworkUpdate(val *ServerNetworkUpdate) *NullableServerNetworkUpdate

func (NullableServerNetworkUpdate) Get

func (NullableServerNetworkUpdate) IsSet

func (NullableServerNetworkUpdate) MarshalJSON

func (v NullableServerNetworkUpdate) MarshalJSON() ([]byte, error)

func (*NullableServerNetworkUpdate) Set

func (*NullableServerNetworkUpdate) UnmarshalJSON

func (v *NullableServerNetworkUpdate) UnmarshalJSON(src []byte) error

func (*NullableServerNetworkUpdate) Unset

func (v *NullableServerNetworkUpdate) Unset()

type NullableServerPatch

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

func NewNullableServerPatch

func NewNullableServerPatch(val *ServerPatch) *NullableServerPatch

func (NullableServerPatch) Get

func (NullableServerPatch) IsSet

func (v NullableServerPatch) IsSet() bool

func (NullableServerPatch) MarshalJSON

func (v NullableServerPatch) MarshalJSON() ([]byte, error)

func (*NullableServerPatch) Set

func (v *NullableServerPatch) Set(val *ServerPatch)

func (*NullableServerPatch) UnmarshalJSON

func (v *NullableServerPatch) UnmarshalJSON(src []byte) error

func (*NullableServerPatch) Unset

func (v *NullableServerPatch) Unset()

type NullableServerPrivateNetwork

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

func NewNullableServerPrivateNetwork

func NewNullableServerPrivateNetwork(val *ServerPrivateNetwork) *NullableServerPrivateNetwork

func (NullableServerPrivateNetwork) Get

func (NullableServerPrivateNetwork) IsSet

func (NullableServerPrivateNetwork) MarshalJSON

func (v NullableServerPrivateNetwork) MarshalJSON() ([]byte, error)

func (*NullableServerPrivateNetwork) Set

func (*NullableServerPrivateNetwork) UnmarshalJSON

func (v *NullableServerPrivateNetwork) UnmarshalJSON(src []byte) error

func (*NullableServerPrivateNetwork) Unset

func (v *NullableServerPrivateNetwork) Unset()

type NullableServerProvision

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

func NewNullableServerProvision

func NewNullableServerProvision(val *ServerProvision) *NullableServerProvision

func (NullableServerProvision) Get

func (NullableServerProvision) IsSet

func (v NullableServerProvision) IsSet() bool

func (NullableServerProvision) MarshalJSON

func (v NullableServerProvision) MarshalJSON() ([]byte, error)

func (*NullableServerProvision) Set

func (*NullableServerProvision) UnmarshalJSON

func (v *NullableServerProvision) UnmarshalJSON(src []byte) error

func (*NullableServerProvision) Unset

func (v *NullableServerProvision) Unset()

type NullableServerPublicNetwork

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

func NewNullableServerPublicNetwork

func NewNullableServerPublicNetwork(val *ServerPublicNetwork) *NullableServerPublicNetwork

func (NullableServerPublicNetwork) Get

func (NullableServerPublicNetwork) IsSet

func (NullableServerPublicNetwork) MarshalJSON

func (v NullableServerPublicNetwork) MarshalJSON() ([]byte, error)

func (*NullableServerPublicNetwork) Set

func (*NullableServerPublicNetwork) UnmarshalJSON

func (v *NullableServerPublicNetwork) UnmarshalJSON(src []byte) error

func (*NullableServerPublicNetwork) Unset

func (v *NullableServerPublicNetwork) Unset()

type NullableServerReserve

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

func NewNullableServerReserve

func NewNullableServerReserve(val *ServerReserve) *NullableServerReserve

func (NullableServerReserve) Get

func (NullableServerReserve) IsSet

func (v NullableServerReserve) IsSet() bool

func (NullableServerReserve) MarshalJSON

func (v NullableServerReserve) MarshalJSON() ([]byte, error)

func (*NullableServerReserve) Set

func (v *NullableServerReserve) Set(val *ServerReserve)

func (*NullableServerReserve) UnmarshalJSON

func (v *NullableServerReserve) UnmarshalJSON(src []byte) error

func (*NullableServerReserve) Unset

func (v *NullableServerReserve) Unset()

type NullableServerReset

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

func NewNullableServerReset

func NewNullableServerReset(val *ServerReset) *NullableServerReset

func (NullableServerReset) Get

func (NullableServerReset) IsSet

func (v NullableServerReset) IsSet() bool

func (NullableServerReset) MarshalJSON

func (v NullableServerReset) MarshalJSON() ([]byte, error)

func (*NullableServerReset) Set

func (v *NullableServerReset) Set(val *ServerReset)

func (*NullableServerReset) UnmarshalJSON

func (v *NullableServerReset) UnmarshalJSON(src []byte) error

func (*NullableServerReset) Unset

func (v *NullableServerReset) Unset()

type NullableSshKey

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

func NewNullableSshKey

func NewNullableSshKey(val *SshKey) *NullableSshKey

func (NullableSshKey) Get

func (v NullableSshKey) Get() *SshKey

func (NullableSshKey) IsSet

func (v NullableSshKey) IsSet() bool

func (NullableSshKey) MarshalJSON

func (v NullableSshKey) MarshalJSON() ([]byte, error)

func (*NullableSshKey) Set

func (v *NullableSshKey) Set(val *SshKey)

func (*NullableSshKey) UnmarshalJSON

func (v *NullableSshKey) UnmarshalJSON(src []byte) error

func (*NullableSshKey) Unset

func (v *NullableSshKey) Unset()

type NullableSshKeyCreate

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

func NewNullableSshKeyCreate

func NewNullableSshKeyCreate(val *SshKeyCreate) *NullableSshKeyCreate

func (NullableSshKeyCreate) Get

func (NullableSshKeyCreate) IsSet

func (v NullableSshKeyCreate) IsSet() bool

func (NullableSshKeyCreate) MarshalJSON

func (v NullableSshKeyCreate) MarshalJSON() ([]byte, error)

func (*NullableSshKeyCreate) Set

func (v *NullableSshKeyCreate) Set(val *SshKeyCreate)

func (*NullableSshKeyCreate) UnmarshalJSON

func (v *NullableSshKeyCreate) UnmarshalJSON(src []byte) error

func (*NullableSshKeyCreate) Unset

func (v *NullableSshKeyCreate) Unset()

type NullableSshKeyUpdate

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

func NewNullableSshKeyUpdate

func NewNullableSshKeyUpdate(val *SshKeyUpdate) *NullableSshKeyUpdate

func (NullableSshKeyUpdate) Get

func (NullableSshKeyUpdate) IsSet

func (v NullableSshKeyUpdate) IsSet() bool

func (NullableSshKeyUpdate) MarshalJSON

func (v NullableSshKeyUpdate) MarshalJSON() ([]byte, error)

func (*NullableSshKeyUpdate) Set

func (v *NullableSshKeyUpdate) Set(val *SshKeyUpdate)

func (*NullableSshKeyUpdate) UnmarshalJSON

func (v *NullableSshKeyUpdate) UnmarshalJSON(src []byte) error

func (*NullableSshKeyUpdate) Unset

func (v *NullableSshKeyUpdate) Unset()

type NullableStorageConfiguration

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

func NewNullableStorageConfiguration

func NewNullableStorageConfiguration(val *StorageConfiguration) *NullableStorageConfiguration

func (NullableStorageConfiguration) Get

func (NullableStorageConfiguration) IsSet

func (NullableStorageConfiguration) MarshalJSON

func (v NullableStorageConfiguration) MarshalJSON() ([]byte, error)

func (*NullableStorageConfiguration) Set

func (*NullableStorageConfiguration) UnmarshalJSON

func (v *NullableStorageConfiguration) UnmarshalJSON(src []byte) error

func (*NullableStorageConfiguration) Unset

func (v *NullableStorageConfiguration) Unset()

type NullableStorageConfigurationRootPartition

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

func (NullableStorageConfigurationRootPartition) Get

func (NullableStorageConfigurationRootPartition) IsSet

func (NullableStorageConfigurationRootPartition) MarshalJSON

func (*NullableStorageConfigurationRootPartition) Set

func (*NullableStorageConfigurationRootPartition) UnmarshalJSON

func (v *NullableStorageConfigurationRootPartition) UnmarshalJSON(src []byte) error

func (*NullableStorageConfigurationRootPartition) Unset

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTagAssignment

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

func NewNullableTagAssignment

func NewNullableTagAssignment(val *TagAssignment) *NullableTagAssignment

func (NullableTagAssignment) Get

func (NullableTagAssignment) IsSet

func (v NullableTagAssignment) IsSet() bool

func (NullableTagAssignment) MarshalJSON

func (v NullableTagAssignment) MarshalJSON() ([]byte, error)

func (*NullableTagAssignment) Set

func (v *NullableTagAssignment) Set(val *TagAssignment)

func (*NullableTagAssignment) UnmarshalJSON

func (v *NullableTagAssignment) UnmarshalJSON(src []byte) error

func (*NullableTagAssignment) Unset

func (v *NullableTagAssignment) Unset()

type NullableTagAssignmentRequest

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

func NewNullableTagAssignmentRequest

func NewNullableTagAssignmentRequest(val *TagAssignmentRequest) *NullableTagAssignmentRequest

func (NullableTagAssignmentRequest) Get

func (NullableTagAssignmentRequest) IsSet

func (NullableTagAssignmentRequest) MarshalJSON

func (v NullableTagAssignmentRequest) MarshalJSON() ([]byte, error)

func (*NullableTagAssignmentRequest) Set

func (*NullableTagAssignmentRequest) UnmarshalJSON

func (v *NullableTagAssignmentRequest) UnmarshalJSON(src []byte) error

func (*NullableTagAssignmentRequest) Unset

func (v *NullableTagAssignmentRequest) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type OsConfiguration

type OsConfiguration struct {
	NetrisController *OsConfigurationNetrisController `json:"netrisController,omitempty"`
	NetrisSoftgate   *OsConfigurationNetrisSoftgate   `json:"netrisSoftgate,omitempty"`
	Windows          *OsConfigurationWindows          `json:"windows,omitempty"`
	// (Read-only) Auto-generated password set for user 'root' on an ESXi or Proxmox server.<br>  The password is not stored and therefore will only be returned in response to provisioning a server. Copy and save it for future reference.
	RootPassword *string `json:"rootPassword,omitempty"`
	// (Read-only) The URL of the management UI which will only be returned in response to provisioning a server.
	ManagementUiUrl *string `json:"managementUiUrl,omitempty"`
	// List of IPs allowed to access the Management UI. Supported in single IP, CIDR and range format. When undefined, Management UI is disabled. This will only be returned in response to provisioning a server.
	ManagementAccessAllowedIps []string `json:"managementAccessAllowedIps,omitempty"`
	// If true, OS will be installed to and booted from the server's RAM. On restart RAM OS will be lost and the server will not be reachable unless a custom bootable OS has been deployed. Follow the <a href='https://phoenixnap.com/kb/bmc-custom-os' target='_blank'>instructions</a> on how to install custom OS on BMC. Only supported for ubuntu/focal and ubuntu/jammy.
	InstallOsToRam       *bool                     `json:"installOsToRam,omitempty"`
	Esxi                 *EsxiOsConfiguration      `json:"esxi,omitempty"`
	CloudInit            *OsConfigurationCloudInit `json:"cloudInit,omitempty"`
	AdditionalProperties map[string]interface{}
}

OsConfiguration OS specific configuration properties.

func NewOsConfiguration

func NewOsConfiguration() *OsConfiguration

NewOsConfiguration instantiates a new OsConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewOsConfigurationWithDefaults

func NewOsConfigurationWithDefaults() *OsConfiguration

NewOsConfigurationWithDefaults instantiates a new OsConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*OsConfiguration) GetCloudInit

func (o *OsConfiguration) GetCloudInit() OsConfigurationCloudInit

GetCloudInit returns the CloudInit field value if set, zero value otherwise.

func (*OsConfiguration) GetCloudInitOk

func (o *OsConfiguration) GetCloudInitOk() (*OsConfigurationCloudInit, bool)

GetCloudInitOk returns a tuple with the CloudInit field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfiguration) GetEsxi added in v3.1.0

func (o *OsConfiguration) GetEsxi() EsxiOsConfiguration

GetEsxi returns the Esxi field value if set, zero value otherwise.

func (*OsConfiguration) GetEsxiOk added in v3.1.0

func (o *OsConfiguration) GetEsxiOk() (*EsxiOsConfiguration, bool)

GetEsxiOk returns a tuple with the Esxi field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfiguration) GetInstallOsToRam

func (o *OsConfiguration) GetInstallOsToRam() bool

GetInstallOsToRam returns the InstallOsToRam field value if set, zero value otherwise.

func (*OsConfiguration) GetInstallOsToRamOk

func (o *OsConfiguration) GetInstallOsToRamOk() (*bool, bool)

GetInstallOsToRamOk returns a tuple with the InstallOsToRam field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfiguration) GetManagementAccessAllowedIps

func (o *OsConfiguration) GetManagementAccessAllowedIps() []string

GetManagementAccessAllowedIps returns the ManagementAccessAllowedIps field value if set, zero value otherwise.

func (*OsConfiguration) GetManagementAccessAllowedIpsOk

func (o *OsConfiguration) GetManagementAccessAllowedIpsOk() ([]string, bool)

GetManagementAccessAllowedIpsOk returns a tuple with the ManagementAccessAllowedIps field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfiguration) GetManagementUiUrl

func (o *OsConfiguration) GetManagementUiUrl() string

GetManagementUiUrl returns the ManagementUiUrl field value if set, zero value otherwise.

func (*OsConfiguration) GetManagementUiUrlOk

func (o *OsConfiguration) GetManagementUiUrlOk() (*string, bool)

GetManagementUiUrlOk returns a tuple with the ManagementUiUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfiguration) GetNetrisController

func (o *OsConfiguration) GetNetrisController() OsConfigurationNetrisController

GetNetrisController returns the NetrisController field value if set, zero value otherwise.

func (*OsConfiguration) GetNetrisControllerOk

func (o *OsConfiguration) GetNetrisControllerOk() (*OsConfigurationNetrisController, bool)

GetNetrisControllerOk returns a tuple with the NetrisController field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfiguration) GetNetrisSoftgate

func (o *OsConfiguration) GetNetrisSoftgate() OsConfigurationNetrisSoftgate

GetNetrisSoftgate returns the NetrisSoftgate field value if set, zero value otherwise.

func (*OsConfiguration) GetNetrisSoftgateOk

func (o *OsConfiguration) GetNetrisSoftgateOk() (*OsConfigurationNetrisSoftgate, bool)

GetNetrisSoftgateOk returns a tuple with the NetrisSoftgate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfiguration) GetRootPassword

func (o *OsConfiguration) GetRootPassword() string

GetRootPassword returns the RootPassword field value if set, zero value otherwise.

func (*OsConfiguration) GetRootPasswordOk

func (o *OsConfiguration) GetRootPasswordOk() (*string, bool)

GetRootPasswordOk returns a tuple with the RootPassword field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfiguration) GetWindows

func (o *OsConfiguration) GetWindows() OsConfigurationWindows

GetWindows returns the Windows field value if set, zero value otherwise.

func (*OsConfiguration) GetWindowsOk

func (o *OsConfiguration) GetWindowsOk() (*OsConfigurationWindows, bool)

GetWindowsOk returns a tuple with the Windows field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfiguration) HasCloudInit

func (o *OsConfiguration) HasCloudInit() bool

HasCloudInit returns a boolean if a field has been set.

func (*OsConfiguration) HasEsxi added in v3.1.0

func (o *OsConfiguration) HasEsxi() bool

HasEsxi returns a boolean if a field has been set.

func (*OsConfiguration) HasInstallOsToRam

func (o *OsConfiguration) HasInstallOsToRam() bool

HasInstallOsToRam returns a boolean if a field has been set.

func (*OsConfiguration) HasManagementAccessAllowedIps

func (o *OsConfiguration) HasManagementAccessAllowedIps() bool

HasManagementAccessAllowedIps returns a boolean if a field has been set.

func (*OsConfiguration) HasManagementUiUrl

func (o *OsConfiguration) HasManagementUiUrl() bool

HasManagementUiUrl returns a boolean if a field has been set.

func (*OsConfiguration) HasNetrisController

func (o *OsConfiguration) HasNetrisController() bool

HasNetrisController returns a boolean if a field has been set.

func (*OsConfiguration) HasNetrisSoftgate

func (o *OsConfiguration) HasNetrisSoftgate() bool

HasNetrisSoftgate returns a boolean if a field has been set.

func (*OsConfiguration) HasRootPassword

func (o *OsConfiguration) HasRootPassword() bool

HasRootPassword returns a boolean if a field has been set.

func (*OsConfiguration) HasWindows

func (o *OsConfiguration) HasWindows() bool

HasWindows returns a boolean if a field has been set.

func (OsConfiguration) MarshalJSON

func (o OsConfiguration) MarshalJSON() ([]byte, error)

func (*OsConfiguration) SetCloudInit

func (o *OsConfiguration) SetCloudInit(v OsConfigurationCloudInit)

SetCloudInit gets a reference to the given OsConfigurationCloudInit and assigns it to the CloudInit field.

func (*OsConfiguration) SetEsxi added in v3.1.0

func (o *OsConfiguration) SetEsxi(v EsxiOsConfiguration)

SetEsxi gets a reference to the given EsxiOsConfiguration and assigns it to the Esxi field.

func (*OsConfiguration) SetInstallOsToRam

func (o *OsConfiguration) SetInstallOsToRam(v bool)

SetInstallOsToRam gets a reference to the given bool and assigns it to the InstallOsToRam field.

func (*OsConfiguration) SetManagementAccessAllowedIps

func (o *OsConfiguration) SetManagementAccessAllowedIps(v []string)

SetManagementAccessAllowedIps gets a reference to the given []string and assigns it to the ManagementAccessAllowedIps field.

func (*OsConfiguration) SetManagementUiUrl

func (o *OsConfiguration) SetManagementUiUrl(v string)

SetManagementUiUrl gets a reference to the given string and assigns it to the ManagementUiUrl field.

func (*OsConfiguration) SetNetrisController

func (o *OsConfiguration) SetNetrisController(v OsConfigurationNetrisController)

SetNetrisController gets a reference to the given OsConfigurationNetrisController and assigns it to the NetrisController field.

func (*OsConfiguration) SetNetrisSoftgate

func (o *OsConfiguration) SetNetrisSoftgate(v OsConfigurationNetrisSoftgate)

SetNetrisSoftgate gets a reference to the given OsConfigurationNetrisSoftgate and assigns it to the NetrisSoftgate field.

func (*OsConfiguration) SetRootPassword

func (o *OsConfiguration) SetRootPassword(v string)

SetRootPassword gets a reference to the given string and assigns it to the RootPassword field.

func (*OsConfiguration) SetWindows

func (o *OsConfiguration) SetWindows(v OsConfigurationWindows)

SetWindows gets a reference to the given OsConfigurationWindows and assigns it to the Windows field.

func (OsConfiguration) ToMap

func (o OsConfiguration) ToMap() (map[string]interface{}, error)

func (*OsConfiguration) UnmarshalJSON added in v3.0.1

func (o *OsConfiguration) UnmarshalJSON(data []byte) (err error)

type OsConfigurationCloudInit

type OsConfigurationCloudInit struct {
	// (Write-only) User data for the <a href='https://cloudinit.readthedocs.io/en/latest/' target='_blank'>cloud-init</a> configuration in base64 encoding. NoCloud format is supported. Follow the <a href='https://phoenixnap.com/kb/bmc-cloud-init' target='_blank'>instructions</a> on how to provision a server using cloud-init. Only ubuntu/bionic, ubuntu/focal and ubuntu/jammy are supported. User data will not be stored and cannot be retrieved once you deploy the server. Copy and save it for future reference.
	UserData             *string `json:"userData,omitempty"`
	AdditionalProperties map[string]interface{}
}

OsConfigurationCloudInit Cloud-init configuration details.

func NewOsConfigurationCloudInit

func NewOsConfigurationCloudInit() *OsConfigurationCloudInit

NewOsConfigurationCloudInit instantiates a new OsConfigurationCloudInit object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewOsConfigurationCloudInitWithDefaults

func NewOsConfigurationCloudInitWithDefaults() *OsConfigurationCloudInit

NewOsConfigurationCloudInitWithDefaults instantiates a new OsConfigurationCloudInit object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*OsConfigurationCloudInit) GetUserData

func (o *OsConfigurationCloudInit) GetUserData() string

GetUserData returns the UserData field value if set, zero value otherwise.

func (*OsConfigurationCloudInit) GetUserDataOk

func (o *OsConfigurationCloudInit) GetUserDataOk() (*string, bool)

GetUserDataOk returns a tuple with the UserData field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationCloudInit) HasUserData

func (o *OsConfigurationCloudInit) HasUserData() bool

HasUserData returns a boolean if a field has been set.

func (OsConfigurationCloudInit) MarshalJSON

func (o OsConfigurationCloudInit) MarshalJSON() ([]byte, error)

func (*OsConfigurationCloudInit) SetUserData

func (o *OsConfigurationCloudInit) SetUserData(v string)

SetUserData gets a reference to the given string and assigns it to the UserData field.

func (OsConfigurationCloudInit) ToMap

func (o OsConfigurationCloudInit) ToMap() (map[string]interface{}, error)

func (*OsConfigurationCloudInit) UnmarshalJSON added in v3.0.1

func (o *OsConfigurationCloudInit) UnmarshalJSON(data []byte) (err error)

type OsConfigurationMap

type OsConfigurationMap struct {
	Windows              *OsConfigurationWindows    `json:"windows,omitempty"`
	Esxi                 *OsConfigurationMapEsxi    `json:"esxi,omitempty"`
	Proxmox              *OsConfigurationMapProxmox `json:"proxmox,omitempty"`
	AdditionalProperties map[string]interface{}
}

OsConfigurationMap OS specific configuration properties.

func NewOsConfigurationMap

func NewOsConfigurationMap() *OsConfigurationMap

NewOsConfigurationMap instantiates a new OsConfigurationMap object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewOsConfigurationMapWithDefaults

func NewOsConfigurationMapWithDefaults() *OsConfigurationMap

NewOsConfigurationMapWithDefaults instantiates a new OsConfigurationMap object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*OsConfigurationMap) GetEsxi

GetEsxi returns the Esxi field value if set, zero value otherwise.

func (*OsConfigurationMap) GetEsxiOk

func (o *OsConfigurationMap) GetEsxiOk() (*OsConfigurationMapEsxi, bool)

GetEsxiOk returns a tuple with the Esxi field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationMap) GetProxmox

GetProxmox returns the Proxmox field value if set, zero value otherwise.

func (*OsConfigurationMap) GetProxmoxOk

func (o *OsConfigurationMap) GetProxmoxOk() (*OsConfigurationMapProxmox, bool)

GetProxmoxOk returns a tuple with the Proxmox field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationMap) GetWindows

GetWindows returns the Windows field value if set, zero value otherwise.

func (*OsConfigurationMap) GetWindowsOk

func (o *OsConfigurationMap) GetWindowsOk() (*OsConfigurationWindows, bool)

GetWindowsOk returns a tuple with the Windows field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationMap) HasEsxi

func (o *OsConfigurationMap) HasEsxi() bool

HasEsxi returns a boolean if a field has been set.

func (*OsConfigurationMap) HasProxmox

func (o *OsConfigurationMap) HasProxmox() bool

HasProxmox returns a boolean if a field has been set.

func (*OsConfigurationMap) HasWindows

func (o *OsConfigurationMap) HasWindows() bool

HasWindows returns a boolean if a field has been set.

func (OsConfigurationMap) MarshalJSON

func (o OsConfigurationMap) MarshalJSON() ([]byte, error)

func (*OsConfigurationMap) SetEsxi

SetEsxi gets a reference to the given OsConfigurationMapEsxi and assigns it to the Esxi field.

func (*OsConfigurationMap) SetProxmox

SetProxmox gets a reference to the given OsConfigurationMapProxmox and assigns it to the Proxmox field.

func (*OsConfigurationMap) SetWindows

func (o *OsConfigurationMap) SetWindows(v OsConfigurationWindows)

SetWindows gets a reference to the given OsConfigurationWindows and assigns it to the Windows field.

func (OsConfigurationMap) ToMap

func (o OsConfigurationMap) ToMap() (map[string]interface{}, error)

func (*OsConfigurationMap) UnmarshalJSON added in v3.0.1

func (o *OsConfigurationMap) UnmarshalJSON(data []byte) (err error)

type OsConfigurationMapEsxi

type OsConfigurationMapEsxi struct {
	// (Read-only) Password set for user root on an ESXi server which will only be returned in response to provisioning a server.
	RootPassword *string `json:"rootPassword,omitempty"`
	// (Read-only) The URL of the management UI which will only be returned in response to provisioning a server.
	ManagementUiUrl *string `json:"managementUiUrl,omitempty"`
	// List of IPs allowed to access the Management UI. Supported in single IP, CIDR and range format. When undefined, Management UI is disabled. This will only be returned in response to provisioning a server.
	ManagementAccessAllowedIps []string `json:"managementAccessAllowedIps,omitempty"`
	AdditionalProperties       map[string]interface{}
}

OsConfigurationMapEsxi VMWare ESXi configuration properties.

func NewOsConfigurationMapEsxi

func NewOsConfigurationMapEsxi() *OsConfigurationMapEsxi

NewOsConfigurationMapEsxi instantiates a new OsConfigurationMapEsxi object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewOsConfigurationMapEsxiWithDefaults

func NewOsConfigurationMapEsxiWithDefaults() *OsConfigurationMapEsxi

NewOsConfigurationMapEsxiWithDefaults instantiates a new OsConfigurationMapEsxi object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*OsConfigurationMapEsxi) GetManagementAccessAllowedIps

func (o *OsConfigurationMapEsxi) GetManagementAccessAllowedIps() []string

GetManagementAccessAllowedIps returns the ManagementAccessAllowedIps field value if set, zero value otherwise.

func (*OsConfigurationMapEsxi) GetManagementAccessAllowedIpsOk

func (o *OsConfigurationMapEsxi) GetManagementAccessAllowedIpsOk() ([]string, bool)

GetManagementAccessAllowedIpsOk returns a tuple with the ManagementAccessAllowedIps field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationMapEsxi) GetManagementUiUrl

func (o *OsConfigurationMapEsxi) GetManagementUiUrl() string

GetManagementUiUrl returns the ManagementUiUrl field value if set, zero value otherwise.

func (*OsConfigurationMapEsxi) GetManagementUiUrlOk

func (o *OsConfigurationMapEsxi) GetManagementUiUrlOk() (*string, bool)

GetManagementUiUrlOk returns a tuple with the ManagementUiUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationMapEsxi) GetRootPassword

func (o *OsConfigurationMapEsxi) GetRootPassword() string

GetRootPassword returns the RootPassword field value if set, zero value otherwise.

func (*OsConfigurationMapEsxi) GetRootPasswordOk

func (o *OsConfigurationMapEsxi) GetRootPasswordOk() (*string, bool)

GetRootPasswordOk returns a tuple with the RootPassword field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationMapEsxi) HasManagementAccessAllowedIps

func (o *OsConfigurationMapEsxi) HasManagementAccessAllowedIps() bool

HasManagementAccessAllowedIps returns a boolean if a field has been set.

func (*OsConfigurationMapEsxi) HasManagementUiUrl

func (o *OsConfigurationMapEsxi) HasManagementUiUrl() bool

HasManagementUiUrl returns a boolean if a field has been set.

func (*OsConfigurationMapEsxi) HasRootPassword

func (o *OsConfigurationMapEsxi) HasRootPassword() bool

HasRootPassword returns a boolean if a field has been set.

func (OsConfigurationMapEsxi) MarshalJSON

func (o OsConfigurationMapEsxi) MarshalJSON() ([]byte, error)

func (*OsConfigurationMapEsxi) SetManagementAccessAllowedIps

func (o *OsConfigurationMapEsxi) SetManagementAccessAllowedIps(v []string)

SetManagementAccessAllowedIps gets a reference to the given []string and assigns it to the ManagementAccessAllowedIps field.

func (*OsConfigurationMapEsxi) SetManagementUiUrl

func (o *OsConfigurationMapEsxi) SetManagementUiUrl(v string)

SetManagementUiUrl gets a reference to the given string and assigns it to the ManagementUiUrl field.

func (*OsConfigurationMapEsxi) SetRootPassword

func (o *OsConfigurationMapEsxi) SetRootPassword(v string)

SetRootPassword gets a reference to the given string and assigns it to the RootPassword field.

func (OsConfigurationMapEsxi) ToMap

func (o OsConfigurationMapEsxi) ToMap() (map[string]interface{}, error)

func (*OsConfigurationMapEsxi) UnmarshalJSON added in v3.0.1

func (o *OsConfigurationMapEsxi) UnmarshalJSON(data []byte) (err error)

type OsConfigurationMapProxmox

type OsConfigurationMapProxmox struct {
	// (Read-only) Password set for user root on a Proxmox server which will only be returned in response to provisioning a server.
	RootPassword *string `json:"rootPassword,omitempty"`
	// (Read-only) The URL of the management UI which will only be returned in response to provisioning a server.
	ManagementUiUrl *string `json:"managementUiUrl,omitempty"`
	// List of IPs allowed to access the Management UI. Supported in single IP, CIDR and range format. When undefined, Management UI is disabled. This will only be returned in response to provisioning a server.
	ManagementAccessAllowedIps []string `json:"managementAccessAllowedIps,omitempty"`
	AdditionalProperties       map[string]interface{}
}

OsConfigurationMapProxmox Proxmox VE configuration properties.

func NewOsConfigurationMapProxmox

func NewOsConfigurationMapProxmox() *OsConfigurationMapProxmox

NewOsConfigurationMapProxmox instantiates a new OsConfigurationMapProxmox object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewOsConfigurationMapProxmoxWithDefaults

func NewOsConfigurationMapProxmoxWithDefaults() *OsConfigurationMapProxmox

NewOsConfigurationMapProxmoxWithDefaults instantiates a new OsConfigurationMapProxmox object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*OsConfigurationMapProxmox) GetManagementAccessAllowedIps

func (o *OsConfigurationMapProxmox) GetManagementAccessAllowedIps() []string

GetManagementAccessAllowedIps returns the ManagementAccessAllowedIps field value if set, zero value otherwise.

func (*OsConfigurationMapProxmox) GetManagementAccessAllowedIpsOk

func (o *OsConfigurationMapProxmox) GetManagementAccessAllowedIpsOk() ([]string, bool)

GetManagementAccessAllowedIpsOk returns a tuple with the ManagementAccessAllowedIps field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationMapProxmox) GetManagementUiUrl

func (o *OsConfigurationMapProxmox) GetManagementUiUrl() string

GetManagementUiUrl returns the ManagementUiUrl field value if set, zero value otherwise.

func (*OsConfigurationMapProxmox) GetManagementUiUrlOk

func (o *OsConfigurationMapProxmox) GetManagementUiUrlOk() (*string, bool)

GetManagementUiUrlOk returns a tuple with the ManagementUiUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationMapProxmox) GetRootPassword

func (o *OsConfigurationMapProxmox) GetRootPassword() string

GetRootPassword returns the RootPassword field value if set, zero value otherwise.

func (*OsConfigurationMapProxmox) GetRootPasswordOk

func (o *OsConfigurationMapProxmox) GetRootPasswordOk() (*string, bool)

GetRootPasswordOk returns a tuple with the RootPassword field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationMapProxmox) HasManagementAccessAllowedIps

func (o *OsConfigurationMapProxmox) HasManagementAccessAllowedIps() bool

HasManagementAccessAllowedIps returns a boolean if a field has been set.

func (*OsConfigurationMapProxmox) HasManagementUiUrl

func (o *OsConfigurationMapProxmox) HasManagementUiUrl() bool

HasManagementUiUrl returns a boolean if a field has been set.

func (*OsConfigurationMapProxmox) HasRootPassword

func (o *OsConfigurationMapProxmox) HasRootPassword() bool

HasRootPassword returns a boolean if a field has been set.

func (OsConfigurationMapProxmox) MarshalJSON

func (o OsConfigurationMapProxmox) MarshalJSON() ([]byte, error)

func (*OsConfigurationMapProxmox) SetManagementAccessAllowedIps

func (o *OsConfigurationMapProxmox) SetManagementAccessAllowedIps(v []string)

SetManagementAccessAllowedIps gets a reference to the given []string and assigns it to the ManagementAccessAllowedIps field.

func (*OsConfigurationMapProxmox) SetManagementUiUrl

func (o *OsConfigurationMapProxmox) SetManagementUiUrl(v string)

SetManagementUiUrl gets a reference to the given string and assigns it to the ManagementUiUrl field.

func (*OsConfigurationMapProxmox) SetRootPassword

func (o *OsConfigurationMapProxmox) SetRootPassword(v string)

SetRootPassword gets a reference to the given string and assigns it to the RootPassword field.

func (OsConfigurationMapProxmox) ToMap

func (o OsConfigurationMapProxmox) ToMap() (map[string]interface{}, error)

func (*OsConfigurationMapProxmox) UnmarshalJSON added in v3.0.1

func (o *OsConfigurationMapProxmox) UnmarshalJSON(data []byte) (err error)

type OsConfigurationNetrisController

type OsConfigurationNetrisController struct {
	// (Read-only) Host OS on which the Netris Controller is installed.
	HostOs *string `json:"hostOs,omitempty"`
	// (Read-only) The URL for the Netris Controller web console. It will only be returned in response to provisioning a server.
	NetrisWebConsoleUrl *string `json:"netrisWebConsoleUrl,omitempty"`
	// (Read-only) Auto-generated password set for user 'netris' in the web console.<br>  The password is not stored and therefore will only be returned in response to provisioning a server. Copy and save it for future reference.
	NetrisUserPassword   *string `json:"netrisUserPassword,omitempty"`
	AdditionalProperties map[string]interface{}
}

OsConfigurationNetrisController Netris Controller configuration properties. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/netris-bare-metal-cloud#deploy-netris-controller' target='_blank'>here</a>.

func NewOsConfigurationNetrisController

func NewOsConfigurationNetrisController() *OsConfigurationNetrisController

NewOsConfigurationNetrisController instantiates a new OsConfigurationNetrisController object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewOsConfigurationNetrisControllerWithDefaults

func NewOsConfigurationNetrisControllerWithDefaults() *OsConfigurationNetrisController

NewOsConfigurationNetrisControllerWithDefaults instantiates a new OsConfigurationNetrisController object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*OsConfigurationNetrisController) GetHostOs

func (o *OsConfigurationNetrisController) GetHostOs() string

GetHostOs returns the HostOs field value if set, zero value otherwise.

func (*OsConfigurationNetrisController) GetHostOsOk

func (o *OsConfigurationNetrisController) GetHostOsOk() (*string, bool)

GetHostOsOk returns a tuple with the HostOs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationNetrisController) GetNetrisUserPassword

func (o *OsConfigurationNetrisController) GetNetrisUserPassword() string

GetNetrisUserPassword returns the NetrisUserPassword field value if set, zero value otherwise.

func (*OsConfigurationNetrisController) GetNetrisUserPasswordOk

func (o *OsConfigurationNetrisController) GetNetrisUserPasswordOk() (*string, bool)

GetNetrisUserPasswordOk returns a tuple with the NetrisUserPassword field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationNetrisController) GetNetrisWebConsoleUrl

func (o *OsConfigurationNetrisController) GetNetrisWebConsoleUrl() string

GetNetrisWebConsoleUrl returns the NetrisWebConsoleUrl field value if set, zero value otherwise.

func (*OsConfigurationNetrisController) GetNetrisWebConsoleUrlOk

func (o *OsConfigurationNetrisController) GetNetrisWebConsoleUrlOk() (*string, bool)

GetNetrisWebConsoleUrlOk returns a tuple with the NetrisWebConsoleUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationNetrisController) HasHostOs

func (o *OsConfigurationNetrisController) HasHostOs() bool

HasHostOs returns a boolean if a field has been set.

func (*OsConfigurationNetrisController) HasNetrisUserPassword

func (o *OsConfigurationNetrisController) HasNetrisUserPassword() bool

HasNetrisUserPassword returns a boolean if a field has been set.

func (*OsConfigurationNetrisController) HasNetrisWebConsoleUrl

func (o *OsConfigurationNetrisController) HasNetrisWebConsoleUrl() bool

HasNetrisWebConsoleUrl returns a boolean if a field has been set.

func (OsConfigurationNetrisController) MarshalJSON

func (o OsConfigurationNetrisController) MarshalJSON() ([]byte, error)

func (*OsConfigurationNetrisController) SetHostOs

func (o *OsConfigurationNetrisController) SetHostOs(v string)

SetHostOs gets a reference to the given string and assigns it to the HostOs field.

func (*OsConfigurationNetrisController) SetNetrisUserPassword

func (o *OsConfigurationNetrisController) SetNetrisUserPassword(v string)

SetNetrisUserPassword gets a reference to the given string and assigns it to the NetrisUserPassword field.

func (*OsConfigurationNetrisController) SetNetrisWebConsoleUrl

func (o *OsConfigurationNetrisController) SetNetrisWebConsoleUrl(v string)

SetNetrisWebConsoleUrl gets a reference to the given string and assigns it to the NetrisWebConsoleUrl field.

func (OsConfigurationNetrisController) ToMap

func (o OsConfigurationNetrisController) ToMap() (map[string]interface{}, error)

func (*OsConfigurationNetrisController) UnmarshalJSON added in v3.0.1

func (o *OsConfigurationNetrisController) UnmarshalJSON(data []byte) (err error)

type OsConfigurationNetrisSoftgate

type OsConfigurationNetrisSoftgate struct {
	// (Read-only) Host OS on which the Netris Softgate is installed.
	HostOs *string `json:"hostOs,omitempty"`
	// (Write-only) IP address or hostname through which to reach the Netris Controller.
	ControllerAddress *string `json:"controllerAddress,omitempty"`
	// (Write-only) The version of the Netris Controller to connect to.
	ControllerVersion *string `json:"controllerVersion,omitempty"`
	// (Write-only) The authentication key of the Netris Controller to connect to. Required for the softgate agent to be able to interact with the Netris Controller.
	ControllerAuthKey    *string `json:"controllerAuthKey,omitempty"`
	AdditionalProperties map[string]interface{}
}

OsConfigurationNetrisSoftgate Netris Softgate configuration properties. Follow <a href='https://phoenixnap.com/kb/netris-bare-metal-cloud#deploy-netris-softgate' target='_blank'>instructions</a> for retrieving the required details.

func NewOsConfigurationNetrisSoftgate

func NewOsConfigurationNetrisSoftgate() *OsConfigurationNetrisSoftgate

NewOsConfigurationNetrisSoftgate instantiates a new OsConfigurationNetrisSoftgate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewOsConfigurationNetrisSoftgateWithDefaults

func NewOsConfigurationNetrisSoftgateWithDefaults() *OsConfigurationNetrisSoftgate

NewOsConfigurationNetrisSoftgateWithDefaults instantiates a new OsConfigurationNetrisSoftgate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*OsConfigurationNetrisSoftgate) GetControllerAddress

func (o *OsConfigurationNetrisSoftgate) GetControllerAddress() string

GetControllerAddress returns the ControllerAddress field value if set, zero value otherwise.

func (*OsConfigurationNetrisSoftgate) GetControllerAddressOk

func (o *OsConfigurationNetrisSoftgate) GetControllerAddressOk() (*string, bool)

GetControllerAddressOk returns a tuple with the ControllerAddress field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationNetrisSoftgate) GetControllerAuthKey

func (o *OsConfigurationNetrisSoftgate) GetControllerAuthKey() string

GetControllerAuthKey returns the ControllerAuthKey field value if set, zero value otherwise.

func (*OsConfigurationNetrisSoftgate) GetControllerAuthKeyOk

func (o *OsConfigurationNetrisSoftgate) GetControllerAuthKeyOk() (*string, bool)

GetControllerAuthKeyOk returns a tuple with the ControllerAuthKey field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationNetrisSoftgate) GetControllerVersion

func (o *OsConfigurationNetrisSoftgate) GetControllerVersion() string

GetControllerVersion returns the ControllerVersion field value if set, zero value otherwise.

func (*OsConfigurationNetrisSoftgate) GetControllerVersionOk

func (o *OsConfigurationNetrisSoftgate) GetControllerVersionOk() (*string, bool)

GetControllerVersionOk returns a tuple with the ControllerVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationNetrisSoftgate) GetHostOs

func (o *OsConfigurationNetrisSoftgate) GetHostOs() string

GetHostOs returns the HostOs field value if set, zero value otherwise.

func (*OsConfigurationNetrisSoftgate) GetHostOsOk

func (o *OsConfigurationNetrisSoftgate) GetHostOsOk() (*string, bool)

GetHostOsOk returns a tuple with the HostOs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationNetrisSoftgate) HasControllerAddress

func (o *OsConfigurationNetrisSoftgate) HasControllerAddress() bool

HasControllerAddress returns a boolean if a field has been set.

func (*OsConfigurationNetrisSoftgate) HasControllerAuthKey

func (o *OsConfigurationNetrisSoftgate) HasControllerAuthKey() bool

HasControllerAuthKey returns a boolean if a field has been set.

func (*OsConfigurationNetrisSoftgate) HasControllerVersion

func (o *OsConfigurationNetrisSoftgate) HasControllerVersion() bool

HasControllerVersion returns a boolean if a field has been set.

func (*OsConfigurationNetrisSoftgate) HasHostOs

func (o *OsConfigurationNetrisSoftgate) HasHostOs() bool

HasHostOs returns a boolean if a field has been set.

func (OsConfigurationNetrisSoftgate) MarshalJSON

func (o OsConfigurationNetrisSoftgate) MarshalJSON() ([]byte, error)

func (*OsConfigurationNetrisSoftgate) SetControllerAddress

func (o *OsConfigurationNetrisSoftgate) SetControllerAddress(v string)

SetControllerAddress gets a reference to the given string and assigns it to the ControllerAddress field.

func (*OsConfigurationNetrisSoftgate) SetControllerAuthKey

func (o *OsConfigurationNetrisSoftgate) SetControllerAuthKey(v string)

SetControllerAuthKey gets a reference to the given string and assigns it to the ControllerAuthKey field.

func (*OsConfigurationNetrisSoftgate) SetControllerVersion

func (o *OsConfigurationNetrisSoftgate) SetControllerVersion(v string)

SetControllerVersion gets a reference to the given string and assigns it to the ControllerVersion field.

func (*OsConfigurationNetrisSoftgate) SetHostOs

func (o *OsConfigurationNetrisSoftgate) SetHostOs(v string)

SetHostOs gets a reference to the given string and assigns it to the HostOs field.

func (OsConfigurationNetrisSoftgate) ToMap

func (o OsConfigurationNetrisSoftgate) ToMap() (map[string]interface{}, error)

func (*OsConfigurationNetrisSoftgate) UnmarshalJSON added in v3.0.1

func (o *OsConfigurationNetrisSoftgate) UnmarshalJSON(data []byte) (err error)

type OsConfigurationWindows

type OsConfigurationWindows struct {
	// List of IPs allowed for RDP access to Windows OS. Supported in single IP, CIDR and range format. When undefined, RDP is disabled. To allow RDP access from any IP use 0.0.0.0/0. This will only be returned in response to provisioning a server.
	RdpAllowedIps        []string `json:"rdpAllowedIps,omitempty"`
	AdditionalProperties map[string]interface{}
}

OsConfigurationWindows Windows OS configuration properties.

func NewOsConfigurationWindows

func NewOsConfigurationWindows() *OsConfigurationWindows

NewOsConfigurationWindows instantiates a new OsConfigurationWindows object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewOsConfigurationWindowsWithDefaults

func NewOsConfigurationWindowsWithDefaults() *OsConfigurationWindows

NewOsConfigurationWindowsWithDefaults instantiates a new OsConfigurationWindows object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*OsConfigurationWindows) GetRdpAllowedIps

func (o *OsConfigurationWindows) GetRdpAllowedIps() []string

GetRdpAllowedIps returns the RdpAllowedIps field value if set, zero value otherwise.

func (*OsConfigurationWindows) GetRdpAllowedIpsOk

func (o *OsConfigurationWindows) GetRdpAllowedIpsOk() ([]string, bool)

GetRdpAllowedIpsOk returns a tuple with the RdpAllowedIps field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OsConfigurationWindows) HasRdpAllowedIps

func (o *OsConfigurationWindows) HasRdpAllowedIps() bool

HasRdpAllowedIps returns a boolean if a field has been set.

func (OsConfigurationWindows) MarshalJSON

func (o OsConfigurationWindows) MarshalJSON() ([]byte, error)

func (*OsConfigurationWindows) SetRdpAllowedIps

func (o *OsConfigurationWindows) SetRdpAllowedIps(v []string)

SetRdpAllowedIps gets a reference to the given []string and assigns it to the RdpAllowedIps field.

func (OsConfigurationWindows) ToMap

func (o OsConfigurationWindows) ToMap() (map[string]interface{}, error)

func (*OsConfigurationWindows) UnmarshalJSON added in v3.0.1

func (o *OsConfigurationWindows) UnmarshalJSON(data []byte) (err error)

type PrivateNetworkConfiguration

type PrivateNetworkConfiguration struct {
	// Deprecated in favour of a common gateway address across all networks available under NetworkConfiguration.<br> The address of the gateway assigned / to assign to the server.<br> When used as part of request body, IP address has to be part of private network assigned to this server.<br> Gateway address also has to be assigned on an already deployed resource unless the `force` query parameter is true.
	// Deprecated
	GatewayAddress *string `json:"gatewayAddress,omitempty"`
	// (Write-only) Determines the approach for configuring private network(s) for the server being provisioned. Currently this field should be set to `USE_OR_CREATE_DEFAULT`, `USER_DEFINED` or `NONE`.
	ConfigurationType *string `json:"configurationType,omitempty"`
	// The list of private networks this server is member of. When this field is part of request body, it'll be used to specify the private networks to assign to this server upon provisioning. Used alongside the `USER_DEFINED` configurationType.
	PrivateNetworks      []ServerPrivateNetwork `json:"privateNetworks,omitempty"`
	AdditionalProperties map[string]interface{}
}

PrivateNetworkConfiguration Private network details of bare metal server.

func NewPrivateNetworkConfiguration

func NewPrivateNetworkConfiguration() *PrivateNetworkConfiguration

NewPrivateNetworkConfiguration instantiates a new PrivateNetworkConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPrivateNetworkConfigurationWithDefaults

func NewPrivateNetworkConfigurationWithDefaults() *PrivateNetworkConfiguration

NewPrivateNetworkConfigurationWithDefaults instantiates a new PrivateNetworkConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PrivateNetworkConfiguration) GetConfigurationType

func (o *PrivateNetworkConfiguration) GetConfigurationType() string

GetConfigurationType returns the ConfigurationType field value if set, zero value otherwise.

func (*PrivateNetworkConfiguration) GetConfigurationTypeOk

func (o *PrivateNetworkConfiguration) GetConfigurationTypeOk() (*string, bool)

GetConfigurationTypeOk returns a tuple with the ConfigurationType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PrivateNetworkConfiguration) GetGatewayAddress

func (o *PrivateNetworkConfiguration) GetGatewayAddress() string

GetGatewayAddress returns the GatewayAddress field value if set, zero value otherwise. Deprecated

func (*PrivateNetworkConfiguration) GetGatewayAddressOk

func (o *PrivateNetworkConfiguration) GetGatewayAddressOk() (*string, bool)

GetGatewayAddressOk returns a tuple with the GatewayAddress field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (*PrivateNetworkConfiguration) GetPrivateNetworks

func (o *PrivateNetworkConfiguration) GetPrivateNetworks() []ServerPrivateNetwork

GetPrivateNetworks returns the PrivateNetworks field value if set, zero value otherwise.

func (*PrivateNetworkConfiguration) GetPrivateNetworksOk

func (o *PrivateNetworkConfiguration) GetPrivateNetworksOk() ([]ServerPrivateNetwork, bool)

GetPrivateNetworksOk returns a tuple with the PrivateNetworks field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PrivateNetworkConfiguration) HasConfigurationType

func (o *PrivateNetworkConfiguration) HasConfigurationType() bool

HasConfigurationType returns a boolean if a field has been set.

func (*PrivateNetworkConfiguration) HasGatewayAddress

func (o *PrivateNetworkConfiguration) HasGatewayAddress() bool

HasGatewayAddress returns a boolean if a field has been set.

func (*PrivateNetworkConfiguration) HasPrivateNetworks

func (o *PrivateNetworkConfiguration) HasPrivateNetworks() bool

HasPrivateNetworks returns a boolean if a field has been set.

func (PrivateNetworkConfiguration) MarshalJSON

func (o PrivateNetworkConfiguration) MarshalJSON() ([]byte, error)

func (*PrivateNetworkConfiguration) SetConfigurationType

func (o *PrivateNetworkConfiguration) SetConfigurationType(v string)

SetConfigurationType gets a reference to the given string and assigns it to the ConfigurationType field.

func (*PrivateNetworkConfiguration) SetGatewayAddress

func (o *PrivateNetworkConfiguration) SetGatewayAddress(v string)

SetGatewayAddress gets a reference to the given string and assigns it to the GatewayAddress field. Deprecated

func (*PrivateNetworkConfiguration) SetPrivateNetworks

func (o *PrivateNetworkConfiguration) SetPrivateNetworks(v []ServerPrivateNetwork)

SetPrivateNetworks gets a reference to the given []ServerPrivateNetwork and assigns it to the PrivateNetworks field.

func (PrivateNetworkConfiguration) ToMap

func (o PrivateNetworkConfiguration) ToMap() (map[string]interface{}, error)

func (*PrivateNetworkConfiguration) UnmarshalJSON added in v3.0.1

func (o *PrivateNetworkConfiguration) UnmarshalJSON(data []byte) (err error)

type PublicNetworkConfiguration

type PublicNetworkConfiguration struct {
	// The list of public networks this server is member of. When this field is part of request body, it'll be used to specify the public networks to assign to this server upon provisioning.
	PublicNetworks       []ServerPublicNetwork `json:"publicNetworks,omitempty"`
	AdditionalProperties map[string]interface{}
}

PublicNetworkConfiguration Public network details of bare metal server.

func NewPublicNetworkConfiguration

func NewPublicNetworkConfiguration() *PublicNetworkConfiguration

NewPublicNetworkConfiguration instantiates a new PublicNetworkConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPublicNetworkConfigurationWithDefaults

func NewPublicNetworkConfigurationWithDefaults() *PublicNetworkConfiguration

NewPublicNetworkConfigurationWithDefaults instantiates a new PublicNetworkConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PublicNetworkConfiguration) GetPublicNetworks

func (o *PublicNetworkConfiguration) GetPublicNetworks() []ServerPublicNetwork

GetPublicNetworks returns the PublicNetworks field value if set, zero value otherwise.

func (*PublicNetworkConfiguration) GetPublicNetworksOk

func (o *PublicNetworkConfiguration) GetPublicNetworksOk() ([]ServerPublicNetwork, bool)

GetPublicNetworksOk returns a tuple with the PublicNetworks field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PublicNetworkConfiguration) HasPublicNetworks

func (o *PublicNetworkConfiguration) HasPublicNetworks() bool

HasPublicNetworks returns a boolean if a field has been set.

func (PublicNetworkConfiguration) MarshalJSON

func (o PublicNetworkConfiguration) MarshalJSON() ([]byte, error)

func (*PublicNetworkConfiguration) SetPublicNetworks

func (o *PublicNetworkConfiguration) SetPublicNetworks(v []ServerPublicNetwork)

SetPublicNetworks gets a reference to the given []ServerPublicNetwork and assigns it to the PublicNetworks field.

func (PublicNetworkConfiguration) ToMap

func (o PublicNetworkConfiguration) ToMap() (map[string]interface{}, error)

func (*PublicNetworkConfiguration) UnmarshalJSON added in v3.0.1

func (o *PublicNetworkConfiguration) UnmarshalJSON(data []byte) (err error)

type Quota

type Quota struct {
	// The ID of the Quota.
	Id string `json:"id"`
	// The name of the Quota.
	Name string `json:"name"`
	// The Quota description.
	Description string `json:"description"`
	// The status of the quota resource usage.
	Status string `json:"status"`
	// The limit set for the quota.
	Limit int32 `json:"limit"`
	// Unit of the quota type. Supported values are 'COUNT' and 'GB'.
	Unit string `json:"unit"`
	// The quota used expressed as a number.
	Used                         int32                          `json:"used"`
	QuotaEditLimitRequestDetails []QuotaEditLimitRequestDetails `json:"quotaEditLimitRequestDetails"`
	AdditionalProperties         map[string]interface{}
}

Quota Quota.

func NewQuota

func NewQuota(id string, name string, description string, status string, limit int32, unit string, used int32, quotaEditLimitRequestDetails []QuotaEditLimitRequestDetails) *Quota

NewQuota instantiates a new Quota object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewQuotaWithDefaults

func NewQuotaWithDefaults() *Quota

NewQuotaWithDefaults instantiates a new Quota object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Quota) GetDescription

func (o *Quota) GetDescription() string

GetDescription returns the Description field value

func (*Quota) GetDescriptionOk

func (o *Quota) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*Quota) GetId

func (o *Quota) GetId() string

GetId returns the Id field value

func (*Quota) GetIdOk

func (o *Quota) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Quota) GetLimit

func (o *Quota) GetLimit() int32

GetLimit returns the Limit field value

func (*Quota) GetLimitOk

func (o *Quota) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value and a boolean to check if the value has been set.

func (*Quota) GetName

func (o *Quota) GetName() string

GetName returns the Name field value

func (*Quota) GetNameOk

func (o *Quota) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Quota) GetQuotaEditLimitRequestDetails

func (o *Quota) GetQuotaEditLimitRequestDetails() []QuotaEditLimitRequestDetails

GetQuotaEditLimitRequestDetails returns the QuotaEditLimitRequestDetails field value

func (*Quota) GetQuotaEditLimitRequestDetailsOk

func (o *Quota) GetQuotaEditLimitRequestDetailsOk() ([]QuotaEditLimitRequestDetails, bool)

GetQuotaEditLimitRequestDetailsOk returns a tuple with the QuotaEditLimitRequestDetails field value and a boolean to check if the value has been set.

func (*Quota) GetStatus

func (o *Quota) GetStatus() string

GetStatus returns the Status field value

func (*Quota) GetStatusOk

func (o *Quota) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*Quota) GetUnit

func (o *Quota) GetUnit() string

GetUnit returns the Unit field value

func (*Quota) GetUnitOk

func (o *Quota) GetUnitOk() (*string, bool)

GetUnitOk returns a tuple with the Unit field value and a boolean to check if the value has been set.

func (*Quota) GetUsed

func (o *Quota) GetUsed() int32

GetUsed returns the Used field value

func (*Quota) GetUsedOk

func (o *Quota) GetUsedOk() (*int32, bool)

GetUsedOk returns a tuple with the Used field value and a boolean to check if the value has been set.

func (Quota) MarshalJSON

func (o Quota) MarshalJSON() ([]byte, error)

func (*Quota) SetDescription

func (o *Quota) SetDescription(v string)

SetDescription sets field value

func (*Quota) SetId

func (o *Quota) SetId(v string)

SetId sets field value

func (*Quota) SetLimit

func (o *Quota) SetLimit(v int32)

SetLimit sets field value

func (*Quota) SetName

func (o *Quota) SetName(v string)

SetName sets field value

func (*Quota) SetQuotaEditLimitRequestDetails

func (o *Quota) SetQuotaEditLimitRequestDetails(v []QuotaEditLimitRequestDetails)

SetQuotaEditLimitRequestDetails sets field value

func (*Quota) SetStatus

func (o *Quota) SetStatus(v string)

SetStatus sets field value

func (*Quota) SetUnit

func (o *Quota) SetUnit(v string)

SetUnit sets field value

func (*Quota) SetUsed

func (o *Quota) SetUsed(v int32)

SetUsed sets field value

func (Quota) ToMap

func (o Quota) ToMap() (map[string]interface{}, error)

func (*Quota) UnmarshalJSON

func (o *Quota) UnmarshalJSON(data []byte) (err error)

type QuotaEditLimitRequest

type QuotaEditLimitRequest struct {
	// The new limit that is requested. Minimum allowed limit values: - 0 (Server, IPs) - 1000 (Network Storage)
	Limit int32 `json:"limit"`
	// The reason for changing the limit.
	Reason               string `json:"reason"`
	AdditionalProperties map[string]interface{}
}

QuotaEditLimitRequest A request to change the limit on a quota.

func NewQuotaEditLimitRequest

func NewQuotaEditLimitRequest(limit int32, reason string) *QuotaEditLimitRequest

NewQuotaEditLimitRequest instantiates a new QuotaEditLimitRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewQuotaEditLimitRequestWithDefaults

func NewQuotaEditLimitRequestWithDefaults() *QuotaEditLimitRequest

NewQuotaEditLimitRequestWithDefaults instantiates a new QuotaEditLimitRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*QuotaEditLimitRequest) GetLimit

func (o *QuotaEditLimitRequest) GetLimit() int32

GetLimit returns the Limit field value

func (*QuotaEditLimitRequest) GetLimitOk

func (o *QuotaEditLimitRequest) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value and a boolean to check if the value has been set.

func (*QuotaEditLimitRequest) GetReason

func (o *QuotaEditLimitRequest) GetReason() string

GetReason returns the Reason field value

func (*QuotaEditLimitRequest) GetReasonOk

func (o *QuotaEditLimitRequest) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value and a boolean to check if the value has been set.

func (QuotaEditLimitRequest) MarshalJSON

func (o QuotaEditLimitRequest) MarshalJSON() ([]byte, error)

func (*QuotaEditLimitRequest) SetLimit

func (o *QuotaEditLimitRequest) SetLimit(v int32)

SetLimit sets field value

func (*QuotaEditLimitRequest) SetReason

func (o *QuotaEditLimitRequest) SetReason(v string)

SetReason sets field value

func (QuotaEditLimitRequest) ToMap

func (o QuotaEditLimitRequest) ToMap() (map[string]interface{}, error)

func (*QuotaEditLimitRequest) UnmarshalJSON

func (o *QuotaEditLimitRequest) UnmarshalJSON(data []byte) (err error)

type QuotaEditLimitRequestDetails

type QuotaEditLimitRequestDetails struct {
	// The new limit that is requested. Minimum allowed limit values: - 0 (Server, IPs) - 1000 (Network Storage)
	Limit int32 `json:"limit"`
	// The reason for changing the limit.
	Reason string `json:"reason"`
	// The point in time the request was submitted.
	RequestedOn          time.Time `json:"requestedOn"`
	AdditionalProperties map[string]interface{}
}

QuotaEditLimitRequestDetails struct for QuotaEditLimitRequestDetails

func NewQuotaEditLimitRequestDetails

func NewQuotaEditLimitRequestDetails(limit int32, reason string, requestedOn time.Time) *QuotaEditLimitRequestDetails

NewQuotaEditLimitRequestDetails instantiates a new QuotaEditLimitRequestDetails object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewQuotaEditLimitRequestDetailsWithDefaults

func NewQuotaEditLimitRequestDetailsWithDefaults() *QuotaEditLimitRequestDetails

NewQuotaEditLimitRequestDetailsWithDefaults instantiates a new QuotaEditLimitRequestDetails object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*QuotaEditLimitRequestDetails) GetLimit

func (o *QuotaEditLimitRequestDetails) GetLimit() int32

GetLimit returns the Limit field value

func (*QuotaEditLimitRequestDetails) GetLimitOk

func (o *QuotaEditLimitRequestDetails) GetLimitOk() (*int32, bool)

GetLimitOk returns a tuple with the Limit field value and a boolean to check if the value has been set.

func (*QuotaEditLimitRequestDetails) GetReason

func (o *QuotaEditLimitRequestDetails) GetReason() string

GetReason returns the Reason field value

func (*QuotaEditLimitRequestDetails) GetReasonOk

func (o *QuotaEditLimitRequestDetails) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value and a boolean to check if the value has been set.

func (*QuotaEditLimitRequestDetails) GetRequestedOn

func (o *QuotaEditLimitRequestDetails) GetRequestedOn() time.Time

GetRequestedOn returns the RequestedOn field value

func (*QuotaEditLimitRequestDetails) GetRequestedOnOk

func (o *QuotaEditLimitRequestDetails) GetRequestedOnOk() (*time.Time, bool)

GetRequestedOnOk returns a tuple with the RequestedOn field value and a boolean to check if the value has been set.

func (QuotaEditLimitRequestDetails) MarshalJSON

func (o QuotaEditLimitRequestDetails) MarshalJSON() ([]byte, error)

func (*QuotaEditLimitRequestDetails) SetLimit

func (o *QuotaEditLimitRequestDetails) SetLimit(v int32)

SetLimit sets field value

func (*QuotaEditLimitRequestDetails) SetReason

func (o *QuotaEditLimitRequestDetails) SetReason(v string)

SetReason sets field value

func (*QuotaEditLimitRequestDetails) SetRequestedOn

func (o *QuotaEditLimitRequestDetails) SetRequestedOn(v time.Time)

SetRequestedOn sets field value

func (QuotaEditLimitRequestDetails) ToMap

func (o QuotaEditLimitRequestDetails) ToMap() (map[string]interface{}, error)

func (*QuotaEditLimitRequestDetails) UnmarshalJSON

func (o *QuotaEditLimitRequestDetails) UnmarshalJSON(data []byte) (err error)

type QuotasAPI

type QuotasAPI interface {

	/*
		QuotasGet List quotas

		Get account quota details.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiQuotasGetRequest
	*/
	QuotasGet(ctx context.Context) ApiQuotasGetRequest

	// QuotasGetExecute executes the request
	//  @return []Quota
	QuotasGetExecute(r ApiQuotasGetRequest) ([]Quota, *http.Response, error)

	/*
		QuotasQuotaIdActionsRequestEditPost Request quota limit change.

		Sends a request to edit the limit of a quota.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param quotaId The ID of the Quota.
		@return ApiQuotasQuotaIdActionsRequestEditPostRequest
	*/
	QuotasQuotaIdActionsRequestEditPost(ctx context.Context, quotaId string) ApiQuotasQuotaIdActionsRequestEditPostRequest

	// QuotasQuotaIdActionsRequestEditPostExecute executes the request
	QuotasQuotaIdActionsRequestEditPostExecute(r ApiQuotasQuotaIdActionsRequestEditPostRequest) (*http.Response, error)

	/*
		QuotasQuotaIdGet Get a quota.

		Get account quota details.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param quotaId The ID of the Quota.
		@return ApiQuotasQuotaIdGetRequest
	*/
	QuotasQuotaIdGet(ctx context.Context, quotaId string) ApiQuotasQuotaIdGetRequest

	// QuotasQuotaIdGetExecute executes the request
	//  @return Quota
	QuotasQuotaIdGetExecute(r ApiQuotasQuotaIdGetRequest) (*Quota, *http.Response, error)
}

type QuotasAPIService

type QuotasAPIService service

QuotasAPIService QuotasAPI service

func (*QuotasAPIService) QuotasGet

QuotasGet List quotas

Get account quota details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiQuotasGetRequest

func (*QuotasAPIService) QuotasGetExecute

func (a *QuotasAPIService) QuotasGetExecute(r ApiQuotasGetRequest) ([]Quota, *http.Response, error)

Execute executes the request

@return []Quota

func (*QuotasAPIService) QuotasQuotaIdActionsRequestEditPost

func (a *QuotasAPIService) QuotasQuotaIdActionsRequestEditPost(ctx context.Context, quotaId string) ApiQuotasQuotaIdActionsRequestEditPostRequest

QuotasQuotaIdActionsRequestEditPost Request quota limit change.

Sends a request to edit the limit of a quota.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param quotaId The ID of the Quota.
@return ApiQuotasQuotaIdActionsRequestEditPostRequest

func (*QuotasAPIService) QuotasQuotaIdActionsRequestEditPostExecute

func (a *QuotasAPIService) QuotasQuotaIdActionsRequestEditPostExecute(r ApiQuotasQuotaIdActionsRequestEditPostRequest) (*http.Response, error)

Execute executes the request

func (*QuotasAPIService) QuotasQuotaIdGet

func (a *QuotasAPIService) QuotasQuotaIdGet(ctx context.Context, quotaId string) ApiQuotasQuotaIdGetRequest

QuotasQuotaIdGet Get a quota.

Get account quota details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param quotaId The ID of the Quota.
@return ApiQuotasQuotaIdGetRequest

func (*QuotasAPIService) QuotasQuotaIdGetExecute

func (a *QuotasAPIService) QuotasQuotaIdGetExecute(r ApiQuotasQuotaIdGetRequest) (*Quota, *http.Response, error)

Execute executes the request

@return Quota

type RelinquishIpBlock

type RelinquishIpBlock struct {
	// Determines whether the IP blocks assigned to the server should be deleted or not.
	DeleteIpBlocks       *bool `json:"deleteIpBlocks,omitempty"`
	AdditionalProperties map[string]interface{}
}

RelinquishIpBlock Object used to determine whether to relinquish ownership of the IP block upon server deletion.

func NewRelinquishIpBlock

func NewRelinquishIpBlock() *RelinquishIpBlock

NewRelinquishIpBlock instantiates a new RelinquishIpBlock object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRelinquishIpBlockWithDefaults

func NewRelinquishIpBlockWithDefaults() *RelinquishIpBlock

NewRelinquishIpBlockWithDefaults instantiates a new RelinquishIpBlock object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RelinquishIpBlock) GetDeleteIpBlocks

func (o *RelinquishIpBlock) GetDeleteIpBlocks() bool

GetDeleteIpBlocks returns the DeleteIpBlocks field value if set, zero value otherwise.

func (*RelinquishIpBlock) GetDeleteIpBlocksOk

func (o *RelinquishIpBlock) GetDeleteIpBlocksOk() (*bool, bool)

GetDeleteIpBlocksOk returns a tuple with the DeleteIpBlocks field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RelinquishIpBlock) HasDeleteIpBlocks

func (o *RelinquishIpBlock) HasDeleteIpBlocks() bool

HasDeleteIpBlocks returns a boolean if a field has been set.

func (RelinquishIpBlock) MarshalJSON

func (o RelinquishIpBlock) MarshalJSON() ([]byte, error)

func (*RelinquishIpBlock) SetDeleteIpBlocks

func (o *RelinquishIpBlock) SetDeleteIpBlocks(v bool)

SetDeleteIpBlocks gets a reference to the given bool and assigns it to the DeleteIpBlocks field.

func (RelinquishIpBlock) ToMap

func (o RelinquishIpBlock) ToMap() (map[string]interface{}, error)

func (*RelinquishIpBlock) UnmarshalJSON added in v3.0.1

func (o *RelinquishIpBlock) UnmarshalJSON(data []byte) (err error)

type ResetResult

type ResetResult struct {
	// Message describing the reset result.
	Result string `json:"result"`
	// Password set for user Admin on Windows server or user root on ESXi server.
	Password             *string             `json:"password,omitempty"`
	OsConfiguration      *OsConfigurationMap `json:"osConfiguration,omitempty"`
	AdditionalProperties map[string]interface{}
}

ResetResult Result of a successful reset action.

func NewResetResult

func NewResetResult(result string) *ResetResult

NewResetResult instantiates a new ResetResult object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewResetResultWithDefaults

func NewResetResultWithDefaults() *ResetResult

NewResetResultWithDefaults instantiates a new ResetResult object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ResetResult) GetOsConfiguration

func (o *ResetResult) GetOsConfiguration() OsConfigurationMap

GetOsConfiguration returns the OsConfiguration field value if set, zero value otherwise.

func (*ResetResult) GetOsConfigurationOk

func (o *ResetResult) GetOsConfigurationOk() (*OsConfigurationMap, bool)

GetOsConfigurationOk returns a tuple with the OsConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResetResult) GetPassword

func (o *ResetResult) GetPassword() string

GetPassword returns the Password field value if set, zero value otherwise.

func (*ResetResult) GetPasswordOk

func (o *ResetResult) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResetResult) GetResult

func (o *ResetResult) GetResult() string

GetResult returns the Result field value

func (*ResetResult) GetResultOk

func (o *ResetResult) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value and a boolean to check if the value has been set.

func (*ResetResult) HasOsConfiguration

func (o *ResetResult) HasOsConfiguration() bool

HasOsConfiguration returns a boolean if a field has been set.

func (*ResetResult) HasPassword

func (o *ResetResult) HasPassword() bool

HasPassword returns a boolean if a field has been set.

func (ResetResult) MarshalJSON

func (o ResetResult) MarshalJSON() ([]byte, error)

func (*ResetResult) SetOsConfiguration

func (o *ResetResult) SetOsConfiguration(v OsConfigurationMap)

SetOsConfiguration gets a reference to the given OsConfigurationMap and assigns it to the OsConfiguration field.

func (*ResetResult) SetPassword

func (o *ResetResult) SetPassword(v string)

SetPassword gets a reference to the given string and assigns it to the Password field.

func (*ResetResult) SetResult

func (o *ResetResult) SetResult(v string)

SetResult sets field value

func (ResetResult) ToMap

func (o ResetResult) ToMap() (map[string]interface{}, error)

func (*ResetResult) UnmarshalJSON

func (o *ResetResult) UnmarshalJSON(data []byte) (err error)

type SSHKeysAPI

type SSHKeysAPI interface {

	/*
		SshKeysGet List SSH Keys.

		List all SSH Keys.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiSshKeysGetRequest
	*/
	SshKeysGet(ctx context.Context) ApiSshKeysGetRequest

	// SshKeysGetExecute executes the request
	//  @return []SshKey
	SshKeysGetExecute(r ApiSshKeysGetRequest) ([]SshKey, *http.Response, error)

	/*
		SshKeysPost Create SSH Key.

		Create an SSH Key. SSH Keys created can be used for server creation and reset functionality.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiSshKeysPostRequest
	*/
	SshKeysPost(ctx context.Context) ApiSshKeysPostRequest

	// SshKeysPostExecute executes the request
	//  @return SshKey
	SshKeysPostExecute(r ApiSshKeysPostRequest) (*SshKey, *http.Response, error)

	/*
		SshKeysSshKeyIdDelete Delete SSH Key.

		Delete an SSH Key.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param sshKeyId The SSH Key's ID.
		@return ApiSshKeysSshKeyIdDeleteRequest
	*/
	SshKeysSshKeyIdDelete(ctx context.Context, sshKeyId string) ApiSshKeysSshKeyIdDeleteRequest

	// SshKeysSshKeyIdDeleteExecute executes the request
	//  @return DeleteSshKeyResult
	SshKeysSshKeyIdDeleteExecute(r ApiSshKeysSshKeyIdDeleteRequest) (*DeleteSshKeyResult, *http.Response, error)

	/*
		SshKeysSshKeyIdGet Get SSH Key.

		Get SSH Key details.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param sshKeyId The SSH Key's ID.
		@return ApiSshKeysSshKeyIdGetRequest
	*/
	SshKeysSshKeyIdGet(ctx context.Context, sshKeyId string) ApiSshKeysSshKeyIdGetRequest

	// SshKeysSshKeyIdGetExecute executes the request
	//  @return SshKey
	SshKeysSshKeyIdGetExecute(r ApiSshKeysSshKeyIdGetRequest) (*SshKey, *http.Response, error)

	/*
		SshKeysSshKeyIdPut Edit SSH Key.

		Edit SSH Key details.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param sshKeyId The SSH Key's ID.
		@return ApiSshKeysSshKeyIdPutRequest
	*/
	SshKeysSshKeyIdPut(ctx context.Context, sshKeyId string) ApiSshKeysSshKeyIdPutRequest

	// SshKeysSshKeyIdPutExecute executes the request
	//  @return SshKey
	SshKeysSshKeyIdPutExecute(r ApiSshKeysSshKeyIdPutRequest) (*SshKey, *http.Response, error)
}

type SSHKeysAPIService

type SSHKeysAPIService service

SSHKeysAPIService SSHKeysAPI service

func (*SSHKeysAPIService) SshKeysGet

SshKeysGet List SSH Keys.

List all SSH Keys.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSshKeysGetRequest

func (*SSHKeysAPIService) SshKeysGetExecute

func (a *SSHKeysAPIService) SshKeysGetExecute(r ApiSshKeysGetRequest) ([]SshKey, *http.Response, error)

Execute executes the request

@return []SshKey

func (*SSHKeysAPIService) SshKeysPost

SshKeysPost Create SSH Key.

Create an SSH Key. SSH Keys created can be used for server creation and reset functionality.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSshKeysPostRequest

func (*SSHKeysAPIService) SshKeysPostExecute

func (a *SSHKeysAPIService) SshKeysPostExecute(r ApiSshKeysPostRequest) (*SshKey, *http.Response, error)

Execute executes the request

@return SshKey

func (*SSHKeysAPIService) SshKeysSshKeyIdDelete

func (a *SSHKeysAPIService) SshKeysSshKeyIdDelete(ctx context.Context, sshKeyId string) ApiSshKeysSshKeyIdDeleteRequest

SshKeysSshKeyIdDelete Delete SSH Key.

Delete an SSH Key.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param sshKeyId The SSH Key's ID.
@return ApiSshKeysSshKeyIdDeleteRequest

func (*SSHKeysAPIService) SshKeysSshKeyIdDeleteExecute

Execute executes the request

@return DeleteSshKeyResult

func (*SSHKeysAPIService) SshKeysSshKeyIdGet

func (a *SSHKeysAPIService) SshKeysSshKeyIdGet(ctx context.Context, sshKeyId string) ApiSshKeysSshKeyIdGetRequest

SshKeysSshKeyIdGet Get SSH Key.

Get SSH Key details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param sshKeyId The SSH Key's ID.
@return ApiSshKeysSshKeyIdGetRequest

func (*SSHKeysAPIService) SshKeysSshKeyIdGetExecute

func (a *SSHKeysAPIService) SshKeysSshKeyIdGetExecute(r ApiSshKeysSshKeyIdGetRequest) (*SshKey, *http.Response, error)

Execute executes the request

@return SshKey

func (*SSHKeysAPIService) SshKeysSshKeyIdPut

func (a *SSHKeysAPIService) SshKeysSshKeyIdPut(ctx context.Context, sshKeyId string) ApiSshKeysSshKeyIdPutRequest

SshKeysSshKeyIdPut Edit SSH Key.

Edit SSH Key details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param sshKeyId The SSH Key's ID.
@return ApiSshKeysSshKeyIdPutRequest

func (*SSHKeysAPIService) SshKeysSshKeyIdPutExecute

func (a *SSHKeysAPIService) SshKeysSshKeyIdPutExecute(r ApiSshKeysSshKeyIdPutRequest) (*SshKey, *http.Response, error)

Execute executes the request

@return SshKey

type Server

type Server struct {
	// The unique identifier of the server.
	Id string `json:"id"`
	// The status of the server. Can have one of the following values: `creating` , `powered-on` , `powered-off` , `rebooting` , `resetting` , `deleting` , `reserved` , `error` or `reinstating`.
	Status string `json:"status"`
	// Hostname of server.
	Hostname string `json:"hostname"`
	// Description of server.
	Description *string `json:"description,omitempty"`
	// The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux9`, `debian/bullseye`, `debian/bookworm`, `proxmox/bullseye`, `proxmox/proxmox8`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`.
	Os *string `json:"os,omitempty"`
	// Server type ID. Cannot be changed once a server is created. Currently this field should be set to either `s0.d1.small`, `s0.d1.medium`, `s1.c1.small`, `s1.c1.medium`, `s1.c2.medium`, `s1.c2.large`, `s1.e1.small`, `s1.e1.medium`, `s1.e1.large`, `s2.c1.small`, `s2.c1.medium`, `s2.c1.large`, `s2.c2.small`, `s2.c2.medium`, `s2.c2.large`, `d1.c1.small`, `d1.c2.small`, `d1.c3.small`, `d1.c4.small`, `d1.c1.medium`, `d1.c2.medium`, `d1.c3.medium`, `d1.c4.medium`, `d1.c1.large`, `d1.c2.large`, `d1.c3.large`, `d1.c4.large`, `d1.m1.medium`, `d1.m2.medium`, `d1.m3.medium`, `d1.m4.medium`, `d2.c1.medium`, `d2.c2.medium`, `d2.c3.medium`, `d2.c4.medium`, `d2.c5.medium`, `d2.c1.large`, `d2.c2.large`, `d2.c3.large`, `d2.c4.large`, `d2.c5.large`, `d2.m1.xlarge`, `d2.m2.xxlarge`, `d2.m3.xlarge`, `d2.m4.xlarge`, `d2.m5.xlarge`, `d2.c4.db1.pliops1`, `d3.m4.xlarge`, `d3.m5.xlarge`, `d3.m6.xlarge`, `a1.c5.large`, `d3.s5.xlarge`, `d3.m4.xxlarge`, `d3.m5.xxlarge`,  `d3.m6.xxlarge`, `s3.c3.medium`, `s3.c3.large`, `d3.c4.medium`, `d3.c5.medium` or `d3.c6.medium`.
	Type string `json:"type"`
	// Server location ID. Cannot be changed once a server is created. Currently this field should be set to `PHX`, `ASH`, `SGP`, `NLD`, `CHI`, `SEA` or `AUS`.
	Location string `json:"location"`
	// A description of the machine CPU.
	Cpu string `json:"cpu"`
	// The number of CPUs available in the system.
	CpuCount int32 `json:"cpuCount"`
	// The number of physical cores present on each CPU.
	CoresPerCpu int32 `json:"coresPerCpu"`
	// The CPU frequency in GHz.
	CpuFrequency float32 `json:"cpuFrequency"`
	// A description of the machine RAM.
	Ram string `json:"ram"`
	// A description of the machine storage.
	Storage string `json:"storage"`
	// Private IP addresses assigned to server.
	PrivateIpAddresses []string `json:"privateIpAddresses"`
	// Public IP addresses assigned to server.
	PublicIpAddresses []string `json:"publicIpAddresses,omitempty"`
	// The reservation reference id if any.
	ReservationId *string `json:"reservationId,omitempty"`
	// The pricing model this server is being billed. Currently this field should be set to `HOURLY`, `ONE_MONTH_RESERVATION`, `TWELVE_MONTHS_RESERVATION`, `TWENTY_FOUR_MONTHS_RESERVATION` or `THIRTY_SIX_MONTHS_RESERVATION`.
	PricingModel string `json:"pricingModel"`
	// Auto-generated password set for user `Admin` on Windows server, user `root` on ESXi servers, user `root` on Proxmox server and user `netris` on Netris servers.<br> The password is not stored and therefore will only be returned in response to provisioning a server. Copy and save it for future reference.
	Password *string `json:"password,omitempty"`
	// The type of network configuration for this server. Currently this field should be set to `PUBLIC_AND_PRIVATE`, `PRIVATE_ONLY`, `PUBLIC_ONLY` or `NONE`.
	NetworkType *string `json:"networkType,omitempty"`
	// The cluster reference id if any.
	ClusterId *string `json:"clusterId,omitempty"`
	// The tags assigned if any.
	Tags []TagAssignment `json:"tags,omitempty"`
	// Date and time when server was provisioned.
	ProvisionedOn        *time.Time           `json:"provisionedOn,omitempty"`
	OsConfiguration      *OsConfiguration     `json:"osConfiguration,omitempty"`
	NetworkConfiguration NetworkConfiguration `json:"networkConfiguration"`
	StorageConfiguration StorageConfiguration `json:"storageConfiguration"`
	// Unique identifier of the server to which the reservation has been transferred.
	SupersededBy *string `json:"supersededBy,omitempty"`
	// Unique identifier of the server from which the reservation has been transferred.
	Supersedes           *string `json:"supersedes,omitempty"`
	AdditionalProperties map[string]interface{}
}

Server Bare metal server.

func NewServer

func NewServer(id string, status string, hostname string, type_ string, location string, cpu string, cpuCount int32, coresPerCpu int32, cpuFrequency float32, ram string, storage string, privateIpAddresses []string, pricingModel string, networkConfiguration NetworkConfiguration, storageConfiguration StorageConfiguration) *Server

NewServer instantiates a new Server object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerWithDefaults

func NewServerWithDefaults() *Server

NewServerWithDefaults instantiates a new Server object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Server) GetClusterId

func (o *Server) GetClusterId() string

GetClusterId returns the ClusterId field value if set, zero value otherwise.

func (*Server) GetClusterIdOk

func (o *Server) GetClusterIdOk() (*string, bool)

GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Server) GetCoresPerCpu

func (o *Server) GetCoresPerCpu() int32

GetCoresPerCpu returns the CoresPerCpu field value

func (*Server) GetCoresPerCpuOk

func (o *Server) GetCoresPerCpuOk() (*int32, bool)

GetCoresPerCpuOk returns a tuple with the CoresPerCpu field value and a boolean to check if the value has been set.

func (*Server) GetCpu

func (o *Server) GetCpu() string

GetCpu returns the Cpu field value

func (*Server) GetCpuCount

func (o *Server) GetCpuCount() int32

GetCpuCount returns the CpuCount field value

func (*Server) GetCpuCountOk

func (o *Server) GetCpuCountOk() (*int32, bool)

GetCpuCountOk returns a tuple with the CpuCount field value and a boolean to check if the value has been set.

func (*Server) GetCpuFrequency

func (o *Server) GetCpuFrequency() float32

GetCpuFrequency returns the CpuFrequency field value

func (*Server) GetCpuFrequencyOk

func (o *Server) GetCpuFrequencyOk() (*float32, bool)

GetCpuFrequencyOk returns a tuple with the CpuFrequency field value and a boolean to check if the value has been set.

func (*Server) GetCpuOk

func (o *Server) GetCpuOk() (*string, bool)

GetCpuOk returns a tuple with the Cpu field value and a boolean to check if the value has been set.

func (*Server) GetDescription

func (o *Server) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Server) GetDescriptionOk

func (o *Server) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Server) GetHostname

func (o *Server) GetHostname() string

GetHostname returns the Hostname field value

func (*Server) GetHostnameOk

func (o *Server) GetHostnameOk() (*string, bool)

GetHostnameOk returns a tuple with the Hostname field value and a boolean to check if the value has been set.

func (*Server) GetId

func (o *Server) GetId() string

GetId returns the Id field value

func (*Server) GetIdOk

func (o *Server) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Server) GetLocation

func (o *Server) GetLocation() string

GetLocation returns the Location field value

func (*Server) GetLocationOk

func (o *Server) GetLocationOk() (*string, bool)

GetLocationOk returns a tuple with the Location field value and a boolean to check if the value has been set.

func (*Server) GetNetworkConfiguration

func (o *Server) GetNetworkConfiguration() NetworkConfiguration

GetNetworkConfiguration returns the NetworkConfiguration field value

func (*Server) GetNetworkConfigurationOk

func (o *Server) GetNetworkConfigurationOk() (*NetworkConfiguration, bool)

GetNetworkConfigurationOk returns a tuple with the NetworkConfiguration field value and a boolean to check if the value has been set.

func (*Server) GetNetworkType

func (o *Server) GetNetworkType() string

GetNetworkType returns the NetworkType field value if set, zero value otherwise.

func (*Server) GetNetworkTypeOk

func (o *Server) GetNetworkTypeOk() (*string, bool)

GetNetworkTypeOk returns a tuple with the NetworkType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Server) GetOs

func (o *Server) GetOs() string

GetOs returns the Os field value if set, zero value otherwise.

func (*Server) GetOsConfiguration

func (o *Server) GetOsConfiguration() OsConfiguration

GetOsConfiguration returns the OsConfiguration field value if set, zero value otherwise.

func (*Server) GetOsConfigurationOk

func (o *Server) GetOsConfigurationOk() (*OsConfiguration, bool)

GetOsConfigurationOk returns a tuple with the OsConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Server) GetOsOk

func (o *Server) GetOsOk() (*string, bool)

GetOsOk returns a tuple with the Os field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Server) GetPassword

func (o *Server) GetPassword() string

GetPassword returns the Password field value if set, zero value otherwise.

func (*Server) GetPasswordOk

func (o *Server) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Server) GetPricingModel

func (o *Server) GetPricingModel() string

GetPricingModel returns the PricingModel field value

func (*Server) GetPricingModelOk

func (o *Server) GetPricingModelOk() (*string, bool)

GetPricingModelOk returns a tuple with the PricingModel field value and a boolean to check if the value has been set.

func (*Server) GetPrivateIpAddresses

func (o *Server) GetPrivateIpAddresses() []string

GetPrivateIpAddresses returns the PrivateIpAddresses field value

func (*Server) GetPrivateIpAddressesOk

func (o *Server) GetPrivateIpAddressesOk() ([]string, bool)

GetPrivateIpAddressesOk returns a tuple with the PrivateIpAddresses field value and a boolean to check if the value has been set.

func (*Server) GetProvisionedOn

func (o *Server) GetProvisionedOn() time.Time

GetProvisionedOn returns the ProvisionedOn field value if set, zero value otherwise.

func (*Server) GetProvisionedOnOk

func (o *Server) GetProvisionedOnOk() (*time.Time, bool)

GetProvisionedOnOk returns a tuple with the ProvisionedOn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Server) GetPublicIpAddresses

func (o *Server) GetPublicIpAddresses() []string

GetPublicIpAddresses returns the PublicIpAddresses field value if set, zero value otherwise.

func (*Server) GetPublicIpAddressesOk

func (o *Server) GetPublicIpAddressesOk() ([]string, bool)

GetPublicIpAddressesOk returns a tuple with the PublicIpAddresses field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Server) GetRam

func (o *Server) GetRam() string

GetRam returns the Ram field value

func (*Server) GetRamOk

func (o *Server) GetRamOk() (*string, bool)

GetRamOk returns a tuple with the Ram field value and a boolean to check if the value has been set.

func (*Server) GetReservationId

func (o *Server) GetReservationId() string

GetReservationId returns the ReservationId field value if set, zero value otherwise.

func (*Server) GetReservationIdOk

func (o *Server) GetReservationIdOk() (*string, bool)

GetReservationIdOk returns a tuple with the ReservationId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Server) GetStatus

func (o *Server) GetStatus() string

GetStatus returns the Status field value

func (*Server) GetStatusOk

func (o *Server) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*Server) GetStorage

func (o *Server) GetStorage() string

GetStorage returns the Storage field value

func (*Server) GetStorageConfiguration

func (o *Server) GetStorageConfiguration() StorageConfiguration

GetStorageConfiguration returns the StorageConfiguration field value

func (*Server) GetStorageConfigurationOk

func (o *Server) GetStorageConfigurationOk() (*StorageConfiguration, bool)

GetStorageConfigurationOk returns a tuple with the StorageConfiguration field value and a boolean to check if the value has been set.

func (*Server) GetStorageOk

func (o *Server) GetStorageOk() (*string, bool)

GetStorageOk returns a tuple with the Storage field value and a boolean to check if the value has been set.

func (*Server) GetSupersededBy

func (o *Server) GetSupersededBy() string

GetSupersededBy returns the SupersededBy field value if set, zero value otherwise.

func (*Server) GetSupersededByOk

func (o *Server) GetSupersededByOk() (*string, bool)

GetSupersededByOk returns a tuple with the SupersededBy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Server) GetSupersedes

func (o *Server) GetSupersedes() string

GetSupersedes returns the Supersedes field value if set, zero value otherwise.

func (*Server) GetSupersedesOk

func (o *Server) GetSupersedesOk() (*string, bool)

GetSupersedesOk returns a tuple with the Supersedes field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Server) GetTags

func (o *Server) GetTags() []TagAssignment

GetTags returns the Tags field value if set, zero value otherwise.

func (*Server) GetTagsOk

func (o *Server) GetTagsOk() ([]TagAssignment, bool)

GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Server) GetType

func (o *Server) GetType() string

GetType returns the Type field value

func (*Server) GetTypeOk

func (o *Server) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*Server) HasClusterId

func (o *Server) HasClusterId() bool

HasClusterId returns a boolean if a field has been set.

func (*Server) HasDescription

func (o *Server) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Server) HasNetworkType

func (o *Server) HasNetworkType() bool

HasNetworkType returns a boolean if a field has been set.

func (*Server) HasOs

func (o *Server) HasOs() bool

HasOs returns a boolean if a field has been set.

func (*Server) HasOsConfiguration

func (o *Server) HasOsConfiguration() bool

HasOsConfiguration returns a boolean if a field has been set.

func (*Server) HasPassword

func (o *Server) HasPassword() bool

HasPassword returns a boolean if a field has been set.

func (*Server) HasProvisionedOn

func (o *Server) HasProvisionedOn() bool

HasProvisionedOn returns a boolean if a field has been set.

func (*Server) HasPublicIpAddresses

func (o *Server) HasPublicIpAddresses() bool

HasPublicIpAddresses returns a boolean if a field has been set.

func (*Server) HasReservationId

func (o *Server) HasReservationId() bool

HasReservationId returns a boolean if a field has been set.

func (*Server) HasSupersededBy

func (o *Server) HasSupersededBy() bool

HasSupersededBy returns a boolean if a field has been set.

func (*Server) HasSupersedes

func (o *Server) HasSupersedes() bool

HasSupersedes returns a boolean if a field has been set.

func (*Server) HasTags

func (o *Server) HasTags() bool

HasTags returns a boolean if a field has been set.

func (Server) MarshalJSON

func (o Server) MarshalJSON() ([]byte, error)

func (*Server) SetClusterId

func (o *Server) SetClusterId(v string)

SetClusterId gets a reference to the given string and assigns it to the ClusterId field.

func (*Server) SetCoresPerCpu

func (o *Server) SetCoresPerCpu(v int32)

SetCoresPerCpu sets field value

func (*Server) SetCpu

func (o *Server) SetCpu(v string)

SetCpu sets field value

func (*Server) SetCpuCount

func (o *Server) SetCpuCount(v int32)

SetCpuCount sets field value

func (*Server) SetCpuFrequency

func (o *Server) SetCpuFrequency(v float32)

SetCpuFrequency sets field value

func (*Server) SetDescription

func (o *Server) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Server) SetHostname

func (o *Server) SetHostname(v string)

SetHostname sets field value

func (*Server) SetId

func (o *Server) SetId(v string)

SetId sets field value

func (*Server) SetLocation

func (o *Server) SetLocation(v string)

SetLocation sets field value

func (*Server) SetNetworkConfiguration

func (o *Server) SetNetworkConfiguration(v NetworkConfiguration)

SetNetworkConfiguration sets field value

func (*Server) SetNetworkType

func (o *Server) SetNetworkType(v string)

SetNetworkType gets a reference to the given string and assigns it to the NetworkType field.

func (*Server) SetOs

func (o *Server) SetOs(v string)

SetOs gets a reference to the given string and assigns it to the Os field.

func (*Server) SetOsConfiguration

func (o *Server) SetOsConfiguration(v OsConfiguration)

SetOsConfiguration gets a reference to the given OsConfiguration and assigns it to the OsConfiguration field.

func (*Server) SetPassword

func (o *Server) SetPassword(v string)

SetPassword gets a reference to the given string and assigns it to the Password field.

func (*Server) SetPricingModel

func (o *Server) SetPricingModel(v string)

SetPricingModel sets field value

func (*Server) SetPrivateIpAddresses

func (o *Server) SetPrivateIpAddresses(v []string)

SetPrivateIpAddresses sets field value

func (*Server) SetProvisionedOn

func (o *Server) SetProvisionedOn(v time.Time)

SetProvisionedOn gets a reference to the given time.Time and assigns it to the ProvisionedOn field.

func (*Server) SetPublicIpAddresses

func (o *Server) SetPublicIpAddresses(v []string)

SetPublicIpAddresses gets a reference to the given []string and assigns it to the PublicIpAddresses field.

func (*Server) SetRam

func (o *Server) SetRam(v string)

SetRam sets field value

func (*Server) SetReservationId

func (o *Server) SetReservationId(v string)

SetReservationId gets a reference to the given string and assigns it to the ReservationId field.

func (*Server) SetStatus

func (o *Server) SetStatus(v string)

SetStatus sets field value

func (*Server) SetStorage

func (o *Server) SetStorage(v string)

SetStorage sets field value

func (*Server) SetStorageConfiguration

func (o *Server) SetStorageConfiguration(v StorageConfiguration)

SetStorageConfiguration sets field value

func (*Server) SetSupersededBy

func (o *Server) SetSupersededBy(v string)

SetSupersededBy gets a reference to the given string and assigns it to the SupersededBy field.

func (*Server) SetSupersedes

func (o *Server) SetSupersedes(v string)

SetSupersedes gets a reference to the given string and assigns it to the Supersedes field.

func (*Server) SetTags

func (o *Server) SetTags(v []TagAssignment)

SetTags gets a reference to the given []TagAssignment and assigns it to the Tags field.

func (*Server) SetType

func (o *Server) SetType(v string)

SetType sets field value

func (Server) ToMap

func (o Server) ToMap() (map[string]interface{}, error)

func (*Server) UnmarshalJSON

func (o *Server) UnmarshalJSON(data []byte) (err error)

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerCreate

type ServerCreate struct {
	// Hostname of server.
	Hostname string `json:"hostname"`
	// Description of server.
	Description *string `json:"description,omitempty"`
	// The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux9`, `virtuozzo/virtuozzo7`, `debian/bullseye`, `debian/bookworm`, `proxmox/bullseye`, `proxmox/proxmox8`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`.
	Os string `json:"os"`
	// Server type ID. Cannot be changed once a server is created. Currently this field should be set to either `s0.d1.small`, `s0.d1.medium`, `s1.c1.small`, `s1.c1.medium`, `s1.c2.medium`, `s1.c2.large`, `s1.e1.small`, `s1.e1.medium`, `s1.e1.large`, `s2.c1.small`, `s2.c1.medium`, `s2.c1.large`, `s2.c2.small`, `s2.c2.medium`, `s2.c2.large`, `d1.c1.small`, `d1.c2.small`, `d1.c3.small`, `d1.c4.small`, `d1.c1.medium`, `d1.c2.medium`, `d1.c3.medium`, `d1.c4.medium`, `d1.c1.large`, `d1.c2.large`, `d1.c3.large`, `d1.c4.large`, `d1.m1.medium`, `d1.m2.medium`, `d1.m3.medium`, `d1.m4.medium`, `d2.c1.medium`, `d2.c2.medium`, `d2.c3.medium`, `d2.c4.medium`, `d2.c5.medium`, `d2.c1.large`, `d2.c2.large`, `d2.c3.large`, `d2.c4.large`, `d2.c5.large`, `d2.m1.xlarge`, `d2.m2.xxlarge`, `d2.m3.xlarge`, `d2.m4.xlarge`, `d2.m5.xlarge`, `d2.c4.db1.pliops1`, `d3.m4.xlarge`, `d3.m5.xlarge`, `d3.m6.xlarge`, `a1.c5.large`, `d3.s5.xlarge`, `d3.m4.xxlarge`, `d3.m5.xxlarge`, `d3.m6.xxlarge`, `s3.c3.medium`, `s3.c3.large`, `d3.c4.medium`, `d3.c5.medium` or `d3.c6.medium`.
	Type string `json:"type"`
	// Server location ID. Cannot be changed once a server is created. Currently this field should be set to `PHX`, `ASH`, `SGP`, `NLD`, `CHI`, `SEA` or `AUS`.
	Location string `json:"location"`
	// Whether or not to install SSH keys marked as default in addition to any SSH keys specified in this request.
	InstallDefaultSshKeys *bool `json:"installDefaultSshKeys,omitempty"`
	// A list of SSH keys that will be installed on the server.
	SshKeys []string `json:"sshKeys,omitempty"`
	// A list of SSH key IDs that will be installed on the server in addition to any SSH keys specified in this request.
	SshKeyIds []string `json:"sshKeyIds,omitempty"`
	// Server reservation ID.
	ReservationId *string `json:"reservationId,omitempty"`
	// Server pricing model. Currently this field should be set to `HOURLY`, `ONE_MONTH_RESERVATION`, `TWELVE_MONTHS_RESERVATION`, `TWENTY_FOUR_MONTHS_RESERVATION` or `THIRTY_SIX_MONTHS_RESERVATION`.
	PricingModel *string `json:"pricingModel,omitempty"`
	// The type of network configuration for this server.<br> Currently this field should be set to `PUBLIC_AND_PRIVATE`, `PRIVATE_ONLY`, `PUBLIC_ONLY` or `USER_DEFINED`.<br> Setting the `force` query parameter to `true` allows you to configure network configuration type as `NONE`.
	NetworkType     *string          `json:"networkType,omitempty"`
	OsConfiguration *OsConfiguration `json:"osConfiguration,omitempty"`
	// Tags to set to the server. To create a new tag or list all the existing tags that you can use, refer to [Tags API](https://developers.phoenixnap.com/docs/tags/1/overview).
	Tags                 []TagAssignmentRequest `json:"tags,omitempty"`
	NetworkConfiguration *NetworkConfiguration  `json:"networkConfiguration,omitempty"`
	StorageConfiguration *StorageConfiguration  `json:"storageConfiguration,omitempty"`
	AdditionalProperties map[string]interface{}
}

ServerCreate Provision bare metal server.

func NewServerCreate

func NewServerCreate(hostname string, os string, type_ string, location string) *ServerCreate

NewServerCreate instantiates a new ServerCreate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerCreateWithDefaults

func NewServerCreateWithDefaults() *ServerCreate

NewServerCreateWithDefaults instantiates a new ServerCreate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServerCreate) GetDescription

func (o *ServerCreate) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*ServerCreate) GetDescriptionOk

func (o *ServerCreate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerCreate) GetHostname

func (o *ServerCreate) GetHostname() string

GetHostname returns the Hostname field value

func (*ServerCreate) GetHostnameOk

func (o *ServerCreate) GetHostnameOk() (*string, bool)

GetHostnameOk returns a tuple with the Hostname field value and a boolean to check if the value has been set.

func (*ServerCreate) GetInstallDefaultSshKeys

func (o *ServerCreate) GetInstallDefaultSshKeys() bool

GetInstallDefaultSshKeys returns the InstallDefaultSshKeys field value if set, zero value otherwise.

func (*ServerCreate) GetInstallDefaultSshKeysOk

func (o *ServerCreate) GetInstallDefaultSshKeysOk() (*bool, bool)

GetInstallDefaultSshKeysOk returns a tuple with the InstallDefaultSshKeys field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerCreate) GetLocation

func (o *ServerCreate) GetLocation() string

GetLocation returns the Location field value

func (*ServerCreate) GetLocationOk

func (o *ServerCreate) GetLocationOk() (*string, bool)

GetLocationOk returns a tuple with the Location field value and a boolean to check if the value has been set.

func (*ServerCreate) GetNetworkConfiguration

func (o *ServerCreate) GetNetworkConfiguration() NetworkConfiguration

GetNetworkConfiguration returns the NetworkConfiguration field value if set, zero value otherwise.

func (*ServerCreate) GetNetworkConfigurationOk

func (o *ServerCreate) GetNetworkConfigurationOk() (*NetworkConfiguration, bool)

GetNetworkConfigurationOk returns a tuple with the NetworkConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerCreate) GetNetworkType

func (o *ServerCreate) GetNetworkType() string

GetNetworkType returns the NetworkType field value if set, zero value otherwise.

func (*ServerCreate) GetNetworkTypeOk

func (o *ServerCreate) GetNetworkTypeOk() (*string, bool)

GetNetworkTypeOk returns a tuple with the NetworkType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerCreate) GetOs

func (o *ServerCreate) GetOs() string

GetOs returns the Os field value

func (*ServerCreate) GetOsConfiguration

func (o *ServerCreate) GetOsConfiguration() OsConfiguration

GetOsConfiguration returns the OsConfiguration field value if set, zero value otherwise.

func (*ServerCreate) GetOsConfigurationOk

func (o *ServerCreate) GetOsConfigurationOk() (*OsConfiguration, bool)

GetOsConfigurationOk returns a tuple with the OsConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerCreate) GetOsOk

func (o *ServerCreate) GetOsOk() (*string, bool)

GetOsOk returns a tuple with the Os field value and a boolean to check if the value has been set.

func (*ServerCreate) GetPricingModel

func (o *ServerCreate) GetPricingModel() string

GetPricingModel returns the PricingModel field value if set, zero value otherwise.

func (*ServerCreate) GetPricingModelOk

func (o *ServerCreate) GetPricingModelOk() (*string, bool)

GetPricingModelOk returns a tuple with the PricingModel field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerCreate) GetReservationId

func (o *ServerCreate) GetReservationId() string

GetReservationId returns the ReservationId field value if set, zero value otherwise.

func (*ServerCreate) GetReservationIdOk

func (o *ServerCreate) GetReservationIdOk() (*string, bool)

GetReservationIdOk returns a tuple with the ReservationId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerCreate) GetSshKeyIds

func (o *ServerCreate) GetSshKeyIds() []string

GetSshKeyIds returns the SshKeyIds field value if set, zero value otherwise.

func (*ServerCreate) GetSshKeyIdsOk

func (o *ServerCreate) GetSshKeyIdsOk() ([]string, bool)

GetSshKeyIdsOk returns a tuple with the SshKeyIds field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerCreate) GetSshKeys

func (o *ServerCreate) GetSshKeys() []string

GetSshKeys returns the SshKeys field value if set, zero value otherwise.

func (*ServerCreate) GetSshKeysOk

func (o *ServerCreate) GetSshKeysOk() ([]string, bool)

GetSshKeysOk returns a tuple with the SshKeys field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerCreate) GetStorageConfiguration

func (o *ServerCreate) GetStorageConfiguration() StorageConfiguration

GetStorageConfiguration returns the StorageConfiguration field value if set, zero value otherwise.

func (*ServerCreate) GetStorageConfigurationOk

func (o *ServerCreate) GetStorageConfigurationOk() (*StorageConfiguration, bool)

GetStorageConfigurationOk returns a tuple with the StorageConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerCreate) GetTags

func (o *ServerCreate) GetTags() []TagAssignmentRequest

GetTags returns the Tags field value if set, zero value otherwise.

func (*ServerCreate) GetTagsOk

func (o *ServerCreate) GetTagsOk() ([]TagAssignmentRequest, bool)

GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerCreate) GetType

func (o *ServerCreate) GetType() string

GetType returns the Type field value

func (*ServerCreate) GetTypeOk

func (o *ServerCreate) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*ServerCreate) HasDescription

func (o *ServerCreate) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*ServerCreate) HasInstallDefaultSshKeys

func (o *ServerCreate) HasInstallDefaultSshKeys() bool

HasInstallDefaultSshKeys returns a boolean if a field has been set.

func (*ServerCreate) HasNetworkConfiguration

func (o *ServerCreate) HasNetworkConfiguration() bool

HasNetworkConfiguration returns a boolean if a field has been set.

func (*ServerCreate) HasNetworkType

func (o *ServerCreate) HasNetworkType() bool

HasNetworkType returns a boolean if a field has been set.

func (*ServerCreate) HasOsConfiguration

func (o *ServerCreate) HasOsConfiguration() bool

HasOsConfiguration returns a boolean if a field has been set.

func (*ServerCreate) HasPricingModel

func (o *ServerCreate) HasPricingModel() bool

HasPricingModel returns a boolean if a field has been set.

func (*ServerCreate) HasReservationId

func (o *ServerCreate) HasReservationId() bool

HasReservationId returns a boolean if a field has been set.

func (*ServerCreate) HasSshKeyIds

func (o *ServerCreate) HasSshKeyIds() bool

HasSshKeyIds returns a boolean if a field has been set.

func (*ServerCreate) HasSshKeys

func (o *ServerCreate) HasSshKeys() bool

HasSshKeys returns a boolean if a field has been set.

func (*ServerCreate) HasStorageConfiguration

func (o *ServerCreate) HasStorageConfiguration() bool

HasStorageConfiguration returns a boolean if a field has been set.

func (*ServerCreate) HasTags

func (o *ServerCreate) HasTags() bool

HasTags returns a boolean if a field has been set.

func (ServerCreate) MarshalJSON

func (o ServerCreate) MarshalJSON() ([]byte, error)

func (*ServerCreate) SetDescription

func (o *ServerCreate) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*ServerCreate) SetHostname

func (o *ServerCreate) SetHostname(v string)

SetHostname sets field value

func (*ServerCreate) SetInstallDefaultSshKeys

func (o *ServerCreate) SetInstallDefaultSshKeys(v bool)

SetInstallDefaultSshKeys gets a reference to the given bool and assigns it to the InstallDefaultSshKeys field.

func (*ServerCreate) SetLocation

func (o *ServerCreate) SetLocation(v string)

SetLocation sets field value

func (*ServerCreate) SetNetworkConfiguration

func (o *ServerCreate) SetNetworkConfiguration(v NetworkConfiguration)

SetNetworkConfiguration gets a reference to the given NetworkConfiguration and assigns it to the NetworkConfiguration field.

func (*ServerCreate) SetNetworkType

func (o *ServerCreate) SetNetworkType(v string)

SetNetworkType gets a reference to the given string and assigns it to the NetworkType field.

func (*ServerCreate) SetOs

func (o *ServerCreate) SetOs(v string)

SetOs sets field value

func (*ServerCreate) SetOsConfiguration

func (o *ServerCreate) SetOsConfiguration(v OsConfiguration)

SetOsConfiguration gets a reference to the given OsConfiguration and assigns it to the OsConfiguration field.

func (*ServerCreate) SetPricingModel

func (o *ServerCreate) SetPricingModel(v string)

SetPricingModel gets a reference to the given string and assigns it to the PricingModel field.

func (*ServerCreate) SetReservationId

func (o *ServerCreate) SetReservationId(v string)

SetReservationId gets a reference to the given string and assigns it to the ReservationId field.

func (*ServerCreate) SetSshKeyIds

func (o *ServerCreate) SetSshKeyIds(v []string)

SetSshKeyIds gets a reference to the given []string and assigns it to the SshKeyIds field.

func (*ServerCreate) SetSshKeys

func (o *ServerCreate) SetSshKeys(v []string)

SetSshKeys gets a reference to the given []string and assigns it to the SshKeys field.

func (*ServerCreate) SetStorageConfiguration

func (o *ServerCreate) SetStorageConfiguration(v StorageConfiguration)

SetStorageConfiguration gets a reference to the given StorageConfiguration and assigns it to the StorageConfiguration field.

func (*ServerCreate) SetTags

func (o *ServerCreate) SetTags(v []TagAssignmentRequest)

SetTags gets a reference to the given []TagAssignmentRequest and assigns it to the Tags field.

func (*ServerCreate) SetType

func (o *ServerCreate) SetType(v string)

SetType sets field value

func (ServerCreate) ToMap

func (o ServerCreate) ToMap() (map[string]interface{}, error)

func (*ServerCreate) UnmarshalJSON

func (o *ServerCreate) UnmarshalJSON(data []byte) (err error)

type ServerIpBlock

type ServerIpBlock struct {
	// The IP block's ID.
	Id string `json:"id"`
	// (Read-only) The VLAN on which this IP block has been configured within the network switch.
	VlanId               *int32 `json:"vlanId,omitempty"`
	AdditionalProperties map[string]interface{}
}

ServerIpBlock IP block assigned to server

func NewServerIpBlock

func NewServerIpBlock(id string) *ServerIpBlock

NewServerIpBlock instantiates a new ServerIpBlock object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerIpBlockWithDefaults

func NewServerIpBlockWithDefaults() *ServerIpBlock

NewServerIpBlockWithDefaults instantiates a new ServerIpBlock object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServerIpBlock) GetId

func (o *ServerIpBlock) GetId() string

GetId returns the Id field value

func (*ServerIpBlock) GetIdOk

func (o *ServerIpBlock) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*ServerIpBlock) GetVlanId

func (o *ServerIpBlock) GetVlanId() int32

GetVlanId returns the VlanId field value if set, zero value otherwise.

func (*ServerIpBlock) GetVlanIdOk

func (o *ServerIpBlock) GetVlanIdOk() (*int32, bool)

GetVlanIdOk returns a tuple with the VlanId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerIpBlock) HasVlanId

func (o *ServerIpBlock) HasVlanId() bool

HasVlanId returns a boolean if a field has been set.

func (ServerIpBlock) MarshalJSON

func (o ServerIpBlock) MarshalJSON() ([]byte, error)

func (*ServerIpBlock) SetId

func (o *ServerIpBlock) SetId(v string)

SetId sets field value

func (*ServerIpBlock) SetVlanId

func (o *ServerIpBlock) SetVlanId(v int32)

SetVlanId gets a reference to the given int32 and assigns it to the VlanId field.

func (ServerIpBlock) ToMap

func (o ServerIpBlock) ToMap() (map[string]interface{}, error)

func (*ServerIpBlock) UnmarshalJSON

func (o *ServerIpBlock) UnmarshalJSON(data []byte) (err error)

type ServerNetworkUpdate

type ServerNetworkUpdate struct {
	// List of IPs to be associated to the server.<br> Valid IP formats are single IPv4 addresses or IPv4 ranges. IPs must be within the network's range.<br> Setting the `force` query parameter to `true` allows you to:<ul> <li> Assign no specific IP addresses by designating an empty array of IPs. <li> Assign one or more IP addresses which are already configured on other resource(s) in network. <li> Assign IP addresses which are considered as reserved in network.</ul>
	Ips                  []string `json:"ips,omitempty"`
	AdditionalProperties map[string]interface{}
}

ServerNetworkUpdate Update network details of bare metal server.

func NewServerNetworkUpdate

func NewServerNetworkUpdate() *ServerNetworkUpdate

NewServerNetworkUpdate instantiates a new ServerNetworkUpdate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerNetworkUpdateWithDefaults

func NewServerNetworkUpdateWithDefaults() *ServerNetworkUpdate

NewServerNetworkUpdateWithDefaults instantiates a new ServerNetworkUpdate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServerNetworkUpdate) GetIps

func (o *ServerNetworkUpdate) GetIps() []string

GetIps returns the Ips field value if set, zero value otherwise.

func (*ServerNetworkUpdate) GetIpsOk

func (o *ServerNetworkUpdate) GetIpsOk() ([]string, bool)

GetIpsOk returns a tuple with the Ips field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerNetworkUpdate) HasIps

func (o *ServerNetworkUpdate) HasIps() bool

HasIps returns a boolean if a field has been set.

func (ServerNetworkUpdate) MarshalJSON

func (o ServerNetworkUpdate) MarshalJSON() ([]byte, error)

func (*ServerNetworkUpdate) SetIps

func (o *ServerNetworkUpdate) SetIps(v []string)

SetIps gets a reference to the given []string and assigns it to the Ips field.

func (ServerNetworkUpdate) ToMap

func (o ServerNetworkUpdate) ToMap() (map[string]interface{}, error)

func (*ServerNetworkUpdate) UnmarshalJSON added in v3.0.1

func (o *ServerNetworkUpdate) UnmarshalJSON(data []byte) (err error)

type ServerPatch

type ServerPatch struct {
	// Description of server.
	Description *string `json:"description,omitempty"`
	// Hostname of server
	Hostname             *string `json:"hostname,omitempty"`
	AdditionalProperties map[string]interface{}
}

ServerPatch Patch bare metal server.

func NewServerPatch

func NewServerPatch() *ServerPatch

NewServerPatch instantiates a new ServerPatch object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerPatchWithDefaults

func NewServerPatchWithDefaults() *ServerPatch

NewServerPatchWithDefaults instantiates a new ServerPatch object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServerPatch) GetDescription

func (o *ServerPatch) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*ServerPatch) GetDescriptionOk

func (o *ServerPatch) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerPatch) GetHostname

func (o *ServerPatch) GetHostname() string

GetHostname returns the Hostname field value if set, zero value otherwise.

func (*ServerPatch) GetHostnameOk

func (o *ServerPatch) GetHostnameOk() (*string, bool)

GetHostnameOk returns a tuple with the Hostname field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerPatch) HasDescription

func (o *ServerPatch) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*ServerPatch) HasHostname

func (o *ServerPatch) HasHostname() bool

HasHostname returns a boolean if a field has been set.

func (ServerPatch) MarshalJSON

func (o ServerPatch) MarshalJSON() ([]byte, error)

func (*ServerPatch) SetDescription

func (o *ServerPatch) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*ServerPatch) SetHostname

func (o *ServerPatch) SetHostname(v string)

SetHostname gets a reference to the given string and assigns it to the Hostname field.

func (ServerPatch) ToMap

func (o ServerPatch) ToMap() (map[string]interface{}, error)

func (*ServerPatch) UnmarshalJSON added in v3.0.1

func (o *ServerPatch) UnmarshalJSON(data []byte) (err error)

type ServerPrivateNetwork

type ServerPrivateNetwork struct {
	// The network identifier.
	Id string `json:"id"`
	// IPs to configure/configured on the server.<br> Valid IP formats are single IPv4 addresses or IPv4 ranges. IPs must be within the network's range. Should be null or empty list if DHCP is true. <br> If field is undefined and DHCP is false, next available IP in network will be automatically allocated.<br> If the network contains a membership of type 'storage', the first twelve IPs are already reserved by BMC and not usable.<br> Setting the `force` query parameter to `true` allows you to:<ul> <li> Assign no specific IP addresses by designating an empty array of IPs. Note that at least one IP is required for the gateway address to be selected from this network. <li> Assign one or more IP addresses which are already configured on other resource(s) in network. <li> Assign IP addresses which are considered as reserved in network.</ul>
	Ips []string `json:"ips,omitempty"`
	// Determines whether DHCP is enabled for this server. Should be false if any IPs are provided. Not supported for Proxmox OS.
	Dhcp *bool `json:"dhcp,omitempty"`
	// (Read-only) The status of the network.
	StatusDescription    *string `json:"statusDescription,omitempty"`
	AdditionalProperties map[string]interface{}
}

ServerPrivateNetwork Private network details of bare metal server.

func NewServerPrivateNetwork

func NewServerPrivateNetwork(id string) *ServerPrivateNetwork

NewServerPrivateNetwork instantiates a new ServerPrivateNetwork object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerPrivateNetworkWithDefaults

func NewServerPrivateNetworkWithDefaults() *ServerPrivateNetwork

NewServerPrivateNetworkWithDefaults instantiates a new ServerPrivateNetwork object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServerPrivateNetwork) GetDhcp

func (o *ServerPrivateNetwork) GetDhcp() bool

GetDhcp returns the Dhcp field value if set, zero value otherwise.

func (*ServerPrivateNetwork) GetDhcpOk

func (o *ServerPrivateNetwork) GetDhcpOk() (*bool, bool)

GetDhcpOk returns a tuple with the Dhcp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerPrivateNetwork) GetId

func (o *ServerPrivateNetwork) GetId() string

GetId returns the Id field value

func (*ServerPrivateNetwork) GetIdOk

func (o *ServerPrivateNetwork) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*ServerPrivateNetwork) GetIps

func (o *ServerPrivateNetwork) GetIps() []string

GetIps returns the Ips field value if set, zero value otherwise.

func (*ServerPrivateNetwork) GetIpsOk

func (o *ServerPrivateNetwork) GetIpsOk() ([]string, bool)

GetIpsOk returns a tuple with the Ips field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerPrivateNetwork) GetStatusDescription

func (o *ServerPrivateNetwork) GetStatusDescription() string

GetStatusDescription returns the StatusDescription field value if set, zero value otherwise.

func (*ServerPrivateNetwork) GetStatusDescriptionOk

func (o *ServerPrivateNetwork) GetStatusDescriptionOk() (*string, bool)

GetStatusDescriptionOk returns a tuple with the StatusDescription field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerPrivateNetwork) HasDhcp

func (o *ServerPrivateNetwork) HasDhcp() bool

HasDhcp returns a boolean if a field has been set.

func (*ServerPrivateNetwork) HasIps

func (o *ServerPrivateNetwork) HasIps() bool

HasIps returns a boolean if a field has been set.

func (*ServerPrivateNetwork) HasStatusDescription

func (o *ServerPrivateNetwork) HasStatusDescription() bool

HasStatusDescription returns a boolean if a field has been set.

func (ServerPrivateNetwork) MarshalJSON

func (o ServerPrivateNetwork) MarshalJSON() ([]byte, error)

func (*ServerPrivateNetwork) SetDhcp

func (o *ServerPrivateNetwork) SetDhcp(v bool)

SetDhcp gets a reference to the given bool and assigns it to the Dhcp field.

func (*ServerPrivateNetwork) SetId

func (o *ServerPrivateNetwork) SetId(v string)

SetId sets field value

func (*ServerPrivateNetwork) SetIps

func (o *ServerPrivateNetwork) SetIps(v []string)

SetIps gets a reference to the given []string and assigns it to the Ips field.

func (*ServerPrivateNetwork) SetStatusDescription

func (o *ServerPrivateNetwork) SetStatusDescription(v string)

SetStatusDescription gets a reference to the given string and assigns it to the StatusDescription field.

func (ServerPrivateNetwork) ToMap

func (o ServerPrivateNetwork) ToMap() (map[string]interface{}, error)

func (*ServerPrivateNetwork) UnmarshalJSON

func (o *ServerPrivateNetwork) UnmarshalJSON(data []byte) (err error)

type ServerProvision

type ServerProvision struct {
	// Hostname of server.
	Hostname string `json:"hostname"`
	// Description of server.
	Description *string `json:"description,omitempty"`
	// The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `debian/bullseye`, `debian/bookworm`, `proxmox/bullseye`, `proxmox/proxmox8`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`.
	Os string `json:"os"`
	// Whether or not to install SSH keys marked as default in addition to any SSH keys specified in this request.
	InstallDefaultSshKeys *bool `json:"installDefaultSshKeys,omitempty"`
	// A list of SSH keys that will be installed on the server.
	SshKeys []string `json:"sshKeys,omitempty"`
	// A list of SSH key IDs that will be installed on the server in addition to any SSH keys specified in this request.
	SshKeyIds []string `json:"sshKeyIds,omitempty"`
	// The type of network configuration for this server.<br> Currently this field should be set to `PUBLIC_AND_PRIVATE`, `PRIVATE_ONLY`, `PUBLIC_ONLY` or `USER_DEFINED`.<br> Setting the `force` query parameter to `true` allows you to configure network configuration type as `NONE`.
	NetworkType     *string          `json:"networkType,omitempty"`
	OsConfiguration *OsConfiguration `json:"osConfiguration,omitempty"`
	// Tags to set to the server. To create a new tag or list all the existing tags that you can use, refer to [Tags API](https://developers.phoenixnap.com/docs/tags/1/overview).
	Tags                 []TagAssignmentRequest `json:"tags,omitempty"`
	NetworkConfiguration *NetworkConfiguration  `json:"networkConfiguration,omitempty"`
	StorageConfiguration *StorageConfiguration  `json:"storageConfiguration,omitempty"`
	AdditionalProperties map[string]interface{}
}

ServerProvision Provision bare metal server.

func NewServerProvision

func NewServerProvision(hostname string, os string) *ServerProvision

NewServerProvision instantiates a new ServerProvision object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerProvisionWithDefaults

func NewServerProvisionWithDefaults() *ServerProvision

NewServerProvisionWithDefaults instantiates a new ServerProvision object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServerProvision) GetDescription

func (o *ServerProvision) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*ServerProvision) GetDescriptionOk

func (o *ServerProvision) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerProvision) GetHostname

func (o *ServerProvision) GetHostname() string

GetHostname returns the Hostname field value

func (*ServerProvision) GetHostnameOk

func (o *ServerProvision) GetHostnameOk() (*string, bool)

GetHostnameOk returns a tuple with the Hostname field value and a boolean to check if the value has been set.

func (*ServerProvision) GetInstallDefaultSshKeys

func (o *ServerProvision) GetInstallDefaultSshKeys() bool

GetInstallDefaultSshKeys returns the InstallDefaultSshKeys field value if set, zero value otherwise.

func (*ServerProvision) GetInstallDefaultSshKeysOk

func (o *ServerProvision) GetInstallDefaultSshKeysOk() (*bool, bool)

GetInstallDefaultSshKeysOk returns a tuple with the InstallDefaultSshKeys field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerProvision) GetNetworkConfiguration

func (o *ServerProvision) GetNetworkConfiguration() NetworkConfiguration

GetNetworkConfiguration returns the NetworkConfiguration field value if set, zero value otherwise.

func (*ServerProvision) GetNetworkConfigurationOk

func (o *ServerProvision) GetNetworkConfigurationOk() (*NetworkConfiguration, bool)

GetNetworkConfigurationOk returns a tuple with the NetworkConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerProvision) GetNetworkType

func (o *ServerProvision) GetNetworkType() string

GetNetworkType returns the NetworkType field value if set, zero value otherwise.

func (*ServerProvision) GetNetworkTypeOk

func (o *ServerProvision) GetNetworkTypeOk() (*string, bool)

GetNetworkTypeOk returns a tuple with the NetworkType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerProvision) GetOs

func (o *ServerProvision) GetOs() string

GetOs returns the Os field value

func (*ServerProvision) GetOsConfiguration

func (o *ServerProvision) GetOsConfiguration() OsConfiguration

GetOsConfiguration returns the OsConfiguration field value if set, zero value otherwise.

func (*ServerProvision) GetOsConfigurationOk

func (o *ServerProvision) GetOsConfigurationOk() (*OsConfiguration, bool)

GetOsConfigurationOk returns a tuple with the OsConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerProvision) GetOsOk

func (o *ServerProvision) GetOsOk() (*string, bool)

GetOsOk returns a tuple with the Os field value and a boolean to check if the value has been set.

func (*ServerProvision) GetSshKeyIds

func (o *ServerProvision) GetSshKeyIds() []string

GetSshKeyIds returns the SshKeyIds field value if set, zero value otherwise.

func (*ServerProvision) GetSshKeyIdsOk

func (o *ServerProvision) GetSshKeyIdsOk() ([]string, bool)

GetSshKeyIdsOk returns a tuple with the SshKeyIds field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerProvision) GetSshKeys

func (o *ServerProvision) GetSshKeys() []string

GetSshKeys returns the SshKeys field value if set, zero value otherwise.

func (*ServerProvision) GetSshKeysOk

func (o *ServerProvision) GetSshKeysOk() ([]string, bool)

GetSshKeysOk returns a tuple with the SshKeys field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerProvision) GetStorageConfiguration

func (o *ServerProvision) GetStorageConfiguration() StorageConfiguration

GetStorageConfiguration returns the StorageConfiguration field value if set, zero value otherwise.

func (*ServerProvision) GetStorageConfigurationOk

func (o *ServerProvision) GetStorageConfigurationOk() (*StorageConfiguration, bool)

GetStorageConfigurationOk returns a tuple with the StorageConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerProvision) GetTags

func (o *ServerProvision) GetTags() []TagAssignmentRequest

GetTags returns the Tags field value if set, zero value otherwise.

func (*ServerProvision) GetTagsOk

func (o *ServerProvision) GetTagsOk() ([]TagAssignmentRequest, bool)

GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerProvision) HasDescription

func (o *ServerProvision) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*ServerProvision) HasInstallDefaultSshKeys

func (o *ServerProvision) HasInstallDefaultSshKeys() bool

HasInstallDefaultSshKeys returns a boolean if a field has been set.

func (*ServerProvision) HasNetworkConfiguration

func (o *ServerProvision) HasNetworkConfiguration() bool

HasNetworkConfiguration returns a boolean if a field has been set.

func (*ServerProvision) HasNetworkType

func (o *ServerProvision) HasNetworkType() bool

HasNetworkType returns a boolean if a field has been set.

func (*ServerProvision) HasOsConfiguration

func (o *ServerProvision) HasOsConfiguration() bool

HasOsConfiguration returns a boolean if a field has been set.

func (*ServerProvision) HasSshKeyIds

func (o *ServerProvision) HasSshKeyIds() bool

HasSshKeyIds returns a boolean if a field has been set.

func (*ServerProvision) HasSshKeys

func (o *ServerProvision) HasSshKeys() bool

HasSshKeys returns a boolean if a field has been set.

func (*ServerProvision) HasStorageConfiguration

func (o *ServerProvision) HasStorageConfiguration() bool

HasStorageConfiguration returns a boolean if a field has been set.

func (*ServerProvision) HasTags

func (o *ServerProvision) HasTags() bool

HasTags returns a boolean if a field has been set.

func (ServerProvision) MarshalJSON

func (o ServerProvision) MarshalJSON() ([]byte, error)

func (*ServerProvision) SetDescription

func (o *ServerProvision) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*ServerProvision) SetHostname

func (o *ServerProvision) SetHostname(v string)

SetHostname sets field value

func (*ServerProvision) SetInstallDefaultSshKeys

func (o *ServerProvision) SetInstallDefaultSshKeys(v bool)

SetInstallDefaultSshKeys gets a reference to the given bool and assigns it to the InstallDefaultSshKeys field.

func (*ServerProvision) SetNetworkConfiguration

func (o *ServerProvision) SetNetworkConfiguration(v NetworkConfiguration)

SetNetworkConfiguration gets a reference to the given NetworkConfiguration and assigns it to the NetworkConfiguration field.

func (*ServerProvision) SetNetworkType

func (o *ServerProvision) SetNetworkType(v string)

SetNetworkType gets a reference to the given string and assigns it to the NetworkType field.

func (*ServerProvision) SetOs

func (o *ServerProvision) SetOs(v string)

SetOs sets field value

func (*ServerProvision) SetOsConfiguration

func (o *ServerProvision) SetOsConfiguration(v OsConfiguration)

SetOsConfiguration gets a reference to the given OsConfiguration and assigns it to the OsConfiguration field.

func (*ServerProvision) SetSshKeyIds

func (o *ServerProvision) SetSshKeyIds(v []string)

SetSshKeyIds gets a reference to the given []string and assigns it to the SshKeyIds field.

func (*ServerProvision) SetSshKeys

func (o *ServerProvision) SetSshKeys(v []string)

SetSshKeys gets a reference to the given []string and assigns it to the SshKeys field.

func (*ServerProvision) SetStorageConfiguration

func (o *ServerProvision) SetStorageConfiguration(v StorageConfiguration)

SetStorageConfiguration gets a reference to the given StorageConfiguration and assigns it to the StorageConfiguration field.

func (*ServerProvision) SetTags

func (o *ServerProvision) SetTags(v []TagAssignmentRequest)

SetTags gets a reference to the given []TagAssignmentRequest and assigns it to the Tags field.

func (ServerProvision) ToMap

func (o ServerProvision) ToMap() (map[string]interface{}, error)

func (*ServerProvision) UnmarshalJSON

func (o *ServerProvision) UnmarshalJSON(data []byte) (err error)

type ServerPublicNetwork

type ServerPublicNetwork struct {
	// The network identifier.
	Id string `json:"id"`
	// Configurable/configured IPs on the server.<br> At least 1 IP address is required. Valid IP formats are single IPv4 addresses or IPv4 ranges. All IPs must be within the network's range.<br> Setting the `force` query parameter to `true` allows you to:<ul> <li> Assign no specific IP addresses by designating an empty array of IPs. Note that at least one IP is required for the gateway address to be selected from this network. <li> Assign one or more IP addresses which are already configured on other resource(s) in network.</ul>
	Ips []string `json:"ips,omitempty"`
	// (Read-only) The status of the assignment to the network.
	StatusDescription    *string `json:"statusDescription,omitempty"`
	AdditionalProperties map[string]interface{}
}

ServerPublicNetwork Public network details of bare metal server.

func NewServerPublicNetwork

func NewServerPublicNetwork(id string) *ServerPublicNetwork

NewServerPublicNetwork instantiates a new ServerPublicNetwork object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerPublicNetworkWithDefaults

func NewServerPublicNetworkWithDefaults() *ServerPublicNetwork

NewServerPublicNetworkWithDefaults instantiates a new ServerPublicNetwork object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServerPublicNetwork) GetId

func (o *ServerPublicNetwork) GetId() string

GetId returns the Id field value

func (*ServerPublicNetwork) GetIdOk

func (o *ServerPublicNetwork) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*ServerPublicNetwork) GetIps

func (o *ServerPublicNetwork) GetIps() []string

GetIps returns the Ips field value if set, zero value otherwise.

func (*ServerPublicNetwork) GetIpsOk

func (o *ServerPublicNetwork) GetIpsOk() ([]string, bool)

GetIpsOk returns a tuple with the Ips field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerPublicNetwork) GetStatusDescription

func (o *ServerPublicNetwork) GetStatusDescription() string

GetStatusDescription returns the StatusDescription field value if set, zero value otherwise.

func (*ServerPublicNetwork) GetStatusDescriptionOk

func (o *ServerPublicNetwork) GetStatusDescriptionOk() (*string, bool)

GetStatusDescriptionOk returns a tuple with the StatusDescription field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerPublicNetwork) HasIps

func (o *ServerPublicNetwork) HasIps() bool

HasIps returns a boolean if a field has been set.

func (*ServerPublicNetwork) HasStatusDescription

func (o *ServerPublicNetwork) HasStatusDescription() bool

HasStatusDescription returns a boolean if a field has been set.

func (ServerPublicNetwork) MarshalJSON

func (o ServerPublicNetwork) MarshalJSON() ([]byte, error)

func (*ServerPublicNetwork) SetId

func (o *ServerPublicNetwork) SetId(v string)

SetId sets field value

func (*ServerPublicNetwork) SetIps

func (o *ServerPublicNetwork) SetIps(v []string)

SetIps gets a reference to the given []string and assigns it to the Ips field.

func (*ServerPublicNetwork) SetStatusDescription

func (o *ServerPublicNetwork) SetStatusDescription(v string)

SetStatusDescription gets a reference to the given string and assigns it to the StatusDescription field.

func (ServerPublicNetwork) ToMap

func (o ServerPublicNetwork) ToMap() (map[string]interface{}, error)

func (*ServerPublicNetwork) UnmarshalJSON

func (o *ServerPublicNetwork) UnmarshalJSON(data []byte) (err error)

type ServerReserve

type ServerReserve struct {
	// Server pricing model. Currently this field should be set to `ONE_MONTH_RESERVATION`, `TWELVE_MONTHS_RESERVATION`, `TWENTY_FOUR_MONTHS_RESERVATION` or `THIRTY_SIX_MONTHS_RESERVATION`.
	PricingModel         string `json:"pricingModel"`
	AdditionalProperties map[string]interface{}
}

ServerReserve Bare metal server reservation.

func NewServerReserve

func NewServerReserve(pricingModel string) *ServerReserve

NewServerReserve instantiates a new ServerReserve object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerReserveWithDefaults

func NewServerReserveWithDefaults() *ServerReserve

NewServerReserveWithDefaults instantiates a new ServerReserve object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServerReserve) GetPricingModel

func (o *ServerReserve) GetPricingModel() string

GetPricingModel returns the PricingModel field value

func (*ServerReserve) GetPricingModelOk

func (o *ServerReserve) GetPricingModelOk() (*string, bool)

GetPricingModelOk returns a tuple with the PricingModel field value and a boolean to check if the value has been set.

func (ServerReserve) MarshalJSON

func (o ServerReserve) MarshalJSON() ([]byte, error)

func (*ServerReserve) SetPricingModel

func (o *ServerReserve) SetPricingModel(v string)

SetPricingModel sets field value

func (ServerReserve) ToMap

func (o ServerReserve) ToMap() (map[string]interface{}, error)

func (*ServerReserve) UnmarshalJSON

func (o *ServerReserve) UnmarshalJSON(data []byte) (err error)

type ServerReset

type ServerReset struct {
	// Whether or not to install SSH keys marked as default in addition to any SSH keys specified in this request.
	InstallDefaultSshKeys *bool `json:"installDefaultSshKeys,omitempty"`
	// A list of SSH keys that will be installed on the server.
	SshKeys []string `json:"sshKeys,omitempty"`
	// A list of SSH key IDs that will be installed on the server in addition to any SSH keys specified in this request.
	SshKeyIds            []string            `json:"sshKeyIds,omitempty"`
	OsConfiguration      *OsConfigurationMap `json:"osConfiguration,omitempty"`
	AdditionalProperties map[string]interface{}
}

ServerReset Reset bare metal server.

func NewServerReset

func NewServerReset() *ServerReset

NewServerReset instantiates a new ServerReset object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerResetWithDefaults

func NewServerResetWithDefaults() *ServerReset

NewServerResetWithDefaults instantiates a new ServerReset object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServerReset) GetInstallDefaultSshKeys

func (o *ServerReset) GetInstallDefaultSshKeys() bool

GetInstallDefaultSshKeys returns the InstallDefaultSshKeys field value if set, zero value otherwise.

func (*ServerReset) GetInstallDefaultSshKeysOk

func (o *ServerReset) GetInstallDefaultSshKeysOk() (*bool, bool)

GetInstallDefaultSshKeysOk returns a tuple with the InstallDefaultSshKeys field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerReset) GetOsConfiguration

func (o *ServerReset) GetOsConfiguration() OsConfigurationMap

GetOsConfiguration returns the OsConfiguration field value if set, zero value otherwise.

func (*ServerReset) GetOsConfigurationOk

func (o *ServerReset) GetOsConfigurationOk() (*OsConfigurationMap, bool)

GetOsConfigurationOk returns a tuple with the OsConfiguration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerReset) GetSshKeyIds

func (o *ServerReset) GetSshKeyIds() []string

GetSshKeyIds returns the SshKeyIds field value if set, zero value otherwise.

func (*ServerReset) GetSshKeyIdsOk

func (o *ServerReset) GetSshKeyIdsOk() ([]string, bool)

GetSshKeyIdsOk returns a tuple with the SshKeyIds field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerReset) GetSshKeys

func (o *ServerReset) GetSshKeys() []string

GetSshKeys returns the SshKeys field value if set, zero value otherwise.

func (*ServerReset) GetSshKeysOk

func (o *ServerReset) GetSshKeysOk() ([]string, bool)

GetSshKeysOk returns a tuple with the SshKeys field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServerReset) HasInstallDefaultSshKeys

func (o *ServerReset) HasInstallDefaultSshKeys() bool

HasInstallDefaultSshKeys returns a boolean if a field has been set.

func (*ServerReset) HasOsConfiguration

func (o *ServerReset) HasOsConfiguration() bool

HasOsConfiguration returns a boolean if a field has been set.

func (*ServerReset) HasSshKeyIds

func (o *ServerReset) HasSshKeyIds() bool

HasSshKeyIds returns a boolean if a field has been set.

func (*ServerReset) HasSshKeys

func (o *ServerReset) HasSshKeys() bool

HasSshKeys returns a boolean if a field has been set.

func (ServerReset) MarshalJSON

func (o ServerReset) MarshalJSON() ([]byte, error)

func (*ServerReset) SetInstallDefaultSshKeys

func (o *ServerReset) SetInstallDefaultSshKeys(v bool)

SetInstallDefaultSshKeys gets a reference to the given bool and assigns it to the InstallDefaultSshKeys field.

func (*ServerReset) SetOsConfiguration

func (o *ServerReset) SetOsConfiguration(v OsConfigurationMap)

SetOsConfiguration gets a reference to the given OsConfigurationMap and assigns it to the OsConfiguration field.

func (*ServerReset) SetSshKeyIds

func (o *ServerReset) SetSshKeyIds(v []string)

SetSshKeyIds gets a reference to the given []string and assigns it to the SshKeyIds field.

func (*ServerReset) SetSshKeys

func (o *ServerReset) SetSshKeys(v []string)

SetSshKeys gets a reference to the given []string and assigns it to the SshKeys field.

func (ServerReset) ToMap

func (o ServerReset) ToMap() (map[string]interface{}, error)

func (*ServerReset) UnmarshalJSON added in v3.0.1

func (o *ServerReset) UnmarshalJSON(data []byte) (err error)

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type ServersAPI

type ServersAPI interface {

	/*
		DeletePrivateNetwork Removes the server from private network.

		Removes the server from private network. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. <b>This is an advanced network action that can make your server completely unavailable over any network. Make sure this server is reachable over remote console for guaranteed access in case of misconfiguration.</b>

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@param privateNetworkId The private network identifier.
		@return ApiDeletePrivateNetworkRequest
	*/
	DeletePrivateNetwork(ctx context.Context, serverId string, privateNetworkId string) ApiDeletePrivateNetworkRequest

	// DeletePrivateNetworkExecute executes the request
	//  @return string
	DeletePrivateNetworkExecute(r ApiDeletePrivateNetworkRequest) (string, *http.Response, error)

	/*
		ServersGet List servers.

		List all servers owned by account.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiServersGetRequest
	*/
	ServersGet(ctx context.Context) ApiServersGetRequest

	// ServersGetExecute executes the request
	//  @return []Server
	ServersGetExecute(r ApiServersGetRequest) ([]Server, *http.Response, error)

	/*
		ServersPost Create new server.

		Create (request) a new server for the account. Server DNS will be configured to access Google's public DNS at 8.8.8.8 . Note that the product availability API can be used prior to doing the provision request. Refer to https://developers.phoenixnap.com/docs/bmc-billing/1/routes/product-availability/get.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiServersPostRequest
	*/
	ServersPost(ctx context.Context) ApiServersPostRequest

	// ServersPostExecute executes the request
	//  @return Server
	ServersPostExecute(r ApiServersPostRequest) (*Server, *http.Response, error)

	/*
		ServersServerIdActionsDeprovisionPost Deprovision a server.

		Deprovision the server. Supports advanced deprovision configuration.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@return ApiServersServerIdActionsDeprovisionPostRequest
	*/
	ServersServerIdActionsDeprovisionPost(ctx context.Context, serverId string) ApiServersServerIdActionsDeprovisionPostRequest

	// ServersServerIdActionsDeprovisionPostExecute executes the request
	//  @return string
	ServersServerIdActionsDeprovisionPostExecute(r ApiServersServerIdActionsDeprovisionPostRequest) (string, *http.Response, error)

	/*
		ServersServerIdActionsPowerOffPost Power off server.

		Power off specific server.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@return ApiServersServerIdActionsPowerOffPostRequest
	*/
	ServersServerIdActionsPowerOffPost(ctx context.Context, serverId string) ApiServersServerIdActionsPowerOffPostRequest

	// ServersServerIdActionsPowerOffPostExecute executes the request
	//  @return ActionResult
	ServersServerIdActionsPowerOffPostExecute(r ApiServersServerIdActionsPowerOffPostRequest) (*ActionResult, *http.Response, error)

	/*
		ServersServerIdActionsPowerOnPost Power on server.

		Power on specific server.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@return ApiServersServerIdActionsPowerOnPostRequest
	*/
	ServersServerIdActionsPowerOnPost(ctx context.Context, serverId string) ApiServersServerIdActionsPowerOnPostRequest

	// ServersServerIdActionsPowerOnPostExecute executes the request
	//  @return ActionResult
	ServersServerIdActionsPowerOnPostExecute(r ApiServersServerIdActionsPowerOnPostRequest) (*ActionResult, *http.Response, error)

	/*
		ServersServerIdActionsProvisionPost Provision server.

		Provision reserved server. Server DNS will be configured to access Google's public DNS at 8.8.8.8.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@return ApiServersServerIdActionsProvisionPostRequest
	*/
	ServersServerIdActionsProvisionPost(ctx context.Context, serverId string) ApiServersServerIdActionsProvisionPostRequest

	// ServersServerIdActionsProvisionPostExecute executes the request
	//  @return Server
	ServersServerIdActionsProvisionPostExecute(r ApiServersServerIdActionsProvisionPostRequest) (*Server, *http.Response, error)

	/*
		ServersServerIdActionsRebootPost Reboot server.

		Reboot specific server.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@return ApiServersServerIdActionsRebootPostRequest
	*/
	ServersServerIdActionsRebootPost(ctx context.Context, serverId string) ApiServersServerIdActionsRebootPostRequest

	// ServersServerIdActionsRebootPostExecute executes the request
	//  @return ActionResult
	ServersServerIdActionsRebootPostExecute(r ApiServersServerIdActionsRebootPostRequest) (*ActionResult, *http.Response, error)

	/*
		ServersServerIdActionsReservePost Reserve server.

		Reserve specific server.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@return ApiServersServerIdActionsReservePostRequest
	*/
	ServersServerIdActionsReservePost(ctx context.Context, serverId string) ApiServersServerIdActionsReservePostRequest

	// ServersServerIdActionsReservePostExecute executes the request
	//  @return Server
	ServersServerIdActionsReservePostExecute(r ApiServersServerIdActionsReservePostRequest) (*Server, *http.Response, error)

	/*
		ServersServerIdActionsResetPost Reset server.

		Deprecated: Reset specific server. Reset only supports network configurations of type 'private network' or 'IP blocks'. As an alternative, the suggested action is to deprovision the server and provision a new one with the same configuration.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@return ApiServersServerIdActionsResetPostRequest

		Deprecated
	*/
	ServersServerIdActionsResetPost(ctx context.Context, serverId string) ApiServersServerIdActionsResetPostRequest

	// ServersServerIdActionsResetPostExecute executes the request
	//  @return ResetResult
	// Deprecated
	ServersServerIdActionsResetPostExecute(r ApiServersServerIdActionsResetPostRequest) (*ResetResult, *http.Response, error)

	/*
		ServersServerIdActionsShutdownPost Shutdown server.

		Shut down specific server.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@return ApiServersServerIdActionsShutdownPostRequest
	*/
	ServersServerIdActionsShutdownPost(ctx context.Context, serverId string) ApiServersServerIdActionsShutdownPostRequest

	// ServersServerIdActionsShutdownPostExecute executes the request
	//  @return ActionResult
	ServersServerIdActionsShutdownPostExecute(r ApiServersServerIdActionsShutdownPostRequest) (*ActionResult, *http.Response, error)

	/*
		ServersServerIdDelete Delete server.

		Deprovision specific server. Any IP blocks assigned to this server will also be relinquished and deleted. Deprecated: see /servers/{serverId}/actions/deprovision

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@return ApiServersServerIdDeleteRequest

		Deprecated
	*/
	ServersServerIdDelete(ctx context.Context, serverId string) ApiServersServerIdDeleteRequest

	// ServersServerIdDeleteExecute executes the request
	//  @return DeleteResult
	// Deprecated
	ServersServerIdDeleteExecute(r ApiServersServerIdDeleteRequest) (*DeleteResult, *http.Response, error)

	/*
		ServersServerIdGet Get server.

		Get server properties.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@return ApiServersServerIdGetRequest
	*/
	ServersServerIdGet(ctx context.Context, serverId string) ApiServersServerIdGetRequest

	// ServersServerIdGetExecute executes the request
	//  @return Server
	ServersServerIdGetExecute(r ApiServersServerIdGetRequest) (*Server, *http.Response, error)

	/*
		ServersServerIdIpBlocksIpBlockIdDelete Unassign IP Block from Server.

		Removes the IP block from the server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. <b>This is an advanced network action that can make your server completely unavailable over any network. Make sure this server is reachable over remote console for guaranteed access in case of misconfiguration.</b>

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@param ipBlockId The IP Block identifier.
		@return ApiServersServerIdIpBlocksIpBlockIdDeleteRequest
	*/
	ServersServerIdIpBlocksIpBlockIdDelete(ctx context.Context, serverId string, ipBlockId string) ApiServersServerIdIpBlocksIpBlockIdDeleteRequest

	// ServersServerIdIpBlocksIpBlockIdDeleteExecute executes the request
	//  @return string
	ServersServerIdIpBlocksIpBlockIdDeleteExecute(r ApiServersServerIdIpBlocksIpBlockIdDeleteRequest) (string, *http.Response, error)

	/*
		ServersServerIdIpBlocksPost Assign IP Block to Server.

		Adds an IP block to this server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-server-with-public-ip-block#ftoc-heading-2' target='_blank'>here</a>.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@return ApiServersServerIdIpBlocksPostRequest
	*/
	ServersServerIdIpBlocksPost(ctx context.Context, serverId string) ApiServersServerIdIpBlocksPostRequest

	// ServersServerIdIpBlocksPostExecute executes the request
	//  @return ServerIpBlock
	ServersServerIdIpBlocksPostExecute(r ApiServersServerIdIpBlocksPostRequest) (*ServerIpBlock, *http.Response, error)

	/*
		ServersServerIdPatch Patch a Server.

		Any changes to the hostname or description using the BMC API will reflect solely in the BMC API and portal. The changes are intended to keep the BMC data up to date with your server. We do not have access to your server's settings. Local changes to the server's hostname will not be reflected in the API or portal.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@return ApiServersServerIdPatchRequest
	*/
	ServersServerIdPatch(ctx context.Context, serverId string) ApiServersServerIdPatchRequest

	// ServersServerIdPatchExecute executes the request
	//  @return Server
	ServersServerIdPatchExecute(r ApiServersServerIdPatchRequest) (*Server, *http.Response, error)

	/*
		ServersServerIdPrivateNetworksPatch Updates the server's private network's IP addresses

		IP address changes intended to keep the BMC data up to date with server's operating system. We do not have access to the server's operating system and therefore manual configuration is required to apply the changes on the host. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-6' target='_blank'>here</a>

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@param privateNetworkId The private network identifier.
		@return ApiServersServerIdPrivateNetworksPatchRequest
	*/
	ServersServerIdPrivateNetworksPatch(ctx context.Context, serverId string, privateNetworkId string) ApiServersServerIdPrivateNetworksPatchRequest

	// ServersServerIdPrivateNetworksPatchExecute executes the request
	//  @return ServerPrivateNetwork
	ServersServerIdPrivateNetworksPatchExecute(r ApiServersServerIdPrivateNetworksPatchRequest) (*ServerPrivateNetwork, *http.Response, error)

	/*
		ServersServerIdPrivateNetworksPost Adds the server to a private network.

		Adds the server to a private network. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-bmc-server-after-adding-to-network#ftoc-heading-3' target='_blank'>here</a>.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@return ApiServersServerIdPrivateNetworksPostRequest
	*/
	ServersServerIdPrivateNetworksPost(ctx context.Context, serverId string) ApiServersServerIdPrivateNetworksPostRequest

	// ServersServerIdPrivateNetworksPostExecute executes the request
	//  @return ServerPrivateNetwork
	ServersServerIdPrivateNetworksPostExecute(r ApiServersServerIdPrivateNetworksPostRequest) (*ServerPrivateNetwork, *http.Response, error)

	/*
		ServersServerIdPublicNetworksDelete Removes the server from the Public Network

		Removes the server from the Public Network. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. <b>This is an advanced network action that can make your server completely unavailable over any network. Make sure this server is reachable over remote console for guaranteed access in case of misconfiguration.</b>

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@param publicNetworkId The Public Network identifier.
		@return ApiServersServerIdPublicNetworksDeleteRequest
	*/
	ServersServerIdPublicNetworksDelete(ctx context.Context, serverId string, publicNetworkId string) ApiServersServerIdPublicNetworksDeleteRequest

	// ServersServerIdPublicNetworksDeleteExecute executes the request
	//  @return string
	ServersServerIdPublicNetworksDeleteExecute(r ApiServersServerIdPublicNetworksDeleteRequest) (string, *http.Response, error)

	/*
		ServersServerIdPublicNetworksPatch Updates the server's public network's IP addresses.

		IP address changes intended to keep the BMC data up to date with server's operating system. We do not have access to the server's operating system and therefore manual configuration is required to apply the changes on the host. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-6' target='_blank'>here</a>

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@param publicNetworkId The Public Network identifier.
		@return ApiServersServerIdPublicNetworksPatchRequest
	*/
	ServersServerIdPublicNetworksPatch(ctx context.Context, serverId string, publicNetworkId string) ApiServersServerIdPublicNetworksPatchRequest

	// ServersServerIdPublicNetworksPatchExecute executes the request
	//  @return ServerPublicNetwork
	ServersServerIdPublicNetworksPatchExecute(r ApiServersServerIdPublicNetworksPatchRequest) (*ServerPublicNetwork, *http.Response, error)

	/*
		ServersServerIdPublicNetworksPost Adds the server to a Public Network.

		Adds the server to a Public Network. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-bmc-server-after-adding-to-network#ftoc-heading-3' target='_blank'>here</a>.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@return ApiServersServerIdPublicNetworksPostRequest
	*/
	ServersServerIdPublicNetworksPost(ctx context.Context, serverId string) ApiServersServerIdPublicNetworksPostRequest

	// ServersServerIdPublicNetworksPostExecute executes the request
	//  @return ServerPublicNetwork
	ServersServerIdPublicNetworksPostExecute(r ApiServersServerIdPublicNetworksPostRequest) (*ServerPublicNetwork, *http.Response, error)

	/*
		ServersServerIdTagsPut Overwrite tags assigned for Server.

		Overwrites tags assigned for Server and unassigns any tags not part of the request.

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param serverId The server's ID.
		@return ApiServersServerIdTagsPutRequest
	*/
	ServersServerIdTagsPut(ctx context.Context, serverId string) ApiServersServerIdTagsPutRequest

	// ServersServerIdTagsPutExecute executes the request
	//  @return Server
	ServersServerIdTagsPutExecute(r ApiServersServerIdTagsPutRequest) (*Server, *http.Response, error)
}

type ServersAPIService

type ServersAPIService service

ServersAPIService ServersAPI service

func (*ServersAPIService) DeletePrivateNetwork

func (a *ServersAPIService) DeletePrivateNetwork(ctx context.Context, serverId string, privateNetworkId string) ApiDeletePrivateNetworkRequest

DeletePrivateNetwork Removes the server from private network.

Removes the server from private network. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. <b>This is an advanced network action that can make your server completely unavailable over any network. Make sure this server is reachable over remote console for guaranteed access in case of misconfiguration.</b>

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@param privateNetworkId The private network identifier.
@return ApiDeletePrivateNetworkRequest

func (*ServersAPIService) DeletePrivateNetworkExecute

func (a *ServersAPIService) DeletePrivateNetworkExecute(r ApiDeletePrivateNetworkRequest) (string, *http.Response, error)

Execute executes the request

@return string

func (*ServersAPIService) ServersGet

ServersGet List servers.

List all servers owned by account.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiServersGetRequest

func (*ServersAPIService) ServersGetExecute

func (a *ServersAPIService) ServersGetExecute(r ApiServersGetRequest) ([]Server, *http.Response, error)

Execute executes the request

@return []Server

func (*ServersAPIService) ServersPost

ServersPost Create new server.

Create (request) a new server for the account. Server DNS will be configured to access Google's public DNS at 8.8.8.8 . Note that the product availability API can be used prior to doing the provision request. Refer to https://developers.phoenixnap.com/docs/bmc-billing/1/routes/product-availability/get.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiServersPostRequest

func (*ServersAPIService) ServersPostExecute

func (a *ServersAPIService) ServersPostExecute(r ApiServersPostRequest) (*Server, *http.Response, error)

Execute executes the request

@return Server

func (*ServersAPIService) ServersServerIdActionsDeprovisionPost

func (a *ServersAPIService) ServersServerIdActionsDeprovisionPost(ctx context.Context, serverId string) ApiServersServerIdActionsDeprovisionPostRequest

ServersServerIdActionsDeprovisionPost Deprovision a server.

Deprovision the server. Supports advanced deprovision configuration.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@return ApiServersServerIdActionsDeprovisionPostRequest

func (*ServersAPIService) ServersServerIdActionsDeprovisionPostExecute

func (a *ServersAPIService) ServersServerIdActionsDeprovisionPostExecute(r ApiServersServerIdActionsDeprovisionPostRequest) (string, *http.Response, error)

Execute executes the request

@return string

func (*ServersAPIService) ServersServerIdActionsPowerOffPost

func (a *ServersAPIService) ServersServerIdActionsPowerOffPost(ctx context.Context, serverId string) ApiServersServerIdActionsPowerOffPostRequest

ServersServerIdActionsPowerOffPost Power off server.

Power off specific server.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@return ApiServersServerIdActionsPowerOffPostRequest

func (*ServersAPIService) ServersServerIdActionsPowerOffPostExecute

func (a *ServersAPIService) ServersServerIdActionsPowerOffPostExecute(r ApiServersServerIdActionsPowerOffPostRequest) (*ActionResult, *http.Response, error)

Execute executes the request

@return ActionResult

func (*ServersAPIService) ServersServerIdActionsPowerOnPost

func (a *ServersAPIService) ServersServerIdActionsPowerOnPost(ctx context.Context, serverId string) ApiServersServerIdActionsPowerOnPostRequest

ServersServerIdActionsPowerOnPost Power on server.

Power on specific server.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@return ApiServersServerIdActionsPowerOnPostRequest

func (*ServersAPIService) ServersServerIdActionsPowerOnPostExecute

func (a *ServersAPIService) ServersServerIdActionsPowerOnPostExecute(r ApiServersServerIdActionsPowerOnPostRequest) (*ActionResult, *http.Response, error)

Execute executes the request

@return ActionResult

func (*ServersAPIService) ServersServerIdActionsProvisionPost

func (a *ServersAPIService) ServersServerIdActionsProvisionPost(ctx context.Context, serverId string) ApiServersServerIdActionsProvisionPostRequest

ServersServerIdActionsProvisionPost Provision server.

Provision reserved server. Server DNS will be configured to access Google's public DNS at 8.8.8.8.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@return ApiServersServerIdActionsProvisionPostRequest

func (*ServersAPIService) ServersServerIdActionsProvisionPostExecute

func (a *ServersAPIService) ServersServerIdActionsProvisionPostExecute(r ApiServersServerIdActionsProvisionPostRequest) (*Server, *http.Response, error)

Execute executes the request

@return Server

func (*ServersAPIService) ServersServerIdActionsRebootPost

func (a *ServersAPIService) ServersServerIdActionsRebootPost(ctx context.Context, serverId string) ApiServersServerIdActionsRebootPostRequest

ServersServerIdActionsRebootPost Reboot server.

Reboot specific server.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@return ApiServersServerIdActionsRebootPostRequest

func (*ServersAPIService) ServersServerIdActionsRebootPostExecute

func (a *ServersAPIService) ServersServerIdActionsRebootPostExecute(r ApiServersServerIdActionsRebootPostRequest) (*ActionResult, *http.Response, error)

Execute executes the request

@return ActionResult

func (*ServersAPIService) ServersServerIdActionsReservePost

func (a *ServersAPIService) ServersServerIdActionsReservePost(ctx context.Context, serverId string) ApiServersServerIdActionsReservePostRequest

ServersServerIdActionsReservePost Reserve server.

Reserve specific server.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@return ApiServersServerIdActionsReservePostRequest

func (*ServersAPIService) ServersServerIdActionsReservePostExecute

func (a *ServersAPIService) ServersServerIdActionsReservePostExecute(r ApiServersServerIdActionsReservePostRequest) (*Server, *http.Response, error)

Execute executes the request

@return Server

func (*ServersAPIService) ServersServerIdActionsResetPost deprecated

func (a *ServersAPIService) ServersServerIdActionsResetPost(ctx context.Context, serverId string) ApiServersServerIdActionsResetPostRequest

ServersServerIdActionsResetPost Reset server.

Deprecated: Reset specific server. Reset only supports network configurations of type 'private network' or 'IP blocks'. As an alternative, the suggested action is to deprovision the server and provision a new one with the same configuration.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@return ApiServersServerIdActionsResetPostRequest

Deprecated

func (*ServersAPIService) ServersServerIdActionsResetPostExecute

func (a *ServersAPIService) ServersServerIdActionsResetPostExecute(r ApiServersServerIdActionsResetPostRequest) (*ResetResult, *http.Response, error)

Execute executes the request

@return ResetResult

Deprecated

func (*ServersAPIService) ServersServerIdActionsShutdownPost

func (a *ServersAPIService) ServersServerIdActionsShutdownPost(ctx context.Context, serverId string) ApiServersServerIdActionsShutdownPostRequest

ServersServerIdActionsShutdownPost Shutdown server.

Shut down specific server.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@return ApiServersServerIdActionsShutdownPostRequest

func (*ServersAPIService) ServersServerIdActionsShutdownPostExecute

func (a *ServersAPIService) ServersServerIdActionsShutdownPostExecute(r ApiServersServerIdActionsShutdownPostRequest) (*ActionResult, *http.Response, error)

Execute executes the request

@return ActionResult

func (*ServersAPIService) ServersServerIdDelete

func (a *ServersAPIService) ServersServerIdDelete(ctx context.Context, serverId string) ApiServersServerIdDeleteRequest

ServersServerIdDelete Delete server.

Deprovision specific server. Any IP blocks assigned to this server will also be relinquished and deleted. Deprecated: see /servers/{serverId}/actions/deprovision

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@return ApiServersServerIdDeleteRequest

Deprecated

func (*ServersAPIService) ServersServerIdDeleteExecute

func (a *ServersAPIService) ServersServerIdDeleteExecute(r ApiServersServerIdDeleteRequest) (*DeleteResult, *http.Response, error)

Execute executes the request

@return DeleteResult

Deprecated

func (*ServersAPIService) ServersServerIdGet

func (a *ServersAPIService) ServersServerIdGet(ctx context.Context, serverId string) ApiServersServerIdGetRequest

ServersServerIdGet Get server.

Get server properties.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@return ApiServersServerIdGetRequest

func (*ServersAPIService) ServersServerIdGetExecute

func (a *ServersAPIService) ServersServerIdGetExecute(r ApiServersServerIdGetRequest) (*Server, *http.Response, error)

Execute executes the request

@return Server

func (*ServersAPIService) ServersServerIdIpBlocksIpBlockIdDelete

func (a *ServersAPIService) ServersServerIdIpBlocksIpBlockIdDelete(ctx context.Context, serverId string, ipBlockId string) ApiServersServerIdIpBlocksIpBlockIdDeleteRequest

ServersServerIdIpBlocksIpBlockIdDelete Unassign IP Block from Server.

Removes the IP block from the server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. <b>This is an advanced network action that can make your server completely unavailable over any network. Make sure this server is reachable over remote console for guaranteed access in case of misconfiguration.</b>

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@param ipBlockId The IP Block identifier.
@return ApiServersServerIdIpBlocksIpBlockIdDeleteRequest

func (*ServersAPIService) ServersServerIdIpBlocksIpBlockIdDeleteExecute

func (a *ServersAPIService) ServersServerIdIpBlocksIpBlockIdDeleteExecute(r ApiServersServerIdIpBlocksIpBlockIdDeleteRequest) (string, *http.Response, error)

Execute executes the request

@return string

func (*ServersAPIService) ServersServerIdIpBlocksPost

func (a *ServersAPIService) ServersServerIdIpBlocksPost(ctx context.Context, serverId string) ApiServersServerIdIpBlocksPostRequest

ServersServerIdIpBlocksPost Assign IP Block to Server.

Adds an IP block to this server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-server-with-public-ip-block#ftoc-heading-2' target='_blank'>here</a>.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@return ApiServersServerIdIpBlocksPostRequest

func (*ServersAPIService) ServersServerIdIpBlocksPostExecute

func (a *ServersAPIService) ServersServerIdIpBlocksPostExecute(r ApiServersServerIdIpBlocksPostRequest) (*ServerIpBlock, *http.Response, error)

Execute executes the request

@return ServerIpBlock

func (*ServersAPIService) ServersServerIdPatch

func (a *ServersAPIService) ServersServerIdPatch(ctx context.Context, serverId string) ApiServersServerIdPatchRequest

ServersServerIdPatch Patch a Server.

Any changes to the hostname or description using the BMC API will reflect solely in the BMC API and portal. The changes are intended to keep the BMC data up to date with your server. We do not have access to your server's settings. Local changes to the server's hostname will not be reflected in the API or portal.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@return ApiServersServerIdPatchRequest

func (*ServersAPIService) ServersServerIdPatchExecute

func (a *ServersAPIService) ServersServerIdPatchExecute(r ApiServersServerIdPatchRequest) (*Server, *http.Response, error)

Execute executes the request

@return Server

func (*ServersAPIService) ServersServerIdPrivateNetworksPatch

func (a *ServersAPIService) ServersServerIdPrivateNetworksPatch(ctx context.Context, serverId string, privateNetworkId string) ApiServersServerIdPrivateNetworksPatchRequest

ServersServerIdPrivateNetworksPatch Updates the server's private network's IP addresses

IP address changes intended to keep the BMC data up to date with server's operating system. We do not have access to the server's operating system and therefore manual configuration is required to apply the changes on the host. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-6' target='_blank'>here</a>

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@param privateNetworkId The private network identifier.
@return ApiServersServerIdPrivateNetworksPatchRequest

func (*ServersAPIService) ServersServerIdPrivateNetworksPatchExecute

func (a *ServersAPIService) ServersServerIdPrivateNetworksPatchExecute(r ApiServersServerIdPrivateNetworksPatchRequest) (*ServerPrivateNetwork, *http.Response, error)

Execute executes the request

@return ServerPrivateNetwork

func (*ServersAPIService) ServersServerIdPrivateNetworksPost

func (a *ServersAPIService) ServersServerIdPrivateNetworksPost(ctx context.Context, serverId string) ApiServersServerIdPrivateNetworksPostRequest

ServersServerIdPrivateNetworksPost Adds the server to a private network.

Adds the server to a private network. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-bmc-server-after-adding-to-network#ftoc-heading-3' target='_blank'>here</a>.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@return ApiServersServerIdPrivateNetworksPostRequest

func (*ServersAPIService) ServersServerIdPrivateNetworksPostExecute

func (a *ServersAPIService) ServersServerIdPrivateNetworksPostExecute(r ApiServersServerIdPrivateNetworksPostRequest) (*ServerPrivateNetwork, *http.Response, error)

Execute executes the request

@return ServerPrivateNetwork

func (*ServersAPIService) ServersServerIdPublicNetworksDelete

func (a *ServersAPIService) ServersServerIdPublicNetworksDelete(ctx context.Context, serverId string, publicNetworkId string) ApiServersServerIdPublicNetworksDeleteRequest

ServersServerIdPublicNetworksDelete Removes the server from the Public Network

Removes the server from the Public Network. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. <b>This is an advanced network action that can make your server completely unavailable over any network. Make sure this server is reachable over remote console for guaranteed access in case of misconfiguration.</b>

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@param publicNetworkId The Public Network identifier.
@return ApiServersServerIdPublicNetworksDeleteRequest

func (*ServersAPIService) ServersServerIdPublicNetworksDeleteExecute

func (a *ServersAPIService) ServersServerIdPublicNetworksDeleteExecute(r ApiServersServerIdPublicNetworksDeleteRequest) (string, *http.Response, error)

Execute executes the request

@return string

func (*ServersAPIService) ServersServerIdPublicNetworksPatch

func (a *ServersAPIService) ServersServerIdPublicNetworksPatch(ctx context.Context, serverId string, publicNetworkId string) ApiServersServerIdPublicNetworksPatchRequest

ServersServerIdPublicNetworksPatch Updates the server's public network's IP addresses.

IP address changes intended to keep the BMC data up to date with server's operating system. We do not have access to the server's operating system and therefore manual configuration is required to apply the changes on the host. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-6' target='_blank'>here</a>

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@param publicNetworkId The Public Network identifier.
@return ApiServersServerIdPublicNetworksPatchRequest

func (*ServersAPIService) ServersServerIdPublicNetworksPatchExecute

func (a *ServersAPIService) ServersServerIdPublicNetworksPatchExecute(r ApiServersServerIdPublicNetworksPatchRequest) (*ServerPublicNetwork, *http.Response, error)

Execute executes the request

@return ServerPublicNetwork

func (*ServersAPIService) ServersServerIdPublicNetworksPost

func (a *ServersAPIService) ServersServerIdPublicNetworksPost(ctx context.Context, serverId string) ApiServersServerIdPublicNetworksPostRequest

ServersServerIdPublicNetworksPost Adds the server to a Public Network.

Adds the server to a Public Network. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-bmc-server-after-adding-to-network#ftoc-heading-3' target='_blank'>here</a>.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@return ApiServersServerIdPublicNetworksPostRequest

func (*ServersAPIService) ServersServerIdPublicNetworksPostExecute

func (a *ServersAPIService) ServersServerIdPublicNetworksPostExecute(r ApiServersServerIdPublicNetworksPostRequest) (*ServerPublicNetwork, *http.Response, error)

Execute executes the request

@return ServerPublicNetwork

func (*ServersAPIService) ServersServerIdTagsPut

func (a *ServersAPIService) ServersServerIdTagsPut(ctx context.Context, serverId string) ApiServersServerIdTagsPutRequest

ServersServerIdTagsPut Overwrite tags assigned for Server.

Overwrites tags assigned for Server and unassigns any tags not part of the request.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The server's ID.
@return ApiServersServerIdTagsPutRequest

func (*ServersAPIService) ServersServerIdTagsPutExecute

func (a *ServersAPIService) ServersServerIdTagsPutExecute(r ApiServersServerIdTagsPutRequest) (*Server, *http.Response, error)

Execute executes the request

@return Server

type SshKey

type SshKey struct {
	// The unique identifier of the SSH Key.
	Id string `json:"id"`
	// Keys marked as default are always included on server creation and reset unless toggled off in creation/reset request.
	Default bool `json:"default"`
	// Friendly SSH key name to represent an SSH key.
	Name string `json:"name"`
	// SSH Key value.
	Key string `json:"key"`
	// SSH key auto-generated SHA-256 fingerprint.
	Fingerprint string `json:"fingerprint"`
	// Date and time of creation.
	CreatedOn time.Time `json:"createdOn"`
	// Date and time of last update.
	LastUpdatedOn        time.Time `json:"lastUpdatedOn"`
	AdditionalProperties map[string]interface{}
}

SshKey SSH Key.

func NewSshKey

func NewSshKey(id string, default_ bool, name string, key string, fingerprint string, createdOn time.Time, lastUpdatedOn time.Time) *SshKey

NewSshKey instantiates a new SshKey object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSshKeyWithDefaults

func NewSshKeyWithDefaults() *SshKey

NewSshKeyWithDefaults instantiates a new SshKey object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SshKey) GetCreatedOn

func (o *SshKey) GetCreatedOn() time.Time

GetCreatedOn returns the CreatedOn field value

func (*SshKey) GetCreatedOnOk

func (o *SshKey) GetCreatedOnOk() (*time.Time, bool)

GetCreatedOnOk returns a tuple with the CreatedOn field value and a boolean to check if the value has been set.

func (*SshKey) GetDefault

func (o *SshKey) GetDefault() bool

GetDefault returns the Default field value

func (*SshKey) GetDefaultOk

func (o *SshKey) GetDefaultOk() (*bool, bool)

GetDefaultOk returns a tuple with the Default field value and a boolean to check if the value has been set.

func (*SshKey) GetFingerprint

func (o *SshKey) GetFingerprint() string

GetFingerprint returns the Fingerprint field value

func (*SshKey) GetFingerprintOk

func (o *SshKey) GetFingerprintOk() (*string, bool)

GetFingerprintOk returns a tuple with the Fingerprint field value and a boolean to check if the value has been set.

func (*SshKey) GetId

func (o *SshKey) GetId() string

GetId returns the Id field value

func (*SshKey) GetIdOk

func (o *SshKey) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*SshKey) GetKey

func (o *SshKey) GetKey() string

GetKey returns the Key field value

func (*SshKey) GetKeyOk

func (o *SshKey) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.

func (*SshKey) GetLastUpdatedOn

func (o *SshKey) GetLastUpdatedOn() time.Time

GetLastUpdatedOn returns the LastUpdatedOn field value

func (*SshKey) GetLastUpdatedOnOk

func (o *SshKey) GetLastUpdatedOnOk() (*time.Time, bool)

GetLastUpdatedOnOk returns a tuple with the LastUpdatedOn field value and a boolean to check if the value has been set.

func (*SshKey) GetName

func (o *SshKey) GetName() string

GetName returns the Name field value

func (*SshKey) GetNameOk

func (o *SshKey) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (SshKey) MarshalJSON

func (o SshKey) MarshalJSON() ([]byte, error)

func (*SshKey) SetCreatedOn

func (o *SshKey) SetCreatedOn(v time.Time)

SetCreatedOn sets field value

func (*SshKey) SetDefault

func (o *SshKey) SetDefault(v bool)

SetDefault sets field value

func (*SshKey) SetFingerprint

func (o *SshKey) SetFingerprint(v string)

SetFingerprint sets field value

func (*SshKey) SetId

func (o *SshKey) SetId(v string)

SetId sets field value

func (*SshKey) SetKey

func (o *SshKey) SetKey(v string)

SetKey sets field value

func (*SshKey) SetLastUpdatedOn

func (o *SshKey) SetLastUpdatedOn(v time.Time)

SetLastUpdatedOn sets field value

func (*SshKey) SetName

func (o *SshKey) SetName(v string)

SetName sets field value

func (SshKey) ToMap

func (o SshKey) ToMap() (map[string]interface{}, error)

func (*SshKey) UnmarshalJSON

func (o *SshKey) UnmarshalJSON(data []byte) (err error)

type SshKeyCreate

type SshKeyCreate struct {
	// Keys marked as default are always included on server creation and reset unless toggled off in creation/reset request.
	Default bool `json:"default"`
	// Friendly SSH key name to represent an SSH key.
	Name string `json:"name"`
	// SSH key actual key value.
	Key                  string `json:"key"`
	AdditionalProperties map[string]interface{}
}

SshKeyCreate SSH key creation model.

func NewSshKeyCreate

func NewSshKeyCreate(default_ bool, name string, key string) *SshKeyCreate

NewSshKeyCreate instantiates a new SshKeyCreate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSshKeyCreateWithDefaults

func NewSshKeyCreateWithDefaults() *SshKeyCreate

NewSshKeyCreateWithDefaults instantiates a new SshKeyCreate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SshKeyCreate) GetDefault

func (o *SshKeyCreate) GetDefault() bool

GetDefault returns the Default field value

func (*SshKeyCreate) GetDefaultOk

func (o *SshKeyCreate) GetDefaultOk() (*bool, bool)

GetDefaultOk returns a tuple with the Default field value and a boolean to check if the value has been set.

func (*SshKeyCreate) GetKey

func (o *SshKeyCreate) GetKey() string

GetKey returns the Key field value

func (*SshKeyCreate) GetKeyOk

func (o *SshKeyCreate) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.

func (*SshKeyCreate) GetName

func (o *SshKeyCreate) GetName() string

GetName returns the Name field value

func (*SshKeyCreate) GetNameOk

func (o *SshKeyCreate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (SshKeyCreate) MarshalJSON

func (o SshKeyCreate) MarshalJSON() ([]byte, error)

func (*SshKeyCreate) SetDefault

func (o *SshKeyCreate) SetDefault(v bool)

SetDefault sets field value

func (*SshKeyCreate) SetKey

func (o *SshKeyCreate) SetKey(v string)

SetKey sets field value

func (*SshKeyCreate) SetName

func (o *SshKeyCreate) SetName(v string)

SetName sets field value

func (SshKeyCreate) ToMap

func (o SshKeyCreate) ToMap() (map[string]interface{}, error)

func (*SshKeyCreate) UnmarshalJSON

func (o *SshKeyCreate) UnmarshalJSON(data []byte) (err error)

type SshKeyUpdate

type SshKeyUpdate struct {
	// Keys marked as default are always included on server creation and reset unless toggled off in creation/reset request.
	Default bool `json:"default"`
	// SSH key name that can represent the key as an alternative to its ID.
	Name                 string `json:"name"`
	AdditionalProperties map[string]interface{}
}

SshKeyUpdate SSH key modification model.

func NewSshKeyUpdate

func NewSshKeyUpdate(default_ bool, name string) *SshKeyUpdate

NewSshKeyUpdate instantiates a new SshKeyUpdate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSshKeyUpdateWithDefaults

func NewSshKeyUpdateWithDefaults() *SshKeyUpdate

NewSshKeyUpdateWithDefaults instantiates a new SshKeyUpdate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SshKeyUpdate) GetDefault

func (o *SshKeyUpdate) GetDefault() bool

GetDefault returns the Default field value

func (*SshKeyUpdate) GetDefaultOk

func (o *SshKeyUpdate) GetDefaultOk() (*bool, bool)

GetDefaultOk returns a tuple with the Default field value and a boolean to check if the value has been set.

func (*SshKeyUpdate) GetName

func (o *SshKeyUpdate) GetName() string

GetName returns the Name field value

func (*SshKeyUpdate) GetNameOk

func (o *SshKeyUpdate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (SshKeyUpdate) MarshalJSON

func (o SshKeyUpdate) MarshalJSON() ([]byte, error)

func (*SshKeyUpdate) SetDefault

func (o *SshKeyUpdate) SetDefault(v bool)

SetDefault sets field value

func (*SshKeyUpdate) SetName

func (o *SshKeyUpdate) SetName(v string)

SetName sets field value

func (SshKeyUpdate) ToMap

func (o SshKeyUpdate) ToMap() (map[string]interface{}, error)

func (*SshKeyUpdate) UnmarshalJSON

func (o *SshKeyUpdate) UnmarshalJSON(data []byte) (err error)

type StorageConfiguration

type StorageConfiguration struct {
	RootPartition        *StorageConfigurationRootPartition `json:"rootPartition,omitempty"`
	AdditionalProperties map[string]interface{}
}

StorageConfiguration Storage configuration.

func NewStorageConfiguration

func NewStorageConfiguration() *StorageConfiguration

NewStorageConfiguration instantiates a new StorageConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStorageConfigurationWithDefaults

func NewStorageConfigurationWithDefaults() *StorageConfiguration

NewStorageConfigurationWithDefaults instantiates a new StorageConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*StorageConfiguration) GetRootPartition

GetRootPartition returns the RootPartition field value if set, zero value otherwise.

func (*StorageConfiguration) GetRootPartitionOk

func (o *StorageConfiguration) GetRootPartitionOk() (*StorageConfigurationRootPartition, bool)

GetRootPartitionOk returns a tuple with the RootPartition field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageConfiguration) HasRootPartition

func (o *StorageConfiguration) HasRootPartition() bool

HasRootPartition returns a boolean if a field has been set.

func (StorageConfiguration) MarshalJSON

func (o StorageConfiguration) MarshalJSON() ([]byte, error)

func (*StorageConfiguration) SetRootPartition

SetRootPartition gets a reference to the given StorageConfigurationRootPartition and assigns it to the RootPartition field.

func (StorageConfiguration) ToMap

func (o StorageConfiguration) ToMap() (map[string]interface{}, error)

func (*StorageConfiguration) UnmarshalJSON added in v3.0.1

func (o *StorageConfiguration) UnmarshalJSON(data []byte) (err error)

type StorageConfigurationRootPartition

type StorageConfigurationRootPartition struct {
	// Software RAID configuration. The following RAID options are available: NO_RAID, RAID_0, RAID_1.
	Raid *string `json:"raid,omitempty"`
	// The size of the root partition in GB. -1 to use all available space.
	Size                 *int32 `json:"size,omitempty"`
	AdditionalProperties map[string]interface{}
}

StorageConfigurationRootPartition Root partition configuration.

func NewStorageConfigurationRootPartition

func NewStorageConfigurationRootPartition() *StorageConfigurationRootPartition

NewStorageConfigurationRootPartition instantiates a new StorageConfigurationRootPartition object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStorageConfigurationRootPartitionWithDefaults

func NewStorageConfigurationRootPartitionWithDefaults() *StorageConfigurationRootPartition

NewStorageConfigurationRootPartitionWithDefaults instantiates a new StorageConfigurationRootPartition object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*StorageConfigurationRootPartition) GetRaid

GetRaid returns the Raid field value if set, zero value otherwise.

func (*StorageConfigurationRootPartition) GetRaidOk

func (o *StorageConfigurationRootPartition) GetRaidOk() (*string, bool)

GetRaidOk returns a tuple with the Raid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageConfigurationRootPartition) GetSize

GetSize returns the Size field value if set, zero value otherwise.

func (*StorageConfigurationRootPartition) GetSizeOk

func (o *StorageConfigurationRootPartition) GetSizeOk() (*int32, bool)

GetSizeOk returns a tuple with the Size field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageConfigurationRootPartition) HasRaid

HasRaid returns a boolean if a field has been set.

func (*StorageConfigurationRootPartition) HasSize

HasSize returns a boolean if a field has been set.

func (StorageConfigurationRootPartition) MarshalJSON

func (o StorageConfigurationRootPartition) MarshalJSON() ([]byte, error)

func (*StorageConfigurationRootPartition) SetRaid

SetRaid gets a reference to the given string and assigns it to the Raid field.

func (*StorageConfigurationRootPartition) SetSize

SetSize gets a reference to the given int32 and assigns it to the Size field.

func (StorageConfigurationRootPartition) ToMap

func (o StorageConfigurationRootPartition) ToMap() (map[string]interface{}, error)

func (*StorageConfigurationRootPartition) UnmarshalJSON added in v3.0.1

func (o *StorageConfigurationRootPartition) UnmarshalJSON(data []byte) (err error)

type TagAssignment

type TagAssignment struct {
	// The unique id of the tag.
	Id string `json:"id"`
	// The name of the tag.
	Name string `json:"name"`
	// The value of the tag assigned to the resource.
	Value *string `json:"value,omitempty"`
	// Whether or not to show the tag as part of billing and invoices
	IsBillingTag bool `json:"isBillingTag"`
	// Who the tag was created by.
	CreatedBy            *string `json:"createdBy,omitempty"`
	AdditionalProperties map[string]interface{}
}

TagAssignment Tag assigned to resource.

func NewTagAssignment

func NewTagAssignment(id string, name string, isBillingTag bool) *TagAssignment

NewTagAssignment instantiates a new TagAssignment object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTagAssignmentWithDefaults

func NewTagAssignmentWithDefaults() *TagAssignment

NewTagAssignmentWithDefaults instantiates a new TagAssignment object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TagAssignment) GetCreatedBy

func (o *TagAssignment) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.

func (*TagAssignment) GetCreatedByOk

func (o *TagAssignment) GetCreatedByOk() (*string, bool)

GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TagAssignment) GetId

func (o *TagAssignment) GetId() string

GetId returns the Id field value

func (*TagAssignment) GetIdOk

func (o *TagAssignment) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*TagAssignment) GetIsBillingTag

func (o *TagAssignment) GetIsBillingTag() bool

GetIsBillingTag returns the IsBillingTag field value

func (*TagAssignment) GetIsBillingTagOk

func (o *TagAssignment) GetIsBillingTagOk() (*bool, bool)

GetIsBillingTagOk returns a tuple with the IsBillingTag field value and a boolean to check if the value has been set.

func (*TagAssignment) GetName

func (o *TagAssignment) GetName() string

GetName returns the Name field value

func (*TagAssignment) GetNameOk

func (o *TagAssignment) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*TagAssignment) GetValue

func (o *TagAssignment) GetValue() string

GetValue returns the Value field value if set, zero value otherwise.

func (*TagAssignment) GetValueOk

func (o *TagAssignment) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TagAssignment) HasCreatedBy

func (o *TagAssignment) HasCreatedBy() bool

HasCreatedBy returns a boolean if a field has been set.

func (*TagAssignment) HasValue

func (o *TagAssignment) HasValue() bool

HasValue returns a boolean if a field has been set.

func (TagAssignment) MarshalJSON

func (o TagAssignment) MarshalJSON() ([]byte, error)

func (*TagAssignment) SetCreatedBy

func (o *TagAssignment) SetCreatedBy(v string)

SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field.

func (*TagAssignment) SetId

func (o *TagAssignment) SetId(v string)

SetId sets field value

func (*TagAssignment) SetIsBillingTag

func (o *TagAssignment) SetIsBillingTag(v bool)

SetIsBillingTag sets field value

func (*TagAssignment) SetName

func (o *TagAssignment) SetName(v string)

SetName sets field value

func (*TagAssignment) SetValue

func (o *TagAssignment) SetValue(v string)

SetValue gets a reference to the given string and assigns it to the Value field.

func (TagAssignment) ToMap

func (o TagAssignment) ToMap() (map[string]interface{}, error)

func (*TagAssignment) UnmarshalJSON

func (o *TagAssignment) UnmarshalJSON(data []byte) (err error)

type TagAssignmentRequest

type TagAssignmentRequest struct {
	// The name of the tag. Tag names are case-sensitive, and should be composed of a maximum of 100 characters including UTF-8 Unicode letters, numbers, and the following symbols: '-', '_'. Regex: [A-zÀ-ú0-9_-]{1,100}.
	Name string `json:"name"`
	// The value of the tag assigned to the resource. Tag values are case-sensitive, and should be composed of a maximum of 100 characters including UTF-8 Unicode letters, numbers, and the following symbols: '-', '_'. Regex: [A-zÀ-ú0-9_-]{1,100}.
	Value                *string `json:"value,omitempty"`
	AdditionalProperties map[string]interface{}
}

TagAssignmentRequest Tag request to assign to resource.

func NewTagAssignmentRequest

func NewTagAssignmentRequest(name string) *TagAssignmentRequest

NewTagAssignmentRequest instantiates a new TagAssignmentRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTagAssignmentRequestWithDefaults

func NewTagAssignmentRequestWithDefaults() *TagAssignmentRequest

NewTagAssignmentRequestWithDefaults instantiates a new TagAssignmentRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TagAssignmentRequest) GetName

func (o *TagAssignmentRequest) GetName() string

GetName returns the Name field value

func (*TagAssignmentRequest) GetNameOk

func (o *TagAssignmentRequest) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*TagAssignmentRequest) GetValue

func (o *TagAssignmentRequest) GetValue() string

GetValue returns the Value field value if set, zero value otherwise.

func (*TagAssignmentRequest) GetValueOk

func (o *TagAssignmentRequest) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TagAssignmentRequest) HasValue

func (o *TagAssignmentRequest) HasValue() bool

HasValue returns a boolean if a field has been set.

func (TagAssignmentRequest) MarshalJSON

func (o TagAssignmentRequest) MarshalJSON() ([]byte, error)

func (*TagAssignmentRequest) SetName

func (o *TagAssignmentRequest) SetName(v string)

SetName sets field value

func (*TagAssignmentRequest) SetValue

func (o *TagAssignmentRequest) SetValue(v string)

SetValue gets a reference to the given string and assigns it to the Value field.

func (TagAssignmentRequest) ToMap

func (o TagAssignmentRequest) ToMap() (map[string]interface{}, error)

func (*TagAssignmentRequest) UnmarshalJSON

func (o *TagAssignmentRequest) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

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