operations

package
v0.0.0-...-74bda79 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddSSHKeysRequestBody

type AddSSHKeysRequestBody struct {
	// the actual public ssh key value
	Key string `json:"key"`
	// ssh key name
	Name string `json:"name"`
}

AddSSHKeysRequestBody - ssh key details

func (*AddSSHKeysRequestBody) GetKey

func (o *AddSSHKeysRequestBody) GetKey() string

func (*AddSSHKeysRequestBody) GetName

func (o *AddSSHKeysRequestBody) GetName() string

type AddSSHKeysResponse

type AddSSHKeysResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// Key added, returns the internal ssh key id
	SSHKeyID *string
}

func (*AddSSHKeysResponse) GetContentType

func (o *AddSSHKeysResponse) GetContentType() string

func (*AddSSHKeysResponse) GetRawResponse

func (o *AddSSHKeysResponse) GetRawResponse() *http.Response

func (*AddSSHKeysResponse) GetSSHKeyID

func (o *AddSSHKeysResponse) GetSSHKeyID() *string

func (*AddSSHKeysResponse) GetStatusCode

func (o *AddSSHKeysResponse) GetStatusCode() int

type AddScriptsRequestBody

type AddScriptsRequestBody struct {
	// script name
	Name string `json:"name"`
	// bash script content
	Script string `json:"script"`
}

AddScriptsRequestBody - a startup script object

func (*AddScriptsRequestBody) GetName

func (o *AddScriptsRequestBody) GetName() string

func (*AddScriptsRequestBody) GetScript

func (o *AddScriptsRequestBody) GetScript() string

type AddScriptsResponse

type AddScriptsResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// startup script added successfully, return id of the new script
	StartupScriptID *string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*AddScriptsResponse) GetContentType

func (o *AddScriptsResponse) GetContentType() string

func (*AddScriptsResponse) GetRawResponse

func (o *AddScriptsResponse) GetRawResponse() *http.Response

func (*AddScriptsResponse) GetStartupScriptID

func (o *AddScriptsResponse) GetStartupScriptID() *string

func (*AddScriptsResponse) GetStatusCode

func (o *AddScriptsResponse) GetStatusCode() int

type Code

type Code string
const (
	CodeInvalidRequest       Code = "invalid_request"
	CodeInvalidScope         Code = "invalid_scope"
	CodeUnsupportedGrantType Code = "unsupported_grant_type"
	CodeInvalidGrant         Code = "invalid_grant"
)

func (Code) ToPointer

func (e Code) ToPointer() *Code

func (*Code) UnmarshalJSON

func (e *Code) UnmarshalJSON(data []byte) error

type CreateVolumeResponse

type CreateVolumeResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*CreateVolumeResponse) GetContentType

func (o *CreateVolumeResponse) GetContentType() string

func (*CreateVolumeResponse) GetRawResponse

func (o *CreateVolumeResponse) GetRawResponse() *http.Response

func (*CreateVolumeResponse) GetStatusCode

func (o *CreateVolumeResponse) GetStatusCode() int

type DeleteSSHKeyByIDRequest

type DeleteSSHKeyByIDRequest struct {
	SSHKeyID string `pathParam:"style=simple,explode=false,name=sshKeyId"`
}

func (*DeleteSSHKeyByIDRequest) GetSSHKeyID

func (o *DeleteSSHKeyByIDRequest) GetSSHKeyID() string

type DeleteSSHKeyByIDResponse

type DeleteSSHKeyByIDResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*DeleteSSHKeyByIDResponse) GetContentType

func (o *DeleteSSHKeyByIDResponse) GetContentType() string

func (*DeleteSSHKeyByIDResponse) GetRawResponse

func (o *DeleteSSHKeyByIDResponse) GetRawResponse() *http.Response

func (*DeleteSSHKeyByIDResponse) GetStatusCode

func (o *DeleteSSHKeyByIDResponse) GetStatusCode() int

type DeleteSSHKeysRequestBody

type DeleteSSHKeysRequestBody struct {
	// array of ssh key ids
	Keys []string `json:"keys"`
}

func (*DeleteSSHKeysRequestBody) GetKeys

func (o *DeleteSSHKeysRequestBody) GetKeys() []string

type DeleteSSHKeysResponse

type DeleteSSHKeysResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*DeleteSSHKeysResponse) GetContentType

func (o *DeleteSSHKeysResponse) GetContentType() string

func (*DeleteSSHKeysResponse) GetRawResponse

func (o *DeleteSSHKeysResponse) GetRawResponse() *http.Response

func (*DeleteSSHKeysResponse) GetStatusCode

func (o *DeleteSSHKeysResponse) GetStatusCode() int

type DeleteScriptByIDRequest

type DeleteScriptByIDRequest struct {
	ScriptID string `pathParam:"style=simple,explode=false,name=scriptId"`
}

func (*DeleteScriptByIDRequest) GetScriptID

func (o *DeleteScriptByIDRequest) GetScriptID() string

type DeleteScriptByIDResponse

type DeleteScriptByIDResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*DeleteScriptByIDResponse) GetContentType

func (o *DeleteScriptByIDResponse) GetContentType() string

func (*DeleteScriptByIDResponse) GetRawResponse

func (o *DeleteScriptByIDResponse) GetRawResponse() *http.Response

func (*DeleteScriptByIDResponse) GetStatusCode

func (o *DeleteScriptByIDResponse) GetStatusCode() int

type DeleteScriptsRequestBody

type DeleteScriptsRequestBody struct {
	// array of startup script ids
	Scripts []string `json:"scripts"`
}

func (*DeleteScriptsRequestBody) GetScripts

func (o *DeleteScriptsRequestBody) GetScripts() []string

type DeleteScriptsResponse

type DeleteScriptsResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*DeleteScriptsResponse) GetContentType

func (o *DeleteScriptsResponse) GetContentType() string

func (*DeleteScriptsResponse) GetRawResponse

func (o *DeleteScriptsResponse) GetRawResponse() *http.Response

func (*DeleteScriptsResponse) GetStatusCode

func (o *DeleteScriptsResponse) GetStatusCode() int

type DeleteVolumeByIDRequest

type DeleteVolumeByIDRequest struct {
	RequestBody *DeleteVolumeByIDRequestBody `request:"mediaType=application/json"`
	// volume id
	VolumeID interface{} `pathParam:"style=simple,explode=false,name=volumeId"`
}

func (*DeleteVolumeByIDRequest) GetRequestBody

func (*DeleteVolumeByIDRequest) GetVolumeID

func (o *DeleteVolumeByIDRequest) GetVolumeID() interface{}

type DeleteVolumeByIDRequestBody

type DeleteVolumeByIDRequestBody struct {
	// delete volume permanently or not
	IsPermanent *bool `json:"is_permanent,omitempty"`
}

func (*DeleteVolumeByIDRequestBody) GetIsPermanent

func (o *DeleteVolumeByIDRequestBody) GetIsPermanent() *bool

type DeleteVolumeByIDResponse

type DeleteVolumeByIDResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*DeleteVolumeByIDResponse) GetContentType

func (o *DeleteVolumeByIDResponse) GetContentType() string

func (*DeleteVolumeByIDResponse) GetRawResponse

func (o *DeleteVolumeByIDResponse) GetRawResponse() *http.Response

func (*DeleteVolumeByIDResponse) GetStatusCode

func (o *DeleteVolumeByIDResponse) GetStatusCode() int

type DeployInstanceResponse

type DeployInstanceResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// Accepted, Instance is in process for deployment. Returns the instance ID
	InstanceID *string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*DeployInstanceResponse) GetContentType

func (o *DeployInstanceResponse) GetContentType() string

func (*DeployInstanceResponse) GetInstanceID

func (o *DeployInstanceResponse) GetInstanceID() *string

func (*DeployInstanceResponse) GetRawResponse

func (o *DeployInstanceResponse) GetRawResponse() *http.Response

func (*DeployInstanceResponse) GetStatusCode

func (o *DeployInstanceResponse) GetStatusCode() int

type GetAccessTokenAuthenticationResponseBody

type GetAccessTokenAuthenticationResponseBody struct {
	Code    Code    `json:"code"`
	Message *string `json:"message,omitempty"`
}

GetAccessTokenAuthenticationResponseBody - Invalid request

func (*GetAccessTokenAuthenticationResponseBody) GetCode

func (*GetAccessTokenAuthenticationResponseBody) GetMessage

type GetAccessTokenAuthenticationResponseResponseBody

type GetAccessTokenAuthenticationResponseResponseBody struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

GetAccessTokenAuthenticationResponseResponseBody - Unauthorized

func (*GetAccessTokenAuthenticationResponseResponseBody) GetCode

func (*GetAccessTokenAuthenticationResponseResponseBody) GetMessage

type GetAccessTokenGrantType

type GetAccessTokenGrantType string

GetAccessTokenGrantType - oauth2 grant type

const (
	GetAccessTokenGrantTypeRefreshToken GetAccessTokenGrantType = "refresh_token"
)

func (GetAccessTokenGrantType) ToPointer

func (*GetAccessTokenGrantType) UnmarshalJSON

func (e *GetAccessTokenGrantType) UnmarshalJSON(data []byte) error

type GetAccessTokenRequestBody

type GetAccessTokenRequestBody struct {
	One *One
	Two *Two

	Type GetAccessTokenRequestBodyType
}

func CreateGetAccessTokenRequestBodyOne

func CreateGetAccessTokenRequestBodyOne(one One) GetAccessTokenRequestBody

func CreateGetAccessTokenRequestBodyTwo

func CreateGetAccessTokenRequestBodyTwo(two Two) GetAccessTokenRequestBody

func (GetAccessTokenRequestBody) MarshalJSON

func (u GetAccessTokenRequestBody) MarshalJSON() ([]byte, error)

func (*GetAccessTokenRequestBody) UnmarshalJSON

func (u *GetAccessTokenRequestBody) UnmarshalJSON(data []byte) error

type GetAccessTokenRequestBodyType

type GetAccessTokenRequestBodyType string
const (
	GetAccessTokenRequestBodyTypeOne GetAccessTokenRequestBodyType = "1"
	GetAccessTokenRequestBodyTypeTwo GetAccessTokenRequestBodyType = "2"
)

type GetAccessTokenResponse

type GetAccessTokenResponse struct {
	// Valid credentials
	TwoHundredApplicationJSONObject *GetAccessTokenResponseBody
	// Invalid request
	FourHundredApplicationJSONObject *GetAccessTokenAuthenticationResponseBody
	// Unauthorized
	FourHundredAndOneApplicationJSONObject *GetAccessTokenAuthenticationResponseResponseBody
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*GetAccessTokenResponse) GetContentType

func (o *GetAccessTokenResponse) GetContentType() string

func (*GetAccessTokenResponse) GetFourHundredAndOneApplicationJSONObject

func (o *GetAccessTokenResponse) GetFourHundredAndOneApplicationJSONObject() *GetAccessTokenAuthenticationResponseResponseBody

func (*GetAccessTokenResponse) GetFourHundredApplicationJSONObject

func (o *GetAccessTokenResponse) GetFourHundredApplicationJSONObject() *GetAccessTokenAuthenticationResponseBody

func (*GetAccessTokenResponse) GetRawResponse

func (o *GetAccessTokenResponse) GetRawResponse() *http.Response

func (*GetAccessTokenResponse) GetStatusCode

func (o *GetAccessTokenResponse) GetStatusCode() int

func (*GetAccessTokenResponse) GetTwoHundredApplicationJSONObject

func (o *GetAccessTokenResponse) GetTwoHundredApplicationJSONObject() *GetAccessTokenResponseBody

type GetAccessTokenResponseBody

type GetAccessTokenResponseBody struct {
	// Access token value
	AccessToken string `json:"access_token"`
	// Number of second until expires
	ExpiresIn int64 `json:"expires_in"`
	// Refresh token value
	RefreshToken string `json:"refresh_token"`
	// Access scope
	Scope string `json:"scope"`
	// Bearer token
	TokenType *TokenType `default:"Bearer" json:"token_type"`
}

GetAccessTokenResponseBody - Valid credentials

func (*GetAccessTokenResponseBody) GetAccessToken

func (o *GetAccessTokenResponseBody) GetAccessToken() string

func (*GetAccessTokenResponseBody) GetExpiresIn

func (o *GetAccessTokenResponseBody) GetExpiresIn() int64

func (*GetAccessTokenResponseBody) GetRefreshToken

func (o *GetAccessTokenResponseBody) GetRefreshToken() string

func (*GetAccessTokenResponseBody) GetScope

func (o *GetAccessTokenResponseBody) GetScope() string

func (*GetAccessTokenResponseBody) GetTokenType

func (o *GetAccessTokenResponseBody) GetTokenType() *TokenType

func (GetAccessTokenResponseBody) MarshalJSON

func (g GetAccessTokenResponseBody) MarshalJSON() ([]byte, error)

func (*GetAccessTokenResponseBody) UnmarshalJSON

func (g *GetAccessTokenResponseBody) UnmarshalJSON(data []byte) error

type GetAllAvailabilityRequest

type GetAllAvailabilityRequest struct {
	// Check if the given instance type is available for spot instance (true) or on-demand (false - default)
	IsSpot *bool `queryParam:"style=form,explode=true,name=isSpot"`
	// Check for availability in a specific location
	LocationCode *string `queryParam:"style=form,explode=true,name=locationCode"`
}

func (*GetAllAvailabilityRequest) GetIsSpot

func (o *GetAllAvailabilityRequest) GetIsSpot() *bool

func (*GetAllAvailabilityRequest) GetLocationCode

func (o *GetAllAvailabilityRequest) GetLocationCode() *string

type GetAllAvailabilityResponse

type GetAllAvailabilityResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// An array of all the available instance types for each location
	Classes []shared.LocationAvailabilities
}

func (*GetAllAvailabilityResponse) GetClasses

func (*GetAllAvailabilityResponse) GetContentType

func (o *GetAllAvailabilityResponse) GetContentType() string

func (*GetAllAvailabilityResponse) GetRawResponse

func (o *GetAllAvailabilityResponse) GetRawResponse() *http.Response

func (*GetAllAvailabilityResponse) GetStatusCode

func (o *GetAllAvailabilityResponse) GetStatusCode() int

type GetAllInstancesRequest

type GetAllInstancesRequest struct {
	// Return all user instances with specific status
	Status *shared.InstanceStatus `queryParam:"style=form,explode=true,name=status"`
}

func (*GetAllInstancesRequest) GetStatus

type GetAllInstancesResponse

type GetAllInstancesResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// Returns an array of all the user's instances
	Instances []shared.Instance
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*GetAllInstancesResponse) GetContentType

func (o *GetAllInstancesResponse) GetContentType() string

func (*GetAllInstancesResponse) GetInstances

func (o *GetAllInstancesResponse) GetInstances() []shared.Instance

func (*GetAllInstancesResponse) GetRawResponse

func (o *GetAllInstancesResponse) GetRawResponse() *http.Response

func (*GetAllInstancesResponse) GetStatusCode

func (o *GetAllInstancesResponse) GetStatusCode() int

type GetAllVolumesRequest

type GetAllVolumesRequest struct {
	// Return all user storage volumes with specific status
	Status *string `queryParam:"style=form,explode=true,name=status"`
}

func (*GetAllVolumesRequest) GetStatus

func (o *GetAllVolumesRequest) GetStatus() *string

type GetAllVolumesResponse

type GetAllVolumesResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// Returns an array of all the user's storage volumes
	Volumes []shared.Volume
}

func (*GetAllVolumesResponse) GetContentType

func (o *GetAllVolumesResponse) GetContentType() string

func (*GetAllVolumesResponse) GetRawResponse

func (o *GetAllVolumesResponse) GetRawResponse() *http.Response

func (*GetAllVolumesResponse) GetStatusCode

func (o *GetAllVolumesResponse) GetStatusCode() int

func (*GetAllVolumesResponse) GetVolumes

func (o *GetAllVolumesResponse) GetVolumes() []shared.Volume

type GetAvailabilityDeprecatedRequest

type GetAvailabilityDeprecatedRequest struct {
	// The type of the instance to check
	InstanceType shared.InstanceType `pathParam:"style=simple,explode=false,name=instanceType"`
}

func (*GetAvailabilityDeprecatedRequest) GetInstanceType

type GetAvailabilityDeprecatedResponse

type GetAvailabilityDeprecatedResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// Return instance type availability - true or false
	Boolean *bool
}

func (*GetAvailabilityDeprecatedResponse) GetBoolean

func (o *GetAvailabilityDeprecatedResponse) GetBoolean() *bool

func (*GetAvailabilityDeprecatedResponse) GetContentType

func (o *GetAvailabilityDeprecatedResponse) GetContentType() string

func (*GetAvailabilityDeprecatedResponse) GetRawResponse

func (o *GetAvailabilityDeprecatedResponse) GetRawResponse() *http.Response

func (*GetAvailabilityDeprecatedResponse) GetStatusCode

func (o *GetAvailabilityDeprecatedResponse) GetStatusCode() int

type GetAvailabilityRequest

type GetAvailabilityRequest struct {
	// The type of the instance to check
	InstanceType shared.InstanceType `pathParam:"style=simple,explode=false,name=instanceType"`
	// Check if the given instance type is available for spot instance (true) or on-demand (false - default)
	IsSpot *bool `queryParam:"style=form,explode=true,name=isSpot"`
	// Check for availability in a specific location
	LocationCode *string `queryParam:"style=form,explode=true,name=locationCode"`
}

func (*GetAvailabilityRequest) GetInstanceType

func (o *GetAvailabilityRequest) GetInstanceType() shared.InstanceType

func (*GetAvailabilityRequest) GetIsSpot

func (o *GetAvailabilityRequest) GetIsSpot() *bool

func (*GetAvailabilityRequest) GetLocationCode

func (o *GetAvailabilityRequest) GetLocationCode() *string

type GetAvailabilityResponse

type GetAvailabilityResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// Return instance type availability - true or false
	Boolean *bool
}

func (*GetAvailabilityResponse) GetBoolean

func (o *GetAvailabilityResponse) GetBoolean() *bool

func (*GetAvailabilityResponse) GetContentType

func (o *GetAvailabilityResponse) GetContentType() string

func (*GetAvailabilityResponse) GetRawResponse

func (o *GetAvailabilityResponse) GetRawResponse() *http.Response

func (*GetAvailabilityResponse) GetStatusCode

func (o *GetAvailabilityResponse) GetStatusCode() int

type GetBalanceResponse

type GetBalanceResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// Returns the account balance
	UserBalance *shared.UserBalance
}

func (*GetBalanceResponse) GetContentType

func (o *GetBalanceResponse) GetContentType() string

func (*GetBalanceResponse) GetRawResponse

func (o *GetBalanceResponse) GetRawResponse() *http.Response

func (*GetBalanceResponse) GetStatusCode

func (o *GetBalanceResponse) GetStatusCode() int

func (*GetBalanceResponse) GetUserBalance

func (o *GetBalanceResponse) GetUserBalance() *shared.UserBalance

type GetImagesResponse

type GetImagesResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*GetImagesResponse) GetContentType

func (o *GetImagesResponse) GetContentType() string

func (*GetImagesResponse) GetRawResponse

func (o *GetImagesResponse) GetRawResponse() *http.Response

func (*GetImagesResponse) GetStatusCode

func (o *GetImagesResponse) GetStatusCode() int

type GetInstanceByIDRequest

type GetInstanceByIDRequest struct {
	InstanceID string `pathParam:"style=simple,explode=false,name=instanceId"`
}

func (*GetInstanceByIDRequest) GetInstanceID

func (o *GetInstanceByIDRequest) GetInstanceID() string

type GetInstanceByIDResponse

type GetInstanceByIDResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// Instance details object
	Instance *shared.Instance
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*GetInstanceByIDResponse) GetContentType

func (o *GetInstanceByIDResponse) GetContentType() string

func (*GetInstanceByIDResponse) GetInstance

func (o *GetInstanceByIDResponse) GetInstance() *shared.Instance

func (*GetInstanceByIDResponse) GetRawResponse

func (o *GetInstanceByIDResponse) GetRawResponse() *http.Response

func (*GetInstanceByIDResponse) GetStatusCode

func (o *GetInstanceByIDResponse) GetStatusCode() int

type GetInstancesTypesResponse

type GetInstancesTypesResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*GetInstancesTypesResponse) GetContentType

func (o *GetInstancesTypesResponse) GetContentType() string

func (*GetInstancesTypesResponse) GetRawResponse

func (o *GetInstancesTypesResponse) GetRawResponse() *http.Response

func (*GetInstancesTypesResponse) GetStatusCode

func (o *GetInstancesTypesResponse) GetStatusCode() int

type GetLocationsResponse

type GetLocationsResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// An array of location objects
	Classes []shared.Location
}

func (*GetLocationsResponse) GetClasses

func (o *GetLocationsResponse) GetClasses() []shared.Location

func (*GetLocationsResponse) GetContentType

func (o *GetLocationsResponse) GetContentType() string

func (*GetLocationsResponse) GetRawResponse

func (o *GetLocationsResponse) GetRawResponse() *http.Response

func (*GetLocationsResponse) GetStatusCode

func (o *GetLocationsResponse) GetStatusCode() int

type GetSSHKeyByIDRequest

type GetSSHKeyByIDRequest struct {
	SSHKeyID string `pathParam:"style=simple,explode=false,name=sshKeyId"`
}

func (*GetSSHKeyByIDRequest) GetSSHKeyID

func (o *GetSSHKeyByIDRequest) GetSSHKeyID() string

type GetSSHKeyByIDResponse

type GetSSHKeyByIDResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// ssh key found, return key details
	SSHKey *shared.SSHKey
}

func (*GetSSHKeyByIDResponse) GetContentType

func (o *GetSSHKeyByIDResponse) GetContentType() string

func (*GetSSHKeyByIDResponse) GetRawResponse

func (o *GetSSHKeyByIDResponse) GetRawResponse() *http.Response

func (*GetSSHKeyByIDResponse) GetSSHKey

func (o *GetSSHKeyByIDResponse) GetSSHKey() *shared.SSHKey

func (*GetSSHKeyByIDResponse) GetStatusCode

func (o *GetSSHKeyByIDResponse) GetStatusCode() int

type GetSSHKeysResponse

type GetSSHKeysResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// Returns an array of ssh key objects
	SSHKeys []shared.SSHKey
}

func (*GetSSHKeysResponse) GetContentType

func (o *GetSSHKeysResponse) GetContentType() string

func (*GetSSHKeysResponse) GetRawResponse

func (o *GetSSHKeysResponse) GetRawResponse() *http.Response

func (*GetSSHKeysResponse) GetSSHKeys

func (o *GetSSHKeysResponse) GetSSHKeys() []shared.SSHKey

func (*GetSSHKeysResponse) GetStatusCode

func (o *GetSSHKeysResponse) GetStatusCode() int

type GetScriptByIDRequest

type GetScriptByIDRequest struct {
	ScriptID string `pathParam:"style=simple,explode=false,name=scriptId"`
}

func (*GetScriptByIDRequest) GetScriptID

func (o *GetScriptByIDRequest) GetScriptID() string

type GetScriptByIDResponse

type GetScriptByIDResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// startup script object
	StartupScript *shared.StartupScript
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*GetScriptByIDResponse) GetContentType

func (o *GetScriptByIDResponse) GetContentType() string

func (*GetScriptByIDResponse) GetRawResponse

func (o *GetScriptByIDResponse) GetRawResponse() *http.Response

func (*GetScriptByIDResponse) GetStartupScript

func (o *GetScriptByIDResponse) GetStartupScript() *shared.StartupScript

func (*GetScriptByIDResponse) GetStatusCode

func (o *GetScriptByIDResponse) GetStatusCode() int

type GetScriptsResponse

type GetScriptsResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// an array of startup script objects
	StartupScripts []shared.StartupScript
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*GetScriptsResponse) GetContentType

func (o *GetScriptsResponse) GetContentType() string

func (*GetScriptsResponse) GetRawResponse

func (o *GetScriptsResponse) GetRawResponse() *http.Response

func (*GetScriptsResponse) GetStartupScripts

func (o *GetScriptsResponse) GetStartupScripts() []shared.StartupScript

func (*GetScriptsResponse) GetStatusCode

func (o *GetScriptsResponse) GetStatusCode() int

type GetVolumeByIDRequest

type GetVolumeByIDRequest struct {
	// volume id
	VolumeID interface{} `pathParam:"style=simple,explode=false,name=volumeId"`
}

func (*GetVolumeByIDRequest) GetVolumeID

func (o *GetVolumeByIDRequest) GetVolumeID() interface{}

type GetVolumeByIDResponse

type GetVolumeByIDResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// Volume details
	Volume *shared.Volume
}

func (*GetVolumeByIDResponse) GetContentType

func (o *GetVolumeByIDResponse) GetContentType() string

func (*GetVolumeByIDResponse) GetRawResponse

func (o *GetVolumeByIDResponse) GetRawResponse() *http.Response

func (*GetVolumeByIDResponse) GetStatusCode

func (o *GetVolumeByIDResponse) GetStatusCode() int

func (*GetVolumeByIDResponse) GetVolume

func (o *GetVolumeByIDResponse) GetVolume() *shared.Volume

type GetVolumeTypesResponse

type GetVolumeTypesResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
	// volume types
	Classes []shared.VolumeTypeDetails
}

func (*GetVolumeTypesResponse) GetClasses

func (*GetVolumeTypesResponse) GetContentType

func (o *GetVolumeTypesResponse) GetContentType() string

func (*GetVolumeTypesResponse) GetRawResponse

func (o *GetVolumeTypesResponse) GetRawResponse() *http.Response

func (*GetVolumeTypesResponse) GetStatusCode

func (o *GetVolumeTypesResponse) GetStatusCode() int

type GrantType

type GrantType string

GrantType - oauth2 grant type

const (
	GrantTypeClientCredentials GrantType = "client_credentials"
)

func (GrantType) ToPointer

func (e GrantType) ToPointer() *GrantType

func (*GrantType) UnmarshalJSON

func (e *GrantType) UnmarshalJSON(data []byte) error

type ID

type ID struct {
	Str        *string
	ArrayOfstr []string

	Type IDType
}

func CreateIDArrayOfstr

func CreateIDArrayOfstr(arrayOfstr []string) ID

func CreateIDStr

func CreateIDStr(str string) ID

func (ID) MarshalJSON

func (u ID) MarshalJSON() ([]byte, error)

func (*ID) UnmarshalJSON

func (u *ID) UnmarshalJSON(data []byte) error

type IDType

type IDType string
const (
	IDTypeStr        IDType = "str"
	IDTypeArrayOfstr IDType = "arrayOfstr"
)

type InstanceActionDeprecatedID

type InstanceActionDeprecatedID struct {
	Str        *string
	ArrayOfstr []string

	Type InstanceActionDeprecatedIDType
}

func CreateInstanceActionDeprecatedIDArrayOfstr

func CreateInstanceActionDeprecatedIDArrayOfstr(arrayOfstr []string) InstanceActionDeprecatedID

func CreateInstanceActionDeprecatedIDStr

func CreateInstanceActionDeprecatedIDStr(str string) InstanceActionDeprecatedID

func (InstanceActionDeprecatedID) MarshalJSON

func (u InstanceActionDeprecatedID) MarshalJSON() ([]byte, error)

func (*InstanceActionDeprecatedID) UnmarshalJSON

func (u *InstanceActionDeprecatedID) UnmarshalJSON(data []byte) error

type InstanceActionDeprecatedIDType

type InstanceActionDeprecatedIDType string
const (
	InstanceActionDeprecatedIDTypeStr        InstanceActionDeprecatedIDType = "str"
	InstanceActionDeprecatedIDTypeArrayOfstr InstanceActionDeprecatedIDType = "arrayOfstr"
)

type InstanceActionDeprecatedRequestBody

type InstanceActionDeprecatedRequestBody struct {
	Action shared.ActionType          `json:"action"`
	ID     InstanceActionDeprecatedID `json:"id"`
	// array of storage volume ids
	VolumeIds []string `json:"volume_ids,omitempty"`
}

InstanceActionDeprecatedRequestBody - id of instances to perform the action on, and the action type

func (*InstanceActionDeprecatedRequestBody) GetAction

func (*InstanceActionDeprecatedRequestBody) GetID

func (*InstanceActionDeprecatedRequestBody) GetVolumeIds

func (o *InstanceActionDeprecatedRequestBody) GetVolumeIds() []string

type InstanceActionDeprecatedResponse

type InstanceActionDeprecatedResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*InstanceActionDeprecatedResponse) GetContentType

func (o *InstanceActionDeprecatedResponse) GetContentType() string

func (*InstanceActionDeprecatedResponse) GetRawResponse

func (o *InstanceActionDeprecatedResponse) GetRawResponse() *http.Response

func (*InstanceActionDeprecatedResponse) GetStatusCode

func (o *InstanceActionDeprecatedResponse) GetStatusCode() int

type InstanceActionRequestBody

type InstanceActionRequestBody struct {
	Action shared.ActionType `json:"action"`
	ID     ID                `json:"id"`
	// array of storage volume ids
	VolumeIds []string `json:"volume_ids,omitempty"`
}

InstanceActionRequestBody - id of instances to perform the action on, and the action type

func (*InstanceActionRequestBody) GetAction

func (*InstanceActionRequestBody) GetID

func (o *InstanceActionRequestBody) GetID() ID

func (*InstanceActionRequestBody) GetVolumeIds

func (o *InstanceActionRequestBody) GetVolumeIds() []string

type InstanceActionResponse

type InstanceActionResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*InstanceActionResponse) GetContentType

func (o *InstanceActionResponse) GetContentType() string

func (*InstanceActionResponse) GetRawResponse

func (o *InstanceActionResponse) GetRawResponse() *http.Response

func (*InstanceActionResponse) GetStatusCode

func (o *InstanceActionResponse) GetStatusCode() int

type One

type One struct {
	ClientID     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
	// oauth2 grant type
	GrantType *GrantType `default:"client_credentials" json:"grant_type"`
}

func (*One) GetClientID

func (o *One) GetClientID() string

func (*One) GetClientSecret

func (o *One) GetClientSecret() string

func (*One) GetGrantType

func (o *One) GetGrantType() *GrantType

func (One) MarshalJSON

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

func (*One) UnmarshalJSON

func (o *One) UnmarshalJSON(data []byte) error

type TokenType

type TokenType string

TokenType - Bearer token

const (
	TokenTypeBearer TokenType = "Bearer"
)

func (TokenType) ToPointer

func (e TokenType) ToPointer() *TokenType

func (*TokenType) UnmarshalJSON

func (e *TokenType) UnmarshalJSON(data []byte) error

type Two

type Two struct {
	// oauth2 grant type
	GrantType    *GetAccessTokenGrantType `default:"refresh_token" json:"grant_type"`
	RefreshToken string                   `json:"refresh_token"`
}

func (*Two) GetGrantType

func (o *Two) GetGrantType() *GetAccessTokenGrantType

func (*Two) GetRefreshToken

func (o *Two) GetRefreshToken() string

func (Two) MarshalJSON

func (t Two) MarshalJSON() ([]byte, error)

func (*Two) UnmarshalJSON

func (t *Two) UnmarshalJSON(data []byte) error

type VolumeActionID

type VolumeActionID struct {
	Str        *string
	ArrayOfstr []string

	Type VolumeActionIDType
}

func CreateVolumeActionIDArrayOfstr

func CreateVolumeActionIDArrayOfstr(arrayOfstr []string) VolumeActionID

func CreateVolumeActionIDStr

func CreateVolumeActionIDStr(str string) VolumeActionID

func (VolumeActionID) MarshalJSON

func (u VolumeActionID) MarshalJSON() ([]byte, error)

func (*VolumeActionID) UnmarshalJSON

func (u *VolumeActionID) UnmarshalJSON(data []byte) error

type VolumeActionIDType

type VolumeActionIDType string
const (
	VolumeActionIDTypeStr        VolumeActionIDType = "str"
	VolumeActionIDTypeArrayOfstr VolumeActionIDType = "arrayOfstr"
)

type VolumeActionRequestBody

type VolumeActionRequestBody struct {
	Action     string         `json:"action"`
	ID         VolumeActionID `json:"id"`
	InstanceID *string        `json:"instance_id,omitempty"`
	// needed when cloning a volume
	Name *string  `json:"name,omitempty"`
	Size *float64 `json:"size,omitempty"`
	// storage volume type
	Type *shared.VolumeType `json:"type,omitempty"`
}

func (*VolumeActionRequestBody) GetAction

func (o *VolumeActionRequestBody) GetAction() string

func (*VolumeActionRequestBody) GetID

func (*VolumeActionRequestBody) GetInstanceID

func (o *VolumeActionRequestBody) GetInstanceID() *string

func (*VolumeActionRequestBody) GetName

func (o *VolumeActionRequestBody) GetName() *string

func (*VolumeActionRequestBody) GetSize

func (o *VolumeActionRequestBody) GetSize() *float64

func (*VolumeActionRequestBody) GetType

type VolumeActionResponse

type VolumeActionResponse struct {
	// HTTP response content type for this operation
	ContentType string
	// HTTP response status code for this operation
	StatusCode int
	// Raw HTTP response; suitable for custom response parsing
	RawResponse *http.Response
}

func (*VolumeActionResponse) GetContentType

func (o *VolumeActionResponse) GetContentType() string

func (*VolumeActionResponse) GetRawResponse

func (o *VolumeActionResponse) GetRawResponse() *http.Response

func (*VolumeActionResponse) GetStatusCode

func (o *VolumeActionResponse) GetStatusCode() int

Jump to

Keyboard shortcuts

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