Class: Google::Apis::VmmigrationV1::AzureVmDetails

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

AzureVmDetails describes a VM in Azure.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AzureVmDetails

Returns a new instance of AzureVmDetails.



703
704
705
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 703

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

Instance Attribute Details

#architectureString

The CPU architecture. Corresponds to the JSON property architecture

Returns:

  • (String)


635
636
637
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 635

def architecture
  @architecture
end

#boot_optionString

The VM Boot Option. Corresponds to the JSON property bootOption

Returns:

  • (String)


640
641
642
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 640

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)


645
646
647
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 645

def committed_storage_mb
  @committed_storage_mb
end

#computer_nameString

The VM's ComputerName. Corresponds to the JSON property computerName

Returns:

  • (String)


650
651
652
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 650

def computer_name
  @computer_name
end

#cpu_countFixnum

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

Returns:

  • (Fixnum)


655
656
657
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 655

def cpu_count
  @cpu_count
end

#disk_countFixnum

The number of disks the VM has, including OS disk. Corresponds to the JSON property diskCount

Returns:

  • (Fixnum)


660
661
662
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 660

def disk_count
  @disk_count
end

#disksArray<Google::Apis::VmmigrationV1::Disk>

Description of the data disks. Corresponds to the JSON property disks



665
666
667
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 665

def disks
  @disks
end

#memory_mbFixnum

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

Returns:

  • (Fixnum)


670
671
672
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 670

def memory_mb
  @memory_mb
end

#os_descriptionGoogle::Apis::VmmigrationV1::OsDescription

A message describing the VM's OS. Including OS, Publisher, Offer and Plan if applicable. Corresponds to the JSON property osDescription



676
677
678
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 676

def os_description
  @os_description
end

#os_diskGoogle::Apis::VmmigrationV1::OsDisk

A message describing the OS disk. Corresponds to the JSON property osDisk



681
682
683
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 681

def os_disk
  @os_disk
end

#power_stateString

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

Returns:

  • (String)


686
687
688
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 686

def power_state
  @power_state
end

#tagsHash<String,String>

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

Returns:

  • (Hash<String,String>)


691
692
693
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 691

def tags
  @tags
end

#vm_idString

The VM full path in Azure. Corresponds to the JSON property vmId

Returns:

  • (String)


696
697
698
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 696

def vm_id
  @vm_id
end

#vm_sizeString

VM size as configured in Azure. Determines the VM's hardware spec. Corresponds to the JSON property vmSize

Returns:

  • (String)


701
702
703
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 701

def vm_size
  @vm_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 708

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)
  @computer_name = args[:computer_name] if args.key?(:computer_name)
  @cpu_count = args[:cpu_count] if args.key?(:cpu_count)
  @disk_count = args[:disk_count] if args.key?(:disk_count)
  @disks = args[:disks] if args.key?(:disks)
  @memory_mb = args[:memory_mb] if args.key?(:memory_mb)
  @os_description = args[:os_description] if args.key?(:os_description)
  @os_disk = args[:os_disk] if args.key?(:os_disk)
  @power_state = args[:power_state] if args.key?(:power_state)
  @tags = args[:tags] if args.key?(:tags)
  @vm_id = args[:vm_id] if args.key?(:vm_id)
  @vm_size = args[:vm_size] if args.key?(:vm_size)
end