diff --git a/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/location.py b/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/location.py index 220c9a4128c0..051206f0963f 100644 --- a/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/location.py +++ b/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/location.py @@ -34,6 +34,9 @@ class Location(Model): priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. :type failover_priority: int + :param is_zone_redundant: Flag to indicate whether or not this region is + an AvailabilityZone region + :type is_zone_redundant: bool """ _validation = { @@ -48,6 +51,7 @@ class Location(Model): 'document_endpoint': {'key': 'documentEndpoint', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'failover_priority': {'key': 'failoverPriority', 'type': 'int'}, + 'is_zone_redundant': {'key': 'isZoneRedundant', 'type': 'bool'}, } def __init__(self, **kwargs): @@ -57,3 +61,4 @@ def __init__(self, **kwargs): self.document_endpoint = None self.provisioning_state = kwargs.get('provisioning_state', None) self.failover_priority = kwargs.get('failover_priority', None) + self.is_zone_redundant = kwargs.get('is_zone_redundant', None) diff --git a/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/location_py3.py b/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/location_py3.py index 5ef5bbf16998..d40a5ce80d19 100644 --- a/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/location_py3.py +++ b/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/location_py3.py @@ -34,6 +34,9 @@ class Location(Model): priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. :type failover_priority: int + :param is_zone_redundant: Flag to indicate whether or not this region is + an AvailabilityZone region + :type is_zone_redundant: bool """ _validation = { @@ -48,12 +51,14 @@ class Location(Model): 'document_endpoint': {'key': 'documentEndpoint', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'failover_priority': {'key': 'failoverPriority', 'type': 'int'}, + 'is_zone_redundant': {'key': 'isZoneRedundant', 'type': 'bool'}, } - def __init__(self, *, location_name: str=None, provisioning_state: str=None, failover_priority: int=None, **kwargs) -> None: + def __init__(self, *, location_name: str=None, provisioning_state: str=None, failover_priority: int=None, is_zone_redundant: bool=None, **kwargs) -> None: super(Location, self).__init__(**kwargs) self.id = None self.location_name = location_name self.document_endpoint = None self.provisioning_state = provisioning_state self.failover_priority = failover_priority + self.is_zone_redundant = is_zone_redundant 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: diff --git a/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/version.py b/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/version.py index 5a7feab42d26..3e682bbd5fb1 100644 --- a/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/version.py +++ b/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.6.0" +VERSION = "0.3.0"