Class: Azure::DataMigration::Mgmt::V2018_04_19::Models::Quota
- Inherits:
-
Object
- Object
- Azure::DataMigration::Mgmt::V2018_04_19::Models::Quota
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota.rb
Overview
Describes a quota for or usage details about a resource
Instance Attribute Summary collapse
-
#current_value ⇒ Float
current value cannot be determined in the context of the request.
-
#id ⇒ String
The resource ID of the quota object.
-
#limit ⇒ Float
quota has no maximum, in which case it merely tracks usage.
-
#name ⇒ QuotaName
The name of the quota.
-
#unit ⇒ String
BytesPerSecond, etc.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Quota class as Ruby Hash.
Instance Attribute Details
#current_value ⇒ Float
current value cannot be determined in the context of the request.
17 18 19 |
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota.rb', line 17 def current_value @current_value end |
#id ⇒ String
Returns The resource ID of the quota object.
20 21 22 |
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota.rb', line 20 def id @id end |
#limit ⇒ Float
quota has no maximum, in which case it merely tracks usage.
24 25 26 |
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota.rb', line 24 def limit @limit end |
#name ⇒ QuotaName
Returns The name of the quota.
27 28 29 |
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota.rb', line 27 def name @name end |
#unit ⇒ String
BytesPerSecond, etc.
31 32 33 |
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota.rb', line 31 def unit @unit end |
Class Method Details
.mapper ⇒ Object
Mapper for Quota 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 |
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota.rb', line 38 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Quota', type: { name: 'Composite', class_name: 'Quota', model_properties: { current_value: { client_side_validation: true, required: false, serialized_name: 'currentValue', type: { name: 'Double' } }, id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'String' } }, limit: { client_side_validation: true, required: false, serialized_name: 'limit', type: { name: 'Double' } }, name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'Composite', class_name: 'QuotaName' } }, unit: { client_side_validation: true, required: false, serialized_name: 'unit', type: { name: 'String' } } } } } end |