Data Loss Prevention V2 Client - Class CloudSqlProperties (1.15.1)

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 \ V2

Methods

__construct

Constructor.

Parameters
Name
Description
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
Google\Cloud\Dlp\V2\SecretManagerCredential

A username and password stored in Secret Manager.

↳ cloud_sql_iam
Google\Cloud\Dlp\V2\CloudSqlIamCredential

Built-in IAM authentication (must be configured in Cloud SQL).

↳ 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

Returns
Type
Description
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

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getUsernamePassword

A username and password stored in Secret Manager.

Returns
Type
Description

hasUsernamePassword

setUsernamePassword

A username and password stored in Secret Manager.

Parameter
Name
Description
Returns
Type
Description
$this

getCloudSqlIam

Built-in IAM authentication (must be configured in Cloud SQL).

Returns
Type
Description

hasCloudSqlIam

setCloudSqlIam

Built-in IAM authentication (must be configured in Cloud SQL).

Parameter
Name
Description
Returns
Type
Description
$this

getMaxConnections

Required. DLP will limit its connections to max_connections.

Must be 2 or greater.

Returns
Type
Description
int

setMaxConnections

Required. DLP will limit its connections to max_connections.

Must be 2 or greater.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getDatabaseEngine

Required. The database engine used by the Cloud SQL instance that this connection configures.

Returns
Type
Description
int

setDatabaseEngine

Required. The database engine used by the Cloud SQL instance that this connection configures.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getCredential

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: