Class: Azure::Compute::Mgmt::V2020_10_01_preview::Models::CloudServiceRoleSku

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

Overview

Describes the cloud service role sku.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#capacityInteger

service.

Returns:

  • (Integer)

    Specifies the number of role instances in the cloud



26
27
28
# File 'lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_role_sku.rb', line 26

def capacity
  @capacity
end

#nameString

the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku.

Returns:

  • (String)

    The sku name. NOTE: If the new SKU is not supported on



18
19
20
# File 'lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_role_sku.rb', line 18

def name
  @name
end

#tierString

Values are <br /><br /> *Standard* <br /><br /> *Basic*

Returns:

  • (String)

    Specifies the tier of the cloud service. Possible



22
23
24
# File 'lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_role_sku.rb', line 22

def tier
  @tier
end

Class Method Details

.mapperObject

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



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
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/2020-10-01-preview/generated/azure_mgmt_compute/models/cloud_service_role_sku.rb', line 33

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CloudServiceRoleSku',
    type: {
      name: 'Composite',
      class_name: 'CloudServiceRoleSku',
      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