Data Loss Prevention V2 Client - Class Connection (2.7.0)

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

A data connection to allow the DLP API 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<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 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 Enum of type ConnectionState.

setState

Required. The connection's state in its lifecycle.

Parameter
Name Description
var int

Enum of type ConnectionState.

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<Error>
Returns
Type Description
$this

getCloudSql

Connect to a Cloud SQL instance.

Returns
Type Description
CloudSqlProperties|null

hasCloudSql

setCloudSql

Connect to a Cloud SQL instance.

Parameter
Name Description
var CloudSqlProperties
Returns
Type Description
$this

getProperties

Returns
Type Description
string