Class: Google::Apis::DatamigrationV1::PrimaryInstanceSettings

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

Settings for the cluster's primary instance

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PrimaryInstanceSettings

Returns a new instance of PrimaryInstanceSettings.



2613
2614
2615
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2613

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

Instance Attribute Details

#database_flagsHash<String,String>

Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used. Corresponds to the JSON property databaseFlags

Returns:

  • (Hash<String,String>)


2588
2589
2590
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2588

def database_flags
  @database_flags
end

#idString

Required. The ID of the AlloyDB primary instance. The ID must satisfy the regex expression "[a-z0-9-]+". Corresponds to the JSON property id

Returns:

  • (String)


2594
2595
2596
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2594

def id
  @id
end

#labelsHash<String,String>

Labels for the AlloyDB primary instance created by DMS. An object containing a list of 'key', 'value' pairs. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2600
2601
2602
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2600

def labels
  @labels
end

#machine_configGoogle::Apis::DatamigrationV1::MachineConfig

MachineConfig describes the configuration of a machine. Corresponds to the JSON property machineConfig



2605
2606
2607
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2605

def machine_config
  @machine_config
end

#private_ipString

Output only. The private IP address for the Instance. This is the connection endpoint for an end-user application. Corresponds to the JSON property privateIp

Returns:

  • (String)


2611
2612
2613
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2611

def private_ip
  @private_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2618
2619
2620
2621
2622
2623
2624
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2618

def update!(**args)
  @database_flags = args[:database_flags] if args.key?(:database_flags)
  @id = args[:id] if args.key?(:id)
  @labels = args[:labels] if args.key?(:labels)
  @machine_config = args[:machine_config] if args.key?(:machine_config)
  @private_ip = args[:private_ip] if args.key?(:private_ip)
end