Data Loss Prevention V2 Client - Class Connection (1.15.1)

Reference documentation and code samples for the Data Loss Prevention V2 Client class Connection.

A data connection to allow DLP to profile data in locations that require additional configuration.

Generated from protobuf message google.privacy.dlp.v2.Connection

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}.

↳ state int

Required. The connection's state in its lifecycle.

↳ errors array<Google\Cloud\Dlp\V2\Error>

Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.

↳ cloud_sql Google\Cloud\Dlp\V2\CloudSqlProperties

Connect to a Cloud SQL instance.

getName

Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}.

Returns
Type Description
string

setName

Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}.

Parameter
Name Description
var string
Returns
Type Description
$this

getState

Required. The connection's state in its lifecycle.

Returns
Type Description
int

setState

Required. The connection's state in its lifecycle.

Parameter
Name Description
var int
Returns
Type Description
$this

getErrors

Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setErrors

Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.

Parameter
Name Description
var array<Google\Cloud\Dlp\V2\Error>
Returns
Type Description
$this

getCloudSql

Connect to a Cloud SQL instance.

Returns
Type Description
Google\Cloud\Dlp\V2\CloudSqlProperties|null

hasCloudSql

setCloudSql

Connect to a Cloud SQL instance.

Parameter
Name Description
var Google\Cloud\Dlp\V2\CloudSqlProperties
Returns
Type Description
$this

getProperties

Returns
Type Description
string