client

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresBackup

type PostgresBackup struct {
	CreatedAt time.Time `json:"createdAt"`
	Id        string    `json:"id"`

	// Url URL to download the Postgres backup
	Url *string `json:"url,omitempty"`
}

PostgresBackup defines model for postgresBackup.

type PostgresPlans

type PostgresPlans string

PostgresPlans defines model for postgresPlans.

const (
	Accelerated1024gb PostgresPlans = "accelerated_1024gb"
	Accelerated128gb  PostgresPlans = "accelerated_128gb"
	Accelerated16gb   PostgresPlans = "accelerated_16gb"
	Accelerated256gb  PostgresPlans = "accelerated_256gb"
	Accelerated32gb   PostgresPlans = "accelerated_32gb"
	Accelerated384gb  PostgresPlans = "accelerated_384gb"
	Accelerated512gb  PostgresPlans = "accelerated_512gb"
	Accelerated64gb   PostgresPlans = "accelerated_64gb"
	Accelerated768gb  PostgresPlans = "accelerated_768gb"
	Basic1gb          PostgresPlans = "basic_1gb"
	Basic256mb        PostgresPlans = "basic_256mb"
	Basic4gb          PostgresPlans = "basic_4gb"
	Custom            PostgresPlans = "custom"
	Free              PostgresPlans = "free"
	Pro               PostgresPlans = "pro"
	Pro128gb          PostgresPlans = "pro_128gb"
	Pro16gb           PostgresPlans = "pro_16gb"
	Pro192gb          PostgresPlans = "pro_192gb"
	Pro256gb          PostgresPlans = "pro_256gb"
	Pro32gb           PostgresPlans = "pro_32gb"
	Pro384gb          PostgresPlans = "pro_384gb"
	Pro4gb            PostgresPlans = "pro_4gb"
	Pro512gb          PostgresPlans = "pro_512gb"
	Pro64gb           PostgresPlans = "pro_64gb"
	Pro8gb            PostgresPlans = "pro_8gb"
	ProPlus           PostgresPlans = "pro_plus"
	Standard          PostgresPlans = "standard"
	Starter           PostgresPlans = "starter"
)

Defines values for PostgresPlans.

type RecoveryInfo

type RecoveryInfo struct {
	// RecoveryStatus Availability of point-in-time recovery.
	RecoveryStatus RecoveryInfoRecoveryStatus `json:"recoveryStatus"`
	StartsAt       *time.Time                 `json:"startsAt,omitempty"`
}

RecoveryInfo defines model for recoveryInfo.

type RecoveryInfoRecoveryStatus

type RecoveryInfoRecoveryStatus string

RecoveryInfoRecoveryStatus Availability of point-in-time recovery.

const (
	AVAILABLE      RecoveryInfoRecoveryStatus = "AVAILABLE"
	BACKUPNOTREADY RecoveryInfoRecoveryStatus = "BACKUP_NOT_READY"
	NOTAVAILABLE   RecoveryInfoRecoveryStatus = "NOT_AVAILABLE"
)

Defines values for RecoveryInfoRecoveryStatus.

type RecoveryInput

type RecoveryInput struct {
	// DatadogApiKey Datadog API key to use for monitoring the new database. Defaults to the API key of the original database. Use an empty string to prevent copying of the API key to the new database.
	DatadogApiKey *string `json:"datadogApiKey,omitempty"`

	// EnvironmentId The environment to create the new database in. Defaults to the environment of the original database.
	EnvironmentId *string `json:"environmentId,omitempty"`

	// Plan The plan to use for the new database. Defaults to the same plan as the original database. Cannot be a lower tier plan than the original database.
	Plan *string `json:"plan,omitempty"`

	// RestoreName Name of the new database.
	RestoreName *string `json:"restoreName,omitempty"`

	// RestoreTime The point in time to restore the database to. See `/recovery-info` for restore availability
	RestoreTime time.Time `json:"restoreTime"`
}

RecoveryInput defines model for recoveryInput.

Jump to

Keyboard shortcuts

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