Class: Azure::Cosmosdb::Mgmt::V2019_08_01::Models::PartitionUsage
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb
Overview
The partition level usage data for a usage request.
Instance Attribute Summary collapse
-
#partition_id ⇒ String
The partition id (GUID identifier) of the usages.
-
#partition_key_range_id ⇒ String
usages.
Attributes inherited from Usage
#current_value, #limit, #name, #quota_period, #unit
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for PartitionUsage class as Ruby Hash.
Instance Attribute Details
#partition_id ⇒ String
Returns The partition id (GUID identifier) of the usages.
16 17 18 |
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb', line 16 def partition_id @partition_id end |
#partition_key_range_id ⇒ String
usages.
20 21 22 |
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb', line 20 def partition_key_range_id @partition_key_range_id end |
Class Method Details
.mapper ⇒ Object
Mapper for PartitionUsage class as Ruby Hash. This will be used for serialization/deserialization.
27 28 29 30 31 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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/partition_usage.rb', line 27 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'PartitionUsage', type: { name: 'Composite', class_name: 'PartitionUsage', model_properties: { unit: { client_side_validation: true, required: false, serialized_name: 'unit', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'Composite', class_name: 'MetricName' } }, quota_period: { client_side_validation: true, required: false, read_only: true, serialized_name: 'quotaPeriod', type: { name: 'String' } }, limit: { client_side_validation: true, required: false, read_only: true, serialized_name: 'limit', type: { name: 'Number' } }, current_value: { client_side_validation: true, required: false, read_only: true, serialized_name: 'currentValue', type: { name: 'Number' } }, partition_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'partitionId', type: { name: 'String' } }, partition_key_range_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'partitionKeyRangeId', type: { name: 'String' } } } } } end |