Class: Azure::Automation::Mgmt::V2015_10_31::Models::Usage
- Inherits:
-
Object
- Object
- Azure::Automation::Mgmt::V2015_10_31::Models::Usage
- Includes:
- MsRestAzure
- Defined in:
- lib/2015-10-31/generated/azure_mgmt_automation/models/usage.rb
Overview
Definition of Usage.
Instance Attribute Summary collapse
-
#current_value ⇒ Float
Gets or sets the current usage value.
-
#id ⇒ String
Gets or sets the id of the resource.
-
#limit ⇒ Integer
Gets or sets max limit.
-
#name ⇒ UsageCounterName
Gets or sets the usage counter name.
-
#throttle_status ⇒ String
Gets or sets the throttle status.
-
#unit ⇒ String
Gets or sets the usage unit name.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Usage class as Ruby Hash.
Instance Attribute Details
#current_value ⇒ Float
Returns Gets or sets the current usage value.
25 26 27 |
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/usage.rb', line 25 def current_value @current_value end |
#id ⇒ String
Returns Gets or sets the id of the resource.
16 17 18 |
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/usage.rb', line 16 def id @id end |
#limit ⇒ Integer
Returns Gets or sets max limit. -1 for unlimited.
28 29 30 |
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/usage.rb', line 28 def limit @limit end |
#name ⇒ UsageCounterName
Returns Gets or sets the usage counter name.
19 20 21 |
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/usage.rb', line 19 def name @name end |
#throttle_status ⇒ String
Returns Gets or sets the throttle status.
31 32 33 |
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/usage.rb', line 31 def throttle_status @throttle_status end |
#unit ⇒ String
Returns Gets or sets the usage unit name.
22 23 24 |
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/usage.rb', line 22 def unit @unit end |
Class Method Details
.mapper ⇒ Object
Mapper for Usage class as Ruby Hash. This will be used for serialization/deserialization.
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 97 98 99 |
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/usage.rb', line 38 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Usage', type: { name: 'Composite', class_name: 'Usage', model_properties: { id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'Composite', class_name: 'UsageCounterName' } }, unit: { client_side_validation: true, required: false, serialized_name: 'unit', type: { name: 'String' } }, current_value: { client_side_validation: true, required: false, serialized_name: 'currentValue', type: { name: 'Double' } }, limit: { client_side_validation: true, required: false, serialized_name: 'limit', type: { name: 'Number' } }, throttle_status: { client_side_validation: true, required: false, serialized_name: 'throttleStatus', type: { name: 'String' } } } } } end |