Cloud Data Loss Prevention (DLP) V2 API - Class Google::Cloud::Dlp::V2::CloudSqlProperties (v1.7.0)

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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns
  • (::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

#connection_name=

def connection_name=(value) -> ::String
Parameter
  • 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 parent projects/project-id/locations/us-central1

Returns
  • (::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

#database_engine

def database_engine() -> ::Google::Cloud::Dlp::V2::CloudSqlProperties::DatabaseEngine
Returns

#database_engine=

def database_engine=(value) -> ::Google::Cloud::Dlp::V2::CloudSqlProperties::DatabaseEngine
Parameter
Returns

#max_connections

def max_connections() -> ::Integer
Returns
  • (::Integer) — Required. DLP will limit its connections to max_connections. Must be 2 or greater.

#max_connections=

def max_connections=(value) -> ::Integer
Parameter
  • value (::Integer) — Required. DLP will limit its connections to max_connections. Must be 2 or greater.
Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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.