Repository navigation
docs(bigtable): add async admin samples - #18923
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces asynchronous sample scripts and tests for Google Cloud Bigtable instance and table administration, utilizing the BigtableInstanceAdminAsyncClient and BigtableTableAdminAsyncClient. The review identified several critical bugs that would cause AttributeError exceptions at runtime. Specifically, the list_clusters method returns pagers (both sync and async) that do not have a .clusters attribute, and the AsyncOperation returned by restore_table lacks the optimize_restored_table_operation method. Code suggestions have been provided to resolve these issues by correctly iterating over the pagers and fetching the optimization operation name from metadata.
daniel-sanche
force-pushed
the
samples_4_add_async_admin_samples
branch
3 times, most recently
from
October 30, 2026 21:09
ed5f3cc to
5e49c64
Compare
daniel-sanche
force-pushed
the
samples_4_add_async_admin_samples
branch
from
November 6, 2026 22:38
5e49c64 to
3db99cb
Compare
daniel-sanche
force-pushed
the
samples_4_add_async_admin_samples
branch
from
November 13, 2026 17:29
3db99cb to
c9e1c47
Compare
daniel-sanche
force-pushed
the
samples_4_add_async_admin_samples
branch
from
November 13, 2026 19:54
c9e1c47 to
e34f10c
Compare
mutianf
approved these changes
Nov 13, 2026
daniel-sanche
added a commit
that referenced
this pull request
Nov 25, 2026
For completeness, add async samples for generated admin client, so we can expose them alongside sync samples in the docs. This will match how data client samples are handled
daniel-sanche
pushed a commit
that referenced
this pull request
Dec 3, 2026
🤖 I have created a release *beep* *boop* --- ## [2.51.0](google-cloud-bigtable-v2.50.2...google-cloud-bigtable-v2.51.0) (2026-12-03) ### Features * update API sources and regenerate ([#19310](#19310)) ([28423cb](28423cb)) ### Bug Fixes * **bigtable:** encode prefix to UTF-8 bytes before computing upper bound in RowSet.add_row_range_with_prefix ([#18954](#18954)) ([dfd9606](dfd9606)) * **bigtable:** encode str qualifier in DeleteRangeFromColumn and allow -2**63 in int mutations ([#18881](#18881)) ([6e80b83](6e80b83)) * **bigtable:** Log warning on background task failure instead of exception ([#18193](#18193)) ([92a8bf4](92a8bf4)) * **bigtable:** pack unpacked error details in _get_status and harden batcher error handling ([#18770](#18770)) ([525e740](525e740)) * **bigtable:** remove unneeded status field from throttling latencies metric ([#18858](#18858)) ([dd48193](dd48193)) * **bigtable:** restore the mutation lifecycle in mutate_rows and DirectRow.commit ([#18856](#18856)) ([d0ce8e3](d0ce8e3)) * **bigtable:** synchronize MutationsBatcher staging and flush scheduling ([#18827](#18827)) ([38afa8a](38afa8a)) * **bigtable:** validate DirectRow and table match in MutationsBatcher.mutate ([#18874](#18874)) ([8aa6d4d](8aa6d4d)) * **google-cloud-bigtable:** clamp mutate_row retry attempt timeouts to remaining operation timeout ([#19017](#19017)) ([304ffef](304ffef)) ### Documentation * **bigtable:** add async admin samples ([#18923](#18923)) ([14fb90b](14fb90b)) * **bigtable:** add samples for sync client ([#17820](#17820)) ([72e5f48](72e5f48)) * **bigtable:** authorized view samples ([#19082](#19082)) ([a476483](a476483)) * **bigtable:** clarify that MutationsBatcher.flush defers exceptions to close ([#18825](#18825)) ([371218d](371218d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
For completeness, add async samples for generated admin client, so we can expose them alongside sync samples in the docs. This will match how data client samples are handled