0.0.20240422 • Published 13 days ago

@maxim_mazurok/gapi.client.container-v1 v0.0.20240422

Weekly downloads
-
License
MIT
Repository
github
Last release
13 days ago

TypeScript typings for Kubernetes Engine API v1

Builds and manages container-based applications, powered by the open source Kubernetes technology. For detailed description please check documentation.

Installing

Install typings for Kubernetes Engine API:

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

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 Kubernetes Engine API resources:

0.0.20240422

13 days ago

0.0.20240409

26 days ago

0.0.20240327

1 month ago

0.0.20240313

2 months ago

0.0.20240304

2 months ago

0.0.20240229

2 months ago

0.0.20240214

3 months ago

0.0.20240206

3 months ago

0.0.20240130

3 months ago

0.0.20240118

4 months ago

0.0.20240117

4 months ago

0.0.20240116

4 months ago

0.0.20240109

4 months ago

0.0.20231204

5 months ago

0.0.20231201

5 months ago

0.0.20231122

5 months ago

0.0.20230810

9 months ago

0.0.20230620

11 months ago

0.0.20231030

6 months ago

0.0.20230809

9 months ago

0.0.20230724

10 months ago

0.0.20230802

10 months ago

0.0.20231024

7 months ago

0.0.20230719

10 months ago

0.0.20230915

8 months ago

0.0.20230919

8 months ago

0.0.20230914

8 months ago

0.0.20231012

7 months ago

0.0.20230629

10 months ago

0.0.20230627

10 months ago

0.0.20230626

11 months ago

0.0.20231001

7 months ago

0.0.20230614

11 months ago

0.0.20230519

12 months ago

0.0.20230515

12 months ago

0.0.20230420

1 year ago

0.0.20230524

11 months ago

0.0.20230522

12 months ago

0.0.20230501

1 year ago

0.0.20230317

1 year ago

0.0.20230322

1 year ago

0.0.20230222

1 year ago

0.0.20230326

1 year ago

0.0.20230304

1 year ago

0.0.20230404

1 year ago

0.0.20230302

1 year ago

0.0.20230309

1 year ago

0.0.20230306

1 year ago

0.0.20230406

1 year ago

0.0.20230203

1 year ago

0.0.20230207

1 year ago

0.0.20230208

1 year ago

0.0.20230120

1 year ago

0.0.20230124

1 year ago

0.0.20221031

2 years ago

0.0.20230117

1 year ago

0.0.20230104

1 year ago

0.0.20221114

1 year ago

0.0.20221024

2 years ago

0.0.20221110

1 year ago

0.0.20221108

1 year ago

0.0.20220927

2 years ago

0.0.20221017

2 years ago

0.0.20220923

2 years ago

0.0.20221023

2 years ago

0.0.20220817

2 years ago

0.0.20220811

2 years ago

0.0.20220913

2 years ago

0.0.20220826

2 years ago

0.0.20220727

2 years ago