Class: Azure::Compute::Mgmt::V2020_06_01::Models::DedicatedHostAllocatableVM

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_allocatable_vm.rb

Overview

Represents the dedicated host unutilized capacity in terms of a specific VM size.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#countFloat

the dedicated host's remaining capacity.

Returns:

  • (Float)

    Maximum number of VMs of size vmSize that can fit in



22
23
24
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_allocatable_vm.rb', line 22

def count
  @count
end

#vm_sizeString

represented.

Returns:

  • (String)

    VM size in terms of which the unutilized capacity is



18
19
20
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_allocatable_vm.rb', line 18

def vm_size
  @vm_size
end

Class Method Details

.mapperObject

Mapper for DedicatedHostAllocatableVM class as Ruby Hash. This will be used for serialization/deserialization.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/dedicated_host_allocatable_vm.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DedicatedHostAllocatableVM',
    type: {
      name: 'Composite',
      class_name: 'DedicatedHostAllocatableVM',
      model_properties: {
        vm_size: {
          client_side_validation: true,
          required: false,
          serialized_name: 'vmSize',
          type: {
            name: 'String'
          }
        },
        count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'count',
          type: {
            name: 'Double'
          }
        }
      }
    }
  }
end