@google-cloud/dlp 0.3.0 » Class: DlpServiceClient

v2beta1.DlpServiceClient

classstatic

The DLP API is a service that allows clients to detect the presence of Personally Identifiable Information (PII) and other privacy-sensitive data in user-supplied, unstructured data streams, like text blocks or images. The service also includes
methods for sensitive data redaction and scheduling of data scans on Google Cloud Platform based data sets.

Constructor

DlpServiceClient

new DlpServiceClient(options)

Construct an instance of DlpServiceClient.

Parameter

options

Optional

object

The configuration object. See the subsequent parameters for more details.

Full path to the a .json, .pem, or .p12 key downloaded from the Google Developers Console. If you provide a path to a JSON file, the projectId option above is not necessary. NOTE: .pem and .p12 require you to specify options.email
as well.

port

Optional

number

The port on which to connect to the remote host.

projectId

Optional

string

The project ID from the Google Developer's Console, e.g. 'grape-spaceship-123'. We will also check the environment variable GCLOUD_PROJECT for your project ID. If your app is running in an environment which supports
Application Default Credentials, your project ID will be detected automatically.

promise

Optional

function()

Custom promise module to use instead of native Promises.

servicePath

Optional

string

The domain name of the API remote host.

Properties

port

static

The port for this API service.

scopes

static

The scopes needed to make gRPC calls for every method defined in this service.

servicePath

static

The DNS address for this API service.

Methods

analyzeDataSourceRisk

analyzeDataSourceRisk(request, options, callback) returns Promise

Schedules a job to compute risk analysis metrics over content in a Google Cloud Platform repository.

The promise which resolves to an array. The first element of the array is an object representing ListInspectFindingsResponse. The promise has a method named
"cancel" which cancels the ongoing API call.