1.0.20220804 • Published 2 years ago

@maxim_mazurok/gapi.client.privateca v1.0.20220804

Weekly downloads
73
License
MIT
Repository
github
Last release
2 years ago

TypeScript typings for Certificate Authority API v1

The Certificate Authority Service API is a highly-available, scalable service that enables you to simplify and automate the management of private certificate authorities (CAs) while staying in control of your private keys. For detailed description please check documentation.

Installing

Install typings for Certificate Authority API:

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

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',
    ],
    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 Certificate Authority API resources:

1.0.20220707

2 years ago

1.0.20220623

2 years ago

1.0.20220728

2 years ago

1.0.20220804

2 years ago

1.0.20220609

2 years ago

1.0.20220504

2 years ago

1.0.20220427

2 years ago

1.0.20220526

2 years ago

1.0.20220602

2 years ago

1.0.20220323

2 years ago

1.0.20220406

2 years ago

1.0.20220223

2 years ago

1.0.20220309

2 years ago

1.0.20220107

2 years ago

1.0.20220119

2 years ago

1.0.20220126

2 years ago

1.0.20220202

2 years ago

1.0.20220209

2 years ago

1.0.20211110

2 years ago

1.0.20211201

2 years ago

1.0.20211103

3 years ago

1.0.20211101

3 years ago

1.0.20211020

3 years ago

1.0.20211006

3 years ago

1.0.20210929

3 years ago

1.0.20210922

3 years ago

1.0.20210915

3 years ago

1.0.20210908

3 years ago

1.0.20210825

3 years ago

1.0.20210819

3 years ago

1.0.20210804

3 years ago

1.0.20210728

3 years ago

1.0.20210721

3 years ago

1.0.20210714

3 years ago

1.0.20210707

3 years ago

1.0.20210624

3 years ago

1.0.20210621

3 years ago

1.0.20210616

3 years ago

1.0.20210614

3 years ago

1.0.20210610

3 years ago

1.0.20210603

3 years ago

1.0.20210601

3 years ago

1.0.20210525

3 years ago

1.0.20210513

3 years ago

1.0.20210506

3 years ago

1.0.20210429

3 years ago

1.0.20210426

3 years ago

1.0.20210401

3 years ago

1.0.20210325

3 years ago

1.0.20210322

3 years ago

1.0.20210318

3 years ago

1.0.20210316

3 years ago

1.0.20210218

3 years ago

1.0.20210208

3 years ago

1.0.20210125

3 years ago

1.0.20210119

3 years ago

1.0.20201216

3 years ago

1.0.20201203

3 years ago

1.0.20201201

3 years ago

1.0.20201112

3 years ago

1.0.20201105

3 years ago