Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::Connection.
A data connection to allow DLP to profile data in locations that require additional configuration.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cloud_sql
def cloud_sql() -> ::Google::Cloud::Dlp::V2::CloudSqlProperties
Returns
- (::Google::Cloud::Dlp::V2::CloudSqlProperties) — Connect to a Cloud SQL instance.
#cloud_sql=
def cloud_sql=(value) -> ::Google::Cloud::Dlp::V2::CloudSqlProperties
Parameter
- value (::Google::Cloud::Dlp::V2::CloudSqlProperties) — Connect to a Cloud SQL instance.
Returns
- (::Google::Cloud::Dlp::V2::CloudSqlProperties) — Connect to a Cloud SQL instance.
#errors
def errors() -> ::Array<::Google::Cloud::Dlp::V2::Error>
Returns
- (::Array<::Google::Cloud::Dlp::V2::Error>) — Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first.
#name
def name() -> ::String
Returns
-
(::String) — Output only. Name of the connection:
projects/{project}/locations/{location}/connections/{name}
.
#state
def state() -> ::Google::Cloud::Dlp::V2::ConnectionState
Returns
- (::Google::Cloud::Dlp::V2::ConnectionState) — Required. The connection's state in its lifecycle.
#state=
def state=(value) -> ::Google::Cloud::Dlp::V2::ConnectionState
Parameter
- value (::Google::Cloud::Dlp::V2::ConnectionState) — Required. The connection's state in its lifecycle.
Returns
- (::Google::Cloud::Dlp::V2::ConnectionState) — Required. The connection's state in its lifecycle.