Skip to content

Commit

Permalink
fix: allow passing gax instance to client constructor (#13)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
5 people authored Sep 9, 2022
1 parent 7e7112f commit 0fd6454
Show file tree
Hide file tree
Showing 28 changed files with 348 additions and 234 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-baremetalsolution/.jsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = {
copyright: 'Copyright 2022 Google LLC',
includeDate: false,
sourceFiles: false,
systemName: '@google-cloud/baremetalsolution',
systemName: '@google-cloud/bare-metal-solution',
theme: 'lumen',
default: {
outputSourceFiles: false
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-baremetalsolution/.repo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "baremetalsolution",
"name_pretty": "Bare Metal Solution API",
"product_documentation": "https://cloud.google.com/bare-metal",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/bare-metal/latest",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/bare-metal-solution/latest",
"issue_tracker": "https://github.com/googleapis/nodejs-bare-metal-solution/issues",
"release_level": "preview",
"language": "nodejs",
Expand All @@ -13,4 +13,4 @@
"requires_billing": true,
"api_shortname": "baremetalsolution",
"library_type": "GAPIC_AUTO"
}
}
2 changes: 1 addition & 1 deletion packages/google-cloud-baremetalsolution/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Apache Version 2.0

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

[client-docs]: https://cloud.google.com/nodejs/docs/reference/bare-metal/latest
[client-docs]: https://cloud.google.com/nodejs/docs/reference/bare-metal-solution/latest
[product-docs]: https://cloud.google.com/bare-metal
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
[projects]: https://console.cloud.google.com/project
Expand Down
17 changes: 16 additions & 1 deletion packages/google-cloud-baremetalsolution/linkinator.config.json
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
{"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}
{
"recurse": true,
"skip": [
"https://codecov.io/gh/googleapis/",
"www.googleapis.com",
"img.shields.io",
"https://console.cloud.google.com/cloudshell",
"https://support.google.com"
],
"silent": true,
"concurrency": 5,
"retry": true,
"retryErrors": true,
"retryErrorsCount": 5,
"retryErrorsJitter": 3000
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(instance, lun) {
// [START baremetalsolution_v2_generated_BareMetalSolution_DetachLun_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -35,7 +38,7 @@ function main(instance, lun) {
// const lun = 'abc123'

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START baremetalsolution_v2_generated_BareMetalSolution_GetInstance_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -31,7 +34,7 @@ function main(name) {
// const name = 'abc123'

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START baremetalsolution_v2_generated_BareMetalSolution_GetLun_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -31,7 +34,7 @@ function main(name) {
// const name = 'abc123'

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START baremetalsolution_v2_generated_BareMetalSolution_GetNetwork_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -31,7 +34,7 @@ function main(name) {
// const name = 'abc123'

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START baremetalsolution_v2_generated_BareMetalSolution_GetNfsShare_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -31,7 +34,7 @@ function main(name) {
// const name = 'abc123'

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START baremetalsolution_v2_generated_BareMetalSolution_GetVolume_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -31,7 +34,7 @@ function main(name) {
// const name = 'abc123'

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START baremetalsolution_v2_generated_BareMetalSolution_ListInstances_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -44,7 +47,7 @@ function main(parent) {
// const filter = 'abc123'

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START baremetalsolution_v2_generated_BareMetalSolution_ListLuns_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -40,7 +43,7 @@ function main(parent) {
// const pageToken = 'abc123'

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(location) {
// [START baremetalsolution_v2_generated_BareMetalSolution_ListNetworkUsage_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -31,7 +34,7 @@ function main(location) {
// const location = 'abc123'

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START baremetalsolution_v2_generated_BareMetalSolution_ListNetworks_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -44,7 +47,7 @@ function main(parent) {
// const filter = 'abc123'

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START baremetalsolution_v2_generated_BareMetalSolution_ListNfsShares_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -44,7 +47,7 @@ function main(parent) {
// const filter = 'abc123'

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START baremetalsolution_v2_generated_BareMetalSolution_ListVolumes_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -44,7 +47,7 @@ function main(parent) {
// const filter = 'abc123'

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START baremetalsolution_v2_generated_BareMetalSolution_ResetInstance_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -31,7 +34,7 @@ function main(name) {
// const name = 'abc123'

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(volume) {
// [START baremetalsolution_v2_generated_BareMetalSolution_ResizeVolume_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -35,7 +38,7 @@ function main(volume) {
// const sizeGib = 1234

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START baremetalsolution_v2_generated_BareMetalSolution_StartInstance_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -31,7 +34,7 @@ function main(name) {
// const name = 'abc123'

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START baremetalsolution_v2_generated_BareMetalSolution_StopInstance_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -31,7 +34,7 @@ function main(name) {
// const name = 'abc123'

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(instance) {
// [START baremetalsolution_v2_generated_BareMetalSolution_UpdateInstance_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -41,7 +44,7 @@ function main(instance) {
// const updateMask = {}

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(network) {
// [START baremetalsolution_v2_generated_BareMetalSolution_UpdateNetwork_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand All @@ -39,7 +42,7 @@ function main(network) {
// const updateMask = {}

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

// Instantiates a client
const baremetalsolutionClient = new BareMetalSolutionClient();
Expand Down
Loading

0 comments on commit 0fd6454

Please sign in to comment.