Class: Google::Apis::VmmigrationV1::AzureVmDetails
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::AzureVmDetails
- 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
-
#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.
-
#computer_name ⇒ String
The VM's ComputerName.
-
#cpu_count ⇒ Fixnum
The number of cpus the VM has.
-
#disk_count ⇒ Fixnum
The number of disks the VM has, including OS disk.
-
#disks ⇒ Array<Google::Apis::VmmigrationV1::Disk>
Description of the data disks.
-
#memory_mb ⇒ Fixnum
The memory size of the VM in MB.
-
#os_description ⇒ Google::Apis::VmmigrationV1::OsDescription
A message describing the VM's OS.
-
#os_disk ⇒ Google::Apis::VmmigrationV1::OsDisk
A message describing the OS disk.
-
#power_state ⇒ String
The power state of the VM at the moment list was taken.
-
#tags ⇒ Hash<String,String>
The tags of the VM.
-
#vm_id ⇒ String
The VM full path in Azure.
-
#vm_size ⇒ String
VM size as configured in Azure.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AzureVmDetails
constructor
A new instance of AzureVmDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AzureVmDetails
Returns a new instance of AzureVmDetails.
774 775 776 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 774 def initialize(**args) update!(**args) end |
Instance Attribute Details
#architecture ⇒ String
The CPU architecture.
Corresponds to the JSON property architecture
706 707 708 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 706 def architecture @architecture end |
#boot_option ⇒ String
The VM Boot Option.
Corresponds to the JSON property bootOption
711 712 713 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 711 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
716 717 718 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 716 def committed_storage_mb @committed_storage_mb end |
#computer_name ⇒ String
The VM's ComputerName.
Corresponds to the JSON property computerName
721 722 723 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 721 def computer_name @computer_name end |
#cpu_count ⇒ Fixnum
The number of cpus the VM has.
Corresponds to the JSON property cpuCount
726 727 728 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 726 def cpu_count @cpu_count end |
#disk_count ⇒ Fixnum
The number of disks the VM has, including OS disk.
Corresponds to the JSON property diskCount
731 732 733 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 731 def disk_count @disk_count end |
#disks ⇒ Array<Google::Apis::VmmigrationV1::Disk>
Description of the data disks.
Corresponds to the JSON property disks
736 737 738 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 736 def disks @disks end |
#memory_mb ⇒ Fixnum
The memory size of the VM in MB.
Corresponds to the JSON property memoryMb
741 742 743 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 741 def memory_mb @memory_mb end |
#os_description ⇒ Google::Apis::VmmigrationV1::OsDescription
A message describing the VM's OS. Including OS, Publisher, Offer and Plan if
applicable.
Corresponds to the JSON property osDescription
747 748 749 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 747 def os_description @os_description end |
#os_disk ⇒ Google::Apis::VmmigrationV1::OsDisk
A message describing the OS disk.
Corresponds to the JSON property osDisk
752 753 754 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 752 def os_disk @os_disk end |
#power_state ⇒ String
The power state of the VM at the moment list was taken.
Corresponds to the JSON property powerState
757 758 759 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 757 def power_state @power_state end |
#tags ⇒ Hash<String,String>
The tags of the VM.
Corresponds to the JSON property tags
762 763 764 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 762 def @tags end |
#vm_id ⇒ String
The VM full path in Azure.
Corresponds to the JSON property vmId
767 768 769 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 767 def vm_id @vm_id end |
#vm_size ⇒ String
VM size as configured in Azure. Determines the VM's hardware spec.
Corresponds to the JSON property vmSize
772 773 774 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 772 def vm_size @vm_size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 779 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 |