Class: Google::Apis::DatamigrationV1::AlloyDbConnectionProfile

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

Overview

Specifies required connection parameters, and the parameters required to create an AlloyDB destination cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AlloyDbConnectionProfile

Returns a new instance of AlloyDbConnectionProfile.



41
42
43
# File 'lib/google/apis/datamigration_v1/classes.rb', line 41

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

Instance Attribute Details

#cluster_idString

Required. The AlloyDB cluster ID that this connection profile is associated with. Corresponds to the JSON property clusterId

Returns:

  • (String)


34
35
36
# File 'lib/google/apis/datamigration_v1/classes.rb', line 34

def cluster_id
  @cluster_id
end

#settingsGoogle::Apis::DatamigrationV1::AlloyDbSettings

Settings for creating an AlloyDB cluster. Corresponds to the JSON property settings



39
40
41
# File 'lib/google/apis/datamigration_v1/classes.rb', line 39

def settings
  @settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46
47
48
49
# File 'lib/google/apis/datamigration_v1/classes.rb', line 46

def update!(**args)
  @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
  @settings = args[:settings] if args.key?(:settings)
end