Class: Azure::Compute::Mgmt::V2019_12_01::Models::Usage
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2019_12_01::Models::Usage
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-12-01/generated/azure_mgmt_compute/models/usage.rb
Overview
Describes Compute Resource Usage.
Instance Attribute Summary collapse
-
#current_value ⇒ Integer
The current usage of the resource.
-
#limit ⇒ Integer
The maximum permitted usage of the resource.
-
#name ⇒ UsageName
The name of the type of usage.
-
#unit ⇒ String
Default value: 'Count' .
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Usage class as Ruby Hash.
Instance Attribute Details
#current_value ⇒ Integer
Returns The current usage of the resource.
20 21 22 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/usage.rb', line 20 def current_value @current_value end |
#limit ⇒ Integer
Returns The maximum permitted usage of the resource.
23 24 25 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/usage.rb', line 23 def limit @limit end |
#name ⇒ UsageName
Returns The name of the type of usage.
26 27 28 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/usage.rb', line 26 def name @name end |
#unit ⇒ String
Default value: 'Count' .
17 18 19 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/usage.rb', line 17 def unit @unit end |
Class Method Details
.mapper ⇒ Object
Mapper for Usage 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 74 75 76 77 78 79 80 |
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/usage.rb', line 33 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Usage', type: { name: 'Composite', class_name: 'Usage', model_properties: { unit: { client_side_validation: true, required: true, is_constant: true, serialized_name: 'unit', default_value: 'Count', type: { name: 'String' } }, current_value: { client_side_validation: true, required: true, serialized_name: 'currentValue', type: { name: 'Number' } }, limit: { client_side_validation: true, required: true, serialized_name: 'limit', type: { name: 'Number' } }, name: { client_side_validation: true, required: true, serialized_name: 'name', type: { name: 'Composite', class_name: 'UsageName' } } } } } end |