You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Migrate the remainder of the samples to use the admin client (#1717)
* Export the GCRuleMaker class
* Use the admin client for the first sample
* feat: updated samples to use GCRuleMaker
* feat: updated samples to use GCRuleMaker
* feat: Update restoreTable sample to use generated client
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.
* table id to table name
* The rule should be a union - not nested
instance of the admin client should be used
* Use instance of admin client - not admin client
itself
* Update the rules so they won’t throw errors
* change family.id to family.name
* max age has to be at least 1 millisecond
* Run linter
* Refresh project id token
* Get rid of projectId token
* revert change to backups method called
* Use the admin client for createTable instead
* snippets should include admin client
* This code snippet should include project fetch
* Comment out options
* Use the admin client to create a table
* Use the generated layer for maxVersions
* Don’t use instance.name in parent path
* Update the family snippets
* Update createTable in the Row samples
* Eliminate the need for any default projectId fetch
* Don’t hardcode the project id
* don’t hardcode project id
* commit examples
* Don’t create table twice
* options is not used. remove it
* table admin
* Hardcode instance name
* delete the examples folder
* remove options
* add header
* The rest of the samples should use
BigtableTableAdminClient instread
* Update more tables code
* commit the api-reference-doc-snippets
* correct the backups samples
* Revert "correct the backups samples"
This reverts commit 7241dbe.
* Modify the reads samples
* Update the functions script
* Make separate column family creation calls
This makes the test pass
* Fix the deletes sample changes
* change the fixture
don’t wrap the return value in brackets
* return value should be false literal
* Correct the fixture for the deletes samples
* Reintroduce the backup samples
* Replace write.js code with calls to generated layr
* removed unused table
* backups from instance as well
* Fix the index.js sample
* Fixed a bunch of syntax highlighting errors
* run the linter
* Changes to pass the linting check
* Eliminate unused cluster
* Add comment for restore table LRO
* Add a script for the consistency token
* Use instance admin client and eliminate unused
variables
* Make a separate modifyColumnFamilies call
* Use instance admin client for the clusters samples
* use admin client in family.js
* Use the instance admin client for creating instanc
* reintroduce necessary variables
* Fix the runtime issues from the before hook
* Fix bugs due to switch to admin layer
* Use the instance admin client in instance.js
* changes to instances.test.js file
* Get rid of calls to locationPath
* define instancePath directly
* instancePath should be fixed string
* operation is actually first argument
* Use instance admin client in row.js
* Run linter and fix table.js
# Conflicts:
# samples/test/cluster.js
# samples/test/family.js
# samples/test/instance.js
# samples/test/instances.test.js
* Fix some of the linting errors
# Conflicts:
# samples/test/util.js
* Use instanceAdminClient in instances.js
* Update the appProfile instance admin samples
* Revert "Update the appProfile instance admin samples"
This reverts commit ada69c8.
* Must iterate through subobject
* Revert "Revert "Update the appProfile instance admin samples""
This reverts commit c71b50c.
* Make updates to the cluster.js file
* instance.js use the instanceAdminClient
* refactor: update instance.js to use generated client
* replace project path
* Update the location paths
* Fix the backup id paths
* Don’t rely on admin client for path building
* replace all instance paths
* Use the instance id path
* Replace table path builders
* Replace appProfileId path
* Fix the linting errors
* fix linting issues
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
0 commit comments