Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Connection

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb

Overview

A data connection to allow DLP to profile data in locations that require additional configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2Connection

Returns a new instance of GooglePrivacyDlpV2Connection.



1583
1584
1585
# File 'lib/google/apis/dlp_v2/classes.rb', line 1583

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cloud_sqlGoogle::Apis::DlpV2::GooglePrivacyDlpV2CloudSqlProperties

Cloud SQL connection properties. Corresponds to the JSON property cloudSql



1564
1565
1566
# File 'lib/google/apis/dlp_v2/classes.rb', line 1564

def cloud_sql
  @cloud_sql
end

#errorsArray<Google::Apis::DlpV2::GooglePrivacyDlpV2Error>

Output only. Set if status == ERROR, to provide additional details. Will store the last 10 errors sorted with the most recent first. Corresponds to the JSON property errors



1570
1571
1572
# File 'lib/google/apis/dlp_v2/classes.rb', line 1570

def errors
  @errors
end

#nameString

Output only. Name of the connection: projects/project/locations/location/ connections/name`. Corresponds to the JSON propertyname`

Returns:

  • (String)


1576
1577
1578
# File 'lib/google/apis/dlp_v2/classes.rb', line 1576

def name
  @name
end

#stateString

Required. The connection's state in its lifecycle. Corresponds to the JSON property state

Returns:

  • (String)


1581
1582
1583
# File 'lib/google/apis/dlp_v2/classes.rb', line 1581

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1588
1589
1590
1591
1592
1593
# File 'lib/google/apis/dlp_v2/classes.rb', line 1588

def update!(**args)
  @cloud_sql = args[:cloud_sql] if args.key?(:cloud_sql)
  @errors = args[:errors] if args.key?(:errors)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end