@@ -648,6 +648,7 @@ func (c *Client) ListPostgresDatabases(ctx context.Context, opts *ListOptions) (
648648}
649649
650650// PostgresDatabaseBackup is information for interacting with a backup for the existing Postgres Database
651+ //
651652// Deprecated: PostgresDatabaseBackup is a deprecated struct, as the backup endpoints are no longer supported in DBaaS V2.
652653// In DBaaS V2, databases can be backed up via database forking.
653654type PostgresDatabaseBackup struct {
@@ -678,6 +679,7 @@ func (d *PostgresDatabaseBackup) UnmarshalJSON(b []byte) error {
678679}
679680
680681// PostgresBackupCreateOptions are options used for CreatePostgresDatabaseBackup(...)
682+ //
681683// Deprecated: PostgresBackupCreateOptions is a deprecated struct, as the backup endpoints are no longer supported in DBaaS V2.
682684// In DBaaS V2, databases can be backed up via database forking.
683685type PostgresBackupCreateOptions struct {
@@ -686,6 +688,7 @@ type PostgresBackupCreateOptions struct {
686688}
687689
688690// ListPostgresDatabaseBackups lists all Postgres Database Backups associated with the given Postgres Database
691+ //
689692// Deprecated: ListPostgresDatabaseBackups is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
690693// In DBaaS V2, databases can be backed up via database forking.
691694func (c * Client ) ListPostgresDatabaseBackups (ctx context.Context , databaseID int , opts * ListOptions ) ([]PostgresDatabaseBackup , error ) {
@@ -740,6 +743,7 @@ func (c *Client) GetPostgresDatabaseSSL(ctx context.Context, databaseID int) (*P
740743}
741744
742745// GetPostgresDatabaseBackup returns a specific Postgres Database Backup with the given ids
746+ //
743747// Deprecated: GetPostgresDatabaseBackup is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
744748// In DBaaS V2, databases can be backed up via database forking.
745749func (c * Client ) GetPostgresDatabaseBackup (ctx context.Context , databaseID int , backupID int ) (* PostgresDatabaseBackup , error ) {
@@ -748,6 +752,7 @@ func (c *Client) GetPostgresDatabaseBackup(ctx context.Context, databaseID int,
748752}
749753
750754// RestorePostgresDatabaseBackup returns the given Postgres Database with the given Backup
755+ //
751756// Deprecated: RestorePostgresDatabaseBackup is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
752757// In DBaaS V2, databases can be backed up via database forking.
753758func (c * Client ) RestorePostgresDatabaseBackup (ctx context.Context , databaseID int , backupID int ) error {
@@ -756,6 +761,7 @@ func (c *Client) RestorePostgresDatabaseBackup(ctx context.Context, databaseID i
756761}
757762
758763// CreatePostgresDatabaseBackup creates a snapshot for the given Postgres database
764+ //
759765// Deprecated: CreatePostgresDatabaseBackup is a deprecated method, as the backup endpoints are no longer supported in DBaaS V2.
760766// In DBaaS V2, databases can be backed up via database forking.
761767func (c * Client ) CreatePostgresDatabaseBackup (ctx context.Context , databaseID int , opts PostgresBackupCreateOptions ) error {
0 commit comments