Class: Google::Apis::DatamigrationV1::VmCreationConfig

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

VM creation configuration message

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmCreationConfig

Returns a new instance of VmCreationConfig.



1745
1746
1747
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1745

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

Instance Attribute Details

#subnetString

The subnet name the vm needs to be created in. Corresponds to the JSON property subnet

Returns:

  • (String)


1733
1734
1735
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1733

def subnet
  @subnet
end

#vm_machine_typeString

Required. VM instance machine type to create. Corresponds to the JSON property vmMachineType

Returns:

  • (String)


1738
1739
1740
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1738

def vm_machine_type
  @vm_machine_type
end

#vm_zoneString

The Google Cloud Platform zone to create the VM in. Corresponds to the JSON property vmZone

Returns:

  • (String)


1743
1744
1745
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1743

def vm_zone
  @vm_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1750
1751
1752
1753
1754
# File 'lib/google/apis/datamigration_v1/classes.rb', line 1750

def update!(**args)
  @subnet = args[:subnet] if args.key?(:subnet)
  @vm_machine_type = args[:vm_machine_type] if args.key?(:vm_machine_type)
  @vm_zone = args[:vm_zone] if args.key?(:vm_zone)
end