Class: Azure::CDN::Mgmt::V2017_04_02::Models::ResourceUsage
- Inherits:
-
Object
- Object
- Azure::CDN::Mgmt::V2017_04_02::Models::ResourceUsage
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage.rb
Overview
Output of check resource usage API.
Instance Attribute Summary collapse
-
#current_value ⇒ Integer
Actual value of usage on the specified resource type.
-
#limit ⇒ Integer
Quota of the specified resource type.
-
#resource_type ⇒ String
Resource type for which the usage is provided.
-
#unit ⇒ String
Unit of the usage.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ResourceUsage class as Ruby Hash.
Instance Attribute Details
#current_value ⇒ Integer
Returns Actual value of usage on the specified resource type.
22 23 24 |
# File 'lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage.rb', line 22 def current_value @current_value end |
#limit ⇒ Integer
Returns Quota of the specified resource type.
25 26 27 |
# File 'lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage.rb', line 25 def limit @limit end |
#resource_type ⇒ String
Returns Resource type for which the usage is provided.
16 17 18 |
# File 'lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage.rb', line 16 def resource_type @resource_type end |
#unit ⇒ String
Returns Unit of the usage. e.g. Count.
19 20 21 |
# File 'lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage.rb', line 19 def unit @unit end |
Class Method Details
.mapper ⇒ Object
Mapper for ResourceUsage class as Ruby Hash. This will be used for serialization/deserialization.
32 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 74 75 |
# File 'lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage.rb', line 32 def self.mapper() { required: false, serialized_name: 'ResourceUsage', type: { name: 'Composite', class_name: 'ResourceUsage', model_properties: { resource_type: { required: false, read_only: true, serialized_name: 'resourceType', type: { name: 'String' } }, unit: { required: false, read_only: true, serialized_name: 'unit', type: { name: 'String' } }, current_value: { required: false, read_only: true, serialized_name: 'currentValue', type: { name: 'Number' } }, limit: { required: false, read_only: true, serialized_name: 'limit', type: { name: 'Number' } } } } } end |