api

package module
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

README

American Cloud Go SDK

Typed Go client for the American Cloud public API.

This SDK is auto-generated from the OpenAPI specification using Fern. It targets American Cloud API v1 — see VERSIONING.md for how SDK releases track the API.

Listing regions and VMs with the American Cloud Go SDK

Installation

go get github.com/American-Cloud/americancloud-sdk-go@latest

To pin a specific release:

go get github.com/American-Cloud/americancloud-sdk-go@v1.3.0

Authentication

Every request requires both parts of an American Cloud API key, sent as headers:

Header SDK option
X-API-Client-ID option.WithAPIKey(...)
X-API-Client-Secret option.WithAPIClientSecret(...)

Create and manage keys at console.americancloud.com/api-keys. The client secret is shown once at creation — store it securely. If lost, revoke the key and create a new one.

Each key is scoped at creation:

  • read-onlyGET endpoints only
  • read-write — full access to all resource management endpoints

Quick start

package main

import (
	"context"
	"fmt"
	"log"
	"os"

	americancloud "github.com/American-Cloud/americancloud-sdk-go/client"
	"github.com/American-Cloud/americancloud-sdk-go/option"
)

func main() {
	client := americancloud.NewClient(
		option.WithAPIKey(os.Getenv("AMERICANCLOUD_API_CLIENT_ID")),
		option.WithAPIClientSecret(os.Getenv("AMERICANCLOUD_API_CLIENT_SECRET")),
	)

	vms, err := client.Vms.ListVms(context.Background(), nil)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", vms)
}

The client is namespaced by resource — client.Vms, client.BlockStorage, client.Kubernetes, client.DnsZones, etc.

API endpoint

The SDK targets the American Cloud production API at https://api.americancloud.com by default. To override (e.g. for a self-hosted or internal environment), pass option.WithBaseURL:

client := americancloud.NewClient(
    option.WithAPIKey("..."),
    option.WithAPIClientSecret("..."),
    option.WithBaseURL("https://your-custom-endpoint.example.com"),
)

API reference

Guides

Narrative walkthroughs on the American Cloud docs site:

Versioning

The SDK version matches the API platform version it was generated from — SDK x.y.z is generated from OpenAPI document x.y.z, so the SDK↔API mapping is one-to-one by construction:

  • Patch / minor releases are backward-compatible — safe to upgrade.
  • Major releases track a new API URL version (/api/v2) and may require code changes; check the CHANGELOG first.
  • The 1.x line targets API v1, which remains available for at least six months after a v2 release.
  • Additive API changes (new endpoints, optional fields, enum values) ship within a version — tolerate unknown fields and new enum values gracefully.

See VERSIONING.md for the full policy.

Reporting issues

Open an issue against this repository, or contact American Cloud support.

Contributing

This SDK is generated — do not edit the source by hand. See CONTRIBUTING.md for the generation workflow.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Environments = struct {
	Production string
}{
	Production: "https://api.americancloud.com",
}

Environments defines all of the API environments. These values can be used with the WithBaseURL RequestOption to override the client's default environment, if any.

View Source
var ErrorCodes internal.ErrorCodes = internal.ErrorCodes{
	400: func(apiError *core.APIError) error {
		return &BadRequestError{
			APIError: apiError,
		}
	},
	401: func(apiError *core.APIError) error {
		return &UnauthorizedError{
			APIError: apiError,
		}
	},
	403: func(apiError *core.APIError) error {
		return &ForbiddenError{
			APIError: apiError,
		}
	},
	404: func(apiError *core.APIError) error {
		return &NotFoundError{
			APIError: apiError,
		}
	},
	500: func(apiError *core.APIError) error {
		return &InternalServerError{
			APIError: apiError,
		}
	},
	409: func(apiError *core.APIError) error {
		return &ConflictError{
			APIError: apiError,
		}
	},
	504: func(apiError *core.APIError) error {
		return &GatewayTimeoutError{
			APIError: apiError,
		}
	},
}

Functions

func Bool

func Bool(b bool) *bool

Bool returns a pointer to the given bool value.

func Byte

func Byte(b byte) *byte

Byte returns a pointer to the given byte value.

func Bytes

func Bytes(b []byte) *[]byte

Bytes returns a pointer to the given []byte value.

func Complex64

func Complex64(c complex64) *complex64

Complex64 returns a pointer to the given complex64 value.

func Complex128

func Complex128(c complex128) *complex128

Complex128 returns a pointer to the given complex128 value.

func Float32

func Float32(f float32) *float32

Float32 returns a pointer to the given float32 value.

func Float64

func Float64(f float64) *float64

Float64 returns a pointer to the given float64 value.

func Int

func Int(i int) *int

Int returns a pointer to the given int value.

func Int8

func Int8(i int8) *int8

Int8 returns a pointer to the given int8 value.

func Int16

func Int16(i int16) *int16

Int16 returns a pointer to the given int16 value.

func Int32

func Int32(i int32) *int32

Int32 returns a pointer to the given int32 value.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to the given int64 value.

func MustParseDate

func MustParseDate(date string) time.Time

MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.

func MustParseDateTime

func MustParseDateTime(datetime string) time.Time

MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.

func Rune

func Rune(r rune) *rune

Rune returns a pointer to the given rune value.

func String

func String(s string) *string

String returns a pointer to the given string value.

func Time

func Time(t time.Time) *time.Time

Time returns a pointer to the given time.Time value.

func UUID

func UUID(u uuid.UUID) *uuid.UUID

UUID returns a pointer to the given uuid.UUID value.

func Uint

func Uint(u uint) *uint

Uint returns a pointer to the given uint value.

func Uint8

func Uint8(u uint8) *uint8

Uint8 returns a pointer to the given uint8 value.

func Uint16

func Uint16(u uint16) *uint16

Uint16 returns a pointer to the given uint16 value.

func Uint32

func Uint32(u uint32) *uint32

Uint32 returns a pointer to the given uint32 value.

func Uint64

func Uint64(u uint64) *uint64

Uint64 returns a pointer to the given uint64 value.

func Uintptr

func Uintptr(u uintptr) *uintptr

Uintptr returns a pointer to the given uintptr value.

Types

type APIErrorDto

type APIErrorDto struct {
	// HTTP status code.
	StatusCode float64 `json:"statusCode" url:"statusCode"`
	// Human-readable error message. A single string for most errors, or an array of strings when the request failed multiple validation checks.
	Message *APIErrorDtoMessage `json:"message" url:"message"`
	// Short HTTP error label.
	Error *string `json:"error,omitempty" url:"error,omitempty"`
	// Machine-readable reason for the error. Match on this value rather than on `message`, which can be reworded at any time. Present on the errors that have more than one cause for the same status code; omitted otherwise.
	Code *string `json:"code,omitempty" url:"code,omitempty"`
	// Per-field validation details. Present on 400 responses produced by request-body validation; omitted otherwise.
	Errors []*ValidationErrorItemDto `json:"errors,omitempty" url:"errors,omitempty"`
	// The snapshots that block a delete. Present on a 409 whose `code` is `volume_has_snapshots`; omitted otherwise.
	Snapshots []*BlockingSnapshotDto `json:"snapshots,omitempty" url:"snapshots,omitempty"`
	// contains filtered or unexported fields
}

func (*APIErrorDto) GetCode added in v1.4.0

func (a *APIErrorDto) GetCode() *string

func (*APIErrorDto) GetError

func (a *APIErrorDto) GetError() *string

func (*APIErrorDto) GetErrors

func (a *APIErrorDto) GetErrors() []*ValidationErrorItemDto

func (*APIErrorDto) GetExtraProperties

func (a *APIErrorDto) GetExtraProperties() map[string]interface{}

func (*APIErrorDto) GetMessage

func (a *APIErrorDto) GetMessage() *APIErrorDtoMessage

func (*APIErrorDto) GetSnapshots added in v1.4.0

func (a *APIErrorDto) GetSnapshots() []*BlockingSnapshotDto

func (*APIErrorDto) GetStatusCode

func (a *APIErrorDto) GetStatusCode() float64

func (*APIErrorDto) MarshalJSON

func (a *APIErrorDto) MarshalJSON() ([]byte, error)

func (*APIErrorDto) SetCode added in v1.4.0

func (a *APIErrorDto) SetCode(code *string)

SetCode sets the Code field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIErrorDto) SetError

func (a *APIErrorDto) SetError(error_ *string)

SetError sets the Error field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIErrorDto) SetErrors

func (a *APIErrorDto) SetErrors(errors []*ValidationErrorItemDto)

SetErrors sets the Errors field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIErrorDto) SetMessage

func (a *APIErrorDto) SetMessage(message *APIErrorDtoMessage)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIErrorDto) SetSnapshots added in v1.4.0

func (a *APIErrorDto) SetSnapshots(snapshots []*BlockingSnapshotDto)

SetSnapshots sets the Snapshots field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIErrorDto) SetStatusCode

func (a *APIErrorDto) SetStatusCode(statusCode float64)

SetStatusCode sets the StatusCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*APIErrorDto) String

func (a *APIErrorDto) String() string

func (*APIErrorDto) UnmarshalJSON

func (a *APIErrorDto) UnmarshalJSON(data []byte) error

type APIErrorDtoMessage

type APIErrorDtoMessage struct {
	String     string
	StringList []string
	// contains filtered or unexported fields
}

Human-readable error message. A single string for most errors, or an array of strings when the request failed multiple validation checks.

func (*APIErrorDtoMessage) Accept

func (*APIErrorDtoMessage) GetString

func (a *APIErrorDtoMessage) GetString() string

func (*APIErrorDtoMessage) GetStringList

func (a *APIErrorDtoMessage) GetStringList() []string

func (APIErrorDtoMessage) MarshalJSON

func (a APIErrorDtoMessage) MarshalJSON() ([]byte, error)

func (*APIErrorDtoMessage) UnmarshalJSON

func (a *APIErrorDtoMessage) UnmarshalJSON(data []byte) error

type APIErrorDtoMessageVisitor

type APIErrorDtoMessageVisitor interface {
	VisitString(string) error
	VisitStringList([]string) error
}

type AccessKeyDto

type AccessKeyDto struct {
	// S3 access key identifier.
	AccessKey string `json:"accessKey" url:"accessKey"`
	// S3 secret key paired with the access key.
	SecretKey string `json:"secretKey" url:"secretKey"`
	// contains filtered or unexported fields
}

func (*AccessKeyDto) GetAccessKey

func (a *AccessKeyDto) GetAccessKey() string

func (*AccessKeyDto) GetExtraProperties

func (a *AccessKeyDto) GetExtraProperties() map[string]interface{}

func (*AccessKeyDto) GetSecretKey

func (a *AccessKeyDto) GetSecretKey() string

func (*AccessKeyDto) MarshalJSON

func (a *AccessKeyDto) MarshalJSON() ([]byte, error)

func (*AccessKeyDto) SetAccessKey

func (a *AccessKeyDto) SetAccessKey(accessKey string)

SetAccessKey sets the AccessKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccessKeyDto) SetSecretKey

func (a *AccessKeyDto) SetSecretKey(secretKey string)

SetSecretKey sets the SecretKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AccessKeyDto) String

func (a *AccessKeyDto) String() string

func (*AccessKeyDto) UnmarshalJSON

func (a *AccessKeyDto) UnmarshalJSON(data []byte) error

type AssignVmsLoadBalancerRulesRequest

type AssignVmsLoadBalancerRulesRequest struct {
	// ID of the load balancer rule
	RuleID string                          `json:"-" url:"-"`
	Body   *AssignVmsToLoadBalancerRuleDto `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*AssignVmsLoadBalancerRulesRequest) MarshalJSON

func (a *AssignVmsLoadBalancerRulesRequest) MarshalJSON() ([]byte, error)

func (*AssignVmsLoadBalancerRulesRequest) SetRuleID

func (a *AssignVmsLoadBalancerRulesRequest) SetRuleID(ruleID string)

SetRuleID sets the RuleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AssignVmsLoadBalancerRulesRequest) UnmarshalJSON

func (a *AssignVmsLoadBalancerRulesRequest) UnmarshalJSON(data []byte) error

type AssignVmsToLoadBalancerRuleDto

type AssignVmsToLoadBalancerRuleDto struct {
	// Identifiers of the VMs to attach as backends for the rule.
	VmIds []string `json:"vmIds" url:"vmIds"`
	// contains filtered or unexported fields
}

func (*AssignVmsToLoadBalancerRuleDto) GetExtraProperties

func (a *AssignVmsToLoadBalancerRuleDto) GetExtraProperties() map[string]interface{}

func (*AssignVmsToLoadBalancerRuleDto) GetVmIds

func (a *AssignVmsToLoadBalancerRuleDto) GetVmIds() []string

func (*AssignVmsToLoadBalancerRuleDto) MarshalJSON

func (a *AssignVmsToLoadBalancerRuleDto) MarshalJSON() ([]byte, error)

func (*AssignVmsToLoadBalancerRuleDto) SetVmIds

func (a *AssignVmsToLoadBalancerRuleDto) SetVmIds(vmIds []string)

SetVmIds sets the VmIds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AssignVmsToLoadBalancerRuleDto) String

func (*AssignVmsToLoadBalancerRuleDto) UnmarshalJSON

func (a *AssignVmsToLoadBalancerRuleDto) UnmarshalJSON(data []byte) error

type AttachVolumeDto

type AttachVolumeDto struct {
	// Volume ID
	ID string `json:"-" url:"-"`
	// The ID of the virtual machine to attach the volume to
	VmId string `json:"vmId" url:"-"`
	// contains filtered or unexported fields
}

func (*AttachVolumeDto) MarshalJSON

func (a *AttachVolumeDto) MarshalJSON() ([]byte, error)

func (*AttachVolumeDto) SetID

func (a *AttachVolumeDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AttachVolumeDto) SetVmId

func (a *AttachVolumeDto) SetVmId(vmId string)

SetVmId sets the VmId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*AttachVolumeDto) UnmarshalJSON

func (a *AttachVolumeDto) UnmarshalJSON(data []byte) error

type BackupClusterConfigResponseDto

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

func (*BackupClusterConfigResponseDto) GetExtraProperties

func (b *BackupClusterConfigResponseDto) GetExtraProperties() map[string]interface{}

func (*BackupClusterConfigResponseDto) MarshalJSON

func (b *BackupClusterConfigResponseDto) MarshalJSON() ([]byte, error)

func (*BackupClusterConfigResponseDto) String

func (*BackupClusterConfigResponseDto) UnmarshalJSON

func (b *BackupClusterConfigResponseDto) UnmarshalJSON(data []byte) error

type BackupConfigUpdateResponseDto added in v1.3.2

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

func (*BackupConfigUpdateResponseDto) GetExtraProperties added in v1.3.2

func (b *BackupConfigUpdateResponseDto) GetExtraProperties() map[string]interface{}

func (*BackupConfigUpdateResponseDto) MarshalJSON added in v1.3.2

func (b *BackupConfigUpdateResponseDto) MarshalJSON() ([]byte, error)

func (*BackupConfigUpdateResponseDto) String added in v1.3.2

func (*BackupConfigUpdateResponseDto) UnmarshalJSON added in v1.3.2

func (b *BackupConfigUpdateResponseDto) UnmarshalJSON(data []byte) error

type BackupDeleteResponseDto

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

func (*BackupDeleteResponseDto) GetExtraProperties

func (b *BackupDeleteResponseDto) GetExtraProperties() map[string]interface{}

func (*BackupDeleteResponseDto) MarshalJSON

func (b *BackupDeleteResponseDto) MarshalJSON() ([]byte, error)

func (*BackupDeleteResponseDto) String

func (b *BackupDeleteResponseDto) String() string

func (*BackupDeleteResponseDto) UnmarshalJSON

func (b *BackupDeleteResponseDto) UnmarshalJSON(data []byte) error

type BackupDetailsResponseDto

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

func (*BackupDetailsResponseDto) GetExtraProperties

func (b *BackupDetailsResponseDto) GetExtraProperties() map[string]interface{}

func (*BackupDetailsResponseDto) MarshalJSON

func (b *BackupDetailsResponseDto) MarshalJSON() ([]byte, error)

func (*BackupDetailsResponseDto) String

func (b *BackupDetailsResponseDto) String() string

func (*BackupDetailsResponseDto) UnmarshalJSON

func (b *BackupDetailsResponseDto) UnmarshalJSON(data []byte) error

type BackupListResponseDto

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

func (*BackupListResponseDto) GetExtraProperties

func (b *BackupListResponseDto) GetExtraProperties() map[string]interface{}

func (*BackupListResponseDto) MarshalJSON

func (b *BackupListResponseDto) MarshalJSON() ([]byte, error)

func (*BackupListResponseDto) String

func (b *BackupListResponseDto) String() string

func (*BackupListResponseDto) UnmarshalJSON

func (b *BackupListResponseDto) UnmarshalJSON(data []byte) error

type BackupPolicyListResponseDto

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

func (*BackupPolicyListResponseDto) GetExtraProperties

func (b *BackupPolicyListResponseDto) GetExtraProperties() map[string]interface{}

func (*BackupPolicyListResponseDto) MarshalJSON

func (b *BackupPolicyListResponseDto) MarshalJSON() ([]byte, error)

func (*BackupPolicyListResponseDto) String

func (b *BackupPolicyListResponseDto) String() string

func (*BackupPolicyListResponseDto) UnmarshalJSON

func (b *BackupPolicyListResponseDto) UnmarshalJSON(data []byte) error

type BackupRepoDeleteResponseDto

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

func (*BackupRepoDeleteResponseDto) GetExtraProperties

func (b *BackupRepoDeleteResponseDto) GetExtraProperties() map[string]interface{}

func (*BackupRepoDeleteResponseDto) MarshalJSON

func (b *BackupRepoDeleteResponseDto) MarshalJSON() ([]byte, error)

func (*BackupRepoDeleteResponseDto) String

func (b *BackupRepoDeleteResponseDto) String() string

func (*BackupRepoDeleteResponseDto) UnmarshalJSON

func (b *BackupRepoDeleteResponseDto) UnmarshalJSON(data []byte) error

type BackupRepoListResponseDto

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

func (*BackupRepoListResponseDto) GetExtraProperties

func (b *BackupRepoListResponseDto) GetExtraProperties() map[string]interface{}

func (*BackupRepoListResponseDto) MarshalJSON

func (b *BackupRepoListResponseDto) MarshalJSON() ([]byte, error)

func (*BackupRepoListResponseDto) String

func (b *BackupRepoListResponseDto) String() string

func (*BackupRepoListResponseDto) UnmarshalJSON

func (b *BackupRepoListResponseDto) UnmarshalJSON(data []byte) error

type BackupRepoSetupResponseDto

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

func (*BackupRepoSetupResponseDto) GetExtraProperties

func (b *BackupRepoSetupResponseDto) GetExtraProperties() map[string]interface{}

func (*BackupRepoSetupResponseDto) MarshalJSON

func (b *BackupRepoSetupResponseDto) MarshalJSON() ([]byte, error)

func (*BackupRepoSetupResponseDto) String

func (b *BackupRepoSetupResponseDto) String() string

func (*BackupRepoSetupResponseDto) UnmarshalJSON

func (b *BackupRepoSetupResponseDto) UnmarshalJSON(data []byte) error

type BackupRepoStatusResponseDto

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

func (*BackupRepoStatusResponseDto) GetExtraProperties

func (b *BackupRepoStatusResponseDto) GetExtraProperties() map[string]interface{}

func (*BackupRepoStatusResponseDto) MarshalJSON

func (b *BackupRepoStatusResponseDto) MarshalJSON() ([]byte, error)

func (*BackupRepoStatusResponseDto) String

func (b *BackupRepoStatusResponseDto) String() string

func (*BackupRepoStatusResponseDto) UnmarshalJSON

func (b *BackupRepoStatusResponseDto) UnmarshalJSON(data []byte) error

type BackupRepoUpdateResponseDto

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

func (*BackupRepoUpdateResponseDto) GetExtraProperties

func (b *BackupRepoUpdateResponseDto) GetExtraProperties() map[string]interface{}

func (*BackupRepoUpdateResponseDto) MarshalJSON

func (b *BackupRepoUpdateResponseDto) MarshalJSON() ([]byte, error)

func (*BackupRepoUpdateResponseDto) String

func (b *BackupRepoUpdateResponseDto) String() string

func (*BackupRepoUpdateResponseDto) UnmarshalJSON

func (b *BackupRepoUpdateResponseDto) UnmarshalJSON(data []byte) error

type BackupScheduleItemDto

type BackupScheduleItemDto struct {
	// Name of this schedule entry.
	Name string `json:"name" url:"name"`
	// Backup method to use for runs of this schedule.
	BackupMethod BackupScheduleItemDtoBackupMethod `json:"backupMethod" url:"backupMethod"`
	// Cron expression describing when the schedule fires.
	CronExpression string `json:"cronExpression" url:"cronExpression"`
	// How long to keep each backup produced by this schedule.
	RetentionPeriod *string `json:"retentionPeriod,omitempty" url:"retentionPeriod,omitempty"`
	// Whether this schedule is active.
	Enabled *bool `json:"enabled,omitempty" url:"enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupScheduleItemDto) GetBackupMethod

func (*BackupScheduleItemDto) GetCronExpression

func (b *BackupScheduleItemDto) GetCronExpression() string

func (*BackupScheduleItemDto) GetEnabled

func (b *BackupScheduleItemDto) GetEnabled() *bool

func (*BackupScheduleItemDto) GetExtraProperties

func (b *BackupScheduleItemDto) GetExtraProperties() map[string]interface{}

func (*BackupScheduleItemDto) GetName

func (b *BackupScheduleItemDto) GetName() string

func (*BackupScheduleItemDto) GetRetentionPeriod

func (b *BackupScheduleItemDto) GetRetentionPeriod() *string

func (*BackupScheduleItemDto) MarshalJSON

func (b *BackupScheduleItemDto) MarshalJSON() ([]byte, error)

func (*BackupScheduleItemDto) SetBackupMethod

func (b *BackupScheduleItemDto) SetBackupMethod(backupMethod BackupScheduleItemDtoBackupMethod)

SetBackupMethod sets the BackupMethod field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BackupScheduleItemDto) SetCronExpression

func (b *BackupScheduleItemDto) SetCronExpression(cronExpression string)

SetCronExpression sets the CronExpression field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BackupScheduleItemDto) SetEnabled

func (b *BackupScheduleItemDto) SetEnabled(enabled *bool)

SetEnabled sets the Enabled field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BackupScheduleItemDto) SetName

func (b *BackupScheduleItemDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BackupScheduleItemDto) SetRetentionPeriod

func (b *BackupScheduleItemDto) SetRetentionPeriod(retentionPeriod *string)

SetRetentionPeriod sets the RetentionPeriod field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BackupScheduleItemDto) String

func (b *BackupScheduleItemDto) String() string

func (*BackupScheduleItemDto) UnmarshalJSON

func (b *BackupScheduleItemDto) UnmarshalJSON(data []byte) error

type BackupScheduleItemDtoBackupMethod

type BackupScheduleItemDtoBackupMethod string

Backup method to use for runs of this schedule.

const (
	BackupScheduleItemDtoBackupMethodXtrabackup   BackupScheduleItemDtoBackupMethod = "xtrabackup"
	BackupScheduleItemDtoBackupMethodPgBasebackup BackupScheduleItemDtoBackupMethod = "pg-basebackup"
	BackupScheduleItemDtoBackupMethodDatafile     BackupScheduleItemDtoBackupMethod = "datafile"
)

func NewBackupScheduleItemDtoBackupMethodFromString

func NewBackupScheduleItemDtoBackupMethodFromString(s string) (BackupScheduleItemDtoBackupMethod, error)

func (BackupScheduleItemDtoBackupMethod) Ptr

type BackupScheduleListResponseDto

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

func (*BackupScheduleListResponseDto) GetExtraProperties

func (b *BackupScheduleListResponseDto) GetExtraProperties() map[string]interface{}

func (*BackupScheduleListResponseDto) MarshalJSON

func (b *BackupScheduleListResponseDto) MarshalJSON() ([]byte, error)

func (*BackupScheduleListResponseDto) String

func (*BackupScheduleListResponseDto) UnmarshalJSON

func (b *BackupScheduleListResponseDto) UnmarshalJSON(data []byte) error

type BackupTriggerResponseDto

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

func (*BackupTriggerResponseDto) GetExtraProperties

func (b *BackupTriggerResponseDto) GetExtraProperties() map[string]interface{}

func (*BackupTriggerResponseDto) MarshalJSON

func (b *BackupTriggerResponseDto) MarshalJSON() ([]byte, error)

func (*BackupTriggerResponseDto) String

func (b *BackupTriggerResponseDto) String() string

func (*BackupTriggerResponseDto) UnmarshalJSON

func (b *BackupTriggerResponseDto) UnmarshalJSON(data []byte) error

type BadRequestError

type BadRequestError struct {
	*core.APIError
	Body *APIErrorDto
}

The request was malformed or failed validation.

func (*BadRequestError) MarshalJSON

func (b *BadRequestError) MarshalJSON() ([]byte, error)

func (*BadRequestError) UnmarshalJSON

func (b *BadRequestError) UnmarshalJSON(data []byte) error

func (*BadRequestError) Unwrap

func (b *BadRequestError) Unwrap() error

type BandwidthDto

type BandwidthDto struct {
	// Whether the operation succeeded.
	Success bool `json:"success" url:"success"`
	// Bandwidth usage details for the instance.
	Data *BandwidthUsageDto `json:"data,omitempty" url:"data,omitempty"`
	// Error message describing why the operation failed.
	Message *string `json:"message,omitempty" url:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*BandwidthDto) GetData

func (b *BandwidthDto) GetData() *BandwidthUsageDto

func (*BandwidthDto) GetExtraProperties

func (b *BandwidthDto) GetExtraProperties() map[string]interface{}

func (*BandwidthDto) GetMessage

func (b *BandwidthDto) GetMessage() *string

func (*BandwidthDto) GetSuccess

func (b *BandwidthDto) GetSuccess() bool

func (*BandwidthDto) MarshalJSON

func (b *BandwidthDto) MarshalJSON() ([]byte, error)

func (*BandwidthDto) SetData

func (b *BandwidthDto) SetData(data *BandwidthUsageDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BandwidthDto) SetMessage

func (b *BandwidthDto) SetMessage(message *string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BandwidthDto) SetSuccess

func (b *BandwidthDto) SetSuccess(success bool)

SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BandwidthDto) String

func (b *BandwidthDto) String() string

func (*BandwidthDto) UnmarshalJSON

func (b *BandwidthDto) UnmarshalJSON(data []byte) error

type BandwidthUsageDto

type BandwidthUsageDto struct {
	// Total bandwidth used so far this period, in bytes.
	UsedBytes float64 `json:"usedBytes" url:"usedBytes"`
	// Total bandwidth allowed for the period, in bytes.
	LimitBytes float64 `json:"limitBytes" url:"limitBytes"`
	// Used bandwidth expressed as a percentage of the limit.
	UsedPercentage float64 `json:"usedPercentage" url:"usedPercentage"`
	// Calendar month the usage data covers (1-12).
	Month float64 `json:"month" url:"month"`
	// Calendar year the usage data covers.
	Year float64 `json:"year" url:"year"`
	// contains filtered or unexported fields
}

func (*BandwidthUsageDto) GetExtraProperties

func (b *BandwidthUsageDto) GetExtraProperties() map[string]interface{}

func (*BandwidthUsageDto) GetLimitBytes

func (b *BandwidthUsageDto) GetLimitBytes() float64

func (*BandwidthUsageDto) GetMonth

func (b *BandwidthUsageDto) GetMonth() float64

func (*BandwidthUsageDto) GetUsedBytes

func (b *BandwidthUsageDto) GetUsedBytes() float64

func (*BandwidthUsageDto) GetUsedPercentage

func (b *BandwidthUsageDto) GetUsedPercentage() float64

func (*BandwidthUsageDto) GetYear

func (b *BandwidthUsageDto) GetYear() float64

func (*BandwidthUsageDto) MarshalJSON

func (b *BandwidthUsageDto) MarshalJSON() ([]byte, error)

func (*BandwidthUsageDto) SetLimitBytes

func (b *BandwidthUsageDto) SetLimitBytes(limitBytes float64)

SetLimitBytes sets the LimitBytes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BandwidthUsageDto) SetMonth

func (b *BandwidthUsageDto) SetMonth(month float64)

SetMonth sets the Month field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BandwidthUsageDto) SetUsedBytes

func (b *BandwidthUsageDto) SetUsedBytes(usedBytes float64)

SetUsedBytes sets the UsedBytes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BandwidthUsageDto) SetUsedPercentage

func (b *BandwidthUsageDto) SetUsedPercentage(usedPercentage float64)

SetUsedPercentage sets the UsedPercentage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BandwidthUsageDto) SetYear

func (b *BandwidthUsageDto) SetYear(year float64)

SetYear sets the Year field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BandwidthUsageDto) String

func (b *BandwidthUsageDto) String() string

func (*BandwidthUsageDto) UnmarshalJSON

func (b *BandwidthUsageDto) UnmarshalJSON(data []byte) error

type BlockingSnapshotDto added in v1.4.0

type BlockingSnapshotDto struct {
	// Snapshot ID.
	ID string `json:"id" url:"id"`
	// Snapshot name.
	Name string `json:"name" url:"name"`
	// contains filtered or unexported fields
}

func (*BlockingSnapshotDto) GetExtraProperties added in v1.4.0

func (b *BlockingSnapshotDto) GetExtraProperties() map[string]interface{}

func (*BlockingSnapshotDto) GetID added in v1.4.0

func (b *BlockingSnapshotDto) GetID() string

func (*BlockingSnapshotDto) GetName added in v1.4.0

func (b *BlockingSnapshotDto) GetName() string

func (*BlockingSnapshotDto) MarshalJSON added in v1.4.0

func (b *BlockingSnapshotDto) MarshalJSON() ([]byte, error)

func (*BlockingSnapshotDto) SetID added in v1.4.0

func (b *BlockingSnapshotDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BlockingSnapshotDto) SetName added in v1.4.0

func (b *BlockingSnapshotDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BlockingSnapshotDto) String added in v1.4.0

func (b *BlockingSnapshotDto) String() string

func (*BlockingSnapshotDto) UnmarshalJSON added in v1.4.0

func (b *BlockingSnapshotDto) UnmarshalJSON(data []byte) error

type BucketDto

type BucketDto struct {
	// Name of the bucket.
	Name string `json:"name" url:"name"`
	// Tenant the bucket belongs to.
	Tenant string `json:"tenant" url:"tenant"`
	// When the bucket was created.
	CreatedAt time.Time `json:"createdAt" url:"createdAt"`
	// Number of objects stored in the bucket.
	NumObjects float64 `json:"numObjects" url:"numObjects"`
	// Total size of objects in the bucket, in kilobytes.
	SizeKb float64 `json:"sizeKb" url:"sizeKb"`
	// S3-compatible path to the bucket.
	S3Path string `json:"s3Path" url:"s3Path"`
	// contains filtered or unexported fields
}

func (*BucketDto) GetCreatedAt

func (b *BucketDto) GetCreatedAt() time.Time

func (*BucketDto) GetExtraProperties

func (b *BucketDto) GetExtraProperties() map[string]interface{}

func (*BucketDto) GetName

func (b *BucketDto) GetName() string

func (*BucketDto) GetNumObjects

func (b *BucketDto) GetNumObjects() float64

func (*BucketDto) GetS3Path

func (b *BucketDto) GetS3Path() string

func (*BucketDto) GetSizeKb

func (b *BucketDto) GetSizeKb() float64

func (*BucketDto) GetTenant

func (b *BucketDto) GetTenant() string

func (*BucketDto) MarshalJSON

func (b *BucketDto) MarshalJSON() ([]byte, error)

func (*BucketDto) SetCreatedAt

func (b *BucketDto) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BucketDto) SetName

func (b *BucketDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BucketDto) SetNumObjects

func (b *BucketDto) SetNumObjects(numObjects float64)

SetNumObjects sets the NumObjects field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BucketDto) SetS3Path

func (b *BucketDto) SetS3Path(s3Path string)

SetS3Path sets the S3Path field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BucketDto) SetSizeKb

func (b *BucketDto) SetSizeKb(sizeKb float64)

SetSizeKb sets the SizeKb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BucketDto) SetTenant

func (b *BucketDto) SetTenant(tenant string)

SetTenant sets the Tenant field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*BucketDto) String

func (b *BucketDto) String() string

func (*BucketDto) UnmarshalJSON

func (b *BucketDto) UnmarshalJSON(data []byte) error

type ChangePackageDto

type ChangePackageDto struct {
	// New package label to upgrade to
	PackageLabel string `json:"packageLabel" url:"packageLabel"`
	// contains filtered or unexported fields
}

func (*ChangePackageDto) GetExtraProperties added in v1.4.0

func (c *ChangePackageDto) GetExtraProperties() map[string]interface{}

func (*ChangePackageDto) GetPackageLabel added in v1.4.0

func (c *ChangePackageDto) GetPackageLabel() string

func (*ChangePackageDto) MarshalJSON

func (c *ChangePackageDto) MarshalJSON() ([]byte, error)

func (*ChangePackageDto) SetPackageLabel

func (c *ChangePackageDto) SetPackageLabel(packageLabel string)

SetPackageLabel sets the PackageLabel field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ChangePackageDto) String added in v1.4.0

func (c *ChangePackageDto) String() string

func (*ChangePackageDto) UnmarshalJSON

func (c *ChangePackageDto) UnmarshalJSON(data []byte) error

type ChangePackageEstimateDto added in v1.4.0

type ChangePackageEstimateDto struct {
	// Amount charged now for the rest of the current billing period.
	ProratedCharge float64 `json:"proratedCharge" url:"proratedCharge"`
	// Difference between the new and current monthly rates, before any discount.
	MonthlyDifference float64 `json:"monthlyDifference" url:"monthlyDifference"`
	// Amount taken off by an account discount. Omitted when no discount applies.
	Discount *float64 `json:"discount,omitempty" url:"discount,omitempty"`
	// Start of the period the prorated charge covers.
	PeriodStart time.Time `json:"periodStart" url:"periodStart"`
	// End of the period the prorated charge covers.
	PeriodEnd time.Time `json:"periodEnd" url:"periodEnd"`
	// contains filtered or unexported fields
}

func (*ChangePackageEstimateDto) GetDiscount added in v1.4.0

func (c *ChangePackageEstimateDto) GetDiscount() *float64

func (*ChangePackageEstimateDto) GetExtraProperties added in v1.4.0

func (c *ChangePackageEstimateDto) GetExtraProperties() map[string]interface{}

func (*ChangePackageEstimateDto) GetMonthlyDifference added in v1.4.0

func (c *ChangePackageEstimateDto) GetMonthlyDifference() float64

func (*ChangePackageEstimateDto) GetPeriodEnd added in v1.4.0

func (c *ChangePackageEstimateDto) GetPeriodEnd() time.Time

func (*ChangePackageEstimateDto) GetPeriodStart added in v1.4.0

func (c *ChangePackageEstimateDto) GetPeriodStart() time.Time

func (*ChangePackageEstimateDto) GetProratedCharge added in v1.4.0

func (c *ChangePackageEstimateDto) GetProratedCharge() float64

func (*ChangePackageEstimateDto) MarshalJSON added in v1.4.0

func (c *ChangePackageEstimateDto) MarshalJSON() ([]byte, error)

func (*ChangePackageEstimateDto) SetDiscount added in v1.4.0

func (c *ChangePackageEstimateDto) SetDiscount(discount *float64)

SetDiscount sets the Discount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ChangePackageEstimateDto) SetMonthlyDifference added in v1.4.0

func (c *ChangePackageEstimateDto) SetMonthlyDifference(monthlyDifference float64)

SetMonthlyDifference sets the MonthlyDifference field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ChangePackageEstimateDto) SetPeriodEnd added in v1.4.0

func (c *ChangePackageEstimateDto) SetPeriodEnd(periodEnd time.Time)

SetPeriodEnd sets the PeriodEnd field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ChangePackageEstimateDto) SetPeriodStart added in v1.4.0

func (c *ChangePackageEstimateDto) SetPeriodStart(periodStart time.Time)

SetPeriodStart sets the PeriodStart field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ChangePackageEstimateDto) SetProratedCharge added in v1.4.0

func (c *ChangePackageEstimateDto) SetProratedCharge(proratedCharge float64)

SetProratedCharge sets the ProratedCharge field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ChangePackageEstimateDto) String added in v1.4.0

func (c *ChangePackageEstimateDto) String() string

func (*ChangePackageEstimateDto) UnmarshalJSON added in v1.4.0

func (c *ChangePackageEstimateDto) UnmarshalJSON(data []byte) error

type ChangeSourceNatIPDto

type ChangeSourceNatIPDto struct {
	// ID of the public IP address to change
	ID string `json:"-" url:"-"`
	// Identifier of the network whose source NAT IP should be replaced.
	NetworkID string `json:"networkId" url:"-"`
	// contains filtered or unexported fields
}

func (*ChangeSourceNatIPDto) MarshalJSON

func (c *ChangeSourceNatIPDto) MarshalJSON() ([]byte, error)

func (*ChangeSourceNatIPDto) SetID

func (c *ChangeSourceNatIPDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ChangeSourceNatIPDto) SetNetworkID

func (c *ChangeSourceNatIPDto) SetNetworkID(networkID string)

SetNetworkID sets the NetworkID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ChangeSourceNatIPDto) UnmarshalJSON

func (c *ChangeSourceNatIPDto) UnmarshalJSON(data []byte) error

type ClusterActionResponseDto

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

func (*ClusterActionResponseDto) GetExtraProperties

func (c *ClusterActionResponseDto) GetExtraProperties() map[string]interface{}

func (*ClusterActionResponseDto) MarshalJSON

func (c *ClusterActionResponseDto) MarshalJSON() ([]byte, error)

func (*ClusterActionResponseDto) String

func (c *ClusterActionResponseDto) String() string

func (*ClusterActionResponseDto) UnmarshalJSON

func (c *ClusterActionResponseDto) UnmarshalJSON(data []byte) error

type ClusterDetailResponseDto

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

func (*ClusterDetailResponseDto) GetExtraProperties

func (c *ClusterDetailResponseDto) GetExtraProperties() map[string]interface{}

func (*ClusterDetailResponseDto) MarshalJSON

func (c *ClusterDetailResponseDto) MarshalJSON() ([]byte, error)

func (*ClusterDetailResponseDto) String

func (c *ClusterDetailResponseDto) String() string

func (*ClusterDetailResponseDto) UnmarshalJSON

func (c *ClusterDetailResponseDto) UnmarshalJSON(data []byte) error

type ClusterPowerKubernetesRequest

type ClusterPowerKubernetesRequest struct {
	// ID of the Kubernetes cluster
	ID string `json:"-" url:"-"`
	// Power action to perform
	Action ClusterPowerKubernetesRequestAction `json:"-" url:"action"`
	// contains filtered or unexported fields
}

func (*ClusterPowerKubernetesRequest) SetAction

SetAction sets the Action field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ClusterPowerKubernetesRequest) SetID

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ClusterPowerKubernetesRequestAction

type ClusterPowerKubernetesRequestAction string
const (
	ClusterPowerKubernetesRequestActionStart ClusterPowerKubernetesRequestAction = "start"
	ClusterPowerKubernetesRequestActionStop  ClusterPowerKubernetesRequestAction = "stop"
)

func NewClusterPowerKubernetesRequestActionFromString

func NewClusterPowerKubernetesRequestActionFromString(s string) (ClusterPowerKubernetesRequestAction, error)

func (ClusterPowerKubernetesRequestAction) Ptr

type ClusterStatusResponseDto

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

func (*ClusterStatusResponseDto) GetExtraProperties

func (c *ClusterStatusResponseDto) GetExtraProperties() map[string]interface{}

func (*ClusterStatusResponseDto) MarshalJSON

func (c *ClusterStatusResponseDto) MarshalJSON() ([]byte, error)

func (*ClusterStatusResponseDto) String

func (c *ClusterStatusResponseDto) String() string

func (*ClusterStatusResponseDto) UnmarshalJSON

func (c *ClusterStatusResponseDto) UnmarshalJSON(data []byte) error

type ConflictError

type ConflictError struct {
	*core.APIError
	Body *APIErrorDto
}

The root disk of the virtual machine has one or more snapshots. Delete the snapshots first, then delete the virtual machine. `code` is `volume_has_snapshots`.

func (*ConflictError) MarshalJSON

func (c *ConflictError) MarshalJSON() ([]byte, error)

func (*ConflictError) UnmarshalJSON

func (c *ConflictError) UnmarshalJSON(data []byte) error

func (*ConflictError) Unwrap

func (c *ConflictError) Unwrap() error

type ConnectionInfoResponseDto

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

func (*ConnectionInfoResponseDto) GetExtraProperties

func (c *ConnectionInfoResponseDto) GetExtraProperties() map[string]interface{}

func (*ConnectionInfoResponseDto) MarshalJSON

func (c *ConnectionInfoResponseDto) MarshalJSON() ([]byte, error)

func (*ConnectionInfoResponseDto) String

func (c *ConnectionInfoResponseDto) String() string

func (*ConnectionInfoResponseDto) UnmarshalJSON

func (c *ConnectionInfoResponseDto) UnmarshalJSON(data []byte) error

type CostBreakdownDto

type CostBreakdownDto struct {
	// Base cost before any discounts
	Base float64 `json:"base" url:"base"`
	// Discount amount applied
	Discount float64 `json:"discount" url:"discount"`
	// Final cost after discounts
	Total float64 `json:"total" url:"total"`
	// Prorated cost details (only present for monthly estimates)
	Prorated *ProratedEstimateDto `json:"prorated,omitempty" url:"prorated,omitempty"`
	// contains filtered or unexported fields
}

func (*CostBreakdownDto) GetBase

func (c *CostBreakdownDto) GetBase() float64

func (*CostBreakdownDto) GetDiscount

func (c *CostBreakdownDto) GetDiscount() float64

func (*CostBreakdownDto) GetExtraProperties

func (c *CostBreakdownDto) GetExtraProperties() map[string]interface{}

func (*CostBreakdownDto) GetProrated

func (c *CostBreakdownDto) GetProrated() *ProratedEstimateDto

func (*CostBreakdownDto) GetTotal

func (c *CostBreakdownDto) GetTotal() float64

func (*CostBreakdownDto) MarshalJSON

func (c *CostBreakdownDto) MarshalJSON() ([]byte, error)

func (*CostBreakdownDto) SetBase

func (c *CostBreakdownDto) SetBase(base float64)

SetBase sets the Base field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CostBreakdownDto) SetDiscount

func (c *CostBreakdownDto) SetDiscount(discount float64)

SetDiscount sets the Discount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CostBreakdownDto) SetProrated

func (c *CostBreakdownDto) SetProrated(prorated *ProratedEstimateDto)

SetProrated sets the Prorated field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CostBreakdownDto) SetTotal

func (c *CostBreakdownDto) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CostBreakdownDto) String

func (c *CostBreakdownDto) String() string

func (*CostBreakdownDto) UnmarshalJSON

func (c *CostBreakdownDto) UnmarshalJSON(data []byte) error

type CostEstimateResponseDto

type CostEstimateResponseDto struct {
	// Cost estimates for the resource
	Estimates *EstimatesDto `json:"estimates" url:"estimates"`
	// Discount applied to the estimate (if any)
	DiscountApplied *DiscountAppliedDto `json:"discount_applied,omitempty" url:"discount_applied,omitempty"`
	// Additional billing information or notes about pricing structure
	BillingNote *string `json:"billing_note,omitempty" url:"billing_note,omitempty"`
	// contains filtered or unexported fields
}

func (*CostEstimateResponseDto) GetBillingNote

func (c *CostEstimateResponseDto) GetBillingNote() *string

func (*CostEstimateResponseDto) GetDiscountApplied

func (c *CostEstimateResponseDto) GetDiscountApplied() *DiscountAppliedDto

func (*CostEstimateResponseDto) GetEstimates

func (c *CostEstimateResponseDto) GetEstimates() *EstimatesDto

func (*CostEstimateResponseDto) GetExtraProperties

func (c *CostEstimateResponseDto) GetExtraProperties() map[string]interface{}

func (*CostEstimateResponseDto) MarshalJSON

func (c *CostEstimateResponseDto) MarshalJSON() ([]byte, error)

func (*CostEstimateResponseDto) SetBillingNote

func (c *CostEstimateResponseDto) SetBillingNote(billingNote *string)

SetBillingNote sets the BillingNote field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CostEstimateResponseDto) SetDiscountApplied

func (c *CostEstimateResponseDto) SetDiscountApplied(discountApplied *DiscountAppliedDto)

SetDiscountApplied sets the DiscountApplied field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CostEstimateResponseDto) SetEstimates

func (c *CostEstimateResponseDto) SetEstimates(estimates *EstimatesDto)

SetEstimates sets the Estimates field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CostEstimateResponseDto) String

func (c *CostEstimateResponseDto) String() string

func (*CostEstimateResponseDto) UnmarshalJSON

func (c *CostEstimateResponseDto) UnmarshalJSON(data []byte) error

type CreateBucketRequestDto

type CreateBucketRequestDto struct {
	// Storage unit ID (UID)
	StorageUnitID string `json:"-" url:"-"`
	// Bucket name. Lowercase letters, numbers, dots, and hyphens only; must start and end with a letter or number.
	Name string `json:"name" url:"-"`
	// contains filtered or unexported fields
}

func (*CreateBucketRequestDto) MarshalJSON

func (c *CreateBucketRequestDto) MarshalJSON() ([]byte, error)

func (*CreateBucketRequestDto) SetName

func (c *CreateBucketRequestDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateBucketRequestDto) SetStorageUnitID

func (c *CreateBucketRequestDto) SetStorageUnitID(storageUnitID string)

SetStorageUnitID sets the StorageUnitID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateBucketRequestDto) UnmarshalJSON

func (c *CreateBucketRequestDto) UnmarshalJSON(data []byte) error

type CreateClusterResponseDto

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

func (*CreateClusterResponseDto) GetExtraProperties

func (c *CreateClusterResponseDto) GetExtraProperties() map[string]interface{}

func (*CreateClusterResponseDto) MarshalJSON

func (c *CreateClusterResponseDto) MarshalJSON() ([]byte, error)

func (*CreateClusterResponseDto) String

func (c *CreateClusterResponseDto) String() string

func (*CreateClusterResponseDto) UnmarshalJSON

func (c *CreateClusterResponseDto) UnmarshalJSON(data []byte) error

type CreateClusterRestoreDto

type CreateClusterRestoreDto struct {
	// Identifier of the source cluster to restore from.
	SourceClusterID string `json:"sourceClusterId" url:"sourceClusterId"`
	// Name of the backup to restore from on the source cluster.
	BackupName string `json:"backupName" url:"backupName"`
	// Point-in-time to restore to, in ISO 8601 format. Omit to restore to the backup timestamp.
	RestorePointInTime *string `json:"restorePointInTime,omitempty" url:"restorePointInTime,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateClusterRestoreDto) GetBackupName

func (c *CreateClusterRestoreDto) GetBackupName() string

func (*CreateClusterRestoreDto) GetExtraProperties

func (c *CreateClusterRestoreDto) GetExtraProperties() map[string]interface{}

func (*CreateClusterRestoreDto) GetRestorePointInTime

func (c *CreateClusterRestoreDto) GetRestorePointInTime() *string

func (*CreateClusterRestoreDto) GetSourceClusterID

func (c *CreateClusterRestoreDto) GetSourceClusterID() string

func (*CreateClusterRestoreDto) MarshalJSON

func (c *CreateClusterRestoreDto) MarshalJSON() ([]byte, error)

func (*CreateClusterRestoreDto) SetBackupName

func (c *CreateClusterRestoreDto) SetBackupName(backupName string)

SetBackupName sets the BackupName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateClusterRestoreDto) SetRestorePointInTime

func (c *CreateClusterRestoreDto) SetRestorePointInTime(restorePointInTime *string)

SetRestorePointInTime sets the RestorePointInTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateClusterRestoreDto) SetSourceClusterID

func (c *CreateClusterRestoreDto) SetSourceClusterID(sourceClusterID string)

SetSourceClusterID sets the SourceClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateClusterRestoreDto) String

func (c *CreateClusterRestoreDto) String() string

func (*CreateClusterRestoreDto) UnmarshalJSON

func (c *CreateClusterRestoreDto) UnmarshalJSON(data []byte) error

type CreateConsoleVmsRequest

type CreateConsoleVmsRequest struct {
	// ID of the virtual machine
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*CreateConsoleVmsRequest) SetID

func (c *CreateConsoleVmsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type CreateDatabaseClusterDto

type CreateDatabaseClusterDto struct {
	// Identifier of an existing infrastructure cluster to deploy the database on. Omit to provision new infrastructure.
	UserClusterID *string `json:"userClusterId,omitempty" url:"-"`
	// Database cluster name. Must comply with Kubernetes naming rules.
	DbClusterName string `json:"dbClusterName" url:"-"`
	// SSH key authorized for access to the cluster. Required when creating a new cluster; omit only when deploying onto an existing `userClusterId`.
	SSHKey *string `json:"sshKey,omitempty" url:"-"`
	// Identifier of the database offering to use.
	OfferingID *string `json:"offeringId,omitempty" url:"-"`
	// Name of the database offering. Alternative to `offeringId` for selecting an offering.
	OfferingName *string `json:"offeringName,omitempty" url:"-"`
	// Identifier of the region the cluster will run in.
	RegionID string `json:"regionId" url:"-"`
	// Infrastructure tier that determines per-node CPU and memory.
	Tier string `json:"tier" url:"-"`
	// Availability mode for the cluster.
	AvailabilityType CreateDatabaseClusterDtoAvailabilityType `json:"availabilityType" url:"-"`
	// Storage capacity allocated to the cluster, in gigabytes.
	StorageGb *int `json:"storageGb,omitempty" url:"-"`
	// Network the cluster will attach to. Required when creating a new cluster; omit only when deploying onto an existing `userClusterId`.
	NetworkConfig *CreateDatabaseClusterDtoNetworkConfig `json:"networkConfig,omitempty" url:"-"`
	// Restore-from-backup configuration. Provide to bootstrap the new cluster from an existing backup.
	Restore *CreateClusterRestoreDto `json:"restore,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CreateDatabaseClusterDto) MarshalJSON

func (c *CreateDatabaseClusterDto) MarshalJSON() ([]byte, error)

func (*CreateDatabaseClusterDto) SetAvailabilityType

func (c *CreateDatabaseClusterDto) SetAvailabilityType(availabilityType CreateDatabaseClusterDtoAvailabilityType)

SetAvailabilityType sets the AvailabilityType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateDatabaseClusterDto) SetDbClusterName

func (c *CreateDatabaseClusterDto) SetDbClusterName(dbClusterName string)

SetDbClusterName sets the DbClusterName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateDatabaseClusterDto) SetNetworkConfig

func (c *CreateDatabaseClusterDto) SetNetworkConfig(networkConfig *CreateDatabaseClusterDtoNetworkConfig)

SetNetworkConfig sets the NetworkConfig field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateDatabaseClusterDto) SetOfferingID

func (c *CreateDatabaseClusterDto) SetOfferingID(offeringID *string)

SetOfferingID sets the OfferingID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateDatabaseClusterDto) SetOfferingName

func (c *CreateDatabaseClusterDto) SetOfferingName(offeringName *string)

SetOfferingName sets the OfferingName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateDatabaseClusterDto) SetRegionID

func (c *CreateDatabaseClusterDto) SetRegionID(regionID string)

SetRegionID sets the RegionID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateDatabaseClusterDto) SetRestore

func (c *CreateDatabaseClusterDto) SetRestore(restore *CreateClusterRestoreDto)

SetRestore sets the Restore field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateDatabaseClusterDto) SetSSHKey

func (c *CreateDatabaseClusterDto) SetSSHKey(sshKey *string)

SetSSHKey sets the SSHKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateDatabaseClusterDto) SetStorageGb

func (c *CreateDatabaseClusterDto) SetStorageGb(storageGb *int)

SetStorageGb sets the StorageGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateDatabaseClusterDto) SetTier

func (c *CreateDatabaseClusterDto) SetTier(tier string)

SetTier sets the Tier field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateDatabaseClusterDto) SetUserClusterID

func (c *CreateDatabaseClusterDto) SetUserClusterID(userClusterID *string)

SetUserClusterID sets the UserClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateDatabaseClusterDto) UnmarshalJSON

func (c *CreateDatabaseClusterDto) UnmarshalJSON(data []byte) error

type CreateDatabaseClusterDtoAvailabilityType

type CreateDatabaseClusterDtoAvailabilityType string

Availability mode for the cluster.

const (
	CreateDatabaseClusterDtoAvailabilityTypeSingleNode     CreateDatabaseClusterDtoAvailabilityType = "single-node"
	CreateDatabaseClusterDtoAvailabilityTypeDataRedundancy CreateDatabaseClusterDtoAvailabilityType = "data-redundancy"
)

func NewCreateDatabaseClusterDtoAvailabilityTypeFromString

func NewCreateDatabaseClusterDtoAvailabilityTypeFromString(s string) (CreateDatabaseClusterDtoAvailabilityType, error)

func (CreateDatabaseClusterDtoAvailabilityType) Ptr

type CreateDatabaseClusterDtoNetworkConfig

type CreateDatabaseClusterDtoNetworkConfig struct {
	NetworkType string
	Isolated    *IsolatedNetworkConfigDto
	Vpc         *VpcNetworkConfigDto
}

Network the cluster will attach to. Required when creating a new cluster; omit only when deploying onto an existing `userClusterId`.

func (*CreateDatabaseClusterDtoNetworkConfig) Accept

func (*CreateDatabaseClusterDtoNetworkConfig) GetIsolated

func (*CreateDatabaseClusterDtoNetworkConfig) GetNetworkType

func (c *CreateDatabaseClusterDtoNetworkConfig) GetNetworkType() string

func (*CreateDatabaseClusterDtoNetworkConfig) GetVpc

func (CreateDatabaseClusterDtoNetworkConfig) MarshalJSON

func (c CreateDatabaseClusterDtoNetworkConfig) MarshalJSON() ([]byte, error)

func (*CreateDatabaseClusterDtoNetworkConfig) UnmarshalJSON

func (c *CreateDatabaseClusterDtoNetworkConfig) UnmarshalJSON(data []byte) error

type CreateDatabaseClusterDtoNetworkConfigVisitor

type CreateDatabaseClusterDtoNetworkConfigVisitor interface {
	VisitIsolated(*IsolatedNetworkConfigDto) error
	VisitVpc(*VpcNetworkConfigDto) error
}

type CreateEgressRuleDto

type CreateEgressRuleDto struct {
	// Protocol the rule applies to. One of `TCP`, `UDP`, `ICMP`, or `ALL`.
	Protocol string `json:"protocol" url:"-"`
	// Start of the port range the rule applies to.
	StartPort *int `json:"startPort,omitempty" url:"-"`
	// End of the port range the rule applies to.
	EndPort *int `json:"endPort,omitempty" url:"-"`
	// Source CIDR within the network's CIDR — which senders inside the network the rule matches. Omit to match the entire network.
	SourceCidrList *string `json:"sourceCidrList,omitempty" url:"-"`
	// Destination CIDR the rule matches — where the outbound traffic is headed. Defaults to `0.0.0.0/0` (anywhere). Whether matching traffic is permitted or blocked depends on the network: see `action` on the created rule.
	DestCidrList *string `json:"destCidrList,omitempty" url:"-"`
	// Identifier of the network the egress rule applies to.
	NetworkID *string `json:"networkId,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CreateEgressRuleDto) MarshalJSON

func (c *CreateEgressRuleDto) MarshalJSON() ([]byte, error)

func (*CreateEgressRuleDto) SetDestCidrList

func (c *CreateEgressRuleDto) SetDestCidrList(destCidrList *string)

SetDestCidrList sets the DestCidrList field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateEgressRuleDto) SetEndPort

func (c *CreateEgressRuleDto) SetEndPort(endPort *int)

SetEndPort sets the EndPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateEgressRuleDto) SetNetworkID

func (c *CreateEgressRuleDto) SetNetworkID(networkID *string)

SetNetworkID sets the NetworkID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateEgressRuleDto) SetProtocol

func (c *CreateEgressRuleDto) SetProtocol(protocol string)

SetProtocol sets the Protocol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateEgressRuleDto) SetSourceCidrList

func (c *CreateEgressRuleDto) SetSourceCidrList(sourceCidrList *string)

SetSourceCidrList sets the SourceCidrList field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateEgressRuleDto) SetStartPort

func (c *CreateEgressRuleDto) SetStartPort(startPort *int)

SetStartPort sets the StartPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateEgressRuleDto) UnmarshalJSON

func (c *CreateEgressRuleDto) UnmarshalJSON(data []byte) error

type CreateFirewallRuleDto

type CreateFirewallRuleDto struct {
	// ID of the public IP address
	IpId string `json:"-" url:"-"`
	// Protocol the rule applies to.
	Protocol CreateFirewallRuleDtoProtocol `json:"protocol" url:"-"`
	// Start of the port range (1-65535). Required for TCP and UDP.
	StartPort *int `json:"startPort,omitempty" url:"-"`
	// End of the port range (1-65535). Must be greater than or equal to `startPort`.
	EndPort *int `json:"endPort,omitempty" url:"-"`
	// Source CIDR allowed to reach the rule target.
	SourceCidrList string `json:"sourceCidrList" url:"-"`
	// Direction of traffic this rule applies to.
	Type *CreateFirewallRuleDtoType `json:"type,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CreateFirewallRuleDto) MarshalJSON

func (c *CreateFirewallRuleDto) MarshalJSON() ([]byte, error)

func (*CreateFirewallRuleDto) SetEndPort

func (c *CreateFirewallRuleDto) SetEndPort(endPort *int)

SetEndPort sets the EndPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateFirewallRuleDto) SetIpId

func (c *CreateFirewallRuleDto) SetIpId(ipId string)

SetIpId sets the IpId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateFirewallRuleDto) SetProtocol

func (c *CreateFirewallRuleDto) SetProtocol(protocol CreateFirewallRuleDtoProtocol)

SetProtocol sets the Protocol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateFirewallRuleDto) SetSourceCidrList

func (c *CreateFirewallRuleDto) SetSourceCidrList(sourceCidrList string)

SetSourceCidrList sets the SourceCidrList field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateFirewallRuleDto) SetStartPort

func (c *CreateFirewallRuleDto) SetStartPort(startPort *int)

SetStartPort sets the StartPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateFirewallRuleDto) SetType

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateFirewallRuleDto) UnmarshalJSON

func (c *CreateFirewallRuleDto) UnmarshalJSON(data []byte) error

type CreateFirewallRuleDtoProtocol

type CreateFirewallRuleDtoProtocol string

Protocol the rule applies to.

const (
	CreateFirewallRuleDtoProtocolTCP  CreateFirewallRuleDtoProtocol = "TCP"
	CreateFirewallRuleDtoProtocolUDP  CreateFirewallRuleDtoProtocol = "UDP"
	CreateFirewallRuleDtoProtocolIcmp CreateFirewallRuleDtoProtocol = "ICMP"
	CreateFirewallRuleDtoProtocolAll  CreateFirewallRuleDtoProtocol = "ALL"
)

func NewCreateFirewallRuleDtoProtocolFromString

func NewCreateFirewallRuleDtoProtocolFromString(s string) (CreateFirewallRuleDtoProtocol, error)

func (CreateFirewallRuleDtoProtocol) Ptr

type CreateFirewallRuleDtoType

type CreateFirewallRuleDtoType string

Direction of traffic this rule applies to.

const (
	CreateFirewallRuleDtoTypeIngress CreateFirewallRuleDtoType = "Ingress"
	CreateFirewallRuleDtoTypeEgress  CreateFirewallRuleDtoType = "Egress"
)

func NewCreateFirewallRuleDtoTypeFromString

func NewCreateFirewallRuleDtoTypeFromString(s string) (CreateFirewallRuleDtoType, error)

func (CreateFirewallRuleDtoType) Ptr

type CreateIsolatedNetworkDto

type CreateIsolatedNetworkDto struct {
	// Human-readable name for the network.
	Name string `json:"name" url:"-"`
	// Free-form description of the network.
	Description *string `json:"description,omitempty" url:"-"`
	// Region the network will be created in. References a region label from /v1/compute/regions.
	Region string `json:"region" url:"-"`
	// Network netmask.
	Netmask *string `json:"netmask,omitempty" url:"-"`
	// Network gateway IP.
	Gateway *string `json:"gateway,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CreateIsolatedNetworkDto) MarshalJSON

func (c *CreateIsolatedNetworkDto) MarshalJSON() ([]byte, error)

func (*CreateIsolatedNetworkDto) SetDescription

func (c *CreateIsolatedNetworkDto) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIsolatedNetworkDto) SetGateway

func (c *CreateIsolatedNetworkDto) SetGateway(gateway *string)

SetGateway sets the Gateway field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIsolatedNetworkDto) SetName

func (c *CreateIsolatedNetworkDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIsolatedNetworkDto) SetNetmask

func (c *CreateIsolatedNetworkDto) SetNetmask(netmask *string)

SetNetmask sets the Netmask field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIsolatedNetworkDto) SetRegion

func (c *CreateIsolatedNetworkDto) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateIsolatedNetworkDto) UnmarshalJSON

func (c *CreateIsolatedNetworkDto) UnmarshalJSON(data []byte) error

type CreateKubernetesClusterRequest

type CreateKubernetesClusterRequest struct {
	// Name of the cluster
	Name string `json:"name" url:"name"`
	// Package label to use for the cluster
	Package string `json:"package" url:"package"`
	// Region where to deploy the cluster
	Region string `json:"region" url:"region"`
	// Kubernetes version to use (semantic version)
	Version string `json:"version" url:"version"`
	// Number of control plane nodes
	ControlNodes float64 `json:"controlNodes" url:"controlNodes"`
	// Number of worker nodes
	WorkerNodes float64 `json:"workerNodes" url:"workerNodes"`
	// Description of the cluster
	Description *string `json:"description,omitempty" url:"description,omitempty"`
	// Network ID to use for the cluster
	NetworkID *string `json:"networkId,omitempty" url:"networkId,omitempty"`
	// SSH keypair name to use for cluster nodes
	Keypair *string `json:"keypair,omitempty" url:"keypair,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateKubernetesClusterRequest) GetControlNodes

func (c *CreateKubernetesClusterRequest) GetControlNodes() float64

func (*CreateKubernetesClusterRequest) GetDescription

func (c *CreateKubernetesClusterRequest) GetDescription() *string

func (*CreateKubernetesClusterRequest) GetExtraProperties

func (c *CreateKubernetesClusterRequest) GetExtraProperties() map[string]interface{}

func (*CreateKubernetesClusterRequest) GetKeypair

func (c *CreateKubernetesClusterRequest) GetKeypair() *string

func (*CreateKubernetesClusterRequest) GetName

func (*CreateKubernetesClusterRequest) GetNetworkID

func (c *CreateKubernetesClusterRequest) GetNetworkID() *string

func (*CreateKubernetesClusterRequest) GetPackage

func (c *CreateKubernetesClusterRequest) GetPackage() string

func (*CreateKubernetesClusterRequest) GetRegion

func (c *CreateKubernetesClusterRequest) GetRegion() string

func (*CreateKubernetesClusterRequest) GetVersion

func (c *CreateKubernetesClusterRequest) GetVersion() string

func (*CreateKubernetesClusterRequest) GetWorkerNodes

func (c *CreateKubernetesClusterRequest) GetWorkerNodes() float64

func (*CreateKubernetesClusterRequest) MarshalJSON

func (c *CreateKubernetesClusterRequest) MarshalJSON() ([]byte, error)

func (*CreateKubernetesClusterRequest) SetControlNodes

func (c *CreateKubernetesClusterRequest) SetControlNodes(controlNodes float64)

SetControlNodes sets the ControlNodes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateKubernetesClusterRequest) SetDescription

func (c *CreateKubernetesClusterRequest) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateKubernetesClusterRequest) SetKeypair

func (c *CreateKubernetesClusterRequest) SetKeypair(keypair *string)

SetKeypair sets the Keypair field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateKubernetesClusterRequest) SetName

func (c *CreateKubernetesClusterRequest) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateKubernetesClusterRequest) SetNetworkID

func (c *CreateKubernetesClusterRequest) SetNetworkID(networkID *string)

SetNetworkID sets the NetworkID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateKubernetesClusterRequest) SetPackage

func (c *CreateKubernetesClusterRequest) SetPackage(package_ string)

SetPackage sets the Package field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateKubernetesClusterRequest) SetRegion

func (c *CreateKubernetesClusterRequest) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateKubernetesClusterRequest) SetVersion

func (c *CreateKubernetesClusterRequest) SetVersion(version string)

SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateKubernetesClusterRequest) SetWorkerNodes

func (c *CreateKubernetesClusterRequest) SetWorkerNodes(workerNodes float64)

SetWorkerNodes sets the WorkerNodes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateKubernetesClusterRequest) String

func (*CreateKubernetesClusterRequest) UnmarshalJSON

func (c *CreateKubernetesClusterRequest) UnmarshalJSON(data []byte) error

type CreateLoadBalancerRuleDto

type CreateLoadBalancerRuleDto struct {
	// ID of the public IP address
	IpId string `json:"-" url:"-"`
	// Name of the load balancer rule
	Name string `json:"name" url:"-"`
	// Algorithm used to distribute traffic across the backend VMs.
	Algorithm CreateLoadBalancerRuleDtoAlgorithm `json:"algorithm" url:"-"`
	// Public port the load balancer listens on.
	PublicPort string `json:"publicPort" url:"-"`
	// Port on the backend VMs that traffic is forwarded to.
	PrivatePort string `json:"privatePort" url:"-"`
	// Protocol the load balancer accepts.
	Protocol *CreateLoadBalancerRuleDtoProtocol `json:"protocol,omitempty" url:"-"`
	// Source CIDR allowed to reach the load balancer.
	SourceCidrList *string `json:"sourceCidrList,omitempty" url:"-"`
	// Free-form description of the rule.
	Description *string `json:"description,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CreateLoadBalancerRuleDto) MarshalJSON

func (c *CreateLoadBalancerRuleDto) MarshalJSON() ([]byte, error)

func (*CreateLoadBalancerRuleDto) SetAlgorithm

SetAlgorithm sets the Algorithm field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateLoadBalancerRuleDto) SetDescription

func (c *CreateLoadBalancerRuleDto) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateLoadBalancerRuleDto) SetIpId

func (c *CreateLoadBalancerRuleDto) SetIpId(ipId string)

SetIpId sets the IpId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateLoadBalancerRuleDto) SetName

func (c *CreateLoadBalancerRuleDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateLoadBalancerRuleDto) SetPrivatePort

func (c *CreateLoadBalancerRuleDto) SetPrivatePort(privatePort string)

SetPrivatePort sets the PrivatePort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateLoadBalancerRuleDto) SetProtocol

SetProtocol sets the Protocol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateLoadBalancerRuleDto) SetPublicPort

func (c *CreateLoadBalancerRuleDto) SetPublicPort(publicPort string)

SetPublicPort sets the PublicPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateLoadBalancerRuleDto) SetSourceCidrList

func (c *CreateLoadBalancerRuleDto) SetSourceCidrList(sourceCidrList *string)

SetSourceCidrList sets the SourceCidrList field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateLoadBalancerRuleDto) UnmarshalJSON

func (c *CreateLoadBalancerRuleDto) UnmarshalJSON(data []byte) error

type CreateLoadBalancerRuleDtoAlgorithm

type CreateLoadBalancerRuleDtoAlgorithm string

Algorithm used to distribute traffic across the backend VMs.

const (
	CreateLoadBalancerRuleDtoAlgorithmRoundrobin CreateLoadBalancerRuleDtoAlgorithm = "roundrobin"
	CreateLoadBalancerRuleDtoAlgorithmLeastconn  CreateLoadBalancerRuleDtoAlgorithm = "leastconn"
	CreateLoadBalancerRuleDtoAlgorithmSource     CreateLoadBalancerRuleDtoAlgorithm = "source"
)

func NewCreateLoadBalancerRuleDtoAlgorithmFromString

func NewCreateLoadBalancerRuleDtoAlgorithmFromString(s string) (CreateLoadBalancerRuleDtoAlgorithm, error)

func (CreateLoadBalancerRuleDtoAlgorithm) Ptr

type CreateLoadBalancerRuleDtoProtocol

type CreateLoadBalancerRuleDtoProtocol string

Protocol the load balancer accepts.

const (
	CreateLoadBalancerRuleDtoProtocolTCP      CreateLoadBalancerRuleDtoProtocol = "tcp"
	CreateLoadBalancerRuleDtoProtocolUDP      CreateLoadBalancerRuleDtoProtocol = "udp"
	CreateLoadBalancerRuleDtoProtocolTCPProxy CreateLoadBalancerRuleDtoProtocol = "tcp-proxy"
	CreateLoadBalancerRuleDtoProtocolSsl      CreateLoadBalancerRuleDtoProtocol = "ssl"
)

func NewCreateLoadBalancerRuleDtoProtocolFromString

func NewCreateLoadBalancerRuleDtoProtocolFromString(s string) (CreateLoadBalancerRuleDtoProtocol, error)

func (CreateLoadBalancerRuleDtoProtocol) Ptr

type CreateNetworkACLListDto

type CreateNetworkACLListDto struct {
	// Human-readable name for the ACL list.
	Name string `json:"name" url:"-"`
	// Free-form description of the ACL list.
	Description *string `json:"description,omitempty" url:"-"`
	// Identifier of the parent VPC the ACL list belongs to.
	VpcID string `json:"vpcId" url:"-"`
	// contains filtered or unexported fields
}

func (*CreateNetworkACLListDto) MarshalJSON

func (c *CreateNetworkACLListDto) MarshalJSON() ([]byte, error)

func (*CreateNetworkACLListDto) SetDescription

func (c *CreateNetworkACLListDto) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateNetworkACLListDto) SetName

func (c *CreateNetworkACLListDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateNetworkACLListDto) SetVpcID

func (c *CreateNetworkACLListDto) SetVpcID(vpcID string)

SetVpcID sets the VpcID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateNetworkACLListDto) UnmarshalJSON

func (c *CreateNetworkACLListDto) UnmarshalJSON(data []byte) error

type CreateNetworkACLRuleDto

type CreateNetworkACLRuleDto struct {
	// ID of the Network ACL List
	ListID string `json:"-" url:"-"`
	// Remote CIDR — source CIDR for `Ingress` rules, destination CIDR for `Egress` rules.
	CidrList string `json:"cidrList" url:"-"`
	// Protocol the rule applies to. One of `TCP`, `UDP`, `ICMP`, or `ALL`.
	Protocol string `json:"protocol" url:"-"`
	// Whether to allow or deny matching traffic.
	Action string `json:"action" url:"-"`
	// Direction of traffic the rule applies to.
	TrafficType string `json:"trafficType" url:"-"`
	// Rule number (1-1000). Unique within the ACL list and determines evaluation order.
	Number *string `json:"number,omitempty" url:"-"`
	// Start of the port range. Used for `TCP` and `UDP` protocols.
	StartPort *int `json:"startPort,omitempty" url:"-"`
	// End of the port range. Used for `TCP` and `UDP` protocols.
	EndPort *int `json:"endPort,omitempty" url:"-"`
	// ICMP message type. Used for the `ICMP` protocol.
	IcmpType *string `json:"icmpType,omitempty" url:"-"`
	// ICMP message code. Used for the `ICMP` protocol.
	IcmpCode *string `json:"icmpCode,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CreateNetworkACLRuleDto) MarshalJSON

func (c *CreateNetworkACLRuleDto) MarshalJSON() ([]byte, error)

func (*CreateNetworkACLRuleDto) SetAction

func (c *CreateNetworkACLRuleDto) SetAction(action string)

SetAction sets the Action field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateNetworkACLRuleDto) SetCidrList

func (c *CreateNetworkACLRuleDto) SetCidrList(cidrList string)

SetCidrList sets the CidrList field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateNetworkACLRuleDto) SetEndPort

func (c *CreateNetworkACLRuleDto) SetEndPort(endPort *int)

SetEndPort sets the EndPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateNetworkACLRuleDto) SetIcmpCode

func (c *CreateNetworkACLRuleDto) SetIcmpCode(icmpCode *string)

SetIcmpCode sets the IcmpCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateNetworkACLRuleDto) SetIcmpType

func (c *CreateNetworkACLRuleDto) SetIcmpType(icmpType *string)

SetIcmpType sets the IcmpType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateNetworkACLRuleDto) SetListID

func (c *CreateNetworkACLRuleDto) SetListID(listID string)

SetListID sets the ListID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateNetworkACLRuleDto) SetNumber

func (c *CreateNetworkACLRuleDto) SetNumber(number *string)

SetNumber sets the Number field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateNetworkACLRuleDto) SetProtocol

func (c *CreateNetworkACLRuleDto) SetProtocol(protocol string)

SetProtocol sets the Protocol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateNetworkACLRuleDto) SetStartPort

func (c *CreateNetworkACLRuleDto) SetStartPort(startPort *int)

SetStartPort sets the StartPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateNetworkACLRuleDto) SetTrafficType

func (c *CreateNetworkACLRuleDto) SetTrafficType(trafficType string)

SetTrafficType sets the TrafficType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateNetworkACLRuleDto) UnmarshalJSON

func (c *CreateNetworkACLRuleDto) UnmarshalJSON(data []byte) error

type CreatePortForwardingRuleDto

type CreatePortForwardingRuleDto struct {
	// ID of the public IP address
	IpId string `json:"-" url:"-"`
	// Port on the VM that traffic is forwarded to. Must be 1-65535.
	PrivatePort string `json:"privatePort" url:"-"`
	// Port on the public IP that receives the inbound traffic. Must be 1-65535.
	PublicPort string `json:"publicPort" url:"-"`
	// Protocol the forwarding rule applies to.
	Protocol CreatePortForwardingRuleDtoProtocol `json:"protocol" url:"-"`
	// Identifier of the VM the forwarded traffic is delivered to.
	VmId string `json:"vmId" url:"-"`
	// When `true`, automatically creates a matching firewall rule alongside the port forwarding rule.
	OpenFirewall *string `json:"openFirewall,omitempty" url:"-"`
	// For a public IP reserved in a VPC, the VPC tier the rule applies to. A VPC IP is not bound to any single tier, so the rule must target one. You only need to set this when the VM has interfaces in more than one tier of the VPC — otherwise the tier is determined automatically from the VM. Ignored for IPs reserved in an isolated network.
	TierID *string `json:"tierId,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CreatePortForwardingRuleDto) MarshalJSON

func (c *CreatePortForwardingRuleDto) MarshalJSON() ([]byte, error)

func (*CreatePortForwardingRuleDto) SetIpId

func (c *CreatePortForwardingRuleDto) SetIpId(ipId string)

SetIpId sets the IpId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreatePortForwardingRuleDto) SetOpenFirewall

func (c *CreatePortForwardingRuleDto) SetOpenFirewall(openFirewall *string)

SetOpenFirewall sets the OpenFirewall field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreatePortForwardingRuleDto) SetPrivatePort

func (c *CreatePortForwardingRuleDto) SetPrivatePort(privatePort string)

SetPrivatePort sets the PrivatePort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreatePortForwardingRuleDto) SetProtocol

SetProtocol sets the Protocol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreatePortForwardingRuleDto) SetPublicPort

func (c *CreatePortForwardingRuleDto) SetPublicPort(publicPort string)

SetPublicPort sets the PublicPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreatePortForwardingRuleDto) SetTierID added in v1.3.3

func (c *CreatePortForwardingRuleDto) SetTierID(tierID *string)

SetTierID sets the TierID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreatePortForwardingRuleDto) SetVmId

func (c *CreatePortForwardingRuleDto) SetVmId(vmId string)

SetVmId sets the VmId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreatePortForwardingRuleDto) UnmarshalJSON

func (c *CreatePortForwardingRuleDto) UnmarshalJSON(data []byte) error

type CreatePortForwardingRuleDtoProtocol

type CreatePortForwardingRuleDtoProtocol string

Protocol the forwarding rule applies to.

const (
	CreatePortForwardingRuleDtoProtocolTCP CreatePortForwardingRuleDtoProtocol = "TCP"
	CreatePortForwardingRuleDtoProtocolUDP CreatePortForwardingRuleDtoProtocol = "UDP"
)

func NewCreatePortForwardingRuleDtoProtocolFromString

func NewCreatePortForwardingRuleDtoProtocolFromString(s string) (CreatePortForwardingRuleDtoProtocol, error)

func (CreatePortForwardingRuleDtoProtocol) Ptr

type CreateRecordDto

type CreateRecordDto struct {
	// DNS zone identifier
	ZoneID string `json:"-" url:"-"`
	// Hostname for the record. Use @ for the zone apex.
	Name string `json:"name" url:"-"`
	// Record type
	Type CreateRecordDtoType `json:"type" url:"-"`
	// Record value (IP address, hostname, text, etc.)
	Content string `json:"content" url:"-"`
	// Time to live in seconds (60–86400)
	TTL *float64 `json:"ttl,omitempty" url:"-"`
	// Priority (required for MX and SRV records)
	Priority *int `json:"priority,omitempty" url:"-"`
	// Weight (required for SRV records)
	Weight *int `json:"weight,omitempty" url:"-"`
	// Port (required for SRV records)
	Port *int `json:"port,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CreateRecordDto) MarshalJSON

func (c *CreateRecordDto) MarshalJSON() ([]byte, error)

func (*CreateRecordDto) SetContent

func (c *CreateRecordDto) SetContent(content string)

SetContent sets the Content field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateRecordDto) SetName

func (c *CreateRecordDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateRecordDto) SetPort

func (c *CreateRecordDto) SetPort(port *int)

SetPort sets the Port field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateRecordDto) SetPriority

func (c *CreateRecordDto) SetPriority(priority *int)

SetPriority sets the Priority field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateRecordDto) SetTTL

func (c *CreateRecordDto) SetTTL(ttl *float64)

SetTTL sets the TTL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateRecordDto) SetType

func (c *CreateRecordDto) SetType(type_ CreateRecordDtoType)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateRecordDto) SetWeight

func (c *CreateRecordDto) SetWeight(weight *int)

SetWeight sets the Weight field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateRecordDto) SetZoneID

func (c *CreateRecordDto) SetZoneID(zoneID string)

SetZoneID sets the ZoneID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateRecordDto) UnmarshalJSON

func (c *CreateRecordDto) UnmarshalJSON(data []byte) error

type CreateRecordDtoType

type CreateRecordDtoType string

Record type

const (
	CreateRecordDtoTypeA     CreateRecordDtoType = "A"
	CreateRecordDtoTypeAaaa  CreateRecordDtoType = "AAAA"
	CreateRecordDtoTypeCname CreateRecordDtoType = "CNAME"
	CreateRecordDtoTypeMx    CreateRecordDtoType = "MX"
	CreateRecordDtoTypeNs    CreateRecordDtoType = "NS"
	CreateRecordDtoTypeSrv   CreateRecordDtoType = "SRV"
	CreateRecordDtoTypeTxt   CreateRecordDtoType = "TXT"
)

func NewCreateRecordDtoTypeFromString

func NewCreateRecordDtoTypeFromString(s string) (CreateRecordDtoType, error)

func (CreateRecordDtoType) Ptr

type CreateSSHKeyDto

type CreateSSHKeyDto struct {
	// Name of the SSH key pair
	Name string `json:"name" url:"-"`
	// Public key to register. If provided, the key pair is registered using your existing key. If omitted, a new key pair is generated and the private key is returned.
	PublicKey *string `json:"publicKey,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CreateSSHKeyDto) MarshalJSON

func (c *CreateSSHKeyDto) MarshalJSON() ([]byte, error)

func (*CreateSSHKeyDto) SetName

func (c *CreateSSHKeyDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateSSHKeyDto) SetPublicKey

func (c *CreateSSHKeyDto) SetPublicKey(publicKey *string)

SetPublicKey sets the PublicKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateSSHKeyDto) UnmarshalJSON

func (c *CreateSSHKeyDto) UnmarshalJSON(data []byte) error

type CreateSSHKeyResponseDto

type CreateSSHKeyResponseDto struct {
	// Name of the SSH key pair
	Name string `json:"name" url:"name"`
	// Fingerprint of the public key
	Fingerprint string `json:"fingerprint" url:"fingerprint"`
	// Private key of the created SSH key pair. Only returned when a new key pair is generated (no public key provided).
	PrivateKey *string `json:"privateKey,omitempty" url:"privateKey,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSSHKeyResponseDto) GetExtraProperties

func (c *CreateSSHKeyResponseDto) GetExtraProperties() map[string]interface{}

func (*CreateSSHKeyResponseDto) GetFingerprint

func (c *CreateSSHKeyResponseDto) GetFingerprint() string

func (*CreateSSHKeyResponseDto) GetName

func (c *CreateSSHKeyResponseDto) GetName() string

func (*CreateSSHKeyResponseDto) GetPrivateKey

func (c *CreateSSHKeyResponseDto) GetPrivateKey() *string

func (*CreateSSHKeyResponseDto) MarshalJSON

func (c *CreateSSHKeyResponseDto) MarshalJSON() ([]byte, error)

func (*CreateSSHKeyResponseDto) SetFingerprint

func (c *CreateSSHKeyResponseDto) SetFingerprint(fingerprint string)

SetFingerprint sets the Fingerprint field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateSSHKeyResponseDto) SetName

func (c *CreateSSHKeyResponseDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateSSHKeyResponseDto) SetPrivateKey

func (c *CreateSSHKeyResponseDto) SetPrivateKey(privateKey *string)

SetPrivateKey sets the PrivateKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateSSHKeyResponseDto) String

func (c *CreateSSHKeyResponseDto) String() string

func (*CreateSSHKeyResponseDto) UnmarshalJSON

func (c *CreateSSHKeyResponseDto) UnmarshalJSON(data []byte) error

type CreateScheduleDatabaseBackupsRequest

type CreateScheduleDatabaseBackupsRequest struct {
	// Database cluster ID
	ClusterID string                          `json:"-" url:"-"`
	Body      *ModifyBackupScheduleRequestDto `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*CreateScheduleDatabaseBackupsRequest) MarshalJSON

func (c *CreateScheduleDatabaseBackupsRequest) MarshalJSON() ([]byte, error)

func (*CreateScheduleDatabaseBackupsRequest) SetClusterID

func (c *CreateScheduleDatabaseBackupsRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateScheduleDatabaseBackupsRequest) UnmarshalJSON

func (c *CreateScheduleDatabaseBackupsRequest) UnmarshalJSON(data []byte) error

type CreateSnapshotDto

type CreateSnapshotDto struct {
	// ID of the volume to create a snapshot from
	VolumeID string `json:"volumeId" url:"volumeId"`
	// Name for the new snapshot
	Name string `json:"name" url:"name"`
	// Type of the snapshot (data or root)
	Type CreateSnapshotDtoType `json:"type" url:"type"`
	// contains filtered or unexported fields
}

func (*CreateSnapshotDto) GetExtraProperties

func (c *CreateSnapshotDto) GetExtraProperties() map[string]interface{}

func (*CreateSnapshotDto) GetName

func (c *CreateSnapshotDto) GetName() string

func (*CreateSnapshotDto) GetType

func (*CreateSnapshotDto) GetVolumeID

func (c *CreateSnapshotDto) GetVolumeID() string

func (*CreateSnapshotDto) MarshalJSON

func (c *CreateSnapshotDto) MarshalJSON() ([]byte, error)

func (*CreateSnapshotDto) SetName

func (c *CreateSnapshotDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateSnapshotDto) SetType

func (c *CreateSnapshotDto) SetType(type_ CreateSnapshotDtoType)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateSnapshotDto) SetVolumeID

func (c *CreateSnapshotDto) SetVolumeID(volumeID string)

SetVolumeID sets the VolumeID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateSnapshotDto) String

func (c *CreateSnapshotDto) String() string

func (*CreateSnapshotDto) UnmarshalJSON

func (c *CreateSnapshotDto) UnmarshalJSON(data []byte) error

type CreateSnapshotDtoType

type CreateSnapshotDtoType string

Type of the snapshot (data or root)

const (
	CreateSnapshotDtoTypeDataDisk CreateSnapshotDtoType = "DataDisk"
	CreateSnapshotDtoTypeRootDisk CreateSnapshotDtoType = "RootDisk"
)

func NewCreateSnapshotDtoTypeFromString

func NewCreateSnapshotDtoTypeFromString(s string) (CreateSnapshotDtoType, error)

func (CreateSnapshotDtoType) Ptr

type CreateStorageUnitRequestDto

type CreateStorageUnitRequestDto struct {
	// Storage unit name. Alphanumeric characters only.
	Name string `json:"name" url:"-"`
	// contains filtered or unexported fields
}

func (*CreateStorageUnitRequestDto) MarshalJSON

func (c *CreateStorageUnitRequestDto) MarshalJSON() ([]byte, error)

func (*CreateStorageUnitRequestDto) SetName

func (c *CreateStorageUnitRequestDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateStorageUnitRequestDto) UnmarshalJSON

func (c *CreateStorageUnitRequestDto) UnmarshalJSON(data []byte) error

type CreateVMDto

type CreateVMDto struct {
	// VM name. It must be 1 to 63 characters, start with a letter, end with a letter or a digit, and hold only letters, digits and hyphens.
	Name string `json:"name" url:"name"`
	// Region label
	Region string `json:"region" url:"region"`
	// VM package label
	VMPackage string `json:"vmPackage" url:"vmPackage"`
	// VM specifications
	VMSpecs *VMSpecsDto `json:"vmSpecs" url:"vmSpecs"`
	// Image label to use for the VM
	Image string `json:"image" url:"image"`
	// UUID of a pre-existing network to attach the VM to. Omit to have an isolated network auto-created for the VM (post-create access is then configured via `networkAccess`). An auto-created network is deleted with the VM once its last VM is removed; a network you supply is not.
	Network *string `json:"network,omitempty" url:"network,omitempty"`
	// Subscription period
	SubscriptionPeriod CreateVMDtoSubscriptionPeriod `json:"subscriptionPeriod" url:"subscriptionPeriod"`
	// List of tags to add to the VM
	Tags []string `json:"tags,omitempty" url:"tags,omitempty"`
	// Names of SSH key pairs to use (optional)
	Keypairs []string `json:"keypairs,omitempty" url:"keypairs,omitempty"`
	// Base64-encoded cloud-init userdata script (optional)
	Userdata *string `json:"userdata,omitempty" url:"userdata,omitempty"`
	// Optional network access configuration applied after the VM is created. Only honored when no `network` is provided (i.e. an isolated network is auto-created). Applies the requested outbound traffic setting and adds port forwarding + firewall rules for the requested inbound ports against the network's public IP.
	NetworkAccess *NetworkAccessDto `json:"networkAccess,omitempty" url:"networkAccess,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateVMDto) GetExtraProperties

func (c *CreateVMDto) GetExtraProperties() map[string]interface{}

func (*CreateVMDto) GetImage

func (c *CreateVMDto) GetImage() string

func (*CreateVMDto) GetKeypairs

func (c *CreateVMDto) GetKeypairs() []string

func (*CreateVMDto) GetName

func (c *CreateVMDto) GetName() string

func (*CreateVMDto) GetNetwork

func (c *CreateVMDto) GetNetwork() *string

func (*CreateVMDto) GetNetworkAccess

func (c *CreateVMDto) GetNetworkAccess() *NetworkAccessDto

func (*CreateVMDto) GetRegion

func (c *CreateVMDto) GetRegion() string

func (*CreateVMDto) GetSubscriptionPeriod

func (c *CreateVMDto) GetSubscriptionPeriod() CreateVMDtoSubscriptionPeriod

func (*CreateVMDto) GetTags

func (c *CreateVMDto) GetTags() []string

func (*CreateVMDto) GetUserdata

func (c *CreateVMDto) GetUserdata() *string

func (*CreateVMDto) GetVMPackage

func (c *CreateVMDto) GetVMPackage() string

func (*CreateVMDto) GetVMSpecs

func (c *CreateVMDto) GetVMSpecs() *VMSpecsDto

func (*CreateVMDto) MarshalJSON

func (c *CreateVMDto) MarshalJSON() ([]byte, error)

func (*CreateVMDto) SetImage

func (c *CreateVMDto) SetImage(image string)

SetImage sets the Image field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMDto) SetKeypairs

func (c *CreateVMDto) SetKeypairs(keypairs []string)

SetKeypairs sets the Keypairs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMDto) SetName

func (c *CreateVMDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMDto) SetNetwork

func (c *CreateVMDto) SetNetwork(network *string)

SetNetwork sets the Network field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMDto) SetNetworkAccess

func (c *CreateVMDto) SetNetworkAccess(networkAccess *NetworkAccessDto)

SetNetworkAccess sets the NetworkAccess field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMDto) SetRegion

func (c *CreateVMDto) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMDto) SetSubscriptionPeriod

func (c *CreateVMDto) SetSubscriptionPeriod(subscriptionPeriod CreateVMDtoSubscriptionPeriod)

SetSubscriptionPeriod sets the SubscriptionPeriod field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMDto) SetTags

func (c *CreateVMDto) SetTags(tags []string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMDto) SetUserdata

func (c *CreateVMDto) SetUserdata(userdata *string)

SetUserdata sets the Userdata field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMDto) SetVMPackage

func (c *CreateVMDto) SetVMPackage(vmPackage string)

SetVMPackage sets the VMPackage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMDto) SetVMSpecs

func (c *CreateVMDto) SetVMSpecs(vmSpecs *VMSpecsDto)

SetVMSpecs sets the VMSpecs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMDto) String

func (c *CreateVMDto) String() string

func (*CreateVMDto) UnmarshalJSON

func (c *CreateVMDto) UnmarshalJSON(data []byte) error

type CreateVMDtoSubscriptionPeriod

type CreateVMDtoSubscriptionPeriod string

Subscription period

const (
	CreateVMDtoSubscriptionPeriodHourly  CreateVMDtoSubscriptionPeriod = "hourly"
	CreateVMDtoSubscriptionPeriodMonthly CreateVMDtoSubscriptionPeriod = "monthly"
)

func NewCreateVMDtoSubscriptionPeriodFromString

func NewCreateVMDtoSubscriptionPeriodFromString(s string) (CreateVMDtoSubscriptionPeriod, error)

func (CreateVMDtoSubscriptionPeriod) Ptr

type CreateVMResponseDto

type CreateVMResponseDto struct {
	// Unique identifier for this virtual machine.
	ID string `json:"id" url:"id"`
	// Human-readable name for the VM. Shown in dashboards and CLI output.
	Name string `json:"name" url:"name"`
	// Current lifecycle state of the VM. Observed values include CREATING, STARTING, CREATED, STARTED, STOPPING, STOPPED, and DESTROYED. Treat this as an open set — new states may be introduced over time.
	Status string `json:"status" url:"status"`
	// Region the VM is provisioned in. References a region label from /v1/compute/regions.
	Region string `json:"region" url:"region"`
	// Package label identifying the CPU/memory/disk preset this VM uses.
	VMPackage *string `json:"vmPackage,omitempty" url:"vmPackage,omitempty"`
	// Number of virtual CPUs allocated to the VM.
	CPU int `json:"cpu" url:"cpu"`
	// Memory allocated to the VM, in megabytes.
	MemoryMb int `json:"memoryMb" url:"memoryMb"`
	// Root disk size, in gigabytes.
	RootDiskGb int `json:"rootDiskGb" url:"rootDiskGb"`
	// Tags assigned to this VM for grouping and filtering.
	Tags []string `json:"tags,omitempty" url:"tags,omitempty"`
	// Billing cadence applied to this VM.
	SubscriptionPeriod string `json:"subscriptionPeriod" url:"subscriptionPeriod"`
	// Image label the VM was provisioned from. References /v1/compute/images.
	Image string `json:"image" url:"image"`
	// Friendly name of the source image.
	ImageDisplayName *string `json:"imageDisplayName,omitempty" url:"imageDisplayName,omitempty"`
	// Primary IP address assigned to the VM on its network.
	IPAddress string `json:"ipAddress" url:"ipAddress"`
	// Name of the network or VPC tier this VM is attached to. Null while the VM is still provisioning.
	NetworkName *string `json:"networkName,omitempty" url:"networkName,omitempty"`
	// Identifier of the network or VPC tier this VM is attached to. Null while the VM is still provisioning.
	NetworkID *string `json:"networkId,omitempty" url:"networkId,omitempty"`
	// Identifier of the VM root volume. Null while the VM is still provisioning.
	RootVolumeID *string `json:"rootVolumeId,omitempty" url:"rootVolumeId,omitempty"`
	// When the VM was first provisioned.
	CreatedAt time.Time `json:"createdAt" url:"createdAt"`
	// When the current billing version started (set when the VM is scaled or its disk is resized). Only present if the VM has been modified since creation.
	VersionStartedAt *time.Time `json:"versionStartedAt,omitempty" url:"versionStartedAt,omitempty"`
	// Source marketplace app, when the VM was deployed from one. Absent for OS-only deploys.
	MarketplaceApp *MarketplaceAppDto `json:"marketplaceApp,omitempty" url:"marketplaceApp,omitempty"`
	// Human-readable note explaining how the initial VM password will be delivered.
	PasswordMessage string `json:"passwordMessage" url:"passwordMessage"`
	// contains filtered or unexported fields
}

func (*CreateVMResponseDto) GetCPU

func (c *CreateVMResponseDto) GetCPU() int

func (*CreateVMResponseDto) GetCreatedAt

func (c *CreateVMResponseDto) GetCreatedAt() time.Time

func (*CreateVMResponseDto) GetExtraProperties

func (c *CreateVMResponseDto) GetExtraProperties() map[string]interface{}

func (*CreateVMResponseDto) GetID

func (c *CreateVMResponseDto) GetID() string

func (*CreateVMResponseDto) GetIPAddress

func (c *CreateVMResponseDto) GetIPAddress() string

func (*CreateVMResponseDto) GetImage

func (c *CreateVMResponseDto) GetImage() string

func (*CreateVMResponseDto) GetImageDisplayName

func (c *CreateVMResponseDto) GetImageDisplayName() *string

func (*CreateVMResponseDto) GetMarketplaceApp

func (c *CreateVMResponseDto) GetMarketplaceApp() *MarketplaceAppDto

func (*CreateVMResponseDto) GetMemoryMb

func (c *CreateVMResponseDto) GetMemoryMb() int

func (*CreateVMResponseDto) GetName

func (c *CreateVMResponseDto) GetName() string

func (*CreateVMResponseDto) GetNetworkID

func (c *CreateVMResponseDto) GetNetworkID() *string

func (*CreateVMResponseDto) GetNetworkName

func (c *CreateVMResponseDto) GetNetworkName() *string

func (*CreateVMResponseDto) GetPasswordMessage

func (c *CreateVMResponseDto) GetPasswordMessage() string

func (*CreateVMResponseDto) GetRegion

func (c *CreateVMResponseDto) GetRegion() string

func (*CreateVMResponseDto) GetRootDiskGb

func (c *CreateVMResponseDto) GetRootDiskGb() int

func (*CreateVMResponseDto) GetRootVolumeID

func (c *CreateVMResponseDto) GetRootVolumeID() *string

func (*CreateVMResponseDto) GetStatus

func (c *CreateVMResponseDto) GetStatus() string

func (*CreateVMResponseDto) GetSubscriptionPeriod

func (c *CreateVMResponseDto) GetSubscriptionPeriod() string

func (*CreateVMResponseDto) GetTags

func (c *CreateVMResponseDto) GetTags() []string

func (*CreateVMResponseDto) GetVMPackage

func (c *CreateVMResponseDto) GetVMPackage() *string

func (*CreateVMResponseDto) GetVersionStartedAt

func (c *CreateVMResponseDto) GetVersionStartedAt() *time.Time

func (*CreateVMResponseDto) MarshalJSON

func (c *CreateVMResponseDto) MarshalJSON() ([]byte, error)

func (*CreateVMResponseDto) SetCPU

func (c *CreateVMResponseDto) SetCPU(cpu int)

SetCPU sets the CPU field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetCreatedAt

func (c *CreateVMResponseDto) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetID

func (c *CreateVMResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetIPAddress

func (c *CreateVMResponseDto) SetIPAddress(ipAddress string)

SetIPAddress sets the IPAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetImage

func (c *CreateVMResponseDto) SetImage(image string)

SetImage sets the Image field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetImageDisplayName

func (c *CreateVMResponseDto) SetImageDisplayName(imageDisplayName *string)

SetImageDisplayName sets the ImageDisplayName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetMarketplaceApp

func (c *CreateVMResponseDto) SetMarketplaceApp(marketplaceApp *MarketplaceAppDto)

SetMarketplaceApp sets the MarketplaceApp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetMemoryMb

func (c *CreateVMResponseDto) SetMemoryMb(memoryMb int)

SetMemoryMb sets the MemoryMb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetName

func (c *CreateVMResponseDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetNetworkID

func (c *CreateVMResponseDto) SetNetworkID(networkID *string)

SetNetworkID sets the NetworkID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetNetworkName

func (c *CreateVMResponseDto) SetNetworkName(networkName *string)

SetNetworkName sets the NetworkName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetPasswordMessage

func (c *CreateVMResponseDto) SetPasswordMessage(passwordMessage string)

SetPasswordMessage sets the PasswordMessage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetRegion

func (c *CreateVMResponseDto) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetRootDiskGb

func (c *CreateVMResponseDto) SetRootDiskGb(rootDiskGb int)

SetRootDiskGb sets the RootDiskGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetRootVolumeID

func (c *CreateVMResponseDto) SetRootVolumeID(rootVolumeID *string)

SetRootVolumeID sets the RootVolumeID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetStatus

func (c *CreateVMResponseDto) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetSubscriptionPeriod

func (c *CreateVMResponseDto) SetSubscriptionPeriod(subscriptionPeriod string)

SetSubscriptionPeriod sets the SubscriptionPeriod field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetTags

func (c *CreateVMResponseDto) SetTags(tags []string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetVMPackage

func (c *CreateVMResponseDto) SetVMPackage(vmPackage *string)

SetVMPackage sets the VMPackage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) SetVersionStartedAt

func (c *CreateVMResponseDto) SetVersionStartedAt(versionStartedAt *time.Time)

SetVersionStartedAt sets the VersionStartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVMResponseDto) String

func (c *CreateVMResponseDto) String() string

func (*CreateVMResponseDto) UnmarshalJSON

func (c *CreateVMResponseDto) UnmarshalJSON(data []byte) error

type CreateVolumeDto

type CreateVolumeDto struct {
	// The name of the volume
	Name string `json:"name" url:"name"`
	// The size of the volume in GB
	SizeGb int `json:"sizeGb" url:"sizeGb"`
	// Label of the region where the volume will be created
	Region string `json:"region" url:"region"`
	// contains filtered or unexported fields
}

func (*CreateVolumeDto) GetExtraProperties

func (c *CreateVolumeDto) GetExtraProperties() map[string]interface{}

func (*CreateVolumeDto) GetName

func (c *CreateVolumeDto) GetName() string

func (*CreateVolumeDto) GetRegion

func (c *CreateVolumeDto) GetRegion() string

func (*CreateVolumeDto) GetSizeGb

func (c *CreateVolumeDto) GetSizeGb() int

func (*CreateVolumeDto) MarshalJSON

func (c *CreateVolumeDto) MarshalJSON() ([]byte, error)

func (*CreateVolumeDto) SetName

func (c *CreateVolumeDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVolumeDto) SetRegion

func (c *CreateVolumeDto) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVolumeDto) SetSizeGb

func (c *CreateVolumeDto) SetSizeGb(sizeGb int)

SetSizeGb sets the SizeGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVolumeDto) String

func (c *CreateVolumeDto) String() string

func (*CreateVolumeDto) UnmarshalJSON

func (c *CreateVolumeDto) UnmarshalJSON(data []byte) error

type CreateVpcNetworkDto

type CreateVpcNetworkDto struct {
	// Human-readable name for the VPC.
	Name string `json:"name" url:"name"`
	// Free-form description of the VPC.
	Description *string `json:"description,omitempty" url:"description,omitempty"`
	// Region the VPC will be created in. References a region label from /v1/compute/regions.
	Region string `json:"region" url:"region"`
	// IPv4 CIDR block the VPC will use.
	Cidr string `json:"cidr" url:"cidr"`
	// contains filtered or unexported fields
}

func (*CreateVpcNetworkDto) GetCidr

func (c *CreateVpcNetworkDto) GetCidr() string

func (*CreateVpcNetworkDto) GetDescription

func (c *CreateVpcNetworkDto) GetDescription() *string

func (*CreateVpcNetworkDto) GetExtraProperties

func (c *CreateVpcNetworkDto) GetExtraProperties() map[string]interface{}

func (*CreateVpcNetworkDto) GetName

func (c *CreateVpcNetworkDto) GetName() string

func (*CreateVpcNetworkDto) GetRegion

func (c *CreateVpcNetworkDto) GetRegion() string

func (*CreateVpcNetworkDto) MarshalJSON

func (c *CreateVpcNetworkDto) MarshalJSON() ([]byte, error)

func (*CreateVpcNetworkDto) SetCidr

func (c *CreateVpcNetworkDto) SetCidr(cidr string)

SetCidr sets the Cidr field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVpcNetworkDto) SetDescription

func (c *CreateVpcNetworkDto) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVpcNetworkDto) SetName

func (c *CreateVpcNetworkDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVpcNetworkDto) SetRegion

func (c *CreateVpcNetworkDto) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVpcNetworkDto) String

func (c *CreateVpcNetworkDto) String() string

func (*CreateVpcNetworkDto) UnmarshalJSON

func (c *CreateVpcNetworkDto) UnmarshalJSON(data []byte) error

type CreateVpcTierDto

type CreateVpcTierDto struct {
	// Human-readable name for the network tier.
	Name string `json:"name" url:"-"`
	// Free-form description of the tier.
	Description *string `json:"description,omitempty" url:"-"`
	// Identifier of the parent VPC the tier belongs to.
	VpcID string `json:"vpcId" url:"-"`
	// Network gateway IP for the tier.
	Gateway string `json:"gateway" url:"-"`
	// Network netmask for the tier.
	Netmask string `json:"netmask" url:"-"`
	// Identifier of the ACL to apply to the tier.
	AclId *string `json:"aclId,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*CreateVpcTierDto) MarshalJSON

func (c *CreateVpcTierDto) MarshalJSON() ([]byte, error)

func (*CreateVpcTierDto) SetAclId

func (c *CreateVpcTierDto) SetAclId(aclId *string)

SetAclId sets the AclId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVpcTierDto) SetDescription

func (c *CreateVpcTierDto) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVpcTierDto) SetGateway

func (c *CreateVpcTierDto) SetGateway(gateway string)

SetGateway sets the Gateway field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVpcTierDto) SetName

func (c *CreateVpcTierDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVpcTierDto) SetNetmask

func (c *CreateVpcTierDto) SetNetmask(netmask string)

SetNetmask sets the Netmask field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVpcTierDto) SetVpcID

func (c *CreateVpcTierDto) SetVpcID(vpcID string)

SetVpcID sets the VpcID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateVpcTierDto) UnmarshalJSON

func (c *CreateVpcTierDto) UnmarshalJSON(data []byte) error

type CreateWordPressDto

type CreateWordPressDto struct {
	// Package label to use for the WordPress instance
	PackageLabel string `json:"packageLabel" url:"packageLabel"`
	// Optional custom domain for the WordPress site
	Domain *string `json:"domain,omitempty" url:"domain,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateWordPressDto) GetDomain

func (c *CreateWordPressDto) GetDomain() *string

func (*CreateWordPressDto) GetExtraProperties

func (c *CreateWordPressDto) GetExtraProperties() map[string]interface{}

func (*CreateWordPressDto) GetPackageLabel

func (c *CreateWordPressDto) GetPackageLabel() string

func (*CreateWordPressDto) MarshalJSON

func (c *CreateWordPressDto) MarshalJSON() ([]byte, error)

func (*CreateWordPressDto) SetDomain

func (c *CreateWordPressDto) SetDomain(domain *string)

SetDomain sets the Domain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateWordPressDto) SetPackageLabel

func (c *CreateWordPressDto) SetPackageLabel(packageLabel string)

SetPackageLabel sets the PackageLabel field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateWordPressDto) String

func (c *CreateWordPressDto) String() string

func (*CreateWordPressDto) UnmarshalJSON

func (c *CreateWordPressDto) UnmarshalJSON(data []byte) error

type CreateZoneDto

type CreateZoneDto struct {
	// The domain name for the DNS zone (e.g. example.com)
	Name string `json:"name" url:"-"`
	// contains filtered or unexported fields
}

func (*CreateZoneDto) MarshalJSON

func (c *CreateZoneDto) MarshalJSON() ([]byte, error)

func (*CreateZoneDto) SetName

func (c *CreateZoneDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*CreateZoneDto) UnmarshalJSON

func (c *CreateZoneDto) UnmarshalJSON(data []byte) error

type DatabaseOfferingResponseDto

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

func (*DatabaseOfferingResponseDto) GetExtraProperties

func (d *DatabaseOfferingResponseDto) GetExtraProperties() map[string]interface{}

func (*DatabaseOfferingResponseDto) MarshalJSON

func (d *DatabaseOfferingResponseDto) MarshalJSON() ([]byte, error)

func (*DatabaseOfferingResponseDto) String

func (d *DatabaseOfferingResponseDto) String() string

func (*DatabaseOfferingResponseDto) UnmarshalJSON

func (d *DatabaseOfferingResponseDto) UnmarshalJSON(data []byte) error

type DbaasRegionsResponseDto

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

func (*DbaasRegionsResponseDto) GetExtraProperties

func (d *DbaasRegionsResponseDto) GetExtraProperties() map[string]interface{}

func (*DbaasRegionsResponseDto) MarshalJSON

func (d *DbaasRegionsResponseDto) MarshalJSON() ([]byte, error)

func (*DbaasRegionsResponseDto) String

func (d *DbaasRegionsResponseDto) String() string

func (*DbaasRegionsResponseDto) UnmarshalJSON

func (d *DbaasRegionsResponseDto) UnmarshalJSON(data []byte) error

type DbsCostEstimateResponseDto

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

func (*DbsCostEstimateResponseDto) GetExtraProperties

func (d *DbsCostEstimateResponseDto) GetExtraProperties() map[string]interface{}

func (*DbsCostEstimateResponseDto) MarshalJSON

func (d *DbsCostEstimateResponseDto) MarshalJSON() ([]byte, error)

func (*DbsCostEstimateResponseDto) String

func (d *DbsCostEstimateResponseDto) String() string

func (*DbsCostEstimateResponseDto) UnmarshalJSON

func (d *DbsCostEstimateResponseDto) UnmarshalJSON(data []byte) error

type DeleteBackupRepoDatabaseInfrastructureRequest

type DeleteBackupRepoDatabaseInfrastructureRequest struct {
	// Infrastructure cluster ID
	UserClusterID string `json:"-" url:"-"`
	// Backup repository name
	RepoName string `json:"-" url:"-"`
	// Deletion mode: retire (default) or destroy
	Mode *DeleteBackupRepoDatabaseInfrastructureRequestMode `json:"-" url:"mode,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteBackupRepoDatabaseInfrastructureRequest) SetMode

SetMode sets the Mode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteBackupRepoDatabaseInfrastructureRequest) SetRepoName

func (d *DeleteBackupRepoDatabaseInfrastructureRequest) SetRepoName(repoName string)

SetRepoName sets the RepoName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteBackupRepoDatabaseInfrastructureRequest) SetUserClusterID

func (d *DeleteBackupRepoDatabaseInfrastructureRequest) SetUserClusterID(userClusterID string)

SetUserClusterID sets the UserClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteBackupRepoDatabaseInfrastructureRequestMode

type DeleteBackupRepoDatabaseInfrastructureRequestMode string
const (
	DeleteBackupRepoDatabaseInfrastructureRequestModeRetire  DeleteBackupRepoDatabaseInfrastructureRequestMode = "retire"
	DeleteBackupRepoDatabaseInfrastructureRequestModeDestroy DeleteBackupRepoDatabaseInfrastructureRequestMode = "destroy"
)

func NewDeleteBackupRepoDatabaseInfrastructureRequestModeFromString

func NewDeleteBackupRepoDatabaseInfrastructureRequestModeFromString(s string) (DeleteBackupRepoDatabaseInfrastructureRequestMode, error)

func (DeleteBackupRepoDatabaseInfrastructureRequestMode) Ptr

type DeleteBlockStorageRequest

type DeleteBlockStorageRequest struct {
	// Volume ID
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteBlockStorageRequest) SetID

func (d *DeleteBlockStorageRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteBucketObjectStorageRequest

type DeleteBucketObjectStorageRequest struct {
	// Storage unit ID (UID)
	StorageUnitID string `json:"-" url:"-"`
	// Bucket name
	BucketName string `json:"-" url:"-"`
	// Whether to purge objects in the bucket (default: true)
	PurgeObjects *bool `json:"-" url:"purgeObjects,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteBucketObjectStorageRequest) SetBucketName

func (d *DeleteBucketObjectStorageRequest) SetBucketName(bucketName string)

SetBucketName sets the BucketName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteBucketObjectStorageRequest) SetPurgeObjects

func (d *DeleteBucketObjectStorageRequest) SetPurgeObjects(purgeObjects *bool)

SetPurgeObjects sets the PurgeObjects field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteBucketObjectStorageRequest) SetStorageUnitID

func (d *DeleteBucketObjectStorageRequest) SetStorageUnitID(storageUnitID string)

SetStorageUnitID sets the StorageUnitID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteClusterKubernetesRequest

type DeleteClusterKubernetesRequest struct {
	// ID of the Kubernetes cluster
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteClusterKubernetesRequest) SetID

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteDNSZonesRequest

type DeleteDNSZonesRequest struct {
	// ID of the DNS zone to delete
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteDNSZonesRequest) SetID

func (d *DeleteDNSZonesRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteDatabaseBackupsRequest

type DeleteDatabaseBackupsRequest struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// Backup name
	BackupName string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteDatabaseBackupsRequest) SetBackupName

func (d *DeleteDatabaseBackupsRequest) SetBackupName(backupName string)

SetBackupName sets the BackupName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteDatabaseBackupsRequest) SetClusterID

func (d *DeleteDatabaseBackupsRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteDatabasesRequest

type DeleteDatabasesRequest struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteDatabasesRequest) SetClusterID

func (d *DeleteDatabasesRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteEgressRulesRequest

type DeleteEgressRulesRequest struct {
	// ID of the egress rule to delete
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteEgressRulesRequest) SetID

func (d *DeleteEgressRulesRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteFirewallRulesRequest

type DeleteFirewallRulesRequest struct {
	// ID of the firewall rule to delete
	RuleID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteFirewallRulesRequest) SetRuleID

func (d *DeleteFirewallRulesRequest) SetRuleID(ruleID string)

SetRuleID sets the RuleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteIsolatedNetworksRequest

type DeleteIsolatedNetworksRequest struct {
	// ID of the isolated network to delete
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteIsolatedNetworksRequest) SetID

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteListNetworkACLsRequest

type DeleteListNetworkACLsRequest struct {
	// ID of the Network ACL List to delete
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteListNetworkACLsRequest) SetID

func (d *DeleteListNetworkACLsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteLoadBalancerDatabasesRequest

type DeleteLoadBalancerDatabasesRequest struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// Load balancer type
	Type DeleteLoadBalancerDatabasesRequestType `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteLoadBalancerDatabasesRequest) SetClusterID

func (d *DeleteLoadBalancerDatabasesRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteLoadBalancerDatabasesRequest) SetType

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteLoadBalancerDatabasesRequestType

type DeleteLoadBalancerDatabasesRequestType string
const (
	DeleteLoadBalancerDatabasesRequestTypePublic  DeleteLoadBalancerDatabasesRequestType = "public"
	DeleteLoadBalancerDatabasesRequestTypePrivate DeleteLoadBalancerDatabasesRequestType = "private"
)

func NewDeleteLoadBalancerDatabasesRequestTypeFromString

func NewDeleteLoadBalancerDatabasesRequestTypeFromString(s string) (DeleteLoadBalancerDatabasesRequestType, error)

func (DeleteLoadBalancerDatabasesRequestType) Ptr

type DeleteLoadBalancerRulesRequest

type DeleteLoadBalancerRulesRequest struct {
	// ID of the load balancer rule to delete
	RuleID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteLoadBalancerRulesRequest) SetRuleID

func (d *DeleteLoadBalancerRulesRequest) SetRuleID(ruleID string)

SetRuleID sets the RuleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeletePortForwardingRequest

type DeletePortForwardingRequest struct {
	// ID of the port forwarding rule to delete
	RuleID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeletePortForwardingRequest) SetRuleID

func (d *DeletePortForwardingRequest) SetRuleID(ruleID string)

SetRuleID sets the RuleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteRecordBody

type DeleteRecordBody struct {
	// DNS zone identifier
	ZoneID string `json:"-" url:"-"`
	// Record hostname (use @ for apex)
	Name string `json:"-" url:"-"`
	// Record type
	Type string `json:"-" url:"-"`
	// Specific record value to remove. Used for multi-value MX/NS/TXT record sets to target a single entry.
	Content *string `json:"content,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteRecordBody) MarshalJSON

func (d *DeleteRecordBody) MarshalJSON() ([]byte, error)

func (*DeleteRecordBody) SetContent

func (d *DeleteRecordBody) SetContent(content *string)

SetContent sets the Content field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteRecordBody) SetName

func (d *DeleteRecordBody) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteRecordBody) SetType

func (d *DeleteRecordBody) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteRecordBody) SetZoneID

func (d *DeleteRecordBody) SetZoneID(zoneID string)

SetZoneID sets the ZoneID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteRecordBody) UnmarshalJSON

func (d *DeleteRecordBody) UnmarshalJSON(data []byte) error

type DeleteRuleNetworkACLsRequest

type DeleteRuleNetworkACLsRequest struct {
	// ID of the Network ACL Rule to delete
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteRuleNetworkACLsRequest) SetID

func (d *DeleteRuleNetworkACLsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteSSHKeysRequest

type DeleteSSHKeysRequest struct {
	// Name of the SSH key pair to delete
	Name string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteSSHKeysRequest) SetName

func (d *DeleteSSHKeysRequest) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteScheduleDatabaseBackupsRequest

type DeleteScheduleDatabaseBackupsRequest struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// Name of the backup schedule to delete
	ScheduleName string `json:"-" url:"schedule_name"`
	// contains filtered or unexported fields
}

func (*DeleteScheduleDatabaseBackupsRequest) SetClusterID

func (d *DeleteScheduleDatabaseBackupsRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteScheduleDatabaseBackupsRequest) SetScheduleName

func (d *DeleteScheduleDatabaseBackupsRequest) SetScheduleName(scheduleName string)

SetScheduleName sets the ScheduleName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteSnapshotsRequest

type DeleteSnapshotsRequest struct {
	// Snapshot ID
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteSnapshotsRequest) SetID

func (d *DeleteSnapshotsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteTierVpcNetworksRequest added in v1.3.0

type DeleteTierVpcNetworksRequest struct {
	// ID of the VPC that contains the tier
	ID string `json:"-" url:"-"`
	// ID of the network tier to delete
	TierID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteTierVpcNetworksRequest) SetID added in v1.3.0

func (d *DeleteTierVpcNetworksRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DeleteTierVpcNetworksRequest) SetTierID added in v1.3.0

func (d *DeleteTierVpcNetworksRequest) SetTierID(tierID string)

SetTierID sets the TierID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteUnitObjectStorageRequest

type DeleteUnitObjectStorageRequest struct {
	// Storage unit ID (UID)
	StorageUnitID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteUnitObjectStorageRequest) SetStorageUnitID

func (d *DeleteUnitObjectStorageRequest) SetStorageUnitID(storageUnitID string)

SetStorageUnitID sets the StorageUnitID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteVmsRequest

type DeleteVmsRequest struct {
	// ID of the virtual machine
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteVmsRequest) SetID

func (d *DeleteVmsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DeleteVpcNetworksRequest

type DeleteVpcNetworksRequest struct {
	// ID of the VPC to delete
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DeleteVpcNetworksRequest) SetID

func (d *DeleteVpcNetworksRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DetachBlockStorageRequest

type DetachBlockStorageRequest struct {
	// Volume ID
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DetachBlockStorageRequest) SetID

func (d *DetachBlockStorageRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DetailedIsolatedNetworkResponseDto

type DetailedIsolatedNetworkResponseDto struct {
	// Unique identifier for the network
	ID string `json:"id" url:"id"`
	// Name of the network
	Name string `json:"name" url:"name"`
	// Description of the network
	Description string `json:"description" url:"description"`
	// CIDR of the network
	Cidr string `json:"cidr" url:"cidr"`
	// Gateway IP address
	Gateway string `json:"gateway" url:"gateway"`
	// Network status
	Status DetailedIsolatedNetworkResponseDtoStatus `json:"status" url:"status"`
	// Region where the network is located
	Region string `json:"region" url:"region"`
	// Network creation date
	CreatedAt *time.Time `json:"createdAt,omitempty" url:"createdAt,omitempty"`
	// Network type
	Type string `json:"type" url:"type"`
	// Type of the ACL list
	ACLType *string `json:"aclType,omitempty" url:"aclType,omitempty"`
	// How outbound traffic is treated when this network has no egress rules. `allow` means all outbound traffic is permitted and each egress rule blocks what it matches; `deny` means all outbound traffic is blocked and each egress rule permits what it matches. Fixed when the network is created and cannot be changed afterwards. Omitted when unknown.
	DefaultEgressPolicy *DetailedIsolatedNetworkResponseDtoDefaultEgressPolicy `json:"defaultEgressPolicy,omitempty" url:"defaultEgressPolicy,omitempty"`
	// IP addresses associated with this network
	IPAddresses []string `json:"ipAddresses" url:"ipAddresses"`
	// contains filtered or unexported fields
}

func (*DetailedIsolatedNetworkResponseDto) GetACLType

func (d *DetailedIsolatedNetworkResponseDto) GetACLType() *string

func (*DetailedIsolatedNetworkResponseDto) GetCidr

func (*DetailedIsolatedNetworkResponseDto) GetCreatedAt

func (d *DetailedIsolatedNetworkResponseDto) GetCreatedAt() *time.Time

func (*DetailedIsolatedNetworkResponseDto) GetDefaultEgressPolicy added in v1.4.0

func (*DetailedIsolatedNetworkResponseDto) GetDescription

func (d *DetailedIsolatedNetworkResponseDto) GetDescription() string

func (*DetailedIsolatedNetworkResponseDto) GetExtraProperties

func (d *DetailedIsolatedNetworkResponseDto) GetExtraProperties() map[string]interface{}

func (*DetailedIsolatedNetworkResponseDto) GetGateway

func (*DetailedIsolatedNetworkResponseDto) GetID

func (*DetailedIsolatedNetworkResponseDto) GetIPAddresses

func (d *DetailedIsolatedNetworkResponseDto) GetIPAddresses() []string

func (*DetailedIsolatedNetworkResponseDto) GetName

func (*DetailedIsolatedNetworkResponseDto) GetRegion

func (*DetailedIsolatedNetworkResponseDto) GetStatus

func (*DetailedIsolatedNetworkResponseDto) GetType

func (*DetailedIsolatedNetworkResponseDto) MarshalJSON

func (d *DetailedIsolatedNetworkResponseDto) MarshalJSON() ([]byte, error)

func (*DetailedIsolatedNetworkResponseDto) SetACLType

func (d *DetailedIsolatedNetworkResponseDto) SetACLType(aclType *string)

SetACLType sets the ACLType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedIsolatedNetworkResponseDto) SetCidr

func (d *DetailedIsolatedNetworkResponseDto) SetCidr(cidr string)

SetCidr sets the Cidr field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedIsolatedNetworkResponseDto) SetCreatedAt

func (d *DetailedIsolatedNetworkResponseDto) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedIsolatedNetworkResponseDto) SetDefaultEgressPolicy added in v1.4.0

func (d *DetailedIsolatedNetworkResponseDto) SetDefaultEgressPolicy(defaultEgressPolicy *DetailedIsolatedNetworkResponseDtoDefaultEgressPolicy)

SetDefaultEgressPolicy sets the DefaultEgressPolicy field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedIsolatedNetworkResponseDto) SetDescription

func (d *DetailedIsolatedNetworkResponseDto) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedIsolatedNetworkResponseDto) SetGateway

func (d *DetailedIsolatedNetworkResponseDto) SetGateway(gateway string)

SetGateway sets the Gateway field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedIsolatedNetworkResponseDto) SetID

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedIsolatedNetworkResponseDto) SetIPAddresses

func (d *DetailedIsolatedNetworkResponseDto) SetIPAddresses(ipAddresses []string)

SetIPAddresses sets the IPAddresses field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedIsolatedNetworkResponseDto) SetName

func (d *DetailedIsolatedNetworkResponseDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedIsolatedNetworkResponseDto) SetRegion

func (d *DetailedIsolatedNetworkResponseDto) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedIsolatedNetworkResponseDto) SetStatus

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedIsolatedNetworkResponseDto) SetType

func (d *DetailedIsolatedNetworkResponseDto) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedIsolatedNetworkResponseDto) String

func (*DetailedIsolatedNetworkResponseDto) UnmarshalJSON

func (d *DetailedIsolatedNetworkResponseDto) UnmarshalJSON(data []byte) error

type DetailedIsolatedNetworkResponseDtoDefaultEgressPolicy added in v1.4.0

type DetailedIsolatedNetworkResponseDtoDefaultEgressPolicy string

How outbound traffic is treated when this network has no egress rules. `allow` means all outbound traffic is permitted and each egress rule blocks what it matches; `deny` means all outbound traffic is blocked and each egress rule permits what it matches. Fixed when the network is created and cannot be changed afterwards. Omitted when unknown.

const (
	DetailedIsolatedNetworkResponseDtoDefaultEgressPolicyAllow DetailedIsolatedNetworkResponseDtoDefaultEgressPolicy = "allow"
	DetailedIsolatedNetworkResponseDtoDefaultEgressPolicyDeny  DetailedIsolatedNetworkResponseDtoDefaultEgressPolicy = "deny"
)

func NewDetailedIsolatedNetworkResponseDtoDefaultEgressPolicyFromString added in v1.4.0

func NewDetailedIsolatedNetworkResponseDtoDefaultEgressPolicyFromString(s string) (DetailedIsolatedNetworkResponseDtoDefaultEgressPolicy, error)

func (DetailedIsolatedNetworkResponseDtoDefaultEgressPolicy) Ptr added in v1.4.0

type DetailedIsolatedNetworkResponseDtoStatus

type DetailedIsolatedNetworkResponseDtoStatus string

Network status

const (
	DetailedIsolatedNetworkResponseDtoStatusActive    DetailedIsolatedNetworkResponseDtoStatus = "Active"
	DetailedIsolatedNetworkResponseDtoStatusAllocated DetailedIsolatedNetworkResponseDtoStatus = "Allocated"
	DetailedIsolatedNetworkResponseDtoStatusSetup     DetailedIsolatedNetworkResponseDtoStatus = "Setup"
	DetailedIsolatedNetworkResponseDtoStatusInactive  DetailedIsolatedNetworkResponseDtoStatus = "Inactive"
)

func NewDetailedIsolatedNetworkResponseDtoStatusFromString

func NewDetailedIsolatedNetworkResponseDtoStatusFromString(s string) (DetailedIsolatedNetworkResponseDtoStatus, error)

func (DetailedIsolatedNetworkResponseDtoStatus) Ptr

type DetailedVpcNetworkResponseDto

type DetailedVpcNetworkResponseDto struct {
	// Unique identifier for the VPC
	ID string `json:"id" url:"id"`
	// Name of the VPC
	Name string `json:"name" url:"name"`
	// Description of the VPC
	Description string `json:"description" url:"description"`
	// CIDR of the VPC
	Cidr string `json:"cidr" url:"cidr"`
	// VPC status
	Status DetailedVpcNetworkResponseDtoStatus `json:"status" url:"status"`
	// Region where the VPC is located
	Region string `json:"region" url:"region"`
	// VPC creation date
	CreatedAt *time.Time `json:"createdAt,omitempty" url:"createdAt,omitempty"`
	// Network tiers in this VPC
	Tiers []*VpcTierResponseDto `json:"tiers" url:"tiers"`
	// Public IP addresses associated with this VPC
	PublicIps []string `json:"publicIps" url:"publicIps"`
	// contains filtered or unexported fields
}

func (*DetailedVpcNetworkResponseDto) GetCidr

func (*DetailedVpcNetworkResponseDto) GetCreatedAt

func (d *DetailedVpcNetworkResponseDto) GetCreatedAt() *time.Time

func (*DetailedVpcNetworkResponseDto) GetDescription

func (d *DetailedVpcNetworkResponseDto) GetDescription() string

func (*DetailedVpcNetworkResponseDto) GetExtraProperties

func (d *DetailedVpcNetworkResponseDto) GetExtraProperties() map[string]interface{}

func (*DetailedVpcNetworkResponseDto) GetID

func (*DetailedVpcNetworkResponseDto) GetName

func (*DetailedVpcNetworkResponseDto) GetPublicIps

func (d *DetailedVpcNetworkResponseDto) GetPublicIps() []string

func (*DetailedVpcNetworkResponseDto) GetRegion

func (d *DetailedVpcNetworkResponseDto) GetRegion() string

func (*DetailedVpcNetworkResponseDto) GetStatus

func (*DetailedVpcNetworkResponseDto) GetTiers

func (*DetailedVpcNetworkResponseDto) MarshalJSON

func (d *DetailedVpcNetworkResponseDto) MarshalJSON() ([]byte, error)

func (*DetailedVpcNetworkResponseDto) SetCidr

func (d *DetailedVpcNetworkResponseDto) SetCidr(cidr string)

SetCidr sets the Cidr field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedVpcNetworkResponseDto) SetCreatedAt

func (d *DetailedVpcNetworkResponseDto) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedVpcNetworkResponseDto) SetDescription

func (d *DetailedVpcNetworkResponseDto) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedVpcNetworkResponseDto) SetID

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedVpcNetworkResponseDto) SetName

func (d *DetailedVpcNetworkResponseDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedVpcNetworkResponseDto) SetPublicIps

func (d *DetailedVpcNetworkResponseDto) SetPublicIps(publicIps []string)

SetPublicIps sets the PublicIps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedVpcNetworkResponseDto) SetRegion

func (d *DetailedVpcNetworkResponseDto) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedVpcNetworkResponseDto) SetStatus

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedVpcNetworkResponseDto) SetTiers

func (d *DetailedVpcNetworkResponseDto) SetTiers(tiers []*VpcTierResponseDto)

SetTiers sets the Tiers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DetailedVpcNetworkResponseDto) String

func (*DetailedVpcNetworkResponseDto) UnmarshalJSON

func (d *DetailedVpcNetworkResponseDto) UnmarshalJSON(data []byte) error

type DetailedVpcNetworkResponseDtoStatus

type DetailedVpcNetworkResponseDtoStatus string

VPC status

const (
	DetailedVpcNetworkResponseDtoStatusActive   DetailedVpcNetworkResponseDtoStatus = "Active"
	DetailedVpcNetworkResponseDtoStatusInactive DetailedVpcNetworkResponseDtoStatus = "Inactive"
	DetailedVpcNetworkResponseDtoStatusCreating DetailedVpcNetworkResponseDtoStatus = "Creating"
)

func NewDetailedVpcNetworkResponseDtoStatusFromString

func NewDetailedVpcNetworkResponseDtoStatusFromString(s string) (DetailedVpcNetworkResponseDtoStatus, error)

func (DetailedVpcNetworkResponseDtoStatus) Ptr

type DisableStaticNatPublicIpsRequest

type DisableStaticNatPublicIpsRequest struct {
	// ID of the public IP address
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*DisableStaticNatPublicIpsRequest) SetID

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type DiscountAppliedDto

type DiscountAppliedDto struct {
	// Name of the discount/coupon
	Name string `json:"name" url:"name"`
	// Discount percentage
	Percent float64 `json:"percent" url:"percent"`
	// Resource types the discount applies to
	ResourceTypes []string `json:"resource_types" url:"resource_types"`
	// contains filtered or unexported fields
}

func (*DiscountAppliedDto) GetExtraProperties

func (d *DiscountAppliedDto) GetExtraProperties() map[string]interface{}

func (*DiscountAppliedDto) GetName

func (d *DiscountAppliedDto) GetName() string

func (*DiscountAppliedDto) GetPercent

func (d *DiscountAppliedDto) GetPercent() float64

func (*DiscountAppliedDto) GetResourceTypes

func (d *DiscountAppliedDto) GetResourceTypes() []string

func (*DiscountAppliedDto) MarshalJSON

func (d *DiscountAppliedDto) MarshalJSON() ([]byte, error)

func (*DiscountAppliedDto) SetName

func (d *DiscountAppliedDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DiscountAppliedDto) SetPercent

func (d *DiscountAppliedDto) SetPercent(percent float64)

SetPercent sets the Percent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DiscountAppliedDto) SetResourceTypes

func (d *DiscountAppliedDto) SetResourceTypes(resourceTypes []string)

SetResourceTypes sets the ResourceTypes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*DiscountAppliedDto) String

func (d *DiscountAppliedDto) String() string

func (*DiscountAppliedDto) UnmarshalJSON

func (d *DiscountAppliedDto) UnmarshalJSON(data []byte) error

type EgressRuleResponseDto

type EgressRuleResponseDto struct {
	// Unique identifier for the egress rule.
	ID string `json:"id" url:"id"`
	// Protocol the rule applies to. One of `TCP`, `UDP`, `ICMP`, or `ALL`.
	Protocol string `json:"protocol" url:"protocol"`
	// Start of the port range the rule applies to.
	StartPort *int `json:"startPort,omitempty" url:"startPort,omitempty"`
	// End of the port range the rule applies to.
	EndPort *int `json:"endPort,omitempty" url:"endPort,omitempty"`
	// Identifier of the network this rule belongs to.
	NetworkID string `json:"networkId" url:"networkId"`
	// Current lifecycle state of the rule.
	State string `json:"state" url:"state"`
	// `allow` permits the traffic this rule matches; `deny` blocks it. Which one applies is set by the rule's network, not by the rule, and is the opposite of that network's `defaultEgressPolicy`. Omitted when unknown.
	Action *EgressRuleResponseDtoAction `json:"action,omitempty" url:"action,omitempty"`
	// Source CIDR within the network's CIDR.
	SourceCidrList string `json:"sourceCidrList" url:"sourceCidrList"`
	// Destination CIDR this rule matches. Whether matching traffic is permitted or blocked depends on `action`.
	DestCidrList *string `json:"destCidrList,omitempty" url:"destCidrList,omitempty"`
	// When the rule was created.
	CreatedAt *time.Time `json:"createdAt,omitempty" url:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (*EgressRuleResponseDto) GetAction added in v1.4.0

func (*EgressRuleResponseDto) GetCreatedAt

func (e *EgressRuleResponseDto) GetCreatedAt() *time.Time

func (*EgressRuleResponseDto) GetDestCidrList

func (e *EgressRuleResponseDto) GetDestCidrList() *string

func (*EgressRuleResponseDto) GetEndPort

func (e *EgressRuleResponseDto) GetEndPort() *int

func (*EgressRuleResponseDto) GetExtraProperties

func (e *EgressRuleResponseDto) GetExtraProperties() map[string]interface{}

func (*EgressRuleResponseDto) GetID

func (e *EgressRuleResponseDto) GetID() string

func (*EgressRuleResponseDto) GetNetworkID

func (e *EgressRuleResponseDto) GetNetworkID() string

func (*EgressRuleResponseDto) GetProtocol

func (e *EgressRuleResponseDto) GetProtocol() string

func (*EgressRuleResponseDto) GetSourceCidrList

func (e *EgressRuleResponseDto) GetSourceCidrList() string

func (*EgressRuleResponseDto) GetStartPort

func (e *EgressRuleResponseDto) GetStartPort() *int

func (*EgressRuleResponseDto) GetState

func (e *EgressRuleResponseDto) GetState() string

func (*EgressRuleResponseDto) MarshalJSON

func (e *EgressRuleResponseDto) MarshalJSON() ([]byte, error)

func (*EgressRuleResponseDto) SetAction added in v1.4.0

func (e *EgressRuleResponseDto) SetAction(action *EgressRuleResponseDtoAction)

SetAction sets the Action field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EgressRuleResponseDto) SetCreatedAt

func (e *EgressRuleResponseDto) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EgressRuleResponseDto) SetDestCidrList

func (e *EgressRuleResponseDto) SetDestCidrList(destCidrList *string)

SetDestCidrList sets the DestCidrList field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EgressRuleResponseDto) SetEndPort

func (e *EgressRuleResponseDto) SetEndPort(endPort *int)

SetEndPort sets the EndPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EgressRuleResponseDto) SetID

func (e *EgressRuleResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EgressRuleResponseDto) SetNetworkID

func (e *EgressRuleResponseDto) SetNetworkID(networkID string)

SetNetworkID sets the NetworkID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EgressRuleResponseDto) SetProtocol

func (e *EgressRuleResponseDto) SetProtocol(protocol string)

SetProtocol sets the Protocol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EgressRuleResponseDto) SetSourceCidrList

func (e *EgressRuleResponseDto) SetSourceCidrList(sourceCidrList string)

SetSourceCidrList sets the SourceCidrList field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EgressRuleResponseDto) SetStartPort

func (e *EgressRuleResponseDto) SetStartPort(startPort *int)

SetStartPort sets the StartPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EgressRuleResponseDto) SetState

func (e *EgressRuleResponseDto) SetState(state string)

SetState sets the State field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EgressRuleResponseDto) String

func (e *EgressRuleResponseDto) String() string

func (*EgressRuleResponseDto) UnmarshalJSON

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

type EgressRuleResponseDtoAction added in v1.4.0

type EgressRuleResponseDtoAction string

`allow` permits the traffic this rule matches; `deny` blocks it. Which one applies is set by the rule's network, not by the rule, and is the opposite of that network's `defaultEgressPolicy`. Omitted when unknown.

const (
	EgressRuleResponseDtoActionAllow EgressRuleResponseDtoAction = "allow"
	EgressRuleResponseDtoActionDeny  EgressRuleResponseDtoAction = "deny"
)

func NewEgressRuleResponseDtoActionFromString added in v1.4.0

func NewEgressRuleResponseDtoActionFromString(s string) (EgressRuleResponseDtoAction, error)

func (EgressRuleResponseDtoAction) Ptr added in v1.4.0

type EnableStaticNatDto

type EnableStaticNatDto struct {
	// ID of the public IP address
	ID string `json:"-" url:"-"`
	// Identifier of the virtual machine to associate with this public IP.
	VirtualMachineID string `json:"virtualMachineId" url:"-"`
	// contains filtered or unexported fields
}

func (*EnableStaticNatDto) MarshalJSON

func (e *EnableStaticNatDto) MarshalJSON() ([]byte, error)

func (*EnableStaticNatDto) SetID

func (e *EnableStaticNatDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EnableStaticNatDto) SetVirtualMachineID

func (e *EnableStaticNatDto) SetVirtualMachineID(virtualMachineID string)

SetVirtualMachineID sets the VirtualMachineID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EnableStaticNatDto) UnmarshalJSON

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

type EstimatesDto

type EstimatesDto struct {
	// Hourly cost breakdown
	Hourly *CostBreakdownDto `json:"hourly" url:"hourly"`
	// Monthly cost breakdown
	Monthly *CostBreakdownDto `json:"monthly" url:"monthly"`
	// contains filtered or unexported fields
}

func (*EstimatesDto) GetExtraProperties

func (e *EstimatesDto) GetExtraProperties() map[string]interface{}

func (*EstimatesDto) GetHourly

func (e *EstimatesDto) GetHourly() *CostBreakdownDto

func (*EstimatesDto) GetMonthly

func (e *EstimatesDto) GetMonthly() *CostBreakdownDto

func (*EstimatesDto) MarshalJSON

func (e *EstimatesDto) MarshalJSON() ([]byte, error)

func (*EstimatesDto) SetHourly

func (e *EstimatesDto) SetHourly(hourly *CostBreakdownDto)

SetHourly sets the Hourly field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EstimatesDto) SetMonthly

func (e *EstimatesDto) SetMonthly(monthly *CostBreakdownDto)

SetMonthly sets the Monthly field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*EstimatesDto) String

func (e *EstimatesDto) String() string

func (*EstimatesDto) UnmarshalJSON

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

type FileParam

type FileParam struct {
	io.Reader
	// contains filtered or unexported fields
}

FileParam is a file type suitable for multipart/form-data uploads.

func NewFileParam

func NewFileParam(
	reader io.Reader,
	filename string,
	contentType string,
	opts ...FileParamOption,
) *FileParam

NewFileParam returns a *FileParam type suitable for multipart/form-data uploads. All file upload endpoints accept a simple io.Reader, which is usually created by opening a file via os.Open.

However, some endpoints require additional metadata about the file such as a specific Content-Type or custom filename. FileParam makes it easier to create the correct type signature for these endpoints.

func (*FileParam) ContentType

func (f *FileParam) ContentType() string

func (*FileParam) Name

func (f *FileParam) Name() string

type FileParamOption

type FileParamOption interface {
	// contains filtered or unexported methods
}

FileParamOption adapts the behavior of the FileParam. No options are implemented yet, but this interface allows for future extensibility.

type FirewallRuleResponseDto

type FirewallRuleResponseDto struct {
	// Unique identifier for the firewall rule.
	ID string `json:"id" url:"id"`
	// Protocol the rule applies to. One of `TCP`, `UDP`, `ICMP`, or `ALL`.
	Protocol string `json:"protocol" url:"protocol"`
	// Start of the port range the rule applies to.
	StartPort *int `json:"startPort,omitempty" url:"startPort,omitempty"`
	// End of the port range the rule applies to.
	EndPort *int `json:"endPort,omitempty" url:"endPort,omitempty"`
	// Identifier of the public IP the rule is attached to.
	IPAddressID string `json:"ipAddressId" url:"ipAddressId"`
	// Public IP address the rule is attached to.
	IPAddress string `json:"ipAddress" url:"ipAddress"`
	// Current lifecycle state of the rule.
	State string `json:"state" url:"state"`
	// Source CIDR allowed to reach the rule target.
	SourceCidrList string `json:"sourceCidrList" url:"sourceCidrList"`
	// Direction of traffic this rule applies to.
	Type *string `json:"type,omitempty" url:"type,omitempty"`
	// When the rule was created.
	CreatedAt *time.Time `json:"createdAt,omitempty" url:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (*FirewallRuleResponseDto) GetCreatedAt

func (f *FirewallRuleResponseDto) GetCreatedAt() *time.Time

func (*FirewallRuleResponseDto) GetEndPort

func (f *FirewallRuleResponseDto) GetEndPort() *int

func (*FirewallRuleResponseDto) GetExtraProperties

func (f *FirewallRuleResponseDto) GetExtraProperties() map[string]interface{}

func (*FirewallRuleResponseDto) GetID

func (f *FirewallRuleResponseDto) GetID() string

func (*FirewallRuleResponseDto) GetIPAddress

func (f *FirewallRuleResponseDto) GetIPAddress() string

func (*FirewallRuleResponseDto) GetIPAddressID

func (f *FirewallRuleResponseDto) GetIPAddressID() string

func (*FirewallRuleResponseDto) GetProtocol

func (f *FirewallRuleResponseDto) GetProtocol() string

func (*FirewallRuleResponseDto) GetSourceCidrList

func (f *FirewallRuleResponseDto) GetSourceCidrList() string

func (*FirewallRuleResponseDto) GetStartPort

func (f *FirewallRuleResponseDto) GetStartPort() *int

func (*FirewallRuleResponseDto) GetState

func (f *FirewallRuleResponseDto) GetState() string

func (*FirewallRuleResponseDto) GetType

func (f *FirewallRuleResponseDto) GetType() *string

func (*FirewallRuleResponseDto) MarshalJSON

func (f *FirewallRuleResponseDto) MarshalJSON() ([]byte, error)

func (*FirewallRuleResponseDto) SetCreatedAt

func (f *FirewallRuleResponseDto) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FirewallRuleResponseDto) SetEndPort

func (f *FirewallRuleResponseDto) SetEndPort(endPort *int)

SetEndPort sets the EndPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FirewallRuleResponseDto) SetID

func (f *FirewallRuleResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FirewallRuleResponseDto) SetIPAddress

func (f *FirewallRuleResponseDto) SetIPAddress(ipAddress string)

SetIPAddress sets the IPAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FirewallRuleResponseDto) SetIPAddressID

func (f *FirewallRuleResponseDto) SetIPAddressID(ipAddressID string)

SetIPAddressID sets the IPAddressID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FirewallRuleResponseDto) SetProtocol

func (f *FirewallRuleResponseDto) SetProtocol(protocol string)

SetProtocol sets the Protocol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FirewallRuleResponseDto) SetSourceCidrList

func (f *FirewallRuleResponseDto) SetSourceCidrList(sourceCidrList string)

SetSourceCidrList sets the SourceCidrList field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FirewallRuleResponseDto) SetStartPort

func (f *FirewallRuleResponseDto) SetStartPort(startPort *int)

SetStartPort sets the StartPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FirewallRuleResponseDto) SetState

func (f *FirewallRuleResponseDto) SetState(state string)

SetState sets the State field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FirewallRuleResponseDto) SetType

func (f *FirewallRuleResponseDto) SetType(type_ *string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*FirewallRuleResponseDto) String

func (f *FirewallRuleResponseDto) String() string

func (*FirewallRuleResponseDto) UnmarshalJSON

func (f *FirewallRuleResponseDto) UnmarshalJSON(data []byte) error

type ForbiddenError

type ForbiddenError struct {
	*core.APIError
	Body *APIErrorDto
}

The authenticated principal is not permitted to perform this action.

func (*ForbiddenError) MarshalJSON

func (f *ForbiddenError) MarshalJSON() ([]byte, error)

func (*ForbiddenError) UnmarshalJSON

func (f *ForbiddenError) UnmarshalJSON(data []byte) error

func (*ForbiddenError) Unwrap

func (f *ForbiddenError) Unwrap() error

type GatewayTimeoutError added in v1.3.1

type GatewayTimeoutError struct {
	*core.APIError
	Body *APIErrorDto
}

Network deletion is still in progress; retry to confirm

func (*GatewayTimeoutError) MarshalJSON added in v1.3.1

func (g *GatewayTimeoutError) MarshalJSON() ([]byte, error)

func (*GatewayTimeoutError) UnmarshalJSON added in v1.3.1

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

func (*GatewayTimeoutError) Unwrap added in v1.3.1

func (g *GatewayTimeoutError) Unwrap() error

type GetBackupRepoDatabaseInfrastructureRequest

type GetBackupRepoDatabaseInfrastructureRequest struct {
	// Infrastructure cluster ID
	UserClusterID string `json:"-" url:"-"`
	// Backup repository name
	RepoName string `json:"-" url:"-"`
	// Include repository credentials in response (default: false)
	IncludeCredentials *string `json:"-" url:"include_credentials,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBackupRepoDatabaseInfrastructureRequest) SetIncludeCredentials

func (g *GetBackupRepoDatabaseInfrastructureRequest) SetIncludeCredentials(includeCredentials *string)

SetIncludeCredentials sets the IncludeCredentials field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetBackupRepoDatabaseInfrastructureRequest) SetRepoName

func (g *GetBackupRepoDatabaseInfrastructureRequest) SetRepoName(repoName string)

SetRepoName sets the RepoName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetBackupRepoDatabaseInfrastructureRequest) SetUserClusterID

func (g *GetBackupRepoDatabaseInfrastructureRequest) SetUserClusterID(userClusterID string)

SetUserClusterID sets the UserClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetBlockStorageRequest

type GetBlockStorageRequest struct {
	// Volume ID
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetBlockStorageRequest) SetID

func (g *GetBlockStorageRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetByLabelImagesRequest

type GetByLabelImagesRequest struct {
	// Label of the image to get
	Label string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetByLabelImagesRequest) SetLabel

func (g *GetByLabelImagesRequest) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetByLabelRegionsRequest

type GetByLabelRegionsRequest struct {
	// Label of the region to get
	Label string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetByLabelRegionsRequest) SetLabel

func (g *GetByLabelRegionsRequest) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetByLabelVMPackagesRequest

type GetByLabelVMPackagesRequest struct {
	// Label of the VM package to get
	Label string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetByLabelVMPackagesRequest) SetLabel

func (g *GetByLabelVMPackagesRequest) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetClusterConfigKubernetesRequest

type GetClusterConfigKubernetesRequest struct {
	// ID of the Kubernetes cluster
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetClusterConfigKubernetesRequest) SetID

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetClusterKubernetesRequest

type GetClusterKubernetesRequest struct {
	// ID of the Kubernetes cluster
	ID string `json:"-" url:"-"`
	// Include node instances and storage volumes in the response
	Details *bool `json:"-" url:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*GetClusterKubernetesRequest) SetDetails

func (g *GetClusterKubernetesRequest) SetDetails(details *bool)

SetDetails sets the Details field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetClusterKubernetesRequest) SetID

func (g *GetClusterKubernetesRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetConfigDatabaseBackupsRequest

type GetConfigDatabaseBackupsRequest struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetConfigDatabaseBackupsRequest) SetClusterID

func (g *GetConfigDatabaseBackupsRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetConnectionDatabasesRequest

type GetConnectionDatabasesRequest struct {
	// Database cluster ID
	ClusterID       string `json:"-" url:"-"`
	IncludePassword string `json:"-" url:"includePassword"`
	// contains filtered or unexported fields
}

func (*GetConnectionDatabasesRequest) SetClusterID

func (g *GetConnectionDatabasesRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetConnectionDatabasesRequest) SetIncludePassword

func (g *GetConnectionDatabasesRequest) SetIncludePassword(includePassword string)

SetIncludePassword sets the IncludePassword field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetCostEstimateDatabasesRequest

type GetCostEstimateDatabasesRequest struct {
	// Database offering ID
	OfferingID string `json:"-" url:"-"`
	// Existing infrastructure cluster ID for marginal cost calculation
	UserClusterID *string `json:"-" url:"user_cluster_id,omitempty"`
	// Availability type: "single-node" or "data-redundancy"
	AvailabilityType *string `json:"-" url:"availability_type,omitempty"`
	// Custom storage size in GB
	StorageGb *string `json:"-" url:"storage_gb,omitempty"`
	// Infrastructure tier: "standard" or "premium"
	Tier *string `json:"-" url:"tier,omitempty"`
	// Database cluster ID for resize cost estimates (replaces workload instead of adding)
	DbClusterID *string `json:"-" url:"db_cluster_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCostEstimateDatabasesRequest) SetAvailabilityType

func (g *GetCostEstimateDatabasesRequest) SetAvailabilityType(availabilityType *string)

SetAvailabilityType sets the AvailabilityType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCostEstimateDatabasesRequest) SetDbClusterID

func (g *GetCostEstimateDatabasesRequest) SetDbClusterID(dbClusterID *string)

SetDbClusterID sets the DbClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCostEstimateDatabasesRequest) SetOfferingID

func (g *GetCostEstimateDatabasesRequest) SetOfferingID(offeringID string)

SetOfferingID sets the OfferingID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCostEstimateDatabasesRequest) SetStorageGb

func (g *GetCostEstimateDatabasesRequest) SetStorageGb(storageGb *string)

SetStorageGb sets the StorageGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCostEstimateDatabasesRequest) SetTier

func (g *GetCostEstimateDatabasesRequest) SetTier(tier *string)

SetTier sets the Tier field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetCostEstimateDatabasesRequest) SetUserClusterID

func (g *GetCostEstimateDatabasesRequest) SetUserClusterID(userClusterID *string)

SetUserClusterID sets the UserClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetDatabaseBackupsRequest

type GetDatabaseBackupsRequest struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// Backup name
	BackupName string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetDatabaseBackupsRequest) SetBackupName

func (g *GetDatabaseBackupsRequest) SetBackupName(backupName string)

SetBackupName sets the BackupName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetDatabaseBackupsRequest) SetClusterID

func (g *GetDatabaseBackupsRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetDatabaseInfrastructureRequest

type GetDatabaseInfrastructureRequest struct {
	// Infrastructure cluster ID
	UserClusterID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetDatabaseInfrastructureRequest) SetUserClusterID

func (g *GetDatabaseInfrastructureRequest) SetUserClusterID(userClusterID string)

SetUserClusterID sets the UserClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetDatabaseOfferingsRequest

type GetDatabaseOfferingsRequest struct {
	// Database offering ID
	OfferingID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetDatabaseOfferingsRequest) SetOfferingID

func (g *GetDatabaseOfferingsRequest) SetOfferingID(offeringID string)

SetOfferingID sets the OfferingID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetDatabasesRequest

type GetDatabasesRequest struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetDatabasesRequest) SetClusterID

func (g *GetDatabasesRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetEgressRulesRequest

type GetEgressRulesRequest struct {
	// ID of the egress rule
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetEgressRulesRequest) SetID

func (g *GetEgressRulesRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetImagesRequest

type GetImagesRequest struct {
	// ID of the image to get
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetImagesRequest) SetID

func (g *GetImagesRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetIsolatedNetworksRequest

type GetIsolatedNetworksRequest struct {
	// ID of the isolated network
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetIsolatedNetworksRequest) SetID

func (g *GetIsolatedNetworksRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetKeysObjectStorageRequest

type GetKeysObjectStorageRequest struct {
	// Storage unit ID (UID)
	StorageUnitID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetKeysObjectStorageRequest) SetStorageUnitID

func (g *GetKeysObjectStorageRequest) SetStorageUnitID(storageUnitID string)

SetStorageUnitID sets the StorageUnitID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetListNetworkACLsRequest

type GetListNetworkACLsRequest struct {
	// ID of the Network ACL List
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetListNetworkACLsRequest) SetID

func (g *GetListNetworkACLsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetMetricsVmsRequest

type GetMetricsVmsRequest struct {
	// ID of the virtual machine
	ID string `json:"-" url:"-"`
	// Number of hours to look back (1-16)
	Hours float64 `json:"-" url:"hours"`
	// Sampling step — return every Nth data point from the raw dataset. Higher values return fewer, more spread-out points. When omitted, up to 150 points are returned.
	SamplePeriod *float64 `json:"-" url:"sample_period,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMetricsVmsRequest) SetHours

func (g *GetMetricsVmsRequest) SetHours(hours float64)

SetHours sets the Hours field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetMetricsVmsRequest) SetID

func (g *GetMetricsVmsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetMetricsVmsRequest) SetSamplePeriod

func (g *GetMetricsVmsRequest) SetSamplePeriod(samplePeriod *float64)

SetSamplePeriod sets the SamplePeriod field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetOperationsDatabasesRequest

type GetOperationsDatabasesRequest struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetOperationsDatabasesRequest) SetClusterID

func (g *GetOperationsDatabasesRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetPolicyDatabaseBackupsRequest

type GetPolicyDatabaseBackupsRequest struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// Filter by policy name
	PolicyName *string `json:"-" url:"policy_name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPolicyDatabaseBackupsRequest) SetClusterID

func (g *GetPolicyDatabaseBackupsRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetPolicyDatabaseBackupsRequest) SetPolicyName

func (g *GetPolicyDatabaseBackupsRequest) SetPolicyName(policyName *string)

SetPolicyName sets the PolicyName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetPublicIpsRequest

type GetPublicIpsRequest struct {
	// ID of the public IP address
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetPublicIpsRequest) SetID

func (g *GetPublicIpsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetRegionsRequest

type GetRegionsRequest struct {
	// ID of the region to get
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetRegionsRequest) SetID

func (g *GetRegionsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetRuleNetworkACLsRequest

type GetRuleNetworkACLsRequest struct {
	// ID of the Network ACL Rule
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetRuleNetworkACLsRequest) SetID

func (g *GetRuleNetworkACLsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetScheduleDatabaseBackupsRequest

type GetScheduleDatabaseBackupsRequest struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// Filter by schedule name
	ScheduleName *string `json:"-" url:"schedule_name,omitempty"`
	// Filter by backup policy name
	BackupPolicyName *string `json:"-" url:"backup_policy_name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetScheduleDatabaseBackupsRequest) SetBackupPolicyName

func (g *GetScheduleDatabaseBackupsRequest) SetBackupPolicyName(backupPolicyName *string)

SetBackupPolicyName sets the BackupPolicyName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetScheduleDatabaseBackupsRequest) SetClusterID

func (g *GetScheduleDatabaseBackupsRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetScheduleDatabaseBackupsRequest) SetScheduleName

func (g *GetScheduleDatabaseBackupsRequest) SetScheduleName(scheduleName *string)

SetScheduleName sets the ScheduleName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetSnapshotsRequest

type GetSnapshotsRequest struct {
	// Snapshot ID
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetSnapshotsRequest) SetID

func (g *GetSnapshotsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetStatusDatabaseOperationsRequest

type GetStatusDatabaseOperationsRequest struct {
	// Operation correlation ID
	CorrelationID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetStatusDatabaseOperationsRequest) SetCorrelationID

func (g *GetStatusDatabaseOperationsRequest) SetCorrelationID(correlationID string)

SetCorrelationID sets the CorrelationID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetStatusDatabasesRequest

type GetStatusDatabasesRequest struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetStatusDatabasesRequest) SetClusterID

func (g *GetStatusDatabasesRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetTierVpcNetworksRequest added in v1.3.0

type GetTierVpcNetworksRequest struct {
	// ID of the VPC that contains the tier
	ID string `json:"-" url:"-"`
	// ID of the network tier
	TierID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetTierVpcNetworksRequest) SetID added in v1.3.0

func (g *GetTierVpcNetworksRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*GetTierVpcNetworksRequest) SetTierID added in v1.3.0

func (g *GetTierVpcNetworksRequest) SetTierID(tierID string)

SetTierID sets the TierID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetVMPackagesRequest

type GetVMPackagesRequest struct {
	// ID of the VM package to get
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetVMPackagesRequest) SetID

func (g *GetVMPackagesRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetVmsRequest

type GetVmsRequest struct {
	// ID of the virtual machine
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetVmsRequest) SetID

func (g *GetVmsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type GetVpcNetworksRequest

type GetVpcNetworksRequest struct {
	// ID of the VPC to get
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*GetVpcNetworksRequest) SetID

func (g *GetVpcNetworksRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ImageDto

type ImageDto struct {
	// Image ID
	ID string `json:"id" url:"id"`
	// Image label (used as a unique identifier)
	Label string `json:"label" url:"label"`
	// Human-readable display name for the image
	Description string `json:"description" url:"description"`
	// Operating system type
	Os string `json:"os" url:"os"`
	// Operating system version
	Version string `json:"version" url:"version"`
	// contains filtered or unexported fields
}

func (*ImageDto) GetDescription

func (i *ImageDto) GetDescription() string

func (*ImageDto) GetExtraProperties

func (i *ImageDto) GetExtraProperties() map[string]interface{}

func (*ImageDto) GetID

func (i *ImageDto) GetID() string

func (*ImageDto) GetLabel

func (i *ImageDto) GetLabel() string

func (*ImageDto) GetOs

func (i *ImageDto) GetOs() string

func (*ImageDto) GetVersion

func (i *ImageDto) GetVersion() string

func (*ImageDto) MarshalJSON

func (i *ImageDto) MarshalJSON() ([]byte, error)

func (*ImageDto) SetDescription

func (i *ImageDto) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageDto) SetID

func (i *ImageDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageDto) SetLabel

func (i *ImageDto) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageDto) SetOs

func (i *ImageDto) SetOs(os string)

SetOs sets the Os field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageDto) SetVersion

func (i *ImageDto) SetVersion(version string)

SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ImageDto) String

func (i *ImageDto) String() string

func (*ImageDto) UnmarshalJSON

func (i *ImageDto) UnmarshalJSON(data []byte) error

type InboundPortDto

type InboundPortDto struct {
	// Port number to open for inbound traffic
	Port     int                    `json:"port" url:"port"`
	Protocol InboundPortDtoProtocol `json:"protocol" url:"protocol"`
	// contains filtered or unexported fields
}

func (*InboundPortDto) GetExtraProperties

func (i *InboundPortDto) GetExtraProperties() map[string]interface{}

func (*InboundPortDto) GetPort

func (i *InboundPortDto) GetPort() int

func (*InboundPortDto) GetProtocol

func (i *InboundPortDto) GetProtocol() InboundPortDtoProtocol

func (*InboundPortDto) MarshalJSON

func (i *InboundPortDto) MarshalJSON() ([]byte, error)

func (*InboundPortDto) SetPort

func (i *InboundPortDto) SetPort(port int)

SetPort sets the Port field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*InboundPortDto) SetProtocol

func (i *InboundPortDto) SetProtocol(protocol InboundPortDtoProtocol)

SetProtocol sets the Protocol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*InboundPortDto) String

func (i *InboundPortDto) String() string

func (*InboundPortDto) UnmarshalJSON

func (i *InboundPortDto) UnmarshalJSON(data []byte) error

type InboundPortDtoProtocol

type InboundPortDtoProtocol string
const (
	InboundPortDtoProtocolTCP InboundPortDtoProtocol = "TCP"
	InboundPortDtoProtocolUDP InboundPortDtoProtocol = "UDP"
)

func NewInboundPortDtoProtocolFromString

func NewInboundPortDtoProtocolFromString(s string) (InboundPortDtoProtocol, error)

func (InboundPortDtoProtocol) Ptr

type InternalServerError

type InternalServerError struct {
	*core.APIError
	Body *APIErrorDto
}

An unexpected error occurred on the server.

func (*InternalServerError) MarshalJSON

func (i *InternalServerError) MarshalJSON() ([]byte, error)

func (*InternalServerError) UnmarshalJSON

func (i *InternalServerError) UnmarshalJSON(data []byte) error

func (*InternalServerError) Unwrap

func (i *InternalServerError) Unwrap() error

type IsolatedNetworkConfigDto

type IsolatedNetworkConfigDto struct {
	// Identifier of the isolated network the cluster will attach to.
	NetworkID string `json:"networkId" url:"networkId"`
	// Zone name override for the cluster.
	ZoneName *string `json:"zoneName,omitempty" url:"zoneName,omitempty"`
	// contains filtered or unexported fields
}

func (*IsolatedNetworkConfigDto) GetExtraProperties

func (i *IsolatedNetworkConfigDto) GetExtraProperties() map[string]interface{}

func (*IsolatedNetworkConfigDto) GetNetworkID

func (i *IsolatedNetworkConfigDto) GetNetworkID() string

func (*IsolatedNetworkConfigDto) GetZoneName

func (i *IsolatedNetworkConfigDto) GetZoneName() *string

func (*IsolatedNetworkConfigDto) MarshalJSON

func (i *IsolatedNetworkConfigDto) MarshalJSON() ([]byte, error)

func (*IsolatedNetworkConfigDto) SetNetworkID

func (i *IsolatedNetworkConfigDto) SetNetworkID(networkID string)

SetNetworkID sets the NetworkID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IsolatedNetworkConfigDto) SetZoneName

func (i *IsolatedNetworkConfigDto) SetZoneName(zoneName *string)

SetZoneName sets the ZoneName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IsolatedNetworkConfigDto) String

func (i *IsolatedNetworkConfigDto) String() string

func (*IsolatedNetworkConfigDto) UnmarshalJSON

func (i *IsolatedNetworkConfigDto) UnmarshalJSON(data []byte) error

type IsolatedNetworkResponseDto

type IsolatedNetworkResponseDto struct {
	// Unique identifier for the network
	ID string `json:"id" url:"id"`
	// Name of the network
	Name string `json:"name" url:"name"`
	// Description of the network
	Description string `json:"description" url:"description"`
	// CIDR of the network
	Cidr string `json:"cidr" url:"cidr"`
	// Gateway IP address
	Gateway string `json:"gateway" url:"gateway"`
	// Network status
	Status IsolatedNetworkResponseDtoStatus `json:"status" url:"status"`
	// Region where the network is located
	Region string `json:"region" url:"region"`
	// Network creation date
	CreatedAt *time.Time `json:"createdAt,omitempty" url:"createdAt,omitempty"`
	// Network type
	Type string `json:"type" url:"type"`
	// Type of the ACL list
	ACLType *string `json:"aclType,omitempty" url:"aclType,omitempty"`
	// How outbound traffic is treated when this network has no egress rules. `allow` means all outbound traffic is permitted and each egress rule blocks what it matches; `deny` means all outbound traffic is blocked and each egress rule permits what it matches. Fixed when the network is created and cannot be changed afterwards. Omitted when unknown.
	DefaultEgressPolicy *IsolatedNetworkResponseDtoDefaultEgressPolicy `json:"defaultEgressPolicy,omitempty" url:"defaultEgressPolicy,omitempty"`
	// contains filtered or unexported fields
}

func (*IsolatedNetworkResponseDto) GetACLType

func (i *IsolatedNetworkResponseDto) GetACLType() *string

func (*IsolatedNetworkResponseDto) GetCidr

func (i *IsolatedNetworkResponseDto) GetCidr() string

func (*IsolatedNetworkResponseDto) GetCreatedAt

func (i *IsolatedNetworkResponseDto) GetCreatedAt() *time.Time

func (*IsolatedNetworkResponseDto) GetDefaultEgressPolicy added in v1.4.0

func (*IsolatedNetworkResponseDto) GetDescription

func (i *IsolatedNetworkResponseDto) GetDescription() string

func (*IsolatedNetworkResponseDto) GetExtraProperties

func (i *IsolatedNetworkResponseDto) GetExtraProperties() map[string]interface{}

func (*IsolatedNetworkResponseDto) GetGateway

func (i *IsolatedNetworkResponseDto) GetGateway() string

func (*IsolatedNetworkResponseDto) GetID

func (*IsolatedNetworkResponseDto) GetName

func (i *IsolatedNetworkResponseDto) GetName() string

func (*IsolatedNetworkResponseDto) GetRegion

func (i *IsolatedNetworkResponseDto) GetRegion() string

func (*IsolatedNetworkResponseDto) GetStatus

func (*IsolatedNetworkResponseDto) GetType

func (i *IsolatedNetworkResponseDto) GetType() string

func (*IsolatedNetworkResponseDto) MarshalJSON

func (i *IsolatedNetworkResponseDto) MarshalJSON() ([]byte, error)

func (*IsolatedNetworkResponseDto) SetACLType

func (i *IsolatedNetworkResponseDto) SetACLType(aclType *string)

SetACLType sets the ACLType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IsolatedNetworkResponseDto) SetCidr

func (i *IsolatedNetworkResponseDto) SetCidr(cidr string)

SetCidr sets the Cidr field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IsolatedNetworkResponseDto) SetCreatedAt

func (i *IsolatedNetworkResponseDto) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IsolatedNetworkResponseDto) SetDefaultEgressPolicy added in v1.4.0

func (i *IsolatedNetworkResponseDto) SetDefaultEgressPolicy(defaultEgressPolicy *IsolatedNetworkResponseDtoDefaultEgressPolicy)

SetDefaultEgressPolicy sets the DefaultEgressPolicy field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IsolatedNetworkResponseDto) SetDescription

func (i *IsolatedNetworkResponseDto) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IsolatedNetworkResponseDto) SetGateway

func (i *IsolatedNetworkResponseDto) SetGateway(gateway string)

SetGateway sets the Gateway field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IsolatedNetworkResponseDto) SetID

func (i *IsolatedNetworkResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IsolatedNetworkResponseDto) SetName

func (i *IsolatedNetworkResponseDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IsolatedNetworkResponseDto) SetRegion

func (i *IsolatedNetworkResponseDto) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IsolatedNetworkResponseDto) SetStatus

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IsolatedNetworkResponseDto) SetType

func (i *IsolatedNetworkResponseDto) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*IsolatedNetworkResponseDto) String

func (i *IsolatedNetworkResponseDto) String() string

func (*IsolatedNetworkResponseDto) UnmarshalJSON

func (i *IsolatedNetworkResponseDto) UnmarshalJSON(data []byte) error

type IsolatedNetworkResponseDtoDefaultEgressPolicy added in v1.4.0

type IsolatedNetworkResponseDtoDefaultEgressPolicy string

How outbound traffic is treated when this network has no egress rules. `allow` means all outbound traffic is permitted and each egress rule blocks what it matches; `deny` means all outbound traffic is blocked and each egress rule permits what it matches. Fixed when the network is created and cannot be changed afterwards. Omitted when unknown.

const (
	IsolatedNetworkResponseDtoDefaultEgressPolicyAllow IsolatedNetworkResponseDtoDefaultEgressPolicy = "allow"
	IsolatedNetworkResponseDtoDefaultEgressPolicyDeny  IsolatedNetworkResponseDtoDefaultEgressPolicy = "deny"
)

func NewIsolatedNetworkResponseDtoDefaultEgressPolicyFromString added in v1.4.0

func NewIsolatedNetworkResponseDtoDefaultEgressPolicyFromString(s string) (IsolatedNetworkResponseDtoDefaultEgressPolicy, error)

func (IsolatedNetworkResponseDtoDefaultEgressPolicy) Ptr added in v1.4.0

type IsolatedNetworkResponseDtoStatus

type IsolatedNetworkResponseDtoStatus string

Network status

const (
	IsolatedNetworkResponseDtoStatusActive    IsolatedNetworkResponseDtoStatus = "Active"
	IsolatedNetworkResponseDtoStatusAllocated IsolatedNetworkResponseDtoStatus = "Allocated"
	IsolatedNetworkResponseDtoStatusSetup     IsolatedNetworkResponseDtoStatus = "Setup"
	IsolatedNetworkResponseDtoStatusInactive  IsolatedNetworkResponseDtoStatus = "Inactive"
)

func NewIsolatedNetworkResponseDtoStatusFromString

func NewIsolatedNetworkResponseDtoStatusFromString(s string) (IsolatedNetworkResponseDtoStatus, error)

func (IsolatedNetworkResponseDtoStatus) Ptr

type KubernetesClusterResponse

type KubernetesClusterResponse struct {
	// Unique identifier for the cluster.
	ID string `json:"id" url:"id"`
	// Human-readable name for the cluster.
	Name string `json:"name" url:"name"`
	// Region the cluster is deployed in.
	Region string `json:"region" url:"region"`
	// Current lifecycle state of the cluster.
	Status string `json:"status" url:"status"`
	// Kubernetes version the cluster is running.
	KubernetesVersion string `json:"kubernetesVersion" url:"kubernetesVersion"`
	// When the cluster was created.
	CreatedAt time.Time `json:"createdAt" url:"createdAt"`
	// Package label describing the per-node CPU/memory/disk preset.
	Package string `json:"package" url:"package"`
	// Description of the cluster.
	Description string `json:"description" url:"description"`
	// Public IP address attached to the cluster.
	IPAddress *string `json:"ipAddress,omitempty" url:"ipAddress,omitempty"`
	// Identifier of the public IP attached to the cluster.
	IPAddressID *string `json:"ipAddressId,omitempty" url:"ipAddressId,omitempty"`
	// Node-pool configuration for the cluster.
	NodePool *KubernetesNodePool `json:"nodePool" url:"nodePool"`
	// When the cluster was deleted. Omitted if the cluster still exists.
	DeletedAt *time.Time `json:"deletedAt,omitempty" url:"deletedAt,omitempty"`
	// Cluster nodes. Only included when `details=true`.
	Nodes []*KubernetesNodeResponse `json:"nodes,omitempty" url:"nodes,omitempty"`
	// contains filtered or unexported fields
}

func (*KubernetesClusterResponse) GetCreatedAt

func (k *KubernetesClusterResponse) GetCreatedAt() time.Time

func (*KubernetesClusterResponse) GetDeletedAt

func (k *KubernetesClusterResponse) GetDeletedAt() *time.Time

func (*KubernetesClusterResponse) GetDescription

func (k *KubernetesClusterResponse) GetDescription() string

func (*KubernetesClusterResponse) GetExtraProperties

func (k *KubernetesClusterResponse) GetExtraProperties() map[string]interface{}

func (*KubernetesClusterResponse) GetID

func (k *KubernetesClusterResponse) GetID() string

func (*KubernetesClusterResponse) GetIPAddress

func (k *KubernetesClusterResponse) GetIPAddress() *string

func (*KubernetesClusterResponse) GetIPAddressID

func (k *KubernetesClusterResponse) GetIPAddressID() *string

func (*KubernetesClusterResponse) GetKubernetesVersion

func (k *KubernetesClusterResponse) GetKubernetesVersion() string

func (*KubernetesClusterResponse) GetName

func (k *KubernetesClusterResponse) GetName() string

func (*KubernetesClusterResponse) GetNodePool

func (*KubernetesClusterResponse) GetNodes

func (*KubernetesClusterResponse) GetPackage

func (k *KubernetesClusterResponse) GetPackage() string

func (*KubernetesClusterResponse) GetRegion

func (k *KubernetesClusterResponse) GetRegion() string

func (*KubernetesClusterResponse) GetStatus

func (k *KubernetesClusterResponse) GetStatus() string

func (*KubernetesClusterResponse) MarshalJSON

func (k *KubernetesClusterResponse) MarshalJSON() ([]byte, error)

func (*KubernetesClusterResponse) SetCreatedAt

func (k *KubernetesClusterResponse) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesClusterResponse) SetDeletedAt

func (k *KubernetesClusterResponse) SetDeletedAt(deletedAt *time.Time)

SetDeletedAt sets the DeletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesClusterResponse) SetDescription

func (k *KubernetesClusterResponse) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesClusterResponse) SetID

func (k *KubernetesClusterResponse) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesClusterResponse) SetIPAddress

func (k *KubernetesClusterResponse) SetIPAddress(ipAddress *string)

SetIPAddress sets the IPAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesClusterResponse) SetIPAddressID

func (k *KubernetesClusterResponse) SetIPAddressID(ipAddressID *string)

SetIPAddressID sets the IPAddressID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesClusterResponse) SetKubernetesVersion

func (k *KubernetesClusterResponse) SetKubernetesVersion(kubernetesVersion string)

SetKubernetesVersion sets the KubernetesVersion field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesClusterResponse) SetName

func (k *KubernetesClusterResponse) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesClusterResponse) SetNodePool

func (k *KubernetesClusterResponse) SetNodePool(nodePool *KubernetesNodePool)

SetNodePool sets the NodePool field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesClusterResponse) SetNodes

func (k *KubernetesClusterResponse) SetNodes(nodes []*KubernetesNodeResponse)

SetNodes sets the Nodes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesClusterResponse) SetPackage

func (k *KubernetesClusterResponse) SetPackage(package_ string)

SetPackage sets the Package field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesClusterResponse) SetRegion

func (k *KubernetesClusterResponse) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesClusterResponse) SetStatus

func (k *KubernetesClusterResponse) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesClusterResponse) String

func (k *KubernetesClusterResponse) String() string

func (*KubernetesClusterResponse) UnmarshalJSON

func (k *KubernetesClusterResponse) UnmarshalJSON(data []byte) error

type KubernetesConfigResponseDto

type KubernetesConfigResponseDto struct {
	// The kubeconfig file content for connecting to the cluster. YAML-encoded; pipe to `~/.kube/config` or merge into an existing kubeconfig.
	Configdata string `json:"configdata" url:"configdata"`
	// contains filtered or unexported fields
}

func (*KubernetesConfigResponseDto) GetConfigdata

func (k *KubernetesConfigResponseDto) GetConfigdata() string

func (*KubernetesConfigResponseDto) GetExtraProperties

func (k *KubernetesConfigResponseDto) GetExtraProperties() map[string]interface{}

func (*KubernetesConfigResponseDto) MarshalJSON

func (k *KubernetesConfigResponseDto) MarshalJSON() ([]byte, error)

func (*KubernetesConfigResponseDto) SetConfigdata

func (k *KubernetesConfigResponseDto) SetConfigdata(configdata string)

SetConfigdata sets the Configdata field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesConfigResponseDto) String

func (k *KubernetesConfigResponseDto) String() string

func (*KubernetesConfigResponseDto) UnmarshalJSON

func (k *KubernetesConfigResponseDto) UnmarshalJSON(data []byte) error

type KubernetesNodePool

type KubernetesNodePool struct {
	// Number of control-plane nodes in the cluster.
	ControlNodes float64 `json:"controlNodes" url:"controlNodes"`
	// Number of worker nodes in the cluster.
	WorkerNodes float64 `json:"workerNodes" url:"workerNodes"`
	// Whether the cluster scales worker nodes automatically based on load.
	AutoscalingEnabled bool `json:"autoscalingEnabled" url:"autoscalingEnabled"`
	// Floor for worker-node count when autoscaling is enabled.
	MinWorkers *float64 `json:"minWorkers,omitempty" url:"minWorkers,omitempty"`
	// Ceiling for worker-node count when autoscaling is enabled.
	MaxWorkers *float64 `json:"maxWorkers,omitempty" url:"maxWorkers,omitempty"`
	// Number of virtual CPU cores allocated to each node.
	CPUCores float64 `json:"cpuCores" url:"cpuCores"`
	// Memory allocated to each node, in megabytes.
	MemoryMb int `json:"memoryMb" url:"memoryMb"`
	// contains filtered or unexported fields
}

func (*KubernetesNodePool) GetAutoscalingEnabled

func (k *KubernetesNodePool) GetAutoscalingEnabled() bool

func (*KubernetesNodePool) GetCPUCores

func (k *KubernetesNodePool) GetCPUCores() float64

func (*KubernetesNodePool) GetControlNodes

func (k *KubernetesNodePool) GetControlNodes() float64

func (*KubernetesNodePool) GetExtraProperties

func (k *KubernetesNodePool) GetExtraProperties() map[string]interface{}

func (*KubernetesNodePool) GetMaxWorkers

func (k *KubernetesNodePool) GetMaxWorkers() *float64

func (*KubernetesNodePool) GetMemoryMb

func (k *KubernetesNodePool) GetMemoryMb() int

func (*KubernetesNodePool) GetMinWorkers

func (k *KubernetesNodePool) GetMinWorkers() *float64

func (*KubernetesNodePool) GetWorkerNodes

func (k *KubernetesNodePool) GetWorkerNodes() float64

func (*KubernetesNodePool) MarshalJSON

func (k *KubernetesNodePool) MarshalJSON() ([]byte, error)

func (*KubernetesNodePool) SetAutoscalingEnabled

func (k *KubernetesNodePool) SetAutoscalingEnabled(autoscalingEnabled bool)

SetAutoscalingEnabled sets the AutoscalingEnabled field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodePool) SetCPUCores

func (k *KubernetesNodePool) SetCPUCores(cpuCores float64)

SetCPUCores sets the CPUCores field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodePool) SetControlNodes

func (k *KubernetesNodePool) SetControlNodes(controlNodes float64)

SetControlNodes sets the ControlNodes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodePool) SetMaxWorkers

func (k *KubernetesNodePool) SetMaxWorkers(maxWorkers *float64)

SetMaxWorkers sets the MaxWorkers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodePool) SetMemoryMb

func (k *KubernetesNodePool) SetMemoryMb(memoryMb int)

SetMemoryMb sets the MemoryMb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodePool) SetMinWorkers

func (k *KubernetesNodePool) SetMinWorkers(minWorkers *float64)

SetMinWorkers sets the MinWorkers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodePool) SetWorkerNodes

func (k *KubernetesNodePool) SetWorkerNodes(workerNodes float64)

SetWorkerNodes sets the WorkerNodes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodePool) String

func (k *KubernetesNodePool) String() string

func (*KubernetesNodePool) UnmarshalJSON

func (k *KubernetesNodePool) UnmarshalJSON(data []byte) error

type KubernetesNodeResponse

type KubernetesNodeResponse struct {
	// Unique identifier for the node.
	ID string `json:"id" url:"id"`
	// Hostname of the node.
	Name string `json:"name" url:"name"`
	// Role this node plays in the cluster.
	Role KubernetesNodeResponseRole `json:"role" url:"role"`
	// Current lifecycle state of the node.
	State string `json:"state" url:"state"`
	// Private IP address assigned to the node.
	IPAddress *string `json:"ipAddress,omitempty" url:"ipAddress,omitempty"`
	// Number of virtual CPU cores allocated to the node.
	CPUCores float64 `json:"cpuCores" url:"cpuCores"`
	// Memory allocated to the node, in megabytes.
	MemoryMb int `json:"memoryMb" url:"memoryMb"`
	// Root disk attached to the node.
	RootVolume *KubernetesNodeRootVolume `json:"rootVolume" url:"rootVolume"`
	// When the node was provisioned.
	CreatedAt time.Time `json:"createdAt" url:"createdAt"`
	// contains filtered or unexported fields
}

func (*KubernetesNodeResponse) GetCPUCores

func (k *KubernetesNodeResponse) GetCPUCores() float64

func (*KubernetesNodeResponse) GetCreatedAt

func (k *KubernetesNodeResponse) GetCreatedAt() time.Time

func (*KubernetesNodeResponse) GetExtraProperties

func (k *KubernetesNodeResponse) GetExtraProperties() map[string]interface{}

func (*KubernetesNodeResponse) GetID

func (k *KubernetesNodeResponse) GetID() string

func (*KubernetesNodeResponse) GetIPAddress

func (k *KubernetesNodeResponse) GetIPAddress() *string

func (*KubernetesNodeResponse) GetMemoryMb

func (k *KubernetesNodeResponse) GetMemoryMb() int

func (*KubernetesNodeResponse) GetName

func (k *KubernetesNodeResponse) GetName() string

func (*KubernetesNodeResponse) GetRole

func (*KubernetesNodeResponse) GetRootVolume

func (*KubernetesNodeResponse) GetState

func (k *KubernetesNodeResponse) GetState() string

func (*KubernetesNodeResponse) MarshalJSON

func (k *KubernetesNodeResponse) MarshalJSON() ([]byte, error)

func (*KubernetesNodeResponse) SetCPUCores

func (k *KubernetesNodeResponse) SetCPUCores(cpuCores float64)

SetCPUCores sets the CPUCores field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodeResponse) SetCreatedAt

func (k *KubernetesNodeResponse) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodeResponse) SetID

func (k *KubernetesNodeResponse) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodeResponse) SetIPAddress

func (k *KubernetesNodeResponse) SetIPAddress(ipAddress *string)

SetIPAddress sets the IPAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodeResponse) SetMemoryMb

func (k *KubernetesNodeResponse) SetMemoryMb(memoryMb int)

SetMemoryMb sets the MemoryMb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodeResponse) SetName

func (k *KubernetesNodeResponse) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodeResponse) SetRole

SetRole sets the Role field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodeResponse) SetRootVolume

func (k *KubernetesNodeResponse) SetRootVolume(rootVolume *KubernetesNodeRootVolume)

SetRootVolume sets the RootVolume field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodeResponse) SetState

func (k *KubernetesNodeResponse) SetState(state string)

SetState sets the State field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodeResponse) String

func (k *KubernetesNodeResponse) String() string

func (*KubernetesNodeResponse) UnmarshalJSON

func (k *KubernetesNodeResponse) UnmarshalJSON(data []byte) error

type KubernetesNodeResponseRole

type KubernetesNodeResponseRole string

Role this node plays in the cluster.

const (
	KubernetesNodeResponseRoleControl KubernetesNodeResponseRole = "control"
	KubernetesNodeResponseRoleWorker  KubernetesNodeResponseRole = "worker"
	KubernetesNodeResponseRoleUnknown KubernetesNodeResponseRole = "unknown"
)

func NewKubernetesNodeResponseRoleFromString

func NewKubernetesNodeResponseRoleFromString(s string) (KubernetesNodeResponseRole, error)

func (KubernetesNodeResponseRole) Ptr

type KubernetesNodeRootVolume

type KubernetesNodeRootVolume struct {
	// Name of the root volume.
	Name string `json:"name" url:"name"`
	// Root volume size, in gigabytes.
	SizeGb int `json:"sizeGb" url:"sizeGb"`
	// contains filtered or unexported fields
}

func (*KubernetesNodeRootVolume) GetExtraProperties

func (k *KubernetesNodeRootVolume) GetExtraProperties() map[string]interface{}

func (*KubernetesNodeRootVolume) GetName

func (k *KubernetesNodeRootVolume) GetName() string

func (*KubernetesNodeRootVolume) GetSizeGb

func (k *KubernetesNodeRootVolume) GetSizeGb() int

func (*KubernetesNodeRootVolume) MarshalJSON

func (k *KubernetesNodeRootVolume) MarshalJSON() ([]byte, error)

func (*KubernetesNodeRootVolume) SetName

func (k *KubernetesNodeRootVolume) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodeRootVolume) SetSizeGb

func (k *KubernetesNodeRootVolume) SetSizeGb(sizeGb int)

SetSizeGb sets the SizeGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesNodeRootVolume) String

func (k *KubernetesNodeRootVolume) String() string

func (*KubernetesNodeRootVolume) UnmarshalJSON

func (k *KubernetesNodeRootVolume) UnmarshalJSON(data []byte) error

type KubernetesPackageResponse

type KubernetesPackageResponse struct {
	// Unique identifier for the Kubernetes package.
	ID string `json:"id" url:"id"`
	// Package label used to select this preset when creating a cluster.
	Label string `json:"label" url:"label"`
	// Short description of the package.
	Description string `json:"description" url:"description"`
	// Tier classification for the package.
	Tier string `json:"tier" url:"tier"`
	// Regions where the package is available.
	Regions []string `json:"regions" url:"regions"`
	// contains filtered or unexported fields
}

func (*KubernetesPackageResponse) GetDescription

func (k *KubernetesPackageResponse) GetDescription() string

func (*KubernetesPackageResponse) GetExtraProperties

func (k *KubernetesPackageResponse) GetExtraProperties() map[string]interface{}

func (*KubernetesPackageResponse) GetID

func (k *KubernetesPackageResponse) GetID() string

func (*KubernetesPackageResponse) GetLabel

func (k *KubernetesPackageResponse) GetLabel() string

func (*KubernetesPackageResponse) GetRegions

func (k *KubernetesPackageResponse) GetRegions() []string

func (*KubernetesPackageResponse) GetTier

func (k *KubernetesPackageResponse) GetTier() string

func (*KubernetesPackageResponse) MarshalJSON

func (k *KubernetesPackageResponse) MarshalJSON() ([]byte, error)

func (*KubernetesPackageResponse) SetDescription

func (k *KubernetesPackageResponse) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesPackageResponse) SetID

func (k *KubernetesPackageResponse) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesPackageResponse) SetLabel

func (k *KubernetesPackageResponse) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesPackageResponse) SetRegions

func (k *KubernetesPackageResponse) SetRegions(regions []string)

SetRegions sets the Regions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesPackageResponse) SetTier

func (k *KubernetesPackageResponse) SetTier(tier string)

SetTier sets the Tier field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*KubernetesPackageResponse) String

func (k *KubernetesPackageResponse) String() string

func (*KubernetesPackageResponse) UnmarshalJSON

func (k *KubernetesPackageResponse) UnmarshalJSON(data []byte) error

type ListBackupReposDatabaseInfrastructureRequest

type ListBackupReposDatabaseInfrastructureRequest struct {
	// Infrastructure cluster ID
	UserClusterID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*ListBackupReposDatabaseInfrastructureRequest) SetUserClusterID

func (l *ListBackupReposDatabaseInfrastructureRequest) SetUserClusterID(userClusterID string)

SetUserClusterID sets the UserClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListBlockStorageRequest

type ListBlockStorageRequest struct {
	// Filter volumes attached to a specific virtual machine
	VmId *string `json:"-" url:"vmId,omitempty"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBlockStorageRequest) SetPage

func (l *ListBlockStorageRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListBlockStorageRequest) SetPageSize

func (l *ListBlockStorageRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListBlockStorageRequest) SetVmId

func (l *ListBlockStorageRequest) SetVmId(vmId *string)

SetVmId sets the VmId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListBlockStorageResponse

type ListBlockStorageResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64              `json:"total" url:"total"`
	Data  []*VolumeResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListBlockStorageResponse) GetData

func (*ListBlockStorageResponse) GetExtraProperties

func (l *ListBlockStorageResponse) GetExtraProperties() map[string]interface{}

func (*ListBlockStorageResponse) GetTotal

func (l *ListBlockStorageResponse) GetTotal() float64

func (*ListBlockStorageResponse) MarshalJSON

func (l *ListBlockStorageResponse) MarshalJSON() ([]byte, error)

func (*ListBlockStorageResponse) SetData

func (l *ListBlockStorageResponse) SetData(data []*VolumeResponseDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListBlockStorageResponse) SetTotal

func (l *ListBlockStorageResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListBlockStorageResponse) String

func (l *ListBlockStorageResponse) String() string

func (*ListBlockStorageResponse) UnmarshalJSON

func (l *ListBlockStorageResponse) UnmarshalJSON(data []byte) error

type ListBucketsObjectStorageRequest

type ListBucketsObjectStorageRequest struct {
	// Storage unit ID (UID)
	StorageUnitID string `json:"-" url:"-"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBucketsObjectStorageRequest) SetPage

func (l *ListBucketsObjectStorageRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListBucketsObjectStorageRequest) SetPageSize

func (l *ListBucketsObjectStorageRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListBucketsObjectStorageRequest) SetStorageUnitID

func (l *ListBucketsObjectStorageRequest) SetStorageUnitID(storageUnitID string)

SetStorageUnitID sets the StorageUnitID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListBucketsObjectStorageResponse

type ListBucketsObjectStorageResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64      `json:"total" url:"total"`
	Data  []*BucketDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListBucketsObjectStorageResponse) GetData

func (*ListBucketsObjectStorageResponse) GetExtraProperties

func (l *ListBucketsObjectStorageResponse) GetExtraProperties() map[string]interface{}

func (*ListBucketsObjectStorageResponse) GetTotal

func (*ListBucketsObjectStorageResponse) MarshalJSON

func (l *ListBucketsObjectStorageResponse) MarshalJSON() ([]byte, error)

func (*ListBucketsObjectStorageResponse) SetData

func (l *ListBucketsObjectStorageResponse) SetData(data []*BucketDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListBucketsObjectStorageResponse) SetTotal

func (l *ListBucketsObjectStorageResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListBucketsObjectStorageResponse) String

func (*ListBucketsObjectStorageResponse) UnmarshalJSON

func (l *ListBucketsObjectStorageResponse) UnmarshalJSON(data []byte) error

type ListByIsolatedNetworkPublicIpsRequest

type ListByIsolatedNetworkPublicIpsRequest struct {
	// ID of the isolated network
	IsolatedNetworkID string `json:"-" url:"-"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListByIsolatedNetworkPublicIpsRequest) SetIsolatedNetworkID

func (l *ListByIsolatedNetworkPublicIpsRequest) SetIsolatedNetworkID(isolatedNetworkID string)

SetIsolatedNetworkID sets the IsolatedNetworkID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListByIsolatedNetworkPublicIpsRequest) SetPage

func (l *ListByIsolatedNetworkPublicIpsRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListByIsolatedNetworkPublicIpsRequest) SetPageSize

func (l *ListByIsolatedNetworkPublicIpsRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListByIsolatedNetworkPublicIpsResponse

type ListByIsolatedNetworkPublicIpsResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                `json:"total" url:"total"`
	Data  []*PublicIPResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListByIsolatedNetworkPublicIpsResponse) GetData

func (*ListByIsolatedNetworkPublicIpsResponse) GetExtraProperties

func (l *ListByIsolatedNetworkPublicIpsResponse) GetExtraProperties() map[string]interface{}

func (*ListByIsolatedNetworkPublicIpsResponse) GetTotal

func (*ListByIsolatedNetworkPublicIpsResponse) MarshalJSON

func (l *ListByIsolatedNetworkPublicIpsResponse) MarshalJSON() ([]byte, error)

func (*ListByIsolatedNetworkPublicIpsResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListByIsolatedNetworkPublicIpsResponse) SetTotal

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListByIsolatedNetworkPublicIpsResponse) String

func (*ListByIsolatedNetworkPublicIpsResponse) UnmarshalJSON

func (l *ListByIsolatedNetworkPublicIpsResponse) UnmarshalJSON(data []byte) error

type ListByNetworkEgressRulesRequest

type ListByNetworkEgressRulesRequest struct {
	// ID of the network
	NetworkID string `json:"-" url:"-"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListByNetworkEgressRulesRequest) SetNetworkID

func (l *ListByNetworkEgressRulesRequest) SetNetworkID(networkID string)

SetNetworkID sets the NetworkID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListByNetworkEgressRulesRequest) SetPage

func (l *ListByNetworkEgressRulesRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListByNetworkEgressRulesRequest) SetPageSize

func (l *ListByNetworkEgressRulesRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListByNetworkEgressRulesResponse

type ListByNetworkEgressRulesResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                  `json:"total" url:"total"`
	Data  []*EgressRuleResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListByNetworkEgressRulesResponse) GetData

func (*ListByNetworkEgressRulesResponse) GetExtraProperties

func (l *ListByNetworkEgressRulesResponse) GetExtraProperties() map[string]interface{}

func (*ListByNetworkEgressRulesResponse) GetTotal

func (*ListByNetworkEgressRulesResponse) MarshalJSON

func (l *ListByNetworkEgressRulesResponse) MarshalJSON() ([]byte, error)

func (*ListByNetworkEgressRulesResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListByNetworkEgressRulesResponse) SetTotal

func (l *ListByNetworkEgressRulesResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListByNetworkEgressRulesResponse) String

func (*ListByNetworkEgressRulesResponse) UnmarshalJSON

func (l *ListByNetworkEgressRulesResponse) UnmarshalJSON(data []byte) error

type ListByVpcPublicIpsRequest

type ListByVpcPublicIpsRequest struct {
	// ID of the VPC
	VpcID string `json:"-" url:"-"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListByVpcPublicIpsRequest) SetPage

func (l *ListByVpcPublicIpsRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListByVpcPublicIpsRequest) SetPageSize

func (l *ListByVpcPublicIpsRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListByVpcPublicIpsRequest) SetVpcID

func (l *ListByVpcPublicIpsRequest) SetVpcID(vpcID string)

SetVpcID sets the VpcID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListByVpcPublicIpsResponse

type ListByVpcPublicIpsResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                `json:"total" url:"total"`
	Data  []*PublicIPResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListByVpcPublicIpsResponse) GetData

func (*ListByVpcPublicIpsResponse) GetExtraProperties

func (l *ListByVpcPublicIpsResponse) GetExtraProperties() map[string]interface{}

func (*ListByVpcPublicIpsResponse) GetTotal

func (l *ListByVpcPublicIpsResponse) GetTotal() float64

func (*ListByVpcPublicIpsResponse) MarshalJSON

func (l *ListByVpcPublicIpsResponse) MarshalJSON() ([]byte, error)

func (*ListByVpcPublicIpsResponse) SetData

func (l *ListByVpcPublicIpsResponse) SetData(data []*PublicIPResponseDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListByVpcPublicIpsResponse) SetTotal

func (l *ListByVpcPublicIpsResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListByVpcPublicIpsResponse) String

func (l *ListByVpcPublicIpsResponse) String() string

func (*ListByVpcPublicIpsResponse) UnmarshalJSON

func (l *ListByVpcPublicIpsResponse) UnmarshalJSON(data []byte) error

type ListClustersKubernetesRequest

type ListClustersKubernetesRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListClustersKubernetesRequest) SetPage

func (l *ListClustersKubernetesRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListClustersKubernetesRequest) SetPageSize

func (l *ListClustersKubernetesRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListClustersKubernetesResponse

type ListClustersKubernetesResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                      `json:"total" url:"total"`
	Data  []*KubernetesClusterResponse `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListClustersKubernetesResponse) GetData

func (*ListClustersKubernetesResponse) GetExtraProperties

func (l *ListClustersKubernetesResponse) GetExtraProperties() map[string]interface{}

func (*ListClustersKubernetesResponse) GetTotal

func (*ListClustersKubernetesResponse) MarshalJSON

func (l *ListClustersKubernetesResponse) MarshalJSON() ([]byte, error)

func (*ListClustersKubernetesResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListClustersKubernetesResponse) SetTotal

func (l *ListClustersKubernetesResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListClustersKubernetesResponse) String

func (*ListClustersKubernetesResponse) UnmarshalJSON

func (l *ListClustersKubernetesResponse) UnmarshalJSON(data []byte) error

type ListDNSRecordsRequest

type ListDNSRecordsRequest struct {
	// DNS zone identifier
	ZoneID string `json:"-" url:"-"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDNSRecordsRequest) SetPage

func (l *ListDNSRecordsRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDNSRecordsRequest) SetPageSize

func (l *ListDNSRecordsRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDNSRecordsRequest) SetZoneID

func (l *ListDNSRecordsRequest) SetZoneID(zoneID string)

SetZoneID sets the ZoneID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListDNSRecordsResponse

type ListDNSRecordsResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64              `json:"total" url:"total"`
	Data  []*RecordResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListDNSRecordsResponse) GetData

func (l *ListDNSRecordsResponse) GetData() []*RecordResponseDto

func (*ListDNSRecordsResponse) GetExtraProperties

func (l *ListDNSRecordsResponse) GetExtraProperties() map[string]interface{}

func (*ListDNSRecordsResponse) GetTotal

func (l *ListDNSRecordsResponse) GetTotal() float64

func (*ListDNSRecordsResponse) MarshalJSON

func (l *ListDNSRecordsResponse) MarshalJSON() ([]byte, error)

func (*ListDNSRecordsResponse) SetData

func (l *ListDNSRecordsResponse) SetData(data []*RecordResponseDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDNSRecordsResponse) SetTotal

func (l *ListDNSRecordsResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDNSRecordsResponse) String

func (l *ListDNSRecordsResponse) String() string

func (*ListDNSRecordsResponse) UnmarshalJSON

func (l *ListDNSRecordsResponse) UnmarshalJSON(data []byte) error

type ListDNSZonesRequest

type ListDNSZonesRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDNSZonesRequest) SetPage

func (l *ListDNSZonesRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDNSZonesRequest) SetPageSize

func (l *ListDNSZonesRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListDNSZonesResponse

type ListDNSZonesResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64            `json:"total" url:"total"`
	Data  []*ZoneResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListDNSZonesResponse) GetData

func (l *ListDNSZonesResponse) GetData() []*ZoneResponseDto

func (*ListDNSZonesResponse) GetExtraProperties

func (l *ListDNSZonesResponse) GetExtraProperties() map[string]interface{}

func (*ListDNSZonesResponse) GetTotal

func (l *ListDNSZonesResponse) GetTotal() float64

func (*ListDNSZonesResponse) MarshalJSON

func (l *ListDNSZonesResponse) MarshalJSON() ([]byte, error)

func (*ListDNSZonesResponse) SetData

func (l *ListDNSZonesResponse) SetData(data []*ZoneResponseDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDNSZonesResponse) SetTotal

func (l *ListDNSZonesResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDNSZonesResponse) String

func (l *ListDNSZonesResponse) String() string

func (*ListDNSZonesResponse) UnmarshalJSON

func (l *ListDNSZonesResponse) UnmarshalJSON(data []byte) error

type ListDatabaseBackupsRequest

type ListDatabaseBackupsRequest struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*ListDatabaseBackupsRequest) SetClusterID

func (l *ListDatabaseBackupsRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListDatabaseInfrastructureRequest

type ListDatabaseInfrastructureRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDatabaseInfrastructureRequest) SetPage

func (l *ListDatabaseInfrastructureRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDatabaseInfrastructureRequest) SetPageSize

func (l *ListDatabaseInfrastructureRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListDatabaseInfrastructureResponse

type ListDatabaseInfrastructureResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64          `json:"total" url:"total"`
	Data  []map[string]any `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListDatabaseInfrastructureResponse) GetData

func (l *ListDatabaseInfrastructureResponse) GetData() []map[string]any

func (*ListDatabaseInfrastructureResponse) GetExtraProperties

func (l *ListDatabaseInfrastructureResponse) GetExtraProperties() map[string]interface{}

func (*ListDatabaseInfrastructureResponse) GetTotal

func (*ListDatabaseInfrastructureResponse) MarshalJSON

func (l *ListDatabaseInfrastructureResponse) MarshalJSON() ([]byte, error)

func (*ListDatabaseInfrastructureResponse) SetData

func (l *ListDatabaseInfrastructureResponse) SetData(data []map[string]any)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDatabaseInfrastructureResponse) SetTotal

func (l *ListDatabaseInfrastructureResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDatabaseInfrastructureResponse) String

func (*ListDatabaseInfrastructureResponse) UnmarshalJSON

func (l *ListDatabaseInfrastructureResponse) UnmarshalJSON(data []byte) error

type ListDatabaseOfferingsRequest

type ListDatabaseOfferingsRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// Filter by database type
	Type *ListDatabaseOfferingsRequestType `json:"-" url:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDatabaseOfferingsRequest) SetPage

func (l *ListDatabaseOfferingsRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDatabaseOfferingsRequest) SetPageSize

func (l *ListDatabaseOfferingsRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDatabaseOfferingsRequest) SetType

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListDatabaseOfferingsRequestType

type ListDatabaseOfferingsRequestType string
const (
	ListDatabaseOfferingsRequestTypePostgres      ListDatabaseOfferingsRequestType = "postgres"
	ListDatabaseOfferingsRequestTypeMysql         ListDatabaseOfferingsRequestType = "mysql"
	ListDatabaseOfferingsRequestTypeRedis         ListDatabaseOfferingsRequestType = "redis"
	ListDatabaseOfferingsRequestTypeElasticsearch ListDatabaseOfferingsRequestType = "elasticsearch"
)

func NewListDatabaseOfferingsRequestTypeFromString

func NewListDatabaseOfferingsRequestTypeFromString(s string) (ListDatabaseOfferingsRequestType, error)

func (ListDatabaseOfferingsRequestType) Ptr

type ListDatabaseOfferingsResponse

type ListDatabaseOfferingsResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                        `json:"total" url:"total"`
	Data  []*DatabaseOfferingResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListDatabaseOfferingsResponse) GetData

func (*ListDatabaseOfferingsResponse) GetExtraProperties

func (l *ListDatabaseOfferingsResponse) GetExtraProperties() map[string]interface{}

func (*ListDatabaseOfferingsResponse) GetTotal

func (l *ListDatabaseOfferingsResponse) GetTotal() float64

func (*ListDatabaseOfferingsResponse) MarshalJSON

func (l *ListDatabaseOfferingsResponse) MarshalJSON() ([]byte, error)

func (*ListDatabaseOfferingsResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDatabaseOfferingsResponse) SetTotal

func (l *ListDatabaseOfferingsResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDatabaseOfferingsResponse) String

func (*ListDatabaseOfferingsResponse) UnmarshalJSON

func (l *ListDatabaseOfferingsResponse) UnmarshalJSON(data []byte) error

type ListDatabasesRequest

type ListDatabasesRequest struct {
	// Filter by infrastructure cluster ID
	UserClusterID *string `json:"-" url:"user_cluster_id,omitempty"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDatabasesRequest) SetPage

func (l *ListDatabasesRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDatabasesRequest) SetPageSize

func (l *ListDatabasesRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDatabasesRequest) SetUserClusterID

func (l *ListDatabasesRequest) SetUserClusterID(userClusterID *string)

SetUserClusterID sets the UserClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListDatabasesResponse

type ListDatabasesResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                     `json:"total" url:"total"`
	Data  []*ClusterDetailResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListDatabasesResponse) GetData

func (*ListDatabasesResponse) GetExtraProperties

func (l *ListDatabasesResponse) GetExtraProperties() map[string]interface{}

func (*ListDatabasesResponse) GetTotal

func (l *ListDatabasesResponse) GetTotal() float64

func (*ListDatabasesResponse) MarshalJSON

func (l *ListDatabasesResponse) MarshalJSON() ([]byte, error)

func (*ListDatabasesResponse) SetData

func (l *ListDatabasesResponse) SetData(data []*ClusterDetailResponseDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDatabasesResponse) SetTotal

func (l *ListDatabasesResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListDatabasesResponse) String

func (l *ListDatabasesResponse) String() string

func (*ListDatabasesResponse) UnmarshalJSON

func (l *ListDatabasesResponse) UnmarshalJSON(data []byte) error

type ListEgressRulesRequest

type ListEgressRulesRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListEgressRulesRequest) SetPage

func (l *ListEgressRulesRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListEgressRulesRequest) SetPageSize

func (l *ListEgressRulesRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListEgressRulesResponse

type ListEgressRulesResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                  `json:"total" url:"total"`
	Data  []*EgressRuleResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListEgressRulesResponse) GetData

func (*ListEgressRulesResponse) GetExtraProperties

func (l *ListEgressRulesResponse) GetExtraProperties() map[string]interface{}

func (*ListEgressRulesResponse) GetTotal

func (l *ListEgressRulesResponse) GetTotal() float64

func (*ListEgressRulesResponse) MarshalJSON

func (l *ListEgressRulesResponse) MarshalJSON() ([]byte, error)

func (*ListEgressRulesResponse) SetData

func (l *ListEgressRulesResponse) SetData(data []*EgressRuleResponseDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListEgressRulesResponse) SetTotal

func (l *ListEgressRulesResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListEgressRulesResponse) String

func (l *ListEgressRulesResponse) String() string

func (*ListEgressRulesResponse) UnmarshalJSON

func (l *ListEgressRulesResponse) UnmarshalJSON(data []byte) error

type ListFirewallRulesRequest

type ListFirewallRulesRequest struct {
	// ID of the public IP address
	IpId string `json:"-" url:"-"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFirewallRulesRequest) SetIpId

func (l *ListFirewallRulesRequest) SetIpId(ipId string)

SetIpId sets the IpId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListFirewallRulesRequest) SetPage

func (l *ListFirewallRulesRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListFirewallRulesRequest) SetPageSize

func (l *ListFirewallRulesRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListFirewallRulesResponse

type ListFirewallRulesResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                    `json:"total" url:"total"`
	Data  []*FirewallRuleResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListFirewallRulesResponse) GetData

func (*ListFirewallRulesResponse) GetExtraProperties

func (l *ListFirewallRulesResponse) GetExtraProperties() map[string]interface{}

func (*ListFirewallRulesResponse) GetTotal

func (l *ListFirewallRulesResponse) GetTotal() float64

func (*ListFirewallRulesResponse) MarshalJSON

func (l *ListFirewallRulesResponse) MarshalJSON() ([]byte, error)

func (*ListFirewallRulesResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListFirewallRulesResponse) SetTotal

func (l *ListFirewallRulesResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListFirewallRulesResponse) String

func (l *ListFirewallRulesResponse) String() string

func (*ListFirewallRulesResponse) UnmarshalJSON

func (l *ListFirewallRulesResponse) UnmarshalJSON(data []byte) error

type ListImagesRequest

type ListImagesRequest struct {
	// Filter images by operating system
	Os *string `json:"-" url:"os,omitempty"`
	// Filter images by OS version (used together with os)
	Version *string `json:"-" url:"version,omitempty"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListImagesRequest) SetOs

func (l *ListImagesRequest) SetOs(os *string)

SetOs sets the Os field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListImagesRequest) SetPage

func (l *ListImagesRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListImagesRequest) SetPageSize

func (l *ListImagesRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListImagesRequest) SetVersion

func (l *ListImagesRequest) SetVersion(version *string)

SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListImagesResponse

type ListImagesResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64     `json:"total" url:"total"`
	Data  []*ImageDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListImagesResponse) GetData

func (l *ListImagesResponse) GetData() []*ImageDto

func (*ListImagesResponse) GetExtraProperties

func (l *ListImagesResponse) GetExtraProperties() map[string]interface{}

func (*ListImagesResponse) GetTotal

func (l *ListImagesResponse) GetTotal() float64

func (*ListImagesResponse) MarshalJSON

func (l *ListImagesResponse) MarshalJSON() ([]byte, error)

func (*ListImagesResponse) SetData

func (l *ListImagesResponse) SetData(data []*ImageDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListImagesResponse) SetTotal

func (l *ListImagesResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListImagesResponse) String

func (l *ListImagesResponse) String() string

func (*ListImagesResponse) UnmarshalJSON

func (l *ListImagesResponse) UnmarshalJSON(data []byte) error

type ListInstancesLoadBalancerRulesRequest

type ListInstancesLoadBalancerRulesRequest struct {
	// ID of the load balancer rule
	RuleID string `json:"-" url:"-"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// If true (default), returns assigned VMs. If false, returns VMs available for assignment.
	Applied *bool `json:"-" url:"applied,omitempty"`
	// contains filtered or unexported fields
}

func (*ListInstancesLoadBalancerRulesRequest) SetApplied

func (l *ListInstancesLoadBalancerRulesRequest) SetApplied(applied *bool)

SetApplied sets the Applied field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListInstancesLoadBalancerRulesRequest) SetPage

func (l *ListInstancesLoadBalancerRulesRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListInstancesLoadBalancerRulesRequest) SetPageSize

func (l *ListInstancesLoadBalancerRulesRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListInstancesLoadBalancerRulesRequest) SetRuleID

func (l *ListInstancesLoadBalancerRulesRequest) SetRuleID(ruleID string)

SetRuleID sets the RuleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListInstancesLoadBalancerRulesResponse

type ListInstancesLoadBalancerRulesResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                        `json:"total" url:"total"`
	Data  []*LoadBalancerRuleInstanceDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListInstancesLoadBalancerRulesResponse) GetData

func (*ListInstancesLoadBalancerRulesResponse) GetExtraProperties

func (l *ListInstancesLoadBalancerRulesResponse) GetExtraProperties() map[string]interface{}

func (*ListInstancesLoadBalancerRulesResponse) GetTotal

func (*ListInstancesLoadBalancerRulesResponse) MarshalJSON

func (l *ListInstancesLoadBalancerRulesResponse) MarshalJSON() ([]byte, error)

func (*ListInstancesLoadBalancerRulesResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListInstancesLoadBalancerRulesResponse) SetTotal

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListInstancesLoadBalancerRulesResponse) String

func (*ListInstancesLoadBalancerRulesResponse) UnmarshalJSON

func (l *ListInstancesLoadBalancerRulesResponse) UnmarshalJSON(data []byte) error

type ListIsolatedNetworksRequest

type ListIsolatedNetworksRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListIsolatedNetworksRequest) SetPage

func (l *ListIsolatedNetworksRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListIsolatedNetworksRequest) SetPageSize

func (l *ListIsolatedNetworksRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListIsolatedNetworksResponse

type ListIsolatedNetworksResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                       `json:"total" url:"total"`
	Data  []*IsolatedNetworkResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListIsolatedNetworksResponse) GetData

func (*ListIsolatedNetworksResponse) GetExtraProperties

func (l *ListIsolatedNetworksResponse) GetExtraProperties() map[string]interface{}

func (*ListIsolatedNetworksResponse) GetTotal

func (l *ListIsolatedNetworksResponse) GetTotal() float64

func (*ListIsolatedNetworksResponse) MarshalJSON

func (l *ListIsolatedNetworksResponse) MarshalJSON() ([]byte, error)

func (*ListIsolatedNetworksResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListIsolatedNetworksResponse) SetTotal

func (l *ListIsolatedNetworksResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListIsolatedNetworksResponse) String

func (*ListIsolatedNetworksResponse) UnmarshalJSON

func (l *ListIsolatedNetworksResponse) UnmarshalJSON(data []byte) error

type ListListsByVpcNetworkACLsRequest

type ListListsByVpcNetworkACLsRequest struct {
	// ID of the VPC
	VpcID string `json:"-" url:"-"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListListsByVpcNetworkACLsRequest) SetPage

func (l *ListListsByVpcNetworkACLsRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListListsByVpcNetworkACLsRequest) SetPageSize

func (l *ListListsByVpcNetworkACLsRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListListsByVpcNetworkACLsRequest) SetVpcID

func (l *ListListsByVpcNetworkACLsRequest) SetVpcID(vpcID string)

SetVpcID sets the VpcID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListListsByVpcNetworkACLsResponse

type ListListsByVpcNetworkACLsResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                      `json:"total" url:"total"`
	Data  []*NetworkACLListResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListListsByVpcNetworkACLsResponse) GetData

func (*ListListsByVpcNetworkACLsResponse) GetExtraProperties

func (l *ListListsByVpcNetworkACLsResponse) GetExtraProperties() map[string]interface{}

func (*ListListsByVpcNetworkACLsResponse) GetTotal

func (*ListListsByVpcNetworkACLsResponse) MarshalJSON

func (l *ListListsByVpcNetworkACLsResponse) MarshalJSON() ([]byte, error)

func (*ListListsByVpcNetworkACLsResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListListsByVpcNetworkACLsResponse) SetTotal

func (l *ListListsByVpcNetworkACLsResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListListsByVpcNetworkACLsResponse) String

func (*ListListsByVpcNetworkACLsResponse) UnmarshalJSON

func (l *ListListsByVpcNetworkACLsResponse) UnmarshalJSON(data []byte) error

type ListListsNetworkACLsRequest

type ListListsNetworkACLsRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListListsNetworkACLsRequest) SetPage

func (l *ListListsNetworkACLsRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListListsNetworkACLsRequest) SetPageSize

func (l *ListListsNetworkACLsRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListListsNetworkACLsResponse

type ListListsNetworkACLsResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                      `json:"total" url:"total"`
	Data  []*NetworkACLListResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListListsNetworkACLsResponse) GetData

func (*ListListsNetworkACLsResponse) GetExtraProperties

func (l *ListListsNetworkACLsResponse) GetExtraProperties() map[string]interface{}

func (*ListListsNetworkACLsResponse) GetTotal

func (l *ListListsNetworkACLsResponse) GetTotal() float64

func (*ListListsNetworkACLsResponse) MarshalJSON

func (l *ListListsNetworkACLsResponse) MarshalJSON() ([]byte, error)

func (*ListListsNetworkACLsResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListListsNetworkACLsResponse) SetTotal

func (l *ListListsNetworkACLsResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListListsNetworkACLsResponse) String

func (*ListListsNetworkACLsResponse) UnmarshalJSON

func (l *ListListsNetworkACLsResponse) UnmarshalJSON(data []byte) error

type ListLoadBalancerRulesRequest

type ListLoadBalancerRulesRequest struct {
	// ID of the public IP address
	IpId string `json:"-" url:"-"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLoadBalancerRulesRequest) SetIpId

func (l *ListLoadBalancerRulesRequest) SetIpId(ipId string)

SetIpId sets the IpId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListLoadBalancerRulesRequest) SetPage

func (l *ListLoadBalancerRulesRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListLoadBalancerRulesRequest) SetPageSize

func (l *ListLoadBalancerRulesRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListLoadBalancerRulesResponse

type ListLoadBalancerRulesResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                        `json:"total" url:"total"`
	Data  []*LoadBalancerRuleResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListLoadBalancerRulesResponse) GetData

func (*ListLoadBalancerRulesResponse) GetExtraProperties

func (l *ListLoadBalancerRulesResponse) GetExtraProperties() map[string]interface{}

func (*ListLoadBalancerRulesResponse) GetTotal

func (l *ListLoadBalancerRulesResponse) GetTotal() float64

func (*ListLoadBalancerRulesResponse) MarshalJSON

func (l *ListLoadBalancerRulesResponse) MarshalJSON() ([]byte, error)

func (*ListLoadBalancerRulesResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListLoadBalancerRulesResponse) SetTotal

func (l *ListLoadBalancerRulesResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListLoadBalancerRulesResponse) String

func (*ListLoadBalancerRulesResponse) UnmarshalJSON

func (l *ListLoadBalancerRulesResponse) UnmarshalJSON(data []byte) error

type ListPackagesKubernetesRequest

type ListPackagesKubernetesRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPackagesKubernetesRequest) SetPage

func (l *ListPackagesKubernetesRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListPackagesKubernetesRequest) SetPageSize

func (l *ListPackagesKubernetesRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListPackagesKubernetesResponse

type ListPackagesKubernetesResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                      `json:"total" url:"total"`
	Data  []*KubernetesPackageResponse `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListPackagesKubernetesResponse) GetData

func (*ListPackagesKubernetesResponse) GetExtraProperties

func (l *ListPackagesKubernetesResponse) GetExtraProperties() map[string]interface{}

func (*ListPackagesKubernetesResponse) GetTotal

func (*ListPackagesKubernetesResponse) MarshalJSON

func (l *ListPackagesKubernetesResponse) MarshalJSON() ([]byte, error)

func (*ListPackagesKubernetesResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListPackagesKubernetesResponse) SetTotal

func (l *ListPackagesKubernetesResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListPackagesKubernetesResponse) String

func (*ListPackagesKubernetesResponse) UnmarshalJSON

func (l *ListPackagesKubernetesResponse) UnmarshalJSON(data []byte) error

type ListPackagesWordpressRequest

type ListPackagesWordpressRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPackagesWordpressRequest) SetPage

func (l *ListPackagesWordpressRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListPackagesWordpressRequest) SetPageSize

func (l *ListPackagesWordpressRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListPackagesWordpressResponse

type ListPackagesWordpressResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                `json:"total" url:"total"`
	Data  []*WordPressPackageDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListPackagesWordpressResponse) GetData

func (*ListPackagesWordpressResponse) GetExtraProperties

func (l *ListPackagesWordpressResponse) GetExtraProperties() map[string]interface{}

func (*ListPackagesWordpressResponse) GetTotal

func (l *ListPackagesWordpressResponse) GetTotal() float64

func (*ListPackagesWordpressResponse) MarshalJSON

func (l *ListPackagesWordpressResponse) MarshalJSON() ([]byte, error)

func (*ListPackagesWordpressResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListPackagesWordpressResponse) SetTotal

func (l *ListPackagesWordpressResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListPackagesWordpressResponse) String

func (*ListPackagesWordpressResponse) UnmarshalJSON

func (l *ListPackagesWordpressResponse) UnmarshalJSON(data []byte) error

type ListPortForwardingRequest

type ListPortForwardingRequest struct {
	// ID of the public IP address
	IpId string `json:"-" url:"-"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPortForwardingRequest) SetIpId

func (l *ListPortForwardingRequest) SetIpId(ipId string)

SetIpId sets the IpId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListPortForwardingRequest) SetPage

func (l *ListPortForwardingRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListPortForwardingRequest) SetPageSize

func (l *ListPortForwardingRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListPortForwardingResponse

type ListPortForwardingResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                          `json:"total" url:"total"`
	Data  []*PortForwardingRuleResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListPortForwardingResponse) GetData

func (*ListPortForwardingResponse) GetExtraProperties

func (l *ListPortForwardingResponse) GetExtraProperties() map[string]interface{}

func (*ListPortForwardingResponse) GetTotal

func (l *ListPortForwardingResponse) GetTotal() float64

func (*ListPortForwardingResponse) MarshalJSON

func (l *ListPortForwardingResponse) MarshalJSON() ([]byte, error)

func (*ListPortForwardingResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListPortForwardingResponse) SetTotal

func (l *ListPortForwardingResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListPortForwardingResponse) String

func (l *ListPortForwardingResponse) String() string

func (*ListPortForwardingResponse) UnmarshalJSON

func (l *ListPortForwardingResponse) UnmarshalJSON(data []byte) error

type ListPublicIpsRequest

type ListPublicIpsRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPublicIpsRequest) SetPage

func (l *ListPublicIpsRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListPublicIpsRequest) SetPageSize

func (l *ListPublicIpsRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListPublicIpsResponse

type ListPublicIpsResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                `json:"total" url:"total"`
	Data  []*PublicIPResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListPublicIpsResponse) GetData

func (*ListPublicIpsResponse) GetExtraProperties

func (l *ListPublicIpsResponse) GetExtraProperties() map[string]interface{}

func (*ListPublicIpsResponse) GetTotal

func (l *ListPublicIpsResponse) GetTotal() float64

func (*ListPublicIpsResponse) MarshalJSON

func (l *ListPublicIpsResponse) MarshalJSON() ([]byte, error)

func (*ListPublicIpsResponse) SetData

func (l *ListPublicIpsResponse) SetData(data []*PublicIPResponseDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListPublicIpsResponse) SetTotal

func (l *ListPublicIpsResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListPublicIpsResponse) String

func (l *ListPublicIpsResponse) String() string

func (*ListPublicIpsResponse) UnmarshalJSON

func (l *ListPublicIpsResponse) UnmarshalJSON(data []byte) error

type ListRegionsRequest

type ListRegionsRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRegionsRequest) SetPage

func (l *ListRegionsRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListRegionsRequest) SetPageSize

func (l *ListRegionsRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListRegionsResponse

type ListRegionsResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64      `json:"total" url:"total"`
	Data  []*RegionDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListRegionsResponse) GetData

func (l *ListRegionsResponse) GetData() []*RegionDto

func (*ListRegionsResponse) GetExtraProperties

func (l *ListRegionsResponse) GetExtraProperties() map[string]interface{}

func (*ListRegionsResponse) GetTotal

func (l *ListRegionsResponse) GetTotal() float64

func (*ListRegionsResponse) MarshalJSON

func (l *ListRegionsResponse) MarshalJSON() ([]byte, error)

func (*ListRegionsResponse) SetData

func (l *ListRegionsResponse) SetData(data []*RegionDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListRegionsResponse) SetTotal

func (l *ListRegionsResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListRegionsResponse) String

func (l *ListRegionsResponse) String() string

func (*ListRegionsResponse) UnmarshalJSON

func (l *ListRegionsResponse) UnmarshalJSON(data []byte) error

type ListRulesNetworkACLsRequest

type ListRulesNetworkACLsRequest struct {
	// ID of the Network ACL List
	ListID string `json:"-" url:"-"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRulesNetworkACLsRequest) SetListID

func (l *ListRulesNetworkACLsRequest) SetListID(listID string)

SetListID sets the ListID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListRulesNetworkACLsRequest) SetPage

func (l *ListRulesNetworkACLsRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListRulesNetworkACLsRequest) SetPageSize

func (l *ListRulesNetworkACLsRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListRulesNetworkACLsResponse

type ListRulesNetworkACLsResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                      `json:"total" url:"total"`
	Data  []*NetworkACLRuleResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListRulesNetworkACLsResponse) GetData

func (*ListRulesNetworkACLsResponse) GetExtraProperties

func (l *ListRulesNetworkACLsResponse) GetExtraProperties() map[string]interface{}

func (*ListRulesNetworkACLsResponse) GetTotal

func (l *ListRulesNetworkACLsResponse) GetTotal() float64

func (*ListRulesNetworkACLsResponse) MarshalJSON

func (l *ListRulesNetworkACLsResponse) MarshalJSON() ([]byte, error)

func (*ListRulesNetworkACLsResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListRulesNetworkACLsResponse) SetTotal

func (l *ListRulesNetworkACLsResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListRulesNetworkACLsResponse) String

func (*ListRulesNetworkACLsResponse) UnmarshalJSON

func (l *ListRulesNetworkACLsResponse) UnmarshalJSON(data []byte) error

type ListSSHKeysRequest

type ListSSHKeysRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSSHKeysRequest) SetPage

func (l *ListSSHKeysRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListSSHKeysRequest) SetPageSize

func (l *ListSSHKeysRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListSSHKeysResponse

type ListSSHKeysResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64              `json:"total" url:"total"`
	Data  []*SSHKeyListItemDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListSSHKeysResponse) GetData

func (l *ListSSHKeysResponse) GetData() []*SSHKeyListItemDto

func (*ListSSHKeysResponse) GetExtraProperties

func (l *ListSSHKeysResponse) GetExtraProperties() map[string]interface{}

func (*ListSSHKeysResponse) GetTotal

func (l *ListSSHKeysResponse) GetTotal() float64

func (*ListSSHKeysResponse) MarshalJSON

func (l *ListSSHKeysResponse) MarshalJSON() ([]byte, error)

func (*ListSSHKeysResponse) SetData

func (l *ListSSHKeysResponse) SetData(data []*SSHKeyListItemDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListSSHKeysResponse) SetTotal

func (l *ListSSHKeysResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListSSHKeysResponse) String

func (l *ListSSHKeysResponse) String() string

func (*ListSSHKeysResponse) UnmarshalJSON

func (l *ListSSHKeysResponse) UnmarshalJSON(data []byte) error

type ListSnapshotsBlockStorageRequest

type ListSnapshotsBlockStorageRequest struct {
	// Volume ID
	ID string `json:"-" url:"-"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSnapshotsBlockStorageRequest) SetID

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListSnapshotsBlockStorageRequest) SetPage

func (l *ListSnapshotsBlockStorageRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListSnapshotsBlockStorageRequest) SetPageSize

func (l *ListSnapshotsBlockStorageRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListSnapshotsBlockStorageResponse

type ListSnapshotsBlockStorageResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                `json:"total" url:"total"`
	Data  []*SnapshotResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListSnapshotsBlockStorageResponse) GetData

func (*ListSnapshotsBlockStorageResponse) GetExtraProperties

func (l *ListSnapshotsBlockStorageResponse) GetExtraProperties() map[string]interface{}

func (*ListSnapshotsBlockStorageResponse) GetTotal

func (*ListSnapshotsBlockStorageResponse) MarshalJSON

func (l *ListSnapshotsBlockStorageResponse) MarshalJSON() ([]byte, error)

func (*ListSnapshotsBlockStorageResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListSnapshotsBlockStorageResponse) SetTotal

func (l *ListSnapshotsBlockStorageResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListSnapshotsBlockStorageResponse) String

func (*ListSnapshotsBlockStorageResponse) UnmarshalJSON

func (l *ListSnapshotsBlockStorageResponse) UnmarshalJSON(data []byte) error

type ListSnapshotsRequest

type ListSnapshotsRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSnapshotsRequest) SetPage

func (l *ListSnapshotsRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListSnapshotsRequest) SetPageSize

func (l *ListSnapshotsRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListSnapshotsResponse

type ListSnapshotsResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                `json:"total" url:"total"`
	Data  []*SnapshotResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListSnapshotsResponse) GetData

func (*ListSnapshotsResponse) GetExtraProperties

func (l *ListSnapshotsResponse) GetExtraProperties() map[string]interface{}

func (*ListSnapshotsResponse) GetTotal

func (l *ListSnapshotsResponse) GetTotal() float64

func (*ListSnapshotsResponse) MarshalJSON

func (l *ListSnapshotsResponse) MarshalJSON() ([]byte, error)

func (*ListSnapshotsResponse) SetData

func (l *ListSnapshotsResponse) SetData(data []*SnapshotResponseDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListSnapshotsResponse) SetTotal

func (l *ListSnapshotsResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListSnapshotsResponse) String

func (l *ListSnapshotsResponse) String() string

func (*ListSnapshotsResponse) UnmarshalJSON

func (l *ListSnapshotsResponse) UnmarshalJSON(data []byte) error

type ListUnitsObjectStorageRequest

type ListUnitsObjectStorageRequest struct {
	// Include latest usage report for each storage unit
	Usage *bool `json:"-" url:"usage,omitempty"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUnitsObjectStorageRequest) SetPage

func (l *ListUnitsObjectStorageRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListUnitsObjectStorageRequest) SetPageSize

func (l *ListUnitsObjectStorageRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListUnitsObjectStorageRequest) SetUsage

func (l *ListUnitsObjectStorageRequest) SetUsage(usage *bool)

SetUsage sets the Usage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListUnitsObjectStorageResponse

type ListUnitsObjectStorageResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                 `json:"total" url:"total"`
	Data  []*ObjectStorageUnitDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListUnitsObjectStorageResponse) GetData

func (*ListUnitsObjectStorageResponse) GetExtraProperties

func (l *ListUnitsObjectStorageResponse) GetExtraProperties() map[string]interface{}

func (*ListUnitsObjectStorageResponse) GetTotal

func (*ListUnitsObjectStorageResponse) MarshalJSON

func (l *ListUnitsObjectStorageResponse) MarshalJSON() ([]byte, error)

func (*ListUnitsObjectStorageResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListUnitsObjectStorageResponse) SetTotal

func (l *ListUnitsObjectStorageResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListUnitsObjectStorageResponse) String

func (*ListUnitsObjectStorageResponse) UnmarshalJSON

func (l *ListUnitsObjectStorageResponse) UnmarshalJSON(data []byte) error

type ListUpgradePackagesWordpressRequest

type ListUpgradePackagesWordpressRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUpgradePackagesWordpressRequest) SetPage

func (l *ListUpgradePackagesWordpressRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListUpgradePackagesWordpressRequest) SetPageSize

func (l *ListUpgradePackagesWordpressRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListUpgradePackagesWordpressResponse

type ListUpgradePackagesWordpressResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                `json:"total" url:"total"`
	Data  []*WordPressPackageDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListUpgradePackagesWordpressResponse) GetData

func (*ListUpgradePackagesWordpressResponse) GetExtraProperties

func (l *ListUpgradePackagesWordpressResponse) GetExtraProperties() map[string]interface{}

func (*ListUpgradePackagesWordpressResponse) GetTotal

func (*ListUpgradePackagesWordpressResponse) MarshalJSON

func (l *ListUpgradePackagesWordpressResponse) MarshalJSON() ([]byte, error)

func (*ListUpgradePackagesWordpressResponse) SetData

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListUpgradePackagesWordpressResponse) SetTotal

func (l *ListUpgradePackagesWordpressResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListUpgradePackagesWordpressResponse) String

func (*ListUpgradePackagesWordpressResponse) UnmarshalJSON

func (l *ListUpgradePackagesWordpressResponse) UnmarshalJSON(data []byte) error

type ListVMPackagesRequest

type ListVMPackagesRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVMPackagesRequest) SetPage

func (l *ListVMPackagesRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListVMPackagesRequest) SetPageSize

func (l *ListVMPackagesRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListVMPackagesResponse

type ListVMPackagesResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64         `json:"total" url:"total"`
	Data  []*VMPackageDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListVMPackagesResponse) GetData

func (l *ListVMPackagesResponse) GetData() []*VMPackageDto

func (*ListVMPackagesResponse) GetExtraProperties

func (l *ListVMPackagesResponse) GetExtraProperties() map[string]interface{}

func (*ListVMPackagesResponse) GetTotal

func (l *ListVMPackagesResponse) GetTotal() float64

func (*ListVMPackagesResponse) MarshalJSON

func (l *ListVMPackagesResponse) MarshalJSON() ([]byte, error)

func (*ListVMPackagesResponse) SetData

func (l *ListVMPackagesResponse) SetData(data []*VMPackageDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListVMPackagesResponse) SetTotal

func (l *ListVMPackagesResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListVMPackagesResponse) String

func (l *ListVMPackagesResponse) String() string

func (*ListVMPackagesResponse) UnmarshalJSON

func (l *ListVMPackagesResponse) UnmarshalJSON(data []byte) error

type ListVersionsKubernetesRequest

type ListVersionsKubernetesRequest struct {
	// Current cluster version to filter upgradeable versions from
	CurrentVersion *string `json:"-" url:"current_version,omitempty"`
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVersionsKubernetesRequest) SetCurrentVersion

func (l *ListVersionsKubernetesRequest) SetCurrentVersion(currentVersion *string)

SetCurrentVersion sets the CurrentVersion field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListVersionsKubernetesRequest) SetPage

func (l *ListVersionsKubernetesRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListVersionsKubernetesRequest) SetPageSize

func (l *ListVersionsKubernetesRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListVersionsKubernetesResponse

type ListVersionsKubernetesResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64  `json:"total" url:"total"`
	Data  []string `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListVersionsKubernetesResponse) GetData

func (l *ListVersionsKubernetesResponse) GetData() []string

func (*ListVersionsKubernetesResponse) GetExtraProperties

func (l *ListVersionsKubernetesResponse) GetExtraProperties() map[string]interface{}

func (*ListVersionsKubernetesResponse) GetTotal

func (*ListVersionsKubernetesResponse) MarshalJSON

func (l *ListVersionsKubernetesResponse) MarshalJSON() ([]byte, error)

func (*ListVersionsKubernetesResponse) SetData

func (l *ListVersionsKubernetesResponse) SetData(data []string)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListVersionsKubernetesResponse) SetTotal

func (l *ListVersionsKubernetesResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListVersionsKubernetesResponse) String

func (*ListVersionsKubernetesResponse) UnmarshalJSON

func (l *ListVersionsKubernetesResponse) UnmarshalJSON(data []byte) error

type ListVmsRequest

type ListVmsRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVmsRequest) SetPage

func (l *ListVmsRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListVmsRequest) SetPageSize

func (l *ListVmsRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListVmsResponse

type ListVmsResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64          `json:"total" url:"total"`
	Data  []*VMResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListVmsResponse) GetData

func (l *ListVmsResponse) GetData() []*VMResponseDto

func (*ListVmsResponse) GetExtraProperties

func (l *ListVmsResponse) GetExtraProperties() map[string]interface{}

func (*ListVmsResponse) GetTotal

func (l *ListVmsResponse) GetTotal() float64

func (*ListVmsResponse) MarshalJSON

func (l *ListVmsResponse) MarshalJSON() ([]byte, error)

func (*ListVmsResponse) SetData

func (l *ListVmsResponse) SetData(data []*VMResponseDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListVmsResponse) SetTotal

func (l *ListVmsResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListVmsResponse) String

func (l *ListVmsResponse) String() string

func (*ListVmsResponse) UnmarshalJSON

func (l *ListVmsResponse) UnmarshalJSON(data []byte) error

type ListVpcNetworksRequest

type ListVpcNetworksRequest struct {
	// Page number, 1-indexed. Defaults to 1 when omitted.
	Page *int `json:"-" url:"page,omitempty"`
	// Items per page. Defaults to 100 when omitted; server cap 500.
	PageSize *int `json:"-" url:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVpcNetworksRequest) SetPage

func (l *ListVpcNetworksRequest) SetPage(page *int)

SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListVpcNetworksRequest) SetPageSize

func (l *ListVpcNetworksRequest) SetPageSize(pageSize *int)

SetPageSize sets the PageSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ListVpcNetworksResponse

type ListVpcNetworksResponse struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64                  `json:"total" url:"total"`
	Data  []*VpcNetworkResponseDto `json:"data" url:"data"`
	// contains filtered or unexported fields
}

func (*ListVpcNetworksResponse) GetData

func (*ListVpcNetworksResponse) GetExtraProperties

func (l *ListVpcNetworksResponse) GetExtraProperties() map[string]interface{}

func (*ListVpcNetworksResponse) GetTotal

func (l *ListVpcNetworksResponse) GetTotal() float64

func (*ListVpcNetworksResponse) MarshalJSON

func (l *ListVpcNetworksResponse) MarshalJSON() ([]byte, error)

func (*ListVpcNetworksResponse) SetData

func (l *ListVpcNetworksResponse) SetData(data []*VpcNetworkResponseDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListVpcNetworksResponse) SetTotal

func (l *ListVpcNetworksResponse) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ListVpcNetworksResponse) String

func (l *ListVpcNetworksResponse) String() string

func (*ListVpcNetworksResponse) UnmarshalJSON

func (l *ListVpcNetworksResponse) UnmarshalJSON(data []byte) error

type LoadBalancerRuleInstanceDto

type LoadBalancerRuleInstanceDto struct {
	// Identifier of the backend virtual machine.
	ID string `json:"id" url:"id"`
	// Name of the backend virtual machine.
	Name string `json:"name" url:"name"`
	// Current lifecycle state of the backend virtual machine.
	State string `json:"state" url:"state"`
	// contains filtered or unexported fields
}

func (*LoadBalancerRuleInstanceDto) GetExtraProperties

func (l *LoadBalancerRuleInstanceDto) GetExtraProperties() map[string]interface{}

func (*LoadBalancerRuleInstanceDto) GetID

func (*LoadBalancerRuleInstanceDto) GetName

func (l *LoadBalancerRuleInstanceDto) GetName() string

func (*LoadBalancerRuleInstanceDto) GetState

func (l *LoadBalancerRuleInstanceDto) GetState() string

func (*LoadBalancerRuleInstanceDto) MarshalJSON

func (l *LoadBalancerRuleInstanceDto) MarshalJSON() ([]byte, error)

func (*LoadBalancerRuleInstanceDto) SetID

func (l *LoadBalancerRuleInstanceDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LoadBalancerRuleInstanceDto) SetName

func (l *LoadBalancerRuleInstanceDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LoadBalancerRuleInstanceDto) SetState

func (l *LoadBalancerRuleInstanceDto) SetState(state string)

SetState sets the State field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LoadBalancerRuleInstanceDto) String

func (l *LoadBalancerRuleInstanceDto) String() string

func (*LoadBalancerRuleInstanceDto) UnmarshalJSON

func (l *LoadBalancerRuleInstanceDto) UnmarshalJSON(data []byte) error

type LoadBalancerRuleResponseDto

type LoadBalancerRuleResponseDto struct {
	// Unique identifier for the load balancer rule.
	ID string `json:"id" url:"id"`
	// Human-readable name for the rule.
	Name string `json:"name" url:"name"`
	// Public port the load balancer listens on.
	PublicPort int `json:"publicPort" url:"publicPort"`
	// Port on the backend VMs that traffic is forwarded to.
	PrivatePort int `json:"privatePort" url:"privatePort"`
	// Algorithm used to distribute traffic across the backend VMs.
	Algorithm string `json:"algorithm" url:"algorithm"`
	// Protocol the load balancer accepts.
	Protocol string `json:"protocol" url:"protocol"`
	// Current lifecycle state of the rule.
	State string `json:"state" url:"state"`
	// Identifier of the public IP the rule is attached to.
	IPAddressID string `json:"ipAddressId" url:"ipAddressId"`
	// Public IP address the rule is attached to.
	IPAddress string `json:"ipAddress" url:"ipAddress"`
	// Identifier of the network the rule is associated with.
	NetworkID string `json:"networkId" url:"networkId"`
	// Source CIDR allowed to reach the load balancer.
	SourceCidrList *string `json:"sourceCidrList,omitempty" url:"sourceCidrList,omitempty"`
	// When the rule was created.
	CreatedAt *time.Time `json:"createdAt,omitempty" url:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (*LoadBalancerRuleResponseDto) GetAlgorithm

func (l *LoadBalancerRuleResponseDto) GetAlgorithm() string

func (*LoadBalancerRuleResponseDto) GetCreatedAt

func (l *LoadBalancerRuleResponseDto) GetCreatedAt() *time.Time

func (*LoadBalancerRuleResponseDto) GetExtraProperties

func (l *LoadBalancerRuleResponseDto) GetExtraProperties() map[string]interface{}

func (*LoadBalancerRuleResponseDto) GetID

func (*LoadBalancerRuleResponseDto) GetIPAddress

func (l *LoadBalancerRuleResponseDto) GetIPAddress() string

func (*LoadBalancerRuleResponseDto) GetIPAddressID

func (l *LoadBalancerRuleResponseDto) GetIPAddressID() string

func (*LoadBalancerRuleResponseDto) GetName

func (l *LoadBalancerRuleResponseDto) GetName() string

func (*LoadBalancerRuleResponseDto) GetNetworkID

func (l *LoadBalancerRuleResponseDto) GetNetworkID() string

func (*LoadBalancerRuleResponseDto) GetPrivatePort

func (l *LoadBalancerRuleResponseDto) GetPrivatePort() int

func (*LoadBalancerRuleResponseDto) GetProtocol

func (l *LoadBalancerRuleResponseDto) GetProtocol() string

func (*LoadBalancerRuleResponseDto) GetPublicPort

func (l *LoadBalancerRuleResponseDto) GetPublicPort() int

func (*LoadBalancerRuleResponseDto) GetSourceCidrList

func (l *LoadBalancerRuleResponseDto) GetSourceCidrList() *string

func (*LoadBalancerRuleResponseDto) GetState

func (l *LoadBalancerRuleResponseDto) GetState() string

func (*LoadBalancerRuleResponseDto) MarshalJSON

func (l *LoadBalancerRuleResponseDto) MarshalJSON() ([]byte, error)

func (*LoadBalancerRuleResponseDto) SetAlgorithm

func (l *LoadBalancerRuleResponseDto) SetAlgorithm(algorithm string)

SetAlgorithm sets the Algorithm field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LoadBalancerRuleResponseDto) SetCreatedAt

func (l *LoadBalancerRuleResponseDto) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LoadBalancerRuleResponseDto) SetID

func (l *LoadBalancerRuleResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LoadBalancerRuleResponseDto) SetIPAddress

func (l *LoadBalancerRuleResponseDto) SetIPAddress(ipAddress string)

SetIPAddress sets the IPAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LoadBalancerRuleResponseDto) SetIPAddressID

func (l *LoadBalancerRuleResponseDto) SetIPAddressID(ipAddressID string)

SetIPAddressID sets the IPAddressID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LoadBalancerRuleResponseDto) SetName

func (l *LoadBalancerRuleResponseDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LoadBalancerRuleResponseDto) SetNetworkID

func (l *LoadBalancerRuleResponseDto) SetNetworkID(networkID string)

SetNetworkID sets the NetworkID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LoadBalancerRuleResponseDto) SetPrivatePort

func (l *LoadBalancerRuleResponseDto) SetPrivatePort(privatePort int)

SetPrivatePort sets the PrivatePort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LoadBalancerRuleResponseDto) SetProtocol

func (l *LoadBalancerRuleResponseDto) SetProtocol(protocol string)

SetProtocol sets the Protocol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LoadBalancerRuleResponseDto) SetPublicPort

func (l *LoadBalancerRuleResponseDto) SetPublicPort(publicPort int)

SetPublicPort sets the PublicPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LoadBalancerRuleResponseDto) SetSourceCidrList

func (l *LoadBalancerRuleResponseDto) SetSourceCidrList(sourceCidrList *string)

SetSourceCidrList sets the SourceCidrList field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LoadBalancerRuleResponseDto) SetState

func (l *LoadBalancerRuleResponseDto) SetState(state string)

SetState sets the State field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*LoadBalancerRuleResponseDto) String

func (l *LoadBalancerRuleResponseDto) String() string

func (*LoadBalancerRuleResponseDto) UnmarshalJSON

func (l *LoadBalancerRuleResponseDto) UnmarshalJSON(data []byte) error

type MarketplaceAppDto

type MarketplaceAppDto struct {
	// Marketplace app slug (URL-safe identifier)
	Label string `json:"label" url:"label"`
	// Marketplace app display name
	Name string `json:"name" url:"name"`
	// Link to the app's docs page. May be null if not configured.
	DocsURL *string `json:"docsUrl,omitempty" url:"docsUrl,omitempty"`
	// contains filtered or unexported fields
}

func (*MarketplaceAppDto) GetDocsURL

func (m *MarketplaceAppDto) GetDocsURL() *string

func (*MarketplaceAppDto) GetExtraProperties

func (m *MarketplaceAppDto) GetExtraProperties() map[string]interface{}

func (*MarketplaceAppDto) GetLabel

func (m *MarketplaceAppDto) GetLabel() string

func (*MarketplaceAppDto) GetName

func (m *MarketplaceAppDto) GetName() string

func (*MarketplaceAppDto) MarshalJSON

func (m *MarketplaceAppDto) MarshalJSON() ([]byte, error)

func (*MarketplaceAppDto) SetDocsURL

func (m *MarketplaceAppDto) SetDocsURL(docsURL *string)

SetDocsURL sets the DocsURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MarketplaceAppDto) SetLabel

func (m *MarketplaceAppDto) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MarketplaceAppDto) SetName

func (m *MarketplaceAppDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MarketplaceAppDto) String

func (m *MarketplaceAppDto) String() string

func (*MarketplaceAppDto) UnmarshalJSON

func (m *MarketplaceAppDto) UnmarshalJSON(data []byte) error

type MaxInstancesDto

type MaxInstancesDto struct {
	// Whether the operation succeeded.
	Success bool `json:"success" url:"success"`
	// Maximum number of WordPress instances the account may create.
	MaxInstances *float64 `json:"maxInstances,omitempty" url:"maxInstances,omitempty"`
	// Error message describing why the operation failed.
	Message *string `json:"message,omitempty" url:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MaxInstancesDto) GetExtraProperties

func (m *MaxInstancesDto) GetExtraProperties() map[string]interface{}

func (*MaxInstancesDto) GetMaxInstances

func (m *MaxInstancesDto) GetMaxInstances() *float64

func (*MaxInstancesDto) GetMessage

func (m *MaxInstancesDto) GetMessage() *string

func (*MaxInstancesDto) GetSuccess

func (m *MaxInstancesDto) GetSuccess() bool

func (*MaxInstancesDto) MarshalJSON

func (m *MaxInstancesDto) MarshalJSON() ([]byte, error)

func (*MaxInstancesDto) SetMaxInstances

func (m *MaxInstancesDto) SetMaxInstances(maxInstances *float64)

SetMaxInstances sets the MaxInstances field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MaxInstancesDto) SetMessage

func (m *MaxInstancesDto) SetMessage(message *string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MaxInstancesDto) SetSuccess

func (m *MaxInstancesDto) SetSuccess(success bool)

SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*MaxInstancesDto) String

func (m *MaxInstancesDto) String() string

func (*MaxInstancesDto) UnmarshalJSON

func (m *MaxInstancesDto) UnmarshalJSON(data []byte) error

type ModifyBackupScheduleRequestDto

type ModifyBackupScheduleRequestDto struct {
	// Name of the schedule group being modified.
	ScheduleName string `json:"scheduleName" url:"scheduleName"`
	// Backup policy these schedules will be applied to.
	BackupPolicyName string `json:"backupPolicyName" url:"backupPolicyName"`
	// Schedule entries that make up the policy.
	Schedules []*BackupScheduleItemDto `json:"schedules" url:"schedules"`
	// Whether point-in-time recovery is enabled for the cluster.
	PitrEnabled bool `json:"pitrEnabled" url:"pitrEnabled"`
	// contains filtered or unexported fields
}

func (*ModifyBackupScheduleRequestDto) GetBackupPolicyName

func (m *ModifyBackupScheduleRequestDto) GetBackupPolicyName() string

func (*ModifyBackupScheduleRequestDto) GetExtraProperties

func (m *ModifyBackupScheduleRequestDto) GetExtraProperties() map[string]interface{}

func (*ModifyBackupScheduleRequestDto) GetPitrEnabled

func (m *ModifyBackupScheduleRequestDto) GetPitrEnabled() bool

func (*ModifyBackupScheduleRequestDto) GetScheduleName

func (m *ModifyBackupScheduleRequestDto) GetScheduleName() string

func (*ModifyBackupScheduleRequestDto) GetSchedules

func (*ModifyBackupScheduleRequestDto) MarshalJSON

func (m *ModifyBackupScheduleRequestDto) MarshalJSON() ([]byte, error)

func (*ModifyBackupScheduleRequestDto) SetBackupPolicyName

func (m *ModifyBackupScheduleRequestDto) SetBackupPolicyName(backupPolicyName string)

SetBackupPolicyName sets the BackupPolicyName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ModifyBackupScheduleRequestDto) SetPitrEnabled

func (m *ModifyBackupScheduleRequestDto) SetPitrEnabled(pitrEnabled bool)

SetPitrEnabled sets the PitrEnabled field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ModifyBackupScheduleRequestDto) SetScheduleName

func (m *ModifyBackupScheduleRequestDto) SetScheduleName(scheduleName string)

SetScheduleName sets the ScheduleName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ModifyBackupScheduleRequestDto) SetSchedules

func (m *ModifyBackupScheduleRequestDto) SetSchedules(schedules []*BackupScheduleItemDto)

SetSchedules sets the Schedules field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ModifyBackupScheduleRequestDto) String

func (*ModifyBackupScheduleRequestDto) UnmarshalJSON

func (m *ModifyBackupScheduleRequestDto) UnmarshalJSON(data []byte) error

type ModifyLoadBalancerDatabasesRequestType

type ModifyLoadBalancerDatabasesRequestType string
const (
	ModifyLoadBalancerDatabasesRequestTypePublic  ModifyLoadBalancerDatabasesRequestType = "public"
	ModifyLoadBalancerDatabasesRequestTypePrivate ModifyLoadBalancerDatabasesRequestType = "private"
)

func NewModifyLoadBalancerDatabasesRequestTypeFromString

func NewModifyLoadBalancerDatabasesRequestTypeFromString(s string) (ModifyLoadBalancerDatabasesRequestType, error)

func (ModifyLoadBalancerDatabasesRequestType) Ptr

type ModifyLoadBalancerRequestDto

type ModifyLoadBalancerRequestDto struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// Load balancer type
	Type ModifyLoadBalancerDatabasesRequestType `json:"-" url:"-"`
	// CIDR range allowed to reach the load balancer.
	Cidr *string `json:"cidr,omitempty" url:"-"`
	// Pre-allocated private IP address for the load balancer.
	LoadBalancerIP *string `json:"loadBalancerIP,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*ModifyLoadBalancerRequestDto) MarshalJSON

func (m *ModifyLoadBalancerRequestDto) MarshalJSON() ([]byte, error)

func (*ModifyLoadBalancerRequestDto) SetCidr

func (m *ModifyLoadBalancerRequestDto) SetCidr(cidr *string)

SetCidr sets the Cidr field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ModifyLoadBalancerRequestDto) SetClusterID

func (m *ModifyLoadBalancerRequestDto) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ModifyLoadBalancerRequestDto) SetLoadBalancerIP

func (m *ModifyLoadBalancerRequestDto) SetLoadBalancerIP(loadBalancerIP *string)

SetLoadBalancerIP sets the LoadBalancerIP field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ModifyLoadBalancerRequestDto) SetType

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ModifyLoadBalancerRequestDto) UnmarshalJSON

func (m *ModifyLoadBalancerRequestDto) UnmarshalJSON(data []byte) error

type NameserversDto

type NameserversDto struct {
	// Whether the operation succeeded.
	Success bool `json:"success" url:"success"`
	// Authoritative nameserver hostnames for the WordPress site.
	Nameservers []string `json:"nameservers,omitempty" url:"nameservers,omitempty"`
	// Error message describing why the operation failed.
	Message *string `json:"message,omitempty" url:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*NameserversDto) GetExtraProperties

func (n *NameserversDto) GetExtraProperties() map[string]interface{}

func (*NameserversDto) GetMessage

func (n *NameserversDto) GetMessage() *string

func (*NameserversDto) GetNameservers

func (n *NameserversDto) GetNameservers() []string

func (*NameserversDto) GetSuccess

func (n *NameserversDto) GetSuccess() bool

func (*NameserversDto) MarshalJSON

func (n *NameserversDto) MarshalJSON() ([]byte, error)

func (*NameserversDto) SetMessage

func (n *NameserversDto) SetMessage(message *string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NameserversDto) SetNameservers

func (n *NameserversDto) SetNameservers(nameservers []string)

SetNameservers sets the Nameservers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NameserversDto) SetSuccess

func (n *NameserversDto) SetSuccess(success bool)

SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NameserversDto) String

func (n *NameserversDto) String() string

func (*NameserversDto) UnmarshalJSON

func (n *NameserversDto) UnmarshalJSON(data []byte) error

type NetworkACLListResponseDto

type NetworkACLListResponseDto struct {
	// Unique identifier for the ACL list.
	ID string `json:"id" url:"id"`
	// Human-readable name for the ACL list.
	Name string `json:"name" url:"name"`
	// Free-form description of the ACL list.
	Description *string `json:"description,omitempty" url:"description,omitempty"`
	// Identifier of the parent VPC the ACL list belongs to. Absent for the account-wide default lists (`default_allow`, `default_deny`).
	VpcID *string `json:"vpcId,omitempty" url:"vpcId,omitempty"`
	// When the ACL list was created.
	CreatedAt *time.Time `json:"createdAt,omitempty" url:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkACLListResponseDto) GetCreatedAt

func (n *NetworkACLListResponseDto) GetCreatedAt() *time.Time

func (*NetworkACLListResponseDto) GetDescription

func (n *NetworkACLListResponseDto) GetDescription() *string

func (*NetworkACLListResponseDto) GetExtraProperties

func (n *NetworkACLListResponseDto) GetExtraProperties() map[string]interface{}

func (*NetworkACLListResponseDto) GetID

func (n *NetworkACLListResponseDto) GetID() string

func (*NetworkACLListResponseDto) GetName

func (n *NetworkACLListResponseDto) GetName() string

func (*NetworkACLListResponseDto) GetVpcID

func (n *NetworkACLListResponseDto) GetVpcID() *string

func (*NetworkACLListResponseDto) MarshalJSON

func (n *NetworkACLListResponseDto) MarshalJSON() ([]byte, error)

func (*NetworkACLListResponseDto) SetCreatedAt

func (n *NetworkACLListResponseDto) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLListResponseDto) SetDescription

func (n *NetworkACLListResponseDto) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLListResponseDto) SetID

func (n *NetworkACLListResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLListResponseDto) SetName

func (n *NetworkACLListResponseDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLListResponseDto) SetVpcID

func (n *NetworkACLListResponseDto) SetVpcID(vpcID *string)

SetVpcID sets the VpcID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLListResponseDto) String

func (n *NetworkACLListResponseDto) String() string

func (*NetworkACLListResponseDto) UnmarshalJSON

func (n *NetworkACLListResponseDto) UnmarshalJSON(data []byte) error

type NetworkACLRuleResponseDto

type NetworkACLRuleResponseDto struct {
	// Unique identifier for the ACL rule.
	ID string `json:"id" url:"id"`
	// Identifier of the ACL list the rule belongs to.
	ACLListID string `json:"aclListId" url:"aclListId"`
	// Rule number. Determines evaluation order within the ACL list.
	Number int `json:"number" url:"number"`
	// Protocol the rule applies to. One of `TCP`, `UDP`, `ICMP`, or `ALL`.
	Protocol string `json:"protocol" url:"protocol"`
	// Remote CIDR — source CIDR for `Ingress` rules, destination CIDR for `Egress` rules.
	CidrList string `json:"cidrList" url:"cidrList"`
	// Whether matching traffic is allowed or denied.
	Action string `json:"action" url:"action"`
	// Direction of traffic the rule applies to.
	TrafficType string `json:"trafficType" url:"trafficType"`
	// Start of the port range. Used for `TCP` and `UDP` protocols.
	StartPort *int `json:"startPort,omitempty" url:"startPort,omitempty"`
	// End of the port range. Used for `TCP` and `UDP` protocols.
	EndPort *int `json:"endPort,omitempty" url:"endPort,omitempty"`
	// ICMP message type. Used for the `ICMP` protocol.
	IcmpType *int `json:"icmpType,omitempty" url:"icmpType,omitempty"`
	// ICMP message code. Used for the `ICMP` protocol.
	IcmpCode *int `json:"icmpCode,omitempty" url:"icmpCode,omitempty"`
	// When the rule was created.
	CreatedAt *time.Time `json:"createdAt,omitempty" url:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkACLRuleResponseDto) GetACLListID

func (n *NetworkACLRuleResponseDto) GetACLListID() string

func (*NetworkACLRuleResponseDto) GetAction

func (n *NetworkACLRuleResponseDto) GetAction() string

func (*NetworkACLRuleResponseDto) GetCidrList

func (n *NetworkACLRuleResponseDto) GetCidrList() string

func (*NetworkACLRuleResponseDto) GetCreatedAt

func (n *NetworkACLRuleResponseDto) GetCreatedAt() *time.Time

func (*NetworkACLRuleResponseDto) GetEndPort

func (n *NetworkACLRuleResponseDto) GetEndPort() *int

func (*NetworkACLRuleResponseDto) GetExtraProperties

func (n *NetworkACLRuleResponseDto) GetExtraProperties() map[string]interface{}

func (*NetworkACLRuleResponseDto) GetID

func (n *NetworkACLRuleResponseDto) GetID() string

func (*NetworkACLRuleResponseDto) GetIcmpCode

func (n *NetworkACLRuleResponseDto) GetIcmpCode() *int

func (*NetworkACLRuleResponseDto) GetIcmpType

func (n *NetworkACLRuleResponseDto) GetIcmpType() *int

func (*NetworkACLRuleResponseDto) GetNumber

func (n *NetworkACLRuleResponseDto) GetNumber() int

func (*NetworkACLRuleResponseDto) GetProtocol

func (n *NetworkACLRuleResponseDto) GetProtocol() string

func (*NetworkACLRuleResponseDto) GetStartPort

func (n *NetworkACLRuleResponseDto) GetStartPort() *int

func (*NetworkACLRuleResponseDto) GetTrafficType

func (n *NetworkACLRuleResponseDto) GetTrafficType() string

func (*NetworkACLRuleResponseDto) MarshalJSON

func (n *NetworkACLRuleResponseDto) MarshalJSON() ([]byte, error)

func (*NetworkACLRuleResponseDto) SetACLListID

func (n *NetworkACLRuleResponseDto) SetACLListID(aclListID string)

SetACLListID sets the ACLListID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLRuleResponseDto) SetAction

func (n *NetworkACLRuleResponseDto) SetAction(action string)

SetAction sets the Action field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLRuleResponseDto) SetCidrList

func (n *NetworkACLRuleResponseDto) SetCidrList(cidrList string)

SetCidrList sets the CidrList field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLRuleResponseDto) SetCreatedAt

func (n *NetworkACLRuleResponseDto) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLRuleResponseDto) SetEndPort

func (n *NetworkACLRuleResponseDto) SetEndPort(endPort *int)

SetEndPort sets the EndPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLRuleResponseDto) SetID

func (n *NetworkACLRuleResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLRuleResponseDto) SetIcmpCode

func (n *NetworkACLRuleResponseDto) SetIcmpCode(icmpCode *int)

SetIcmpCode sets the IcmpCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLRuleResponseDto) SetIcmpType

func (n *NetworkACLRuleResponseDto) SetIcmpType(icmpType *int)

SetIcmpType sets the IcmpType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLRuleResponseDto) SetNumber

func (n *NetworkACLRuleResponseDto) SetNumber(number int)

SetNumber sets the Number field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLRuleResponseDto) SetProtocol

func (n *NetworkACLRuleResponseDto) SetProtocol(protocol string)

SetProtocol sets the Protocol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLRuleResponseDto) SetStartPort

func (n *NetworkACLRuleResponseDto) SetStartPort(startPort *int)

SetStartPort sets the StartPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLRuleResponseDto) SetTrafficType

func (n *NetworkACLRuleResponseDto) SetTrafficType(trafficType string)

SetTrafficType sets the TrafficType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkACLRuleResponseDto) String

func (n *NetworkACLRuleResponseDto) String() string

func (*NetworkACLRuleResponseDto) UnmarshalJSON

func (n *NetworkACLRuleResponseDto) UnmarshalJSON(data []byte) error

type NetworkAccessDto

type NetworkAccessDto struct {
	// Allow all outbound traffic from the VM, so it can reach the internet. Set to `false` to block all outbound traffic instead.
	AllowEgressAll bool `json:"allowEgressAll" url:"allowEgressAll"`
	// Inbound ports to open on the network's public IP. Omit or empty for no inbound. When provided, port forwarding and firewall rules are created on the source NAT IP.
	InboundPorts []*InboundPortDto `json:"inboundPorts,omitempty" url:"inboundPorts,omitempty"`
	// Source CIDR(s) allowed to reach the inbound ports. Comma-separated for multiple.
	SourceCidr *string `json:"sourceCidr,omitempty" url:"sourceCidr,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkAccessDto) GetAllowEgressAll

func (n *NetworkAccessDto) GetAllowEgressAll() bool

func (*NetworkAccessDto) GetExtraProperties

func (n *NetworkAccessDto) GetExtraProperties() map[string]interface{}

func (*NetworkAccessDto) GetInboundPorts

func (n *NetworkAccessDto) GetInboundPorts() []*InboundPortDto

func (*NetworkAccessDto) GetSourceCidr

func (n *NetworkAccessDto) GetSourceCidr() *string

func (*NetworkAccessDto) MarshalJSON

func (n *NetworkAccessDto) MarshalJSON() ([]byte, error)

func (*NetworkAccessDto) SetAllowEgressAll

func (n *NetworkAccessDto) SetAllowEgressAll(allowEgressAll bool)

SetAllowEgressAll sets the AllowEgressAll field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkAccessDto) SetInboundPorts

func (n *NetworkAccessDto) SetInboundPorts(inboundPorts []*InboundPortDto)

SetInboundPorts sets the InboundPorts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkAccessDto) SetSourceCidr

func (n *NetworkAccessDto) SetSourceCidr(sourceCidr *string)

SetSourceCidr sets the SourceCidr field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*NetworkAccessDto) String

func (n *NetworkAccessDto) String() string

func (*NetworkAccessDto) UnmarshalJSON

func (n *NetworkAccessDto) UnmarshalJSON(data []byte) error

type NotFoundError

type NotFoundError struct {
	*core.APIError
	Body *APIErrorDto
}

The requested resource does not exist or is not accessible to the caller.

func (*NotFoundError) MarshalJSON

func (n *NotFoundError) MarshalJSON() ([]byte, error)

func (*NotFoundError) UnmarshalJSON

func (n *NotFoundError) UnmarshalJSON(data []byte) error

func (*NotFoundError) Unwrap

func (n *NotFoundError) Unwrap() error

type ObjectStorageSuccessResponseDto

type ObjectStorageSuccessResponseDto struct {
	// Whether the operation succeeded.
	Success bool `json:"success" url:"success"`
	// Optional human-readable message about the result.
	Message *string `json:"message,omitempty" url:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectStorageSuccessResponseDto) GetExtraProperties

func (o *ObjectStorageSuccessResponseDto) GetExtraProperties() map[string]interface{}

func (*ObjectStorageSuccessResponseDto) GetMessage

func (o *ObjectStorageSuccessResponseDto) GetMessage() *string

func (*ObjectStorageSuccessResponseDto) GetSuccess

func (o *ObjectStorageSuccessResponseDto) GetSuccess() bool

func (*ObjectStorageSuccessResponseDto) MarshalJSON

func (o *ObjectStorageSuccessResponseDto) MarshalJSON() ([]byte, error)

func (*ObjectStorageSuccessResponseDto) SetMessage

func (o *ObjectStorageSuccessResponseDto) SetMessage(message *string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ObjectStorageSuccessResponseDto) SetSuccess

func (o *ObjectStorageSuccessResponseDto) SetSuccess(success bool)

SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ObjectStorageSuccessResponseDto) String

func (*ObjectStorageSuccessResponseDto) UnmarshalJSON

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

type ObjectStorageUnitDto

type ObjectStorageUnitDto struct {
	// Unique identifier for the storage unit.
	StorageUnitID string `json:"storageUnitId" url:"storageUnitId"`
	// When the storage unit was created.
	CreatedAt time.Time `json:"createdAt" url:"createdAt"`
	// Maximum number of buckets the storage unit may hold. Null means no limit (unlimited).
	MaxBuckets *float64 `json:"maxBuckets,omitempty" url:"maxBuckets,omitempty"`
	// Current usage of the storage unit, in kilobytes.
	SizeKb *float64 `json:"sizeKb,omitempty" url:"sizeKb,omitempty"`
	// Total storage allowed on the storage unit, in kilobytes. Null means no limit (unlimited).
	LimitKb *float64 `json:"limitKb,omitempty" url:"limitKb,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectStorageUnitDto) GetCreatedAt

func (o *ObjectStorageUnitDto) GetCreatedAt() time.Time

func (*ObjectStorageUnitDto) GetExtraProperties

func (o *ObjectStorageUnitDto) GetExtraProperties() map[string]interface{}

func (*ObjectStorageUnitDto) GetLimitKb

func (o *ObjectStorageUnitDto) GetLimitKb() *float64

func (*ObjectStorageUnitDto) GetMaxBuckets

func (o *ObjectStorageUnitDto) GetMaxBuckets() *float64

func (*ObjectStorageUnitDto) GetSizeKb

func (o *ObjectStorageUnitDto) GetSizeKb() *float64

func (*ObjectStorageUnitDto) GetStorageUnitID

func (o *ObjectStorageUnitDto) GetStorageUnitID() string

func (*ObjectStorageUnitDto) MarshalJSON

func (o *ObjectStorageUnitDto) MarshalJSON() ([]byte, error)

func (*ObjectStorageUnitDto) SetCreatedAt

func (o *ObjectStorageUnitDto) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ObjectStorageUnitDto) SetLimitKb

func (o *ObjectStorageUnitDto) SetLimitKb(limitKb *float64)

SetLimitKb sets the LimitKb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ObjectStorageUnitDto) SetMaxBuckets

func (o *ObjectStorageUnitDto) SetMaxBuckets(maxBuckets *float64)

SetMaxBuckets sets the MaxBuckets field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ObjectStorageUnitDto) SetSizeKb

func (o *ObjectStorageUnitDto) SetSizeKb(sizeKb *float64)

SetSizeKb sets the SizeKb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ObjectStorageUnitDto) SetStorageUnitID

func (o *ObjectStorageUnitDto) SetStorageUnitID(storageUnitID string)

SetStorageUnitID sets the StorageUnitID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ObjectStorageUnitDto) String

func (o *ObjectStorageUnitDto) String() string

func (*ObjectStorageUnitDto) UnmarshalJSON

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

type OperationStatusResponseDto

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

func (*OperationStatusResponseDto) GetExtraProperties

func (o *OperationStatusResponseDto) GetExtraProperties() map[string]interface{}

func (*OperationStatusResponseDto) MarshalJSON

func (o *OperationStatusResponseDto) MarshalJSON() ([]byte, error)

func (*OperationStatusResponseDto) String

func (o *OperationStatusResponseDto) String() string

func (*OperationStatusResponseDto) UnmarshalJSON

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

type PaginatedResponseDto

type PaginatedResponseDto struct {
	// Total number of items matching the request, across all pages. Use this together with `pageSize` to compute how many pages exist.
	Total float64 `json:"total" url:"total"`
	// contains filtered or unexported fields
}

func (*PaginatedResponseDto) GetExtraProperties

func (p *PaginatedResponseDto) GetExtraProperties() map[string]interface{}

func (*PaginatedResponseDto) GetTotal

func (p *PaginatedResponseDto) GetTotal() float64

func (*PaginatedResponseDto) MarshalJSON

func (p *PaginatedResponseDto) MarshalJSON() ([]byte, error)

func (*PaginatedResponseDto) SetTotal

func (p *PaginatedResponseDto) SetTotal(total float64)

SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PaginatedResponseDto) String

func (p *PaginatedResponseDto) String() string

func (*PaginatedResponseDto) UnmarshalJSON

func (p *PaginatedResponseDto) UnmarshalJSON(data []byte) error

type PortForwardingRuleResponseDto

type PortForwardingRuleResponseDto struct {
	// Unique identifier for the port forwarding rule.
	ID string `json:"id" url:"id"`
	// Port on the VM that traffic is forwarded to.
	PrivatePort int `json:"privatePort" url:"privatePort"`
	// Port on the public IP that receives the inbound traffic.
	PublicPort int `json:"publicPort" url:"publicPort"`
	// Protocol the forwarding rule applies to. `TCP` or `UDP`.
	Protocol string `json:"protocol" url:"protocol"`
	// Identifier of the VM the forwarded traffic is delivered to.
	VmId string `json:"vmId" url:"vmId"`
	// Name of the VM the forwarded traffic is delivered to.
	VMName string `json:"vmName" url:"vmName"`
	// Identifier of the public IP the rule is attached to.
	IPAddressID string `json:"ipAddressId" url:"ipAddressId"`
	// Public IP address the rule is attached to.
	IPAddress string `json:"ipAddress" url:"ipAddress"`
	// Current lifecycle state of the rule.
	State string `json:"state" url:"state"`
	// When the rule was created.
	CreatedAt *time.Time `json:"createdAt,omitempty" url:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (*PortForwardingRuleResponseDto) GetCreatedAt

func (p *PortForwardingRuleResponseDto) GetCreatedAt() *time.Time

func (*PortForwardingRuleResponseDto) GetExtraProperties

func (p *PortForwardingRuleResponseDto) GetExtraProperties() map[string]interface{}

func (*PortForwardingRuleResponseDto) GetID

func (*PortForwardingRuleResponseDto) GetIPAddress

func (p *PortForwardingRuleResponseDto) GetIPAddress() string

func (*PortForwardingRuleResponseDto) GetIPAddressID

func (p *PortForwardingRuleResponseDto) GetIPAddressID() string

func (*PortForwardingRuleResponseDto) GetPrivatePort

func (p *PortForwardingRuleResponseDto) GetPrivatePort() int

func (*PortForwardingRuleResponseDto) GetProtocol

func (p *PortForwardingRuleResponseDto) GetProtocol() string

func (*PortForwardingRuleResponseDto) GetPublicPort

func (p *PortForwardingRuleResponseDto) GetPublicPort() int

func (*PortForwardingRuleResponseDto) GetState

func (p *PortForwardingRuleResponseDto) GetState() string

func (*PortForwardingRuleResponseDto) GetVMName

func (p *PortForwardingRuleResponseDto) GetVMName() string

func (*PortForwardingRuleResponseDto) GetVmId

func (*PortForwardingRuleResponseDto) MarshalJSON

func (p *PortForwardingRuleResponseDto) MarshalJSON() ([]byte, error)

func (*PortForwardingRuleResponseDto) SetCreatedAt

func (p *PortForwardingRuleResponseDto) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PortForwardingRuleResponseDto) SetID

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PortForwardingRuleResponseDto) SetIPAddress

func (p *PortForwardingRuleResponseDto) SetIPAddress(ipAddress string)

SetIPAddress sets the IPAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PortForwardingRuleResponseDto) SetIPAddressID

func (p *PortForwardingRuleResponseDto) SetIPAddressID(ipAddressID string)

SetIPAddressID sets the IPAddressID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PortForwardingRuleResponseDto) SetPrivatePort

func (p *PortForwardingRuleResponseDto) SetPrivatePort(privatePort int)

SetPrivatePort sets the PrivatePort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PortForwardingRuleResponseDto) SetProtocol

func (p *PortForwardingRuleResponseDto) SetProtocol(protocol string)

SetProtocol sets the Protocol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PortForwardingRuleResponseDto) SetPublicPort

func (p *PortForwardingRuleResponseDto) SetPublicPort(publicPort int)

SetPublicPort sets the PublicPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PortForwardingRuleResponseDto) SetState

func (p *PortForwardingRuleResponseDto) SetState(state string)

SetState sets the State field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PortForwardingRuleResponseDto) SetVMName

func (p *PortForwardingRuleResponseDto) SetVMName(vmName string)

SetVMName sets the VMName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PortForwardingRuleResponseDto) SetVmId

func (p *PortForwardingRuleResponseDto) SetVmId(vmId string)

SetVmId sets the VmId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PortForwardingRuleResponseDto) String

func (*PortForwardingRuleResponseDto) UnmarshalJSON

func (p *PortForwardingRuleResponseDto) UnmarshalJSON(data []byte) error

type PowerVmsRequest

type PowerVmsRequest struct {
	// ID of the virtual machine
	ID string `json:"-" url:"-"`
	// Power action to perform
	Action PowerVmsRequestAction `json:"-" url:"action"`
	// Whether to force the action (applicable for stop and reboot actions)
	Force *bool `json:"-" url:"force,omitempty"`
	// contains filtered or unexported fields
}

func (*PowerVmsRequest) SetAction

func (p *PowerVmsRequest) SetAction(action PowerVmsRequestAction)

SetAction sets the Action field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PowerVmsRequest) SetForce

func (p *PowerVmsRequest) SetForce(force *bool)

SetForce sets the Force field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PowerVmsRequest) SetID

func (p *PowerVmsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type PowerVmsRequestAction

type PowerVmsRequestAction string
const (
	PowerVmsRequestActionStart  PowerVmsRequestAction = "start"
	PowerVmsRequestActionStop   PowerVmsRequestAction = "stop"
	PowerVmsRequestActionReboot PowerVmsRequestAction = "reboot"
)

func NewPowerVmsRequestActionFromString

func NewPowerVmsRequestActionFromString(s string) (PowerVmsRequestAction, error)

func (PowerVmsRequestAction) Ptr

type ProratedEstimateDto

type ProratedEstimateDto struct {
	// Number of days remaining until the next billing cycle
	DaysRemaining float64 `json:"days_remaining" url:"days_remaining"`
	// Prorated cost for the remaining days
	Amount float64 `json:"amount" url:"amount"`
	// contains filtered or unexported fields
}

func (*ProratedEstimateDto) GetAmount

func (p *ProratedEstimateDto) GetAmount() float64

func (*ProratedEstimateDto) GetDaysRemaining

func (p *ProratedEstimateDto) GetDaysRemaining() float64

func (*ProratedEstimateDto) GetExtraProperties

func (p *ProratedEstimateDto) GetExtraProperties() map[string]interface{}

func (*ProratedEstimateDto) MarshalJSON

func (p *ProratedEstimateDto) MarshalJSON() ([]byte, error)

func (*ProratedEstimateDto) SetAmount

func (p *ProratedEstimateDto) SetAmount(amount float64)

SetAmount sets the Amount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProratedEstimateDto) SetDaysRemaining

func (p *ProratedEstimateDto) SetDaysRemaining(daysRemaining float64)

SetDaysRemaining sets the DaysRemaining field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ProratedEstimateDto) String

func (p *ProratedEstimateDto) String() string

func (*ProratedEstimateDto) UnmarshalJSON

func (p *ProratedEstimateDto) UnmarshalJSON(data []byte) error

type PublicIPResponseDto

type PublicIPResponseDto struct {
	// Unique identifier for the public IP address.
	ID string `json:"id" url:"id"`
	// The public IPv4 address.
	IPAddress string `json:"ipAddress" url:"ipAddress"`
	// Identifier of the network the IP is associated with.
	NetworkID string `json:"networkId" url:"networkId"`
	// Identifier of the VM the IP is assigned to via static NAT.
	VmId *string `json:"vmId,omitempty" url:"vmId,omitempty"`
	// Name of the VM the IP is assigned to via static NAT.
	VMName *string `json:"vmName,omitempty" url:"vmName,omitempty"`
	// Current lifecycle state of the IP address.
	Status string `json:"status" url:"status"`
	// Region the IP is allocated in.
	Region string `json:"region" url:"region"`
	// When the IP was allocated.
	CreatedAt *time.Time `json:"createdAt,omitempty" url:"createdAt,omitempty"`
	// Whether this IP is used as the source NAT for its network.
	IsSourceNat bool `json:"isSourceNat" url:"isSourceNat"`
	// Whether this IP is configured as a static NAT.
	IsStaticNat *bool `json:"isStaticNat,omitempty" url:"isStaticNat,omitempty"`
	// Whether any firewall rules currently reference this IP.
	HasFirewallRules *bool `json:"hasFirewallRules,omitempty" url:"hasFirewallRules,omitempty"`
	// Identifier of the VPC the IP is associated with, when applicable.
	VpcID *string `json:"vpcId,omitempty" url:"vpcId,omitempty"`
	// Name of the VPC the IP is associated with, when applicable.
	VpcName *string `json:"vpcName,omitempty" url:"vpcName,omitempty"`
	// Identifier of the network tier the IP is attached to inside the parent VPC.
	AssociatedNetworkID *string `json:"associatedNetworkId,omitempty" url:"associatedNetworkId,omitempty"`
	// Name of the network tier the IP is attached to inside the parent VPC.
	AssociatedNetworkName *string `json:"associatedNetworkName,omitempty" url:"associatedNetworkName,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicIPResponseDto) GetAssociatedNetworkID

func (p *PublicIPResponseDto) GetAssociatedNetworkID() *string

func (*PublicIPResponseDto) GetAssociatedNetworkName

func (p *PublicIPResponseDto) GetAssociatedNetworkName() *string

func (*PublicIPResponseDto) GetCreatedAt

func (p *PublicIPResponseDto) GetCreatedAt() *time.Time

func (*PublicIPResponseDto) GetExtraProperties

func (p *PublicIPResponseDto) GetExtraProperties() map[string]interface{}

func (*PublicIPResponseDto) GetHasFirewallRules

func (p *PublicIPResponseDto) GetHasFirewallRules() *bool

func (*PublicIPResponseDto) GetID

func (p *PublicIPResponseDto) GetID() string

func (*PublicIPResponseDto) GetIPAddress

func (p *PublicIPResponseDto) GetIPAddress() string

func (*PublicIPResponseDto) GetIsSourceNat

func (p *PublicIPResponseDto) GetIsSourceNat() bool

func (*PublicIPResponseDto) GetIsStaticNat

func (p *PublicIPResponseDto) GetIsStaticNat() *bool

func (*PublicIPResponseDto) GetNetworkID

func (p *PublicIPResponseDto) GetNetworkID() string

func (*PublicIPResponseDto) GetRegion

func (p *PublicIPResponseDto) GetRegion() string

func (*PublicIPResponseDto) GetStatus

func (p *PublicIPResponseDto) GetStatus() string

func (*PublicIPResponseDto) GetVMName

func (p *PublicIPResponseDto) GetVMName() *string

func (*PublicIPResponseDto) GetVmId

func (p *PublicIPResponseDto) GetVmId() *string

func (*PublicIPResponseDto) GetVpcID

func (p *PublicIPResponseDto) GetVpcID() *string

func (*PublicIPResponseDto) GetVpcName

func (p *PublicIPResponseDto) GetVpcName() *string

func (*PublicIPResponseDto) MarshalJSON

func (p *PublicIPResponseDto) MarshalJSON() ([]byte, error)

func (*PublicIPResponseDto) SetAssociatedNetworkID

func (p *PublicIPResponseDto) SetAssociatedNetworkID(associatedNetworkID *string)

SetAssociatedNetworkID sets the AssociatedNetworkID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublicIPResponseDto) SetAssociatedNetworkName

func (p *PublicIPResponseDto) SetAssociatedNetworkName(associatedNetworkName *string)

SetAssociatedNetworkName sets the AssociatedNetworkName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublicIPResponseDto) SetCreatedAt

func (p *PublicIPResponseDto) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublicIPResponseDto) SetHasFirewallRules

func (p *PublicIPResponseDto) SetHasFirewallRules(hasFirewallRules *bool)

SetHasFirewallRules sets the HasFirewallRules field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublicIPResponseDto) SetID

func (p *PublicIPResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublicIPResponseDto) SetIPAddress

func (p *PublicIPResponseDto) SetIPAddress(ipAddress string)

SetIPAddress sets the IPAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublicIPResponseDto) SetIsSourceNat

func (p *PublicIPResponseDto) SetIsSourceNat(isSourceNat bool)

SetIsSourceNat sets the IsSourceNat field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublicIPResponseDto) SetIsStaticNat

func (p *PublicIPResponseDto) SetIsStaticNat(isStaticNat *bool)

SetIsStaticNat sets the IsStaticNat field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublicIPResponseDto) SetNetworkID

func (p *PublicIPResponseDto) SetNetworkID(networkID string)

SetNetworkID sets the NetworkID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublicIPResponseDto) SetRegion

func (p *PublicIPResponseDto) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublicIPResponseDto) SetStatus

func (p *PublicIPResponseDto) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublicIPResponseDto) SetVMName

func (p *PublicIPResponseDto) SetVMName(vmName *string)

SetVMName sets the VMName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublicIPResponseDto) SetVmId

func (p *PublicIPResponseDto) SetVmId(vmId *string)

SetVmId sets the VmId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublicIPResponseDto) SetVpcID

func (p *PublicIPResponseDto) SetVpcID(vpcID *string)

SetVpcID sets the VpcID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublicIPResponseDto) SetVpcName

func (p *PublicIPResponseDto) SetVpcName(vpcName *string)

SetVpcName sets the VpcName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*PublicIPResponseDto) String

func (p *PublicIPResponseDto) String() string

func (*PublicIPResponseDto) UnmarshalJSON

func (p *PublicIPResponseDto) UnmarshalJSON(data []byte) error

type QuotaInfoDto

type QuotaInfoDto struct {
	// Whether the operation succeeded.
	Success bool `json:"success" url:"success"`
	// Disk and resource quota details for the WordPress instance.
	Data map[string]any `json:"data,omitempty" url:"data,omitempty"`
	// Error message describing why the operation failed.
	Message *string `json:"message,omitempty" url:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*QuotaInfoDto) GetData

func (q *QuotaInfoDto) GetData() map[string]any

func (*QuotaInfoDto) GetExtraProperties

func (q *QuotaInfoDto) GetExtraProperties() map[string]interface{}

func (*QuotaInfoDto) GetMessage

func (q *QuotaInfoDto) GetMessage() *string

func (*QuotaInfoDto) GetSuccess

func (q *QuotaInfoDto) GetSuccess() bool

func (*QuotaInfoDto) MarshalJSON

func (q *QuotaInfoDto) MarshalJSON() ([]byte, error)

func (*QuotaInfoDto) SetData

func (q *QuotaInfoDto) SetData(data map[string]any)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*QuotaInfoDto) SetMessage

func (q *QuotaInfoDto) SetMessage(message *string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*QuotaInfoDto) SetSuccess

func (q *QuotaInfoDto) SetSuccess(success bool)

SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*QuotaInfoDto) String

func (q *QuotaInfoDto) String() string

func (*QuotaInfoDto) UnmarshalJSON

func (q *QuotaInfoDto) UnmarshalJSON(data []byte) error

type RecentOperationsResponseDto

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

func (*RecentOperationsResponseDto) GetExtraProperties

func (r *RecentOperationsResponseDto) GetExtraProperties() map[string]interface{}

func (*RecentOperationsResponseDto) MarshalJSON

func (r *RecentOperationsResponseDto) MarshalJSON() ([]byte, error)

func (*RecentOperationsResponseDto) String

func (r *RecentOperationsResponseDto) String() string

func (*RecentOperationsResponseDto) UnmarshalJSON

func (r *RecentOperationsResponseDto) UnmarshalJSON(data []byte) error

type RecordResponseDto

type RecordResponseDto struct {
	// Record hostname
	Name string `json:"name" url:"name"`
	// Record type
	Type string `json:"type" url:"type"`
	// Time to live in seconds
	TTL float64 `json:"ttl" url:"ttl"`
	// Record value
	Content string `json:"content" url:"content"`
	// Priority (MX and SRV records only)
	Priority *int `json:"priority,omitempty" url:"priority,omitempty"`
	// Weight (SRV records only)
	Weight *int `json:"weight,omitempty" url:"weight,omitempty"`
	// Port (SRV records only)
	Port *int `json:"port,omitempty" url:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordResponseDto) GetContent

func (r *RecordResponseDto) GetContent() string

func (*RecordResponseDto) GetExtraProperties

func (r *RecordResponseDto) GetExtraProperties() map[string]interface{}

func (*RecordResponseDto) GetName

func (r *RecordResponseDto) GetName() string

func (*RecordResponseDto) GetPort

func (r *RecordResponseDto) GetPort() *int

func (*RecordResponseDto) GetPriority

func (r *RecordResponseDto) GetPriority() *int

func (*RecordResponseDto) GetTTL

func (r *RecordResponseDto) GetTTL() float64

func (*RecordResponseDto) GetType

func (r *RecordResponseDto) GetType() string

func (*RecordResponseDto) GetWeight

func (r *RecordResponseDto) GetWeight() *int

func (*RecordResponseDto) MarshalJSON

func (r *RecordResponseDto) MarshalJSON() ([]byte, error)

func (*RecordResponseDto) SetContent

func (r *RecordResponseDto) SetContent(content string)

SetContent sets the Content field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RecordResponseDto) SetName

func (r *RecordResponseDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RecordResponseDto) SetPort

func (r *RecordResponseDto) SetPort(port *int)

SetPort sets the Port field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RecordResponseDto) SetPriority

func (r *RecordResponseDto) SetPriority(priority *int)

SetPriority sets the Priority field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RecordResponseDto) SetTTL

func (r *RecordResponseDto) SetTTL(ttl float64)

SetTTL sets the TTL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RecordResponseDto) SetType

func (r *RecordResponseDto) SetType(type_ string)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RecordResponseDto) SetWeight

func (r *RecordResponseDto) SetWeight(weight *int)

SetWeight sets the Weight field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RecordResponseDto) String

func (r *RecordResponseDto) String() string

func (*RecordResponseDto) UnmarshalJSON

func (r *RecordResponseDto) UnmarshalJSON(data []byte) error

type RegionDto

type RegionDto struct {
	// Region ID
	ID string `json:"id" url:"id"`
	// Region label (used as a unique identifier)
	Label string `json:"label" url:"label"`
	// Human-readable display name for the region
	DisplayName string `json:"displayName" url:"displayName"`
	// contains filtered or unexported fields
}

func (*RegionDto) GetDisplayName

func (r *RegionDto) GetDisplayName() string

func (*RegionDto) GetExtraProperties

func (r *RegionDto) GetExtraProperties() map[string]interface{}

func (*RegionDto) GetID

func (r *RegionDto) GetID() string

func (*RegionDto) GetLabel

func (r *RegionDto) GetLabel() string

func (*RegionDto) MarshalJSON

func (r *RegionDto) MarshalJSON() ([]byte, error)

func (*RegionDto) SetDisplayName

func (r *RegionDto) SetDisplayName(displayName string)

SetDisplayName sets the DisplayName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RegionDto) SetID

func (r *RegionDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RegionDto) SetLabel

func (r *RegionDto) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RegionDto) String

func (r *RegionDto) String() string

func (*RegionDto) UnmarshalJSON

func (r *RegionDto) UnmarshalJSON(data []byte) error

type ReinstallVmsRequest

type ReinstallVmsRequest struct {
	// ID of the virtual machine
	ID string `json:"-" url:"-"`
	// Optional image label to reinstall from (uses current template if not provided)
	Image *string `json:"-" url:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*ReinstallVmsRequest) SetID

func (r *ReinstallVmsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ReinstallVmsRequest) SetImage

func (r *ReinstallVmsRequest) SetImage(image *string)

SetImage sets the Image field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type ReleasePublicIpsRequest

type ReleasePublicIpsRequest struct {
	// ID of the public IP address to release
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*ReleasePublicIpsRequest) SetID

func (r *ReleasePublicIpsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type RemoveVmsLoadBalancerRulesRequest

type RemoveVmsLoadBalancerRulesRequest struct {
	// ID of the load balancer rule
	RuleID string                          `json:"-" url:"-"`
	Body   *AssignVmsToLoadBalancerRuleDto `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*RemoveVmsLoadBalancerRulesRequest) MarshalJSON

func (r *RemoveVmsLoadBalancerRulesRequest) MarshalJSON() ([]byte, error)

func (*RemoveVmsLoadBalancerRulesRequest) SetRuleID

func (r *RemoveVmsLoadBalancerRulesRequest) SetRuleID(ruleID string)

SetRuleID sets the RuleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RemoveVmsLoadBalancerRulesRequest) UnmarshalJSON

func (r *RemoveVmsLoadBalancerRulesRequest) UnmarshalJSON(data []byte) error

type ReplaceNetworkACLListDto

type ReplaceNetworkACLListDto struct {
	// ID of the Network ACL List to apply
	ID string `json:"-" url:"-"`
	// Identifier of the network the ACL list should be applied to.
	NetworkID string `json:"networkId" url:"-"`
	// contains filtered or unexported fields
}

func (*ReplaceNetworkACLListDto) MarshalJSON

func (r *ReplaceNetworkACLListDto) MarshalJSON() ([]byte, error)

func (*ReplaceNetworkACLListDto) SetID

func (r *ReplaceNetworkACLListDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ReplaceNetworkACLListDto) SetNetworkID

func (r *ReplaceNetworkACLListDto) SetNetworkID(networkID string)

SetNetworkID sets the NetworkID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ReplaceNetworkACLListDto) UnmarshalJSON

func (r *ReplaceNetworkACLListDto) UnmarshalJSON(data []byte) error

type ReservePublicIPDto

type ReservePublicIPDto struct {
	// Identifier of the isolated network the public IP should attach to.
	NetworkID *string `json:"networkId,omitempty" url:"-"`
	// Identifier of the VPC the public IP should attach to.
	VpcID *string `json:"vpcId,omitempty" url:"-"`
	// Label of the region where the IP address should be allocated
	Region string `json:"region" url:"-"`
	// contains filtered or unexported fields
}

func (*ReservePublicIPDto) MarshalJSON

func (r *ReservePublicIPDto) MarshalJSON() ([]byte, error)

func (*ReservePublicIPDto) SetNetworkID

func (r *ReservePublicIPDto) SetNetworkID(networkID *string)

SetNetworkID sets the NetworkID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ReservePublicIPDto) SetRegion

func (r *ReservePublicIPDto) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ReservePublicIPDto) SetVpcID

func (r *ReservePublicIPDto) SetVpcID(vpcID *string)

SetVpcID sets the VpcID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ReservePublicIPDto) UnmarshalJSON

func (r *ReservePublicIPDto) UnmarshalJSON(data []byte) error

type ResetPasswordDto

type ResetPasswordDto struct {
	// ID of the virtual machine
	ID string `json:"-" url:"-"`
	// Custom password to set for the VM. If not provided, a random password will be generated. May contain letters, digits, and symbols only (printable ASCII, no spaces).
	Password *string `json:"password,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*ResetPasswordDto) MarshalJSON

func (r *ResetPasswordDto) MarshalJSON() ([]byte, error)

func (*ResetPasswordDto) SetID

func (r *ResetPasswordDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ResetPasswordDto) SetPassword

func (r *ResetPasswordDto) SetPassword(password *string)

SetPassword sets the Password field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ResetPasswordDto) UnmarshalJSON

func (r *ResetPasswordDto) UnmarshalJSON(data []byte) error

type ResizeDatabaseClusterDto

type ResizeDatabaseClusterDto struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// Identifier of the target database offering to resize to.
	OfferingID string `json:"offeringId" url:"-"`
	// New storage capacity for the cluster, in gigabytes.
	StorageGb *int `json:"storageGb,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*ResizeDatabaseClusterDto) MarshalJSON

func (r *ResizeDatabaseClusterDto) MarshalJSON() ([]byte, error)

func (*ResizeDatabaseClusterDto) SetClusterID

func (r *ResizeDatabaseClusterDto) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ResizeDatabaseClusterDto) SetOfferingID

func (r *ResizeDatabaseClusterDto) SetOfferingID(offeringID string)

SetOfferingID sets the OfferingID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ResizeDatabaseClusterDto) SetStorageGb

func (r *ResizeDatabaseClusterDto) SetStorageGb(storageGb *int)

SetStorageGb sets the StorageGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ResizeDatabaseClusterDto) UnmarshalJSON

func (r *ResizeDatabaseClusterDto) UnmarshalJSON(data []byte) error

type ResizeVMDiskDto

type ResizeVMDiskDto struct {
	// ID of the virtual machine
	ID string `json:"-" url:"-"`
	// The new size of the root disk in GB. Must be larger than the current root disk size.
	SizeGb int `json:"sizeGb" url:"-"`
	// Whether to automatically reboot the VM after the resize completes. Only applies when the VM is running. A reboot is required for the OS to recognize the new disk size.
	Reboot *bool `json:"reboot,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*ResizeVMDiskDto) MarshalJSON

func (r *ResizeVMDiskDto) MarshalJSON() ([]byte, error)

func (*ResizeVMDiskDto) SetID

func (r *ResizeVMDiskDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ResizeVMDiskDto) SetReboot

func (r *ResizeVMDiskDto) SetReboot(reboot *bool)

SetReboot sets the Reboot field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ResizeVMDiskDto) SetSizeGb

func (r *ResizeVMDiskDto) SetSizeGb(sizeGb int)

SetSizeGb sets the SizeGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ResizeVMDiskDto) UnmarshalJSON

func (r *ResizeVMDiskDto) UnmarshalJSON(data []byte) error

type ResizeVolumeDto

type ResizeVolumeDto struct {
	// Volume ID
	ID string `json:"-" url:"-"`
	// The new size of the volume in GB. Must be larger than the current size.
	SizeGb int `json:"sizeGb" url:"-"`
	// contains filtered or unexported fields
}

func (*ResizeVolumeDto) MarshalJSON

func (r *ResizeVolumeDto) MarshalJSON() ([]byte, error)

func (*ResizeVolumeDto) SetID

func (r *ResizeVolumeDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ResizeVolumeDto) SetSizeGb

func (r *ResizeVolumeDto) SetSizeGb(sizeGb int)

SetSizeGb sets the SizeGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ResizeVolumeDto) UnmarshalJSON

func (r *ResizeVolumeDto) UnmarshalJSON(data []byte) error

type RestartIsolatedNetworksRequest

type RestartIsolatedNetworksRequest struct {
	// ID of the isolated network to restart
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*RestartIsolatedNetworksRequest) SetID

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type RestartTierVpcNetworksRequest added in v1.3.0

type RestartTierVpcNetworksRequest struct {
	// ID of the VPC that contains the tier
	ID string `json:"-" url:"-"`
	// ID of the network tier to restart
	TierID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*RestartTierVpcNetworksRequest) SetID added in v1.3.0

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*RestartTierVpcNetworksRequest) SetTierID added in v1.3.0

func (r *RestartTierVpcNetworksRequest) SetTierID(tierID string)

SetTierID sets the TierID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type RestartVpcNetworksRequest

type RestartVpcNetworksRequest struct {
	// ID of the VPC to restart
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*RestartVpcNetworksRequest) SetID

func (r *RestartVpcNetworksRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type RevertSnapshotsRequest

type RevertSnapshotsRequest struct {
	// Snapshot ID
	ID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*RevertSnapshotsRequest) SetID

func (r *RevertSnapshotsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type SSHKeyListItemDto

type SSHKeyListItemDto struct {
	// Name of the SSH key pair
	Name string `json:"name" url:"name"`
	// Fingerprint of the public key
	Fingerprint string `json:"fingerprint" url:"fingerprint"`
	// contains filtered or unexported fields
}

func (*SSHKeyListItemDto) GetExtraProperties

func (s *SSHKeyListItemDto) GetExtraProperties() map[string]interface{}

func (*SSHKeyListItemDto) GetFingerprint

func (s *SSHKeyListItemDto) GetFingerprint() string

func (*SSHKeyListItemDto) GetName

func (s *SSHKeyListItemDto) GetName() string

func (*SSHKeyListItemDto) MarshalJSON

func (s *SSHKeyListItemDto) MarshalJSON() ([]byte, error)

func (*SSHKeyListItemDto) SetFingerprint

func (s *SSHKeyListItemDto) SetFingerprint(fingerprint string)

SetFingerprint sets the Fingerprint field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SSHKeyListItemDto) SetName

func (s *SSHKeyListItemDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SSHKeyListItemDto) String

func (s *SSHKeyListItemDto) String() string

func (*SSHKeyListItemDto) UnmarshalJSON

func (s *SSHKeyListItemDto) UnmarshalJSON(data []byte) error

type ScaleKubernetesClusterRequest

type ScaleKubernetesClusterRequest struct {
	// ID of the Kubernetes cluster
	ID string `json:"-" url:"-"`
	// Number of worker nodes
	WorkerNodes *float64 `json:"workerNodes,omitempty" url:"-"`
	// Enable or disable autoscaling
	AutoscalingEnabled *bool `json:"autoscalingEnabled,omitempty" url:"-"`
	// Minimum number of worker nodes when autoscaling is enabled
	MinWorkers *float64 `json:"minWorkers,omitempty" url:"-"`
	// Maximum number of worker nodes when autoscaling is enabled
	MaxWorkers *float64 `json:"maxWorkers,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*ScaleKubernetesClusterRequest) MarshalJSON

func (s *ScaleKubernetesClusterRequest) MarshalJSON() ([]byte, error)

func (*ScaleKubernetesClusterRequest) SetAutoscalingEnabled

func (s *ScaleKubernetesClusterRequest) SetAutoscalingEnabled(autoscalingEnabled *bool)

SetAutoscalingEnabled sets the AutoscalingEnabled field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ScaleKubernetesClusterRequest) SetID

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ScaleKubernetesClusterRequest) SetMaxWorkers

func (s *ScaleKubernetesClusterRequest) SetMaxWorkers(maxWorkers *float64)

SetMaxWorkers sets the MaxWorkers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ScaleKubernetesClusterRequest) SetMinWorkers

func (s *ScaleKubernetesClusterRequest) SetMinWorkers(minWorkers *float64)

SetMinWorkers sets the MinWorkers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ScaleKubernetesClusterRequest) SetWorkerNodes

func (s *ScaleKubernetesClusterRequest) SetWorkerNodes(workerNodes *float64)

SetWorkerNodes sets the WorkerNodes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ScaleKubernetesClusterRequest) UnmarshalJSON

func (s *ScaleKubernetesClusterRequest) UnmarshalJSON(data []byte) error

type ScaleVMDto added in v1.3.0

type ScaleVMDto struct {
	// ID of the virtual machine
	ID string `json:"-" url:"-"`
	// Number of virtual CPUs. Optional, but at least one of CPU or memory must be provided.
	CPU *int `json:"cpu,omitempty" url:"-"`
	// Memory in MB. Optional, but at least one of CPU or memory must be provided.
	MemoryMb *int `json:"memoryMb,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*ScaleVMDto) MarshalJSON added in v1.3.0

func (s *ScaleVMDto) MarshalJSON() ([]byte, error)

func (*ScaleVMDto) SetCPU added in v1.3.0

func (s *ScaleVMDto) SetCPU(cpu *int)

SetCPU sets the CPU field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ScaleVMDto) SetID added in v1.3.0

func (s *ScaleVMDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ScaleVMDto) SetMemoryMb added in v1.3.0

func (s *ScaleVMDto) SetMemoryMb(memoryMb *int)

SetMemoryMb sets the MemoryMb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ScaleVMDto) UnmarshalJSON added in v1.3.0

func (s *ScaleVMDto) UnmarshalJSON(data []byte) error

type SessionResponseDto

type SessionResponseDto struct {
	// Whether the operation succeeded.
	Success bool `json:"success" url:"success"`
	// Session URL for the requested service.
	URL *string `json:"url,omitempty" url:"url,omitempty"`
	// Error message describing why the operation failed.
	Message *string `json:"message,omitempty" url:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*SessionResponseDto) GetExtraProperties

func (s *SessionResponseDto) GetExtraProperties() map[string]interface{}

func (*SessionResponseDto) GetMessage

func (s *SessionResponseDto) GetMessage() *string

func (*SessionResponseDto) GetSuccess

func (s *SessionResponseDto) GetSuccess() bool

func (*SessionResponseDto) GetURL

func (s *SessionResponseDto) GetURL() *string

func (*SessionResponseDto) MarshalJSON

func (s *SessionResponseDto) MarshalJSON() ([]byte, error)

func (*SessionResponseDto) SetMessage

func (s *SessionResponseDto) SetMessage(message *string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SessionResponseDto) SetSuccess

func (s *SessionResponseDto) SetSuccess(success bool)

SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SessionResponseDto) SetURL

func (s *SessionResponseDto) SetURL(url *string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SessionResponseDto) String

func (s *SessionResponseDto) String() string

func (*SessionResponseDto) UnmarshalJSON

func (s *SessionResponseDto) UnmarshalJSON(data []byte) error

type SetActiveBackupRepoRequestDto

type SetActiveBackupRepoRequestDto struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// Name of the backup repository to set as active.
	RepoName string `json:"repoName" url:"-"`
	// contains filtered or unexported fields
}

func (*SetActiveBackupRepoRequestDto) MarshalJSON

func (s *SetActiveBackupRepoRequestDto) MarshalJSON() ([]byte, error)

func (*SetActiveBackupRepoRequestDto) SetClusterID

func (s *SetActiveBackupRepoRequestDto) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SetActiveBackupRepoRequestDto) SetRepoName

func (s *SetActiveBackupRepoRequestDto) SetRepoName(repoName string)

SetRepoName sets the RepoName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SetActiveBackupRepoRequestDto) UnmarshalJSON

func (s *SetActiveBackupRepoRequestDto) UnmarshalJSON(data []byte) error

type SetUserQuotaRequestDto

type SetUserQuotaRequestDto struct {
	// Storage unit ID (UID)
	StorageUnitID string `json:"-" url:"-"`
	// Maximum total size for the storage unit, in gigabytes.
	MaxSizeGb *float64 `json:"maxSizeGb,omitempty" url:"-"`
	// When true, removes any existing storage limit instead of setting a value.
	RemoveLimit *bool `json:"removeLimit,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*SetUserQuotaRequestDto) MarshalJSON

func (s *SetUserQuotaRequestDto) MarshalJSON() ([]byte, error)

func (*SetUserQuotaRequestDto) SetMaxSizeGb

func (s *SetUserQuotaRequestDto) SetMaxSizeGb(maxSizeGb *float64)

SetMaxSizeGb sets the MaxSizeGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SetUserQuotaRequestDto) SetRemoveLimit

func (s *SetUserQuotaRequestDto) SetRemoveLimit(removeLimit *bool)

SetRemoveLimit sets the RemoveLimit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SetUserQuotaRequestDto) SetStorageUnitID

func (s *SetUserQuotaRequestDto) SetStorageUnitID(storageUnitID string)

SetStorageUnitID sets the StorageUnitID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SetUserQuotaRequestDto) UnmarshalJSON

func (s *SetUserQuotaRequestDto) UnmarshalJSON(data []byte) error

type SetupBackupRepoRequestDto

type SetupBackupRepoRequestDto struct {
	// Infrastructure cluster ID
	UserClusterID string `json:"-" url:"-"`
	// Name for the backup repository.
	RepoName string `json:"repoName" url:"-"`
	// Name of the S3 bucket backups are stored in. Provide the bucket name only — no path or account/tenant prefix.
	Bucket string `json:"bucket" url:"-"`
	// Hostname of your S3-compatible endpoint (for example, "s3.example.com"), optionally with a port. Provide the host only — connections always use HTTPS.
	Endpoint string `json:"endpoint" url:"-"`
	// S3 access key identifier with access to the bucket.
	AccessKeyID string `json:"accessKeyId" url:"-"`
	// S3 secret key paired with the access key.
	AccessKeySecret string `json:"accessKeySecret" url:"-"`
	// Optional key prefix to store backups under, inside the bucket.
	PathPrefix *string `json:"pathPrefix,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*SetupBackupRepoRequestDto) MarshalJSON

func (s *SetupBackupRepoRequestDto) MarshalJSON() ([]byte, error)

func (*SetupBackupRepoRequestDto) SetAccessKeyID

func (s *SetupBackupRepoRequestDto) SetAccessKeyID(accessKeyID string)

SetAccessKeyID sets the AccessKeyID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SetupBackupRepoRequestDto) SetAccessKeySecret

func (s *SetupBackupRepoRequestDto) SetAccessKeySecret(accessKeySecret string)

SetAccessKeySecret sets the AccessKeySecret field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SetupBackupRepoRequestDto) SetBucket

func (s *SetupBackupRepoRequestDto) SetBucket(bucket string)

SetBucket sets the Bucket field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SetupBackupRepoRequestDto) SetEndpoint

func (s *SetupBackupRepoRequestDto) SetEndpoint(endpoint string)

SetEndpoint sets the Endpoint field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SetupBackupRepoRequestDto) SetPathPrefix

func (s *SetupBackupRepoRequestDto) SetPathPrefix(pathPrefix *string)

SetPathPrefix sets the PathPrefix field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SetupBackupRepoRequestDto) SetRepoName

func (s *SetupBackupRepoRequestDto) SetRepoName(repoName string)

SetRepoName sets the RepoName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SetupBackupRepoRequestDto) SetUserClusterID

func (s *SetupBackupRepoRequestDto) SetUserClusterID(userClusterID string)

SetUserClusterID sets the UserClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SetupBackupRepoRequestDto) UnmarshalJSON

func (s *SetupBackupRepoRequestDto) UnmarshalJSON(data []byte) error

type SnapshotOperationResponseDto

type SnapshotOperationResponseDto struct {
	// Operation status indicator
	Status string `json:"status" url:"status"`
	// Human-readable confirmation message
	Message string `json:"message" url:"message"`
	// contains filtered or unexported fields
}

func (*SnapshotOperationResponseDto) GetExtraProperties

func (s *SnapshotOperationResponseDto) GetExtraProperties() map[string]interface{}

func (*SnapshotOperationResponseDto) GetMessage

func (s *SnapshotOperationResponseDto) GetMessage() string

func (*SnapshotOperationResponseDto) GetStatus

func (s *SnapshotOperationResponseDto) GetStatus() string

func (*SnapshotOperationResponseDto) MarshalJSON

func (s *SnapshotOperationResponseDto) MarshalJSON() ([]byte, error)

func (*SnapshotOperationResponseDto) SetMessage

func (s *SnapshotOperationResponseDto) SetMessage(message string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SnapshotOperationResponseDto) SetStatus

func (s *SnapshotOperationResponseDto) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SnapshotOperationResponseDto) String

func (*SnapshotOperationResponseDto) UnmarshalJSON

func (s *SnapshotOperationResponseDto) UnmarshalJSON(data []byte) error

type SnapshotResponseDto

type SnapshotResponseDto struct {
	// Unique identifier of the snapshot
	ID string `json:"id" url:"id"`
	// Name of the snapshot
	Name string `json:"name" url:"name"`
	// Size of the snapshot in GB
	SizeGb int `json:"sizeGb" url:"sizeGb"`
	// Current status of the snapshot
	Status string `json:"status" url:"status"`
	// Type of the snapshot, indicating whether it was taken of a root or data disk.
	Type SnapshotResponseDtoType `json:"type" url:"type"`
	// ID of the volume the snapshot was created from, if any
	VolumeID string `json:"volumeId" url:"volumeId"`
	// Label of the region where the snapshot is located
	Region string `json:"region" url:"region"`
	// When the snapshot was created
	CreatedAt time.Time `json:"createdAt" url:"createdAt"`
	// ID of the virtual machine the snapshot was created from, if any
	VmId *string `json:"vmId,omitempty" url:"vmId,omitempty"`
	// contains filtered or unexported fields
}

func (*SnapshotResponseDto) GetCreatedAt

func (s *SnapshotResponseDto) GetCreatedAt() time.Time

func (*SnapshotResponseDto) GetExtraProperties

func (s *SnapshotResponseDto) GetExtraProperties() map[string]interface{}

func (*SnapshotResponseDto) GetID

func (s *SnapshotResponseDto) GetID() string

func (*SnapshotResponseDto) GetName

func (s *SnapshotResponseDto) GetName() string

func (*SnapshotResponseDto) GetRegion

func (s *SnapshotResponseDto) GetRegion() string

func (*SnapshotResponseDto) GetSizeGb

func (s *SnapshotResponseDto) GetSizeGb() int

func (*SnapshotResponseDto) GetStatus

func (s *SnapshotResponseDto) GetStatus() string

func (*SnapshotResponseDto) GetType

func (*SnapshotResponseDto) GetVmId

func (s *SnapshotResponseDto) GetVmId() *string

func (*SnapshotResponseDto) GetVolumeID

func (s *SnapshotResponseDto) GetVolumeID() string

func (*SnapshotResponseDto) MarshalJSON

func (s *SnapshotResponseDto) MarshalJSON() ([]byte, error)

func (*SnapshotResponseDto) SetCreatedAt

func (s *SnapshotResponseDto) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SnapshotResponseDto) SetID

func (s *SnapshotResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SnapshotResponseDto) SetName

func (s *SnapshotResponseDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SnapshotResponseDto) SetRegion

func (s *SnapshotResponseDto) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SnapshotResponseDto) SetSizeGb

func (s *SnapshotResponseDto) SetSizeGb(sizeGb int)

SetSizeGb sets the SizeGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SnapshotResponseDto) SetStatus

func (s *SnapshotResponseDto) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SnapshotResponseDto) SetType

func (s *SnapshotResponseDto) SetType(type_ SnapshotResponseDtoType)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SnapshotResponseDto) SetVmId

func (s *SnapshotResponseDto) SetVmId(vmId *string)

SetVmId sets the VmId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SnapshotResponseDto) SetVolumeID

func (s *SnapshotResponseDto) SetVolumeID(volumeID string)

SetVolumeID sets the VolumeID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*SnapshotResponseDto) String

func (s *SnapshotResponseDto) String() string

func (*SnapshotResponseDto) UnmarshalJSON

func (s *SnapshotResponseDto) UnmarshalJSON(data []byte) error

type SnapshotResponseDtoType

type SnapshotResponseDtoType string

Type of the snapshot, indicating whether it was taken of a root or data disk.

const (
	SnapshotResponseDtoTypeDataDisk SnapshotResponseDtoType = "DataDisk"
	SnapshotResponseDtoTypeRootDisk SnapshotResponseDtoType = "RootDisk"
)

func NewSnapshotResponseDtoTypeFromString

func NewSnapshotResponseDtoTypeFromString(s string) (SnapshotResponseDtoType, error)

func (SnapshotResponseDtoType) Ptr

type StartDatabasesRequest

type StartDatabasesRequest struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*StartDatabasesRequest) SetClusterID

func (s *StartDatabasesRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type StopDatabasesRequest

type StopDatabasesRequest struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*StopDatabasesRequest) SetClusterID

func (s *StopDatabasesRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type TriggerBackupRequestDto

type TriggerBackupRequestDto struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// Backup method to use for this run.
	BackupMethod TriggerBackupRequestDtoBackupMethod `json:"backupMethod" url:"-"`
	// Backup policy that governs this run.
	BackupPolicyName string `json:"backupPolicyName" url:"-"`
	// Name to assign to the resulting backup artifact.
	BackupName string `json:"backupName" url:"-"`
	// How long to keep the backup. Number followed by `d` (days), `h` (hours), or `m` (minutes).
	RetentionPeriod string `json:"retentionPeriod" url:"-"`
	// Action to take on the backup artifact when the policy is removed.
	DeletionPolicy TriggerBackupRequestDtoDeletionPolicy `json:"deletionPolicy" url:"-"`
	// contains filtered or unexported fields
}

func (*TriggerBackupRequestDto) MarshalJSON

func (t *TriggerBackupRequestDto) MarshalJSON() ([]byte, error)

func (*TriggerBackupRequestDto) SetBackupMethod

func (t *TriggerBackupRequestDto) SetBackupMethod(backupMethod TriggerBackupRequestDtoBackupMethod)

SetBackupMethod sets the BackupMethod field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TriggerBackupRequestDto) SetBackupName

func (t *TriggerBackupRequestDto) SetBackupName(backupName string)

SetBackupName sets the BackupName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TriggerBackupRequestDto) SetBackupPolicyName

func (t *TriggerBackupRequestDto) SetBackupPolicyName(backupPolicyName string)

SetBackupPolicyName sets the BackupPolicyName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TriggerBackupRequestDto) SetClusterID

func (t *TriggerBackupRequestDto) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TriggerBackupRequestDto) SetDeletionPolicy

func (t *TriggerBackupRequestDto) SetDeletionPolicy(deletionPolicy TriggerBackupRequestDtoDeletionPolicy)

SetDeletionPolicy sets the DeletionPolicy field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TriggerBackupRequestDto) SetRetentionPeriod

func (t *TriggerBackupRequestDto) SetRetentionPeriod(retentionPeriod string)

SetRetentionPeriod sets the RetentionPeriod field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*TriggerBackupRequestDto) UnmarshalJSON

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

type TriggerBackupRequestDtoBackupMethod

type TriggerBackupRequestDtoBackupMethod string

Backup method to use for this run.

const (
	TriggerBackupRequestDtoBackupMethodXtrabackup   TriggerBackupRequestDtoBackupMethod = "xtrabackup"
	TriggerBackupRequestDtoBackupMethodPgBasebackup TriggerBackupRequestDtoBackupMethod = "pg-basebackup"
	TriggerBackupRequestDtoBackupMethodDatafile     TriggerBackupRequestDtoBackupMethod = "datafile"
)

func NewTriggerBackupRequestDtoBackupMethodFromString

func NewTriggerBackupRequestDtoBackupMethodFromString(s string) (TriggerBackupRequestDtoBackupMethod, error)

func (TriggerBackupRequestDtoBackupMethod) Ptr

type TriggerBackupRequestDtoDeletionPolicy

type TriggerBackupRequestDtoDeletionPolicy string

Action to take on the backup artifact when the policy is removed.

const (
	TriggerBackupRequestDtoDeletionPolicyDelete TriggerBackupRequestDtoDeletionPolicy = "Delete"
	TriggerBackupRequestDtoDeletionPolicyRetain TriggerBackupRequestDtoDeletionPolicy = "Retain"
)

func NewTriggerBackupRequestDtoDeletionPolicyFromString

func NewTriggerBackupRequestDtoDeletionPolicyFromString(s string) (TriggerBackupRequestDtoDeletionPolicy, error)

func (TriggerBackupRequestDtoDeletionPolicy) Ptr

type UnauthorizedError

type UnauthorizedError struct {
	*core.APIError
	Body *APIErrorDto
}

Authentication credentials were missing or invalid.

func (*UnauthorizedError) MarshalJSON

func (u *UnauthorizedError) MarshalJSON() ([]byte, error)

func (*UnauthorizedError) UnmarshalJSON

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

func (*UnauthorizedError) Unwrap

func (u *UnauthorizedError) Unwrap() error

type UpdateBackupConfigRequestDto added in v1.3.2

type UpdateBackupConfigRequestDto struct {
	// Database cluster ID
	ClusterID string `json:"-" url:"-"`
	// Whether backups for this cluster should be encrypted at rest. When enabled, backups are encrypted with AES-256-CFB.
	EncryptionEnabled bool `json:"encryptionEnabled" url:"-"`
	// Passphrase used to encrypt backups. Required when enabling encryption. Must be 12–256 printable ASCII characters (letters, digits, symbols) with no spaces. Store it securely — it is required to restore encrypted backups and cannot be recovered if lost.
	Passphrase *string `json:"passphrase,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*UpdateBackupConfigRequestDto) MarshalJSON added in v1.3.2

func (u *UpdateBackupConfigRequestDto) MarshalJSON() ([]byte, error)

func (*UpdateBackupConfigRequestDto) SetClusterID added in v1.3.2

func (u *UpdateBackupConfigRequestDto) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateBackupConfigRequestDto) SetEncryptionEnabled added in v1.3.2

func (u *UpdateBackupConfigRequestDto) SetEncryptionEnabled(encryptionEnabled bool)

SetEncryptionEnabled sets the EncryptionEnabled field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateBackupConfigRequestDto) SetPassphrase added in v1.3.2

func (u *UpdateBackupConfigRequestDto) SetPassphrase(passphrase *string)

SetPassphrase sets the Passphrase field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateBackupConfigRequestDto) UnmarshalJSON added in v1.3.2

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

type UpdateBackupRepoRequestDto

type UpdateBackupRepoRequestDto struct {
	// Infrastructure cluster ID
	UserClusterID string `json:"-" url:"-"`
	// Name for the backup repository.
	RepoName string `json:"repoName" url:"-"`
	// Name of the S3 bucket backups are stored in. Provide the bucket name only — no path or account/tenant prefix.
	Bucket string `json:"bucket" url:"-"`
	// Hostname of your S3-compatible endpoint (for example, "s3.example.com"), optionally with a port. Provide the host only — connections always use HTTPS.
	Endpoint string `json:"endpoint" url:"-"`
	// S3 access key identifier with access to the bucket.
	AccessKeyID string `json:"accessKeyId" url:"-"`
	// S3 secret key paired with the access key.
	AccessKeySecret string `json:"accessKeySecret" url:"-"`
	// Optional key prefix to store backups under, inside the bucket.
	PathPrefix *string `json:"pathPrefix,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*UpdateBackupRepoRequestDto) MarshalJSON

func (u *UpdateBackupRepoRequestDto) MarshalJSON() ([]byte, error)

func (*UpdateBackupRepoRequestDto) SetAccessKeyID

func (u *UpdateBackupRepoRequestDto) SetAccessKeyID(accessKeyID string)

SetAccessKeyID sets the AccessKeyID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateBackupRepoRequestDto) SetAccessKeySecret

func (u *UpdateBackupRepoRequestDto) SetAccessKeySecret(accessKeySecret string)

SetAccessKeySecret sets the AccessKeySecret field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateBackupRepoRequestDto) SetBucket

func (u *UpdateBackupRepoRequestDto) SetBucket(bucket string)

SetBucket sets the Bucket field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateBackupRepoRequestDto) SetEndpoint

func (u *UpdateBackupRepoRequestDto) SetEndpoint(endpoint string)

SetEndpoint sets the Endpoint field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateBackupRepoRequestDto) SetPathPrefix

func (u *UpdateBackupRepoRequestDto) SetPathPrefix(pathPrefix *string)

SetPathPrefix sets the PathPrefix field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateBackupRepoRequestDto) SetRepoName

func (u *UpdateBackupRepoRequestDto) SetRepoName(repoName string)

SetRepoName sets the RepoName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateBackupRepoRequestDto) SetUserClusterID

func (u *UpdateBackupRepoRequestDto) SetUserClusterID(userClusterID string)

SetUserClusterID sets the UserClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateBackupRepoRequestDto) UnmarshalJSON

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

type UpdateEgressRuleDto

type UpdateEgressRuleDto struct {
	// ID of the egress rule
	ID string `json:"-" url:"-"`
	// Source CIDR within the network's CIDR — which senders inside the network the rule matches.
	SourceCidrList *string `json:"sourceCidrList,omitempty" url:"-"`
	// Destination CIDR the rule matches — where the outbound traffic is headed.
	DestCidrList *string `json:"destCidrList,omitempty" url:"-"`
	// Start of the port range the rule applies to.
	StartPort *int `json:"startPort,omitempty" url:"-"`
	// End of the port range the rule applies to.
	EndPort *int `json:"endPort,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*UpdateEgressRuleDto) MarshalJSON

func (u *UpdateEgressRuleDto) MarshalJSON() ([]byte, error)

func (*UpdateEgressRuleDto) SetDestCidrList

func (u *UpdateEgressRuleDto) SetDestCidrList(destCidrList *string)

SetDestCidrList sets the DestCidrList field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateEgressRuleDto) SetEndPort

func (u *UpdateEgressRuleDto) SetEndPort(endPort *int)

SetEndPort sets the EndPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateEgressRuleDto) SetID

func (u *UpdateEgressRuleDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateEgressRuleDto) SetSourceCidrList

func (u *UpdateEgressRuleDto) SetSourceCidrList(sourceCidrList *string)

SetSourceCidrList sets the SourceCidrList field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateEgressRuleDto) SetStartPort

func (u *UpdateEgressRuleDto) SetStartPort(startPort *int)

SetStartPort sets the StartPort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateEgressRuleDto) UnmarshalJSON

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

type UpdateHostnameVmsRequest

type UpdateHostnameVmsRequest struct {
	// ID of the virtual machine
	ID string `json:"-" url:"-"`
	// The new hostname for the virtual machine. It must be 1 to 63 characters, start with a letter, end with a letter or a digit, and hold only letters, digits and hyphens.
	Hostname string `json:"-" url:"hostname"`
	// contains filtered or unexported fields
}

func (*UpdateHostnameVmsRequest) SetHostname

func (u *UpdateHostnameVmsRequest) SetHostname(hostname string)

SetHostname sets the Hostname field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateHostnameVmsRequest) SetID

func (u *UpdateHostnameVmsRequest) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

type UpdateIsolatedNetworkDto

type UpdateIsolatedNetworkDto struct {
	// ID of the isolated network to update
	ID string `json:"-" url:"-"`
	// New name for the network.
	Name *string `json:"name,omitempty" url:"-"`
	// New description for the network.
	Description *string `json:"description,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*UpdateIsolatedNetworkDto) MarshalJSON

func (u *UpdateIsolatedNetworkDto) MarshalJSON() ([]byte, error)

func (*UpdateIsolatedNetworkDto) SetDescription

func (u *UpdateIsolatedNetworkDto) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateIsolatedNetworkDto) SetID

func (u *UpdateIsolatedNetworkDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateIsolatedNetworkDto) SetName

func (u *UpdateIsolatedNetworkDto) SetName(name *string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateIsolatedNetworkDto) UnmarshalJSON

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

type UpdateLoadBalancerRuleDto

type UpdateLoadBalancerRuleDto struct {
	// ID of the load balancer rule
	RuleID string `json:"-" url:"-"`
	// New name for the rule.
	Name *string `json:"name,omitempty" url:"-"`
	// New algorithm used to distribute traffic.
	Algorithm *UpdateLoadBalancerRuleDtoAlgorithm `json:"algorithm,omitempty" url:"-"`
	// New description for the rule.
	Description *string `json:"description,omitempty" url:"-"`
	// New protocol the load balancer accepts.
	Protocol *string `json:"protocol,omitempty" url:"-"`
	// New source CIDR allowed to reach the load balancer.
	SourceCidrList *string `json:"sourceCidrList,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*UpdateLoadBalancerRuleDto) MarshalJSON

func (u *UpdateLoadBalancerRuleDto) MarshalJSON() ([]byte, error)

func (*UpdateLoadBalancerRuleDto) SetAlgorithm

SetAlgorithm sets the Algorithm field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateLoadBalancerRuleDto) SetDescription

func (u *UpdateLoadBalancerRuleDto) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateLoadBalancerRuleDto) SetName

func (u *UpdateLoadBalancerRuleDto) SetName(name *string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateLoadBalancerRuleDto) SetProtocol

func (u *UpdateLoadBalancerRuleDto) SetProtocol(protocol *string)

SetProtocol sets the Protocol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateLoadBalancerRuleDto) SetRuleID

func (u *UpdateLoadBalancerRuleDto) SetRuleID(ruleID string)

SetRuleID sets the RuleID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateLoadBalancerRuleDto) SetSourceCidrList

func (u *UpdateLoadBalancerRuleDto) SetSourceCidrList(sourceCidrList *string)

SetSourceCidrList sets the SourceCidrList field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateLoadBalancerRuleDto) UnmarshalJSON

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

type UpdateLoadBalancerRuleDtoAlgorithm

type UpdateLoadBalancerRuleDtoAlgorithm string

New algorithm used to distribute traffic.

const (
	UpdateLoadBalancerRuleDtoAlgorithmRoundrobin UpdateLoadBalancerRuleDtoAlgorithm = "roundrobin"
	UpdateLoadBalancerRuleDtoAlgorithmLeastconn  UpdateLoadBalancerRuleDtoAlgorithm = "leastconn"
	UpdateLoadBalancerRuleDtoAlgorithmSource     UpdateLoadBalancerRuleDtoAlgorithm = "source"
)

func NewUpdateLoadBalancerRuleDtoAlgorithmFromString

func NewUpdateLoadBalancerRuleDtoAlgorithmFromString(s string) (UpdateLoadBalancerRuleDtoAlgorithm, error)

func (UpdateLoadBalancerRuleDtoAlgorithm) Ptr

type UpdatePasswordDto

type UpdatePasswordDto struct {
	// New password for the WordPress hosting account
	NewPassword string `json:"newPassword" url:"-"`
	// contains filtered or unexported fields
}

func (*UpdatePasswordDto) MarshalJSON

func (u *UpdatePasswordDto) MarshalJSON() ([]byte, error)

func (*UpdatePasswordDto) SetNewPassword

func (u *UpdatePasswordDto) SetNewPassword(newPassword string)

SetNewPassword sets the NewPassword field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdatePasswordDto) UnmarshalJSON

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

type UpdateRecordDto

type UpdateRecordDto struct {
	// DNS zone identifier
	ZoneID string `json:"-" url:"-"`
	// Current record hostname identifying the record to update (use @ for apex)
	CurrentName string `json:"-" url:"-"`
	// Current record type identifying the record to update (A, AAAA, CNAME, MX, NS, SRV, TXT)
	CurrentType string `json:"-" url:"-"`
	// Hostname for the record. Use @ for the zone apex.
	Name string `json:"name" url:"-"`
	// Record type
	Type UpdateRecordDtoType `json:"type" url:"-"`
	// Record value (IP address, hostname, text, etc.)
	Content string `json:"content" url:"-"`
	// Time to live in seconds (60–86400)
	TTL *float64 `json:"ttl,omitempty" url:"-"`
	// Priority (required for MX and SRV records)
	Priority *int `json:"priority,omitempty" url:"-"`
	// Weight (required for SRV records)
	Weight *int `json:"weight,omitempty" url:"-"`
	// Port (required for SRV records)
	Port *int `json:"port,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*UpdateRecordDto) MarshalJSON

func (u *UpdateRecordDto) MarshalJSON() ([]byte, error)

func (*UpdateRecordDto) SetContent

func (u *UpdateRecordDto) SetContent(content string)

SetContent sets the Content field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateRecordDto) SetCurrentName

func (u *UpdateRecordDto) SetCurrentName(currentName string)

SetCurrentName sets the CurrentName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateRecordDto) SetCurrentType

func (u *UpdateRecordDto) SetCurrentType(currentType string)

SetCurrentType sets the CurrentType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateRecordDto) SetName

func (u *UpdateRecordDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateRecordDto) SetPort

func (u *UpdateRecordDto) SetPort(port *int)

SetPort sets the Port field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateRecordDto) SetPriority

func (u *UpdateRecordDto) SetPriority(priority *int)

SetPriority sets the Priority field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateRecordDto) SetTTL

func (u *UpdateRecordDto) SetTTL(ttl *float64)

SetTTL sets the TTL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateRecordDto) SetType

func (u *UpdateRecordDto) SetType(type_ UpdateRecordDtoType)

SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateRecordDto) SetWeight

func (u *UpdateRecordDto) SetWeight(weight *int)

SetWeight sets the Weight field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateRecordDto) SetZoneID

func (u *UpdateRecordDto) SetZoneID(zoneID string)

SetZoneID sets the ZoneID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateRecordDto) UnmarshalJSON

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

type UpdateRecordDtoType

type UpdateRecordDtoType string

Record type

const (
	UpdateRecordDtoTypeA     UpdateRecordDtoType = "A"
	UpdateRecordDtoTypeAaaa  UpdateRecordDtoType = "AAAA"
	UpdateRecordDtoTypeCname UpdateRecordDtoType = "CNAME"
	UpdateRecordDtoTypeMx    UpdateRecordDtoType = "MX"
	UpdateRecordDtoTypeNs    UpdateRecordDtoType = "NS"
	UpdateRecordDtoTypeSrv   UpdateRecordDtoType = "SRV"
	UpdateRecordDtoTypeTxt   UpdateRecordDtoType = "TXT"
)

func NewUpdateRecordDtoTypeFromString

func NewUpdateRecordDtoTypeFromString(s string) (UpdateRecordDtoType, error)

func (UpdateRecordDtoType) Ptr

type UpdateScheduleDatabaseBackupsRequest

type UpdateScheduleDatabaseBackupsRequest struct {
	// Database cluster ID
	ClusterID string                          `json:"-" url:"-"`
	Body      *ModifyBackupScheduleRequestDto `json:"-" url:"-"`
	// contains filtered or unexported fields
}

func (*UpdateScheduleDatabaseBackupsRequest) MarshalJSON

func (u *UpdateScheduleDatabaseBackupsRequest) MarshalJSON() ([]byte, error)

func (*UpdateScheduleDatabaseBackupsRequest) SetClusterID

func (u *UpdateScheduleDatabaseBackupsRequest) SetClusterID(clusterID string)

SetClusterID sets the ClusterID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateScheduleDatabaseBackupsRequest) UnmarshalJSON

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

type UpdateVpcNetworkDto

type UpdateVpcNetworkDto struct {
	// ID of the VPC to update
	ID string `json:"-" url:"-"`
	// New name for the VPC.
	Name *string `json:"name,omitempty" url:"-"`
	// New description for the VPC.
	Description *string `json:"description,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*UpdateVpcNetworkDto) MarshalJSON

func (u *UpdateVpcNetworkDto) MarshalJSON() ([]byte, error)

func (*UpdateVpcNetworkDto) SetDescription

func (u *UpdateVpcNetworkDto) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateVpcNetworkDto) SetID

func (u *UpdateVpcNetworkDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateVpcNetworkDto) SetName

func (u *UpdateVpcNetworkDto) SetName(name *string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateVpcNetworkDto) UnmarshalJSON

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

type UpdateVpcTierDto added in v1.3.0

type UpdateVpcTierDto struct {
	// ID of the VPC that contains the tier
	ID string `json:"-" url:"-"`
	// ID of the network tier to update
	TierID string `json:"-" url:"-"`
	// New name for the tier.
	Name *string `json:"name,omitempty" url:"-"`
	// New description for the tier.
	Description *string `json:"description,omitempty" url:"-"`
	// contains filtered or unexported fields
}

func (*UpdateVpcTierDto) MarshalJSON added in v1.3.0

func (u *UpdateVpcTierDto) MarshalJSON() ([]byte, error)

func (*UpdateVpcTierDto) SetDescription added in v1.3.0

func (u *UpdateVpcTierDto) SetDescription(description *string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateVpcTierDto) SetID added in v1.3.0

func (u *UpdateVpcTierDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateVpcTierDto) SetName added in v1.3.0

func (u *UpdateVpcTierDto) SetName(name *string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateVpcTierDto) SetTierID added in v1.3.0

func (u *UpdateVpcTierDto) SetTierID(tierID string)

SetTierID sets the TierID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpdateVpcTierDto) UnmarshalJSON added in v1.3.0

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

type UpgradeKubernetesClusterRequest

type UpgradeKubernetesClusterRequest struct {
	// ID of the Kubernetes cluster
	ID string `json:"-" url:"-"`
	// Kubernetes version to upgrade to (semantic version)
	Version string `json:"version" url:"-"`
	// contains filtered or unexported fields
}

func (*UpgradeKubernetesClusterRequest) MarshalJSON

func (u *UpgradeKubernetesClusterRequest) MarshalJSON() ([]byte, error)

func (*UpgradeKubernetesClusterRequest) SetID

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpgradeKubernetesClusterRequest) SetVersion

func (u *UpgradeKubernetesClusterRequest) SetVersion(version string)

SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*UpgradeKubernetesClusterRequest) UnmarshalJSON

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

type VMConsoleResponseDto

type VMConsoleResponseDto struct {
	// Signed console URL for accessing the VM. Single-use; request a new one if it expires.
	URL string `json:"url" url:"url"`
	// contains filtered or unexported fields
}

func (*VMConsoleResponseDto) GetExtraProperties

func (v *VMConsoleResponseDto) GetExtraProperties() map[string]interface{}

func (*VMConsoleResponseDto) GetURL

func (v *VMConsoleResponseDto) GetURL() string

func (*VMConsoleResponseDto) MarshalJSON

func (v *VMConsoleResponseDto) MarshalJSON() ([]byte, error)

func (*VMConsoleResponseDto) SetURL

func (v *VMConsoleResponseDto) SetURL(url string)

SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMConsoleResponseDto) String

func (v *VMConsoleResponseDto) String() string

func (*VMConsoleResponseDto) UnmarshalJSON

func (v *VMConsoleResponseDto) UnmarshalJSON(data []byte) error

type VMDiskResizeResponseDto

type VMDiskResizeResponseDto struct {
	// Virtual machine ID.
	ID string `json:"id" url:"id"`
	// Transitional state during the resize.
	Status string `json:"status" url:"status"`
	// True when the VM was running and `reboot=true`, so the new disk size was applied via a reboot. False otherwise (VM was already stopped, or `reboot=false`, or the reboot step failed — see `message`).
	RebootInitiated bool `json:"rebootInitiated" url:"rebootInitiated"`
	// Present only when the disk resize succeeded but the follow-up reboot failed; surfaces a remediation hint to the caller.
	Message *string `json:"message,omitempty" url:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*VMDiskResizeResponseDto) GetExtraProperties

func (v *VMDiskResizeResponseDto) GetExtraProperties() map[string]interface{}

func (*VMDiskResizeResponseDto) GetID

func (v *VMDiskResizeResponseDto) GetID() string

func (*VMDiskResizeResponseDto) GetMessage

func (v *VMDiskResizeResponseDto) GetMessage() *string

func (*VMDiskResizeResponseDto) GetRebootInitiated

func (v *VMDiskResizeResponseDto) GetRebootInitiated() bool

func (*VMDiskResizeResponseDto) GetStatus

func (v *VMDiskResizeResponseDto) GetStatus() string

func (*VMDiskResizeResponseDto) MarshalJSON

func (v *VMDiskResizeResponseDto) MarshalJSON() ([]byte, error)

func (*VMDiskResizeResponseDto) SetID

func (v *VMDiskResizeResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMDiskResizeResponseDto) SetMessage

func (v *VMDiskResizeResponseDto) SetMessage(message *string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMDiskResizeResponseDto) SetRebootInitiated

func (v *VMDiskResizeResponseDto) SetRebootInitiated(rebootInitiated bool)

SetRebootInitiated sets the RebootInitiated field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMDiskResizeResponseDto) SetStatus

func (v *VMDiskResizeResponseDto) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMDiskResizeResponseDto) String

func (v *VMDiskResizeResponseDto) String() string

func (*VMDiskResizeResponseDto) UnmarshalJSON

func (v *VMDiskResizeResponseDto) UnmarshalJSON(data []byte) error

type VMHostnameUpdateResponseDto

type VMHostnameUpdateResponseDto struct {
	// Virtual machine ID.
	ID string `json:"id" url:"id"`
	// The newly-set hostname.
	Hostname string `json:"hostname" url:"hostname"`
	// Status of the hostname update.
	Status string `json:"status" url:"status"`
	// Reminder that the VM must be stopped and started for the change to take effect.
	Message *string `json:"message,omitempty" url:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*VMHostnameUpdateResponseDto) GetExtraProperties

func (v *VMHostnameUpdateResponseDto) GetExtraProperties() map[string]interface{}

func (*VMHostnameUpdateResponseDto) GetHostname

func (v *VMHostnameUpdateResponseDto) GetHostname() string

func (*VMHostnameUpdateResponseDto) GetID

func (*VMHostnameUpdateResponseDto) GetMessage

func (v *VMHostnameUpdateResponseDto) GetMessage() *string

func (*VMHostnameUpdateResponseDto) GetStatus

func (v *VMHostnameUpdateResponseDto) GetStatus() string

func (*VMHostnameUpdateResponseDto) MarshalJSON

func (v *VMHostnameUpdateResponseDto) MarshalJSON() ([]byte, error)

func (*VMHostnameUpdateResponseDto) SetHostname

func (v *VMHostnameUpdateResponseDto) SetHostname(hostname string)

SetHostname sets the Hostname field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMHostnameUpdateResponseDto) SetID

func (v *VMHostnameUpdateResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMHostnameUpdateResponseDto) SetMessage

func (v *VMHostnameUpdateResponseDto) SetMessage(message *string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMHostnameUpdateResponseDto) SetStatus

func (v *VMHostnameUpdateResponseDto) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMHostnameUpdateResponseDto) String

func (v *VMHostnameUpdateResponseDto) String() string

func (*VMHostnameUpdateResponseDto) UnmarshalJSON

func (v *VMHostnameUpdateResponseDto) UnmarshalJSON(data []byte) error

type VMMetricSampleDto

type VMMetricSampleDto struct {
	// Sample timestamp from the underlying compute platform.
	Timestamp time.Time `json:"timestamp" url:"timestamp"`
	// CPU usage as a percentage (0–100), rounded to two decimal places.
	CPUUsagePct float64 `json:"cpuUsagePct" url:"cpuUsagePct"`
	// Memory usage as a percentage (0–100), rounded to two decimal places.
	MemoryUsagePct float64 `json:"memoryUsagePct" url:"memoryUsagePct"`
	// contains filtered or unexported fields
}

func (*VMMetricSampleDto) GetCPUUsagePct

func (v *VMMetricSampleDto) GetCPUUsagePct() float64

func (*VMMetricSampleDto) GetExtraProperties

func (v *VMMetricSampleDto) GetExtraProperties() map[string]interface{}

func (*VMMetricSampleDto) GetMemoryUsagePct

func (v *VMMetricSampleDto) GetMemoryUsagePct() float64

func (*VMMetricSampleDto) GetTimestamp

func (v *VMMetricSampleDto) GetTimestamp() time.Time

func (*VMMetricSampleDto) MarshalJSON

func (v *VMMetricSampleDto) MarshalJSON() ([]byte, error)

func (*VMMetricSampleDto) SetCPUUsagePct

func (v *VMMetricSampleDto) SetCPUUsagePct(cpuUsagePct float64)

SetCPUUsagePct sets the CPUUsagePct field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMMetricSampleDto) SetMemoryUsagePct

func (v *VMMetricSampleDto) SetMemoryUsagePct(memoryUsagePct float64)

SetMemoryUsagePct sets the MemoryUsagePct field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMMetricSampleDto) SetTimestamp

func (v *VMMetricSampleDto) SetTimestamp(timestamp time.Time)

SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMMetricSampleDto) String

func (v *VMMetricSampleDto) String() string

func (*VMMetricSampleDto) UnmarshalJSON

func (v *VMMetricSampleDto) UnmarshalJSON(data []byte) error

type VMPackageDto

type VMPackageDto struct {
	// VM Package ID
	ID string `json:"id" url:"id"`
	// Internal label identifier for the VM Package
	Label string `json:"label" url:"label"`
	// Human-readable display name for the VM Package
	Description string `json:"description" url:"description"`
	// Minimum number of CPUs
	MinCPU float64 `json:"minCpu" url:"minCpu"`
	// Maximum number of CPUs
	MaxCPU float64 `json:"maxCpu" url:"maxCpu"`
	// Minimum root disk size in GB
	MinRootDiskGb float64 `json:"minRootDiskGb" url:"minRootDiskGb"`
	// Maximum root disk size in GB
	MaxRootDiskGb float64 `json:"maxRootDiskGb" url:"maxRootDiskGb"`
	// Minimum memory in MB
	MinMemoryMb float64 `json:"minMemoryMb" url:"minMemoryMb"`
	// Maximum memory in MB
	MaxMemoryMb float64 `json:"maxMemoryMb" url:"maxMemoryMb"`
	// Performance tier
	Tier string `json:"tier" url:"tier"`
	// Array of zone IDs where this package is available
	Zones []string `json:"zones" url:"zones"`
	// Number of CPUs (deprecated, use minCpu instead)
	CPU int `json:"cpu" url:"cpu"`
	// Root disk size in GB (deprecated, use minRootDiskGb instead)
	RootDiskGb int `json:"rootDiskGb" url:"rootDiskGb"`
	// Memory in MB (deprecated, use minMemoryMb instead)
	MemoryMb int `json:"memoryMb" url:"memoryMb"`
	// contains filtered or unexported fields
}

func (*VMPackageDto) GetCPU

func (v *VMPackageDto) GetCPU() int

func (*VMPackageDto) GetDescription

func (v *VMPackageDto) GetDescription() string

func (*VMPackageDto) GetExtraProperties

func (v *VMPackageDto) GetExtraProperties() map[string]interface{}

func (*VMPackageDto) GetID

func (v *VMPackageDto) GetID() string

func (*VMPackageDto) GetLabel

func (v *VMPackageDto) GetLabel() string

func (*VMPackageDto) GetMaxCPU

func (v *VMPackageDto) GetMaxCPU() float64

func (*VMPackageDto) GetMaxMemoryMb

func (v *VMPackageDto) GetMaxMemoryMb() float64

func (*VMPackageDto) GetMaxRootDiskGb

func (v *VMPackageDto) GetMaxRootDiskGb() float64

func (*VMPackageDto) GetMemoryMb

func (v *VMPackageDto) GetMemoryMb() int

func (*VMPackageDto) GetMinCPU

func (v *VMPackageDto) GetMinCPU() float64

func (*VMPackageDto) GetMinMemoryMb

func (v *VMPackageDto) GetMinMemoryMb() float64

func (*VMPackageDto) GetMinRootDiskGb

func (v *VMPackageDto) GetMinRootDiskGb() float64

func (*VMPackageDto) GetRootDiskGb

func (v *VMPackageDto) GetRootDiskGb() int

func (*VMPackageDto) GetTier

func (v *VMPackageDto) GetTier() string

func (*VMPackageDto) GetZones

func (v *VMPackageDto) GetZones() []string

func (*VMPackageDto) MarshalJSON

func (v *VMPackageDto) MarshalJSON() ([]byte, error)

func (*VMPackageDto) SetCPU

func (v *VMPackageDto) SetCPU(cpu int)

SetCPU sets the CPU field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPackageDto) SetDescription

func (v *VMPackageDto) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPackageDto) SetID

func (v *VMPackageDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPackageDto) SetLabel

func (v *VMPackageDto) SetLabel(label string)

SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPackageDto) SetMaxCPU

func (v *VMPackageDto) SetMaxCPU(maxCPU float64)

SetMaxCPU sets the MaxCPU field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPackageDto) SetMaxMemoryMb

func (v *VMPackageDto) SetMaxMemoryMb(maxMemoryMb float64)

SetMaxMemoryMb sets the MaxMemoryMb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPackageDto) SetMaxRootDiskGb

func (v *VMPackageDto) SetMaxRootDiskGb(maxRootDiskGb float64)

SetMaxRootDiskGb sets the MaxRootDiskGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPackageDto) SetMemoryMb

func (v *VMPackageDto) SetMemoryMb(memoryMb int)

SetMemoryMb sets the MemoryMb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPackageDto) SetMinCPU

func (v *VMPackageDto) SetMinCPU(minCPU float64)

SetMinCPU sets the MinCPU field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPackageDto) SetMinMemoryMb

func (v *VMPackageDto) SetMinMemoryMb(minMemoryMb float64)

SetMinMemoryMb sets the MinMemoryMb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPackageDto) SetMinRootDiskGb

func (v *VMPackageDto) SetMinRootDiskGb(minRootDiskGb float64)

SetMinRootDiskGb sets the MinRootDiskGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPackageDto) SetRootDiskGb

func (v *VMPackageDto) SetRootDiskGb(rootDiskGb int)

SetRootDiskGb sets the RootDiskGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPackageDto) SetTier

func (v *VMPackageDto) SetTier(tier string)

SetTier sets the Tier field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPackageDto) SetZones

func (v *VMPackageDto) SetZones(zones []string)

SetZones sets the Zones field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPackageDto) String

func (v *VMPackageDto) String() string

func (*VMPackageDto) UnmarshalJSON

func (v *VMPackageDto) UnmarshalJSON(data []byte) error

type VMPasswordResetResponseDto

type VMPasswordResetResponseDto struct {
	// The new VM password. Save this immediately — it will not be returned again.
	Password string `json:"password" url:"password"`
	// Success message with a reminder to save the password.
	Message *string `json:"message,omitempty" url:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*VMPasswordResetResponseDto) GetExtraProperties

func (v *VMPasswordResetResponseDto) GetExtraProperties() map[string]interface{}

func (*VMPasswordResetResponseDto) GetMessage

func (v *VMPasswordResetResponseDto) GetMessage() *string

func (*VMPasswordResetResponseDto) GetPassword

func (v *VMPasswordResetResponseDto) GetPassword() string

func (*VMPasswordResetResponseDto) MarshalJSON

func (v *VMPasswordResetResponseDto) MarshalJSON() ([]byte, error)

func (*VMPasswordResetResponseDto) SetMessage

func (v *VMPasswordResetResponseDto) SetMessage(message *string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPasswordResetResponseDto) SetPassword

func (v *VMPasswordResetResponseDto) SetPassword(password string)

SetPassword sets the Password field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPasswordResetResponseDto) String

func (v *VMPasswordResetResponseDto) String() string

func (*VMPasswordResetResponseDto) UnmarshalJSON

func (v *VMPasswordResetResponseDto) UnmarshalJSON(data []byte) error

type VMPowerActionResponseDto

type VMPowerActionResponseDto struct {
	// Virtual machine ID.
	ID string `json:"id" url:"id"`
	// Transitional state the VM is moving into.
	Status VMPowerActionResponseDtoStatus `json:"status" url:"status"`
	// contains filtered or unexported fields
}

func (*VMPowerActionResponseDto) GetExtraProperties

func (v *VMPowerActionResponseDto) GetExtraProperties() map[string]interface{}

func (*VMPowerActionResponseDto) GetID

func (v *VMPowerActionResponseDto) GetID() string

func (*VMPowerActionResponseDto) GetStatus

func (*VMPowerActionResponseDto) MarshalJSON

func (v *VMPowerActionResponseDto) MarshalJSON() ([]byte, error)

func (*VMPowerActionResponseDto) SetID

func (v *VMPowerActionResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPowerActionResponseDto) SetStatus

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMPowerActionResponseDto) String

func (v *VMPowerActionResponseDto) String() string

func (*VMPowerActionResponseDto) UnmarshalJSON

func (v *VMPowerActionResponseDto) UnmarshalJSON(data []byte) error

type VMPowerActionResponseDtoStatus

type VMPowerActionResponseDtoStatus string

Transitional state the VM is moving into.

const (
	VMPowerActionResponseDtoStatusStarting  VMPowerActionResponseDtoStatus = "starting"
	VMPowerActionResponseDtoStatusStopping  VMPowerActionResponseDtoStatus = "stopping"
	VMPowerActionResponseDtoStatusRebooting VMPowerActionResponseDtoStatus = "rebooting"
)

func NewVMPowerActionResponseDtoStatusFromString

func NewVMPowerActionResponseDtoStatusFromString(s string) (VMPowerActionResponseDtoStatus, error)

func (VMPowerActionResponseDtoStatus) Ptr

type VMReinstallResponseDto

type VMReinstallResponseDto struct {
	// Virtual machine ID.
	ID string `json:"id" url:"id"`
	// Transitional state during reinstall.
	Status string `json:"status" url:"status"`
	// contains filtered or unexported fields
}

func (*VMReinstallResponseDto) GetExtraProperties

func (v *VMReinstallResponseDto) GetExtraProperties() map[string]interface{}

func (*VMReinstallResponseDto) GetID

func (v *VMReinstallResponseDto) GetID() string

func (*VMReinstallResponseDto) GetStatus

func (v *VMReinstallResponseDto) GetStatus() string

func (*VMReinstallResponseDto) MarshalJSON

func (v *VMReinstallResponseDto) MarshalJSON() ([]byte, error)

func (*VMReinstallResponseDto) SetID

func (v *VMReinstallResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMReinstallResponseDto) SetStatus

func (v *VMReinstallResponseDto) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMReinstallResponseDto) String

func (v *VMReinstallResponseDto) String() string

func (*VMReinstallResponseDto) UnmarshalJSON

func (v *VMReinstallResponseDto) UnmarshalJSON(data []byte) error

type VMResponseDto

type VMResponseDto struct {
	// Unique identifier for this virtual machine.
	ID string `json:"id" url:"id"`
	// Human-readable name for the VM. Shown in dashboards and CLI output.
	Name string `json:"name" url:"name"`
	// Current lifecycle state of the VM. Observed values include CREATING, STARTING, CREATED, STARTED, STOPPING, STOPPED, and DESTROYED. Treat this as an open set — new states may be introduced over time.
	Status string `json:"status" url:"status"`
	// Region the VM is provisioned in. References a region label from /v1/compute/regions.
	Region string `json:"region" url:"region"`
	// Package label identifying the CPU/memory/disk preset this VM uses.
	VMPackage *string `json:"vmPackage,omitempty" url:"vmPackage,omitempty"`
	// Number of virtual CPUs allocated to the VM.
	CPU int `json:"cpu" url:"cpu"`
	// Memory allocated to the VM, in megabytes.
	MemoryMb int `json:"memoryMb" url:"memoryMb"`
	// Root disk size, in gigabytes.
	RootDiskGb int `json:"rootDiskGb" url:"rootDiskGb"`
	// Tags assigned to this VM for grouping and filtering.
	Tags []string `json:"tags,omitempty" url:"tags,omitempty"`
	// Billing cadence applied to this VM. Absent for a few moments after the VM is created, while the billing term is still being recorded. Poll until it appears.
	SubscriptionPeriod *string `json:"subscriptionPeriod,omitempty" url:"subscriptionPeriod,omitempty"`
	// Image label the VM was provisioned from. References /v1/compute/images.
	Image string `json:"image" url:"image"`
	// Friendly name of the source image.
	ImageDisplayName *string `json:"imageDisplayName,omitempty" url:"imageDisplayName,omitempty"`
	// Primary IP address assigned to the VM on its network.
	IPAddress string `json:"ipAddress" url:"ipAddress"`
	// Name of the network or VPC tier this VM is attached to. Null while the VM is still provisioning.
	NetworkName *string `json:"networkName,omitempty" url:"networkName,omitempty"`
	// Identifier of the network or VPC tier this VM is attached to. Null while the VM is still provisioning.
	NetworkID *string `json:"networkId,omitempty" url:"networkId,omitempty"`
	// Identifier of the VM root volume. Null while the VM is still provisioning.
	RootVolumeID *string `json:"rootVolumeId,omitempty" url:"rootVolumeId,omitempty"`
	// When the VM was first provisioned.
	CreatedAt time.Time `json:"createdAt" url:"createdAt"`
	// When the current billing version started (set when the VM is scaled or its disk is resized). Only present if the VM has been modified since creation.
	VersionStartedAt *time.Time `json:"versionStartedAt,omitempty" url:"versionStartedAt,omitempty"`
	// Source marketplace app, when the VM was deployed from one. Absent for OS-only deploys.
	MarketplaceApp *MarketplaceAppDto `json:"marketplaceApp,omitempty" url:"marketplaceApp,omitempty"`
	// contains filtered or unexported fields
}

func (*VMResponseDto) GetCPU

func (v *VMResponseDto) GetCPU() int

func (*VMResponseDto) GetCreatedAt

func (v *VMResponseDto) GetCreatedAt() time.Time

func (*VMResponseDto) GetExtraProperties

func (v *VMResponseDto) GetExtraProperties() map[string]interface{}

func (*VMResponseDto) GetID

func (v *VMResponseDto) GetID() string

func (*VMResponseDto) GetIPAddress

func (v *VMResponseDto) GetIPAddress() string

func (*VMResponseDto) GetImage

func (v *VMResponseDto) GetImage() string

func (*VMResponseDto) GetImageDisplayName

func (v *VMResponseDto) GetImageDisplayName() *string

func (*VMResponseDto) GetMarketplaceApp

func (v *VMResponseDto) GetMarketplaceApp() *MarketplaceAppDto

func (*VMResponseDto) GetMemoryMb

func (v *VMResponseDto) GetMemoryMb() int

func (*VMResponseDto) GetName

func (v *VMResponseDto) GetName() string

func (*VMResponseDto) GetNetworkID

func (v *VMResponseDto) GetNetworkID() *string

func (*VMResponseDto) GetNetworkName

func (v *VMResponseDto) GetNetworkName() *string

func (*VMResponseDto) GetRegion

func (v *VMResponseDto) GetRegion() string

func (*VMResponseDto) GetRootDiskGb

func (v *VMResponseDto) GetRootDiskGb() int

func (*VMResponseDto) GetRootVolumeID

func (v *VMResponseDto) GetRootVolumeID() *string

func (*VMResponseDto) GetStatus

func (v *VMResponseDto) GetStatus() string

func (*VMResponseDto) GetSubscriptionPeriod

func (v *VMResponseDto) GetSubscriptionPeriod() *string

func (*VMResponseDto) GetTags

func (v *VMResponseDto) GetTags() []string

func (*VMResponseDto) GetVMPackage

func (v *VMResponseDto) GetVMPackage() *string

func (*VMResponseDto) GetVersionStartedAt

func (v *VMResponseDto) GetVersionStartedAt() *time.Time

func (*VMResponseDto) MarshalJSON

func (v *VMResponseDto) MarshalJSON() ([]byte, error)

func (*VMResponseDto) SetCPU

func (v *VMResponseDto) SetCPU(cpu int)

SetCPU sets the CPU field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetCreatedAt

func (v *VMResponseDto) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetID

func (v *VMResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetIPAddress

func (v *VMResponseDto) SetIPAddress(ipAddress string)

SetIPAddress sets the IPAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetImage

func (v *VMResponseDto) SetImage(image string)

SetImage sets the Image field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetImageDisplayName

func (v *VMResponseDto) SetImageDisplayName(imageDisplayName *string)

SetImageDisplayName sets the ImageDisplayName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetMarketplaceApp

func (v *VMResponseDto) SetMarketplaceApp(marketplaceApp *MarketplaceAppDto)

SetMarketplaceApp sets the MarketplaceApp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetMemoryMb

func (v *VMResponseDto) SetMemoryMb(memoryMb int)

SetMemoryMb sets the MemoryMb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetName

func (v *VMResponseDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetNetworkID

func (v *VMResponseDto) SetNetworkID(networkID *string)

SetNetworkID sets the NetworkID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetNetworkName

func (v *VMResponseDto) SetNetworkName(networkName *string)

SetNetworkName sets the NetworkName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetRegion

func (v *VMResponseDto) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetRootDiskGb

func (v *VMResponseDto) SetRootDiskGb(rootDiskGb int)

SetRootDiskGb sets the RootDiskGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetRootVolumeID

func (v *VMResponseDto) SetRootVolumeID(rootVolumeID *string)

SetRootVolumeID sets the RootVolumeID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetStatus

func (v *VMResponseDto) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetSubscriptionPeriod

func (v *VMResponseDto) SetSubscriptionPeriod(subscriptionPeriod *string)

SetSubscriptionPeriod sets the SubscriptionPeriod field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetTags

func (v *VMResponseDto) SetTags(tags []string)

SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetVMPackage

func (v *VMResponseDto) SetVMPackage(vmPackage *string)

SetVMPackage sets the VMPackage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) SetVersionStartedAt

func (v *VMResponseDto) SetVersionStartedAt(versionStartedAt *time.Time)

SetVersionStartedAt sets the VersionStartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMResponseDto) String

func (v *VMResponseDto) String() string

func (*VMResponseDto) UnmarshalJSON

func (v *VMResponseDto) UnmarshalJSON(data []byte) error

type VMSpecsDto

type VMSpecsDto struct {
	// Number of virtual CPUs
	Vcpu float64 `json:"vcpu" url:"vcpu"`
	// Memory in MB
	MemoryMb int `json:"memoryMb" url:"memoryMb"`
	// Root disk size in GB
	RootDiskGb int `json:"rootDiskGb" url:"rootDiskGb"`
	// contains filtered or unexported fields
}

func (*VMSpecsDto) GetExtraProperties

func (v *VMSpecsDto) GetExtraProperties() map[string]interface{}

func (*VMSpecsDto) GetMemoryMb

func (v *VMSpecsDto) GetMemoryMb() int

func (*VMSpecsDto) GetRootDiskGb

func (v *VMSpecsDto) GetRootDiskGb() int

func (*VMSpecsDto) GetVcpu

func (v *VMSpecsDto) GetVcpu() float64

func (*VMSpecsDto) MarshalJSON

func (v *VMSpecsDto) MarshalJSON() ([]byte, error)

func (*VMSpecsDto) SetMemoryMb

func (v *VMSpecsDto) SetMemoryMb(memoryMb int)

SetMemoryMb sets the MemoryMb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMSpecsDto) SetRootDiskGb

func (v *VMSpecsDto) SetRootDiskGb(rootDiskGb int)

SetRootDiskGb sets the RootDiskGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMSpecsDto) SetVcpu

func (v *VMSpecsDto) SetVcpu(vcpu float64)

SetVcpu sets the Vcpu field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VMSpecsDto) String

func (v *VMSpecsDto) String() string

func (*VMSpecsDto) UnmarshalJSON

func (v *VMSpecsDto) UnmarshalJSON(data []byte) error

type ValidationErrorItemDto

type ValidationErrorItemDto struct {
	// Dotted path to the field that failed validation.
	Field string `json:"field" url:"field"`
	// Human-readable validation message for this field.
	Message string `json:"message" url:"message"`
	// contains filtered or unexported fields
}

func (*ValidationErrorItemDto) GetExtraProperties

func (v *ValidationErrorItemDto) GetExtraProperties() map[string]interface{}

func (*ValidationErrorItemDto) GetField

func (v *ValidationErrorItemDto) GetField() string

func (*ValidationErrorItemDto) GetMessage

func (v *ValidationErrorItemDto) GetMessage() string

func (*ValidationErrorItemDto) MarshalJSON

func (v *ValidationErrorItemDto) MarshalJSON() ([]byte, error)

func (*ValidationErrorItemDto) SetField

func (v *ValidationErrorItemDto) SetField(field string)

SetField sets the Field field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ValidationErrorItemDto) SetMessage

func (v *ValidationErrorItemDto) SetMessage(message string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ValidationErrorItemDto) String

func (v *ValidationErrorItemDto) String() string

func (*ValidationErrorItemDto) UnmarshalJSON

func (v *ValidationErrorItemDto) UnmarshalJSON(data []byte) error

type VolumeDeletionResponseDto

type VolumeDeletionResponseDto struct {
	// Volume identifier
	ID string `json:"id" url:"id"`
	// Volume status after the operation was accepted
	Status string `json:"status" url:"status"`
	// Whether the upstream delete request was accepted
	Success bool `json:"success" url:"success"`
	// contains filtered or unexported fields
}

func (*VolumeDeletionResponseDto) GetExtraProperties

func (v *VolumeDeletionResponseDto) GetExtraProperties() map[string]interface{}

func (*VolumeDeletionResponseDto) GetID

func (v *VolumeDeletionResponseDto) GetID() string

func (*VolumeDeletionResponseDto) GetStatus

func (v *VolumeDeletionResponseDto) GetStatus() string

func (*VolumeDeletionResponseDto) GetSuccess

func (v *VolumeDeletionResponseDto) GetSuccess() bool

func (*VolumeDeletionResponseDto) MarshalJSON

func (v *VolumeDeletionResponseDto) MarshalJSON() ([]byte, error)

func (*VolumeDeletionResponseDto) SetID

func (v *VolumeDeletionResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VolumeDeletionResponseDto) SetStatus

func (v *VolumeDeletionResponseDto) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VolumeDeletionResponseDto) SetSuccess

func (v *VolumeDeletionResponseDto) SetSuccess(success bool)

SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VolumeDeletionResponseDto) String

func (v *VolumeDeletionResponseDto) String() string

func (*VolumeDeletionResponseDto) UnmarshalJSON

func (v *VolumeDeletionResponseDto) UnmarshalJSON(data []byte) error

type VolumeOperationResponseDto

type VolumeOperationResponseDto struct {
	// Volume identifier
	ID string `json:"id" url:"id"`
	// Volume status after the operation was accepted
	Status string `json:"status" url:"status"`
	// contains filtered or unexported fields
}

func (*VolumeOperationResponseDto) GetExtraProperties

func (v *VolumeOperationResponseDto) GetExtraProperties() map[string]interface{}

func (*VolumeOperationResponseDto) GetID

func (*VolumeOperationResponseDto) GetStatus

func (v *VolumeOperationResponseDto) GetStatus() string

func (*VolumeOperationResponseDto) MarshalJSON

func (v *VolumeOperationResponseDto) MarshalJSON() ([]byte, error)

func (*VolumeOperationResponseDto) SetID

func (v *VolumeOperationResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VolumeOperationResponseDto) SetStatus

func (v *VolumeOperationResponseDto) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VolumeOperationResponseDto) String

func (v *VolumeOperationResponseDto) String() string

func (*VolumeOperationResponseDto) UnmarshalJSON

func (v *VolumeOperationResponseDto) UnmarshalJSON(data []byte) error

type VolumeResponseDto

type VolumeResponseDto struct {
	// Unique identifier of the volume
	ID string `json:"id" url:"id"`
	// Name of the volume
	Name string `json:"name" url:"name"`
	// Size of the volume in GB
	SizeGb int `json:"sizeGb" url:"sizeGb"`
	// Current status of the volume
	Status string `json:"status" url:"status"`
	// ID of the VM the volume is attached to. Null for detached volumes.
	VmId *string `json:"vmId,omitempty" url:"vmId,omitempty"`
	// Label of the region where the volume is located
	Region string `json:"region" url:"region"`
	// When the volume was created
	CreatedAt time.Time `json:"createdAt" url:"createdAt"`
	// contains filtered or unexported fields
}

func (*VolumeResponseDto) GetCreatedAt

func (v *VolumeResponseDto) GetCreatedAt() time.Time

func (*VolumeResponseDto) GetExtraProperties

func (v *VolumeResponseDto) GetExtraProperties() map[string]interface{}

func (*VolumeResponseDto) GetID

func (v *VolumeResponseDto) GetID() string

func (*VolumeResponseDto) GetName

func (v *VolumeResponseDto) GetName() string

func (*VolumeResponseDto) GetRegion

func (v *VolumeResponseDto) GetRegion() string

func (*VolumeResponseDto) GetSizeGb

func (v *VolumeResponseDto) GetSizeGb() int

func (*VolumeResponseDto) GetStatus

func (v *VolumeResponseDto) GetStatus() string

func (*VolumeResponseDto) GetVmId

func (v *VolumeResponseDto) GetVmId() *string

func (*VolumeResponseDto) MarshalJSON

func (v *VolumeResponseDto) MarshalJSON() ([]byte, error)

func (*VolumeResponseDto) SetCreatedAt

func (v *VolumeResponseDto) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VolumeResponseDto) SetID

func (v *VolumeResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VolumeResponseDto) SetName

func (v *VolumeResponseDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VolumeResponseDto) SetRegion

func (v *VolumeResponseDto) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VolumeResponseDto) SetSizeGb

func (v *VolumeResponseDto) SetSizeGb(sizeGb int)

SetSizeGb sets the SizeGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VolumeResponseDto) SetStatus

func (v *VolumeResponseDto) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VolumeResponseDto) SetVmId

func (v *VolumeResponseDto) SetVmId(vmId *string)

SetVmId sets the VmId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VolumeResponseDto) String

func (v *VolumeResponseDto) String() string

func (*VolumeResponseDto) UnmarshalJSON

func (v *VolumeResponseDto) UnmarshalJSON(data []byte) error

type VpcNetworkConfigDto

type VpcNetworkConfigDto struct {
	// Identifier of the VPC the cluster will attach to.
	VpcID string `json:"vpcId" url:"vpcId"`
	// Identifier of the network tier within the VPC the cluster will attach to.
	NetworkID string `json:"networkId" url:"networkId"`
	// Zone name override for the cluster.
	ZoneName *string `json:"zoneName,omitempty" url:"zoneName,omitempty"`
	// contains filtered or unexported fields
}

func (*VpcNetworkConfigDto) GetExtraProperties

func (v *VpcNetworkConfigDto) GetExtraProperties() map[string]interface{}

func (*VpcNetworkConfigDto) GetNetworkID

func (v *VpcNetworkConfigDto) GetNetworkID() string

func (*VpcNetworkConfigDto) GetVpcID

func (v *VpcNetworkConfigDto) GetVpcID() string

func (*VpcNetworkConfigDto) GetZoneName

func (v *VpcNetworkConfigDto) GetZoneName() *string

func (*VpcNetworkConfigDto) MarshalJSON

func (v *VpcNetworkConfigDto) MarshalJSON() ([]byte, error)

func (*VpcNetworkConfigDto) SetNetworkID

func (v *VpcNetworkConfigDto) SetNetworkID(networkID string)

SetNetworkID sets the NetworkID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcNetworkConfigDto) SetVpcID

func (v *VpcNetworkConfigDto) SetVpcID(vpcID string)

SetVpcID sets the VpcID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcNetworkConfigDto) SetZoneName

func (v *VpcNetworkConfigDto) SetZoneName(zoneName *string)

SetZoneName sets the ZoneName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcNetworkConfigDto) String

func (v *VpcNetworkConfigDto) String() string

func (*VpcNetworkConfigDto) UnmarshalJSON

func (v *VpcNetworkConfigDto) UnmarshalJSON(data []byte) error

type VpcNetworkResponseDto

type VpcNetworkResponseDto struct {
	// Unique identifier for the VPC
	ID string `json:"id" url:"id"`
	// Name of the VPC
	Name string `json:"name" url:"name"`
	// Description of the VPC
	Description string `json:"description" url:"description"`
	// CIDR of the VPC
	Cidr string `json:"cidr" url:"cidr"`
	// VPC status
	Status VpcNetworkResponseDtoStatus `json:"status" url:"status"`
	// Region where the VPC is located
	Region string `json:"region" url:"region"`
	// VPC creation date
	CreatedAt *time.Time `json:"createdAt,omitempty" url:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (*VpcNetworkResponseDto) GetCidr

func (v *VpcNetworkResponseDto) GetCidr() string

func (*VpcNetworkResponseDto) GetCreatedAt

func (v *VpcNetworkResponseDto) GetCreatedAt() *time.Time

func (*VpcNetworkResponseDto) GetDescription

func (v *VpcNetworkResponseDto) GetDescription() string

func (*VpcNetworkResponseDto) GetExtraProperties

func (v *VpcNetworkResponseDto) GetExtraProperties() map[string]interface{}

func (*VpcNetworkResponseDto) GetID

func (v *VpcNetworkResponseDto) GetID() string

func (*VpcNetworkResponseDto) GetName

func (v *VpcNetworkResponseDto) GetName() string

func (*VpcNetworkResponseDto) GetRegion

func (v *VpcNetworkResponseDto) GetRegion() string

func (*VpcNetworkResponseDto) GetStatus

func (*VpcNetworkResponseDto) MarshalJSON

func (v *VpcNetworkResponseDto) MarshalJSON() ([]byte, error)

func (*VpcNetworkResponseDto) SetCidr

func (v *VpcNetworkResponseDto) SetCidr(cidr string)

SetCidr sets the Cidr field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcNetworkResponseDto) SetCreatedAt

func (v *VpcNetworkResponseDto) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcNetworkResponseDto) SetDescription

func (v *VpcNetworkResponseDto) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcNetworkResponseDto) SetID

func (v *VpcNetworkResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcNetworkResponseDto) SetName

func (v *VpcNetworkResponseDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcNetworkResponseDto) SetRegion

func (v *VpcNetworkResponseDto) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcNetworkResponseDto) SetStatus

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcNetworkResponseDto) String

func (v *VpcNetworkResponseDto) String() string

func (*VpcNetworkResponseDto) UnmarshalJSON

func (v *VpcNetworkResponseDto) UnmarshalJSON(data []byte) error

type VpcNetworkResponseDtoStatus

type VpcNetworkResponseDtoStatus string

VPC status

const (
	VpcNetworkResponseDtoStatusActive   VpcNetworkResponseDtoStatus = "Active"
	VpcNetworkResponseDtoStatusInactive VpcNetworkResponseDtoStatus = "Inactive"
	VpcNetworkResponseDtoStatusCreating VpcNetworkResponseDtoStatus = "Creating"
)

func NewVpcNetworkResponseDtoStatusFromString

func NewVpcNetworkResponseDtoStatusFromString(s string) (VpcNetworkResponseDtoStatus, error)

func (VpcNetworkResponseDtoStatus) Ptr

type VpcTierDetailResponseDto added in v1.3.0

type VpcTierDetailResponseDto struct {
	// Unique identifier for the tier
	ID string `json:"id" url:"id"`
	// Name of the tier
	Name string `json:"name" url:"name"`
	// Description of the tier
	Description string `json:"description" url:"description"`
	// CIDR of the tier
	Cidr string `json:"cidr" url:"cidr"`
	// Gateway IP address
	Gateway string `json:"gateway" url:"gateway"`
	// Netmask of the tier
	Netmask string `json:"netmask" url:"netmask"`
	// Network status
	Status VpcTierDetailResponseDtoStatus `json:"status" url:"status"`
	// Identifier of the ACL applied to this tier. Absent when no custom ACL is attached.
	AclId *string `json:"aclId,omitempty" url:"aclId,omitempty"`
	// Name of the ACL applied to this tier. Absent when no custom ACL is attached.
	ACLName *string `json:"aclName,omitempty" url:"aclName,omitempty"`
	// Region where the tier is located
	Region string `json:"region" url:"region"`
	// Tier creation date
	CreatedAt *time.Time `json:"createdAt,omitempty" url:"createdAt,omitempty"`
	// Identifier of the VPC that contains this tier
	VpcID string `json:"vpcId" url:"vpcId"`
	// Name of the VPC that contains this tier
	VpcName *string `json:"vpcName,omitempty" url:"vpcName,omitempty"`
	// contains filtered or unexported fields
}

func (*VpcTierDetailResponseDto) GetACLName added in v1.3.0

func (v *VpcTierDetailResponseDto) GetACLName() *string

func (*VpcTierDetailResponseDto) GetAclId added in v1.3.0

func (v *VpcTierDetailResponseDto) GetAclId() *string

func (*VpcTierDetailResponseDto) GetCidr added in v1.3.0

func (v *VpcTierDetailResponseDto) GetCidr() string

func (*VpcTierDetailResponseDto) GetCreatedAt added in v1.3.0

func (v *VpcTierDetailResponseDto) GetCreatedAt() *time.Time

func (*VpcTierDetailResponseDto) GetDescription added in v1.3.0

func (v *VpcTierDetailResponseDto) GetDescription() string

func (*VpcTierDetailResponseDto) GetExtraProperties added in v1.3.0

func (v *VpcTierDetailResponseDto) GetExtraProperties() map[string]interface{}

func (*VpcTierDetailResponseDto) GetGateway added in v1.3.0

func (v *VpcTierDetailResponseDto) GetGateway() string

func (*VpcTierDetailResponseDto) GetID added in v1.3.0

func (v *VpcTierDetailResponseDto) GetID() string

func (*VpcTierDetailResponseDto) GetName added in v1.3.0

func (v *VpcTierDetailResponseDto) GetName() string

func (*VpcTierDetailResponseDto) GetNetmask added in v1.3.0

func (v *VpcTierDetailResponseDto) GetNetmask() string

func (*VpcTierDetailResponseDto) GetRegion added in v1.3.0

func (v *VpcTierDetailResponseDto) GetRegion() string

func (*VpcTierDetailResponseDto) GetStatus added in v1.3.0

func (*VpcTierDetailResponseDto) GetVpcID added in v1.3.0

func (v *VpcTierDetailResponseDto) GetVpcID() string

func (*VpcTierDetailResponseDto) GetVpcName added in v1.3.0

func (v *VpcTierDetailResponseDto) GetVpcName() *string

func (*VpcTierDetailResponseDto) MarshalJSON added in v1.3.0

func (v *VpcTierDetailResponseDto) MarshalJSON() ([]byte, error)

func (*VpcTierDetailResponseDto) SetACLName added in v1.3.0

func (v *VpcTierDetailResponseDto) SetACLName(aclName *string)

SetACLName sets the ACLName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierDetailResponseDto) SetAclId added in v1.3.0

func (v *VpcTierDetailResponseDto) SetAclId(aclId *string)

SetAclId sets the AclId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierDetailResponseDto) SetCidr added in v1.3.0

func (v *VpcTierDetailResponseDto) SetCidr(cidr string)

SetCidr sets the Cidr field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierDetailResponseDto) SetCreatedAt added in v1.3.0

func (v *VpcTierDetailResponseDto) SetCreatedAt(createdAt *time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierDetailResponseDto) SetDescription added in v1.3.0

func (v *VpcTierDetailResponseDto) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierDetailResponseDto) SetGateway added in v1.3.0

func (v *VpcTierDetailResponseDto) SetGateway(gateway string)

SetGateway sets the Gateway field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierDetailResponseDto) SetID added in v1.3.0

func (v *VpcTierDetailResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierDetailResponseDto) SetName added in v1.3.0

func (v *VpcTierDetailResponseDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierDetailResponseDto) SetNetmask added in v1.3.0

func (v *VpcTierDetailResponseDto) SetNetmask(netmask string)

SetNetmask sets the Netmask field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierDetailResponseDto) SetRegion added in v1.3.0

func (v *VpcTierDetailResponseDto) SetRegion(region string)

SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierDetailResponseDto) SetStatus added in v1.3.0

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierDetailResponseDto) SetVpcID added in v1.3.0

func (v *VpcTierDetailResponseDto) SetVpcID(vpcID string)

SetVpcID sets the VpcID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierDetailResponseDto) SetVpcName added in v1.3.0

func (v *VpcTierDetailResponseDto) SetVpcName(vpcName *string)

SetVpcName sets the VpcName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierDetailResponseDto) String added in v1.3.0

func (v *VpcTierDetailResponseDto) String() string

func (*VpcTierDetailResponseDto) UnmarshalJSON added in v1.3.0

func (v *VpcTierDetailResponseDto) UnmarshalJSON(data []byte) error

type VpcTierDetailResponseDtoStatus added in v1.3.0

type VpcTierDetailResponseDtoStatus string

Network status

const (
	VpcTierDetailResponseDtoStatusActive    VpcTierDetailResponseDtoStatus = "Active"
	VpcTierDetailResponseDtoStatusAllocated VpcTierDetailResponseDtoStatus = "Allocated"
	VpcTierDetailResponseDtoStatusSetup     VpcTierDetailResponseDtoStatus = "Setup"
	VpcTierDetailResponseDtoStatusInactive  VpcTierDetailResponseDtoStatus = "Inactive"
)

func NewVpcTierDetailResponseDtoStatusFromString added in v1.3.0

func NewVpcTierDetailResponseDtoStatusFromString(s string) (VpcTierDetailResponseDtoStatus, error)

func (VpcTierDetailResponseDtoStatus) Ptr added in v1.3.0

type VpcTierResponseDto

type VpcTierResponseDto struct {
	// Unique identifier for the tier
	ID string `json:"id" url:"id"`
	// Name of the tier
	Name string `json:"name" url:"name"`
	// Description of the tier
	Description string `json:"description" url:"description"`
	// CIDR of the tier
	Cidr string `json:"cidr" url:"cidr"`
	// Gateway IP address
	Gateway string `json:"gateway" url:"gateway"`
	// Netmask of the tier
	Netmask string `json:"netmask" url:"netmask"`
	// Network status
	Status VpcTierResponseDtoStatus `json:"status" url:"status"`
	// Identifier of the ACL applied to this tier. Absent when no custom ACL is attached.
	AclId *string `json:"aclId,omitempty" url:"aclId,omitempty"`
	// Name of the ACL applied to this tier. Absent when no custom ACL is attached.
	ACLName *string `json:"aclName,omitempty" url:"aclName,omitempty"`
	// contains filtered or unexported fields
}

func (*VpcTierResponseDto) GetACLName

func (v *VpcTierResponseDto) GetACLName() *string

func (*VpcTierResponseDto) GetAclId added in v1.3.0

func (v *VpcTierResponseDto) GetAclId() *string

func (*VpcTierResponseDto) GetCidr

func (v *VpcTierResponseDto) GetCidr() string

func (*VpcTierResponseDto) GetDescription

func (v *VpcTierResponseDto) GetDescription() string

func (*VpcTierResponseDto) GetExtraProperties

func (v *VpcTierResponseDto) GetExtraProperties() map[string]interface{}

func (*VpcTierResponseDto) GetGateway

func (v *VpcTierResponseDto) GetGateway() string

func (*VpcTierResponseDto) GetID

func (v *VpcTierResponseDto) GetID() string

func (*VpcTierResponseDto) GetName

func (v *VpcTierResponseDto) GetName() string

func (*VpcTierResponseDto) GetNetmask

func (v *VpcTierResponseDto) GetNetmask() string

func (*VpcTierResponseDto) GetStatus

func (*VpcTierResponseDto) MarshalJSON

func (v *VpcTierResponseDto) MarshalJSON() ([]byte, error)

func (*VpcTierResponseDto) SetACLName

func (v *VpcTierResponseDto) SetACLName(aclName *string)

SetACLName sets the ACLName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierResponseDto) SetAclId added in v1.3.0

func (v *VpcTierResponseDto) SetAclId(aclId *string)

SetAclId sets the AclId field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierResponseDto) SetCidr

func (v *VpcTierResponseDto) SetCidr(cidr string)

SetCidr sets the Cidr field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierResponseDto) SetDescription

func (v *VpcTierResponseDto) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierResponseDto) SetGateway

func (v *VpcTierResponseDto) SetGateway(gateway string)

SetGateway sets the Gateway field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierResponseDto) SetID

func (v *VpcTierResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierResponseDto) SetName

func (v *VpcTierResponseDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierResponseDto) SetNetmask

func (v *VpcTierResponseDto) SetNetmask(netmask string)

SetNetmask sets the Netmask field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierResponseDto) SetStatus

func (v *VpcTierResponseDto) SetStatus(status VpcTierResponseDtoStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*VpcTierResponseDto) String

func (v *VpcTierResponseDto) String() string

func (*VpcTierResponseDto) UnmarshalJSON

func (v *VpcTierResponseDto) UnmarshalJSON(data []byte) error

type VpcTierResponseDtoStatus

type VpcTierResponseDtoStatus string

Network status

const (
	VpcTierResponseDtoStatusActive    VpcTierResponseDtoStatus = "Active"
	VpcTierResponseDtoStatusAllocated VpcTierResponseDtoStatus = "Allocated"
	VpcTierResponseDtoStatusSetup     VpcTierResponseDtoStatus = "Setup"
	VpcTierResponseDtoStatusInactive  VpcTierResponseDtoStatus = "Inactive"
)

func NewVpcTierResponseDtoStatusFromString

func NewVpcTierResponseDtoStatusFromString(s string) (VpcTierResponseDtoStatus, error)

func (VpcTierResponseDtoStatus) Ptr

type WebsiteInfoDto

type WebsiteInfoDto struct {
	// Domain the WordPress site is reached at.
	Domain string `json:"domain" url:"domain"`
	// Full URL of the WordPress site.
	SiteURL string `json:"siteUrl" url:"siteUrl"`
	// Site title configured in WordPress.
	SiteName string `json:"siteName" url:"siteName"`
	// Tagline or short description configured in WordPress.
	Description string `json:"description" url:"description"`
	// Slug of the currently active WordPress theme.
	Theme string `json:"theme" url:"theme"`
	// Current operational state of the site.
	Status string `json:"status" url:"status"`
	// Whether the site is served on a temporary platform-provided domain.
	IsTemporaryDomain bool `json:"isTemporaryDomain" url:"isTemporaryDomain"`
	// Whether this site is the primary domain for the instance.
	IsMainDomain bool `json:"isMainDomain" url:"isMainDomain"`
	// Whether this site is a staging site.
	IsStaging bool `json:"isStaging" url:"isStaging"`
	// Current database size for the site, in bytes.
	DatabaseSizeBytes float64 `json:"databaseSizeBytes" url:"databaseSizeBytes"`
	// Current files-on-disk size for the site, in bytes.
	FilesSizeBytes float64 `json:"filesSizeBytes" url:"filesSizeBytes"`
	// Number of installed plugins with updates available.
	PluginUpdatesAvailable *float64 `json:"pluginUpdatesAvailable,omitempty" url:"pluginUpdatesAvailable,omitempty"`
	// Number of installed themes with updates available.
	ThemeUpdatesAvailable *float64 `json:"themeUpdatesAvailable,omitempty" url:"themeUpdatesAvailable,omitempty"`
	// Version of WordPress currently installed.
	WordpressVersion *string `json:"wordpressVersion,omitempty" url:"wordpressVersion,omitempty"`
	// contains filtered or unexported fields
}

func (*WebsiteInfoDto) GetDatabaseSizeBytes

func (w *WebsiteInfoDto) GetDatabaseSizeBytes() float64

func (*WebsiteInfoDto) GetDescription

func (w *WebsiteInfoDto) GetDescription() string

func (*WebsiteInfoDto) GetDomain

func (w *WebsiteInfoDto) GetDomain() string

func (*WebsiteInfoDto) GetExtraProperties

func (w *WebsiteInfoDto) GetExtraProperties() map[string]interface{}

func (*WebsiteInfoDto) GetFilesSizeBytes

func (w *WebsiteInfoDto) GetFilesSizeBytes() float64

func (*WebsiteInfoDto) GetIsMainDomain

func (w *WebsiteInfoDto) GetIsMainDomain() bool

func (*WebsiteInfoDto) GetIsStaging

func (w *WebsiteInfoDto) GetIsStaging() bool

func (*WebsiteInfoDto) GetIsTemporaryDomain

func (w *WebsiteInfoDto) GetIsTemporaryDomain() bool

func (*WebsiteInfoDto) GetPluginUpdatesAvailable

func (w *WebsiteInfoDto) GetPluginUpdatesAvailable() *float64

func (*WebsiteInfoDto) GetSiteName

func (w *WebsiteInfoDto) GetSiteName() string

func (*WebsiteInfoDto) GetSiteURL

func (w *WebsiteInfoDto) GetSiteURL() string

func (*WebsiteInfoDto) GetStatus

func (w *WebsiteInfoDto) GetStatus() string

func (*WebsiteInfoDto) GetTheme

func (w *WebsiteInfoDto) GetTheme() string

func (*WebsiteInfoDto) GetThemeUpdatesAvailable

func (w *WebsiteInfoDto) GetThemeUpdatesAvailable() *float64

func (*WebsiteInfoDto) GetWordpressVersion

func (w *WebsiteInfoDto) GetWordpressVersion() *string

func (*WebsiteInfoDto) MarshalJSON

func (w *WebsiteInfoDto) MarshalJSON() ([]byte, error)

func (*WebsiteInfoDto) SetDatabaseSizeBytes

func (w *WebsiteInfoDto) SetDatabaseSizeBytes(databaseSizeBytes float64)

SetDatabaseSizeBytes sets the DatabaseSizeBytes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsiteInfoDto) SetDescription

func (w *WebsiteInfoDto) SetDescription(description string)

SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsiteInfoDto) SetDomain

func (w *WebsiteInfoDto) SetDomain(domain string)

SetDomain sets the Domain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsiteInfoDto) SetFilesSizeBytes

func (w *WebsiteInfoDto) SetFilesSizeBytes(filesSizeBytes float64)

SetFilesSizeBytes sets the FilesSizeBytes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsiteInfoDto) SetIsMainDomain

func (w *WebsiteInfoDto) SetIsMainDomain(isMainDomain bool)

SetIsMainDomain sets the IsMainDomain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsiteInfoDto) SetIsStaging

func (w *WebsiteInfoDto) SetIsStaging(isStaging bool)

SetIsStaging sets the IsStaging field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsiteInfoDto) SetIsTemporaryDomain

func (w *WebsiteInfoDto) SetIsTemporaryDomain(isTemporaryDomain bool)

SetIsTemporaryDomain sets the IsTemporaryDomain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsiteInfoDto) SetPluginUpdatesAvailable

func (w *WebsiteInfoDto) SetPluginUpdatesAvailable(pluginUpdatesAvailable *float64)

SetPluginUpdatesAvailable sets the PluginUpdatesAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsiteInfoDto) SetSiteName

func (w *WebsiteInfoDto) SetSiteName(siteName string)

SetSiteName sets the SiteName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsiteInfoDto) SetSiteURL

func (w *WebsiteInfoDto) SetSiteURL(siteURL string)

SetSiteURL sets the SiteURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsiteInfoDto) SetStatus

func (w *WebsiteInfoDto) SetStatus(status string)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsiteInfoDto) SetTheme

func (w *WebsiteInfoDto) SetTheme(theme string)

SetTheme sets the Theme field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsiteInfoDto) SetThemeUpdatesAvailable

func (w *WebsiteInfoDto) SetThemeUpdatesAvailable(themeUpdatesAvailable *float64)

SetThemeUpdatesAvailable sets the ThemeUpdatesAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsiteInfoDto) SetWordpressVersion

func (w *WebsiteInfoDto) SetWordpressVersion(wordpressVersion *string)

SetWordpressVersion sets the WordpressVersion field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsiteInfoDto) String

func (w *WebsiteInfoDto) String() string

func (*WebsiteInfoDto) UnmarshalJSON

func (w *WebsiteInfoDto) UnmarshalJSON(data []byte) error

type WebsitesDto

type WebsitesDto struct {
	// Whether the operation succeeded.
	Success bool `json:"success" url:"success"`
	// Sites hosted on the WordPress instance.
	Data []*WebsiteInfoDto `json:"data,omitempty" url:"data,omitempty"`
	// Error message describing why the operation failed.
	Message *string `json:"message,omitempty" url:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*WebsitesDto) GetData

func (w *WebsitesDto) GetData() []*WebsiteInfoDto

func (*WebsitesDto) GetExtraProperties

func (w *WebsitesDto) GetExtraProperties() map[string]interface{}

func (*WebsitesDto) GetMessage

func (w *WebsitesDto) GetMessage() *string

func (*WebsitesDto) GetSuccess

func (w *WebsitesDto) GetSuccess() bool

func (*WebsitesDto) MarshalJSON

func (w *WebsitesDto) MarshalJSON() ([]byte, error)

func (*WebsitesDto) SetData

func (w *WebsitesDto) SetData(data []*WebsiteInfoDto)

SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsitesDto) SetMessage

func (w *WebsitesDto) SetMessage(message *string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsitesDto) SetSuccess

func (w *WebsitesDto) SetSuccess(success bool)

SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WebsitesDto) String

func (w *WebsitesDto) String() string

func (*WebsitesDto) UnmarshalJSON

func (w *WebsitesDto) UnmarshalJSON(data []byte) error

type WordPressInstanceDto

type WordPressInstanceDto struct {
	// Unique identifier for the WordPress instance.
	ID string `json:"id" url:"id"`
	// WordPress username on the hosting platform.
	Username string `json:"username" url:"username"`
	// Display name for the WordPress instance.
	Name string `json:"name" url:"name"`
	// Label of the package currently applied to the instance.
	PackageLabel string `json:"packageLabel" url:"packageLabel"`
	// Display name of the package currently applied to the instance.
	PackageDisplayName string `json:"packageDisplayName" url:"packageDisplayName"`
	// Monthly billing rate for the current package, in US dollars.
	RateMonthly string `json:"rateMonthly" url:"rateMonthly"`
	// When the WordPress instance was provisioned.
	CreatedAt time.Time `json:"createdAt" url:"createdAt"`
	// When the WordPress instance was deleted. Omitted if still active.
	DeletedAt *time.Time `json:"deletedAt,omitempty" url:"deletedAt,omitempty"`
	// Whether the WordPress instance is fully provisioned and ready to use.
	Ready bool `json:"ready" url:"ready"`
	// State of the instance. `provisioning` while the site is being set up, `active` once it is ready, `failed` if it could not be created.
	Status WordPressInstanceDtoStatus `json:"status" url:"status"`
	// Why the instance could not be created. Present only when `status` is `failed`.
	FailureReason *string `json:"failureReason,omitempty" url:"failureReason,omitempty"`
	// contains filtered or unexported fields
}

func (*WordPressInstanceDto) GetCreatedAt

func (w *WordPressInstanceDto) GetCreatedAt() time.Time

func (*WordPressInstanceDto) GetDeletedAt

func (w *WordPressInstanceDto) GetDeletedAt() *time.Time

func (*WordPressInstanceDto) GetExtraProperties

func (w *WordPressInstanceDto) GetExtraProperties() map[string]interface{}

func (*WordPressInstanceDto) GetFailureReason added in v1.4.0

func (w *WordPressInstanceDto) GetFailureReason() *string

func (*WordPressInstanceDto) GetID

func (w *WordPressInstanceDto) GetID() string

func (*WordPressInstanceDto) GetName

func (w *WordPressInstanceDto) GetName() string

func (*WordPressInstanceDto) GetPackageDisplayName

func (w *WordPressInstanceDto) GetPackageDisplayName() string

func (*WordPressInstanceDto) GetPackageLabel

func (w *WordPressInstanceDto) GetPackageLabel() string

func (*WordPressInstanceDto) GetRateMonthly

func (w *WordPressInstanceDto) GetRateMonthly() string

func (*WordPressInstanceDto) GetReady

func (w *WordPressInstanceDto) GetReady() bool

func (*WordPressInstanceDto) GetStatus added in v1.4.0

func (*WordPressInstanceDto) GetUsername

func (w *WordPressInstanceDto) GetUsername() string

func (*WordPressInstanceDto) MarshalJSON

func (w *WordPressInstanceDto) MarshalJSON() ([]byte, error)

func (*WordPressInstanceDto) SetCreatedAt

func (w *WordPressInstanceDto) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressInstanceDto) SetDeletedAt

func (w *WordPressInstanceDto) SetDeletedAt(deletedAt *time.Time)

SetDeletedAt sets the DeletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressInstanceDto) SetFailureReason added in v1.4.0

func (w *WordPressInstanceDto) SetFailureReason(failureReason *string)

SetFailureReason sets the FailureReason field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressInstanceDto) SetID

func (w *WordPressInstanceDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressInstanceDto) SetName

func (w *WordPressInstanceDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressInstanceDto) SetPackageDisplayName

func (w *WordPressInstanceDto) SetPackageDisplayName(packageDisplayName string)

SetPackageDisplayName sets the PackageDisplayName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressInstanceDto) SetPackageLabel

func (w *WordPressInstanceDto) SetPackageLabel(packageLabel string)

SetPackageLabel sets the PackageLabel field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressInstanceDto) SetRateMonthly

func (w *WordPressInstanceDto) SetRateMonthly(rateMonthly string)

SetRateMonthly sets the RateMonthly field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressInstanceDto) SetReady

func (w *WordPressInstanceDto) SetReady(ready bool)

SetReady sets the Ready field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressInstanceDto) SetStatus added in v1.4.0

func (w *WordPressInstanceDto) SetStatus(status WordPressInstanceDtoStatus)

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressInstanceDto) SetUsername

func (w *WordPressInstanceDto) SetUsername(username string)

SetUsername sets the Username field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressInstanceDto) String

func (w *WordPressInstanceDto) String() string

func (*WordPressInstanceDto) UnmarshalJSON

func (w *WordPressInstanceDto) UnmarshalJSON(data []byte) error

type WordPressInstanceDtoStatus added in v1.4.0

type WordPressInstanceDtoStatus string

State of the instance. `provisioning` while the site is being set up, `active` once it is ready, `failed` if it could not be created.

const (
	WordPressInstanceDtoStatusProvisioning WordPressInstanceDtoStatus = "provisioning"
	WordPressInstanceDtoStatusActive       WordPressInstanceDtoStatus = "active"
	WordPressInstanceDtoStatusFailed       WordPressInstanceDtoStatus = "failed"
	WordPressInstanceDtoStatusDeleting     WordPressInstanceDtoStatus = "deleting"
)

func NewWordPressInstanceDtoStatusFromString added in v1.4.0

func NewWordPressInstanceDtoStatusFromString(s string) (WordPressInstanceDtoStatus, error)

func (WordPressInstanceDtoStatus) Ptr added in v1.4.0

type WordPressPackageDto

type WordPressPackageDto struct {
	// Package label used to identify the package when ordering.
	LabelName string `json:"labelName" url:"labelName"`
	// Friendly name of the package.
	DisplayName string `json:"displayName" url:"displayName"`
	// Monthly billing rate for the package, in US dollars.
	RateMonthly string `json:"rateMonthly" url:"rateMonthly"`
	// Resource limits and marketing metadata for the package.
	Metadata *WordPressPackageMetadataDto `json:"metadata" url:"metadata"`
	// contains filtered or unexported fields
}

func (*WordPressPackageDto) GetDisplayName

func (w *WordPressPackageDto) GetDisplayName() string

func (*WordPressPackageDto) GetExtraProperties

func (w *WordPressPackageDto) GetExtraProperties() map[string]interface{}

func (*WordPressPackageDto) GetLabelName

func (w *WordPressPackageDto) GetLabelName() string

func (*WordPressPackageDto) GetMetadata

func (*WordPressPackageDto) GetRateMonthly

func (w *WordPressPackageDto) GetRateMonthly() string

func (*WordPressPackageDto) MarshalJSON

func (w *WordPressPackageDto) MarshalJSON() ([]byte, error)

func (*WordPressPackageDto) SetDisplayName

func (w *WordPressPackageDto) SetDisplayName(displayName string)

SetDisplayName sets the DisplayName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressPackageDto) SetLabelName

func (w *WordPressPackageDto) SetLabelName(labelName string)

SetLabelName sets the LabelName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressPackageDto) SetMetadata

func (w *WordPressPackageDto) SetMetadata(metadata *WordPressPackageMetadataDto)

SetMetadata sets the Metadata field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressPackageDto) SetRateMonthly

func (w *WordPressPackageDto) SetRateMonthly(rateMonthly string)

SetRateMonthly sets the RateMonthly field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressPackageDto) String

func (w *WordPressPackageDto) String() string

func (*WordPressPackageDto) UnmarshalJSON

func (w *WordPressPackageDto) UnmarshalJSON(data []byte) error

type WordPressPackageMetadataDto

type WordPressPackageMetadataDto struct {
	// Disk space included with the package, in gigabytes.
	DiskGb float64 `json:"diskGb" url:"diskGb"`
	// Number of sites the package allows.
	NumSites float64 `json:"numSites" url:"numSites"`
	// Monthly bandwidth allowance, in gigabytes.
	BandwidthGb float64 `json:"bandwidthGb" url:"bandwidthGb"`
	// Monthly visits the package is sized for.
	VisitsMonthly float64 `json:"visitsMonthly" url:"visitsMonthly"`
	// Short marketing subtitle shown on package selection.
	MarketingSubtitle *string `json:"marketingSubtitle,omitempty" url:"marketingSubtitle,omitempty"`
	// Optional promotional badge text shown on the package card.
	PromoBadge *string `json:"promoBadge,omitempty" url:"promoBadge,omitempty"`
	// contains filtered or unexported fields
}

func (*WordPressPackageMetadataDto) GetBandwidthGb

func (w *WordPressPackageMetadataDto) GetBandwidthGb() float64

func (*WordPressPackageMetadataDto) GetDiskGb

func (w *WordPressPackageMetadataDto) GetDiskGb() float64

func (*WordPressPackageMetadataDto) GetExtraProperties

func (w *WordPressPackageMetadataDto) GetExtraProperties() map[string]interface{}

func (*WordPressPackageMetadataDto) GetMarketingSubtitle

func (w *WordPressPackageMetadataDto) GetMarketingSubtitle() *string

func (*WordPressPackageMetadataDto) GetNumSites

func (w *WordPressPackageMetadataDto) GetNumSites() float64

func (*WordPressPackageMetadataDto) GetPromoBadge

func (w *WordPressPackageMetadataDto) GetPromoBadge() *string

func (*WordPressPackageMetadataDto) GetVisitsMonthly

func (w *WordPressPackageMetadataDto) GetVisitsMonthly() float64

func (*WordPressPackageMetadataDto) MarshalJSON

func (w *WordPressPackageMetadataDto) MarshalJSON() ([]byte, error)

func (*WordPressPackageMetadataDto) SetBandwidthGb

func (w *WordPressPackageMetadataDto) SetBandwidthGb(bandwidthGb float64)

SetBandwidthGb sets the BandwidthGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressPackageMetadataDto) SetDiskGb

func (w *WordPressPackageMetadataDto) SetDiskGb(diskGb float64)

SetDiskGb sets the DiskGb field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressPackageMetadataDto) SetMarketingSubtitle

func (w *WordPressPackageMetadataDto) SetMarketingSubtitle(marketingSubtitle *string)

SetMarketingSubtitle sets the MarketingSubtitle field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressPackageMetadataDto) SetNumSites

func (w *WordPressPackageMetadataDto) SetNumSites(numSites float64)

SetNumSites sets the NumSites field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressPackageMetadataDto) SetPromoBadge

func (w *WordPressPackageMetadataDto) SetPromoBadge(promoBadge *string)

SetPromoBadge sets the PromoBadge field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressPackageMetadataDto) SetVisitsMonthly

func (w *WordPressPackageMetadataDto) SetVisitsMonthly(visitsMonthly float64)

SetVisitsMonthly sets the VisitsMonthly field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressPackageMetadataDto) String

func (w *WordPressPackageMetadataDto) String() string

func (*WordPressPackageMetadataDto) UnmarshalJSON

func (w *WordPressPackageMetadataDto) UnmarshalJSON(data []byte) error

type WordPressSuccessResponseDto

type WordPressSuccessResponseDto struct {
	// Whether the operation succeeded.
	Success bool `json:"success" url:"success"`
	// Human-readable result message.
	Message *string `json:"message,omitempty" url:"message,omitempty"`
	// Identifier of the WordPress instance that was created. Use it to poll the instance while it is being set up.
	ID *string `json:"id,omitempty" url:"id,omitempty"`
	// State of the new instance. Creation is asynchronous, so a successful request returns `provisioning` and the site becomes `active` once it is ready.
	Status *WordPressSuccessResponseDtoStatus `json:"status,omitempty" url:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*WordPressSuccessResponseDto) GetExtraProperties

func (w *WordPressSuccessResponseDto) GetExtraProperties() map[string]interface{}

func (*WordPressSuccessResponseDto) GetID added in v1.4.0

func (w *WordPressSuccessResponseDto) GetID() *string

func (*WordPressSuccessResponseDto) GetMessage

func (w *WordPressSuccessResponseDto) GetMessage() *string

func (*WordPressSuccessResponseDto) GetStatus added in v1.4.0

func (*WordPressSuccessResponseDto) GetSuccess

func (w *WordPressSuccessResponseDto) GetSuccess() bool

func (*WordPressSuccessResponseDto) MarshalJSON

func (w *WordPressSuccessResponseDto) MarshalJSON() ([]byte, error)

func (*WordPressSuccessResponseDto) SetID added in v1.4.0

func (w *WordPressSuccessResponseDto) SetID(id *string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressSuccessResponseDto) SetMessage

func (w *WordPressSuccessResponseDto) SetMessage(message *string)

SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressSuccessResponseDto) SetStatus added in v1.4.0

SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressSuccessResponseDto) SetSuccess

func (w *WordPressSuccessResponseDto) SetSuccess(success bool)

SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*WordPressSuccessResponseDto) String

func (w *WordPressSuccessResponseDto) String() string

func (*WordPressSuccessResponseDto) UnmarshalJSON

func (w *WordPressSuccessResponseDto) UnmarshalJSON(data []byte) error

type WordPressSuccessResponseDtoStatus added in v1.4.0

type WordPressSuccessResponseDtoStatus string

State of the new instance. Creation is asynchronous, so a successful request returns `provisioning` and the site becomes `active` once it is ready.

const (
	WordPressSuccessResponseDtoStatusProvisioning WordPressSuccessResponseDtoStatus = "provisioning"
	WordPressSuccessResponseDtoStatusActive       WordPressSuccessResponseDtoStatus = "active"
	WordPressSuccessResponseDtoStatusFailed       WordPressSuccessResponseDtoStatus = "failed"
	WordPressSuccessResponseDtoStatusDeleting     WordPressSuccessResponseDtoStatus = "deleting"
)

func NewWordPressSuccessResponseDtoStatusFromString added in v1.4.0

func NewWordPressSuccessResponseDtoStatusFromString(s string) (WordPressSuccessResponseDtoStatus, error)

func (WordPressSuccessResponseDtoStatus) Ptr added in v1.4.0

type ZoneResponseDto

type ZoneResponseDto struct {
	// Zone identifier
	ID string `json:"id" url:"id"`
	// Domain name
	Name string `json:"name" url:"name"`
	// Zone creation date
	CreatedAt time.Time `json:"createdAt" url:"createdAt"`
	// contains filtered or unexported fields
}

func (*ZoneResponseDto) GetCreatedAt

func (z *ZoneResponseDto) GetCreatedAt() time.Time

func (*ZoneResponseDto) GetExtraProperties

func (z *ZoneResponseDto) GetExtraProperties() map[string]interface{}

func (*ZoneResponseDto) GetID

func (z *ZoneResponseDto) GetID() string

func (*ZoneResponseDto) GetName

func (z *ZoneResponseDto) GetName() string

func (*ZoneResponseDto) MarshalJSON

func (z *ZoneResponseDto) MarshalJSON() ([]byte, error)

func (*ZoneResponseDto) SetCreatedAt

func (z *ZoneResponseDto) SetCreatedAt(createdAt time.Time)

SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ZoneResponseDto) SetID

func (z *ZoneResponseDto) SetID(id string)

SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ZoneResponseDto) SetName

func (z *ZoneResponseDto) SetName(name string)

SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.

func (*ZoneResponseDto) String

func (z *ZoneResponseDto) String() string

func (*ZoneResponseDto) UnmarshalJSON

func (z *ZoneResponseDto) UnmarshalJSON(data []byte) error

Directories

Path Synopsis
Block storage volumes attached to VMs and Kubernetes nodes
Block storage volumes attached to VMs and Kubernetes nodes
List and restore backups for managed database clusters
List and restore backups for managed database clusters
Networking and infrastructure configuration for managed databases
Networking and infrastructure configuration for managed databases
Available compute and storage tiers for managed databases
Available compute and storage tiers for managed databases
Operation history and status for managed database clusters
Operation history and status for managed database clusters
Regions in which managed databases are available
Regions in which managed databases are available
Managed database clusters (MySQL, PostgreSQL, Redis)
Managed database clusters (MySQL, PostgreSQL, Redis)
DNS records (A, AAAA, CNAME, MX, NS, SRV, TXT) within a hosted zone
DNS records (A, AAAA, CNAME, MX, NS, SRV, TXT) within a hosted zone
Hosted DNS zones for domains you own
Hosted DNS zones for domains you own
Outbound (egress) traffic rules for isolated networks
Outbound (egress) traffic rules for isolated networks
Inbound firewall rules for public IP addresses
Inbound firewall rules for public IP addresses
VM templates and ISOs available for instance creation
VM templates and ISOs available for instance creation
Isolated (single-tier private) networks
Isolated (single-tier private) networks
Managed Kubernetes clusters with autoscaling node groups
Managed Kubernetes clusters with autoscaling node groups
Load balancer rules for public IP addresses
Load balancer rules for public IP addresses
Network access control lists applied to VPC tiers
Network access control lists applied to VPC tiers
S3-compatible object storage buckets
S3-compatible object storage buckets
Port forwarding rules for public IP addresses
Port forwarding rules for public IP addresses
Public IP address allocation, release, and static NAT
Public IP address allocation, release, and static NAT
Compute regions where infrastructure can be provisioned
Compute regions where infrastructure can be provisioned
Point-in-time snapshots of block storage and root volumes
Point-in-time snapshots of block storage and root volumes
SSH key pairs used for VM access
SSH key pairs used for VM access
Pre-defined compute packages (CPU + memory combinations) for VMs
Pre-defined compute packages (CPU + memory combinations) for VMs
Virtual machine lifecycle — create, power, scale, reinstall, destroy
Virtual machine lifecycle — create, power, scale, reinstall, destroy
Virtual Private Cloud networks with multiple tier subnets
Virtual Private Cloud networks with multiple tier subnets
Managed WordPress sites
Managed WordPress sites

Jump to

Keyboard shortcuts

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