0.0.20241025 • Published 8 months ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months 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.20241025

8 months ago

0.0.20240924

9 months ago

0.0.20241008

9 months ago

0.0.20240918

10 months ago

0.0.20240914

10 months ago

0.0.20240904

10 months ago

0.0.20240824

10 months ago

0.0.20240806

11 months ago

0.0.20240729

11 months ago

0.0.20240604

1 year ago

0.0.20240720

12 months ago

0.0.20240522

1 year ago

0.0.20240616

1 year ago

0.0.20240628

1 year ago

0.0.20240708

12 months ago

0.0.20240703

12 months ago

0.0.20240820

11 months ago

0.0.20240520

1 year ago

0.0.20240517

1 year ago

0.0.20240513

1 year ago

0.0.20240430

1 year ago

0.0.20240429

1 year ago

0.0.20240413

1 year ago

0.0.20240331

1 year ago

0.0.20240319

1 year ago

0.0.20240318

1 year ago

0.0.20240306

1 year ago

0.0.20240225

1 year ago

0.0.20240221

1 year ago

0.0.20240207

1 year ago

0.0.20240201

1 year ago

0.0.20240126

1 year ago

0.0.20240120

1 year ago

0.0.20240110

1 year ago

0.0.20231208

2 years ago

0.0.20231212

1 year ago

0.0.20231207

2 years ago

0.0.20231127

2 years ago

0.0.20231029

2 years ago

0.0.20230731

2 years ago

0.0.20231110

2 years ago

0.0.20230928

2 years ago

0.0.20230920

2 years ago

0.0.20231101

2 years ago

0.0.20231024

2 years ago

0.0.20230913

2 years ago

0.0.20230716

2 years ago

0.0.20230713

2 years ago

0.0.20231013

2 years ago

0.0.20230824

2 years ago

0.0.20231121

2 years ago

0.0.20231005

2 years ago

0.0.20230622

2 years ago

0.0.20230610

2 years ago

0.0.20230517

2 years ago

0.0.20230426

2 years ago

0.0.20230529

2 years ago

0.0.20230316

2 years ago

0.0.20230412

2 years ago

0.0.20230322

2 years ago

0.0.20230302

2 years ago

0.0.20230405

2 years ago

0.0.20230307

2 years ago

0.0.20230330

2 years ago

0.0.20230206

2 years ago

0.0.20230220

2 years ago

0.0.20230223

2 years ago

0.0.20230222

2 years ago

0.0.20221213

3 years ago

0.0.20221101

3 years ago

0.0.20221122

3 years ago

0.0.20230110

2 years ago

0.0.20230114

2 years ago

0.0.20221229

3 years ago

0.0.20230101

2 years ago

0.0.20221022

3 years ago

0.0.20221009

3 years ago

0.0.20221018

3 years ago

0.0.20220926

3 years ago

0.0.20220917

3 years ago

0.0.20220819

3 years ago

0.0.20220908

3 years ago

0.0.20220914

3 years ago

0.0.20220816

3 years ago

0.0.20220806

3 years ago

0.0.20220725

3 years ago