Skip to content

docs: Migrate the remainder of the samples to use the admin client#1717

Merged
kevkim-codes merged 96 commits intomainfrom
fix-restore-table-sample-5
Sep 12, 2025
Merged

docs: Migrate the remainder of the samples to use the admin client#1717
kevkim-codes merged 96 commits intomainfrom
fix-restore-table-sample-5

Conversation

@danieljbruce
Copy link
Contributor

Description

This is a follow-up to #1710 where we migrate samples to use BigtableTableAdminClient directly. In this PR we migrate samples using the handwritten layer to instead use the BigtableInstanceAdminClient directly.

Impact

This is a crucial step towards removing support for the handwritten layer of the client library for all admin client operations thereby reducing technical debt in the client library.

Testing

These are changes to the samples test.

danieljbruce and others added 30 commits August 19, 2025 16:11
This commit updates the `backups.restore.js` sample to use the `BigtableTableAdminClient` directly for restoring a table from a backup, instead of going through the handwritten `bigtable.instance().createTableFromBackup()` method.

This change is based on the design document for the Node.js Bigtable Admin API autogeneration.

The corresponding test for the sample in `samples/test/backups.js` has also been updated to pass the correct arguments to the updated sample script.
instance of the admin client should be used
@danieljbruce danieljbruce requested a review from a team September 10, 2025 14:46
@danieljbruce danieljbruce requested a review from a team as a code owner September 10, 2025 14:46
@snippet-bot
Copy link

snippet-bot bot commented Sep 10, 2025

No region tags are edited in this PR.

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

@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. api: bigtable Issues related to the googleapis/nodejs-bigtable API. samples Issues that are directly related to samples. labels Sep 10, 2025
…into fix-restore-table-sample-5

# Conflicts:
#	samples/api-reference-doc-snippets/backups.create.js
#	samples/api-reference-doc-snippets/backups.delete.js
#	samples/api-reference-doc-snippets/backups.get.js
#	samples/api-reference-doc-snippets/backups.list.js
#	samples/api-reference-doc-snippets/backups.restore.js
#	samples/api-reference-doc-snippets/backups.update.js
#	samples/api-reference-doc-snippets/family.js
#	samples/api-reference-doc-snippets/instance.js
#	samples/api-reference-doc-snippets/table.js
#	samples/deleteSnippets.js
#	samples/hello-world/index.js
#	samples/tableadmin.js
#	samples/test/backups.js
#	samples/test/deletes.js
#	samples/test/family.js
#	samples/test/filters.js
#	samples/test/functions.js
#	samples/test/reads.js
#	samples/test/row.js
#	samples/test/write.js
kevkim-codes
kevkim-codes previously approved these changes Sep 10, 2025
@kevkim-codes kevkim-codes merged commit bb389dc into main Sep 12, 2025
23 of 32 checks passed
@kevkim-codes kevkim-codes deleted the fix-restore-table-sample-5 branch September 12, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the googleapis/nodejs-bigtable API. samples Issues that are directly related to samples. size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants