1.0.20220806 • Published 4 years ago

@maxim_mazurok/gapi.client.ondemandscanning v1.0.20220806

Weekly downloads
-
License
MIT
Repository
github
Last release
4 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

4 years ago

1.0.20220620

4 years ago

1.0.20220625

4 years ago

1.0.20220716

4 years ago

1.0.20220711

4 years ago

1.0.20220806

4 years ago

1.0.20220725

4 years ago

1.0.20220730

4 years ago

1.0.20220509

4 years ago

1.0.20220430

4 years ago

1.0.20220513

4 years ago

1.0.20220522

4 years ago

1.0.20220604

4 years ago

1.0.20220530

4 years ago

1.0.20220415

4 years ago

1.0.20220409

4 years ago

1.0.20220425

4 years ago

1.0.20220326

4 years ago

1.0.20220404

4 years ago

1.0.20220307

4 years ago

1.0.20220228

4 years ago

1.0.20220314

4 years ago

1.0.20220218

4 years ago

1.0.20220224

4 years ago

1.0.20220122

4 years ago

1.0.20220207

4 years ago

1.0.20220107

4 years ago

1.0.20220212

4 years ago

1.0.20220131

4 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

5 years ago

1.0.20210731

5 years ago

1.0.20210723

5 years ago

1.0.20210717

5 years ago

1.0.20210712

5 years ago

1.0.20210628

5 years ago

1.0.20210618

5 years ago

1.0.20210613

5 years ago

1.0.20210524

5 years ago

1.0.20210508

5 years ago

1.0.20210501

5 years ago

1.0.20210424

5 years ago

1.0.20210417

5 years ago