0.0.20240923 • Published 10 months ago

@maxim_mazurok/gapi.client.runtimeconfig-v1beta1 v0.0.20240923

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

TypeScript typings for Cloud Runtime Configuration API v1beta1

The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions. For detailed description please check documentation.

Installing

Install typings for Cloud Runtime Configuration API:

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

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

    // Manage your Google Cloud Platform services' runtime configuration
    'https://www.googleapis.com/auth/cloudruntimeconfig',
  ],
  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 Runtime Configuration API resources:

0.0.20240923

10 months ago

0.0.20240819

11 months ago

0.0.20240823

11 months ago

0.0.20240627

1 year ago

0.0.20240227

1 year ago

0.0.20231229

2 years ago

0.0.20231222

2 years ago

0.0.20231225

2 years ago

0.0.20231109

2 years ago

0.0.20230926

2 years ago

0.0.20230806

2 years ago

0.0.20230720

2 years ago

0.0.20230803

2 years ago

0.0.20230724

2 years ago

0.0.20231023

2 years ago

0.0.20231127

2 years ago

0.0.20230710

2 years ago

0.0.20230914

2 years ago

0.0.20231013

2 years ago

0.0.20231016

2 years ago

0.0.20230829

2 years ago

0.0.20230820

2 years ago

0.0.20230903

2 years ago

0.0.20231120

2 years ago

0.0.20231001

2 years ago

0.0.20230628

2 years ago

0.0.20230626

2 years ago

0.0.20230517

2 years ago

0.0.20230620

2 years ago

0.0.20230521

2 years ago

0.0.20230508

2 years ago

0.0.20230501

2 years ago

0.0.20230605

2 years ago

0.0.20230530

2 years ago

0.0.20230313

2 years ago

0.0.20230417

2 years ago

0.0.20230227

2 years ago

0.0.20230404

2 years ago

0.0.20230327

2 years ago

0.0.20230302

2 years ago

0.0.20230424

2 years ago

0.0.20230306

2 years ago

0.0.20230410

2 years ago

0.0.20230206

2 years ago

0.0.20230130

2 years ago

0.0.20230213

2 years ago

0.0.20221114

3 years ago

0.0.20221212

3 years ago

0.0.20230109

2 years ago

0.0.20221206

3 years ago

0.0.20221107

3 years ago

0.0.20230123

2 years ago

0.0.20221205

3 years ago

0.0.20221031

3 years ago

0.0.20221017

3 years ago

0.0.20221025

3 years ago

0.0.20221003

3 years ago

0.0.20220926

3 years ago

0.0.20220829

3 years ago

0.0.20220919

3 years ago

0.0.20220823

3 years ago

0.0.20220912

3 years ago

0.0.20220915

3 years ago

0.0.20220813

3 years ago

0.0.20220808

3 years ago