Skip to content

chore(bigtable): deprecate legacy handwritten Client and Instance admin methods - #19001

Merged
mutianf merged 2 commits into
mainfrom
deprecate-legacy-instance-admin
Nov 6, 2026
Merged

mutianf merged 2 commits into
mainfrom
deprecate-legacy-instance-admin

Conversation

@mutianf

@mutianf mutianf commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@mutianf
mutianf requested a review from a team as a code owner November 5, 2026 18:44
@mutianf
mutianf added this pull request to stack #19004 November 5, 2026 18:45

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request deprecates several methods and properties in client.py and instance.py in favor of using google.cloud.bigtable_admin_v2 clients, adding deprecation docstrings and warnings. Feedback on the changes suggests removing an unnecessary else block in Instance.create to simplify the code, as the preceding conditional blocks already raise exceptions.

@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 6, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 6, 2026
…in methods

Add DeprecationWarning and Sphinx deprecated directives to handwritten admin methods on Client and Instance in favor of BigtableInstanceAdminClient and BigtableTableAdminClient.
…tance admin methods

Keep only the Sphinx .. deprecated:: 2.30.0 docstring notices without emitting runtime warnings.
@mutianf
mutianf force-pushed the deprecate-legacy-instance-admin branch from 13a045a to 4fc2752 Compare November 6, 2026 17:48
@mutianf
mutianf enabled stacked auto-merge (squash) November 6, 2026 17:48
stacked auto-merge was automatically disabled November 6, 2026 19:00

Auto-merge was disabled for another pull request in the stack

@mutianf
mutianf merged commit 16b5e05 into main Nov 6, 2026
58 checks passed
@mutianf
mutianf deleted the deprecate-legacy-instance-admin branch November 6, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants