0.0.20240513 • Published 7 days ago

@maxim_mazurok/gapi.client.bigtableadmin-v2 v0.0.20240513

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

TypeScript typings for Cloud Bigtable Admin API v2

Administer your Cloud Bigtable tables and instances. For detailed description please check documentation.

Installing

Install typings for Cloud Bigtable Admin API:

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

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 = [
    // Administer your Cloud Bigtable tables and clusters
    'https://www.googleapis.com/auth/bigtable.admin',

    // Administer your Cloud Bigtable clusters
    'https://www.googleapis.com/auth/bigtable.admin.cluster',

    // Administer your Cloud Bigtable clusters
    'https://www.googleapis.com/auth/bigtable.admin.instance',

    // Administer your Cloud Bigtable tables
    'https://www.googleapis.com/auth/bigtable.admin.table',

    // Administer your Cloud Bigtable tables and clusters
    'https://www.googleapis.com/auth/cloud-bigtable.admin',

    // Administer your Cloud Bigtable clusters
    'https://www.googleapis.com/auth/cloud-bigtable.admin.cluster',

    // Administer your Cloud Bigtable tables
    'https://www.googleapis.com/auth/cloud-bigtable.admin.table',

    // 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',

    // View your data across Google Cloud services and see the email address of your Google Account
    'https://www.googleapis.com/auth/cloud-platform.read-only',
  ],
  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 Cloud Bigtable Admin API resources:

/*
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
*/
await gapi.client.bigtableadmin.operations.get({name: 'name'});
0.0.20240513

7 days ago

0.0.20240430

14 days ago

0.0.20240429

21 days ago

0.0.20240413

29 days ago

0.0.20240331

1 month ago

0.0.20240319

2 months ago

0.0.20240318

2 months ago

0.0.20240306

2 months ago

0.0.20240225

3 months ago

0.0.20240221

3 months ago

0.0.20240207

3 months ago

0.0.20240201

3 months ago

0.0.20240126

4 months ago

0.0.20240120

4 months ago

0.0.20240110

4 months ago

0.0.20231208

5 months ago

0.0.20231212

4 months ago

0.0.20231207

6 months ago

0.0.20231127

6 months ago

0.0.20231029

7 months ago

0.0.20230731

10 months ago

0.0.20231110

6 months ago

0.0.20230928

8 months ago

0.0.20230920

8 months ago

0.0.20231101

7 months ago

0.0.20231024

7 months ago

0.0.20230913

8 months ago

0.0.20230716

10 months ago

0.0.20230713

10 months ago

0.0.20231013

7 months ago

0.0.20230824

9 months ago

0.0.20231121

6 months ago

0.0.20231005

7 months ago

0.0.20230622

11 months ago

0.0.20230610

11 months ago

0.0.20230517

1 year ago

0.0.20230426

1 year ago

0.0.20230529

12 months ago

0.0.20230316

1 year ago

0.0.20230412

1 year ago

0.0.20230322

1 year ago

0.0.20230302

1 year ago

0.0.20230405

1 year ago

0.0.20230307

1 year ago

0.0.20230330

1 year ago

0.0.20230206

1 year ago

0.0.20230220

1 year ago

0.0.20230223

1 year ago

0.0.20230222

1 year ago

0.0.20221213

1 year ago

0.0.20221101

2 years ago

0.0.20221122

1 year ago

0.0.20230110

1 year ago

0.0.20230114

1 year ago

0.0.20221229

1 year ago

0.0.20230101

1 year ago

0.0.20221022

2 years ago

0.0.20221009

2 years ago

0.0.20221018

2 years ago

0.0.20220926

2 years ago

0.0.20220917

2 years ago

0.0.20220819

2 years ago

0.0.20220908

2 years ago

0.0.20220914

2 years ago

0.0.20220816

2 years ago

0.0.20220806

2 years ago

0.0.20220725

2 years ago