0.0.20240506 • Published 12 days ago

@maxim_mazurok/gapi.client.baremetalsolution-v2 v0.0.20240506

Weekly downloads
-
License
MIT
Repository
github
Last release
12 days ago

TypeScript typings for Bare Metal Solution API v2

Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center. For detailed description please check documentation.

Installing

Install typings for Bare Metal Solution API:

npm install @types/gapi.client.baremetalsolution-v2 --save-dev

Usage

You need to initialize Google API client in your code:

gapi.load('client', () => {
  // now we can use gapi.client
  // ...
});

Then load api client wrapper:

gapi.client.load(
  'https://baremetalsolution.googleapis.com/$discovery/rest?version=v2',
  () => {
    // now we can use:
    // gapi.client.baremetalsolution
  }
);
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
gapi.client.load('baremetalsolution', 'v2', () => {
  // now we can use:
  // gapi.client.baremetalsolution
});

Don't forget to authenticate your client before sending any request to resources:

// declare client_id registered in Google Developers Console
var client_id = '',
  scope = [
    // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
    'https://www.googleapis.com/auth/cloud-platform',
  ],
  immediate = true;
// ...

gapi.auth.authorize(
  {client_id: client_id, scope: scope, immediate: immediate},
  authResult => {
    if (authResult && !authResult.error) {
      /* handle successful authorization */
    } else {
      /* handle authorization error */
    }
  }
);

After that you can use Bare Metal Solution API resources:

0.0.20240506

12 days ago

0.0.20240422

22 days ago

0.0.20240321

2 months ago

0.0.20240313

2 months ago

0.0.20240228

3 months ago

0.0.20240221

3 months ago

0.0.20240214

3 months ago

0.0.20240126

4 months ago

0.0.20240122

4 months ago

0.0.20240112

4 months ago

0.0.20240110

4 months ago

0.0.20231130

6 months ago

0.0.20231106

6 months ago

0.0.20230814

9 months ago

0.0.20230807

9 months ago

0.0.20230927

8 months ago

0.0.20231018

7 months ago

0.0.20230724

10 months ago

0.0.20231023

7 months ago

0.0.20231101

7 months ago

0.0.20230915

8 months ago

0.0.20231009

7 months ago

0.0.20230831

9 months ago

0.0.20230710

10 months ago

0.0.20230714

10 months ago

0.0.20230906

9 months ago

0.0.20230628

11 months ago

0.0.20231004

8 months ago

0.0.20230612

11 months ago

0.0.20230613

11 months ago

0.0.20230517

1 year ago

0.0.20230607

12 months ago

0.0.20230508

1 year ago

0.0.20230525

12 months ago

0.0.20230522

12 months ago

0.0.20230501

1 year ago

0.0.20230531

12 months ago

0.0.20230315

1 year ago

0.0.20230426

1 year ago

0.0.20230327

1 year ago

0.0.20230306

1 year ago

0.0.20230417

1 year ago

0.0.20230410

1 year ago

0.0.20230320

1 year ago

0.0.20230217

1 year ago

0.0.20230206

1 year ago

0.0.20230215

1 year ago

0.0.20230104

1 year ago

0.0.20221201

1 year ago

0.0.20230113

1 year ago

0.0.20221219

1 year ago

0.0.20221031

2 years ago

0.0.20220928

2 years ago

0.0.20221017

2 years ago

0.0.20221025

2 years ago

0.0.20220829

2 years ago

0.0.20220921

2 years ago

0.0.20220822

2 years ago

0.0.20220731

2 years ago