1.0.20220725 • Published 2 years ago

@maxim_mazurok/gapi.client.osconfig v1.0.20220725

Weekly downloads
36
License
MIT
Repository
github
Last release
2 years ago

TypeScript typings for OS Config API v1

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@v1 --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('osconfig', 'v1', () => {
  // 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:

1.0.20220613

2 years ago

1.0.20220625

2 years ago

1.0.20220703

2 years ago

1.0.20220718

2 years ago

1.0.20220606

2 years ago

1.0.20220725

2 years ago

1.0.20220513

2 years ago

1.0.20220522

2 years ago

1.0.20220520

2 years ago

1.0.20220530

2 years ago

1.0.20220415

2 years ago

1.0.20220425

2 years ago

1.0.20220319

2 years ago

1.0.20220328

2 years ago

1.0.20220406

2 years ago

1.0.20220411

2 years ago

1.0.20220301

2 years ago

1.0.20220222

2 years ago

1.0.20220307

2 years ago

1.0.20220315

2 years ago

1.0.20220103

2 years ago

1.0.20220122

2 years ago

1.0.20220205

2 years ago

1.0.20220115

2 years ago

1.0.20211203

2 years ago

1.0.20211106

2 years ago

1.0.20211029

3 years ago

1.0.20211025

3 years ago

1.0.20211018

3 years ago

1.0.20211002

3 years ago

1.0.20210925

3 years ago

1.0.20210918

3 years ago

1.0.20210914

3 years ago

1.0.20210821

3 years ago

1.0.20210816

3 years ago

1.0.20210806

3 years ago

1.0.20210803

3 years ago

1.0.20210723

3 years ago

1.0.20210710

3 years ago

1.0.20210626

3 years ago

1.0.20210618

3 years ago

1.0.20210614

3 years ago

1.0.20210605

3 years ago

1.0.20210527

3 years ago

1.0.20210507

3 years ago

1.0.20210430

3 years ago

1.0.20210427

3 years ago

1.0.20210421

3 years ago

1.0.20210412

3 years ago

1.0.20210405

3 years ago

1.0.20210326

3 years ago

1.0.20210322

3 years ago

1.0.20210312

3 years ago

1.0.20210305

3 years ago

1.0.20210226

3 years ago

1.0.20210219

3 years ago

1.0.20210122

3 years ago

1.0.20210118

3 years ago

1.0.20210106

3 years ago

1.0.20201214

3 years ago

1.0.20201204

3 years ago

1.0.20201112

3 years ago

1.0.20201107

3 years ago