Skip to content

Commit 0fd6454

Browse files
gcf-owl-bot[bot]sofislbcoealexander-fenster
authored
fix: allow passing gax instance to client constructor (#13)
* fix: better support for fallback mode PiperOrigin-RevId: 468790263 Source-Link: googleapis/googleapis@873ab45 Source-Link: googleapis/googleapis-gen@cb6f37a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: accept google-gax instance as a parameter Please see the documentation of the client constructor for details. PiperOrigin-RevId: 470332808 Source-Link: googleapis/googleapis@d4a2367 Source-Link: googleapis/googleapis-gen@e97a1ac Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTk3YTFhYzIwNGVhZDRmZTczNDFmOTFlNzJkYjdjNmFjNjAxNjM0MSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: use _gaxModule when accessing gax for bundling PiperOrigin-RevId: 470911839 Source-Link: googleapis/googleapis@3527566 Source-Link: googleapis/googleapis-gen@f16a1d2 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjE2YTFkMjI0ZjAwYTYzMGVhNDNkNmE5YTFhMzFmNTY2ZjQ1Y2RlYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: update client documentation url * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: sofisl <[email protected]> Co-authored-by: Benjamin E. Coe <[email protected]> Co-authored-by: Alexander Fenster <[email protected]>
1 parent 7e7112f commit 0fd6454

28 files changed

+348
-234
lines changed

packages/google-cloud-baremetalsolution/.jsdoc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = {
4343
copyright: 'Copyright 2022 Google LLC',
4444
includeDate: false,
4545
sourceFiles: false,
46-
systemName: '@google-cloud/baremetalsolution',
46+
systemName: '@google-cloud/bare-metal-solution',
4747
theme: 'lumen',
4848
default: {
4949
outputSourceFiles: false

packages/google-cloud-baremetalsolution/.repo-metadata.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "baremetalsolution",
33
"name_pretty": "Bare Metal Solution API",
44
"product_documentation": "https://cloud.google.com/bare-metal",
5-
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/bare-metal/latest",
5+
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/bare-metal-solution/latest",
66
"issue_tracker": "https://github.com/googleapis/nodejs-bare-metal-solution/issues",
77
"release_level": "preview",
88
"language": "nodejs",
@@ -13,4 +13,4 @@
1313
"requires_billing": true,
1414
"api_shortname": "baremetalsolution",
1515
"library_type": "GAPIC_AUTO"
16-
}
16+
}

packages/google-cloud-baremetalsolution/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Apache Version 2.0
116116

117117
See [LICENSE](https://github.com/googleapis/nodejs-bare-metal-solution/blob/main/LICENSE)
118118

119-
[client-docs]: https://cloud.google.com/nodejs/docs/reference/bare-metal/latest
119+
[client-docs]: https://cloud.google.com/nodejs/docs/reference/bare-metal-solution/latest
120120
[product-docs]: https://cloud.google.com/bare-metal
121121
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
122122
[projects]: https://console.cloud.google.com/project
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1-
{"recurse":true,"skip":["https://codecov.io/gh/googleapis/","www.googleapis.com","img.shields.io", "https://github.com/googleapis/nodejs-bare-metal-solution/blob/master/CHANGELOG.md", "https://cloud.google.com/nodejs/docs/reference/bare-metal/latest", "https://github.com/googleapis/nodejs-bare-metal-solution/blob/addInitialSamplesAndTests/CHANGELOG.md"],"silent":true,"concurrency":5,"retry":true,"retryErrors":true,"retryErrorsCount":5,"retryErrorsJitter":3000}
1+
{
2+
"recurse": true,
3+
"skip": [
4+
"https://codecov.io/gh/googleapis/",
5+
"www.googleapis.com",
6+
"img.shields.io",
7+
"https://console.cloud.google.com/cloudshell",
8+
"https://support.google.com"
9+
],
10+
"silent": true,
11+
"concurrency": 5,
12+
"retry": true,
13+
"retryErrors": true,
14+
"retryErrorsCount": 5,
15+
"retryErrorsJitter": 3000
16+
}

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.detach_lun.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(instance, lun) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_DetachLun_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -35,7 +38,7 @@ function main(instance, lun) {
3538
// const lun = 'abc123'
3639

3740
// Imports the Baremetalsolution library
38-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
41+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
3942

4043
// Instantiates a client
4144
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.get_instance.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_GetInstance_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -31,7 +34,7 @@ function main(name) {
3134
// const name = 'abc123'
3235

3336
// Imports the Baremetalsolution library
34-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
37+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
3538

3639
// Instantiates a client
3740
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.get_lun.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_GetLun_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -31,7 +34,7 @@ function main(name) {
3134
// const name = 'abc123'
3235

3336
// Imports the Baremetalsolution library
34-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
37+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
3538

3639
// Instantiates a client
3740
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.get_network.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_GetNetwork_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -31,7 +34,7 @@ function main(name) {
3134
// const name = 'abc123'
3235

3336
// Imports the Baremetalsolution library
34-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
37+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
3538

3639
// Instantiates a client
3740
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.get_nfs_share.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_GetNfsShare_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -31,7 +34,7 @@ function main(name) {
3134
// const name = 'abc123'
3235

3336
// Imports the Baremetalsolution library
34-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
37+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
3538

3639
// Instantiates a client
3740
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.get_volume.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_GetVolume_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -31,7 +34,7 @@ function main(name) {
3134
// const name = 'abc123'
3235

3336
// Imports the Baremetalsolution library
34-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
37+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
3538

3639
// Instantiates a client
3740
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.list_instances.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_ListInstances_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -44,7 +47,7 @@ function main(parent) {
4447
// const filter = 'abc123'
4548

4649
// Imports the Baremetalsolution library
47-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
50+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
4851

4952
// Instantiates a client
5053
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.list_luns.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_ListLuns_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -40,7 +43,7 @@ function main(parent) {
4043
// const pageToken = 'abc123'
4144

4245
// Imports the Baremetalsolution library
43-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
46+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
4447

4548
// Instantiates a client
4649
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.list_network_usage.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(location) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_ListNetworkUsage_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -31,7 +34,7 @@ function main(location) {
3134
// const location = 'abc123'
3235

3336
// Imports the Baremetalsolution library
34-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
37+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
3538

3639
// Instantiates a client
3740
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.list_networks.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_ListNetworks_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -44,7 +47,7 @@ function main(parent) {
4447
// const filter = 'abc123'
4548

4649
// Imports the Baremetalsolution library
47-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
50+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
4851

4952
// Instantiates a client
5053
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.list_nfs_shares.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_ListNfsShares_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -44,7 +47,7 @@ function main(parent) {
4447
// const filter = 'abc123'
4548

4649
// Imports the Baremetalsolution library
47-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
50+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
4851

4952
// Instantiates a client
5053
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.list_volumes.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_ListVolumes_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -44,7 +47,7 @@ function main(parent) {
4447
// const filter = 'abc123'
4548

4649
// Imports the Baremetalsolution library
47-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
50+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
4851

4952
// Instantiates a client
5053
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.reset_instance.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_ResetInstance_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -31,7 +34,7 @@ function main(name) {
3134
// const name = 'abc123'
3235

3336
// Imports the Baremetalsolution library
34-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
37+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
3538

3639
// Instantiates a client
3740
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.resize_volume.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(volume) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_ResizeVolume_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -35,7 +38,7 @@ function main(volume) {
3538
// const sizeGib = 1234
3639

3740
// Imports the Baremetalsolution library
38-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
41+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
3942

4043
// Instantiates a client
4144
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.start_instance.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_StartInstance_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -31,7 +34,7 @@ function main(name) {
3134
// const name = 'abc123'
3235

3336
// Imports the Baremetalsolution library
34-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
37+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
3538

3639
// Instantiates a client
3740
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.stop_instance.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_StopInstance_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -31,7 +34,7 @@ function main(name) {
3134
// const name = 'abc123'
3235

3336
// Imports the Baremetalsolution library
34-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
37+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
3538

3639
// Instantiates a client
3740
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.update_instance.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(instance) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_UpdateInstance_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -41,7 +44,7 @@ function main(instance) {
4144
// const updateMask = {}
4245

4346
// Imports the Baremetalsolution library
44-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
47+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
4548

4649
// Instantiates a client
4750
const baremetalsolutionClient = new BareMetalSolutionClient();

packages/google-cloud-baremetalsolution/samples/generated/v2/bare_metal_solution.update_network.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(network) {
2424
// [START baremetalsolution_v2_generated_BareMetalSolution_UpdateNetwork_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**
@@ -39,7 +42,7 @@ function main(network) {
3942
// const updateMask = {}
4043

4144
// Imports the Baremetalsolution library
42-
const {BareMetalSolutionClient} = require('@google-cloud/baremetalsolution').v2;
45+
const {BareMetalSolutionClient} = require('@google-cloud/bare-metal-solution').v2;
4346

4447
// Instantiates a client
4548
const baremetalsolutionClient = new BareMetalSolutionClient();

0 commit comments

Comments
 (0)