Class: Azure::Storage::Mgmt::V2016_01_01::Models::Sku

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-01-01/generated/azure_mgmt_storage/models/sku.rb

Overview

The SKU of the storage account.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#nameSkuName

creation; optional for update. Note that in older versions, sku name was called accountType. Possible values include: ‘Standard_LRS’, ‘Standard_GRS’, ‘Standard_RAGRS’, ‘Standard_ZRS’, ‘Premium_LRS’

Returns:

  • (SkuName)

    Gets or sets the sku name. Required for account



19
20
21
# File 'lib/2016-01-01/generated/azure_mgmt_storage/models/sku.rb', line 19

def name
  @name
end

#tierSkuTier

Possible values include: ‘Standard’, ‘Premium’

Returns:

  • (SkuTier)

    Gets the sku tier. This is based on the SKU name.



23
24
25
# File 'lib/2016-01-01/generated/azure_mgmt_storage/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.



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
58
59
60
61
# File 'lib/2016-01-01/generated/azure_mgmt_storage/models/sku.rb', line 30

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: true,
          serialized_name: 'name',
          type: {
            name: 'Enum',
            module: 'SkuName'
          }
        },
        tier: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'tier',
          type: {
            name: 'Enum',
            module: 'SkuTier'
          }
        }
      }
    }
  }
end