1.0.20220729 • Published 2 years ago

@maxim_mazurok/gapi.client.cloudkms v1.0.20220729

Weekly downloads
92
License
MIT
Repository
github
Last release
2 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

2 years ago

1.0.20220701

2 years ago

1.0.20220624

2 years ago

1.0.20220715

2 years ago

1.0.20220729

2 years ago

1.0.20220722

2 years ago

1.0.20220610

2 years ago

1.0.20220506

2 years ago

1.0.20220429

2 years ago

1.0.20220513

2 years ago

1.0.20220520

2 years ago

1.0.20220603

2 years ago

1.0.20220415

2 years ago

1.0.20220422

2 years ago

1.0.20220401

2 years ago

1.0.20220325

2 years ago

1.0.20220407

2 years ago

1.0.20220225

2 years ago

1.0.20220309

2 years ago

1.0.20220311

2 years ago

1.0.20220218

2 years ago

1.0.20220118

2 years ago

1.0.20220104

2 years ago

1.0.20220105

2 years ago

1.0.20220122

2 years ago

1.0.20220208

2 years ago

1.0.20220211

2 years ago

1.0.20211130

2 years ago

1.0.20211209

2 years ago

1.0.20211105

3 years ago

1.0.20211022

3 years ago

1.0.20211029

3 years ago

1.0.20211018

3 years ago

1.0.20210928

3 years ago

1.0.20210921

3 years ago

1.0.20210906

3 years ago

1.0.20210827

3 years ago

1.0.20210820

3 years ago

1.0.20210812

3 years ago

1.0.20210803

3 years ago

1.0.20210723

3 years ago

1.0.20210713

3 years ago

1.0.20210702

3 years ago

1.0.20210625

3 years ago

1.0.20210622

3 years ago

1.0.20210604

3 years ago

1.0.20210527

3 years ago

1.0.20210522

3 years ago

1.0.20210513

3 years ago

1.0.20210504

3 years ago

1.0.20210428

3 years ago

1.0.20210410

3 years ago

1.0.20210331

3 years ago

1.0.20210318

3 years ago

1.0.20210312

3 years ago

1.0.20210210

3 years ago

1.0.20210129

3 years ago

1.0.20210122

3 years ago

1.0.20210106

3 years ago

1.0.20201201

3 years ago

1.0.20201111

4 years ago