module
@google-cloud/kms
Source: index.
The @google-cloud/kms package has the following named exports:
KeyManagementServiceClient- Reference to v1.KeyManagementServiceClientv1- This is used for selecting or pinning a particular backend service version. It exports:KeyManagementServiceClient- Reference to v1.KeyManagementServiceClient
Examples
Install the client library with <a href="https://www.npmjs.com/">npm</a>:
npm install --save @google-cloud/kms
Import the client library:
const kms = require('@google-cloud/kms');
Create a client that uses <a href="https://goo.gl/64dyYX">Application Default Credentials (ADC)</a>:
const client = new kms.KeyManagementServiceClient();
Create a client with <a href="https://goo.gl/RXp6VL">explicit credentials</a>:
const client = new kms.KeyManagementServiceClient({
projectId: 'your-project-id',
keyFilename: '/path/to/keyfile.json',
});
Property
Exports
require("@google-cloud/kms") unknown
Property
| Name | Type | Optional | Description |
|---|---|---|---|
|
KeyManagementServiceClient |
|
|
Reference to v1.KeyManagementServiceClient |
Property
static
v1 object
Property
| Name | Type | Optional | Description |
|---|---|---|---|
|
KeyManagementServiceClient |
constructor |
|
Reference to v1.KeyManagementServiceClient |