1.0.20220806 • Published 3 years ago

@maxim_mazurok/gapi.client.ondemandscanning v1.0.20220806

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

TypeScript typings for On-Demand Scanning API v1

A service to scan container images for vulnerabilities. For detailed description please check documentation.

Installing

Install typings for On-Demand Scanning API:

npm install @types/gapi.client.ondemandscanning@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('ondemandscanning', 'v1', () => {
  // now we can use gapi.client.ondemandscanning
  // ...
});

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 On-Demand Scanning API resources:

1.0.20220612

3 years ago

1.0.20220620

3 years ago

1.0.20220625

3 years ago

1.0.20220716

3 years ago

1.0.20220711

3 years ago

1.0.20220806

3 years ago

1.0.20220725

3 years ago

1.0.20220730

3 years ago

1.0.20220509

3 years ago

1.0.20220430

3 years ago

1.0.20220513

3 years ago

1.0.20220522

3 years ago

1.0.20220604

3 years ago

1.0.20220530

3 years ago

1.0.20220415

3 years ago

1.0.20220409

3 years ago

1.0.20220425

3 years ago

1.0.20220326

3 years ago

1.0.20220404

3 years ago

1.0.20220307

3 years ago

1.0.20220228

3 years ago

1.0.20220314

3 years ago

1.0.20220218

3 years ago

1.0.20220224

3 years ago

1.0.20220122

3 years ago

1.0.20220207

3 years ago

1.0.20220107

3 years ago

1.0.20220212

3 years ago

1.0.20220131

3 years ago

1.0.20211115

4 years ago

1.0.20211106

4 years ago

1.0.20211206

4 years ago

1.0.20211022

4 years ago

1.0.20211029

4 years ago

1.0.20211005

4 years ago

1.0.20211015

4 years ago

1.0.20210925

4 years ago

1.0.20210918

4 years ago

1.0.20210911

4 years ago

1.0.20210903

4 years ago

1.0.20210827

4 years ago

1.0.20210824

4 years ago

1.0.20210816

4 years ago

1.0.20210809

4 years ago

1.0.20210731

4 years ago

1.0.20210723

4 years ago

1.0.20210717

4 years ago

1.0.20210712

4 years ago

1.0.20210628

4 years ago

1.0.20210618

4 years ago

1.0.20210613

4 years ago

1.0.20210524

4 years ago

1.0.20210508

4 years ago

1.0.20210501

4 years ago

1.0.20210424

4 years ago

1.0.20210417

4 years ago