Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::CloudSqlProperties.
Cloud SQL connection properties.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cloud_sql_iam
def cloud_sql_iam() -> ::Google::Cloud::Dlp::V2::CloudSqlIamCredential
-
(::Google::Cloud::Dlp::V2::CloudSqlIamCredential) — Built-in IAM authentication (must be configured in Cloud SQL).
Note: The following fields are mutually exclusive:
cloud_sql_iam
,username_password
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#cloud_sql_iam=
def cloud_sql_iam=(value) -> ::Google::Cloud::Dlp::V2::CloudSqlIamCredential
-
value (::Google::Cloud::Dlp::V2::CloudSqlIamCredential) — Built-in IAM authentication (must be configured in Cloud SQL).
Note: The following fields are mutually exclusive:
cloud_sql_iam
,username_password
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Dlp::V2::CloudSqlIamCredential) — Built-in IAM authentication (must be configured in Cloud SQL).
Note: The following fields are mutually exclusive:
cloud_sql_iam
,username_password
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#connection_name
def connection_name() -> ::String
-
(::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 parentprojects/project-id/locations/us-central1
#connection_name=
def connection_name=(value) -> ::String
-
value (::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 parentprojects/project-id/locations/us-central1
-
(::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 parentprojects/project-id/locations/us-central1
#database_engine
def database_engine() -> ::Google::Cloud::Dlp::V2::CloudSqlProperties::DatabaseEngine
- (::Google::Cloud::Dlp::V2::CloudSqlProperties::DatabaseEngine) — Required. The database engine used by the Cloud SQL instance that this connection configures.
#database_engine=
def database_engine=(value) -> ::Google::Cloud::Dlp::V2::CloudSqlProperties::DatabaseEngine
- value (::Google::Cloud::Dlp::V2::CloudSqlProperties::DatabaseEngine) — Required. The database engine used by the Cloud SQL instance that this connection configures.
- (::Google::Cloud::Dlp::V2::CloudSqlProperties::DatabaseEngine) — Required. The database engine used by the Cloud SQL instance that this connection configures.
#max_connections
def max_connections() -> ::Integer
- (::Integer) — Required. DLP will limit its connections to max_connections. Must be 2 or greater.
#max_connections=
def max_connections=(value) -> ::Integer
- value (::Integer) — Required. DLP will limit its connections to max_connections. Must be 2 or greater.
- (::Integer) — Required. DLP will limit its connections to max_connections. Must be 2 or greater.
#username_password
def username_password() -> ::Google::Cloud::Dlp::V2::SecretManagerCredential
-
(::Google::Cloud::Dlp::V2::SecretManagerCredential) — A username and password stored in Secret Manager.
Note: The following fields are mutually exclusive:
username_password
,cloud_sql_iam
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#username_password=
def username_password=(value) -> ::Google::Cloud::Dlp::V2::SecretManagerCredential
-
value (::Google::Cloud::Dlp::V2::SecretManagerCredential) — A username and password stored in Secret Manager.
Note: The following fields are mutually exclusive:
username_password
,cloud_sql_iam
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Dlp::V2::SecretManagerCredential) — A username and password stored in Secret Manager.
Note: The following fields are mutually exclusive:
username_password
,cloud_sql_iam
. If a field in that set is populated, all other fields in the set will automatically be cleared.