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 \ V2Methods
__construct
Constructor.
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
getName
Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}
.
string
setName
Output only. Name of the connection: projects/{project}/locations/{location}/connections/{name}
.
var
string
$this
getState
Required. The connection's state in its lifecycle.
int
setState
Required. The connection's state in its lifecycle.
var
int
$this
getErrors
Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
setErrors
Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
$this
getCloudSql
Connect to a Cloud SQL instance.
hasCloudSql
setCloudSql
Connect to a Cloud SQL instance.
$this
getProperties
string