-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Automated backups are supported in the admin client #2472
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with minor comments.
this.instanceId = tableName.getInstance(); | ||
this.id = tableName.getTable(); | ||
this.replicationStatesByClusterId = replicationStatesByClusterId; | ||
this.columnFamilies = columnFamilies; | ||
this.changeStreamRetention = changeStreamRetention; | ||
this.deletionProtection = deletionProtection; | ||
Table.automatedBackupPolicy = automatedBackupPolicy; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be: this.automatedBackupPolicy = automatedBackupPolicy;
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So because it's a static field, I need to set it in a static
way.
Here's the error I get if I try to replace Table
with this
:
The static field Table.automatedBackupPolicy should be accessed in a static wayJava(570425420)
@@ -136,13 +145,15 @@ public void testEquality() { | |||
CreateTableRequest.of(TABLE_ID) | |||
.addFamily("family-id") | |||
.addFamily("another-family", GCRULES.maxAge(100, TimeUnit.HOURS)) | |||
// automatedbackup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add setAutomatedBackup()
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops sorry forgot to push commit, thanks for catching.
…#2472) * add automated backup policy model * add automated backup policy for create table * add updated automated backup requests * add backup policy object to table class and retrieval methods * changes to table.java * revert doc change * add unit test for policy setting on a table * add new test for creating automated backup * remove misc vscode settings file * undo formatting changes in authorized views * revert formatting * continue revert * redo formatting * remove authorized views formatting * add unit tests * fix syntax on unit test * fix unit test * fix formatting
…#2472) * add automated backup policy model * add automated backup policy for create table * add updated automated backup requests * add backup policy object to table class and retrieval methods * changes to table.java * revert doc change * add unit test for policy setting on a table * add new test for creating automated backup * remove misc vscode settings file * undo formatting changes in authorized views * revert formatting * continue revert * redo formatting * remove authorized views formatting * add unit tests * fix syntax on unit test * fix unit test * fix formatting
…#2472) * add automated backup policy model * add automated backup policy for create table * add updated automated backup requests * add backup policy object to table class and retrieval methods * changes to table.java * revert doc change * add unit test for policy setting on a table * add new test for creating automated backup * remove misc vscode settings file * undo formatting changes in authorized views * revert formatting * continue revert * redo formatting * remove authorized views formatting * add unit tests * fix syntax on unit test * fix unit test * fix formatting
Supports automated backups for the Java Bigtable client.
AutomatedBackupPolicy
subclass to theTable
class.CreateTableRequest
class.UpdateTableRequest
class.