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.



4352
4353
4354
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4352

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>)


4317
4318
4319
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4317

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)


4323
4324
4325
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4323

def id
  @id
end

#instance_network_configGoogle::Apis::DatamigrationV1::InstanceNetworkConfig

Metadata related to instance level network configuration. Corresponds to the JSON property instanceNetworkConfig



4328
4329
4330
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4328

def instance_network_config
  @instance_network_config
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>)


4334
4335
4336
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4334

def labels
  @labels
end

#machine_configGoogle::Apis::DatamigrationV1::MachineConfig

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



4339
4340
4341
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4339

def machine_config
  @machine_config
end

#outbound_public_ip_addressesArray<String>

Output only. All outbound public IP addresses configured for the instance. Corresponds to the JSON property outboundPublicIpAddresses

Returns:

  • (Array<String>)


4344
4345
4346
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4344

def outbound_public_ip_addresses
  @outbound_public_ip_addresses
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)


4350
4351
4352
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4350

def private_ip
  @private_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4357
4358
4359
4360
4361
4362
4363
4364
4365
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4357

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