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