GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: Automated backups are supported in the admin client by kevkim-codes · Pull Request #2472 · googleapis/java-bigtable

This repository was archived by the owner on Aug 30, 2026. It is now read-only.

Conversation

@kevkim-codes

@kevkim-codes kevkim-codes commented Jan 27, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Supports automated backups for the Java Bigtable client.

  • Adds AutomatedBackupPolicy subclass to the Table class.
  • Adds automated backup support to CreateTableRequest class.
  • Adds automated backup support to UpdateTableRequest class.
  • Adds unit tests for each of those classes.
  • Minor syntax formatting updates in associated files.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
kevkim-codes added 2 commits January 24, 2025 14:40
@kevkim-codes
add automated backup policy model
68c7265
@kevkim-codes
add automated backup policy for create table
d25f28f
@kevkim-codes
kevkim-codes requested review from a team January 27, 2025 22:17
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: bigtable Issues related to the googleapis/java-bigtable API. labels Jan 27, 2025
@kevkim-codes
kevkim-codes marked this pull request as draft January 27, 2025 22:17
@kevkim-codes
add updated automated backup requests
c80b434
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Jan 28, 2025
kevkim-codes added 5 commits January 29, 2025 14:28
@kevkim-codes
add backup policy object to table class and retrieval methods
af2c5cf
@kevkim-codes
changes to table.java
61cea45
@kevkim-codes
revert doc change
fd8c350
@kevkim-codes
add unit test for policy setting on a table
c4fcd5d
@kevkim-codes
add new test for creating automated backup
12899b3
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Feb 3, 2025
kevkim-codes added 3 commits February 4, 2025 10:40
@kevkim-codes
remove misc vscode settings file
b3b53f8
@kevkim-codes
undo formatting changes in authorized views
6551b8f
@kevkim-codes
revert formatting
a3c0d03
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: l Pull request size is large. labels Feb 4, 2025
kevkim-codes added 3 commits February 4, 2025 10:50
@kevkim-codes
continue revert
8d85274
@kevkim-codes
redo formatting
0d994ee
@kevkim-codes
remove authorized views formatting
9f09582
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Feb 4, 2025
kevkim-codes added 2 commits February 5, 2025 11:51
@kevkim-codes
add unit tests
23d9a22
@kevkim-codes
Merge branch 'main' into backup
65148bc
@kevkim-codes
kevkim-codes marked this pull request as ready for review February 5, 2025 16:52
@kevkim-codes
fix syntax on unit test
9d034b4
cindy-peng
cindy-peng approved these changes Feb 5, 2025
View reviewed changes

@cindy-peng cindy-peng left a comment

Copy link
Copy Markdown

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/Table.java
this.columnFamilies = columnFamilies;
this.changeStreamRetention = changeStreamRetention;
this.deletionProtection = deletionProtection;
Table.automatedBackupPolicy = automatedBackupPolicy;

@cindy-peng cindy-peng Feb 5, 2025

Copy link
Copy Markdown

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;?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@kevkim-codes kevkim-codes Feb 5, 2025

Copy link
Copy Markdown
Contributor Author

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)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cindy-peng reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread ...bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/models/CreateTableRequestTest.java Outdated
CreateTableRequest.of(TABLE_ID)
.addFamily("family-id")
.addFamily("another-family", GCRULES.maxAge(100, TimeUnit.HOURS))
// automatedbackup

@cindy-peng cindy-peng Feb 5, 2025

Copy link
Copy Markdown

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?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@kevkim-codes kevkim-codes Feb 5, 2025

Copy link
Copy Markdown
Contributor Author

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
kevkim-codes added 2 commits February 5, 2025 13:20
@kevkim-codes
fix unit test
bdd502b
@kevkim-codes
fix formatting
b47b943
@kevkim-codes
kevkim-codes merged commit 48633e6 into googleapis:main Feb 5, 2025
@release-please release-please Bot mentioned this pull request Feb 5, 2025
chore(main): release 2.52.0 #2479
Merged
sarthakbhutani pushed a commit to sarthakbhutani/java-bigtable that referenced this pull request Feb 13, 2025
@kevkim-codes Sarthak Bhutani
feat: Automated backups are supported in the admin client (googleapis…
16563a2
…#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
sarthakbhutani pushed a commit to sarthakbhutani/java-bigtable that referenced this pull request Feb 13, 2025
@kevkim-codes @sarthakbhutani
feat: Automated backups are supported in the admin client (googleapis…
5711d73
…#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
sarthakbhutani pushed a commit to sarthakbhutani/java-bigtable that referenced this pull request Feb 13, 2025
@kevkim-codes @sarthakbhutani
feat: Automated backups are supported in the admin client (googleapis…
b026a33
…#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
@release-please release-please Bot mentioned this pull request Dec 15, 2025
chore(protobuf-4.x-rc): release 2.71.0-rc1 #2726
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@cindy-peng cindy-peng cindy-peng approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: bigtable Issues related to the googleapis/java-bigtable API. size: l Pull request size is large.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@kevkim-codes @cindy-peng
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.