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 npm:
npm install --save @google-cloud/dlp
Import the client library:
const dlp = require('@google-cloud/dlp');
Create a client that uses Application Default Credentials (ADC):
const client = new dlp.DlpServiceClient();
Create a client with explicit credentials:
const client = new dlp.DlpServiceClient({
projectId: 'your-project-id',
keyFilename: '/path/to/keyfile.json',
});
Members
(static) v2 :object
Properties:
| Name | Type | Description |
|---|---|---|
DlpServiceClient |
constructor |
Reference to v2.DlpServiceClient |