From 9142f09c7da578a91d7c882115a5ef511c7d1782 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 23 May 2019 23:18:16 +0000 Subject: [PATCH] Generated from 3146578c10bbed0127fbf3e4772c978a5d831822 Fix limit and currentValue properties Types need to be long since they can have 64-bit values. --- .../azure/mgmt/cosmosdb/models/partition_usage.py | 8 ++++---- .../azure/mgmt/cosmosdb/models/partition_usage_py3.py | 8 ++++---- azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/usage.py | 8 ++++---- .../azure/mgmt/cosmosdb/models/usage_py3.py | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/partition_usage.py b/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/partition_usage.py index 9981802f9ff2..aed8ead18a65 100644 --- a/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/partition_usage.py +++ b/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/partition_usage.py @@ -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 @@ -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'}, } diff --git a/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/partition_usage_py3.py b/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/partition_usage_py3.py index bec033ce2d3e..c4d5b203f445 100644 --- a/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/partition_usage_py3.py +++ b/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/partition_usage_py3.py @@ -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 @@ -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'}, } diff --git a/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/usage.py b/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/usage.py index 1564bd6ad3b8..f6a463373352 100644 --- a/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/usage.py +++ b/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/usage.py @@ -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 = { @@ -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): diff --git a/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/usage_py3.py b/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/usage_py3.py index 287f0d9dc038..0361d0bae5ad 100644 --- a/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/usage_py3.py +++ b/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/usage_py3.py @@ -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 = { @@ -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: