1.0.20220729 • Published 3 years ago

@maxim_mazurok/gapi.client.cloudkms v1.0.20220729

Weekly downloads
92
License
MIT
Repository
github
Last release
3 years ago

TypeScript typings for Cloud Key Management Service (KMS) API v1

Manages keys and performs cryptographic operations in a central cloud service, for direct use by other cloud resources and applications. For detailed description please check documentation.

Installing

Install typings for Cloud Key Management Service (KMS) API:

npm install @types/gapi.client.cloudkms@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('cloudkms', 'v1', () => {
  // now we can use gapi.client.cloudkms
  // ...
});

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

      // View and manage your keys and secrets stored in Cloud Key Management Service
      'https://www.googleapis.com/auth/cloudkms',
    ],
    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 Key Management Service (KMS) API resources:

1.0.20220617

3 years ago

1.0.20220701

3 years ago

1.0.20220624

3 years ago

1.0.20220715

3 years ago

1.0.20220729

3 years ago

1.0.20220722

3 years ago

1.0.20220610

3 years ago

1.0.20220506

3 years ago

1.0.20220429

3 years ago

1.0.20220513

3 years ago

1.0.20220520

3 years ago

1.0.20220603

3 years ago

1.0.20220415

3 years ago

1.0.20220422

3 years ago

1.0.20220401

3 years ago

1.0.20220325

3 years ago

1.0.20220407

3 years ago

1.0.20220225

3 years ago

1.0.20220309

3 years ago

1.0.20220311

3 years ago

1.0.20220218

3 years ago

1.0.20220118

3 years ago

1.0.20220104

3 years ago

1.0.20220105

3 years ago

1.0.20220122

3 years ago

1.0.20220208

3 years ago

1.0.20220211

3 years ago

1.0.20211130

4 years ago

1.0.20211209

4 years ago

1.0.20211105

4 years ago

1.0.20211022

4 years ago

1.0.20211029

4 years ago

1.0.20211018

4 years ago

1.0.20210928

4 years ago

1.0.20210921

4 years ago

1.0.20210906

4 years ago

1.0.20210827

4 years ago

1.0.20210820

4 years ago

1.0.20210812

4 years ago

1.0.20210803

4 years ago

1.0.20210723

4 years ago

1.0.20210713

4 years ago

1.0.20210702

4 years ago

1.0.20210625

4 years ago

1.0.20210622

4 years ago

1.0.20210604

4 years ago

1.0.20210527

4 years ago

1.0.20210522

4 years ago

1.0.20210513

4 years ago

1.0.20210504

4 years ago

1.0.20210428

4 years ago

1.0.20210410

4 years ago

1.0.20210331

4 years ago

1.0.20210318

4 years ago

1.0.20210312

4 years ago

1.0.20210210

4 years ago

1.0.20210129

4 years ago

1.0.20210122

4 years ago

1.0.20210106

4 years ago

1.0.20201201

5 years ago

1.0.20201111

5 years ago