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