class Azure::Automation::Mgmt::V2015_10_31::Models::Usage
Definition of Usage
.
Attributes
current_value[RW]
@return [Float] Gets or sets the current usage value.
id[RW]
@return [String] Gets or sets the id of the resource.
limit[RW]
@return [Integer] Gets or sets max limit. -1 for unlimited
name[RW]
@return [UsageCounterName] Gets or sets the usage counter name.
throttle_status[RW]
@return [String] Gets or sets the throttle status.
unit[RW]
@return [String] Gets or sets the usage unit name.
Private Class Methods
mapper()
click to toggle source
Mapper for Usage
class as Ruby Hash. This will be used for serialization/deserialization.
# 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