Reference documentation and code samples for the Data Loss Prevention V2 Client class CloudSqlProperties.
Cloud SQL connection properties.
Generated from protobuf message google.privacy.dlp.v2.CloudSqlProperties
Namespace
Google \ Cloud \ Dlp \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ connection_name
string
Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated. It is an error to use a connection_name from different project or region than the one that holds the connection. For example, a Connection resource for Cloud SQL connection_name project-id:us-central1:sql-instance
must be created under the parent projects/project-id/locations/us-central1
↳ username_password
↳ cloud_sql_iam
↳ max_connections
int
Required. DLP will limit its connections to max_connections. Must be 2 or greater.
↳ database_engine
int
Required. The database engine used by the Cloud SQL instance that this connection configures.
getConnectionName
Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated.
It is an error to use a connection_name from different project or region
than the one that holds the connection.
For example, a Connection resource for Cloud SQL connection_name project-id:us-central1:sql-instance
must be created under the parent projects/project-id/locations/us-central1
string
setConnectionName
Optional. Immutable. The Cloud SQL instance for which the connection is defined. Only one connection per instance is allowed. This can only be set at creation time, and cannot be updated.
It is an error to use a connection_name from different project or region
than the one that holds the connection.
For example, a Connection resource for Cloud SQL connection_name project-id:us-central1:sql-instance
must be created under the parent projects/project-id/locations/us-central1
var
string
$this
getUsernamePassword
A username and password stored in Secret Manager.
hasUsernamePassword
setUsernamePassword
A username and password stored in Secret Manager.
$this
getCloudSqlIam
Built-in IAM authentication (must be configured in Cloud SQL).
hasCloudSqlIam
setCloudSqlIam
Built-in IAM authentication (must be configured in Cloud SQL).
$this
getMaxConnections
Required. DLP will limit its connections to max_connections.
Must be 2 or greater.
int
setMaxConnections
Required. DLP will limit its connections to max_connections.
Must be 2 or greater.
var
int
$this
getDatabaseEngine
Required. The database engine used by the Cloud SQL instance that this connection configures.
int
setDatabaseEngine
Required. The database engine used by the Cloud SQL instance that this connection configures.
var
int
$this
getCredential
string