Class: Azure::Resources::Mgmt::V2016_06_01::Models::SubscriptionPolicies
- Inherits:
-
Object
- Object
- Azure::Resources::Mgmt::V2016_06_01::Models::SubscriptionPolicies
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-06-01/generated/azure_mgmt_resources/models/subscription_policies.rb
Overview
Subscription policies.
Instance Attribute Summary collapse
-
#location_placement_id ⇒ String
indicates which regions are visible for a subscription.
-
#quota_id ⇒ String
The subscription quota ID.
-
#spending_limit ⇒ SpendingLimit
values include: ‘On’, ‘Off’, ‘CurrentPeriodOff’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for SubscriptionPolicies class as Ruby Hash.
Instance Attribute Details
#location_placement_id ⇒ String
indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions.
19 20 21 |
# File 'lib/2016-06-01/generated/azure_mgmt_resources/models/subscription_policies.rb', line 19 def location_placement_id @location_placement_id end |
#quota_id ⇒ String
Returns The subscription quota ID.
22 23 24 |
# File 'lib/2016-06-01/generated/azure_mgmt_resources/models/subscription_policies.rb', line 22 def quota_id @quota_id end |
#spending_limit ⇒ SpendingLimit
values include: ‘On’, ‘Off’, ‘CurrentPeriodOff’
26 27 28 |
# File 'lib/2016-06-01/generated/azure_mgmt_resources/models/subscription_policies.rb', line 26 def spending_limit @spending_limit end |
Class Method Details
.mapper ⇒ Object
Mapper for SubscriptionPolicies class as Ruby Hash. This will be used for serialization/deserialization.
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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/2016-06-01/generated/azure_mgmt_resources/models/subscription_policies.rb', line 33 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SubscriptionPolicies', type: { name: 'Composite', class_name: 'SubscriptionPolicies', model_properties: { location_placement_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'locationPlacementId', type: { name: 'String' } }, quota_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'quotaId', type: { name: 'String' } }, spending_limit: { client_side_validation: true, required: false, read_only: true, serialized_name: 'spendingLimit', type: { name: 'Enum', module: 'SpendingLimit' } } } } } end |