Skip to content

Conversation

@olavloite
Copy link
Contributor

@olavloite olavloite commented Jul 29, 2021

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
src/index.ts Outdated
*/
getInstanceConfig(
name: string,
optionsOrCallback?: CallOptions | GetInstanceConfigCallback,
Copy link
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
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.

@olavloite olavloite marked this pull request as ready for review July 29, 2021 18:08
@olavloite olavloite requested review from a team as code owners July 29, 2021 18:08
@olavloite olavloite requested a review from skuruppu July 29, 2021 18:09
@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 join this conversation on GitHub. Already have an account? Sign in to comment

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