0.0.20240502 • Published 1 day ago

@maxim_mazurok/gapi.client.networkservices-v1beta1 v0.0.20240502

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

TypeScript typings for Network Services API v1beta1

For detailed description please check documentation.

Installing

Install typings for Network Services API:

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

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 Services API resources:

0.0.20240502

1 day ago

0.0.20240415

16 days ago

0.0.20240410

22 days ago

0.0.20240321

1 month ago

0.0.20240315

2 months ago

0.0.20240306

2 months ago

0.0.20240228

2 months ago

0.0.20240224

2 months ago

0.0.20240216

3 months ago

0.0.20240207

3 months ago

0.0.20240125

3 months ago

0.0.20240118

4 months ago

0.0.20231227

4 months ago

0.0.20231211

5 months ago

0.0.20231129

5 months ago

0.0.20230918

8 months ago

0.0.20230910

8 months ago

0.0.20230712

10 months ago

0.0.20231107

6 months ago

0.0.20230710

10 months ago

0.0.20230814

9 months ago

0.0.20230829

8 months ago

0.0.20230807

9 months ago

0.0.20230926

7 months ago

0.0.20230927

7 months ago

0.0.20231018

7 months ago

0.0.20230724

10 months ago

0.0.20230626

10 months ago

0.0.20231025

6 months ago

0.0.20230630

10 months ago

0.0.20230619

11 months ago

0.0.20230519

12 months ago

0.0.20230531

11 months ago

0.0.20230510

12 months ago

0.0.20230413

1 year ago

0.0.20230323

1 year ago

0.0.20230301

1 year ago

0.0.20230227

1 year ago

0.0.20230404

1 year ago

0.0.20230424

1 year ago

0.0.20230405

1 year ago

0.0.20230130

1 year ago

0.0.20230201

1 year ago

0.0.20230213

1 year ago

0.0.20230118

1 year ago

0.0.20221103

2 years ago

0.0.20230105

1 year ago

0.0.20221208

1 year ago

0.0.20221128

1 year ago

0.0.20221027

2 years ago

0.0.20221005

2 years ago

0.0.20220922

2 years ago

0.0.20221024

2 years ago

0.0.20220916

2 years ago

0.0.20220906

2 years ago

0.0.20220902

2 years ago

0.0.20220825

2 years ago

0.0.20220809

2 years ago

0.0.20220802

2 years ago