sagadata

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MPL-2.0 Imports: 12 Imported by: 0

README

Saga Data Go Client

The Genesis Cloud Go client provides the ability to manage each services resources programmatically from scripts or applications.

This repository is licensed under Mozilla Public License 2.0 (no copyleft exception) (see LICENSE.txt).

Maintainers

This client is maintained by Saga Data. If you encounter any problems, feel free to create issues or pull requests.

Requirements

  • Go >= 1.25

Installation

go get github.com/sagadata-public/sagadata-go

Getting Started

import "github.com/sagadata-public/sagadata-go"

client, err := sagadata.NewSagaDataClient(sagadata.ClientConfig{
	Token: os.Getenv("SAGADATA_TOKEN"),
})
if err != nil {
	// ...
}

// Pass nil for default options, or provide query parameters
resp, err := client.ListInstancesPaginated(ctx, nil)
if err != nil {
	// ...
}

for _, instance := range resp.Instances {
	fmt.Printf("%s %s\n", instance.ID, instance.Name)
}

Examples

You can find additional examples in the GoDoc or check the examples folder.

SAGADATA_TOKEN="XXXX" go run ./examples/list-instances

Development or update of OpenAPI document

# Update openapi.yaml (./codegen/openapi.yaml)

# Generate code
go generate ./...

Documentation

Overview

Package sagadata provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.

Package sagadata provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.

Index

Constants

View Source
const (
	ApiKeyAuthScopes = "ApiKeyAuth.Scopes"
)
View Source
const DefaultEndpoint = "https://public-api.nord-no-krs-1.sagadata.tum.fail/compute/v1"

Variables

View Source
var AllCreateFloatingIPJSONBodyVersions = []CreateFloatingIPJSONBodyVersion{
	CreateFloatingIPJSONBodyVersionIpv4,
}
View Source
var AllFilesystemTypes = []FilesystemType{
	FilesystemTypeVast,
}
View Source
var AllImageTypes = []ImageType{
	ImageTypeCloudImage,
}
View Source
var AllLoadbalancerModes = []LoadbalancerMode{
	LoadbalancerModeTcp,
}
View Source
var AllOSTypes = []OSType{
	OSTypeLinux,
	OSTypeWindows,
}
View Source
var AllVolumeTypes = []VolumeType{
	VolumeTypeHdd,
	VolumeTypeSsd,
}

Functions

func NewCloneSnapshotRequest

func NewCloneSnapshotRequest(server string, snapshotId string, body CloneSnapshotJSONRequestBody) (*http.Request, error)

NewCloneSnapshotRequest calls the generic CloneSnapshot builder with application/json body

func NewCloneSnapshotRequestWithBody

func NewCloneSnapshotRequestWithBody(server string, snapshotId string, contentType string, body io.Reader) (*http.Request, error)

NewCloneSnapshotRequestWithBody generates requests for CloneSnapshot with any type of body

func NewCreateFilesystemRequest

func NewCreateFilesystemRequest(server string, body CreateFilesystemJSONRequestBody) (*http.Request, error)

NewCreateFilesystemRequest calls the generic CreateFilesystem builder with application/json body

func NewCreateFilesystemRequestWithBody

func NewCreateFilesystemRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateFilesystemRequestWithBody generates requests for CreateFilesystem with any type of body

func NewCreateFloatingIPRequest

func NewCreateFloatingIPRequest(server string, body CreateFloatingIPJSONRequestBody) (*http.Request, error)

NewCreateFloatingIPRequest calls the generic CreateFloatingIP builder with application/json body

func NewCreateFloatingIPRequestWithBody

func NewCreateFloatingIPRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateFloatingIPRequestWithBody generates requests for CreateFloatingIP with any type of body

func NewCreateInstanceRequest

func NewCreateInstanceRequest(server string, body CreateInstanceJSONRequestBody) (*http.Request, error)

NewCreateInstanceRequest calls the generic CreateInstance builder with application/json body

func NewCreateInstanceRequestWithBody

func NewCreateInstanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateInstanceRequestWithBody generates requests for CreateInstance with any type of body

func NewCreateInstanceSnapshotRequest

func NewCreateInstanceSnapshotRequest(server string, instanceId string, body CreateInstanceSnapshotJSONRequestBody) (*http.Request, error)

NewCreateInstanceSnapshotRequest calls the generic CreateInstanceSnapshot builder with application/json body

func NewCreateInstanceSnapshotRequestWithBody

func NewCreateInstanceSnapshotRequestWithBody(server string, instanceId string, contentType string, body io.Reader) (*http.Request, error)

NewCreateInstanceSnapshotRequestWithBody generates requests for CreateInstanceSnapshot with any type of body

func NewCreateKubernetesClusterRequest

func NewCreateKubernetesClusterRequest(server string, body CreateKubernetesClusterJSONRequestBody) (*http.Request, error)

NewCreateKubernetesClusterRequest calls the generic CreateKubernetesCluster builder with application/json body

func NewCreateKubernetesClusterRequestWithBody

func NewCreateKubernetesClusterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateKubernetesClusterRequestWithBody generates requests for CreateKubernetesCluster with any type of body

func NewCreateLoadbalancerRequest added in v1.3.0

func NewCreateLoadbalancerRequest(server string, body CreateLoadbalancerJSONRequestBody) (*http.Request, error)

NewCreateLoadbalancerRequest calls the generic CreateLoadbalancer builder with application/json body

func NewCreateLoadbalancerRequestWithBody added in v1.3.0

func NewCreateLoadbalancerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateLoadbalancerRequestWithBody generates requests for CreateLoadbalancer with any type of body

func NewCreatePrivateNetworkRequest

func NewCreatePrivateNetworkRequest(server string, body CreatePrivateNetworkJSONRequestBody) (*http.Request, error)

NewCreatePrivateNetworkRequest calls the generic CreatePrivateNetwork builder with application/json body

func NewCreatePrivateNetworkRequestWithBody

func NewCreatePrivateNetworkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreatePrivateNetworkRequestWithBody generates requests for CreatePrivateNetwork with any type of body

func NewCreateSSHKeyRequest

func NewCreateSSHKeyRequest(server string, body CreateSSHKeyJSONRequestBody) (*http.Request, error)

NewCreateSSHKeyRequest calls the generic CreateSSHKey builder with application/json body

func NewCreateSSHKeyRequestWithBody

func NewCreateSSHKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateSSHKeyRequestWithBody generates requests for CreateSSHKey with any type of body

func NewCreateSecurityGroupRequest

func NewCreateSecurityGroupRequest(server string, body CreateSecurityGroupJSONRequestBody) (*http.Request, error)

NewCreateSecurityGroupRequest calls the generic CreateSecurityGroup builder with application/json body

func NewCreateSecurityGroupRequestWithBody

func NewCreateSecurityGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateSecurityGroupRequestWithBody generates requests for CreateSecurityGroup with any type of body

func NewCreateSnapshotRequest

func NewCreateSnapshotRequest(server string, body CreateSnapshotJSONRequestBody) (*http.Request, error)

NewCreateSnapshotRequest calls the generic CreateSnapshot builder with application/json body

func NewCreateSnapshotRequestWithBody

func NewCreateSnapshotRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateSnapshotRequestWithBody generates requests for CreateSnapshot with any type of body

func NewCreateVolumeRequest

func NewCreateVolumeRequest(server string, body CreateVolumeJSONRequestBody) (*http.Request, error)

NewCreateVolumeRequest calls the generic CreateVolume builder with application/json body

func NewCreateVolumeRequestWithBody

func NewCreateVolumeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateVolumeRequestWithBody generates requests for CreateVolume with any type of body

func NewDeleteFilesystemRequest

func NewDeleteFilesystemRequest(server string, filesystemId string) (*http.Request, error)

NewDeleteFilesystemRequest generates requests for DeleteFilesystem

func NewDeleteFloatingIPRequest

func NewDeleteFloatingIPRequest(server string, floatingIpId string) (*http.Request, error)

NewDeleteFloatingIPRequest generates requests for DeleteFloatingIP

func NewDeleteInstanceRequest

func NewDeleteInstanceRequest(server string, instanceId string) (*http.Request, error)

NewDeleteInstanceRequest generates requests for DeleteInstance

func NewDeleteKubernetesClusterRequest

func NewDeleteKubernetesClusterRequest(server string, clusterId string) (*http.Request, error)

NewDeleteKubernetesClusterRequest generates requests for DeleteKubernetesCluster

func NewDeleteLoadbalancerRequest added in v1.3.0

func NewDeleteLoadbalancerRequest(server string, loadbalancerId string) (*http.Request, error)

NewDeleteLoadbalancerRequest generates requests for DeleteLoadbalancer

func NewDeletePrivateNetworkRequest

func NewDeletePrivateNetworkRequest(server string, networkId string) (*http.Request, error)

NewDeletePrivateNetworkRequest generates requests for DeletePrivateNetwork

func NewDeleteSSHKeyRequest

func NewDeleteSSHKeyRequest(server string, sshKeyId string) (*http.Request, error)

NewDeleteSSHKeyRequest generates requests for DeleteSSHKey

func NewDeleteSecurityGroupRequest

func NewDeleteSecurityGroupRequest(server string, securityGroupId string) (*http.Request, error)

NewDeleteSecurityGroupRequest generates requests for DeleteSecurityGroup

func NewDeleteSnapshotRequest

func NewDeleteSnapshotRequest(server string, snapshotId string) (*http.Request, error)

NewDeleteSnapshotRequest generates requests for DeleteSnapshot

func NewDeleteVolumeRequest

func NewDeleteVolumeRequest(server string, volumeId string) (*http.Request, error)

NewDeleteVolumeRequest generates requests for DeleteVolume

func NewGetFilesystemRequest

func NewGetFilesystemRequest(server string, filesystemId string) (*http.Request, error)

NewGetFilesystemRequest generates requests for GetFilesystem

func NewGetFloatingIPRequest

func NewGetFloatingIPRequest(server string, floatingIpId string) (*http.Request, error)

NewGetFloatingIPRequest generates requests for GetFloatingIP

func NewGetInstanceActionsRequest

func NewGetInstanceActionsRequest(server string, instanceId string) (*http.Request, error)

NewGetInstanceActionsRequest generates requests for GetInstanceActions

func NewGetInstanceRequest

func NewGetInstanceRequest(server string, instanceId string) (*http.Request, error)

NewGetInstanceRequest generates requests for GetInstance

func NewGetInstanceUserMetadataRequest

func NewGetInstanceUserMetadataRequest(server string, instanceId string) (*http.Request, error)

NewGetInstanceUserMetadataRequest generates requests for GetInstanceUserMetadata

func NewGetInstancesAvailabilityRequest

func NewGetInstancesAvailabilityRequest(server string, region Region, params *GetInstancesAvailabilityParams) (*http.Request, error)

NewGetInstancesAvailabilityRequest generates requests for GetInstancesAvailability

func NewGetKubernetesClusterCredentialsRequest

func NewGetKubernetesClusterCredentialsRequest(server string, clusterId string) (*http.Request, error)

NewGetKubernetesClusterCredentialsRequest generates requests for GetKubernetesClusterCredentials

func NewGetKubernetesClusterRequest

func NewGetKubernetesClusterRequest(server string, clusterId string) (*http.Request, error)

NewGetKubernetesClusterRequest generates requests for GetKubernetesCluster

func NewGetLoadbalancerRequest added in v1.3.0

func NewGetLoadbalancerRequest(server string, loadbalancerId string) (*http.Request, error)

NewGetLoadbalancerRequest generates requests for GetLoadbalancer

func NewGetPrivateNetworkRequest

func NewGetPrivateNetworkRequest(server string, networkId string) (*http.Request, error)

NewGetPrivateNetworkRequest generates requests for GetPrivateNetwork

func NewGetQuotasRequest

func NewGetQuotasRequest(server string) (*http.Request, error)

NewGetQuotasRequest generates requests for GetQuotas

func NewGetReservationsRequest

func NewGetReservationsRequest(server string) (*http.Request, error)

NewGetReservationsRequest generates requests for GetReservations

func NewGetSSHKeyRequest

func NewGetSSHKeyRequest(server string, sshKeyId string) (*http.Request, error)

NewGetSSHKeyRequest generates requests for GetSSHKey

func NewGetSecurityGroupRequest

func NewGetSecurityGroupRequest(server string, securityGroupId string) (*http.Request, error)

NewGetSecurityGroupRequest generates requests for GetSecurityGroup

func NewGetSnapshotRequest

func NewGetSnapshotRequest(server string, snapshotId string) (*http.Request, error)

NewGetSnapshotRequest generates requests for GetSnapshot

func NewGetVolumeRequest

func NewGetVolumeRequest(server string, volumeId string) (*http.Request, error)

NewGetVolumeRequest generates requests for GetVolume

func NewListFilesystemsPaginatedRequest

func NewListFilesystemsPaginatedRequest(server string, params *ListFilesystemsPaginatedParams) (*http.Request, error)

NewListFilesystemsPaginatedRequest generates requests for ListFilesystemsPaginated

func NewListFloatingIPsPaginatedRequest

func NewListFloatingIPsPaginatedRequest(server string, params *ListFloatingIPsPaginatedParams) (*http.Request, error)

NewListFloatingIPsPaginatedRequest generates requests for ListFloatingIPsPaginated

func NewListImagesPaginatedRequest

func NewListImagesPaginatedRequest(server string, params *ListImagesPaginatedParams) (*http.Request, error)

NewListImagesPaginatedRequest generates requests for ListImagesPaginated

func NewListInstanceSnapshotsPaginatedRequest

func NewListInstanceSnapshotsPaginatedRequest(server string, instanceId string, params *ListInstanceSnapshotsPaginatedParams) (*http.Request, error)

NewListInstanceSnapshotsPaginatedRequest generates requests for ListInstanceSnapshotsPaginated

func NewListInstancesPaginatedRequest

func NewListInstancesPaginatedRequest(server string, params *ListInstancesPaginatedParams) (*http.Request, error)

NewListInstancesPaginatedRequest generates requests for ListInstancesPaginated

func NewListKubernetesClustersRequest

func NewListKubernetesClustersRequest(server string, params *ListKubernetesClustersParams) (*http.Request, error)

NewListKubernetesClustersRequest generates requests for ListKubernetesClusters

func NewListLoadbalancersRequest added in v1.3.0

func NewListLoadbalancersRequest(server string, params *ListLoadbalancersParams) (*http.Request, error)

NewListLoadbalancersRequest generates requests for ListLoadbalancers

func NewListPrivateNetworksRequest

func NewListPrivateNetworksRequest(server string, params *ListPrivateNetworksParams) (*http.Request, error)

NewListPrivateNetworksRequest generates requests for ListPrivateNetworks

func NewListSSHKeysPaginatedRequest

func NewListSSHKeysPaginatedRequest(server string, params *ListSSHKeysPaginatedParams) (*http.Request, error)

NewListSSHKeysPaginatedRequest generates requests for ListSSHKeysPaginated

func NewListSecurityGroupsPaginatedRequest

func NewListSecurityGroupsPaginatedRequest(server string, params *ListSecurityGroupsPaginatedParams) (*http.Request, error)

NewListSecurityGroupsPaginatedRequest generates requests for ListSecurityGroupsPaginated

func NewListSnapshotsPaginatedRequest

func NewListSnapshotsPaginatedRequest(server string, params *ListSnapshotsPaginatedParams) (*http.Request, error)

NewListSnapshotsPaginatedRequest generates requests for ListSnapshotsPaginated

func NewListVolumesPaginatedRequest

func NewListVolumesPaginatedRequest(server string, params *ListVolumesPaginatedParams) (*http.Request, error)

NewListVolumesPaginatedRequest generates requests for ListVolumesPaginated

func NewPerformInstanceActionRequest

func NewPerformInstanceActionRequest(server string, instanceId string, body PerformInstanceActionJSONRequestBody) (*http.Request, error)

NewPerformInstanceActionRequest calls the generic PerformInstanceAction builder with application/json body

func NewPerformInstanceActionRequestWithBody

func NewPerformInstanceActionRequestWithBody(server string, instanceId string, contentType string, body io.Reader) (*http.Request, error)

NewPerformInstanceActionRequestWithBody generates requests for PerformInstanceAction with any type of body

func NewUpdateFilesystemRequest

func NewUpdateFilesystemRequest(server string, filesystemId string, body UpdateFilesystemJSONRequestBody) (*http.Request, error)

NewUpdateFilesystemRequest calls the generic UpdateFilesystem builder with application/json body

func NewUpdateFilesystemRequestWithBody

func NewUpdateFilesystemRequestWithBody(server string, filesystemId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateFilesystemRequestWithBody generates requests for UpdateFilesystem with any type of body

func NewUpdateFloatingIPRequest

func NewUpdateFloatingIPRequest(server string, floatingIpId string, body UpdateFloatingIPJSONRequestBody) (*http.Request, error)

NewUpdateFloatingIPRequest calls the generic UpdateFloatingIP builder with application/json body

func NewUpdateFloatingIPRequestWithBody

func NewUpdateFloatingIPRequestWithBody(server string, floatingIpId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateFloatingIPRequestWithBody generates requests for UpdateFloatingIP with any type of body

func NewUpdateInstanceRequest

func NewUpdateInstanceRequest(server string, instanceId string, body UpdateInstanceJSONRequestBody) (*http.Request, error)

NewUpdateInstanceRequest calls the generic UpdateInstance builder with application/json body

func NewUpdateInstanceRequestWithBody

func NewUpdateInstanceRequestWithBody(server string, instanceId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateInstanceRequestWithBody generates requests for UpdateInstance with any type of body

func NewUpdateKubernetesClusterRequest

func NewUpdateKubernetesClusterRequest(server string, clusterId string, body UpdateKubernetesClusterJSONRequestBody) (*http.Request, error)

NewUpdateKubernetesClusterRequest calls the generic UpdateKubernetesCluster builder with application/json body

func NewUpdateKubernetesClusterRequestWithBody

func NewUpdateKubernetesClusterRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateKubernetesClusterRequestWithBody generates requests for UpdateKubernetesCluster with any type of body

func NewUpdateLoadbalancerRequest added in v1.3.0

func NewUpdateLoadbalancerRequest(server string, loadbalancerId string, body UpdateLoadbalancerJSONRequestBody) (*http.Request, error)

NewUpdateLoadbalancerRequest calls the generic UpdateLoadbalancer builder with application/json body

func NewUpdateLoadbalancerRequestWithBody added in v1.3.0

func NewUpdateLoadbalancerRequestWithBody(server string, loadbalancerId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateLoadbalancerRequestWithBody generates requests for UpdateLoadbalancer with any type of body

func NewUpdatePrivateNetworkRequest

func NewUpdatePrivateNetworkRequest(server string, networkId string, body UpdatePrivateNetworkJSONRequestBody) (*http.Request, error)

NewUpdatePrivateNetworkRequest calls the generic UpdatePrivateNetwork builder with application/json body

func NewUpdatePrivateNetworkRequestWithBody

func NewUpdatePrivateNetworkRequestWithBody(server string, networkId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdatePrivateNetworkRequestWithBody generates requests for UpdatePrivateNetwork with any type of body

func NewUpdateSSHKeyRequest

func NewUpdateSSHKeyRequest(server string, sshKeyId string, body UpdateSSHKeyJSONRequestBody) (*http.Request, error)

NewUpdateSSHKeyRequest calls the generic UpdateSSHKey builder with application/json body

func NewUpdateSSHKeyRequestWithBody

func NewUpdateSSHKeyRequestWithBody(server string, sshKeyId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateSSHKeyRequestWithBody generates requests for UpdateSSHKey with any type of body

func NewUpdateSecurityGroupRequest

func NewUpdateSecurityGroupRequest(server string, securityGroupId string, body UpdateSecurityGroupJSONRequestBody) (*http.Request, error)

NewUpdateSecurityGroupRequest calls the generic UpdateSecurityGroup builder with application/json body

func NewUpdateSecurityGroupRequestWithBody

func NewUpdateSecurityGroupRequestWithBody(server string, securityGroupId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateSecurityGroupRequestWithBody generates requests for UpdateSecurityGroup with any type of body

func NewUpdateSnapshotRequest

func NewUpdateSnapshotRequest(server string, snapshotId string, body UpdateSnapshotJSONRequestBody) (*http.Request, error)

NewUpdateSnapshotRequest calls the generic UpdateSnapshot builder with application/json body

func NewUpdateSnapshotRequestWithBody

func NewUpdateSnapshotRequestWithBody(server string, snapshotId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateSnapshotRequestWithBody generates requests for UpdateSnapshot with any type of body

func NewUpdateVolumeRequest

func NewUpdateVolumeRequest(server string, volumeId string, body UpdateVolumeJSONRequestBody) (*http.Request, error)

NewUpdateVolumeRequest calls the generic UpdateVolume builder with application/json body

func NewUpdateVolumeRequestWithBody

func NewUpdateVolumeRequestWithBody(server string, volumeId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateVolumeRequestWithBody generates requests for UpdateVolume with any type of body

Types

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CloneSnapshot

func (c *Client) CloneSnapshot(ctx context.Context, snapshotId string, body CloneSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CloneSnapshotWithBody

func (c *Client) CloneSnapshotWithBody(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateFilesystem

func (c *Client) CreateFilesystem(ctx context.Context, body CreateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateFilesystemWithBody

func (c *Client) CreateFilesystemWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateFloatingIP

func (c *Client) CreateFloatingIP(ctx context.Context, body CreateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateFloatingIPWithBody

func (c *Client) CreateFloatingIPWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateInstance

func (c *Client) CreateInstance(ctx context.Context, body CreateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateInstanceSnapshot

func (c *Client) CreateInstanceSnapshot(ctx context.Context, instanceId string, body CreateInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateInstanceSnapshotWithBody

func (c *Client) CreateInstanceSnapshotWithBody(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateInstanceWithBody

func (c *Client) CreateInstanceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateKubernetesCluster

func (c *Client) CreateKubernetesCluster(ctx context.Context, body CreateKubernetesClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateKubernetesClusterWithBody

func (c *Client) CreateKubernetesClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateLoadbalancer added in v1.3.0

func (c *Client) CreateLoadbalancer(ctx context.Context, body CreateLoadbalancerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateLoadbalancerWithBody added in v1.3.0

func (c *Client) CreateLoadbalancerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePrivateNetwork

func (c *Client) CreatePrivateNetwork(ctx context.Context, body CreatePrivateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePrivateNetworkWithBody

func (c *Client) CreatePrivateNetworkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSSHKey

func (c *Client) CreateSSHKey(ctx context.Context, body CreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSSHKeyWithBody

func (c *Client) CreateSSHKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSecurityGroup

func (c *Client) CreateSecurityGroup(ctx context.Context, body CreateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSecurityGroupWithBody

func (c *Client) CreateSecurityGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSnapshot

func (c *Client) CreateSnapshot(ctx context.Context, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSnapshotWithBody

func (c *Client) CreateSnapshotWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateVolume

func (c *Client) CreateVolume(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateVolumeWithBody

func (c *Client) CreateVolumeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteFilesystem

func (c *Client) DeleteFilesystem(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteFloatingIP

func (c *Client) DeleteFloatingIP(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteInstance

func (c *Client) DeleteInstance(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteKubernetesCluster

func (c *Client) DeleteKubernetesCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteLoadbalancer added in v1.3.0

func (c *Client) DeleteLoadbalancer(ctx context.Context, loadbalancerId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeletePrivateNetwork

func (c *Client) DeletePrivateNetwork(ctx context.Context, networkId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteSSHKey

func (c *Client) DeleteSSHKey(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteSecurityGroup

func (c *Client) DeleteSecurityGroup(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteSnapshot

func (c *Client) DeleteSnapshot(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteVolume

func (c *Client) DeleteVolume(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFilesystem

func (c *Client) GetFilesystem(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFloatingIP

func (c *Client) GetFloatingIP(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetInstance

func (c *Client) GetInstance(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetInstanceActions

func (c *Client) GetInstanceActions(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetInstanceUserMetadata

func (c *Client) GetInstanceUserMetadata(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetInstancesAvailability

func (c *Client) GetInstancesAvailability(ctx context.Context, region Region, params *GetInstancesAvailabilityParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetKubernetesCluster

func (c *Client) GetKubernetesCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetKubernetesClusterCredentials

func (c *Client) GetKubernetesClusterCredentials(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetLoadbalancer added in v1.3.0

func (c *Client) GetLoadbalancer(ctx context.Context, loadbalancerId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPrivateNetwork

func (c *Client) GetPrivateNetwork(ctx context.Context, networkId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetQuotas

func (c *Client) GetQuotas(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetReservations

func (c *Client) GetReservations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSSHKey

func (c *Client) GetSSHKey(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSecurityGroup

func (c *Client) GetSecurityGroup(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSnapshot

func (c *Client) GetSnapshot(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetVolume

func (c *Client) GetVolume(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListFilesystemsPaginated

func (c *Client) ListFilesystemsPaginated(ctx context.Context, params *ListFilesystemsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListFloatingIPsPaginated

func (c *Client) ListFloatingIPsPaginated(ctx context.Context, params *ListFloatingIPsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListImagesPaginated

func (c *Client) ListImagesPaginated(ctx context.Context, params *ListImagesPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListInstanceSnapshotsPaginated

func (c *Client) ListInstanceSnapshotsPaginated(ctx context.Context, instanceId string, params *ListInstanceSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListInstancesPaginated

func (c *Client) ListInstancesPaginated(ctx context.Context, params *ListInstancesPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListKubernetesClusters

func (c *Client) ListKubernetesClusters(ctx context.Context, params *ListKubernetesClustersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListLoadbalancers added in v1.3.0

func (c *Client) ListLoadbalancers(ctx context.Context, params *ListLoadbalancersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListPrivateNetworks

func (c *Client) ListPrivateNetworks(ctx context.Context, params *ListPrivateNetworksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSSHKeysPaginated

func (c *Client) ListSSHKeysPaginated(ctx context.Context, params *ListSSHKeysPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSecurityGroupsPaginated

func (c *Client) ListSecurityGroupsPaginated(ctx context.Context, params *ListSecurityGroupsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListSnapshotsPaginated

func (c *Client) ListSnapshotsPaginated(ctx context.Context, params *ListSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListVolumesPaginated

func (c *Client) ListVolumesPaginated(ctx context.Context, params *ListVolumesPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PerformInstanceAction

func (c *Client) PerformInstanceAction(ctx context.Context, instanceId string, body PerformInstanceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PerformInstanceActionWithBody

func (c *Client) PerformInstanceActionWithBody(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFilesystem

func (c *Client) UpdateFilesystem(ctx context.Context, filesystemId string, body UpdateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFilesystemWithBody

func (c *Client) UpdateFilesystemWithBody(ctx context.Context, filesystemId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFloatingIP

func (c *Client) UpdateFloatingIP(ctx context.Context, floatingIpId string, body UpdateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFloatingIPWithBody

func (c *Client) UpdateFloatingIPWithBody(ctx context.Context, floatingIpId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateInstance

func (c *Client) UpdateInstance(ctx context.Context, instanceId string, body UpdateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateInstanceWithBody

func (c *Client) UpdateInstanceWithBody(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateKubernetesCluster

func (c *Client) UpdateKubernetesCluster(ctx context.Context, clusterId string, body UpdateKubernetesClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateKubernetesClusterWithBody

func (c *Client) UpdateKubernetesClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateLoadbalancer added in v1.3.0

func (c *Client) UpdateLoadbalancer(ctx context.Context, loadbalancerId string, body UpdateLoadbalancerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateLoadbalancerWithBody added in v1.3.0

func (c *Client) UpdateLoadbalancerWithBody(ctx context.Context, loadbalancerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePrivateNetwork

func (c *Client) UpdatePrivateNetwork(ctx context.Context, networkId string, body UpdatePrivateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePrivateNetworkWithBody

func (c *Client) UpdatePrivateNetworkWithBody(ctx context.Context, networkId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSSHKey

func (c *Client) UpdateSSHKey(ctx context.Context, sshKeyId string, body UpdateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSSHKeyWithBody

func (c *Client) UpdateSSHKeyWithBody(ctx context.Context, sshKeyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSecurityGroup

func (c *Client) UpdateSecurityGroup(ctx context.Context, securityGroupId string, body UpdateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSecurityGroupWithBody

func (c *Client) UpdateSecurityGroupWithBody(ctx context.Context, securityGroupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSnapshot

func (c *Client) UpdateSnapshot(ctx context.Context, snapshotId string, body UpdateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSnapshotWithBody

func (c *Client) UpdateSnapshotWithBody(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateVolume

func (c *Client) UpdateVolume(ctx context.Context, volumeId string, body UpdateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateVolumeWithBody

func (c *Client) UpdateVolumeWithBody(ctx context.Context, volumeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientConfig

type ClientConfig struct {
	Endpoint string
	// Token is a static API token. Either Token or TokenFile must be set.
	Token string
	// TokenFile is a path to a file containing the API token.
	// The token is read from the file on each request, allowing dynamic token updates.
	// Either Token or TokenFile must be set.
	TokenFile string
}

type ClientInterface

type ClientInterface interface {
	// GetInstancesAvailability request
	GetInstancesAvailability(ctx context.Context, region Region, params *GetInstancesAvailabilityParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListFilesystemsPaginated request
	ListFilesystemsPaginated(ctx context.Context, params *ListFilesystemsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateFilesystemWithBody request with any body
	CreateFilesystemWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateFilesystem(ctx context.Context, body CreateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteFilesystem request
	DeleteFilesystem(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFilesystem request
	GetFilesystem(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateFilesystemWithBody request with any body
	UpdateFilesystemWithBody(ctx context.Context, filesystemId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateFilesystem(ctx context.Context, filesystemId string, body UpdateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListFloatingIPsPaginated request
	ListFloatingIPsPaginated(ctx context.Context, params *ListFloatingIPsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateFloatingIPWithBody request with any body
	CreateFloatingIPWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateFloatingIP(ctx context.Context, body CreateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteFloatingIP request
	DeleteFloatingIP(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFloatingIP request
	GetFloatingIP(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateFloatingIPWithBody request with any body
	UpdateFloatingIPWithBody(ctx context.Context, floatingIpId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateFloatingIP(ctx context.Context, floatingIpId string, body UpdateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListImagesPaginated request
	ListImagesPaginated(ctx context.Context, params *ListImagesPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListInstancesPaginated request
	ListInstancesPaginated(ctx context.Context, params *ListInstancesPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateInstanceWithBody request with any body
	CreateInstanceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateInstance(ctx context.Context, body CreateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteInstance request
	DeleteInstance(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetInstance request
	GetInstance(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateInstanceWithBody request with any body
	UpdateInstanceWithBody(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateInstance(ctx context.Context, instanceId string, body UpdateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetInstanceActions request
	GetInstanceActions(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PerformInstanceActionWithBody request with any body
	PerformInstanceActionWithBody(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PerformInstanceAction(ctx context.Context, instanceId string, body PerformInstanceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListInstanceSnapshotsPaginated request
	ListInstanceSnapshotsPaginated(ctx context.Context, instanceId string, params *ListInstanceSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateInstanceSnapshotWithBody request with any body
	CreateInstanceSnapshotWithBody(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateInstanceSnapshot(ctx context.Context, instanceId string, body CreateInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetInstanceUserMetadata request
	GetInstanceUserMetadata(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListKubernetesClusters request
	ListKubernetesClusters(ctx context.Context, params *ListKubernetesClustersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateKubernetesClusterWithBody request with any body
	CreateKubernetesClusterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateKubernetesCluster(ctx context.Context, body CreateKubernetesClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteKubernetesCluster request
	DeleteKubernetesCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetKubernetesCluster request
	GetKubernetesCluster(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateKubernetesClusterWithBody request with any body
	UpdateKubernetesClusterWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateKubernetesCluster(ctx context.Context, clusterId string, body UpdateKubernetesClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetKubernetesClusterCredentials request
	GetKubernetesClusterCredentials(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListLoadbalancers request
	ListLoadbalancers(ctx context.Context, params *ListLoadbalancersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateLoadbalancerWithBody request with any body
	CreateLoadbalancerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateLoadbalancer(ctx context.Context, body CreateLoadbalancerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteLoadbalancer request
	DeleteLoadbalancer(ctx context.Context, loadbalancerId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLoadbalancer request
	GetLoadbalancer(ctx context.Context, loadbalancerId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateLoadbalancerWithBody request with any body
	UpdateLoadbalancerWithBody(ctx context.Context, loadbalancerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateLoadbalancer(ctx context.Context, loadbalancerId string, body UpdateLoadbalancerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPrivateNetworks request
	ListPrivateNetworks(ctx context.Context, params *ListPrivateNetworksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreatePrivateNetworkWithBody request with any body
	CreatePrivateNetworkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreatePrivateNetwork(ctx context.Context, body CreatePrivateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeletePrivateNetwork request
	DeletePrivateNetwork(ctx context.Context, networkId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPrivateNetwork request
	GetPrivateNetwork(ctx context.Context, networkId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePrivateNetworkWithBody request with any body
	UpdatePrivateNetworkWithBody(ctx context.Context, networkId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdatePrivateNetwork(ctx context.Context, networkId string, body UpdatePrivateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetQuotas request
	GetQuotas(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetReservations request
	GetReservations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSecurityGroupsPaginated request
	ListSecurityGroupsPaginated(ctx context.Context, params *ListSecurityGroupsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSecurityGroupWithBody request with any body
	CreateSecurityGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateSecurityGroup(ctx context.Context, body CreateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSecurityGroup request
	DeleteSecurityGroup(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSecurityGroup request
	GetSecurityGroup(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateSecurityGroupWithBody request with any body
	UpdateSecurityGroupWithBody(ctx context.Context, securityGroupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateSecurityGroup(ctx context.Context, securityGroupId string, body UpdateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSnapshotsPaginated request
	ListSnapshotsPaginated(ctx context.Context, params *ListSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSnapshotWithBody request with any body
	CreateSnapshotWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateSnapshot(ctx context.Context, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSnapshot request
	DeleteSnapshot(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSnapshot request
	GetSnapshot(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateSnapshotWithBody request with any body
	UpdateSnapshotWithBody(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateSnapshot(ctx context.Context, snapshotId string, body UpdateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CloneSnapshotWithBody request with any body
	CloneSnapshotWithBody(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CloneSnapshot(ctx context.Context, snapshotId string, body CloneSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSSHKeysPaginated request
	ListSSHKeysPaginated(ctx context.Context, params *ListSSHKeysPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSSHKeyWithBody request with any body
	CreateSSHKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateSSHKey(ctx context.Context, body CreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSSHKey request
	DeleteSSHKey(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSSHKey request
	GetSSHKey(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateSSHKeyWithBody request with any body
	UpdateSSHKeyWithBody(ctx context.Context, sshKeyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateSSHKey(ctx context.Context, sshKeyId string, body UpdateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListVolumesPaginated request
	ListVolumesPaginated(ctx context.Context, params *ListVolumesPaginatedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateVolumeWithBody request with any body
	CreateVolumeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateVolume(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteVolume request
	DeleteVolume(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVolume request
	GetVolume(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateVolumeWithBody request with any body
	UpdateVolumeWithBody(ctx context.Context, volumeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateVolume(ctx context.Context, volumeId string, body UpdateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func NewSagaDataClient

func NewSagaDataClient(config ClientConfig, opts ...ClientOption) (*ClientWithResponses, error)

func (*ClientWithResponses) CloneSnapshotWithBodyWithResponse

func (c *ClientWithResponses) CloneSnapshotWithBodyWithResponse(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloneSnapshotResponse, error)

CloneSnapshotWithBodyWithResponse request with arbitrary body returning *CloneSnapshotResponse

func (*ClientWithResponses) CloneSnapshotWithResponse

func (c *ClientWithResponses) CloneSnapshotWithResponse(ctx context.Context, snapshotId string, body CloneSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CloneSnapshotResponse, error)

func (*ClientWithResponses) CreateFilesystemWithBodyWithResponse

func (c *ClientWithResponses) CreateFilesystemWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFilesystemResponse, error)

CreateFilesystemWithBodyWithResponse request with arbitrary body returning *CreateFilesystemResponse

func (*ClientWithResponses) CreateFilesystemWithResponse

func (c *ClientWithResponses) CreateFilesystemWithResponse(ctx context.Context, body CreateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFilesystemResponse, error)

func (*ClientWithResponses) CreateFloatingIPWithBodyWithResponse

func (c *ClientWithResponses) CreateFloatingIPWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFloatingIPResponse, error)

CreateFloatingIPWithBodyWithResponse request with arbitrary body returning *CreateFloatingIPResponse

func (*ClientWithResponses) CreateFloatingIPWithResponse

func (c *ClientWithResponses) CreateFloatingIPWithResponse(ctx context.Context, body CreateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFloatingIPResponse, error)

func (*ClientWithResponses) CreateInstanceSnapshotWithBodyWithResponse

func (c *ClientWithResponses) CreateInstanceSnapshotWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInstanceSnapshotResponse, error)

CreateInstanceSnapshotWithBodyWithResponse request with arbitrary body returning *CreateInstanceSnapshotResponse

func (*ClientWithResponses) CreateInstanceSnapshotWithResponse

func (c *ClientWithResponses) CreateInstanceSnapshotWithResponse(ctx context.Context, instanceId string, body CreateInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInstanceSnapshotResponse, error)

func (*ClientWithResponses) CreateInstanceWithBodyWithResponse

func (c *ClientWithResponses) CreateInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInstanceResponse, error)

CreateInstanceWithBodyWithResponse request with arbitrary body returning *CreateInstanceResponse

func (*ClientWithResponses) CreateInstanceWithResponse

func (c *ClientWithResponses) CreateInstanceWithResponse(ctx context.Context, body CreateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInstanceResponse, error)

func (*ClientWithResponses) CreateKubernetesClusterWithBodyWithResponse

func (c *ClientWithResponses) CreateKubernetesClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateKubernetesClusterResponse, error)

CreateKubernetesClusterWithBodyWithResponse request with arbitrary body returning *CreateKubernetesClusterResponse

func (*ClientWithResponses) CreateKubernetesClusterWithResponse

func (c *ClientWithResponses) CreateKubernetesClusterWithResponse(ctx context.Context, body CreateKubernetesClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateKubernetesClusterResponse, error)

func (*ClientWithResponses) CreateLoadbalancerWithBodyWithResponse added in v1.3.0

func (c *ClientWithResponses) CreateLoadbalancerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLoadbalancerResponse, error)

CreateLoadbalancerWithBodyWithResponse request with arbitrary body returning *CreateLoadbalancerResponse

func (*ClientWithResponses) CreateLoadbalancerWithResponse added in v1.3.0

func (c *ClientWithResponses) CreateLoadbalancerWithResponse(ctx context.Context, body CreateLoadbalancerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLoadbalancerResponse, error)

func (*ClientWithResponses) CreatePrivateNetworkWithBodyWithResponse

func (c *ClientWithResponses) CreatePrivateNetworkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePrivateNetworkResponse, error)

CreatePrivateNetworkWithBodyWithResponse request with arbitrary body returning *CreatePrivateNetworkResponse

func (*ClientWithResponses) CreatePrivateNetworkWithResponse

func (c *ClientWithResponses) CreatePrivateNetworkWithResponse(ctx context.Context, body CreatePrivateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePrivateNetworkResponse, error)

func (*ClientWithResponses) CreateSSHKeyWithBodyWithResponse

func (c *ClientWithResponses) CreateSSHKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSSHKeyResponse, error)

CreateSSHKeyWithBodyWithResponse request with arbitrary body returning *CreateSSHKeyResponse

func (*ClientWithResponses) CreateSSHKeyWithResponse

func (c *ClientWithResponses) CreateSSHKeyWithResponse(ctx context.Context, body CreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSSHKeyResponse, error)

func (*ClientWithResponses) CreateSecurityGroupWithBodyWithResponse

func (c *ClientWithResponses) CreateSecurityGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecurityGroupResponse, error)

CreateSecurityGroupWithBodyWithResponse request with arbitrary body returning *CreateSecurityGroupResponse

func (*ClientWithResponses) CreateSecurityGroupWithResponse

func (c *ClientWithResponses) CreateSecurityGroupWithResponse(ctx context.Context, body CreateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecurityGroupResponse, error)

func (*ClientWithResponses) CreateSnapshotWithBodyWithResponse

func (c *ClientWithResponses) CreateSnapshotWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)

CreateSnapshotWithBodyWithResponse request with arbitrary body returning *CreateSnapshotResponse

func (*ClientWithResponses) CreateSnapshotWithResponse

func (c *ClientWithResponses) CreateSnapshotWithResponse(ctx context.Context, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)

func (*ClientWithResponses) CreateVolumeWithBodyWithResponse

func (c *ClientWithResponses) CreateVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)

CreateVolumeWithBodyWithResponse request with arbitrary body returning *CreateVolumeResponse

func (*ClientWithResponses) CreateVolumeWithResponse

func (c *ClientWithResponses) CreateVolumeWithResponse(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)

func (*ClientWithResponses) DeleteFilesystemWithResponse

func (c *ClientWithResponses) DeleteFilesystemWithResponse(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*DeleteFilesystemResponse, error)

DeleteFilesystemWithResponse request returning *DeleteFilesystemResponse

func (*ClientWithResponses) DeleteFloatingIPWithResponse

func (c *ClientWithResponses) DeleteFloatingIPWithResponse(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*DeleteFloatingIPResponse, error)

DeleteFloatingIPWithResponse request returning *DeleteFloatingIPResponse

func (*ClientWithResponses) DeleteInstanceWithResponse

func (c *ClientWithResponses) DeleteInstanceWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*DeleteInstanceResponse, error)

DeleteInstanceWithResponse request returning *DeleteInstanceResponse

func (*ClientWithResponses) DeleteKubernetesClusterWithResponse

func (c *ClientWithResponses) DeleteKubernetesClusterWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*DeleteKubernetesClusterResponse, error)

DeleteKubernetesClusterWithResponse request returning *DeleteKubernetesClusterResponse

func (*ClientWithResponses) DeleteLoadbalancerWithResponse added in v1.3.0

func (c *ClientWithResponses) DeleteLoadbalancerWithResponse(ctx context.Context, loadbalancerId string, reqEditors ...RequestEditorFn) (*DeleteLoadbalancerResponse, error)

DeleteLoadbalancerWithResponse request returning *DeleteLoadbalancerResponse

func (*ClientWithResponses) DeletePrivateNetworkWithResponse

func (c *ClientWithResponses) DeletePrivateNetworkWithResponse(ctx context.Context, networkId string, reqEditors ...RequestEditorFn) (*DeletePrivateNetworkResponse, error)

DeletePrivateNetworkWithResponse request returning *DeletePrivateNetworkResponse

func (*ClientWithResponses) DeleteSSHKeyWithResponse

func (c *ClientWithResponses) DeleteSSHKeyWithResponse(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*DeleteSSHKeyResponse, error)

DeleteSSHKeyWithResponse request returning *DeleteSSHKeyResponse

func (*ClientWithResponses) DeleteSecurityGroupWithResponse

func (c *ClientWithResponses) DeleteSecurityGroupWithResponse(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*DeleteSecurityGroupResponse, error)

DeleteSecurityGroupWithResponse request returning *DeleteSecurityGroupResponse

func (*ClientWithResponses) DeleteSnapshotWithResponse

func (c *ClientWithResponses) DeleteSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error)

DeleteSnapshotWithResponse request returning *DeleteSnapshotResponse

func (*ClientWithResponses) DeleteVolumeWithResponse

func (c *ClientWithResponses) DeleteVolumeWithResponse(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*DeleteVolumeResponse, error)

DeleteVolumeWithResponse request returning *DeleteVolumeResponse

func (*ClientWithResponses) GetFilesystemWithResponse

func (c *ClientWithResponses) GetFilesystemWithResponse(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*GetFilesystemResponse, error)

GetFilesystemWithResponse request returning *GetFilesystemResponse

func (*ClientWithResponses) GetFloatingIPWithResponse

func (c *ClientWithResponses) GetFloatingIPWithResponse(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*GetFloatingIPResponse, error)

GetFloatingIPWithResponse request returning *GetFloatingIPResponse

func (*ClientWithResponses) GetInstanceActionsWithResponse

func (c *ClientWithResponses) GetInstanceActionsWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*GetInstanceActionsResponse, error)

GetInstanceActionsWithResponse request returning *GetInstanceActionsResponse

func (*ClientWithResponses) GetInstanceUserMetadataWithResponse

func (c *ClientWithResponses) GetInstanceUserMetadataWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*GetInstanceUserMetadataResponse, error)

GetInstanceUserMetadataWithResponse request returning *GetInstanceUserMetadataResponse

func (*ClientWithResponses) GetInstanceWithResponse

func (c *ClientWithResponses) GetInstanceWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*GetInstanceResponse, error)

GetInstanceWithResponse request returning *GetInstanceResponse

func (*ClientWithResponses) GetInstancesAvailabilityWithResponse

func (c *ClientWithResponses) GetInstancesAvailabilityWithResponse(ctx context.Context, region Region, params *GetInstancesAvailabilityParams, reqEditors ...RequestEditorFn) (*GetInstancesAvailabilityResponse, error)

GetInstancesAvailabilityWithResponse request returning *GetInstancesAvailabilityResponse

func (*ClientWithResponses) GetKubernetesClusterCredentialsWithResponse

func (c *ClientWithResponses) GetKubernetesClusterCredentialsWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetKubernetesClusterCredentialsResponse, error)

GetKubernetesClusterCredentialsWithResponse request returning *GetKubernetesClusterCredentialsResponse

func (*ClientWithResponses) GetKubernetesClusterWithResponse

func (c *ClientWithResponses) GetKubernetesClusterWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetKubernetesClusterResponse, error)

GetKubernetesClusterWithResponse request returning *GetKubernetesClusterResponse

func (*ClientWithResponses) GetLoadbalancerWithResponse added in v1.3.0

func (c *ClientWithResponses) GetLoadbalancerWithResponse(ctx context.Context, loadbalancerId string, reqEditors ...RequestEditorFn) (*GetLoadbalancerResponse, error)

GetLoadbalancerWithResponse request returning *GetLoadbalancerResponse

func (*ClientWithResponses) GetPrivateNetworkWithResponse

func (c *ClientWithResponses) GetPrivateNetworkWithResponse(ctx context.Context, networkId string, reqEditors ...RequestEditorFn) (*GetPrivateNetworkResponse, error)

GetPrivateNetworkWithResponse request returning *GetPrivateNetworkResponse

func (*ClientWithResponses) GetQuotasWithResponse

func (c *ClientWithResponses) GetQuotasWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetQuotasResponse, error)

GetQuotasWithResponse request returning *GetQuotasResponse

func (*ClientWithResponses) GetReservationsWithResponse

func (c *ClientWithResponses) GetReservationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReservationsResponse, error)

GetReservationsWithResponse request returning *GetReservationsResponse

func (*ClientWithResponses) GetSSHKeyWithResponse

func (c *ClientWithResponses) GetSSHKeyWithResponse(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*GetSSHKeyResponse, error)

GetSSHKeyWithResponse request returning *GetSSHKeyResponse

func (*ClientWithResponses) GetSecurityGroupWithResponse

func (c *ClientWithResponses) GetSecurityGroupWithResponse(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*GetSecurityGroupResponse, error)

GetSecurityGroupWithResponse request returning *GetSecurityGroupResponse

func (*ClientWithResponses) GetSnapshotWithResponse

func (c *ClientWithResponses) GetSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)

GetSnapshotWithResponse request returning *GetSnapshotResponse

func (*ClientWithResponses) GetVolumeWithResponse

func (c *ClientWithResponses) GetVolumeWithResponse(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*GetVolumeResponse, error)

GetVolumeWithResponse request returning *GetVolumeResponse

func (*ClientWithResponses) ListFilesystemsPaginatedWithResponse

func (c *ClientWithResponses) ListFilesystemsPaginatedWithResponse(ctx context.Context, params *ListFilesystemsPaginatedParams, reqEditors ...RequestEditorFn) (*ListFilesystemsPaginatedResponse, error)

ListFilesystemsPaginatedWithResponse request returning *ListFilesystemsPaginatedResponse

func (*ClientWithResponses) ListFloatingIPsPaginatedWithResponse

func (c *ClientWithResponses) ListFloatingIPsPaginatedWithResponse(ctx context.Context, params *ListFloatingIPsPaginatedParams, reqEditors ...RequestEditorFn) (*ListFloatingIPsPaginatedResponse, error)

ListFloatingIPsPaginatedWithResponse request returning *ListFloatingIPsPaginatedResponse

func (*ClientWithResponses) ListImagesPaginatedWithResponse

func (c *ClientWithResponses) ListImagesPaginatedWithResponse(ctx context.Context, params *ListImagesPaginatedParams, reqEditors ...RequestEditorFn) (*ListImagesPaginatedResponse, error)

ListImagesPaginatedWithResponse request returning *ListImagesPaginatedResponse

func (*ClientWithResponses) ListInstanceSnapshotsPaginatedWithResponse

func (c *ClientWithResponses) ListInstanceSnapshotsPaginatedWithResponse(ctx context.Context, instanceId string, params *ListInstanceSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*ListInstanceSnapshotsPaginatedResponse, error)

ListInstanceSnapshotsPaginatedWithResponse request returning *ListInstanceSnapshotsPaginatedResponse

func (*ClientWithResponses) ListInstancesPaginatedWithResponse

func (c *ClientWithResponses) ListInstancesPaginatedWithResponse(ctx context.Context, params *ListInstancesPaginatedParams, reqEditors ...RequestEditorFn) (*ListInstancesPaginatedResponse, error)

ListInstancesPaginatedWithResponse request returning *ListInstancesPaginatedResponse

func (*ClientWithResponses) ListKubernetesClustersWithResponse

func (c *ClientWithResponses) ListKubernetesClustersWithResponse(ctx context.Context, params *ListKubernetesClustersParams, reqEditors ...RequestEditorFn) (*ListKubernetesClustersResponse, error)

ListKubernetesClustersWithResponse request returning *ListKubernetesClustersResponse

func (*ClientWithResponses) ListLoadbalancersWithResponse added in v1.3.0

func (c *ClientWithResponses) ListLoadbalancersWithResponse(ctx context.Context, params *ListLoadbalancersParams, reqEditors ...RequestEditorFn) (*ListLoadbalancersResponse, error)

ListLoadbalancersWithResponse request returning *ListLoadbalancersResponse

func (*ClientWithResponses) ListPrivateNetworksWithResponse

func (c *ClientWithResponses) ListPrivateNetworksWithResponse(ctx context.Context, params *ListPrivateNetworksParams, reqEditors ...RequestEditorFn) (*ListPrivateNetworksResponse, error)

ListPrivateNetworksWithResponse request returning *ListPrivateNetworksResponse

func (*ClientWithResponses) ListSSHKeysPaginatedWithResponse

func (c *ClientWithResponses) ListSSHKeysPaginatedWithResponse(ctx context.Context, params *ListSSHKeysPaginatedParams, reqEditors ...RequestEditorFn) (*ListSSHKeysPaginatedResponse, error)

ListSSHKeysPaginatedWithResponse request returning *ListSSHKeysPaginatedResponse

func (*ClientWithResponses) ListSecurityGroupsPaginatedWithResponse

func (c *ClientWithResponses) ListSecurityGroupsPaginatedWithResponse(ctx context.Context, params *ListSecurityGroupsPaginatedParams, reqEditors ...RequestEditorFn) (*ListSecurityGroupsPaginatedResponse, error)

ListSecurityGroupsPaginatedWithResponse request returning *ListSecurityGroupsPaginatedResponse

func (*ClientWithResponses) ListSnapshotsPaginatedWithResponse

func (c *ClientWithResponses) ListSnapshotsPaginatedWithResponse(ctx context.Context, params *ListSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*ListSnapshotsPaginatedResponse, error)

ListSnapshotsPaginatedWithResponse request returning *ListSnapshotsPaginatedResponse

func (*ClientWithResponses) ListVolumesPaginatedWithResponse

func (c *ClientWithResponses) ListVolumesPaginatedWithResponse(ctx context.Context, params *ListVolumesPaginatedParams, reqEditors ...RequestEditorFn) (*ListVolumesPaginatedResponse, error)

ListVolumesPaginatedWithResponse request returning *ListVolumesPaginatedResponse

func (*ClientWithResponses) PerformInstanceActionWithBodyWithResponse

func (c *ClientWithResponses) PerformInstanceActionWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PerformInstanceActionResponse, error)

PerformInstanceActionWithBodyWithResponse request with arbitrary body returning *PerformInstanceActionResponse

func (*ClientWithResponses) PerformInstanceActionWithResponse

func (c *ClientWithResponses) PerformInstanceActionWithResponse(ctx context.Context, instanceId string, body PerformInstanceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*PerformInstanceActionResponse, error)

func (*ClientWithResponses) UpdateFilesystemWithBodyWithResponse

func (c *ClientWithResponses) UpdateFilesystemWithBodyWithResponse(ctx context.Context, filesystemId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFilesystemResponse, error)

UpdateFilesystemWithBodyWithResponse request with arbitrary body returning *UpdateFilesystemResponse

func (*ClientWithResponses) UpdateFilesystemWithResponse

func (c *ClientWithResponses) UpdateFilesystemWithResponse(ctx context.Context, filesystemId string, body UpdateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFilesystemResponse, error)

func (*ClientWithResponses) UpdateFloatingIPWithBodyWithResponse

func (c *ClientWithResponses) UpdateFloatingIPWithBodyWithResponse(ctx context.Context, floatingIpId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFloatingIPResponse, error)

UpdateFloatingIPWithBodyWithResponse request with arbitrary body returning *UpdateFloatingIPResponse

func (*ClientWithResponses) UpdateFloatingIPWithResponse

func (c *ClientWithResponses) UpdateFloatingIPWithResponse(ctx context.Context, floatingIpId string, body UpdateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFloatingIPResponse, error)

func (*ClientWithResponses) UpdateInstanceWithBodyWithResponse

func (c *ClientWithResponses) UpdateInstanceWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInstanceResponse, error)

UpdateInstanceWithBodyWithResponse request with arbitrary body returning *UpdateInstanceResponse

func (*ClientWithResponses) UpdateInstanceWithResponse

func (c *ClientWithResponses) UpdateInstanceWithResponse(ctx context.Context, instanceId string, body UpdateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInstanceResponse, error)

func (*ClientWithResponses) UpdateKubernetesClusterWithBodyWithResponse

func (c *ClientWithResponses) UpdateKubernetesClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateKubernetesClusterResponse, error)

UpdateKubernetesClusterWithBodyWithResponse request with arbitrary body returning *UpdateKubernetesClusterResponse

func (*ClientWithResponses) UpdateKubernetesClusterWithResponse

func (c *ClientWithResponses) UpdateKubernetesClusterWithResponse(ctx context.Context, clusterId string, body UpdateKubernetesClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateKubernetesClusterResponse, error)

func (*ClientWithResponses) UpdateLoadbalancerWithBodyWithResponse added in v1.3.0

func (c *ClientWithResponses) UpdateLoadbalancerWithBodyWithResponse(ctx context.Context, loadbalancerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLoadbalancerResponse, error)

UpdateLoadbalancerWithBodyWithResponse request with arbitrary body returning *UpdateLoadbalancerResponse

func (*ClientWithResponses) UpdateLoadbalancerWithResponse added in v1.3.0

func (c *ClientWithResponses) UpdateLoadbalancerWithResponse(ctx context.Context, loadbalancerId string, body UpdateLoadbalancerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLoadbalancerResponse, error)

func (*ClientWithResponses) UpdatePrivateNetworkWithBodyWithResponse

func (c *ClientWithResponses) UpdatePrivateNetworkWithBodyWithResponse(ctx context.Context, networkId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePrivateNetworkResponse, error)

UpdatePrivateNetworkWithBodyWithResponse request with arbitrary body returning *UpdatePrivateNetworkResponse

func (*ClientWithResponses) UpdatePrivateNetworkWithResponse

func (c *ClientWithResponses) UpdatePrivateNetworkWithResponse(ctx context.Context, networkId string, body UpdatePrivateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePrivateNetworkResponse, error)

func (*ClientWithResponses) UpdateSSHKeyWithBodyWithResponse

func (c *ClientWithResponses) UpdateSSHKeyWithBodyWithResponse(ctx context.Context, sshKeyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSSHKeyResponse, error)

UpdateSSHKeyWithBodyWithResponse request with arbitrary body returning *UpdateSSHKeyResponse

func (*ClientWithResponses) UpdateSSHKeyWithResponse

func (c *ClientWithResponses) UpdateSSHKeyWithResponse(ctx context.Context, sshKeyId string, body UpdateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSSHKeyResponse, error)

func (*ClientWithResponses) UpdateSecurityGroupWithBodyWithResponse

func (c *ClientWithResponses) UpdateSecurityGroupWithBodyWithResponse(ctx context.Context, securityGroupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecurityGroupResponse, error)

UpdateSecurityGroupWithBodyWithResponse request with arbitrary body returning *UpdateSecurityGroupResponse

func (*ClientWithResponses) UpdateSecurityGroupWithResponse

func (c *ClientWithResponses) UpdateSecurityGroupWithResponse(ctx context.Context, securityGroupId string, body UpdateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecurityGroupResponse, error)

func (*ClientWithResponses) UpdateSnapshotWithBodyWithResponse

func (c *ClientWithResponses) UpdateSnapshotWithBodyWithResponse(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSnapshotResponse, error)

UpdateSnapshotWithBodyWithResponse request with arbitrary body returning *UpdateSnapshotResponse

func (*ClientWithResponses) UpdateSnapshotWithResponse

func (c *ClientWithResponses) UpdateSnapshotWithResponse(ctx context.Context, snapshotId string, body UpdateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSnapshotResponse, error)

func (*ClientWithResponses) UpdateVolumeWithBodyWithResponse

func (c *ClientWithResponses) UpdateVolumeWithBodyWithResponse(ctx context.Context, volumeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVolumeResponse, error)

UpdateVolumeWithBodyWithResponse request with arbitrary body returning *UpdateVolumeResponse

func (*ClientWithResponses) UpdateVolumeWithResponse

func (c *ClientWithResponses) UpdateVolumeWithResponse(ctx context.Context, volumeId string, body UpdateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVolumeResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetInstancesAvailabilityWithResponse request
	GetInstancesAvailabilityWithResponse(ctx context.Context, region Region, params *GetInstancesAvailabilityParams, reqEditors ...RequestEditorFn) (*GetInstancesAvailabilityResponse, error)

	// ListFilesystemsPaginatedWithResponse request
	ListFilesystemsPaginatedWithResponse(ctx context.Context, params *ListFilesystemsPaginatedParams, reqEditors ...RequestEditorFn) (*ListFilesystemsPaginatedResponse, error)

	// CreateFilesystemWithBodyWithResponse request with any body
	CreateFilesystemWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFilesystemResponse, error)

	CreateFilesystemWithResponse(ctx context.Context, body CreateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFilesystemResponse, error)

	// DeleteFilesystemWithResponse request
	DeleteFilesystemWithResponse(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*DeleteFilesystemResponse, error)

	// GetFilesystemWithResponse request
	GetFilesystemWithResponse(ctx context.Context, filesystemId string, reqEditors ...RequestEditorFn) (*GetFilesystemResponse, error)

	// UpdateFilesystemWithBodyWithResponse request with any body
	UpdateFilesystemWithBodyWithResponse(ctx context.Context, filesystemId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFilesystemResponse, error)

	UpdateFilesystemWithResponse(ctx context.Context, filesystemId string, body UpdateFilesystemJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFilesystemResponse, error)

	// ListFloatingIPsPaginatedWithResponse request
	ListFloatingIPsPaginatedWithResponse(ctx context.Context, params *ListFloatingIPsPaginatedParams, reqEditors ...RequestEditorFn) (*ListFloatingIPsPaginatedResponse, error)

	// CreateFloatingIPWithBodyWithResponse request with any body
	CreateFloatingIPWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFloatingIPResponse, error)

	CreateFloatingIPWithResponse(ctx context.Context, body CreateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFloatingIPResponse, error)

	// DeleteFloatingIPWithResponse request
	DeleteFloatingIPWithResponse(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*DeleteFloatingIPResponse, error)

	// GetFloatingIPWithResponse request
	GetFloatingIPWithResponse(ctx context.Context, floatingIpId string, reqEditors ...RequestEditorFn) (*GetFloatingIPResponse, error)

	// UpdateFloatingIPWithBodyWithResponse request with any body
	UpdateFloatingIPWithBodyWithResponse(ctx context.Context, floatingIpId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFloatingIPResponse, error)

	UpdateFloatingIPWithResponse(ctx context.Context, floatingIpId string, body UpdateFloatingIPJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFloatingIPResponse, error)

	// ListImagesPaginatedWithResponse request
	ListImagesPaginatedWithResponse(ctx context.Context, params *ListImagesPaginatedParams, reqEditors ...RequestEditorFn) (*ListImagesPaginatedResponse, error)

	// ListInstancesPaginatedWithResponse request
	ListInstancesPaginatedWithResponse(ctx context.Context, params *ListInstancesPaginatedParams, reqEditors ...RequestEditorFn) (*ListInstancesPaginatedResponse, error)

	// CreateInstanceWithBodyWithResponse request with any body
	CreateInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInstanceResponse, error)

	CreateInstanceWithResponse(ctx context.Context, body CreateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInstanceResponse, error)

	// DeleteInstanceWithResponse request
	DeleteInstanceWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*DeleteInstanceResponse, error)

	// GetInstanceWithResponse request
	GetInstanceWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*GetInstanceResponse, error)

	// UpdateInstanceWithBodyWithResponse request with any body
	UpdateInstanceWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInstanceResponse, error)

	UpdateInstanceWithResponse(ctx context.Context, instanceId string, body UpdateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInstanceResponse, error)

	// GetInstanceActionsWithResponse request
	GetInstanceActionsWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*GetInstanceActionsResponse, error)

	// PerformInstanceActionWithBodyWithResponse request with any body
	PerformInstanceActionWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PerformInstanceActionResponse, error)

	PerformInstanceActionWithResponse(ctx context.Context, instanceId string, body PerformInstanceActionJSONRequestBody, reqEditors ...RequestEditorFn) (*PerformInstanceActionResponse, error)

	// ListInstanceSnapshotsPaginatedWithResponse request
	ListInstanceSnapshotsPaginatedWithResponse(ctx context.Context, instanceId string, params *ListInstanceSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*ListInstanceSnapshotsPaginatedResponse, error)

	// CreateInstanceSnapshotWithBodyWithResponse request with any body
	CreateInstanceSnapshotWithBodyWithResponse(ctx context.Context, instanceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInstanceSnapshotResponse, error)

	CreateInstanceSnapshotWithResponse(ctx context.Context, instanceId string, body CreateInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInstanceSnapshotResponse, error)

	// GetInstanceUserMetadataWithResponse request
	GetInstanceUserMetadataWithResponse(ctx context.Context, instanceId string, reqEditors ...RequestEditorFn) (*GetInstanceUserMetadataResponse, error)

	// ListKubernetesClustersWithResponse request
	ListKubernetesClustersWithResponse(ctx context.Context, params *ListKubernetesClustersParams, reqEditors ...RequestEditorFn) (*ListKubernetesClustersResponse, error)

	// CreateKubernetesClusterWithBodyWithResponse request with any body
	CreateKubernetesClusterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateKubernetesClusterResponse, error)

	CreateKubernetesClusterWithResponse(ctx context.Context, body CreateKubernetesClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateKubernetesClusterResponse, error)

	// DeleteKubernetesClusterWithResponse request
	DeleteKubernetesClusterWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*DeleteKubernetesClusterResponse, error)

	// GetKubernetesClusterWithResponse request
	GetKubernetesClusterWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetKubernetesClusterResponse, error)

	// UpdateKubernetesClusterWithBodyWithResponse request with any body
	UpdateKubernetesClusterWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateKubernetesClusterResponse, error)

	UpdateKubernetesClusterWithResponse(ctx context.Context, clusterId string, body UpdateKubernetesClusterJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateKubernetesClusterResponse, error)

	// GetKubernetesClusterCredentialsWithResponse request
	GetKubernetesClusterCredentialsWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*GetKubernetesClusterCredentialsResponse, error)

	// ListLoadbalancersWithResponse request
	ListLoadbalancersWithResponse(ctx context.Context, params *ListLoadbalancersParams, reqEditors ...RequestEditorFn) (*ListLoadbalancersResponse, error)

	// CreateLoadbalancerWithBodyWithResponse request with any body
	CreateLoadbalancerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLoadbalancerResponse, error)

	CreateLoadbalancerWithResponse(ctx context.Context, body CreateLoadbalancerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLoadbalancerResponse, error)

	// DeleteLoadbalancerWithResponse request
	DeleteLoadbalancerWithResponse(ctx context.Context, loadbalancerId string, reqEditors ...RequestEditorFn) (*DeleteLoadbalancerResponse, error)

	// GetLoadbalancerWithResponse request
	GetLoadbalancerWithResponse(ctx context.Context, loadbalancerId string, reqEditors ...RequestEditorFn) (*GetLoadbalancerResponse, error)

	// UpdateLoadbalancerWithBodyWithResponse request with any body
	UpdateLoadbalancerWithBodyWithResponse(ctx context.Context, loadbalancerId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLoadbalancerResponse, error)

	UpdateLoadbalancerWithResponse(ctx context.Context, loadbalancerId string, body UpdateLoadbalancerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLoadbalancerResponse, error)

	// ListPrivateNetworksWithResponse request
	ListPrivateNetworksWithResponse(ctx context.Context, params *ListPrivateNetworksParams, reqEditors ...RequestEditorFn) (*ListPrivateNetworksResponse, error)

	// CreatePrivateNetworkWithBodyWithResponse request with any body
	CreatePrivateNetworkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePrivateNetworkResponse, error)

	CreatePrivateNetworkWithResponse(ctx context.Context, body CreatePrivateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePrivateNetworkResponse, error)

	// DeletePrivateNetworkWithResponse request
	DeletePrivateNetworkWithResponse(ctx context.Context, networkId string, reqEditors ...RequestEditorFn) (*DeletePrivateNetworkResponse, error)

	// GetPrivateNetworkWithResponse request
	GetPrivateNetworkWithResponse(ctx context.Context, networkId string, reqEditors ...RequestEditorFn) (*GetPrivateNetworkResponse, error)

	// UpdatePrivateNetworkWithBodyWithResponse request with any body
	UpdatePrivateNetworkWithBodyWithResponse(ctx context.Context, networkId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePrivateNetworkResponse, error)

	UpdatePrivateNetworkWithResponse(ctx context.Context, networkId string, body UpdatePrivateNetworkJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePrivateNetworkResponse, error)

	// GetQuotasWithResponse request
	GetQuotasWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetQuotasResponse, error)

	// GetReservationsWithResponse request
	GetReservationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReservationsResponse, error)

	// ListSecurityGroupsPaginatedWithResponse request
	ListSecurityGroupsPaginatedWithResponse(ctx context.Context, params *ListSecurityGroupsPaginatedParams, reqEditors ...RequestEditorFn) (*ListSecurityGroupsPaginatedResponse, error)

	// CreateSecurityGroupWithBodyWithResponse request with any body
	CreateSecurityGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSecurityGroupResponse, error)

	CreateSecurityGroupWithResponse(ctx context.Context, body CreateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSecurityGroupResponse, error)

	// DeleteSecurityGroupWithResponse request
	DeleteSecurityGroupWithResponse(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*DeleteSecurityGroupResponse, error)

	// GetSecurityGroupWithResponse request
	GetSecurityGroupWithResponse(ctx context.Context, securityGroupId string, reqEditors ...RequestEditorFn) (*GetSecurityGroupResponse, error)

	// UpdateSecurityGroupWithBodyWithResponse request with any body
	UpdateSecurityGroupWithBodyWithResponse(ctx context.Context, securityGroupId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecurityGroupResponse, error)

	UpdateSecurityGroupWithResponse(ctx context.Context, securityGroupId string, body UpdateSecurityGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecurityGroupResponse, error)

	// ListSnapshotsPaginatedWithResponse request
	ListSnapshotsPaginatedWithResponse(ctx context.Context, params *ListSnapshotsPaginatedParams, reqEditors ...RequestEditorFn) (*ListSnapshotsPaginatedResponse, error)

	// CreateSnapshotWithBodyWithResponse request with any body
	CreateSnapshotWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)

	CreateSnapshotWithResponse(ctx context.Context, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)

	// DeleteSnapshotWithResponse request
	DeleteSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error)

	// GetSnapshotWithResponse request
	GetSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)

	// UpdateSnapshotWithBodyWithResponse request with any body
	UpdateSnapshotWithBodyWithResponse(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSnapshotResponse, error)

	UpdateSnapshotWithResponse(ctx context.Context, snapshotId string, body UpdateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSnapshotResponse, error)

	// CloneSnapshotWithBodyWithResponse request with any body
	CloneSnapshotWithBodyWithResponse(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloneSnapshotResponse, error)

	CloneSnapshotWithResponse(ctx context.Context, snapshotId string, body CloneSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CloneSnapshotResponse, error)

	// ListSSHKeysPaginatedWithResponse request
	ListSSHKeysPaginatedWithResponse(ctx context.Context, params *ListSSHKeysPaginatedParams, reqEditors ...RequestEditorFn) (*ListSSHKeysPaginatedResponse, error)

	// CreateSSHKeyWithBodyWithResponse request with any body
	CreateSSHKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSSHKeyResponse, error)

	CreateSSHKeyWithResponse(ctx context.Context, body CreateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSSHKeyResponse, error)

	// DeleteSSHKeyWithResponse request
	DeleteSSHKeyWithResponse(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*DeleteSSHKeyResponse, error)

	// GetSSHKeyWithResponse request
	GetSSHKeyWithResponse(ctx context.Context, sshKeyId string, reqEditors ...RequestEditorFn) (*GetSSHKeyResponse, error)

	// UpdateSSHKeyWithBodyWithResponse request with any body
	UpdateSSHKeyWithBodyWithResponse(ctx context.Context, sshKeyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSSHKeyResponse, error)

	UpdateSSHKeyWithResponse(ctx context.Context, sshKeyId string, body UpdateSSHKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSSHKeyResponse, error)

	// ListVolumesPaginatedWithResponse request
	ListVolumesPaginatedWithResponse(ctx context.Context, params *ListVolumesPaginatedParams, reqEditors ...RequestEditorFn) (*ListVolumesPaginatedResponse, error)

	// CreateVolumeWithBodyWithResponse request with any body
	CreateVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)

	CreateVolumeWithResponse(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)

	// DeleteVolumeWithResponse request
	DeleteVolumeWithResponse(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*DeleteVolumeResponse, error)

	// GetVolumeWithResponse request
	GetVolumeWithResponse(ctx context.Context, volumeId string, reqEditors ...RequestEditorFn) (*GetVolumeResponse, error)

	// UpdateVolumeWithBodyWithResponse request with any body
	UpdateVolumeWithBodyWithResponse(ctx context.Context, volumeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateVolumeResponse, error)

	UpdateVolumeWithResponse(ctx context.Context, volumeId string, body UpdateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateVolumeResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CloneSnapshotJSONBody

type CloneSnapshotJSONBody struct {
	// Name The human-readable name set for the clone of the snapshot.
	Name string `json:"name"`

	// Region The region identifier.
	Region Region `json:"region"`
}

CloneSnapshotJSONBody defines parameters for CloneSnapshot.

type CloneSnapshotJSONRequestBody

type CloneSnapshotJSONRequestBody CloneSnapshotJSONBody

CloneSnapshotJSONRequestBody defines body for CloneSnapshot for application/json ContentType.

type CloneSnapshotResponse

type CloneSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *SingleSnapshotResponse
	JSONDefault  *ErrorResponse
}

func ParseCloneSnapshotResponse

func ParseCloneSnapshotResponse(rsp *http.Response) (*CloneSnapshotResponse, error)

ParseCloneSnapshotResponse parses an HTTP response from a CloneSnapshotWithResponse call

func (CloneSnapshotResponse) Status

func (r CloneSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (CloneSnapshotResponse) StatusCode

func (r CloneSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateFilesystemJSONBody

type CreateFilesystemJSONBody struct {
	// Description The human-readable description set for the filesystem.
	Description *string `json:"description,omitempty"`

	// Name The human-readable name set for the filesystem.
	Name string `json:"name"`

	// Region The region identifier.
	Region Region `json:"region"`

	// Size The storage size of this filesystem given in GiB (min: 1GiB).
	Size int `json:"size"`

	// Type The filesystem type.
	Type *FilesystemType `json:"type,omitempty"`
}

CreateFilesystemJSONBody defines parameters for CreateFilesystem.

type CreateFilesystemJSONRequestBody

type CreateFilesystemJSONRequestBody CreateFilesystemJSONBody

CreateFilesystemJSONRequestBody defines body for CreateFilesystem for application/json ContentType.

type CreateFilesystemResponse

type CreateFilesystemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *SingleFilesystemResponse
	JSONDefault  *ErrorResponse
}

func ParseCreateFilesystemResponse

func ParseCreateFilesystemResponse(rsp *http.Response) (*CreateFilesystemResponse, error)

ParseCreateFilesystemResponse parses an HTTP response from a CreateFilesystemWithResponse call

func (CreateFilesystemResponse) Status

func (r CreateFilesystemResponse) Status() string

Status returns HTTPResponse.Status

func (CreateFilesystemResponse) StatusCode

func (r CreateFilesystemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateFloatingIPJSONBody

type CreateFloatingIPJSONBody struct {
	// Description The human-readable description set for the floating IP.
	Description *string `json:"description,omitempty"`

	// Name The human-readable name set for the floating IP.
	Name string `json:"name"`

	// Region The region identifier.
	Region Region `json:"region"`

	// Version The IP version of the floating IP.
	Version *CreateFloatingIPJSONBodyVersion `json:"version,omitempty"`
}

CreateFloatingIPJSONBody defines parameters for CreateFloatingIP.

type CreateFloatingIPJSONBodyVersion

type CreateFloatingIPJSONBodyVersion string

CreateFloatingIPJSONBodyVersion defines parameters for CreateFloatingIP.

const (
	CreateFloatingIPJSONBodyVersionIpv4 CreateFloatingIPJSONBodyVersion = "ipv4"
)

Defines values for CreateFloatingIPJSONBodyVersion.

type CreateFloatingIPJSONRequestBody

type CreateFloatingIPJSONRequestBody CreateFloatingIPJSONBody

CreateFloatingIPJSONRequestBody defines body for CreateFloatingIP for application/json ContentType.

type CreateFloatingIPResponse

type CreateFloatingIPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *SingleFloatingIPResponse
	JSONDefault  *ErrorResponse
}

func ParseCreateFloatingIPResponse

func ParseCreateFloatingIPResponse(rsp *http.Response) (*CreateFloatingIPResponse, error)

ParseCreateFloatingIPResponse parses an HTTP response from a CreateFloatingIPWithResponse call

func (CreateFloatingIPResponse) Status

func (r CreateFloatingIPResponse) Status() string

Status returns HTTPResponse.Status

func (CreateFloatingIPResponse) StatusCode

func (r CreateFloatingIPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateInstanceJSONBody

type CreateInstanceJSONBody struct {
	// BillingType The billing type of the instance.
	BillingType *InstanceBillingType `json:"billing_type,omitempty"`

	// DestroyOnShutdown Option that you can set at instance creation that will allow the instance to destroy on shutdown command
	DestroyOnShutdown *InstanceDestroyOnShutdown `json:"destroy_on_shutdown,omitempty"`

	// DiskSize The storage size of the instance's boot volume given in GiB.
	DiskSize *InstanceDiskSize `json:"disk_size,omitempty"`

	// FloatingIp The id of the floating IP to attach to the instance.
	FloatingIp *InstanceFloatingIp `json:"floating_ip,omitempty"`

	// Hostname The hostname of your instance.
	Hostname InstanceHostname `json:"hostname"`

	// Image A unique number that can be used to identify and reference a specific image.
	Image ImageId `json:"image"`

	// IsProtected Specifies if the instance is termination protected.
	// When set to `true`, it"s not possible to destroy the instance until it"s switched to `false`.
	// Set to `true` automatically for long-term billed instances.
	IsProtected *InstanceIsProtected `json:"is_protected,omitempty"`

	// K8sCluster Kubernetes cluster this instance belongs to
	K8sCluster *InstanceK8sCluster `json:"k8s_cluster"`

	// Metadata Option to provide metadata.
	Metadata *struct {
		// StartupScript A plain text bash script or "cloud-config" file that will be executed after the first instance boot.
		// It is limited to 64 KiB in size. You can use it to configure your instance, e.g. installing the **NVIDIA GPU driver**.
		// Learn more about [startup scripts and installing the GPU driver](https://support.com/support/solutions/articles/47001122478).
		StartupScript *string           `json:"startup_script,omitempty"`
		UserData      *InstanceUserData `json:"user_data,omitempty"`
	} `json:"metadata,omitempty"`

	// Name The human-readable name set for the instance.
	Name InstanceName `json:"name"`

	// Password The password to access the instance.
	// Your password must have upper and lower chars, digits and length between 8-72.
	// **Please Note**: Only one of `ssh_keys` or `password` can be provided.
	// Password is less secure - we recommend you use an SSH key-pair.
	Password *string `json:"password,omitempty"`

	// PlacementOption The placement option identifier in which instances are physically located relative to each other within a zone.
	PlacementOption *string `json:"placement_option,omitempty"`

	// PrivateNetworks An array of network ids.
	PrivateNetworks *[]PrivateNetworkId `json:"private_networks,omitempty"`

	// PublicIpv6 A boolean value indicating whether the instance should have an ipv6 address or not.
	PublicIpv6 *InstancePublicIpv6 `json:"public_ipv6,omitempty"`

	// Region The region identifier.
	Region Region `json:"region"`

	// ReservationId The unique ID of the reservation the instance is associated with.
	ReservationId *string `json:"reservation_id,omitempty"`

	// ReuseLongTermSubscription The long term subscription id to be used for this instance.
	// If not provided, the billing_type will default to on-demand.
	ReuseLongTermSubscription *InstanceReuseLongTermSubscription `json:"reuse_long_term_subscription,omitempty"`

	// SecurityGroups An array of security group ids.
	SecurityGroups *[]SecurityGroupId `json:"security_groups,omitempty"`

	// SshKeys An array of ssh key ids.
	// This should not be provided if `password` authentication method is desired.
	SshKeys *[]InstanceSSHKeyId `json:"ssh_keys,omitempty"`

	// Type The instance type identifier.
	Type InstanceType `json:"type"`

	// Volumes An array of volume ids.
	Volumes *[]VolumeId `json:"volumes,omitempty"`
}

CreateInstanceJSONBody defines parameters for CreateInstance.

type CreateInstanceJSONRequestBody

type CreateInstanceJSONRequestBody CreateInstanceJSONBody

CreateInstanceJSONRequestBody defines body for CreateInstance for application/json ContentType.

type CreateInstanceResponse

type CreateInstanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *SingleInstanceResponse
	JSONDefault  *ErrorResponse
}

func ParseCreateInstanceResponse

func ParseCreateInstanceResponse(rsp *http.Response) (*CreateInstanceResponse, error)

ParseCreateInstanceResponse parses an HTTP response from a CreateInstanceWithResponse call

func (CreateInstanceResponse) Status

func (r CreateInstanceResponse) Status() string

Status returns HTTPResponse.Status

func (CreateInstanceResponse) StatusCode

func (r CreateInstanceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateInstanceSnapshotJSONBody

type CreateInstanceSnapshotJSONBody struct {
	// Name Name of the snapshot.
	Name string `json:"name"`

	// ReplicatedRegion The region identifier.
	ReplicatedRegion *Region `json:"replicated_region,omitempty"`
}

CreateInstanceSnapshotJSONBody defines parameters for CreateInstanceSnapshot.

type CreateInstanceSnapshotJSONRequestBody

type CreateInstanceSnapshotJSONRequestBody CreateInstanceSnapshotJSONBody

CreateInstanceSnapshotJSONRequestBody defines body for CreateInstanceSnapshot for application/json ContentType.

type CreateInstanceSnapshotResponse

type CreateInstanceSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *SingleSnapshotResponse
	JSONDefault  *ErrorResponse
}

func ParseCreateInstanceSnapshotResponse

func ParseCreateInstanceSnapshotResponse(rsp *http.Response) (*CreateInstanceSnapshotResponse, error)

ParseCreateInstanceSnapshotResponse parses an HTTP response from a CreateInstanceSnapshotWithResponse call

func (CreateInstanceSnapshotResponse) Status

Status returns HTTPResponse.Status

func (CreateInstanceSnapshotResponse) StatusCode

func (r CreateInstanceSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateKubernetesClusterJSONBody

type CreateKubernetesClusterJSONBody struct {
	// Id Optional ID for the cluster. If not provided, one will be generated.
	Id *string `json:"id,omitempty"`

	// Network The network ID for the cluster.
	Network *string `json:"network"`
}

CreateKubernetesClusterJSONBody defines parameters for CreateKubernetesCluster.

type CreateKubernetesClusterJSONRequestBody

type CreateKubernetesClusterJSONRequestBody CreateKubernetesClusterJSONBody

CreateKubernetesClusterJSONRequestBody defines body for CreateKubernetesCluster for application/json ContentType.

type CreateKubernetesClusterResponse

type CreateKubernetesClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *SingleKubernetesClusterResponse
	JSONDefault  *ErrorResponse
}

func ParseCreateKubernetesClusterResponse

func ParseCreateKubernetesClusterResponse(rsp *http.Response) (*CreateKubernetesClusterResponse, error)

ParseCreateKubernetesClusterResponse parses an HTTP response from a CreateKubernetesClusterWithResponse call

func (CreateKubernetesClusterResponse) Status

Status returns HTTPResponse.Status

func (CreateKubernetesClusterResponse) StatusCode

func (r CreateKubernetesClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateLoadbalancerJSONBody added in v1.3.0

type CreateLoadbalancerJSONBody struct {
	// Description The human-readable description for the load balancer.
	Description *string `json:"description,omitempty"`

	// Name The human-readable name for the load balancer.
	Name string `json:"name"`

	// Network The private network to use for the load balancer.
	Network string `json:"network"`

	// Ports List of port mappings for the load balancer.
	Ports []LoadbalancerPort `json:"ports"`

	// Region The region identifier.
	Region Region `json:"region"`
}

CreateLoadbalancerJSONBody defines parameters for CreateLoadbalancer.

type CreateLoadbalancerJSONRequestBody added in v1.3.0

type CreateLoadbalancerJSONRequestBody CreateLoadbalancerJSONBody

CreateLoadbalancerJSONRequestBody defines body for CreateLoadbalancer for application/json ContentType.

type CreateLoadbalancerResponse added in v1.3.0

type CreateLoadbalancerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *SingleLoadbalancerResponse
	JSONDefault  *ErrorResponse
}

func ParseCreateLoadbalancerResponse added in v1.3.0

func ParseCreateLoadbalancerResponse(rsp *http.Response) (*CreateLoadbalancerResponse, error)

ParseCreateLoadbalancerResponse parses an HTTP response from a CreateLoadbalancerWithResponse call

func (CreateLoadbalancerResponse) Status added in v1.3.0

Status returns HTTPResponse.Status

func (CreateLoadbalancerResponse) StatusCode added in v1.3.0

func (r CreateLoadbalancerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreatePrivateNetworkJSONBody

type CreatePrivateNetworkJSONBody struct {
	// CidrV4 The IPv4 CIDR block for the private network.
	CidrV4 *string `json:"cidr_v4,omitempty"`

	// CidrV6 The IPv6 CIDR block for the private network.
	CidrV6 *string `json:"cidr_v6,omitempty"`

	// Description The human-readable description set for the private network.
	Description *string `json:"description,omitempty"`

	// Name The human-readable name set for the private network.
	Name string `json:"name"`

	// Region The region identifier.
	Region Region `json:"region"`
}

CreatePrivateNetworkJSONBody defines parameters for CreatePrivateNetwork.

type CreatePrivateNetworkJSONRequestBody

type CreatePrivateNetworkJSONRequestBody CreatePrivateNetworkJSONBody

CreatePrivateNetworkJSONRequestBody defines body for CreatePrivateNetwork for application/json ContentType.

type CreatePrivateNetworkResponse

type CreatePrivateNetworkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *SinglePrivateNetworkResponse
	JSONDefault  *ErrorResponse
}

func ParseCreatePrivateNetworkResponse

func ParseCreatePrivateNetworkResponse(rsp *http.Response) (*CreatePrivateNetworkResponse, error)

ParseCreatePrivateNetworkResponse parses an HTTP response from a CreatePrivateNetworkWithResponse call

func (CreatePrivateNetworkResponse) Status

Status returns HTTPResponse.Status

func (CreatePrivateNetworkResponse) StatusCode

func (r CreatePrivateNetworkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSSHKeyJSONBody

type CreateSSHKeyJSONBody struct {
	// Name The human-readable name for your ssh key.
	Name string `json:"name"`

	// Value SSH public key.
	Value string `json:"value"`
}

CreateSSHKeyJSONBody defines parameters for CreateSSHKey.

type CreateSSHKeyJSONRequestBody

type CreateSSHKeyJSONRequestBody CreateSSHKeyJSONBody

CreateSSHKeyJSONRequestBody defines body for CreateSSHKey for application/json ContentType.

type CreateSSHKeyResponse

type CreateSSHKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *SingleSSHKeyResponse
	JSONDefault  *ErrorResponse
}

func ParseCreateSSHKeyResponse

func ParseCreateSSHKeyResponse(rsp *http.Response) (*CreateSSHKeyResponse, error)

ParseCreateSSHKeyResponse parses an HTTP response from a CreateSSHKeyWithResponse call

func (CreateSSHKeyResponse) Status

func (r CreateSSHKeyResponse) Status() string

Status returns HTTPResponse.Status

func (CreateSSHKeyResponse) StatusCode

func (r CreateSSHKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSecurityGroupJSONBody

type CreateSecurityGroupJSONBody struct {
	// Description he human-readable description set for the security group.
	Description *string `json:"description,omitempty"`

	// Name The human-readable name set for the security group. **Please Note**: `default` and `standard` are not allowed names (reserved words).
	Name string `json:"name"`

	// Region The region identifier.
	Region Region `json:"region"`

	// Rules The list of rules of the security group.
	Rules []SecurityGroupRule `json:"rules"`
}

CreateSecurityGroupJSONBody defines parameters for CreateSecurityGroup.

type CreateSecurityGroupJSONRequestBody

type CreateSecurityGroupJSONRequestBody CreateSecurityGroupJSONBody

CreateSecurityGroupJSONRequestBody defines body for CreateSecurityGroup for application/json ContentType.

type CreateSecurityGroupResponse

type CreateSecurityGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *SingleSecurityGroupResponse
	JSONDefault  *ErrorResponse
}

func ParseCreateSecurityGroupResponse

func ParseCreateSecurityGroupResponse(rsp *http.Response) (*CreateSecurityGroupResponse, error)

ParseCreateSecurityGroupResponse parses an HTTP response from a CreateSecurityGroupWithResponse call

func (CreateSecurityGroupResponse) Status

Status returns HTTPResponse.Status

func (CreateSecurityGroupResponse) StatusCode

func (r CreateSecurityGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSnapshotJSONBody

type CreateSnapshotJSONBody struct {
	// Name The human-readable name set for the snapshot.
	Name string `json:"name"`

	// OsType The OS type.
	OsType *OSType `json:"os_type,omitempty"`

	// Region The region identifier.
	Region Region `json:"region"`

	// Size The storage size of this snapshot given in GiB (min: 1GiB).
	Size int `json:"size"`

	// Url The url pointing to a raw or raw with zstd compressed image.
	Url string `json:"url"`
}

CreateSnapshotJSONBody defines parameters for CreateSnapshot.

type CreateSnapshotJSONRequestBody

type CreateSnapshotJSONRequestBody CreateSnapshotJSONBody

CreateSnapshotJSONRequestBody defines body for CreateSnapshot for application/json ContentType.

type CreateSnapshotResponse

type CreateSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *SingleSnapshotResponse
	JSONDefault  *ErrorResponse
}

func ParseCreateSnapshotResponse

func ParseCreateSnapshotResponse(rsp *http.Response) (*CreateSnapshotResponse, error)

ParseCreateSnapshotResponse parses an HTTP response from a CreateSnapshotWithResponse call

func (CreateSnapshotResponse) Status

func (r CreateSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (CreateSnapshotResponse) StatusCode

func (r CreateSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateVolumeJSONBody

type CreateVolumeJSONBody struct {
	// Description The human-readable description set for the volume.
	Description *string `json:"description,omitempty"`

	// Name The human-readable name set for the volume.
	Name string `json:"name"`

	// Region The region identifier.
	Region Region `json:"region"`

	// Size The storage size of this volume given in GiB (min: 1GiB).
	Size int `json:"size"`

	// Type The volume type.
	Type *VolumeType `json:"type,omitempty"`
}

CreateVolumeJSONBody defines parameters for CreateVolume.

type CreateVolumeJSONRequestBody

type CreateVolumeJSONRequestBody CreateVolumeJSONBody

CreateVolumeJSONRequestBody defines body for CreateVolume for application/json ContentType.

type CreateVolumeResponse

type CreateVolumeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *SingleVolumeResponse
	JSONDefault  *ErrorResponse
}

func ParseCreateVolumeResponse

func ParseCreateVolumeResponse(rsp *http.Response) (*CreateVolumeResponse, error)

ParseCreateVolumeResponse parses an HTTP response from a CreateVolumeWithResponse call

func (CreateVolumeResponse) Status

func (r CreateVolumeResponse) Status() string

Status returns HTTPResponse.Status

func (CreateVolumeResponse) StatusCode

func (r CreateVolumeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteFilesystemResponse

type DeleteFilesystemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSONDefault  *ErrorResponse
}

func ParseDeleteFilesystemResponse

func ParseDeleteFilesystemResponse(rsp *http.Response) (*DeleteFilesystemResponse, error)

ParseDeleteFilesystemResponse parses an HTTP response from a DeleteFilesystemWithResponse call

func (DeleteFilesystemResponse) Status

func (r DeleteFilesystemResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteFilesystemResponse) StatusCode

func (r DeleteFilesystemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteFloatingIPResponse

type DeleteFloatingIPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSONDefault  *ErrorResponse
}

func ParseDeleteFloatingIPResponse

func ParseDeleteFloatingIPResponse(rsp *http.Response) (*DeleteFloatingIPResponse, error)

ParseDeleteFloatingIPResponse parses an HTTP response from a DeleteFloatingIPWithResponse call

func (DeleteFloatingIPResponse) Status

func (r DeleteFloatingIPResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteFloatingIPResponse) StatusCode

func (r DeleteFloatingIPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteInstanceResponse

type DeleteInstanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSONDefault  *ErrorResponse
}

func ParseDeleteInstanceResponse

func ParseDeleteInstanceResponse(rsp *http.Response) (*DeleteInstanceResponse, error)

ParseDeleteInstanceResponse parses an HTTP response from a DeleteInstanceWithResponse call

func (DeleteInstanceResponse) Status

func (r DeleteInstanceResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteInstanceResponse) StatusCode

func (r DeleteInstanceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteKubernetesClusterResponse

type DeleteKubernetesClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSONDefault  *ErrorResponse
}

func ParseDeleteKubernetesClusterResponse

func ParseDeleteKubernetesClusterResponse(rsp *http.Response) (*DeleteKubernetesClusterResponse, error)

ParseDeleteKubernetesClusterResponse parses an HTTP response from a DeleteKubernetesClusterWithResponse call

func (DeleteKubernetesClusterResponse) Status

Status returns HTTPResponse.Status

func (DeleteKubernetesClusterResponse) StatusCode

func (r DeleteKubernetesClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteLoadbalancerResponse added in v1.3.0

type DeleteLoadbalancerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSONDefault  *ErrorResponse
}

func ParseDeleteLoadbalancerResponse added in v1.3.0

func ParseDeleteLoadbalancerResponse(rsp *http.Response) (*DeleteLoadbalancerResponse, error)

ParseDeleteLoadbalancerResponse parses an HTTP response from a DeleteLoadbalancerWithResponse call

func (DeleteLoadbalancerResponse) Status added in v1.3.0

Status returns HTTPResponse.Status

func (DeleteLoadbalancerResponse) StatusCode added in v1.3.0

func (r DeleteLoadbalancerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeletePrivateNetworkResponse

type DeletePrivateNetworkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSONDefault  *ErrorResponse
}

func ParseDeletePrivateNetworkResponse

func ParseDeletePrivateNetworkResponse(rsp *http.Response) (*DeletePrivateNetworkResponse, error)

ParseDeletePrivateNetworkResponse parses an HTTP response from a DeletePrivateNetworkWithResponse call

func (DeletePrivateNetworkResponse) Status

Status returns HTTPResponse.Status

func (DeletePrivateNetworkResponse) StatusCode

func (r DeletePrivateNetworkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteSSHKeyResponse

type DeleteSSHKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSONDefault  *ErrorResponse
}

func ParseDeleteSSHKeyResponse

func ParseDeleteSSHKeyResponse(rsp *http.Response) (*DeleteSSHKeyResponse, error)

ParseDeleteSSHKeyResponse parses an HTTP response from a DeleteSSHKeyWithResponse call

func (DeleteSSHKeyResponse) Status

func (r DeleteSSHKeyResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteSSHKeyResponse) StatusCode

func (r DeleteSSHKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteSecurityGroupResponse

type DeleteSecurityGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSONDefault  *ErrorResponse
}

func ParseDeleteSecurityGroupResponse

func ParseDeleteSecurityGroupResponse(rsp *http.Response) (*DeleteSecurityGroupResponse, error)

ParseDeleteSecurityGroupResponse parses an HTTP response from a DeleteSecurityGroupWithResponse call

func (DeleteSecurityGroupResponse) Status

Status returns HTTPResponse.Status

func (DeleteSecurityGroupResponse) StatusCode

func (r DeleteSecurityGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteSnapshotResponse

type DeleteSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSONDefault  *ErrorResponse
}

func ParseDeleteSnapshotResponse

func ParseDeleteSnapshotResponse(rsp *http.Response) (*DeleteSnapshotResponse, error)

ParseDeleteSnapshotResponse parses an HTTP response from a DeleteSnapshotWithResponse call

func (DeleteSnapshotResponse) Status

func (r DeleteSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteSnapshotResponse) StatusCode

func (r DeleteSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteVolumeResponse

type DeleteVolumeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSONDefault  *ErrorResponse
}

func ParseDeleteVolumeResponse

func ParseDeleteVolumeResponse(rsp *http.Response) (*DeleteVolumeResponse, error)

ParseDeleteVolumeResponse parses an HTTP response from a DeleteVolumeWithResponse call

func (DeleteVolumeResponse) Status

func (r DeleteVolumeResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteVolumeResponse) StatusCode

func (r DeleteVolumeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Error

type Error struct {
	// Code The Saga Data error code.
	// Check the [developer documentation](https://developers.com/#error-codes) for more information on error codes.
	Code string `json:"code"`

	// Message An explanation of what went wrong.
	Message string `json:"message"`
}

Error defines model for Error.

type ErrorResponse

type ErrorResponse = Error

ErrorResponse defines model for ErrorResponse.

type Filesystem

type Filesystem struct {
	CreatedAt Timestamp `json:"created_at"`

	// Description The human-readable description for the filesystem.
	Description string `json:"description"`

	// Id A unique identifier for each filesystem. This is automatically generated.
	Id FilesystemId `json:"id"`

	// MountBasePath The mount base path of the filesystem.
	MountBasePath *string `json:"mount_base_path"`

	// MountEndpointRange The mount endpoint range of the filesystem.
	MountEndpointRange *[]string `json:"mount_endpoint_range"`

	// Name The human-readable name for the filesystem.
	Name string `json:"name"`

	// Region The region identifier.
	Region Region `json:"region"`

	// Size The storage size of this filesystem given in GiB.
	Size   int              `json:"size"`
	Status FilesystemStatus `json:"status"`

	// Type The filesystem type.
	Type      FilesystemType `json:"type"`
	UpdatedAt Timestamp      `json:"updated_at"`
}

Filesystem defines model for Filesystem.

type FilesystemId

type FilesystemId = string

FilesystemId A unique identifier for each filesystem. This is automatically generated.

type FilesystemStatus

type FilesystemStatus string

FilesystemStatus defines model for Filesystem.Status.

const (
	FilesystemStatusCreated  FilesystemStatus = "created"
	FilesystemStatusCreating FilesystemStatus = "creating"
	FilesystemStatusDeleting FilesystemStatus = "deleting"
	FilesystemStatusError    FilesystemStatus = "error"
)

Defines values for FilesystemStatus.

type FilesystemType

type FilesystemType string

FilesystemType The filesystem type.

const (
	FilesystemTypeVast FilesystemType = "vast"
)

Defines values for FilesystemType.

type FloatingIP

type FloatingIP struct {
	CreatedAt Timestamp `json:"created_at"`

	// Description The human-readable description for the floating IP.
	Description string `json:"description"`

	// Id A unique identifier for each floating IP. This is automatically generated.
	Id       string `json:"id"`
	Instance *struct {
		// Id A unique identifier for the attached instance.
		Id string `json:"id"`

		// Name The name of the attached instance.
		Name string `json:"name"`
	} `json:"instance"`

	// IpAddress The IP address of the floating IP.
	IpAddress *string `json:"ip_address"`

	// IsPublic A boolean value indicating whether the floating IP is public or private.
	IsPublic bool `json:"is_public"`

	// Name The human-readable name for the floating IP.
	Name string `json:"name"`

	// Region The region identifier.
	Region Region `json:"region"`

	// Status The floating ip status.
	Status    FloatingIpStatus `json:"status"`
	UpdatedAt Timestamp        `json:"updated_at"`

	// Version The IP version of the floating IP.
	Version FloatingIPVersion `json:"version"`
}

FloatingIP defines model for FloatingIP.

type FloatingIPVersion

type FloatingIPVersion string

FloatingIPVersion The IP version of the floating IP.

const (
	FloatingIPVersionIpv4 FloatingIPVersion = "ipv4"
	FloatingIPVersionIpv6 FloatingIPVersion = "ipv6"
)

Defines values for FloatingIPVersion.

type FloatingIpStatus

type FloatingIpStatus string

FloatingIpStatus The floating ip status.

const (
	FloatingIpStatusCreated  FloatingIpStatus = "created"
	FloatingIpStatusCreating FloatingIpStatus = "creating"
	FloatingIpStatusDeleting FloatingIpStatus = "deleting"
	FloatingIpStatusError    FloatingIpStatus = "error"
)

Defines values for FloatingIpStatus.

type GetFilesystemResponse

type GetFilesystemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleFilesystemResponse
	JSONDefault  *ErrorResponse
}

func ParseGetFilesystemResponse

func ParseGetFilesystemResponse(rsp *http.Response) (*GetFilesystemResponse, error)

ParseGetFilesystemResponse parses an HTTP response from a GetFilesystemWithResponse call

func (GetFilesystemResponse) Status

func (r GetFilesystemResponse) Status() string

Status returns HTTPResponse.Status

func (GetFilesystemResponse) StatusCode

func (r GetFilesystemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFloatingIPResponse

type GetFloatingIPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleFloatingIPResponse
	JSONDefault  *ErrorResponse
}

func ParseGetFloatingIPResponse

func ParseGetFloatingIPResponse(rsp *http.Response) (*GetFloatingIPResponse, error)

ParseGetFloatingIPResponse parses an HTTP response from a GetFloatingIPWithResponse call

func (GetFloatingIPResponse) Status

func (r GetFloatingIPResponse) Status() string

Status returns HTTPResponse.Status

func (GetFloatingIPResponse) StatusCode

func (r GetFloatingIPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetInstanceActionsResponse

type GetInstanceActionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InstanceGetActionsResponse
	JSONDefault  *ErrorResponse
}

func ParseGetInstanceActionsResponse

func ParseGetInstanceActionsResponse(rsp *http.Response) (*GetInstanceActionsResponse, error)

ParseGetInstanceActionsResponse parses an HTTP response from a GetInstanceActionsWithResponse call

func (GetInstanceActionsResponse) Status

Status returns HTTPResponse.Status

func (GetInstanceActionsResponse) StatusCode

func (r GetInstanceActionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetInstanceResponse

type GetInstanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleInstanceResponse
	JSONDefault  *ErrorResponse
}

func ParseGetInstanceResponse

func ParseGetInstanceResponse(rsp *http.Response) (*GetInstanceResponse, error)

ParseGetInstanceResponse parses an HTTP response from a GetInstanceWithResponse call

func (GetInstanceResponse) Status

func (r GetInstanceResponse) Status() string

Status returns HTTPResponse.Status

func (GetInstanceResponse) StatusCode

func (r GetInstanceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetInstanceUserMetadataResponse

type GetInstanceUserMetadataResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InstanceGetInstanceUserMetadataResponse
	JSONDefault  *ErrorResponse
}

func ParseGetInstanceUserMetadataResponse

func ParseGetInstanceUserMetadataResponse(rsp *http.Response) (*GetInstanceUserMetadataResponse, error)

ParseGetInstanceUserMetadataResponse parses an HTTP response from a GetInstanceUserMetadataWithResponse call

func (GetInstanceUserMetadataResponse) Status

Status returns HTTPResponse.Status

func (GetInstanceUserMetadataResponse) StatusCode

func (r GetInstanceUserMetadataResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetInstancesAvailabilityParams

type GetInstancesAvailabilityParams struct {
	Placement *string `form:"placement,omitempty" json:"placement,omitempty"`
}

GetInstancesAvailabilityParams defines parameters for GetInstancesAvailability.

type GetInstancesAvailabilityResponse

type GetInstancesAvailabilityResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InstancesAvailabilityResponse
	JSONDefault  *ErrorResponse
}

func ParseGetInstancesAvailabilityResponse

func ParseGetInstancesAvailabilityResponse(rsp *http.Response) (*GetInstancesAvailabilityResponse, error)

ParseGetInstancesAvailabilityResponse parses an HTTP response from a GetInstancesAvailabilityWithResponse call

func (GetInstancesAvailabilityResponse) Status

Status returns HTTPResponse.Status

func (GetInstancesAvailabilityResponse) StatusCode

func (r GetInstancesAvailabilityResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetKubernetesClusterCredentialsResponse

type GetKubernetesClusterCredentialsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *K8sClusterCredentialsResponse
	JSONDefault  *ErrorResponse
}

func ParseGetKubernetesClusterCredentialsResponse

func ParseGetKubernetesClusterCredentialsResponse(rsp *http.Response) (*GetKubernetesClusterCredentialsResponse, error)

ParseGetKubernetesClusterCredentialsResponse parses an HTTP response from a GetKubernetesClusterCredentialsWithResponse call

func (GetKubernetesClusterCredentialsResponse) Status

Status returns HTTPResponse.Status

func (GetKubernetesClusterCredentialsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetKubernetesClusterResponse

type GetKubernetesClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleKubernetesClusterResponse
	JSONDefault  *ErrorResponse
}

func ParseGetKubernetesClusterResponse

func ParseGetKubernetesClusterResponse(rsp *http.Response) (*GetKubernetesClusterResponse, error)

ParseGetKubernetesClusterResponse parses an HTTP response from a GetKubernetesClusterWithResponse call

func (GetKubernetesClusterResponse) Status

Status returns HTTPResponse.Status

func (GetKubernetesClusterResponse) StatusCode

func (r GetKubernetesClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLoadbalancerResponse added in v1.3.0

type GetLoadbalancerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleLoadbalancerResponse
	JSONDefault  *ErrorResponse
}

func ParseGetLoadbalancerResponse added in v1.3.0

func ParseGetLoadbalancerResponse(rsp *http.Response) (*GetLoadbalancerResponse, error)

ParseGetLoadbalancerResponse parses an HTTP response from a GetLoadbalancerWithResponse call

func (GetLoadbalancerResponse) Status added in v1.3.0

func (r GetLoadbalancerResponse) Status() string

Status returns HTTPResponse.Status

func (GetLoadbalancerResponse) StatusCode added in v1.3.0

func (r GetLoadbalancerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPrivateNetworkResponse

type GetPrivateNetworkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SinglePrivateNetworkResponse
	JSONDefault  *ErrorResponse
}

func ParseGetPrivateNetworkResponse

func ParseGetPrivateNetworkResponse(rsp *http.Response) (*GetPrivateNetworkResponse, error)

ParseGetPrivateNetworkResponse parses an HTTP response from a GetPrivateNetworkWithResponse call

func (GetPrivateNetworkResponse) Status

func (r GetPrivateNetworkResponse) Status() string

Status returns HTTPResponse.Status

func (GetPrivateNetworkResponse) StatusCode

func (r GetPrivateNetworkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetQuotasResponse

type GetQuotasResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *QuotasResponse
	JSONDefault  *ErrorResponse
}

func ParseGetQuotasResponse

func ParseGetQuotasResponse(rsp *http.Response) (*GetQuotasResponse, error)

ParseGetQuotasResponse parses an HTTP response from a GetQuotasWithResponse call

func (GetQuotasResponse) Status

func (r GetQuotasResponse) Status() string

Status returns HTTPResponse.Status

func (GetQuotasResponse) StatusCode

func (r GetQuotasResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetReservationsResponse

type GetReservationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ReservationsResponse
	JSONDefault  *ErrorResponse
}

func ParseGetReservationsResponse

func ParseGetReservationsResponse(rsp *http.Response) (*GetReservationsResponse, error)

ParseGetReservationsResponse parses an HTTP response from a GetReservationsWithResponse call

func (GetReservationsResponse) Status

func (r GetReservationsResponse) Status() string

Status returns HTTPResponse.Status

func (GetReservationsResponse) StatusCode

func (r GetReservationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSSHKeyResponse

type GetSSHKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleSSHKeyResponse
	JSONDefault  *ErrorResponse
}

func ParseGetSSHKeyResponse

func ParseGetSSHKeyResponse(rsp *http.Response) (*GetSSHKeyResponse, error)

ParseGetSSHKeyResponse parses an HTTP response from a GetSSHKeyWithResponse call

func (GetSSHKeyResponse) Status

func (r GetSSHKeyResponse) Status() string

Status returns HTTPResponse.Status

func (GetSSHKeyResponse) StatusCode

func (r GetSSHKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSecurityGroupResponse

type GetSecurityGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleSecurityGroupResponse
	JSONDefault  *ErrorResponse
}

func ParseGetSecurityGroupResponse

func ParseGetSecurityGroupResponse(rsp *http.Response) (*GetSecurityGroupResponse, error)

ParseGetSecurityGroupResponse parses an HTTP response from a GetSecurityGroupWithResponse call

func (GetSecurityGroupResponse) Status

func (r GetSecurityGroupResponse) Status() string

Status returns HTTPResponse.Status

func (GetSecurityGroupResponse) StatusCode

func (r GetSecurityGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSnapshotResponse

type GetSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleSnapshotResponse
	JSONDefault  *ErrorResponse
}

func ParseGetSnapshotResponse

func ParseGetSnapshotResponse(rsp *http.Response) (*GetSnapshotResponse, error)

ParseGetSnapshotResponse parses an HTTP response from a GetSnapshotWithResponse call

func (GetSnapshotResponse) Status

func (r GetSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (GetSnapshotResponse) StatusCode

func (r GetSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVolumeResponse

type GetVolumeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleVolumeResponse
	JSONDefault  *ErrorResponse
}

func ParseGetVolumeResponse

func ParseGetVolumeResponse(rsp *http.Response) (*GetVolumeResponse, error)

ParseGetVolumeResponse parses an HTTP response from a GetVolumeWithResponse call

func (GetVolumeResponse) Status

func (r GetVolumeResponse) Status() string

Status returns HTTPResponse.Status

func (GetVolumeResponse) StatusCode

func (r GetVolumeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Image

type Image struct {
	CreatedAt Timestamp `json:"created_at"`
	Family    *string   `json:"family"`

	// Id A unique number that can be used to identify and reference a specific image.
	Id ImageId `json:"id"`

	// Name The display name that has been given to an image. This is what is shown in the control panel and is generally a descriptive title for the image in question.
	Name string `json:"name"`

	// OsType The OS type.
	OsType OSType `json:"os_type"`

	// Regions The list of regions in which this image can be used in.
	Regions []Region `json:"regions"`
	Slug    *string  `json:"slug"`

	// Type Describes the kind of image.
	Type      ImageType `json:"type"`
	UpdatedAt Timestamp `json:"updated_at"`

	// Versions The list of versions if this is a cloud-image otherwise empty.
	Versions *[]string `json:"versions"`
}

Image defines model for Image.

type ImageId

type ImageId = string

ImageId A unique number that can be used to identify and reference a specific image.

type ImageType

type ImageType string

ImageType Describes the kind of image.

const (
	ImageTypeCloudImage ImageType = "cloud-image"
)

Defines values for ImageType.

type Instance

type Instance struct {
	CreatedAt Timestamp `json:"created_at"`

	// DiskSize The storage size of the instance's boot volume given in GiB.
	DiskSize *InstanceDiskSize `json:"disk_size,omitempty"`

	// DnsName The dns name of your instance.
	DnsName InstanceDNSName `json:"dns_name"`

	// FloatingIp The floating IP attached to the instance.
	FloatingIp *struct {
		// Id The ID of the floating IP.
		Id string `json:"id"`

		// Name The name of the floating IP.
		Name string `json:"name"`
	} `json:"floating_ip"`

	// Hostname The hostname of your instance.
	Hostname InstanceHostname `json:"hostname"`

	// Id The unique ID of the instance.
	Id string `json:"id"`

	// Image The image of the instance.
	Image struct {
		// Id A unique number that can be used to identify and reference a specific image.
		Id ImageId `json:"id"`

		// Name The image name.
		Name string `json:"name"`
	} `json:"image"`

	// K8sCluster Kubernetes cluster this instance belongs to
	K8sCluster *string `json:"k8s_cluster"`

	// Name The human-readable name set for the instance.
	Name InstanceName `json:"name"`

	// OsType The OS type.
	OsType OSType `json:"os_type"`

	// PlacementOption The placement option identifier in which instances are physically located relative to each other within a zone.
	PlacementOption string `json:"placement_option"`

	// PrivateIp The private IPv4 IP-Address (IPv4 address).
	PrivateIp *string `json:"private_ip"`

	// PublicIp The public IPv4 IP-Address (IPv4 address).
	PublicIp *string `json:"public_ip"`

	// Region The region identifier.
	Region Region `json:"region"`

	// ReservationId The unique ID of the reservation the instance is associated with.
	ReservationId *string `json:"reservation_id"`

	// SecurityGroups The security groups of the instance.
	SecurityGroups []struct {
		// Id A unique identifier for each security group. This is automatically generated.
		Id SecurityGroupId `json:"id"`

		// Name The name of the security group.
		Name string `json:"name"`
	} `json:"security_groups"`

	// SshKeys The ssh keys of the instance.
	SshKeys []struct {
		// Id The ssh key ID.
		Id InstanceSSHKeyId `json:"id"`

		// Name The name of the ssh key.
		Name string `json:"name"`
	} `json:"ssh_keys"`

	// Status The instance status
	Status InstanceStatus `json:"status"`

	// Type The instance type identifier.
	Type      InstanceType `json:"type"`
	UpdatedAt Timestamp    `json:"updated_at"`

	// Volumes The volumes of the instance
	Volumes []struct {
		// Id A unique identifier for each volume. This is automatically generated.
		Id VolumeId `json:"id"`

		// Name The volume name.
		Name string `json:"name"`
	} `json:"volumes"`
}

Instance defines model for Instance.

type InstanceAction

type InstanceAction string

InstanceAction defines model for Instance.Action.

const (
	InstanceActionReset InstanceAction = "reset"
	InstanceActionStart InstanceAction = "start"
	InstanceActionStop  InstanceAction = "stop"
)

Defines values for InstanceAction.

type InstanceBillingType

type InstanceBillingType string

InstanceBillingType The billing type of the instance.

const (
	InstanceBillingTypeOnDemand       InstanceBillingType = "on-demand"
	InstanceBillingTypePrepaid12Month InstanceBillingType = "prepaid-12-month"
	InstanceBillingTypePrepaid3Month  InstanceBillingType = "prepaid-3-month"
	InstanceBillingTypePrepaid6Month  InstanceBillingType = "prepaid-6-month"
	InstanceBillingTypePrepaidMonthly InstanceBillingType = "prepaid-monthly"
	InstanceBillingTypeReserved       InstanceBillingType = "reserved"
)

Defines values for InstanceBillingType.

type InstanceDNSName

type InstanceDNSName = string

InstanceDNSName The dns name of your instance.

type InstanceDestroyOnShutdown

type InstanceDestroyOnShutdown = bool

InstanceDestroyOnShutdown Option that you can set at instance creation that will allow the instance to destroy on shutdown command

type InstanceDiskSize

type InstanceDiskSize = int

InstanceDiskSize The storage size of the instance's boot volume given in GiB.

type InstanceFloatingIp

type InstanceFloatingIp = string

InstanceFloatingIp The id of the floating IP to attach to the instance.

type InstanceGetActionsResponse

type InstanceGetActionsResponse struct {
	Actions []InstanceAction `json:"actions"`
}

InstanceGetActionsResponse defines model for Instance.GetActionsResponse.

type InstanceGetInstanceUserMetadataResponse

type InstanceGetInstanceUserMetadataResponse map[string]interface{}

InstanceGetInstanceUserMetadataResponse defines model for Instance.GetInstanceUserMetadataResponse.

type InstanceHostname

type InstanceHostname = string

InstanceHostname The hostname of your instance.

type InstanceIsProtected

type InstanceIsProtected = bool

InstanceIsProtected Specifies if the instance is termination protected. When set to `true`, it"s not possible to destroy the instance until it"s switched to `false`. Set to `true` automatically for long-term billed instances.

type InstanceK8sCluster added in v1.2.0

type InstanceK8sCluster = string

InstanceK8sCluster Kubernetes cluster this instance belongs to

type InstanceName

type InstanceName = string

InstanceName The human-readable name set for the instance.

type InstancePublicIpv6

type InstancePublicIpv6 = bool

InstancePublicIpv6 A boolean value indicating whether the instance should have an ipv6 address or not.

type InstanceReuseLongTermSubscription

type InstanceReuseLongTermSubscription = string

InstanceReuseLongTermSubscription The long term subscription id to be used for this instance. If not provided, the billing_type will default to on-demand.

type InstanceSSHKeyId

type InstanceSSHKeyId = string

InstanceSSHKeyId The ssh key ID.

type InstanceStatus

type InstanceStatus string

InstanceStatus The instance status

const (
	InstanceStatusActive         InstanceStatus = "active"
	InstanceStatusCreating       InstanceStatus = "creating"
	InstanceStatusDeleting       InstanceStatus = "deleting"
	InstanceStatusError          InstanceStatus = "error"
	InstanceStatusPendingPayment InstanceStatus = "pending_payment"
	InstanceStatusResetting      InstanceStatus = "resetting"
	InstanceStatusStarting       InstanceStatus = "starting"
	InstanceStatusStopped        InstanceStatus = "stopped"
	InstanceStatusStopping       InstanceStatus = "stopping"
)

Defines values for InstanceStatus.

type InstanceType

type InstanceType = string

InstanceType The instance type identifier.

type InstanceUpdateSecurityGroups

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

InstanceUpdateSecurityGroups defines model for Instance.UpdateSecurityGroups.

func (InstanceUpdateSecurityGroups) AsInstanceUpdateSecurityGroupsAttach

func (t InstanceUpdateSecurityGroups) AsInstanceUpdateSecurityGroupsAttach() (InstanceUpdateSecurityGroupsAttach, error)

AsInstanceUpdateSecurityGroupsAttach returns the union data inside the InstanceUpdateSecurityGroups as a InstanceUpdateSecurityGroupsAttach

func (InstanceUpdateSecurityGroups) AsInstanceUpdateSecurityGroupsDetach

func (t InstanceUpdateSecurityGroups) AsInstanceUpdateSecurityGroupsDetach() (InstanceUpdateSecurityGroupsDetach, error)

AsInstanceUpdateSecurityGroupsDetach returns the union data inside the InstanceUpdateSecurityGroups as a InstanceUpdateSecurityGroupsDetach

func (InstanceUpdateSecurityGroups) AsInstanceUpdateSecurityGroupsList

func (t InstanceUpdateSecurityGroups) AsInstanceUpdateSecurityGroupsList() (InstanceUpdateSecurityGroupsList, error)

AsInstanceUpdateSecurityGroupsList returns the union data inside the InstanceUpdateSecurityGroups as a InstanceUpdateSecurityGroupsList

func (*InstanceUpdateSecurityGroups) FromInstanceUpdateSecurityGroupsAttach

func (t *InstanceUpdateSecurityGroups) FromInstanceUpdateSecurityGroupsAttach(v InstanceUpdateSecurityGroupsAttach) error

FromInstanceUpdateSecurityGroupsAttach overwrites any union data inside the InstanceUpdateSecurityGroups as the provided InstanceUpdateSecurityGroupsAttach

func (*InstanceUpdateSecurityGroups) FromInstanceUpdateSecurityGroupsDetach

func (t *InstanceUpdateSecurityGroups) FromInstanceUpdateSecurityGroupsDetach(v InstanceUpdateSecurityGroupsDetach) error

FromInstanceUpdateSecurityGroupsDetach overwrites any union data inside the InstanceUpdateSecurityGroups as the provided InstanceUpdateSecurityGroupsDetach

func (*InstanceUpdateSecurityGroups) FromInstanceUpdateSecurityGroupsList

func (t *InstanceUpdateSecurityGroups) FromInstanceUpdateSecurityGroupsList(v InstanceUpdateSecurityGroupsList) error

FromInstanceUpdateSecurityGroupsList overwrites any union data inside the InstanceUpdateSecurityGroups as the provided InstanceUpdateSecurityGroupsList

func (InstanceUpdateSecurityGroups) MarshalJSON

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

func (*InstanceUpdateSecurityGroups) MergeInstanceUpdateSecurityGroupsAttach

func (t *InstanceUpdateSecurityGroups) MergeInstanceUpdateSecurityGroupsAttach(v InstanceUpdateSecurityGroupsAttach) error

MergeInstanceUpdateSecurityGroupsAttach performs a merge with any union data inside the InstanceUpdateSecurityGroups, using the provided InstanceUpdateSecurityGroupsAttach

func (*InstanceUpdateSecurityGroups) MergeInstanceUpdateSecurityGroupsDetach

func (t *InstanceUpdateSecurityGroups) MergeInstanceUpdateSecurityGroupsDetach(v InstanceUpdateSecurityGroupsDetach) error

MergeInstanceUpdateSecurityGroupsDetach performs a merge with any union data inside the InstanceUpdateSecurityGroups, using the provided InstanceUpdateSecurityGroupsDetach

func (*InstanceUpdateSecurityGroups) MergeInstanceUpdateSecurityGroupsList

func (t *InstanceUpdateSecurityGroups) MergeInstanceUpdateSecurityGroupsList(v InstanceUpdateSecurityGroupsList) error

MergeInstanceUpdateSecurityGroupsList performs a merge with any union data inside the InstanceUpdateSecurityGroups, using the provided InstanceUpdateSecurityGroupsList

func (*InstanceUpdateSecurityGroups) UnmarshalJSON

func (t *InstanceUpdateSecurityGroups) UnmarshalJSON(b []byte) error

type InstanceUpdateSecurityGroupsAttach

type InstanceUpdateSecurityGroupsAttach struct {
	// Attach A unique identifier for each security group. This is automatically generated.
	Attach SecurityGroupId `json:"attach"`
}

InstanceUpdateSecurityGroupsAttach defines model for Instance.UpdateSecurityGroups.Attach.

type InstanceUpdateSecurityGroupsDetach

type InstanceUpdateSecurityGroupsDetach struct {
	// Detach A unique identifier for each security group. This is automatically generated.
	Detach SecurityGroupId `json:"detach"`
}

InstanceUpdateSecurityGroupsDetach defines model for Instance.UpdateSecurityGroups.Detach.

type InstanceUpdateSecurityGroupsList

type InstanceUpdateSecurityGroupsList = []SecurityGroupId

InstanceUpdateSecurityGroupsList The instance's security group IDs.

type InstanceUpdateVolumes

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

InstanceUpdateVolumes defines model for Instance.UpdateVolumes.

func (InstanceUpdateVolumes) AsInstanceUpdateVolumesAttach

func (t InstanceUpdateVolumes) AsInstanceUpdateVolumesAttach() (InstanceUpdateVolumesAttach, error)

AsInstanceUpdateVolumesAttach returns the union data inside the InstanceUpdateVolumes as a InstanceUpdateVolumesAttach

func (InstanceUpdateVolumes) AsInstanceUpdateVolumesDetach

func (t InstanceUpdateVolumes) AsInstanceUpdateVolumesDetach() (InstanceUpdateVolumesDetach, error)

AsInstanceUpdateVolumesDetach returns the union data inside the InstanceUpdateVolumes as a InstanceUpdateVolumesDetach

func (InstanceUpdateVolumes) AsInstanceUpdateVolumesList

func (t InstanceUpdateVolumes) AsInstanceUpdateVolumesList() (InstanceUpdateVolumesList, error)

AsInstanceUpdateVolumesList returns the union data inside the InstanceUpdateVolumes as a InstanceUpdateVolumesList

func (*InstanceUpdateVolumes) FromInstanceUpdateVolumesAttach

func (t *InstanceUpdateVolumes) FromInstanceUpdateVolumesAttach(v InstanceUpdateVolumesAttach) error

FromInstanceUpdateVolumesAttach overwrites any union data inside the InstanceUpdateVolumes as the provided InstanceUpdateVolumesAttach

func (*InstanceUpdateVolumes) FromInstanceUpdateVolumesDetach

func (t *InstanceUpdateVolumes) FromInstanceUpdateVolumesDetach(v InstanceUpdateVolumesDetach) error

FromInstanceUpdateVolumesDetach overwrites any union data inside the InstanceUpdateVolumes as the provided InstanceUpdateVolumesDetach

func (*InstanceUpdateVolumes) FromInstanceUpdateVolumesList

func (t *InstanceUpdateVolumes) FromInstanceUpdateVolumesList(v InstanceUpdateVolumesList) error

FromInstanceUpdateVolumesList overwrites any union data inside the InstanceUpdateVolumes as the provided InstanceUpdateVolumesList

func (InstanceUpdateVolumes) MarshalJSON

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

func (*InstanceUpdateVolumes) MergeInstanceUpdateVolumesAttach

func (t *InstanceUpdateVolumes) MergeInstanceUpdateVolumesAttach(v InstanceUpdateVolumesAttach) error

MergeInstanceUpdateVolumesAttach performs a merge with any union data inside the InstanceUpdateVolumes, using the provided InstanceUpdateVolumesAttach

func (*InstanceUpdateVolumes) MergeInstanceUpdateVolumesDetach

func (t *InstanceUpdateVolumes) MergeInstanceUpdateVolumesDetach(v InstanceUpdateVolumesDetach) error

MergeInstanceUpdateVolumesDetach performs a merge with any union data inside the InstanceUpdateVolumes, using the provided InstanceUpdateVolumesDetach

func (*InstanceUpdateVolumes) MergeInstanceUpdateVolumesList

func (t *InstanceUpdateVolumes) MergeInstanceUpdateVolumesList(v InstanceUpdateVolumesList) error

MergeInstanceUpdateVolumesList performs a merge with any union data inside the InstanceUpdateVolumes, using the provided InstanceUpdateVolumesList

func (*InstanceUpdateVolumes) UnmarshalJSON

func (t *InstanceUpdateVolumes) UnmarshalJSON(b []byte) error

type InstanceUpdateVolumesAttach

type InstanceUpdateVolumesAttach struct {
	// Attach A unique identifier for each volume. This is automatically generated.
	Attach VolumeId `json:"attach"`
}

InstanceUpdateVolumesAttach defines model for Instance.UpdateVolumes.Attach.

type InstanceUpdateVolumesDetach

type InstanceUpdateVolumesDetach struct {
	// Detach A unique identifier for each volume. This is automatically generated.
	Detach VolumeId `json:"detach"`
}

InstanceUpdateVolumesDetach defines model for Instance.UpdateVolumes.Detach.

type InstanceUpdateVolumesList

type InstanceUpdateVolumesList = []VolumeId

InstanceUpdateVolumesList The instance's volume IDs.

type InstanceUserData

type InstanceUserData = []struct {
	Content  string  `json:"content"`
	Filename *string `json:"filename,omitempty"`
	Type     string  `json:"type"`
}

InstanceUserData defines model for Instance.UserData.

type InstancesAvailability

type InstancesAvailability struct {
	Availability struct {
		InstanceTypes []struct {
			Available bool     `json:"available"`
			Count     *float32 `json:"count,omitempty"`

			// Type The instance type identifier.
			Type InstanceType `json:"type"`
		} `json:"instance_types"`
		Placement *string `json:"placement,omitempty"`

		// Region The region identifier.
		Region Region `json:"region"`
		Type   string `json:"type"`
	} `json:"availability"`
}

InstancesAvailability defines model for InstancesAvailability.

type InstancesAvailabilityResponse

type InstancesAvailabilityResponse = InstancesAvailability

InstancesAvailabilityResponse defines model for InstancesAvailabilityResponse.

type K8sClusterCredentialsResponse

type K8sClusterCredentialsResponse struct {
	// JoinCommand The join command for worker nodes to join the cluster.
	JoinCommand *string `json:"join_command"`

	// Kubeconfig The kubeconfig for accessing the Kubernetes cluster.
	Kubeconfig string `json:"kubeconfig"`
}

K8sClusterCredentialsResponse defines model for K8sClusterCredentialsResponse.

type KubernetesCluster

type KubernetesCluster struct {
	CreatedAt Timestamp `json:"created_at"`

	// Id A unique identifier for each Kubernetes cluster. This is automatically generated.
	Id string `json:"id"`

	// Name The human-readable name for the Kubernetes cluster.
	Name string `json:"name"`

	// Network The network ID for the cluster.
	Network *string `json:"network"`

	// Status The Kubernetes cluster status.
	Status    KubernetesClusterStatus `json:"status"`
	UpdatedAt Timestamp               `json:"updated_at"`
}

KubernetesCluster defines model for KubernetesCluster.

type KubernetesClusterStatus

type KubernetesClusterStatus string

KubernetesClusterStatus The Kubernetes cluster status.

const (
	KubernetesClusterStatusActive   KubernetesClusterStatus = "active"
	KubernetesClusterStatusCreating KubernetesClusterStatus = "creating"
	KubernetesClusterStatusDeleting KubernetesClusterStatus = "deleting"
	KubernetesClusterStatusError    KubernetesClusterStatus = "error"
)

Defines values for KubernetesClusterStatus.

type ListFilesystemsPaginatedParams

type ListFilesystemsPaginatedParams struct {
	Page    *PageQueryParameter    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ListFilesystemsPaginatedParams defines parameters for ListFilesystemsPaginated.

type ListFilesystemsPaginatedResponse

type ListFilesystemsPaginatedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedFilesystemsResponse
	JSONDefault  *ErrorResponse
}

func ParseListFilesystemsPaginatedResponse

func ParseListFilesystemsPaginatedResponse(rsp *http.Response) (*ListFilesystemsPaginatedResponse, error)

ParseListFilesystemsPaginatedResponse parses an HTTP response from a ListFilesystemsPaginatedWithResponse call

func (ListFilesystemsPaginatedResponse) Status

Status returns HTTPResponse.Status

func (ListFilesystemsPaginatedResponse) StatusCode

func (r ListFilesystemsPaginatedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListFloatingIPsPaginatedParams

type ListFloatingIPsPaginatedParams struct {
	Page    *PageQueryParameter    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ListFloatingIPsPaginatedParams defines parameters for ListFloatingIPsPaginated.

type ListFloatingIPsPaginatedResponse

type ListFloatingIPsPaginatedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedFloatingIPsResponse
	JSONDefault  *ErrorResponse
}

func ParseListFloatingIPsPaginatedResponse

func ParseListFloatingIPsPaginatedResponse(rsp *http.Response) (*ListFloatingIPsPaginatedResponse, error)

ParseListFloatingIPsPaginatedResponse parses an HTTP response from a ListFloatingIPsPaginatedWithResponse call

func (ListFloatingIPsPaginatedResponse) Status

Status returns HTTPResponse.Status

func (ListFloatingIPsPaginatedResponse) StatusCode

func (r ListFloatingIPsPaginatedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListImagesPaginatedParams

type ListImagesPaginatedParams struct {
	Page    *PageQueryParameter    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
	Type    *ImageType             `form:"type,omitempty" json:"type,omitempty"`
}

ListImagesPaginatedParams defines parameters for ListImagesPaginated.

type ListImagesPaginatedResponse

type ListImagesPaginatedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedImagesResponse
	JSONDefault  *ErrorResponse
}

func ParseListImagesPaginatedResponse

func ParseListImagesPaginatedResponse(rsp *http.Response) (*ListImagesPaginatedResponse, error)

ParseListImagesPaginatedResponse parses an HTTP response from a ListImagesPaginatedWithResponse call

func (ListImagesPaginatedResponse) Status

Status returns HTTPResponse.Status

func (ListImagesPaginatedResponse) StatusCode

func (r ListImagesPaginatedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListInstanceSnapshotsPaginatedParams

type ListInstanceSnapshotsPaginatedParams struct {
	Page    *PageQueryParameter    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ListInstanceSnapshotsPaginatedParams defines parameters for ListInstanceSnapshotsPaginated.

type ListInstanceSnapshotsPaginatedResponse

type ListInstanceSnapshotsPaginatedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedSnapshotsResponse
	JSONDefault  *ErrorResponse
}

func ParseListInstanceSnapshotsPaginatedResponse

func ParseListInstanceSnapshotsPaginatedResponse(rsp *http.Response) (*ListInstanceSnapshotsPaginatedResponse, error)

ParseListInstanceSnapshotsPaginatedResponse parses an HTTP response from a ListInstanceSnapshotsPaginatedWithResponse call

func (ListInstanceSnapshotsPaginatedResponse) Status

Status returns HTTPResponse.Status

func (ListInstanceSnapshotsPaginatedResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListInstancesPaginatedParams

type ListInstancesPaginatedParams struct {
	Page    *PageQueryParameter    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ListInstancesPaginatedParams defines parameters for ListInstancesPaginated.

type ListInstancesPaginatedResponse

type ListInstancesPaginatedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedInstancesResponse
	JSONDefault  *ErrorResponse
}

func ParseListInstancesPaginatedResponse

func ParseListInstancesPaginatedResponse(rsp *http.Response) (*ListInstancesPaginatedResponse, error)

ParseListInstancesPaginatedResponse parses an HTTP response from a ListInstancesPaginatedWithResponse call

func (ListInstancesPaginatedResponse) Status

Status returns HTTPResponse.Status

func (ListInstancesPaginatedResponse) StatusCode

func (r ListInstancesPaginatedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListKubernetesClustersParams

type ListKubernetesClustersParams struct {
	Page    *PageQueryParameter    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ListKubernetesClustersParams defines parameters for ListKubernetesClusters.

type ListKubernetesClustersResponse

type ListKubernetesClustersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedKubernetesClustersResponse
	JSONDefault  *ErrorResponse
}

func ParseListKubernetesClustersResponse

func ParseListKubernetesClustersResponse(rsp *http.Response) (*ListKubernetesClustersResponse, error)

ParseListKubernetesClustersResponse parses an HTTP response from a ListKubernetesClustersWithResponse call

func (ListKubernetesClustersResponse) Status

Status returns HTTPResponse.Status

func (ListKubernetesClustersResponse) StatusCode

func (r ListKubernetesClustersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListLoadbalancersParams added in v1.3.0

type ListLoadbalancersParams struct {
	Page    *PageQueryParameter    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ListLoadbalancersParams defines parameters for ListLoadbalancers.

type ListLoadbalancersResponse added in v1.3.0

type ListLoadbalancersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedLoadbalancersResponse
	JSONDefault  *ErrorResponse
}

func ParseListLoadbalancersResponse added in v1.3.0

func ParseListLoadbalancersResponse(rsp *http.Response) (*ListLoadbalancersResponse, error)

ParseListLoadbalancersResponse parses an HTTP response from a ListLoadbalancersWithResponse call

func (ListLoadbalancersResponse) Status added in v1.3.0

func (r ListLoadbalancersResponse) Status() string

Status returns HTTPResponse.Status

func (ListLoadbalancersResponse) StatusCode added in v1.3.0

func (r ListLoadbalancersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPrivateNetworksParams

type ListPrivateNetworksParams struct {
	Page    *PageQueryParameter    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ListPrivateNetworksParams defines parameters for ListPrivateNetworks.

type ListPrivateNetworksResponse

type ListPrivateNetworksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedPrivateNetworksResponse
	JSONDefault  *ErrorResponse
}

func ParseListPrivateNetworksResponse

func ParseListPrivateNetworksResponse(rsp *http.Response) (*ListPrivateNetworksResponse, error)

ParseListPrivateNetworksResponse parses an HTTP response from a ListPrivateNetworksWithResponse call

func (ListPrivateNetworksResponse) Status

Status returns HTTPResponse.Status

func (ListPrivateNetworksResponse) StatusCode

func (r ListPrivateNetworksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSSHKeysPaginatedParams

type ListSSHKeysPaginatedParams struct {
	Page    *PageQueryParameter    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ListSSHKeysPaginatedParams defines parameters for ListSSHKeysPaginated.

type ListSSHKeysPaginatedResponse

type ListSSHKeysPaginatedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedSSHKeysResponse
	JSONDefault  *ErrorResponse
}

func ParseListSSHKeysPaginatedResponse

func ParseListSSHKeysPaginatedResponse(rsp *http.Response) (*ListSSHKeysPaginatedResponse, error)

ParseListSSHKeysPaginatedResponse parses an HTTP response from a ListSSHKeysPaginatedWithResponse call

func (ListSSHKeysPaginatedResponse) Status

Status returns HTTPResponse.Status

func (ListSSHKeysPaginatedResponse) StatusCode

func (r ListSSHKeysPaginatedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSecurityGroupsPaginatedParams

type ListSecurityGroupsPaginatedParams struct {
	Page    *PageQueryParameter    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ListSecurityGroupsPaginatedParams defines parameters for ListSecurityGroupsPaginated.

type ListSecurityGroupsPaginatedResponse

type ListSecurityGroupsPaginatedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedSecurityGroupsResponse
	JSONDefault  *ErrorResponse
}

func ParseListSecurityGroupsPaginatedResponse

func ParseListSecurityGroupsPaginatedResponse(rsp *http.Response) (*ListSecurityGroupsPaginatedResponse, error)

ParseListSecurityGroupsPaginatedResponse parses an HTTP response from a ListSecurityGroupsPaginatedWithResponse call

func (ListSecurityGroupsPaginatedResponse) Status

Status returns HTTPResponse.Status

func (ListSecurityGroupsPaginatedResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListSnapshotsPaginatedParams

type ListSnapshotsPaginatedParams struct {
	Page    *PageQueryParameter    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ListSnapshotsPaginatedParams defines parameters for ListSnapshotsPaginated.

type ListSnapshotsPaginatedResponse

type ListSnapshotsPaginatedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedSnapshotsResponse
	JSONDefault  *ErrorResponse
}

func ParseListSnapshotsPaginatedResponse

func ParseListSnapshotsPaginatedResponse(rsp *http.Response) (*ListSnapshotsPaginatedResponse, error)

ParseListSnapshotsPaginatedResponse parses an HTTP response from a ListSnapshotsPaginatedWithResponse call

func (ListSnapshotsPaginatedResponse) Status

Status returns HTTPResponse.Status

func (ListSnapshotsPaginatedResponse) StatusCode

func (r ListSnapshotsPaginatedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListVolumesPaginatedParams

type ListVolumesPaginatedParams struct {
	Page    *PageQueryParameter    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageQueryParameter `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ListVolumesPaginatedParams defines parameters for ListVolumesPaginated.

type ListVolumesPaginatedResponse

type ListVolumesPaginatedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaginatedVolumesResponse
	JSONDefault  *ErrorResponse
}

func ParseListVolumesPaginatedResponse

func ParseListVolumesPaginatedResponse(rsp *http.Response) (*ListVolumesPaginatedResponse, error)

ParseListVolumesPaginatedResponse parses an HTTP response from a ListVolumesPaginatedWithResponse call

func (ListVolumesPaginatedResponse) Status

Status returns HTTPResponse.Status

func (ListVolumesPaginatedResponse) StatusCode

func (r ListVolumesPaginatedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Loadbalancer added in v1.3.0

type Loadbalancer struct {
	CreatedAt Timestamp `json:"created_at"`

	// Description The human-readable description for the load balancer.
	Description string `json:"description"`

	// ExternalIp The external IP of the load balancer.
	ExternalIp *string `json:"external_ip"`

	// Id A unique identifier for each load balancer. This is automatically generated.
	Id string `json:"id"`

	// Mode The load balancer mode.
	Mode LoadbalancerMode `json:"mode"`

	// Name The human-readable name for the load balancer.
	Name string `json:"name"`

	// Network The private network used by the load balancer.
	Network string `json:"network"`

	// Ports List of port mappings for the load balancer.
	Ports []LoadbalancerPort `json:"ports"`

	// Region The region identifier.
	Region Region `json:"region"`

	// Status The load balancer status.
	Status    LoadbalancerStatus `json:"status"`
	UpdatedAt Timestamp          `json:"updated_at"`
}

Loadbalancer defines model for Loadbalancer.

type LoadbalancerMode added in v1.3.0

type LoadbalancerMode string

LoadbalancerMode The load balancer mode.

const (
	LoadbalancerModeTcp LoadbalancerMode = "tcp"
)

Defines values for LoadbalancerMode.

type LoadbalancerPort added in v1.3.0

type LoadbalancerPort struct {
	// Port The port exposed on the load balancer.
	Port int `json:"port"`

	// TargetPort The port to forward traffic to on the targets.
	TargetPort int `json:"target_port"`

	// Targets List of target IP addresses.
	Targets []string `json:"targets"`
}

LoadbalancerPort defines model for Loadbalancer.Port.

type LoadbalancerStatus added in v1.3.0

type LoadbalancerStatus string

LoadbalancerStatus The load balancer status.

const (
	LoadbalancerStatusActive   LoadbalancerStatus = "active"
	LoadbalancerStatusCreating LoadbalancerStatus = "creating"
	LoadbalancerStatusDeleting LoadbalancerStatus = "deleting"
	LoadbalancerStatusError    LoadbalancerStatus = "error"
)

Defines values for LoadbalancerStatus.

type OSType

type OSType string

OSType The OS type.

const (
	OSTypeLinux   OSType = "linux"
	OSTypeWindows OSType = "windows"
)

Defines values for OSType.

type PageQueryParameter

type PageQueryParameter = int

PageQueryParameter A positive integer to choose the page to return.

type PaginatedFilesystemsResponse

type PaginatedFilesystemsResponse struct {
	Filesystems []Filesystem `json:"filesystems"`
	Page        int          `json:"page"`
	PerPage     int          `json:"per_page"`
	TotalCount  int          `json:"total_count"`
}

PaginatedFilesystemsResponse defines model for PaginatedFilesystemsResponse.

type PaginatedFloatingIPsResponse

type PaginatedFloatingIPsResponse struct {
	FloatingIps []FloatingIP `json:"floating_ips"`
	Page        int          `json:"page"`
	PerPage     int          `json:"per_page"`
	TotalCount  int          `json:"total_count"`
}

PaginatedFloatingIPsResponse defines model for PaginatedFloatingIPsResponse.

type PaginatedImagesResponse

type PaginatedImagesResponse struct {
	Images     []Image `json:"images"`
	Page       int     `json:"page"`
	PerPage    int     `json:"per_page"`
	TotalCount int     `json:"total_count"`
}

PaginatedImagesResponse defines model for PaginatedImagesResponse.

type PaginatedInstancesResponse

type PaginatedInstancesResponse struct {
	Instances  []Instance `json:"instances"`
	Page       int        `json:"page"`
	PerPage    int        `json:"per_page"`
	TotalCount int        `json:"total_count"`
}

PaginatedInstancesResponse defines model for PaginatedInstancesResponse.

type PaginatedKubernetesClustersResponse

type PaginatedKubernetesClustersResponse struct {
	Clusters   []KubernetesCluster `json:"clusters"`
	Page       int                 `json:"page"`
	PerPage    int                 `json:"per_page"`
	TotalCount int                 `json:"total_count"`
}

PaginatedKubernetesClustersResponse defines model for PaginatedKubernetesClustersResponse.

type PaginatedLoadbalancersResponse added in v1.3.0

type PaginatedLoadbalancersResponse struct {
	Loadbalancers []Loadbalancer `json:"loadbalancers"`
	Page          int            `json:"page"`
	PerPage       int            `json:"per_page"`
	TotalCount    int            `json:"total_count"`
}

PaginatedLoadbalancersResponse defines model for PaginatedLoadbalancersResponse.

type PaginatedPrivateNetworksResponse

type PaginatedPrivateNetworksResponse struct {
	Page            int              `json:"page"`
	PerPage         int              `json:"per_page"`
	PrivateNetworks []PrivateNetwork `json:"private_networks"`
	TotalCount      int              `json:"total_count"`
}

PaginatedPrivateNetworksResponse defines model for PaginatedPrivateNetworksResponse.

type PaginatedSSHKeysResponse

type PaginatedSSHKeysResponse struct {
	Page       int      `json:"page"`
	PerPage    int      `json:"per_page"`
	SshKeys    []SSHKey `json:"ssh_keys"`
	TotalCount int      `json:"total_count"`
}

PaginatedSSHKeysResponse defines model for PaginatedSSHKeysResponse.

type PaginatedSecurityGroupsResponse

type PaginatedSecurityGroupsResponse struct {
	Page           int             `json:"page"`
	PerPage        int             `json:"per_page"`
	SecurityGroups []SecurityGroup `json:"security_groups"`
	TotalCount     int             `json:"total_count"`
}

PaginatedSecurityGroupsResponse defines model for PaginatedSecurityGroupsResponse.

type PaginatedSnapshotsResponse

type PaginatedSnapshotsResponse struct {
	Page       int        `json:"page"`
	PerPage    int        `json:"per_page"`
	Snapshots  []Snapshot `json:"snapshots"`
	TotalCount int        `json:"total_count"`
}

PaginatedSnapshotsResponse defines model for PaginatedSnapshotsResponse.

type PaginatedVolumesResponse

type PaginatedVolumesResponse struct {
	Page       int      `json:"page"`
	PerPage    int      `json:"per_page"`
	TotalCount int      `json:"total_count"`
	Volumes    []Volume `json:"volumes"`
}

PaginatedVolumesResponse defines model for PaginatedVolumesResponse.

type PerPageQueryParameter

type PerPageQueryParameter = int

PerPageQueryParameter A positive integer lower or equal to 100 to select the number of items to return.

type PerformInstanceActionJSONBody

type PerformInstanceActionJSONBody struct {
	Action InstanceAction `json:"action"`
}

PerformInstanceActionJSONBody defines parameters for PerformInstanceAction.

type PerformInstanceActionJSONRequestBody

type PerformInstanceActionJSONRequestBody PerformInstanceActionJSONBody

PerformInstanceActionJSONRequestBody defines body for PerformInstanceAction for application/json ContentType.

type PerformInstanceActionResponse

type PerformInstanceActionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSONDefault  *ErrorResponse
}

func ParsePerformInstanceActionResponse

func ParsePerformInstanceActionResponse(rsp *http.Response) (*PerformInstanceActionResponse, error)

ParsePerformInstanceActionResponse parses an HTTP response from a PerformInstanceActionWithResponse call

func (PerformInstanceActionResponse) Status

Status returns HTTPResponse.Status

func (PerformInstanceActionResponse) StatusCode

func (r PerformInstanceActionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PrivateNetwork

type PrivateNetwork struct {
	// CidrV4 The IPv4 CIDR block for the private network.
	CidrV4 *string `json:"cidr_v4"`

	// CidrV6 The IPv6 CIDR block for the private network.
	CidrV6    *string   `json:"cidr_v6"`
	CreatedAt Timestamp `json:"created_at"`

	// Description The human-readable description for the private network.
	Description string `json:"description"`

	// Id A unique identifier for each private network. This is automatically generated.
	Id PrivateNetworkId `json:"id"`

	// Name The human-readable name for the private network.
	Name string `json:"name"`

	// Region The region identifier.
	Region Region `json:"region"`

	// Status The private network status.
	Status    PrivateNetworkStatus `json:"status"`
	UpdatedAt Timestamp            `json:"updated_at"`
}

PrivateNetwork defines model for PrivateNetwork.

type PrivateNetworkId

type PrivateNetworkId = string

PrivateNetworkId A unique identifier for each private network. This is automatically generated.

type PrivateNetworkStatus

type PrivateNetworkStatus string

PrivateNetworkStatus The private network status.

const (
	PrivateNetworkStatusCreated  PrivateNetworkStatus = "created"
	PrivateNetworkStatusCreating PrivateNetworkStatus = "creating"
	PrivateNetworkStatusDeleting PrivateNetworkStatus = "deleting"
	PrivateNetworkStatusError    PrivateNetworkStatus = "error"
)

Defines values for PrivateNetworkStatus.

type Quota

type Quota struct {
	Capacity int `json:"capacity"`
	Flavors  []struct {
		FlavorName  string `json:"flavor_name"`
		ProductName string `json:"product_name"`
		Unit        string `json:"unit"`
		Used        int    `json:"used"`
	} `json:"flavors"`
	Key  string `json:"key"`
	Used int    `json:"used"`
}

Quota defines model for Quota.

type QuotasResponse

type QuotasResponse struct {
	Quotas []Quota `json:"quotas"`
}

QuotasResponse defines model for QuotasResponse.

type Region

type Region string

Region The region identifier.

const (
	RegionEUCDEMUC1  Region = "EUC-DE-MUC-1"
	RegionEUWGBMNC1  Region = "EUW-GB-MNC-1"
	RegionEUWNLAMS1  Region = "EUW-NL-AMS-1"
	RegionNACAFTS1   Region = "NA-CA-FTS-1"
	RegionNACAMNZ1   Region = "NA-CA-MNZ-1"
	RegionNACAPRG1   Region = "NA-CA-PRG-1"
	RegionNORDNOKRS1 Region = "NORD-NO-KRS-1"
)

Defines values for Region.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type Reservation

type Reservation struct {
	FlavorName string                 `json:"flavor_name"`
	Id         string                 `json:"id"`
	Metadata   map[string]interface{} `json:"metadata"`
	Quota      struct {
		Capacity int `json:"capacity"`
		Used     int `json:"used"`
	} `json:"quota"`

	// Region The region identifier.
	Region Region `json:"region"`
}

Reservation defines model for Reservation.

type ReservationsResponse

type ReservationsResponse struct {
	Reservations []Reservation `json:"reservations"`
}

ReservationsResponse defines model for ReservationsResponse.

type SSHKey

type SSHKey struct {
	CreatedAt Timestamp `json:"created_at"`

	// Fingerprint The fingerprint of the SSH key.
	Fingerprint string `json:"fingerprint"`

	// Id A unique identifier for each SSH key. This is automatically generated.
	Id string `json:"id"`

	// Name The human-readable name for the SSH key.
	Name string `json:"name"`

	// Size The length of the SSH key.
	Size int `json:"size"`

	// Type The encryption algorithm type of the SSH key.
	Type      string    `json:"type"`
	UpdatedAt Timestamp `json:"updated_at"`

	// Value SSH public key.
	Value string `json:"value"`
}

SSHKey defines model for SSHKey.

type SecurityGroup

type SecurityGroup struct {
	CreatedAt Timestamp `json:"created_at"`

	// Description The human-readable description for the security group.
	Description string `json:"description"`

	// Id A unique identifier for each security group. This is automatically generated.
	Id         SecurityGroupId `json:"id"`
	IsInternal bool            `json:"is_internal"`

	// Name The human-readable name for the security group.
	Name string `json:"name"`

	// Region The region identifier.
	Region Region              `json:"region"`
	Rules  []SecurityGroupRule `json:"rules"`

	// Status The security group status.
	Status    SecurityGroupStatus `json:"status"`
	UpdatedAt Timestamp           `json:"updated_at"`
}

SecurityGroup defines model for SecurityGroup.

type SecurityGroupId

type SecurityGroupId = string

SecurityGroupId A unique identifier for each security group. This is automatically generated.

type SecurityGroupRule

type SecurityGroupRule struct {
	// Direction The direction of the rule.
	Direction SecurityGroupRuleDirection `json:"direction"`

	// PortRangeMax The maximum port number of the rule.
	PortRangeMax *int `json:"port_range_max"`

	// PortRangeMin The minimum port number of the rule.
	PortRangeMin *int `json:"port_range_min"`

	// Protocol The protocol of the rule.
	Protocol SecurityGroupRuleProtocol `json:"protocol"`
}

SecurityGroupRule defines model for SecurityGroup.Rule.

type SecurityGroupRuleDirection

type SecurityGroupRuleDirection string

SecurityGroupRuleDirection The direction of the rule.

const (
	SecurityGroupRuleDirectionEgress  SecurityGroupRuleDirection = "egress"
	SecurityGroupRuleDirectionIngress SecurityGroupRuleDirection = "ingress"
)

Defines values for SecurityGroupRuleDirection.

type SecurityGroupRuleProtocol

type SecurityGroupRuleProtocol string

SecurityGroupRuleProtocol The protocol of the rule.

const (
	SecurityGroupRuleProtocolAll  SecurityGroupRuleProtocol = "all"
	SecurityGroupRuleProtocolIcmp SecurityGroupRuleProtocol = "icmp"
	SecurityGroupRuleProtocolTcp  SecurityGroupRuleProtocol = "tcp"
	SecurityGroupRuleProtocolUdp  SecurityGroupRuleProtocol = "udp"
)

Defines values for SecurityGroupRuleProtocol.

type SecurityGroupStatus

type SecurityGroupStatus string

SecurityGroupStatus The security group status.

const (
	SecurityGroupStatusCreated  SecurityGroupStatus = "created"
	SecurityGroupStatusCreating SecurityGroupStatus = "creating"
	SecurityGroupStatusDeleting SecurityGroupStatus = "deleting"
	SecurityGroupStatusError    SecurityGroupStatus = "error"
)

Defines values for SecurityGroupStatus.

type SingleFilesystemResponse

type SingleFilesystemResponse struct {
	Filesystem Filesystem `json:"filesystem"`
}

SingleFilesystemResponse defines model for SingleFilesystemResponse.

type SingleFloatingIPResponse

type SingleFloatingIPResponse struct {
	FloatingIp FloatingIP `json:"floating_ip"`
}

SingleFloatingIPResponse defines model for SingleFloatingIPResponse.

type SingleInstanceResponse

type SingleInstanceResponse struct {
	Instance Instance `json:"instance"`
}

SingleInstanceResponse defines model for SingleInstanceResponse.

type SingleKubernetesClusterResponse

type SingleKubernetesClusterResponse struct {
	Cluster KubernetesCluster `json:"cluster"`
}

SingleKubernetesClusterResponse defines model for SingleKubernetesClusterResponse.

type SingleLoadbalancerResponse added in v1.3.0

type SingleLoadbalancerResponse struct {
	Loadbalancer Loadbalancer `json:"loadbalancer"`
}

SingleLoadbalancerResponse defines model for SingleLoadbalancerResponse.

type SinglePrivateNetworkResponse

type SinglePrivateNetworkResponse struct {
	PrivateNetwork PrivateNetwork `json:"private_network"`
}

SinglePrivateNetworkResponse defines model for SinglePrivateNetworkResponse.

type SingleSSHKeyResponse

type SingleSSHKeyResponse = SSHKey

SingleSSHKeyResponse defines model for SingleSSHKeyResponse.

type SingleSecurityGroupResponse

type SingleSecurityGroupResponse struct {
	SecurityGroup SecurityGroup `json:"security_group"`
}

SingleSecurityGroupResponse defines model for SingleSecurityGroupResponse.

type SingleSnapshotResponse

type SingleSnapshotResponse struct {
	Snapshot Snapshot `json:"snapshot"`
}

SingleSnapshotResponse defines model for SingleSnapshotResponse.

type SingleVolumeResponse

type SingleVolumeResponse struct {
	Volume Volume `json:"volume"`
}

SingleVolumeResponse defines model for SingleVolumeResponse.

type Snapshot

type Snapshot struct {
	CreatedAt Timestamp `json:"created_at"`

	// Id A unique identifier for each snapshot. This is automatically generated.
	Id string `json:"id"`

	// Name The human-readable name for the snapshot.
	Name string `json:"name"`

	// OsType The OS type.
	OsType OSType `json:"os_type"`

	// Region The region identifier.
	Region Region `json:"region"`

	// Size The storage size of this snapshot given in GiB.
	Size int `json:"size"`

	// SourceInstanceId The id of the source instance from which this snapshot was derived.
	SourceInstanceId *string `json:"source_instance_id,omitempty"`

	// SourceSnapshotId The id of the source snapshot from which this snapsot was derived.
	SourceSnapshotId *string `json:"source_snapshot_id,omitempty"`

	// Status The snapshot status.
	Status    SnapshotStatus `json:"status"`
	UpdatedAt Timestamp      `json:"updated_at"`
}

Snapshot defines model for Snapshot.

type SnapshotStatus

type SnapshotStatus string

SnapshotStatus The snapshot status.

const (
	SnapshotStatusCreated       SnapshotStatus = "created"
	SnapshotStatusCreating      SnapshotStatus = "creating"
	SnapshotStatusDeleting      SnapshotStatus = "deleting"
	SnapshotStatusError         SnapshotStatus = "error"
	SnapshotStatusPendingDelete SnapshotStatus = "pending_delete"
)

Defines values for SnapshotStatus.

type Timestamp

type Timestamp = time.Time

Timestamp defines model for Timestamp.

type UpdateFilesystemJSONBody

type UpdateFilesystemJSONBody struct {
	// Description The human-readable description set for the filesystem.
	Description *string `json:"description,omitempty"`

	// Name The human-readable name set for the filesystem.
	Name *string `json:"name,omitempty"`

	// Size The storage size of this filesystem given in GiB (min: previous size).
	Size *int `json:"size,omitempty"`
}

UpdateFilesystemJSONBody defines parameters for UpdateFilesystem.

type UpdateFilesystemJSONRequestBody

type UpdateFilesystemJSONRequestBody UpdateFilesystemJSONBody

UpdateFilesystemJSONRequestBody defines body for UpdateFilesystem for application/json ContentType.

type UpdateFilesystemResponse

type UpdateFilesystemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleFilesystemResponse
	JSONDefault  *ErrorResponse
}

func ParseUpdateFilesystemResponse

func ParseUpdateFilesystemResponse(rsp *http.Response) (*UpdateFilesystemResponse, error)

ParseUpdateFilesystemResponse parses an HTTP response from a UpdateFilesystemWithResponse call

func (UpdateFilesystemResponse) Status

func (r UpdateFilesystemResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateFilesystemResponse) StatusCode

func (r UpdateFilesystemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateFloatingIPJSONBody

type UpdateFloatingIPJSONBody struct {
	// Description The human-readable description set for the floating IP.
	Description *string `json:"description,omitempty"`

	// Name The human-readable name set for the floating IP.
	Name *string `json:"name,omitempty"`
}

UpdateFloatingIPJSONBody defines parameters for UpdateFloatingIP.

type UpdateFloatingIPJSONRequestBody

type UpdateFloatingIPJSONRequestBody UpdateFloatingIPJSONBody

UpdateFloatingIPJSONRequestBody defines body for UpdateFloatingIP for application/json ContentType.

type UpdateFloatingIPResponse

type UpdateFloatingIPResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleFloatingIPResponse
	JSONDefault  *ErrorResponse
}

func ParseUpdateFloatingIPResponse

func ParseUpdateFloatingIPResponse(rsp *http.Response) (*UpdateFloatingIPResponse, error)

ParseUpdateFloatingIPResponse parses an HTTP response from a UpdateFloatingIPWithResponse call

func (UpdateFloatingIPResponse) Status

func (r UpdateFloatingIPResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateFloatingIPResponse) StatusCode

func (r UpdateFloatingIPResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateInstanceJSONBody

type UpdateInstanceJSONBody struct {
	// DiskSize The storage size of the instance's boot volume given in GiB.
	DiskSize *InstanceDiskSize `json:"disk_size,omitempty"`

	// IsProtected Specifies if the instance is termination protected.
	// When set to `true`, it"s not possible to destroy the instance until it"s switched to `false`.
	// Set to `true` automatically for long-term billed instances.
	IsProtected *InstanceIsProtected `json:"is_protected,omitempty"`

	// Name The human-readable name set for the instance.
	Name *InstanceName `json:"name,omitempty"`

	// ReservationId The unique ID of the reservation the instance is associated with.
	ReservationId  *string                       `json:"reservation_id,omitempty"`
	SecurityGroups *InstanceUpdateSecurityGroups `json:"security_groups,omitempty"`
	Volumes        *InstanceUpdateVolumes        `json:"volumes,omitempty"`
}

UpdateInstanceJSONBody defines parameters for UpdateInstance.

type UpdateInstanceJSONRequestBody

type UpdateInstanceJSONRequestBody UpdateInstanceJSONBody

UpdateInstanceJSONRequestBody defines body for UpdateInstance for application/json ContentType.

type UpdateInstanceResponse

type UpdateInstanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleInstanceResponse
	JSONDefault  *ErrorResponse
}

func ParseUpdateInstanceResponse

func ParseUpdateInstanceResponse(rsp *http.Response) (*UpdateInstanceResponse, error)

ParseUpdateInstanceResponse parses an HTTP response from a UpdateInstanceWithResponse call

func (UpdateInstanceResponse) Status

func (r UpdateInstanceResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateInstanceResponse) StatusCode

func (r UpdateInstanceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateKubernetesClusterJSONBody

type UpdateKubernetesClusterJSONBody struct {
	// Network The network ID for the cluster.
	Network *string `json:"network"`
}

UpdateKubernetesClusterJSONBody defines parameters for UpdateKubernetesCluster.

type UpdateKubernetesClusterJSONRequestBody

type UpdateKubernetesClusterJSONRequestBody UpdateKubernetesClusterJSONBody

UpdateKubernetesClusterJSONRequestBody defines body for UpdateKubernetesCluster for application/json ContentType.

type UpdateKubernetesClusterResponse

type UpdateKubernetesClusterResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleKubernetesClusterResponse
	JSONDefault  *ErrorResponse
}

func ParseUpdateKubernetesClusterResponse

func ParseUpdateKubernetesClusterResponse(rsp *http.Response) (*UpdateKubernetesClusterResponse, error)

ParseUpdateKubernetesClusterResponse parses an HTTP response from a UpdateKubernetesClusterWithResponse call

func (UpdateKubernetesClusterResponse) Status

Status returns HTTPResponse.Status

func (UpdateKubernetesClusterResponse) StatusCode

func (r UpdateKubernetesClusterResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateLoadbalancerJSONBody added in v1.3.0

type UpdateLoadbalancerJSONBody struct {
	// Description The human-readable description for the load balancer.
	Description *string `json:"description,omitempty"`

	// Name The human-readable name for the load balancer.
	Name *string `json:"name,omitempty"`

	// Ports List of port mappings for the load balancer.
	Ports *[]LoadbalancerPort `json:"ports,omitempty"`
}

UpdateLoadbalancerJSONBody defines parameters for UpdateLoadbalancer.

type UpdateLoadbalancerJSONRequestBody added in v1.3.0

type UpdateLoadbalancerJSONRequestBody UpdateLoadbalancerJSONBody

UpdateLoadbalancerJSONRequestBody defines body for UpdateLoadbalancer for application/json ContentType.

type UpdateLoadbalancerResponse added in v1.3.0

type UpdateLoadbalancerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleLoadbalancerResponse
	JSONDefault  *ErrorResponse
}

func ParseUpdateLoadbalancerResponse added in v1.3.0

func ParseUpdateLoadbalancerResponse(rsp *http.Response) (*UpdateLoadbalancerResponse, error)

ParseUpdateLoadbalancerResponse parses an HTTP response from a UpdateLoadbalancerWithResponse call

func (UpdateLoadbalancerResponse) Status added in v1.3.0

Status returns HTTPResponse.Status

func (UpdateLoadbalancerResponse) StatusCode added in v1.3.0

func (r UpdateLoadbalancerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdatePrivateNetworkJSONBody

type UpdatePrivateNetworkJSONBody struct {
	// Description The human-readable description set for the private network.
	Description *string `json:"description,omitempty"`

	// Name The human-readable name set for the private network.
	Name *string `json:"name,omitempty"`
}

UpdatePrivateNetworkJSONBody defines parameters for UpdatePrivateNetwork.

type UpdatePrivateNetworkJSONRequestBody

type UpdatePrivateNetworkJSONRequestBody UpdatePrivateNetworkJSONBody

UpdatePrivateNetworkJSONRequestBody defines body for UpdatePrivateNetwork for application/json ContentType.

type UpdatePrivateNetworkResponse

type UpdatePrivateNetworkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SinglePrivateNetworkResponse
	JSONDefault  *ErrorResponse
}

func ParseUpdatePrivateNetworkResponse

func ParseUpdatePrivateNetworkResponse(rsp *http.Response) (*UpdatePrivateNetworkResponse, error)

ParseUpdatePrivateNetworkResponse parses an HTTP response from a UpdatePrivateNetworkWithResponse call

func (UpdatePrivateNetworkResponse) Status

Status returns HTTPResponse.Status

func (UpdatePrivateNetworkResponse) StatusCode

func (r UpdatePrivateNetworkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateSSHKeyJSONBody

type UpdateSSHKeyJSONBody struct {
	// Name The new human-readable name for your ssh key.
	Name *string `json:"name,omitempty"`
}

UpdateSSHKeyJSONBody defines parameters for UpdateSSHKey.

type UpdateSSHKeyJSONRequestBody

type UpdateSSHKeyJSONRequestBody UpdateSSHKeyJSONBody

UpdateSSHKeyJSONRequestBody defines body for UpdateSSHKey for application/json ContentType.

type UpdateSSHKeyResponse

type UpdateSSHKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleSSHKeyResponse
	JSONDefault  *ErrorResponse
}

func ParseUpdateSSHKeyResponse

func ParseUpdateSSHKeyResponse(rsp *http.Response) (*UpdateSSHKeyResponse, error)

ParseUpdateSSHKeyResponse parses an HTTP response from a UpdateSSHKeyWithResponse call

func (UpdateSSHKeyResponse) Status

func (r UpdateSSHKeyResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateSSHKeyResponse) StatusCode

func (r UpdateSSHKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateSecurityGroupJSONBody

type UpdateSecurityGroupJSONBody struct {
	// Description he human-readable description set for the security group.
	Description *string `json:"description,omitempty"`

	// Name The human-readable name set for the security group.
	Name *string `json:"name,omitempty"`

	// Rules The list of rules of the security group.
	Rules *[]SecurityGroupRule `json:"rules,omitempty"`
}

UpdateSecurityGroupJSONBody defines parameters for UpdateSecurityGroup.

type UpdateSecurityGroupJSONRequestBody

type UpdateSecurityGroupJSONRequestBody UpdateSecurityGroupJSONBody

UpdateSecurityGroupJSONRequestBody defines body for UpdateSecurityGroup for application/json ContentType.

type UpdateSecurityGroupResponse

type UpdateSecurityGroupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleSecurityGroupResponse
	JSONDefault  *ErrorResponse
}

func ParseUpdateSecurityGroupResponse

func ParseUpdateSecurityGroupResponse(rsp *http.Response) (*UpdateSecurityGroupResponse, error)

ParseUpdateSecurityGroupResponse parses an HTTP response from a UpdateSecurityGroupWithResponse call

func (UpdateSecurityGroupResponse) Status

Status returns HTTPResponse.Status

func (UpdateSecurityGroupResponse) StatusCode

func (r UpdateSecurityGroupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateSnapshotJSONBody

type UpdateSnapshotJSONBody struct {
	// Name The new human-readable name for your snapshot.
	Name *string `json:"name,omitempty"`
}

UpdateSnapshotJSONBody defines parameters for UpdateSnapshot.

type UpdateSnapshotJSONRequestBody

type UpdateSnapshotJSONRequestBody UpdateSnapshotJSONBody

UpdateSnapshotJSONRequestBody defines body for UpdateSnapshot for application/json ContentType.

type UpdateSnapshotResponse

type UpdateSnapshotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleSnapshotResponse
	JSONDefault  *ErrorResponse
}

func ParseUpdateSnapshotResponse

func ParseUpdateSnapshotResponse(rsp *http.Response) (*UpdateSnapshotResponse, error)

ParseUpdateSnapshotResponse parses an HTTP response from a UpdateSnapshotWithResponse call

func (UpdateSnapshotResponse) Status

func (r UpdateSnapshotResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateSnapshotResponse) StatusCode

func (r UpdateSnapshotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateVolumeJSONBody

type UpdateVolumeJSONBody struct {
	// Description The human-readable description set for the volume.
	Description *string `json:"description,omitempty"`

	// Name The human-readable name set for the volume.
	Name *string `json:"name,omitempty"`

	// Size The storage size of this volume given in GiB (min: previous size).
	Size *int `json:"size,omitempty"`
}

UpdateVolumeJSONBody defines parameters for UpdateVolume.

type UpdateVolumeJSONRequestBody

type UpdateVolumeJSONRequestBody UpdateVolumeJSONBody

UpdateVolumeJSONRequestBody defines body for UpdateVolume for application/json ContentType.

type UpdateVolumeResponse

type UpdateVolumeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SingleVolumeResponse
	JSONDefault  *ErrorResponse
}

func ParseUpdateVolumeResponse

func ParseUpdateVolumeResponse(rsp *http.Response) (*UpdateVolumeResponse, error)

ParseUpdateVolumeResponse parses an HTTP response from a UpdateVolumeWithResponse call

func (UpdateVolumeResponse) Status

func (r UpdateVolumeResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateVolumeResponse) StatusCode

func (r UpdateVolumeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Volume

type Volume struct {
	CreatedAt Timestamp `json:"created_at"`

	// Description The human-readable description for the volume.
	Description string `json:"description"`

	// Id A unique identifier for each volume. This is automatically generated.
	Id VolumeId `json:"id"`

	// Instances The attached instances.
	Instances []struct {
		// Id The id of the attached instance.
		Id string `json:"id"`

		// Name The name of the attached instance.
		Name string `json:"name"`
	} `json:"instances"`

	// Name The human-readable name for the volume.
	Name string `json:"name"`

	// Region The region identifier.
	Region Region `json:"region"`

	// Size The storage size of this volume given in GiB.
	Size   int          `json:"size"`
	Status VolumeStatus `json:"status"`

	// Type The volume type.
	Type      VolumeType `json:"type"`
	UpdatedAt Timestamp  `json:"updated_at"`
}

Volume defines model for Volume.

type VolumeId

type VolumeId = string

VolumeId A unique identifier for each volume. This is automatically generated.

type VolumeStatus

type VolumeStatus string

VolumeStatus defines model for Volume.Status.

const (
	VolumeStatusCreated       VolumeStatus = "created"
	VolumeStatusCreating      VolumeStatus = "creating"
	VolumeStatusDeleting      VolumeStatus = "deleting"
	VolumeStatusError         VolumeStatus = "error"
	VolumeStatusPendingDelete VolumeStatus = "pending_delete"
)

Defines values for VolumeStatus.

type VolumeType

type VolumeType string

VolumeType The volume type.

const (
	VolumeTypeHdd VolumeType = "hdd"
	VolumeTypeSsd VolumeType = "ssd"
)

Defines values for VolumeType.

Directories

Path Synopsis
examples
list-instances command

Jump to

Keyboard shortcuts

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