0.0.20240505 • Published 1 day ago

@maxim_mazurok/gapi.client.networksecurity-v1beta1 v0.0.20240505

Weekly downloads
-
License
MIT
Repository
github
Last release
1 day ago

TypeScript typings for Network Security API v1beta1

For detailed description please check documentation.

Installing

Install typings for Network Security API:

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

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 Network Security API resources:

0.0.20240505

1 day ago

0.0.20240320

1 month ago

0.0.20240313

2 months ago

0.0.20240306

2 months ago

0.0.20240229

2 months ago

0.0.20240221

2 months ago

0.0.20240217

3 months ago

0.0.20240208

3 months ago

0.0.20240201

3 months ago

0.0.20240130

3 months ago

0.0.20240102

4 months ago

0.0.20231205

5 months ago

0.0.20230719

10 months ago

0.0.20230918

8 months ago

0.0.20230831

8 months ago

0.0.20230710

10 months ago

0.0.20230814

9 months ago

0.0.20230911

8 months ago

0.0.20230713

10 months ago

0.0.20230920

7 months ago

0.0.20231017

7 months ago

0.0.20230701

10 months ago

0.0.20230727

10 months ago

0.0.20231025

6 months ago

0.0.20231003

7 months ago

0.0.20231101

6 months ago

0.0.20230625

11 months ago

0.0.20230619

11 months ago

0.0.20230610

11 months ago

0.0.20230511

12 months ago

0.0.20230420

1 year ago

0.0.20230605

11 months ago

0.0.20230505

1 year ago

0.0.20230415

1 year ago

0.0.20230327

1 year ago

0.0.20230316

1 year ago

0.0.20230309

1 year ago

0.0.20230306

1 year ago

0.0.20230406

1 year ago

0.0.20230208

1 year ago

0.0.20230130

1 year ago

0.0.20221205

1 year ago

0.0.20230106

1 year ago

0.0.20221215

1 year ago

0.0.20221103

2 years ago

0.0.20221006

2 years ago

0.0.20221027

2 years ago

0.0.20221024

2 years ago

0.0.20220908

2 years ago

0.0.20220902

2 years ago

0.0.20220808

2 years ago