Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Generated from 3146578c10bbed0127fbf3e4772c978a5d831822
Fix limit and currentValue properties

Types need to be long since they can have 64-bit values.
  • Loading branch information
AutorestCI committed May 23, 2019
commit 9142f09c7da578a91d7c882115a5ef511c7d1782
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class PartitionUsage(Usage):
:ivar quota_period: The quota period used to summarize the usage values.
:vartype quota_period: str
:ivar limit: Maximum value for this metric
:vartype limit: int
:vartype limit: long
:ivar current_value: Current value for this metric
:vartype current_value: int
:vartype current_value: long
:ivar partition_id: The partition id (GUID identifier) of the usages.
:vartype partition_id: str
:ivar partition_key_range_id: The partition key range id (integer
Expand All @@ -50,8 +50,8 @@ class PartitionUsage(Usage):
'unit': {'key': 'unit', 'type': 'str'},
'name': {'key': 'name', 'type': 'MetricName'},
'quota_period': {'key': 'quotaPeriod', 'type': 'str'},
'limit': {'key': 'limit', 'type': 'int'},
'current_value': {'key': 'currentValue', 'type': 'int'},
'limit': {'key': 'limit', 'type': 'long'},
'current_value': {'key': 'currentValue', 'type': 'long'},
'partition_id': {'key': 'partitionId', 'type': 'str'},
'partition_key_range_id': {'key': 'partitionKeyRangeId', 'type': 'str'},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class PartitionUsage(Usage):
:ivar quota_period: The quota period used to summarize the usage values.
:vartype quota_period: str
:ivar limit: Maximum value for this metric
:vartype limit: int
:vartype limit: long
:ivar current_value: Current value for this metric
:vartype current_value: int
:vartype current_value: long
:ivar partition_id: The partition id (GUID identifier) of the usages.
:vartype partition_id: str
:ivar partition_key_range_id: The partition key range id (integer
Expand All @@ -50,8 +50,8 @@ class PartitionUsage(Usage):
'unit': {'key': 'unit', 'type': 'str'},
'name': {'key': 'name', 'type': 'MetricName'},
'quota_period': {'key': 'quotaPeriod', 'type': 'str'},
'limit': {'key': 'limit', 'type': 'int'},
'current_value': {'key': 'currentValue', 'type': 'int'},
'limit': {'key': 'limit', 'type': 'long'},
'current_value': {'key': 'currentValue', 'type': 'long'},
'partition_id': {'key': 'partitionId', 'type': 'str'},
'partition_key_range_id': {'key': 'partitionKeyRangeId', 'type': 'str'},
}
Expand Down
8 changes: 4 additions & 4 deletions azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class Usage(Model):
:ivar quota_period: The quota period used to summarize the usage values.
:vartype quota_period: str
:ivar limit: Maximum value for this metric
:vartype limit: int
:vartype limit: long
:ivar current_value: Current value for this metric
:vartype current_value: int
:vartype current_value: long
"""

_validation = {
Expand All @@ -43,8 +43,8 @@ class Usage(Model):
'unit': {'key': 'unit', 'type': 'str'},
'name': {'key': 'name', 'type': 'MetricName'},
'quota_period': {'key': 'quotaPeriod', 'type': 'str'},
'limit': {'key': 'limit', 'type': 'int'},
'current_value': {'key': 'currentValue', 'type': 'int'},
'limit': {'key': 'limit', 'type': 'long'},
'current_value': {'key': 'currentValue', 'type': 'long'},
}

def __init__(self, **kwargs):
Expand Down
8 changes: 4 additions & 4 deletions azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/usage_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class Usage(Model):
:ivar quota_period: The quota period used to summarize the usage values.
:vartype quota_period: str
:ivar limit: Maximum value for this metric
:vartype limit: int
:vartype limit: long
:ivar current_value: Current value for this metric
:vartype current_value: int
:vartype current_value: long
"""

_validation = {
Expand All @@ -43,8 +43,8 @@ class Usage(Model):
'unit': {'key': 'unit', 'type': 'str'},
'name': {'key': 'name', 'type': 'MetricName'},
'quota_period': {'key': 'quotaPeriod', 'type': 'str'},
'limit': {'key': 'limit', 'type': 'int'},
'current_value': {'key': 'currentValue', 'type': 'int'},
'limit': {'key': 'limit', 'type': 'long'},
'current_value': {'key': 'currentValue', 'type': 'long'},
}

def __init__(self, *, unit=None, **kwargs) -> None:
Expand Down