Class: Google::Apis::DatamigrationV1::VmCreationConfig
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DatamigrationV1::VmCreationConfig
 
- 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
- 
  
    
      #subnet  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The subnet name the vm needs to be created in. 
- 
  
    
      #vm_machine_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #vm_zone  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The Google Cloud Platform zone to create the VM in. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ VmCreationConfig 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of VmCreationConfig. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ VmCreationConfig
Returns a new instance of VmCreationConfig.
| 5104 5105 5106 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 5104 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#subnet ⇒ String
The subnet name the vm needs to be created in.
Corresponds to the JSON property subnet
| 5092 5093 5094 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 5092 def subnet @subnet end | 
#vm_machine_type ⇒ String
Required. VM instance machine type to create.
Corresponds to the JSON property vmMachineType
| 5097 5098 5099 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 5097 def vm_machine_type @vm_machine_type end | 
#vm_zone ⇒ String
The Google Cloud Platform zone to create the VM in.
Corresponds to the JSON property vmZone
| 5102 5103 5104 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 5102 def vm_zone @vm_zone end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 5109 5110 5111 5112 5113 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 5109 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 |