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.



2099
2100
2101
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2099

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)


2082
2083
2084
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2082

def vm
  @vm
end

#vm_creation_configGoogle::Apis::DatamigrationV1::VmCreationConfig

VM creation configuration message Corresponds to the JSON property vmCreationConfig



2087
2088
2089
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2087

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)


2092
2093
2094
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2092

def vm_port
  @vm_port
end

#vm_selection_configGoogle::Apis::DatamigrationV1::VmSelectionConfig

VM selection configuration message Corresponds to the JSON property vmSelectionConfig



2097
2098
2099
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2097

def vm_selection_config
  @vm_selection_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2104
2105
2106
2107
2108
2109
# File 'lib/google/apis/datamigration_v1/classes.rb', line 2104

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