1.0.20220806 • Published 2 years ago

@maxim_mazurok/gapi.client.ondemandscanning v1.0.20220806

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

2 years ago

1.0.20220620

2 years ago

1.0.20220625

2 years ago

1.0.20220716

2 years ago

1.0.20220711

2 years ago

1.0.20220806

2 years ago

1.0.20220725

2 years ago

1.0.20220730

2 years ago

1.0.20220509

2 years ago

1.0.20220430

2 years ago

1.0.20220513

2 years ago

1.0.20220522

2 years ago

1.0.20220604

2 years ago

1.0.20220530

2 years ago

1.0.20220415

2 years ago

1.0.20220409

2 years ago

1.0.20220425

2 years ago

1.0.20220326

2 years ago

1.0.20220404

2 years ago

1.0.20220307

2 years ago

1.0.20220228

2 years ago

1.0.20220314

2 years ago

1.0.20220218

2 years ago

1.0.20220224

2 years ago

1.0.20220122

2 years ago

1.0.20220207

2 years ago

1.0.20220107

2 years ago

1.0.20220212

2 years ago

1.0.20220131

2 years ago

1.0.20211115

2 years ago

1.0.20211106

2 years ago

1.0.20211206

2 years ago

1.0.20211022

3 years ago

1.0.20211029

3 years ago

1.0.20211005

3 years ago

1.0.20211015

3 years ago

1.0.20210925

3 years ago

1.0.20210918

3 years ago

1.0.20210911

3 years ago

1.0.20210903

3 years ago

1.0.20210827

3 years ago

1.0.20210824

3 years ago

1.0.20210816

3 years ago

1.0.20210809

3 years ago

1.0.20210731

3 years ago

1.0.20210723

3 years ago

1.0.20210717

3 years ago

1.0.20210712

3 years ago

1.0.20210628

3 years ago

1.0.20210618

3 years ago

1.0.20210613

3 years ago

1.0.20210524

3 years ago

1.0.20210508

3 years ago

1.0.20210501

3 years ago

1.0.20210424

3 years ago

1.0.20210417

3 years ago