Class: Azure::Compute::Mgmt::V2019_03_01::Models::SnapshotSku

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-03-01/generated/azure_mgmt_compute/models/snapshot_sku.rb

Overview

The snapshots sku name. Can be Standard_LRS, Premium_LRS, or Standard_ZRS.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#nameSnapshotStorageAccountTypes

include: 'Standard_LRS', 'Premium_LRS', 'Standard_ZRS'

Returns:



18
19
20
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/snapshot_sku.rb', line 18

def name
  @name
end

#tierString

Returns The sku tier.

Returns:

  • (String)

    The sku tier.



21
22
23
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/snapshot_sku.rb', line 21

def tier
  @tier
end

Class Method Details

.mapperObject

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



28
29
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
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/snapshot_sku.rb', line 28

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