models

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsCredentials

type AwsCredentials struct {

	// role arn
	// Required: true
	RoleArn *string `json:"role_arn"`
}

AwsCredentials aws credentials

swagger:model AwsCredentials

func (*AwsCredentials) ContextValidate

func (m *AwsCredentials) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this aws credentials based on context it is used

func (*AwsCredentials) MarshalBinary

func (m *AwsCredentials) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AwsCredentials) UnmarshalBinary

func (m *AwsCredentials) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AwsCredentials) Validate

func (m *AwsCredentials) Validate(formats strfmt.Registry) error

Validate validates this aws credentials

type AzureCredentials

type AzureCredentials struct {

	// client id
	// Required: true
	ClientID *string `json:"client_id"`

	// client secret
	// Required: true
	ClientSecret *string `json:"client_secret"`

	// resource group
	ResourceGroup string `json:"resource_group,omitempty"`

	// subscription id
	// Required: true
	SubscriptionID *string `json:"subscription_id"`

	// tenant id
	// Required: true
	TenantID *string `json:"tenant_id"`
}

AzureCredentials azure credentials

swagger:model AzureCredentials

func (*AzureCredentials) ContextValidate

func (m *AzureCredentials) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this azure credentials based on context it is used

func (*AzureCredentials) MarshalBinary

func (m *AzureCredentials) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AzureCredentials) UnmarshalBinary

func (m *AzureCredentials) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AzureCredentials) Validate

func (m *AzureCredentials) Validate(formats strfmt.Registry) error

Validate validates this azure credentials

type BackupConfig

type BackupConfig struct {

	// id
	// Required: true
	ID *string `json:"id"`

	// node name
	NodeName string `json:"node_name,omitempty"`

	// repositories
	Repositories []*BackupRepository `json:"repositories"`

	// schedules
	Schedules []*BackupSchedule `json:"schedules"`
}

BackupConfig backup config

swagger:model BackupConfig

func (*BackupConfig) ContextValidate

func (m *BackupConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this backup config based on the context it is used

func (*BackupConfig) MarshalBinary

func (m *BackupConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BackupConfig) UnmarshalBinary

func (m *BackupConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BackupConfig) Validate

func (m *BackupConfig) Validate(formats strfmt.Registry) error

Validate validates this backup config

type BackupRepository

type BackupRepository struct {

	// azure account
	AzureAccount string `json:"azure_account,omitempty"`

	// azure container
	AzureContainer string `json:"azure_container,omitempty"`

	// azure endpoint
	AzureEndpoint string `json:"azure_endpoint,omitempty"`

	// backup store id
	BackupStoreID string `json:"backup_store_id,omitempty"`

	// base path
	BasePath string `json:"base_path,omitempty"`

	// created at
	CreatedAt string `json:"created_at,omitempty"`

	// database id
	// Format: uuid
	DatabaseID strfmt.UUID `json:"database_id,omitempty"`

	// gcs bucket
	GcsBucket string `json:"gcs_bucket,omitempty"`

	// gcs endpoint
	GcsEndpoint string `json:"gcs_endpoint,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// retention full
	RetentionFull int64 `json:"retention_full,omitempty"`

	// retention full type
	RetentionFullType string `json:"retention_full_type,omitempty"`

	// s3 bucket
	S3Bucket string `json:"s3_bucket,omitempty"`

	// s3 endpoint
	S3Endpoint string `json:"s3_endpoint,omitempty"`

	// s3 region
	S3Region string `json:"s3_region,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

BackupRepository backup repository

swagger:model BackupRepository

func (*BackupRepository) ContextValidate

func (m *BackupRepository) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this backup repository based on context it is used

func (*BackupRepository) MarshalBinary

func (m *BackupRepository) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BackupRepository) UnmarshalBinary

func (m *BackupRepository) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BackupRepository) Validate

func (m *BackupRepository) Validate(formats strfmt.Registry) error

Validate validates this backup repository

type BackupSchedule

type BackupSchedule struct {

	// cron expression
	// Required: true
	CronExpression *string `json:"cron_expression"`

	// id
	// Required: true
	ID *string `json:"id"`

	// type
	// Required: true
	Type *string `json:"type"`
}

BackupSchedule backup schedule

swagger:model BackupSchedule

func (*BackupSchedule) ContextValidate

func (m *BackupSchedule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this backup schedule based on context it is used

func (*BackupSchedule) MarshalBinary

func (m *BackupSchedule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BackupSchedule) UnmarshalBinary

func (m *BackupSchedule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BackupSchedule) Validate

func (m *BackupSchedule) Validate(formats strfmt.Registry) error

Validate validates this backup schedule

type BackupStore

type BackupStore struct {

	// The ID of the cloud account used for the backup store.
	// Required: true
	CloudAccountID *string `json:"cloud_account_id"`

	// The type of the cloud account used for the backup store.
	// Required: true
	CloudAccountType *string `json:"cloud_account_type"`

	// The IDs of the clusters that use the backup store.
	ClusterIds []string `json:"cluster_ids"`

	// The time the backup store was created.
	// Required: true
	CreatedAt *string `json:"created_at"`

	// The ID of the backup store.
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// The name of the backup store.
	// Required: true
	Name *string `json:"name"`

	// The computed properties of the backup store.
	Properties interface{} `json:"properties,omitempty"`

	// The status of the backup store.
	// Required: true
	Status *string `json:"status"`

	// The time the backup store was last updated.
	// Required: true
	UpdatedAt *string `json:"updated_at"`
}

BackupStore backup store

swagger:model BackupStore

func (*BackupStore) ContextValidate

func (m *BackupStore) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this backup store based on context it is used

func (*BackupStore) MarshalBinary

func (m *BackupStore) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BackupStore) UnmarshalBinary

func (m *BackupStore) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BackupStore) Validate

func (m *BackupStore) Validate(formats strfmt.Registry) error

Validate validates this backup store

type Backups

type Backups struct {

	// config
	Config []*BackupConfig `json:"config"`

	// provider
	// Required: true
	Provider *string `json:"provider"`
}

Backups backups

swagger:model Backups

func (*Backups) ContextValidate

func (m *Backups) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this backups based on the context it is used

func (*Backups) MarshalBinary

func (m *Backups) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Backups) UnmarshalBinary

func (m *Backups) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Backups) Validate

func (m *Backups) Validate(formats strfmt.Registry) error

Validate validates this backups

type CloudAccount

type CloudAccount struct {

	// created at
	// Required: true
	CreatedAt *string `json:"created_at"`

	// description
	Description string `json:"description,omitempty"`

	// id
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// name
	// Required: true
	Name *string `json:"name"`

	// properties
	// Required: true
	Properties interface{} `json:"properties"`

	// type
	// Required: true
	Type *string `json:"type"`

	// updated at
	// Required: true
	UpdatedAt *string `json:"updated_at"`
}

CloudAccount cloud account

swagger:model CloudAccount

func (*CloudAccount) ContextValidate

func (m *CloudAccount) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cloud account based on context it is used

func (*CloudAccount) MarshalBinary

func (m *CloudAccount) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CloudAccount) UnmarshalBinary

func (m *CloudAccount) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CloudAccount) Validate

func (m *CloudAccount) Validate(formats strfmt.Registry) error

Validate validates this cloud account

type CloudAccountProperties

type CloudAccountProperties struct {

	// id
	// Required: true
	ID *string `json:"id"`

	// name
	Name string `json:"name,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

CloudAccountProperties cloud account properties

swagger:model CloudAccountProperties

func (*CloudAccountProperties) ContextValidate

func (m *CloudAccountProperties) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cloud account properties based on context it is used

func (*CloudAccountProperties) MarshalBinary

func (m *CloudAccountProperties) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CloudAccountProperties) UnmarshalBinary

func (m *CloudAccountProperties) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CloudAccountProperties) Validate

func (m *CloudAccountProperties) Validate(formats strfmt.Registry) error

Validate validates this cloud account properties

type Cluster

type Cluster struct {

	// backup store ids
	BackupStoreIds []string `json:"backup_store_ids"`

	// capacity
	Capacity int64 `json:"capacity,omitempty"`

	// cloud account
	// Required: true
	CloudAccount *CloudAccountProperties `json:"cloud_account"`

	// created at
	// Required: true
	CreatedAt *string `json:"created_at"`

	// firewall rules
	FirewallRules []*ClusterFirewallRuleSettings `json:"firewall_rules"`

	// id
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// name
	// Required: true
	Name *string `json:"name"`

	// networks
	Networks []*ClusterNetworkSettings `json:"networks"`

	// node location
	// Required: true
	NodeLocation *string `json:"node_location"`

	// nodes
	Nodes []*ClusterNodeSettings `json:"nodes"`

	// regions
	// Required: true
	Regions []string `json:"regions"`

	// resource tags
	ResourceTags map[string]string `json:"resource_tags,omitempty"`

	// ssh key id
	SSHKeyID string `json:"ssh_key_id,omitempty"`

	// status
	// Required: true
	Status *string `json:"status"`
}

Cluster cluster

swagger:model Cluster

func (*Cluster) ContextValidate

func (m *Cluster) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cluster based on the context it is used

func (*Cluster) MarshalBinary

func (m *Cluster) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Cluster) UnmarshalBinary

func (m *Cluster) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Cluster) Validate

func (m *Cluster) Validate(formats strfmt.Registry) error

Validate validates this cluster

type ClusterFirewallRuleSettings

type ClusterFirewallRuleSettings struct {

	// name
	Name string `json:"name,omitempty"`

	// port
	// Required: true
	Port *int64 `json:"port"`

	// sources
	// Required: true
	Sources []string `json:"sources"`
}

ClusterFirewallRuleSettings cluster firewall rule settings

swagger:model ClusterFirewallRuleSettings

func (*ClusterFirewallRuleSettings) ContextValidate

func (m *ClusterFirewallRuleSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cluster firewall rule settings based on context it is used

func (*ClusterFirewallRuleSettings) MarshalBinary

func (m *ClusterFirewallRuleSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterFirewallRuleSettings) UnmarshalBinary

func (m *ClusterFirewallRuleSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterFirewallRuleSettings) Validate

func (m *ClusterFirewallRuleSettings) Validate(formats strfmt.Registry) error

Validate validates this cluster firewall rule settings

type ClusterNetworkSettings

type ClusterNetworkSettings struct {

	// cidr
	Cidr string `json:"cidr,omitempty"`

	// external
	External bool `json:"external,omitempty"`

	// external id
	ExternalID string `json:"external_id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// private subnets
	PrivateSubnets []string `json:"private_subnets"`

	// public subnets
	PublicSubnets []string `json:"public_subnets"`

	// region
	// Required: true
	Region *string `json:"region"`
}

ClusterNetworkSettings cluster network settings

swagger:model ClusterNetworkSettings

func (*ClusterNetworkSettings) ContextValidate

func (m *ClusterNetworkSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cluster network settings based on context it is used

func (*ClusterNetworkSettings) MarshalBinary

func (m *ClusterNetworkSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterNetworkSettings) UnmarshalBinary

func (m *ClusterNetworkSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterNetworkSettings) Validate

func (m *ClusterNetworkSettings) Validate(formats strfmt.Registry) error

Validate validates this cluster network settings

type ClusterNode

type ClusterNode struct {

	// availability zone
	// Required: true
	AvailabilityZone *string `json:"availability_zone"`

	// display name
	DisplayName string `json:"display_name,omitempty"`

	// distance measurement
	DistanceMeasurement *DistanceMeasurement `json:"distance_measurement,omitempty"`

	// id
	// Required: true
	ID *string `json:"id"`

	// image id
	// Required: true
	ImageID *string `json:"image_id"`

	// instance id
	// Required: true
	InstanceID *string `json:"instance_id"`

	// instance type
	// Required: true
	InstanceType *string `json:"instance_type"`

	// ip address
	// Required: true
	IPAddress *string `json:"ip_address"`

	// is active
	// Required: true
	IsActive *bool `json:"is_active"`

	// key name
	// Required: true
	KeyName *string `json:"key_name"`

	// location
	// Required: true
	Location *Location `json:"location"`

	// name
	// Required: true
	Name *string `json:"name"`

	// pg version
	// Required: true
	PgVersion *string `json:"pg_version"`

	// public ip address
	PublicIPAddress string `json:"public_ip_address,omitempty"`

	// region
	// Required: true
	Region *string `json:"region"`

	// region detail
	// Required: true
	RegionDetail *Region `json:"region_detail"`

	// volume iops
	// Required: true
	VolumeIops *int64 `json:"volume_iops"`

	// volume size
	// Required: true
	VolumeSize *int64 `json:"volume_size"`

	// volume type
	// Required: true
	VolumeType *string `json:"volume_type"`
}

ClusterNode cluster node

swagger:model ClusterNode

func (*ClusterNode) ContextValidate

func (m *ClusterNode) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cluster node based on the context it is used

func (*ClusterNode) MarshalBinary

func (m *ClusterNode) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterNode) UnmarshalBinary

func (m *ClusterNode) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterNode) Validate

func (m *ClusterNode) Validate(formats strfmt.Registry) error

Validate validates this cluster node

type ClusterNodeLogMessage

type ClusterNodeLogMessage struct {

	// level
	// Required: true
	Level *string `json:"level"`

	// message
	// Required: true
	Message *string `json:"message"`

	// raw text
	// Required: true
	RawText *string `json:"raw_text"`

	// time
	// Required: true
	Time *string `json:"time"`
}

ClusterNodeLogMessage cluster node log message

swagger:model ClusterNodeLogMessage

func (*ClusterNodeLogMessage) ContextValidate

func (m *ClusterNodeLogMessage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cluster node log message based on context it is used

func (*ClusterNodeLogMessage) MarshalBinary

func (m *ClusterNodeLogMessage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterNodeLogMessage) UnmarshalBinary

func (m *ClusterNodeLogMessage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterNodeLogMessage) Validate

func (m *ClusterNodeLogMessage) Validate(formats strfmt.Registry) error

Validate validates this cluster node log message

type ClusterNodeSettings

type ClusterNodeSettings struct {

	// availability zone
	AvailabilityZone string `json:"availability_zone,omitempty"`

	// image
	Image string `json:"image,omitempty"`

	// instance type
	InstanceType string `json:"instance_type,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// options
	Options []string `json:"options"`

	// region
	// Required: true
	Region *string `json:"region"`

	// volume iops
	VolumeIops int64 `json:"volume_iops,omitempty"`

	// volume size
	VolumeSize int64 `json:"volume_size,omitempty"`

	// volume type
	VolumeType string `json:"volume_type,omitempty"`
}

ClusterNodeSettings cluster node settings

swagger:model ClusterNodeSettings

func (*ClusterNodeSettings) ContextValidate

func (m *ClusterNodeSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cluster node settings based on context it is used

func (*ClusterNodeSettings) MarshalBinary

func (m *ClusterNodeSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterNodeSettings) UnmarshalBinary

func (m *ClusterNodeSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterNodeSettings) Validate

func (m *ClusterNodeSettings) Validate(formats strfmt.Registry) error

Validate validates this cluster node settings

type Connection

type Connection struct {

	// database
	// Required: true
	Database *string `json:"database"`

	// external ip address
	ExternalIPAddress string `json:"external_ip_address,omitempty"`

	// host
	Host string `json:"host,omitempty"`

	// internal host
	InternalHost string `json:"internal_host,omitempty"`

	// internal ip address
	InternalIPAddress string `json:"internal_ip_address,omitempty"`

	// password
	// Required: true
	Password *string `json:"password"`

	// port
	// Required: true
	Port *int64 `json:"port"`

	// username
	// Required: true
	Username *string `json:"username"`
}

Connection connection

swagger:model Connection

func (*Connection) ContextValidate

func (m *Connection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this connection based on context it is used

func (*Connection) MarshalBinary

func (m *Connection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Connection) UnmarshalBinary

func (m *Connection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Connection) Validate

func (m *Connection) Validate(formats strfmt.Registry) error

Validate validates this connection

type CreateBackupStoreInput

type CreateBackupStoreInput struct {

	// The ID of the cloud account to use for the backup store.
	// Required: true
	CloudAccountID *string `json:"cloud_account_id"`

	// The name of the backup store.
	// Required: true
	Name *string `json:"name"`

	// The region to use for the backup store.
	Region string `json:"region,omitempty"`
}

CreateBackupStoreInput create backup store input

swagger:model CreateBackupStoreInput

func (*CreateBackupStoreInput) ContextValidate

func (m *CreateBackupStoreInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create backup store input based on context it is used

func (*CreateBackupStoreInput) MarshalBinary

func (m *CreateBackupStoreInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateBackupStoreInput) UnmarshalBinary

func (m *CreateBackupStoreInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateBackupStoreInput) Validate

func (m *CreateBackupStoreInput) Validate(formats strfmt.Registry) error

Validate validates this create backup store input

type CreateCloudAccountInput

type CreateCloudAccountInput struct {

	// credentials
	// Required: true
	Credentials interface{} `json:"credentials"`

	// description
	Description string `json:"description,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// type
	// Required: true
	Type *string `json:"type"`
}

CreateCloudAccountInput create cloud account input

swagger:model CreateCloudAccountInput

func (*CreateCloudAccountInput) ContextValidate

func (m *CreateCloudAccountInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create cloud account input based on context it is used

func (*CreateCloudAccountInput) MarshalBinary

func (m *CreateCloudAccountInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateCloudAccountInput) UnmarshalBinary

func (m *CreateCloudAccountInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateCloudAccountInput) Validate

func (m *CreateCloudAccountInput) Validate(formats strfmt.Registry) error

Validate validates this create cloud account input

type CreateClusterInput

type CreateClusterInput struct {

	// backup store ids
	BackupStoreIds []string `json:"backup_store_ids"`

	// capacity
	Capacity int64 `json:"capacity,omitempty"`

	// cloud account
	CloudAccount *CloudAccountProperties `json:"cloud_account,omitempty"`

	// cloud account id
	CloudAccountID string `json:"cloud_account_id,omitempty"`

	// firewall rules
	FirewallRules []*ClusterFirewallRuleSettings `json:"firewall_rules"`

	// name
	// Required: true
	Name *string `json:"name"`

	// networks
	Networks []*ClusterNetworkSettings `json:"networks"`

	// node location
	// Required: true
	NodeLocation *string `json:"node_location"`

	// nodes
	Nodes []*ClusterNodeSettings `json:"nodes"`

	// regions
	// Required: true
	Regions []string `json:"regions"`

	// resource tags
	ResourceTags map[string]string `json:"resource_tags,omitempty"`

	// ssh key id
	SSHKeyID string `json:"ssh_key_id,omitempty"`
}

CreateClusterInput create cluster input

swagger:model CreateClusterInput

func (*CreateClusterInput) ContextValidate

func (m *CreateClusterInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create cluster input based on the context it is used

func (*CreateClusterInput) MarshalBinary

func (m *CreateClusterInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateClusterInput) UnmarshalBinary

func (m *CreateClusterInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateClusterInput) Validate

func (m *CreateClusterInput) Validate(formats strfmt.Registry) error

Validate validates this create cluster input

type CreateDatabaseInput

type CreateDatabaseInput struct {

	// backups
	Backups *Backups `json:"backups,omitempty"`

	// cluster id
	// Format: uuid
	ClusterID strfmt.UUID `json:"cluster_id,omitempty"`

	// config version
	ConfigVersion string `json:"config_version,omitempty"`

	// Display name for the database. Will be null if not set.
	// Max Length: 25
	DisplayName *string `json:"display_name,omitempty"`

	// extensions
	Extensions *Extensions `json:"extensions,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// options
	Options []string `json:"options"`
}

CreateDatabaseInput create database input

swagger:model CreateDatabaseInput

func (*CreateDatabaseInput) ContextValidate

func (m *CreateDatabaseInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create database input based on the context it is used

func (*CreateDatabaseInput) MarshalBinary

func (m *CreateDatabaseInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateDatabaseInput) UnmarshalBinary

func (m *CreateDatabaseInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateDatabaseInput) Validate

func (m *CreateDatabaseInput) Validate(formats strfmt.Registry) error

Validate validates this create database input

type CreateSSHKeyInput

type CreateSSHKeyInput struct {

	// The name of the SSH key.
	// Required: true
	Name *string `json:"name"`

	// The public key of the SSH key.
	// Required: true
	PublicKey *string `json:"public_key"`
}

CreateSSHKeyInput create Ssh key input

swagger:model CreateSshKeyInput

func (*CreateSSHKeyInput) ContextValidate

func (m *CreateSSHKeyInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create Ssh key input based on context it is used

func (*CreateSSHKeyInput) MarshalBinary

func (m *CreateSSHKeyInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateSSHKeyInput) UnmarshalBinary

func (m *CreateSSHKeyInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateSSHKeyInput) Validate

func (m *CreateSSHKeyInput) Validate(formats strfmt.Registry) error

Validate validates this create Ssh key input

type Database

type Database struct {

	// backups
	Backups *Backups `json:"backups,omitempty"`

	// cluster id
	// Required: true
	// Format: uuid
	ClusterID *strfmt.UUID `json:"cluster_id"`

	// components
	Components []*DatabaseComponentVersion `json:"components"`

	// config version
	ConfigVersion string `json:"config_version,omitempty"`

	// created at
	// Required: true
	CreatedAt *string `json:"created_at"`

	// Display name for the database. Will be null if not set.
	// Max Length: 25
	DisplayName *string `json:"display_name,omitempty"`

	// domain
	Domain string `json:"domain,omitempty"`

	// extensions
	Extensions *Extensions `json:"extensions,omitempty"`

	// id
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// name
	// Required: true
	Name *string `json:"name"`

	// nodes
	Nodes []*DatabaseNode `json:"nodes"`

	// options
	Options []string `json:"options"`

	// pg version
	PgVersion string `json:"pg_version,omitempty"`

	// roles
	Roles []*DatabaseRole `json:"roles"`

	// status
	// Required: true
	Status *string `json:"status"`

	// storage used
	StorageUsed int64 `json:"storage_used,omitempty"`

	// tables
	Tables []*DatabaseTable `json:"tables"`

	// updated at
	// Required: true
	UpdatedAt *string `json:"updated_at"`
}

Database database

swagger:model Database

func (*Database) ContextValidate

func (m *Database) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this database based on the context it is used

func (*Database) MarshalBinary

func (m *Database) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Database) UnmarshalBinary

func (m *Database) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Database) Validate

func (m *Database) Validate(formats strfmt.Registry) error

Validate validates this database

type DatabaseColumn

type DatabaseColumn struct {

	// data type
	// Required: true
	DataType *string `json:"data_type"`

	// default
	// Required: true
	Default *string `json:"default"`

	// is nullable
	// Required: true
	IsNullable *bool `json:"is_nullable"`

	// is primary key
	// Required: true
	IsPrimaryKey *bool `json:"is_primary_key"`

	// name
	// Required: true
	Name *string `json:"name"`

	// ordinal position
	// Required: true
	OrdinalPosition *int64 `json:"ordinal_position"`
}

DatabaseColumn database column

swagger:model DatabaseColumn

func (*DatabaseColumn) ContextValidate

func (m *DatabaseColumn) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this database column based on context it is used

func (*DatabaseColumn) MarshalBinary

func (m *DatabaseColumn) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DatabaseColumn) UnmarshalBinary

func (m *DatabaseColumn) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DatabaseColumn) Validate

func (m *DatabaseColumn) Validate(formats strfmt.Registry) error

Validate validates this database column

type DatabaseComponentVersion

type DatabaseComponentVersion struct {

	// id
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// name
	// Required: true
	Name *string `json:"name"`

	// release date
	// Required: true
	ReleaseDate *string `json:"release_date"`

	// status
	// Required: true
	Status *string `json:"status"`

	// version
	// Required: true
	Version *string `json:"version"`
}

DatabaseComponentVersion database component version

swagger:model DatabaseComponentVersion

func (*DatabaseComponentVersion) ContextValidate

func (m *DatabaseComponentVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this database component version based on context it is used

func (*DatabaseComponentVersion) MarshalBinary

func (m *DatabaseComponentVersion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DatabaseComponentVersion) UnmarshalBinary

func (m *DatabaseComponentVersion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DatabaseComponentVersion) Validate

func (m *DatabaseComponentVersion) Validate(formats strfmt.Registry) error

Validate validates this database component version

type DatabaseNode

type DatabaseNode struct {

	// connection
	// Required: true
	Connection *Connection `json:"connection"`

	// distance measurement
	DistanceMeasurement *DistanceMeasurement `json:"distance_measurement,omitempty"`

	// extensions
	Extensions *DatabaseNodeExtensions `json:"extensions,omitempty"`

	// location
	// Required: true
	Location *Location `json:"location"`

	// name
	// Required: true
	Name *string `json:"name"`

	// region
	Region *Region `json:"region,omitempty"`
}

DatabaseNode database node

swagger:model DatabaseNode

func (*DatabaseNode) ContextValidate

func (m *DatabaseNode) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this database node based on the context it is used

func (*DatabaseNode) MarshalBinary

func (m *DatabaseNode) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DatabaseNode) UnmarshalBinary

func (m *DatabaseNode) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DatabaseNode) Validate

func (m *DatabaseNode) Validate(formats strfmt.Registry) error

Validate validates this database node

type DatabaseNodeExtensions

type DatabaseNodeExtensions struct {

	// errors
	Errors map[string]string `json:"errors,omitempty"`

	// installed
	// Required: true
	Installed []string `json:"installed"`
}

DatabaseNodeExtensions database node extensions

swagger:model DatabaseNodeExtensions

func (*DatabaseNodeExtensions) ContextValidate

func (m *DatabaseNodeExtensions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this database node extensions based on context it is used

func (*DatabaseNodeExtensions) MarshalBinary

func (m *DatabaseNodeExtensions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DatabaseNodeExtensions) UnmarshalBinary

func (m *DatabaseNodeExtensions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DatabaseNodeExtensions) Validate

func (m *DatabaseNodeExtensions) Validate(formats strfmt.Registry) error

Validate validates this database node extensions

type DatabaseRole

type DatabaseRole struct {

	// bypass rls
	// Required: true
	BypassRls *bool `json:"bypass_rls"`

	// connection limit
	// Required: true
	ConnectionLimit *int64 `json:"connection_limit"`

	// create db
	// Required: true
	CreateDb *bool `json:"create_db"`

	// create role
	// Required: true
	CreateRole *bool `json:"create_role"`

	// inherit
	// Required: true
	Inherit *bool `json:"inherit"`

	// login
	// Required: true
	Login *bool `json:"login"`

	// name
	// Required: true
	Name *string `json:"name"`

	// replication
	// Required: true
	Replication *bool `json:"replication"`

	// superuser
	// Required: true
	Superuser *bool `json:"superuser"`
}

DatabaseRole database role

swagger:model DatabaseRole

func (*DatabaseRole) ContextValidate

func (m *DatabaseRole) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this database role based on context it is used

func (*DatabaseRole) MarshalBinary

func (m *DatabaseRole) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DatabaseRole) UnmarshalBinary

func (m *DatabaseRole) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DatabaseRole) Validate

func (m *DatabaseRole) Validate(formats strfmt.Registry) error

Validate validates this database role

type DatabaseTable

type DatabaseTable struct {

	// columns
	Columns []*DatabaseColumn `json:"columns"`

	// name
	// Required: true
	Name *string `json:"name"`

	// primary key
	// Required: true
	PrimaryKey []string `json:"primary_key"`

	// replication sets
	// Required: true
	ReplicationSets []string `json:"replication_sets"`

	// schema
	// Required: true
	Schema *string `json:"schema"`

	// status
	// Required: true
	Status []*DatabaseTableStatus `json:"status"`
}

DatabaseTable database table

swagger:model DatabaseTable

func (*DatabaseTable) ContextValidate

func (m *DatabaseTable) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this database table based on the context it is used

func (*DatabaseTable) MarshalBinary

func (m *DatabaseTable) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DatabaseTable) UnmarshalBinary

func (m *DatabaseTable) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DatabaseTable) Validate

func (m *DatabaseTable) Validate(formats strfmt.Registry) error

Validate validates this database table

type DatabaseTableStatus

type DatabaseTableStatus struct {

	// aligned
	// Required: true
	Aligned *bool `json:"aligned"`

	// node name
	// Required: true
	NodeName *string `json:"node_name"`

	// present
	// Required: true
	Present *bool `json:"present"`

	// replicating
	// Required: true
	Replicating *bool `json:"replicating"`
}

DatabaseTableStatus database table status

swagger:model DatabaseTableStatus

func (*DatabaseTableStatus) ContextValidate

func (m *DatabaseTableStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this database table status based on context it is used

func (*DatabaseTableStatus) MarshalBinary

func (m *DatabaseTableStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DatabaseTableStatus) UnmarshalBinary

func (m *DatabaseTableStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DatabaseTableStatus) Validate

func (m *DatabaseTableStatus) Validate(formats strfmt.Registry) error

Validate validates this database table status

type DistanceMeasurement

type DistanceMeasurement struct {

	// distance
	// Required: true
	Distance *float64 `json:"distance"`

	// from latitude
	// Required: true
	FromLatitude *float64 `json:"from_latitude"`

	// from longitude
	// Required: true
	FromLongitude *float64 `json:"from_longitude"`

	// unit
	// Required: true
	Unit *string `json:"unit"`
}

DistanceMeasurement distance measurement

swagger:model DistanceMeasurement

func (*DistanceMeasurement) ContextValidate

func (m *DistanceMeasurement) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this distance measurement based on context it is used

func (*DistanceMeasurement) MarshalBinary

func (m *DistanceMeasurement) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DistanceMeasurement) UnmarshalBinary

func (m *DistanceMeasurement) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DistanceMeasurement) Validate

func (m *DistanceMeasurement) Validate(formats strfmt.Registry) error

Validate validates this distance measurement

type Error

type Error struct {

	// code
	Code int64 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

Error error

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Extensions

type Extensions struct {

	// auto manage
	// Required: true
	AutoManage *bool `json:"auto_manage"`

	// available
	Available []string `json:"available"`

	// requested
	Requested []string `json:"requested"`
}

Extensions extensions

swagger:model Extensions

func (*Extensions) ContextValidate

func (m *Extensions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this extensions based on context it is used

func (*Extensions) MarshalBinary

func (m *Extensions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Extensions) UnmarshalBinary

func (m *Extensions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Extensions) Validate

func (m *Extensions) Validate(formats strfmt.Registry) error

Validate validates this extensions

type GoogleCredentials

type GoogleCredentials struct {

	// project id
	// Required: true
	ProjectID *string `json:"project_id"`

	// provider
	// Required: true
	Provider *string `json:"provider"`

	// service account
	// Required: true
	ServiceAccount *string `json:"service_account"`
}

GoogleCredentials google credentials

swagger:model GoogleCredentials

func (*GoogleCredentials) ContextValidate

func (m *GoogleCredentials) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this google credentials based on context it is used

func (*GoogleCredentials) MarshalBinary

func (m *GoogleCredentials) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GoogleCredentials) UnmarshalBinary

func (m *GoogleCredentials) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GoogleCredentials) Validate

func (m *GoogleCredentials) Validate(formats strfmt.Registry) error

Validate validates this google credentials

type Location

type Location struct {

	// city
	City string `json:"city,omitempty"`

	// code
	Code string `json:"code,omitempty"`

	// country
	Country string `json:"country,omitempty"`

	// latitude
	// Required: true
	Latitude *float64 `json:"latitude"`

	// longitude
	// Required: true
	Longitude *float64 `json:"longitude"`

	// metro code
	MetroCode string `json:"metro_code,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// postal code
	PostalCode string `json:"postal_code,omitempty"`

	// region
	Region string `json:"region,omitempty"`

	// region code
	RegionCode string `json:"region_code,omitempty"`

	// timezone
	Timezone string `json:"timezone,omitempty"`
}

Location location

swagger:model Location

func (*Location) ContextValidate

func (m *Location) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this location based on context it is used

func (*Location) MarshalBinary

func (m *Location) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Location) UnmarshalBinary

func (m *Location) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Location) Validate

func (m *Location) Validate(formats strfmt.Registry) error

Validate validates this location

type Message added in v0.0.26

type Message struct {

	// level
	// Required: true
	Level *string `json:"level"`

	// progress
	Progress int64 `json:"progress,omitempty"`

	// status
	Status string `json:"status,omitempty"`

	// step
	Step string `json:"step,omitempty"`

	// text
	// Required: true
	Text *string `json:"text"`

	// time
	// Required: true
	Time *string `json:"time"`
}

Message message

swagger:model Message

func (*Message) ContextValidate added in v0.0.26

func (m *Message) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this message based on context it is used

func (*Message) MarshalBinary added in v0.0.26

func (m *Message) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Message) UnmarshalBinary added in v0.0.26

func (m *Message) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Message) Validate added in v0.0.26

func (m *Message) Validate(formats strfmt.Registry) error

Validate validates this message

type Region

type Region struct {

	// active
	Active bool `json:"active,omitempty"`

	// availability zones
	// Required: true
	AvailabilityZones []string `json:"availability_zones"`

	// cloud
	// Required: true
	Cloud *string `json:"cloud"`

	// code
	// Required: true
	Code *string `json:"code"`

	// name
	// Required: true
	Name *string `json:"name"`

	// parent
	Parent string `json:"parent,omitempty"`
}

Region region

swagger:model Region

func (*Region) ContextValidate

func (m *Region) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this region based on context it is used

func (*Region) MarshalBinary

func (m *Region) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Region) UnmarshalBinary

func (m *Region) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Region) Validate

func (m *Region) Validate(formats strfmt.Registry) error

Validate validates this region

type SSHKey

type SSHKey struct {

	// The date and time when the SSH key was created.
	// Required: true
	CreatedAt *string `json:"created_at"`

	// The unique identifier of the SSH key.
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// The name of the SSH key.
	// Required: true
	Name *string `json:"name"`

	// The public key of the SSH key.
	// Required: true
	PublicKey *string `json:"public_key"`
}

SSHKey Ssh key

swagger:model SshKey

func (*SSHKey) ContextValidate

func (m *SSHKey) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Ssh key based on context it is used

func (*SSHKey) MarshalBinary

func (m *SSHKey) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SSHKey) UnmarshalBinary

func (m *SSHKey) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SSHKey) Validate

func (m *SSHKey) Validate(formats strfmt.Registry) error

Validate validates this Ssh key

type Task added in v0.0.26

type Task struct {

	// created at
	// Required: true
	CreatedAt *string `json:"created_at"`

	// error
	Error string `json:"error,omitempty"`

	// id
	// Required: true
	ID *string `json:"id"`

	// messages
	// Required: true
	Messages []*Message `json:"messages"`

	// name
	// Required: true
	Name *string `json:"name"`

	// request
	Request interface{} `json:"request,omitempty"`

	// response
	Response interface{} `json:"response,omitempty"`

	// status
	// Required: true
	Status *string `json:"status"`

	// subject id
	// Required: true
	SubjectID *string `json:"subject_id"`

	// subject kind
	// Required: true
	SubjectKind *string `json:"subject_kind"`

	// updated at
	// Required: true
	UpdatedAt *string `json:"updated_at"`
}

Task task

swagger:model Task

func (*Task) ContextValidate added in v0.0.26

func (m *Task) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this task based on the context it is used

func (*Task) MarshalBinary added in v0.0.26

func (m *Task) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Task) UnmarshalBinary added in v0.0.26

func (m *Task) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Task) Validate added in v0.0.26

func (m *Task) Validate(formats strfmt.Registry) error

Validate validates this task

type UpdateClusterInput

type UpdateClusterInput struct {

	// backup store ids
	BackupStoreIds []string `json:"backup_store_ids"`

	// firewall rules
	FirewallRules []*ClusterFirewallRuleSettings `json:"firewall_rules"`

	// networks
	Networks []*ClusterNetworkSettings `json:"networks"`

	// nodes
	Nodes []*ClusterNodeSettings `json:"nodes"`

	// regions
	// Required: true
	Regions []string `json:"regions"`

	// resource tags
	ResourceTags map[string]string `json:"resource_tags,omitempty"`
}

UpdateClusterInput update cluster input

swagger:model UpdateClusterInput

func (*UpdateClusterInput) ContextValidate

func (m *UpdateClusterInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update cluster input based on the context it is used

func (*UpdateClusterInput) MarshalBinary

func (m *UpdateClusterInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateClusterInput) UnmarshalBinary

func (m *UpdateClusterInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateClusterInput) Validate

func (m *UpdateClusterInput) Validate(formats strfmt.Registry) error

Validate validates this update cluster input

type UpdateDatabaseInput

type UpdateDatabaseInput struct {

	// Display name for the database. Set to null to remove existing display name
	// Max Length: 25
	DisplayName nullable.Nullable[string] `json:"display_name,omitempty"`

	// extensions
	Extensions *Extensions `json:"extensions,omitempty"`

	// nodes
	Nodes []*DatabaseNode `json:"nodes"`

	// options
	Options []string `json:"options"`
}

UpdateDatabaseInput update database input

swagger:model UpdateDatabaseInput

func (*UpdateDatabaseInput) ContextValidate

func (m *UpdateDatabaseInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update database input based on the context it is used

func (*UpdateDatabaseInput) MarshalBinary

func (m *UpdateDatabaseInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateDatabaseInput) UnmarshalBinary

func (m *UpdateDatabaseInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateDatabaseInput) Validate

func (m *UpdateDatabaseInput) Validate(formats strfmt.Registry) error

Validate validates this update database input

Jump to

Keyboard shortcuts

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