Skip to content

Commit

Permalink
feat: publish Automated Backups protos
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 620381983
  • Loading branch information
Google APIs authored and Copybara-Service committed Mar 30, 2024
1 parent 91e03ae commit a70aa2c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions google/bigtable/admin/v2/table.proto
Expand Up @@ -143,6 +143,19 @@ message Table {
FULL = 4;
}

// Defines an automated backup policy for a table
message AutomatedBackupPolicy {
// Required. How long the automated backups should be retained. The only
// supported value at this time is 3 days.
google.protobuf.Duration retention_period = 1
[(google.api.field_behavior) = REQUIRED];

// Required. How frequently automated backups should occur. The only
// supported value at this time is 24 hours.
google.protobuf.Duration frequency = 2
[(google.api.field_behavior) = REQUIRED];
}

// The unique name of the table. Values are of the form
// `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
// Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
Expand Down Expand Up @@ -185,6 +198,12 @@ message Table {
//
// Note one can still delete the data stored in the table through Data APIs.
bool deletion_protection = 9;

oneof automated_backup_config {
// If specified, automated backups are enabled for this table.
// Otherwise, automated backups are disabled.
AutomatedBackupPolicy automated_backup_policy = 13;
}
}

// AuthorizedViews represent subsets of a particular Cloud Bigtable table. Users
Expand Down

0 comments on commit a70aa2c

Please sign in to comment.