Class: Azure::Compute::Mgmt::V2020_12_01::Models::Sku

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

Overview

Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#capacityInteger

set.

Returns:

  • (Integer)

    Specifies the number of virtual machines in the scale



27
28
29
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/sku.rb', line 27

def capacity
  @capacity
end

#nameString

Returns The sku name.

Returns:

  • (String)

    The sku name.



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

def name
  @name
end

#tierString

set.<br /><br /> Possible Values:<br /><br /> *Standard*<br /><br /> *Basic*

Returns:

  • (String)

    Specifies the tier of virtual machines in a scale



23
24
25
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/sku.rb', line 23

def tier
  @tier
end

Class Method Details

.mapperObject

Mapper for Sku 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
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/sku.rb', line 34

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Sku',
    type: {
      name: 'Composite',
      class_name: 'Sku',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        tier: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tier',
          type: {
            name: 'String'
          }
        },
        capacity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'capacity',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end