Class: Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictions
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2017_09_01::Models::ResourceSkuRestrictions
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-09-01/generated/azure_mgmt_compute/models/resource_sku_restrictions.rb
Overview
Describes scaling information of a SKU.
Instance Attribute Summary collapse
-
#reason_code ⇒ ResourceSkuRestrictionsReasonCode
Possible values include: 'QuotaId', 'NotAvailableForSubscription'.
-
#restriction_info ⇒ ResourceSkuRestrictionInfo
restriction where the SKU cannot be used.
-
#type ⇒ ResourceSkuRestrictionsType
Possible values include: 'Location', 'Zone'.
-
#values ⇒ Array<String>
type is set to location.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ResourceSkuRestrictions class as Ruby Hash.
Instance Attribute Details
#reason_code ⇒ ResourceSkuRestrictionsReasonCode
Possible values include: 'QuotaId', 'NotAvailableForSubscription'
30 31 32 |
# File 'lib/2017-09-01/generated/azure_mgmt_compute/models/resource_sku_restrictions.rb', line 30 def reason_code @reason_code end |
#restriction_info ⇒ ResourceSkuRestrictionInfo
restriction where the SKU cannot be used.
26 27 28 |
# File 'lib/2017-09-01/generated/azure_mgmt_compute/models/resource_sku_restrictions.rb', line 26 def restriction_info @restriction_info end |
#type ⇒ ResourceSkuRestrictionsType
Possible values include: 'Location', 'Zone'
17 18 19 |
# File 'lib/2017-09-01/generated/azure_mgmt_compute/models/resource_sku_restrictions.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-09-01/generated/azure_mgmt_compute/models/resource_sku_restrictions.rb', line 22 def values @values end |
Class Method Details
.mapper ⇒ Object
Mapper for ResourceSkuRestrictions 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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/2017-09-01/generated/azure_mgmt_compute/models/resource_sku_restrictions.rb', line 37 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ResourceSkuRestrictions', type: { name: 'Composite', class_name: 'ResourceSkuRestrictions', model_properties: { type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'Enum', module: 'ResourceSkuRestrictionsType' } }, 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' } } } }, restriction_info: { client_side_validation: true, required: false, read_only: true, serialized_name: 'restrictionInfo', type: { name: 'Composite', class_name: 'ResourceSkuRestrictionInfo' } }, reason_code: { client_side_validation: true, required: false, read_only: true, serialized_name: 'reasonCode', type: { name: 'Enum', module: 'ResourceSkuRestrictionsReasonCode' } } } } } end |