Skip to content

docs(bigtable): add async admin samples - #18923

Merged
daniel-sanche merged 2 commits into
mainfrom
samples_4_add_async_admin_samples
Nov 13, 2026
Merged

daniel-sanche merged 2 commits into
mainfrom
samples_4_add_async_admin_samples

Conversation

@daniel-sanche

Copy link
Copy Markdown
Contributor

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
daniel-sanche requested a review from a team as a code owner October 30, 2026 01:37
@snippet-bot

snippet-bot Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 21 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@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 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
daniel-sanche force-pushed the samples_4_add_async_admin_samples branch 3 times, most recently from ed5f3cc to 5e49c64 Compare October 30, 2026 21:09
@daniel-sanche
daniel-sanche force-pushed the samples_4_add_async_admin_samples branch from 5e49c64 to 3db99cb Compare November 6, 2026 22:38
Base automatically changed from samples_3_update_docs to main November 13, 2026 17:29
@daniel-sanche
daniel-sanche requested a review from a team as a code owner November 13, 2026 17:29
@daniel-sanche
daniel-sanche force-pushed the samples_4_add_async_admin_samples branch from 3db99cb to c9e1c47 Compare November 13, 2026 17:29
@daniel-sanche
daniel-sanche force-pushed the samples_4_add_async_admin_samples branch from c9e1c47 to e34f10c Compare November 13, 2026 19:54
@daniel-sanche
daniel-sanche merged commit 14fb90b into main Nov 13, 2026
58 checks passed
@daniel-sanche
daniel-sanche deleted the samples_4_add_async_admin_samples branch November 13, 2026 21:21
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>
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.

2 participants