Class: Google::Apis::VmmigrationV1::AwsVmDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmmigration_v1/classes.rb,
lib/google/apis/vmmigration_v1/representations.rb,
lib/google/apis/vmmigration_v1/representations.rb

Overview

AwsVmDetails describes a VM in AWS.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AwsVmDetails

Returns a new instance of AwsVmDetails.



511
512
513
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 511

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

Instance Attribute Details

#architectureString

The CPU architecture. Corresponds to the JSON property architecture

Returns:

  • (String)


418
419
420
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 418

def architecture
  @architecture
end

#boot_optionString

The VM Boot Option. Corresponds to the JSON property bootOption

Returns:

  • (String)


423
424
425
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 423

def boot_option
  @boot_option
end

#committed_storage_mbFixnum

The total size of the storage allocated to the VM in MB. Corresponds to the JSON property committedStorageMb

Returns:

  • (Fixnum)


428
429
430
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 428

def committed_storage_mb
  @committed_storage_mb
end

#cpu_countFixnum

The number of CPU cores the VM has. Corresponds to the JSON property cpuCount

Returns:

  • (Fixnum)


433
434
435
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 433

def cpu_count
  @cpu_count
end

#disk_countFixnum

The number of disks the VM has. Corresponds to the JSON property diskCount

Returns:

  • (Fixnum)


438
439
440
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 438

def disk_count
  @disk_count
end

#display_nameString

The display name of the VM. Note that this value is not necessarily unique. Corresponds to the JSON property displayName

Returns:

  • (String)


443
444
445
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 443

def display_name
  @display_name
end

#instance_typeString

The instance type of the VM. Corresponds to the JSON property instanceType

Returns:

  • (String)


448
449
450
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 448

def instance_type
  @instance_type
end

#memory_mbFixnum

The memory size of the VM in MB. Corresponds to the JSON property memoryMb

Returns:

  • (Fixnum)


453
454
455
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 453

def memory_mb
  @memory_mb
end

#os_descriptionString

The VM's OS. Corresponds to the JSON property osDescription

Returns:

  • (String)


458
459
460
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 458

def os_description
  @os_description
end

#power_stateString

Output only. The power state of the VM at the moment list was taken. Corresponds to the JSON property powerState

Returns:

  • (String)


463
464
465
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 463

def power_state
  @power_state
end

#security_groupsArray<Google::Apis::VmmigrationV1::AwsSecurityGroup>

The security groups the VM belongs to. Corresponds to the JSON property securityGroups



468
469
470
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 468

def security_groups
  @security_groups
end

#source_descriptionString

The descriptive name of the AWS's source this VM is connected to. Corresponds to the JSON property sourceDescription

Returns:

  • (String)


473
474
475
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 473

def source_description
  @source_description
end

#source_idString

The id of the AWS's source this VM is connected to. Corresponds to the JSON property sourceId

Returns:

  • (String)


478
479
480
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 478

def source_id
  @source_id
end

#tagsHash<String,String>

The tags of the VM. Corresponds to the JSON property tags

Returns:

  • (Hash<String,String>)


483
484
485
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 483

def tags
  @tags
end

#vcpu_countFixnum

The number of vCPUs the VM has. It is calculated as the number of CPU cores * threads per CPU the VM has. Corresponds to the JSON property vcpuCount

Returns:

  • (Fixnum)


489
490
491
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 489

def vcpu_count
  @vcpu_count
end

#virtualization_typeString

The virtualization type. Corresponds to the JSON property virtualizationType

Returns:

  • (String)


494
495
496
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 494

def virtualization_type
  @virtualization_type
end

#vm_idString

The VM ID in AWS. Corresponds to the JSON property vmId

Returns:

  • (String)


499
500
501
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 499

def vm_id
  @vm_id
end

#vpc_idString

The VPC ID the VM belongs to. Corresponds to the JSON property vpcId

Returns:

  • (String)


504
505
506
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 504

def vpc_id
  @vpc_id
end

#zoneString

The AWS zone of the VM. Corresponds to the JSON property zone

Returns:

  • (String)


509
510
511
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 509

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 516

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)
  @vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count)
  @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