Class: Azure::Storage::Mgmt::V2018_11_01::Models::Sku

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-11-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

#capabilitiesArray<SKUCapability>

specified SKU, including file encryption, network ACLs, change notification, etc.

Returns:



43
44
45
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/sku.rb', line 43

def capabilities
  @capabilities
end

#kindKind

include: ‘Storage’, ‘StorageV2’, ‘BlobStorage’, ‘FileStorage’, ‘BlockBlobStorage’

Returns:

  • (Kind)

    Indicates the type of storage account. Possible values



33
34
35
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/sku.rb', line 33

def kind
  @kind
end

#locationsArray<String>

This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.).

Returns:

  • (Array<String>)

    The set of locations that the SKU is available.



38
39
40
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/sku.rb', line 38

def locations
  @locations
end

#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’, ‘Premium_ZRS’

Returns:

  • (SkuName)

    Gets or sets the SKU name. Required for account



20
21
22
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/sku.rb', line 20

def name
  @name
end

#resource_typeString

‘storageAccounts’.

Returns:

  • (String)

    The type of the resource, usually it is



28
29
30
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/sku.rb', line 28

def resource_type
  @resource_type
end

#restrictionsArray<Restriction>

cannot be used. This is empty if there are no restrictions.

Returns:

  • (Array<Restriction>)

    The restrictions because of which SKU



47
48
49
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/sku.rb', line 47

def restrictions
  @restrictions
end

#tierSkuTier

Possible values include: ‘Standard’, ‘Premium’

Returns:

  • (SkuTier)

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



24
25
26
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/sku.rb', line 24

def tier
  @tier
end

Class Method Details

.mapperObject

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



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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/sku.rb', line 54

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'
          }
        },
        resource_type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'resourceType',
          type: {
            name: 'String'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'kind',
          type: {
            name: 'Enum',
            module: 'Kind'
          }
        },
        locations: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'locations',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        capabilities: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'capabilities',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SKUCapabilityElementType',
                type: {
                  name: 'Composite',
                  class_name: 'SKUCapability'
                }
            }
          }
        },
        restrictions: {
          client_side_validation: true,
          required: false,
          serialized_name: 'restrictions',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'RestrictionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'Restriction'
                }
            }
          }
        }
      }
    }
  }
end