Class: Google::Apis::DatamigrationV1::GenerateSshScriptRequest

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

Request message for 'GenerateSshScript' request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenerateSshScriptRequest

Returns a new instance of GenerateSshScriptRequest.



2042
2043
2044
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2042

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

Instance Attribute Details

#vmString

Required. Bastion VM Instance name to use or to create. Corresponds to the JSON property vm

Returns:

  • (String)


2025
2026
2027
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2025

def vm
  @vm
end

#vm_creation_configGoogle::Apis::DatamigrationV1::VmCreationConfig

VM creation configuration message Corresponds to the JSON property vmCreationConfig



2030
2031
2032
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2030

def vm_creation_config
  @vm_creation_config
end

#vm_portFixnum

The port that will be open on the bastion host. Corresponds to the JSON property vmPort

Returns:

  • (Fixnum)


2035
2036
2037
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2035

def vm_port
  @vm_port
end

#vm_selection_configGoogle::Apis::DatamigrationV1::VmSelectionConfig

VM selection configuration message Corresponds to the JSON property vmSelectionConfig



2040
2041
2042
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2040

def vm_selection_config
  @vm_selection_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2047
2048
2049
2050
2051
2052
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2047

def update!(**args)
  @vm = args[:vm] if args.key?(:vm)
  @vm_creation_config = args[:vm_creation_config] if args.key?(:vm_creation_config)
  @vm_port = args[:vm_port] if args.key?(:vm_port)
  @vm_selection_config = args[:vm_selection_config] if args.key?(:vm_selection_config)
end