Class: Azure::DataBoxEdge::Mgmt::V2019_08_01::Models::SkuRestriction

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sku_restriction.rb

Overview

The restrictions because of which SKU cannot be used.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#reason_codeSkuRestrictionReasonCode

values include: ‘NotAvailableForSubscription’, ‘QuotaId’

Returns:



23
24
25
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sku_restriction.rb', line 23

def reason_code
  @reason_code
end

#restriction_infoSkuRestrictionInfo

location/zone

Returns:



27
28
29
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sku_restriction.rb', line 27

def restriction_info
  @restriction_info
end

#typeString

Returns The type of the restriction.

Returns:

  • (String)

    The type of the restriction.



16
17
18
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sku_restriction.rb', line 16

def type
  @type
end

#valuesArray<String>

Returns The locations where sku is restricted.

Returns:

  • (Array<String>)

    The locations where sku is restricted.



19
20
21
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sku_restriction.rb', line 19

def values
  @values
end

Class Method Details

.mapperObject

Mapper for SkuRestriction 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/sku_restriction.rb', line 34

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SkuRestriction',
    type: {
      name: 'Composite',
      class_name: 'SkuRestriction',
      model_properties: {
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        values: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'values',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        reason_code: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'reasonCode',
          type: {
            name: 'String'
          }
        },
        restriction_info: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'restrictionInfo',
          type: {
            name: 'Composite',
            class_name: 'SkuRestrictionInfo'
          }
        }
      }
    }
  }
end