Skip to content
This repository was archived by the owner on Oct 20, 2026. It is now read-only.

feat: add GetInstanceConfig function - #1438

Merged
skuruppu merged 5 commits into
masterfrom
get-instance-config
Jul 30, 2021
Merged

skuruppu merged 5 commits into
masterfrom
get-instance-config

Conversation

@olavloite

@olavloite olavloite commented Jul 29, 2021 •

Copy link
Copy Markdown
Contributor

Adds a function for getting the details of a specific InstanceConfig. This is a simple wrapper around the GetInstanceConfig RPC.

@product-auto-label product-auto-label Bot added the api: spanner Issues related to the googleapis/nodejs-spanner API. label Jul 29, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 29, 2021
Comment thread src/index.ts Outdated
*/
getInstanceConfig(
name: string,
optionsOrCallback?: CallOptions | GetInstanceConfigCallback,

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.

I might be overthinking it here but should we future-proof the options by making a new interface for GetInstanceConfigOptions that includes gaxOptions? I feel like recently, we've introduced lots of new options into existing RPCs that made it very tricky to support in Node.js

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's true. I've updated the function definition to use a specific GetInstanceConfigOptions that includes gax options.

Comment thread system-test/spanner.ts Resolved
@olavloite
olavloite marked this pull request as ready for review July 29, 2021 18:08
@olavloite
olavloite requested review from a team and skuruppu July 29, 2021 18:08
@skuruppu
skuruppu merged commit 24b3524 into master Jul 30, 2021
@skuruppu
skuruppu deleted the get-instance-config branch July 30, 2021 00:44
olavloite added a commit that referenced this pull request Aug 3, 2021
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
olavloite added a commit that referenced this pull request Aug 3, 2021
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/nodejs-spanner API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants