Class: Azure::ARM::Storage::Models::Restriction

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_storage/models/restriction.rb

Overview

The restriction because of which SKU cannot be used.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#reason_codeReasonCode

be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC. Possible values include: ‘QuotaId’, ‘NotAvailableForSubscription’

Returns:

  • (ReasonCode)

    The reason for the restriction. As of now this can



30
31
32
# File 'lib/generated/azure_mgmt_storage/models/restriction.rb', line 30

def reason_code
  @reason_code
end

#typeString

value for this is location.

Returns:

  • (String)

    The type of restrictions. As of now only possible



18
19
20
# File 'lib/generated/azure_mgmt_storage/models/restriction.rb', line 18

def type
  @type
end

#valuesArray<String>

type is set to location. This would be different locations where the SKU is restricted.

Returns:

  • (Array<String>)

    The value of restrictions. If the restriction



23
24
25
# File 'lib/generated/azure_mgmt_storage/models/restriction.rb', line 23

def values
  @values
end

Class Method Details

.mapperObject

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



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
# File 'lib/generated/azure_mgmt_storage/models/restriction.rb', line 37

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