Class: Azure::ARM::Compute::Models::VirtualMachineScaleSetSkuCapacity

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb

Overview

Describes scaling information of a sku.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#default_capacityInteger

Returns The default capacity.

Returns:

  • (Integer)

    The default capacity.



23
24
25
# File 'lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb', line 23

def default_capacity
  @default_capacity
end

#maximumInteger

Returns The maximum capacity that can be set.

Returns:

  • (Integer)

    The maximum capacity that can be set.



20
21
22
# File 'lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb', line 20

def maximum
  @maximum
end

#minimumInteger

Returns The minimum capacity.

Returns:

  • (Integer)

    The minimum capacity.



17
18
19
# File 'lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb', line 17

def minimum
  @minimum
end

#scale_typeVirtualMachineScaleSetSkuScaleType

to the sku. Possible values include: ‘Automatic’, ‘None’

Returns:



27
28
29
# File 'lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb', line 27

def scale_type
  @scale_type
end

Class Method Details

.mapperObject

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



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb', line 34

def self.mapper()
  {
    required: false,
    serialized_name: 'VirtualMachineScaleSetSkuCapacity',
    type: {
      name: 'Composite',
      class_name: 'VirtualMachineScaleSetSkuCapacity',
      model_properties: {
        minimum: {
          required: false,
          read_only: true,
          serialized_name: 'minimum',
          type: {
            name: 'Number'
          }
        },
        maximum: {
          required: false,
          read_only: true,
          serialized_name: 'maximum',
          type: {
            name: 'Number'
          }
        },
        default_capacity: {
          required: false,
          read_only: true,
          serialized_name: 'defaultCapacity',
          type: {
            name: 'Number'
          }
        },
        scale_type: {
          required: false,
          read_only: true,
          serialized_name: 'scaleType',
          type: {
            name: 'Enum',
            module: 'VirtualMachineScaleSetSkuScaleType'
          }
        }
      }
    }
  }
end