0.0.20250606 • Published 5 months ago

@maxim_mazurok/gapi.client.osconfig-v2beta v0.0.20250606

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

TypeScript typings for OS Config API v2beta

OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. For detailed description please check documentation.

Installing

Install typings for OS Config API:

npm install @types/gapi.client.osconfig-v2beta --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://osconfig.googleapis.com/$discovery/rest?version=v2beta',
  () => {
    // now we can use:
    // gapi.client.osconfig
  },
);
// 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('osconfig', 'v2beta', () => {
  // now we can use:
  // gapi.client.osconfig
});

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 OS Config API resources:

0.0.20241103

12 months ago

0.0.20241201

11 months ago

0.0.20241124

11 months ago

0.0.20250407

7 months ago

0.0.20250209

8 months ago

0.0.20250606

5 months ago

0.0.20250504

6 months ago

0.0.20250427

6 months ago

0.0.20250601

5 months ago

0.0.20250525

5 months ago

0.0.20250302

8 months ago

0.0.20250126

9 months ago

0.0.20250105

10 months ago

0.0.20250323

7 months ago

0.0.20250202

9 months ago

0.0.20250330

7 months ago

0.0.20241117

11 months ago

0.0.20241215

10 months ago

0.0.20250519

5 months ago

0.0.20250119

9 months ago

0.0.20250414

6 months ago

0.0.20250511

5 months ago

0.0.20250113

9 months ago

0.0.20250420

6 months ago

0.0.20241126

11 months ago

0.0.20241104

12 months ago

0.0.20241208

11 months ago

0.0.20241108

12 months ago

0.0.20241028

12 months ago

0.0.20241021

12 months ago