Class: Azure::Storage::Mgmt::V2017_10_01::Models::Restriction
- Inherits:
-
Object
- Object
- Azure::Storage::Mgmt::V2017_10_01::Models::Restriction
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-10-01/generated/azure_mgmt_storage/models/restriction.rb
Overview
The restriction because of which SKU cannot be used.
Instance Attribute Summary collapse
-
#reason_code ⇒ ReasonCode
be “QuotaId” or “NotAvailableForSubscription”.
-
#type ⇒ String
value for this is location.
-
#values ⇒ Array<String>
type is set to location.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Restriction class as Ruby Hash.
Instance Attribute Details
#reason_code ⇒ ReasonCode
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’
29 30 31 |
# File 'lib/2017-10-01/generated/azure_mgmt_storage/models/restriction.rb', line 29 def reason_code @reason_code end |
#type ⇒ String
value for this is location.
17 18 19 |
# File 'lib/2017-10-01/generated/azure_mgmt_storage/models/restriction.rb', line 17 def type @type end |
#values ⇒ Array<String>
type is set to location. This would be different locations where the SKU is restricted.
22 23 24 |
# File 'lib/2017-10-01/generated/azure_mgmt_storage/models/restriction.rb', line 22 def values @values end |
Class Method Details
.mapper ⇒ Object
Mapper for Restriction class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2017-10-01/generated/azure_mgmt_storage/models/restriction.rb', line 36 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Restriction', type: { name: 'Composite', class_name: 'Restriction', 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, serialized_name: 'reasonCode', type: { name: 'String' } } } } } end |