Class: Google::Apis::VmmigrationV1alpha1::AwsVmDetails
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::AwsVmDetails
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb
Overview
AwsVmDetails describes a VM in AWS.
Instance Attribute Summary collapse
-
#architecture ⇒ String
The CPU architecture.
-
#boot_option ⇒ String
The VM Boot Option.
-
#committed_storage_mb ⇒ Fixnum
The total size of the storage allocated to the VM in MB.
-
#cpu_count ⇒ Fixnum
The number of cpus the VM has.
-
#disk_count ⇒ Fixnum
The number of disks the VM has.
-
#display_name ⇒ String
The display name of the VM.
-
#instance_type ⇒ String
The instance type of the VM.
-
#memory_mb ⇒ Fixnum
The memory size of the VM in MB.
-
#os_description ⇒ String
The VM's OS.
-
#power_state ⇒ String
Output only.
-
#security_groups ⇒ Array<Google::Apis::VmmigrationV1alpha1::AwsSecurityGroup>
The security groups the VM belongs to.
-
#source_description ⇒ String
The descriptive name of the AWS's source this VM is connected to.
-
#source_id ⇒ String
The id of the AWS's source this VM is connected to.
-
#tags ⇒ Hash<String,String>
The tags of the VM.
-
#virtualization_type ⇒ String
The virtualization type.
-
#vm_id ⇒ String
The VM ID in AWS.
-
#vpc_id ⇒ String
The VPC ID the VM belongs to.
-
#zone ⇒ String
The AWS zone of the VM.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AwsVmDetails
constructor
A new instance of AwsVmDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AwsVmDetails
Returns a new instance of AwsVmDetails.
384 385 386 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 384 def initialize(**args) update!(**args) end |
Instance Attribute Details
#architecture ⇒ String
The CPU architecture.
Corresponds to the JSON property architecture
297 298 299 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 297 def architecture @architecture end |
#boot_option ⇒ String
The VM Boot Option.
Corresponds to the JSON property bootOption
302 303 304 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 302 def boot_option @boot_option end |
#committed_storage_mb ⇒ Fixnum
The total size of the storage allocated to the VM in MB.
Corresponds to the JSON property committedStorageMb
307 308 309 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 307 def committed_storage_mb @committed_storage_mb end |
#cpu_count ⇒ Fixnum
The number of cpus the VM has.
Corresponds to the JSON property cpuCount
312 313 314 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 312 def cpu_count @cpu_count end |
#disk_count ⇒ Fixnum
The number of disks the VM has.
Corresponds to the JSON property diskCount
317 318 319 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 317 def disk_count @disk_count end |
#display_name ⇒ String
The display name of the VM. Note that this value is not necessarily unique.
Corresponds to the JSON property displayName
322 323 324 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 322 def display_name @display_name end |
#instance_type ⇒ String
The instance type of the VM.
Corresponds to the JSON property instanceType
327 328 329 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 327 def instance_type @instance_type end |
#memory_mb ⇒ Fixnum
The memory size of the VM in MB.
Corresponds to the JSON property memoryMb
332 333 334 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 332 def memory_mb @memory_mb end |
#os_description ⇒ String
The VM's OS.
Corresponds to the JSON property osDescription
337 338 339 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 337 def os_description @os_description end |
#power_state ⇒ String
Output only. The power state of the VM at the moment list was taken.
Corresponds to the JSON property powerState
342 343 344 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 342 def power_state @power_state end |
#security_groups ⇒ Array<Google::Apis::VmmigrationV1alpha1::AwsSecurityGroup>
The security groups the VM belongs to.
Corresponds to the JSON property securityGroups
347 348 349 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 347 def security_groups @security_groups end |
#source_description ⇒ String
The descriptive name of the AWS's source this VM is connected to.
Corresponds to the JSON property sourceDescription
352 353 354 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 352 def source_description @source_description end |
#source_id ⇒ String
The id of the AWS's source this VM is connected to.
Corresponds to the JSON property sourceId
357 358 359 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 357 def source_id @source_id end |
#tags ⇒ Hash<String,String>
The tags of the VM.
Corresponds to the JSON property tags
362 363 364 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 362 def @tags end |
#virtualization_type ⇒ String
The virtualization type.
Corresponds to the JSON property virtualizationType
367 368 369 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 367 def virtualization_type @virtualization_type end |
#vm_id ⇒ String
The VM ID in AWS.
Corresponds to the JSON property vmId
372 373 374 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 372 def vm_id @vm_id end |
#vpc_id ⇒ String
The VPC ID the VM belongs to.
Corresponds to the JSON property vpcId
377 378 379 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 377 def vpc_id @vpc_id end |
#zone ⇒ String
The AWS zone of the VM.
Corresponds to the JSON property zone
382 383 384 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 382 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 389 def update!(**args) @architecture = args[:architecture] if args.key?(:architecture) @boot_option = args[:boot_option] if args.key?(:boot_option) @committed_storage_mb = args[:committed_storage_mb] if args.key?(:committed_storage_mb) @cpu_count = args[:cpu_count] if args.key?(:cpu_count) @disk_count = args[:disk_count] if args.key?(:disk_count) @display_name = args[:display_name] if args.key?(:display_name) @instance_type = args[:instance_type] if args.key?(:instance_type) @memory_mb = args[:memory_mb] if args.key?(:memory_mb) @os_description = args[:os_description] if args.key?(:os_description) @power_state = args[:power_state] if args.key?(:power_state) @security_groups = args[:security_groups] if args.key?(:security_groups) @source_description = args[:source_description] if args.key?(:source_description) @source_id = args[:source_id] if args.key?(:source_id) @tags = args[:tags] if args.key?(:tags) @virtualization_type = args[:virtualization_type] if args.key?(:virtualization_type) @vm_id = args[:vm_id] if args.key?(:vm_id) @vpc_id = args[:vpc_id] if args.key?(:vpc_id) @zone = args[:zone] if args.key?(:zone) end |