diff --git a/azure-mgmt-sql/azure/mgmt/sql/models/database.py b/azure-mgmt-sql/azure/mgmt/sql/models/database.py index c666abf74fc9..d67499b4b7e6 100644 --- a/azure-mgmt-sql/azure/mgmt/sql/models/database.py +++ b/azure-mgmt-sql/azure/mgmt/sql/models/database.py @@ -175,6 +175,10 @@ class Database(TrackedResource): ignored. Not supported for DataWarehouse edition. Possible values include: 'AdventureWorksLT' :type sample_name: str or ~azure.mgmt.sql.models.SampleName + :param zone_redundant: Whether or not this database is zone redundant, + which means the replicas of this database will be spread across multiple + availability zones. + :type zone_redundant: bool """ _validation = { @@ -229,9 +233,10 @@ class Database(TrackedResource): 'failover_group_id': {'key': 'properties.failoverGroupId', 'type': 'str'}, 'read_scale': {'key': 'properties.readScale', 'type': 'ReadScale'}, 'sample_name': {'key': 'properties.sampleName', 'type': 'str'}, + 'zone_redundant': {'key': 'properties.zoneRedundant', 'type': 'bool'}, } - def __init__(self, location, tags=None, collation=None, create_mode=None, source_database_id=None, source_database_deletion_date=None, restore_point_in_time=None, recovery_services_recovery_point_resource_id=None, edition=None, max_size_bytes=None, requested_service_objective_id=None, requested_service_objective_name=None, elastic_pool_name=None, read_scale=None, sample_name=None): + def __init__(self, location, tags=None, collation=None, create_mode=None, source_database_id=None, source_database_deletion_date=None, restore_point_in_time=None, recovery_services_recovery_point_resource_id=None, edition=None, max_size_bytes=None, requested_service_objective_id=None, requested_service_objective_name=None, elastic_pool_name=None, read_scale=None, sample_name=None, zone_redundant=None): super(Database, self).__init__(tags=tags, location=location) self.kind = None self.collation = collation @@ -259,3 +264,4 @@ def __init__(self, location, tags=None, collation=None, create_mode=None, source self.failover_group_id = None self.read_scale = read_scale self.sample_name = sample_name + self.zone_redundant = zone_redundant diff --git a/azure-mgmt-sql/azure/mgmt/sql/models/database_update.py b/azure-mgmt-sql/azure/mgmt/sql/models/database_update.py index 3656e94dab1a..58c6175c6303 100644 --- a/azure-mgmt-sql/azure/mgmt/sql/models/database_update.py +++ b/azure-mgmt-sql/azure/mgmt/sql/models/database_update.py @@ -170,6 +170,10 @@ class DatabaseUpdate(Resource): ignored. Not supported for DataWarehouse edition. Possible values include: 'AdventureWorksLT' :type sample_name: str or ~azure.mgmt.sql.models.SampleName + :param zone_redundant: Whether or not this database is zone redundant, + which means the replicas of this database will be spread across multiple + availability zones. + :type zone_redundant: bool """ _validation = { @@ -220,9 +224,10 @@ class DatabaseUpdate(Resource): 'failover_group_id': {'key': 'properties.failoverGroupId', 'type': 'str'}, 'read_scale': {'key': 'properties.readScale', 'type': 'ReadScale'}, 'sample_name': {'key': 'properties.sampleName', 'type': 'str'}, + 'zone_redundant': {'key': 'properties.zoneRedundant', 'type': 'bool'}, } - def __init__(self, tags=None, collation=None, create_mode=None, source_database_id=None, source_database_deletion_date=None, restore_point_in_time=None, recovery_services_recovery_point_resource_id=None, edition=None, max_size_bytes=None, requested_service_objective_id=None, requested_service_objective_name=None, elastic_pool_name=None, read_scale=None, sample_name=None): + def __init__(self, tags=None, collation=None, create_mode=None, source_database_id=None, source_database_deletion_date=None, restore_point_in_time=None, recovery_services_recovery_point_resource_id=None, edition=None, max_size_bytes=None, requested_service_objective_id=None, requested_service_objective_name=None, elastic_pool_name=None, read_scale=None, sample_name=None, zone_redundant=None): super(DatabaseUpdate, self).__init__() self.tags = tags self.collation = collation @@ -250,3 +255,4 @@ def __init__(self, tags=None, collation=None, create_mode=None, source_database_ self.failover_group_id = None self.read_scale = read_scale self.sample_name = sample_name + self.zone_redundant = zone_redundant diff --git a/azure-mgmt-sql/azure/mgmt/sql/models/edition_capability.py b/azure-mgmt-sql/azure/mgmt/sql/models/edition_capability.py index 0d36fd084d31..f16fb0a3b8b2 100644 --- a/azure-mgmt-sql/azure/mgmt/sql/models/edition_capability.py +++ b/azure-mgmt-sql/azure/mgmt/sql/models/edition_capability.py @@ -27,21 +27,27 @@ class EditionCapability(Model): objectives for the edition. :vartype supported_service_level_objectives: list[~azure.mgmt.sql.models.ServiceObjectiveCapability] + :ivar zone_redundant: Whether or not zone redundancy is supported for the + edition. + :vartype zone_redundant: bool """ _validation = { 'name': {'readonly': True}, 'status': {'readonly': True}, 'supported_service_level_objectives': {'readonly': True}, + 'zone_redundant': {'readonly': True}, } _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'status': {'key': 'status', 'type': 'CapabilityStatus'}, 'supported_service_level_objectives': {'key': 'supportedServiceLevelObjectives', 'type': '[ServiceObjectiveCapability]'}, + 'zone_redundant': {'key': 'zoneRedundant', 'type': 'bool'}, } def __init__(self): self.name = None self.status = None self.supported_service_level_objectives = None + self.zone_redundant = None diff --git a/azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool.py b/azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool.py index d48c91227ec7..c480d851f9f9 100644 --- a/azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool.py +++ b/azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool.py @@ -45,6 +45,10 @@ class ElasticPool(TrackedResource): :type database_dtu_min: int :param storage_mb: Gets storage limit for the database elastic pool in MB. :type storage_mb: int + :param zone_redundant: Whether or not this database elastic pool is zone + redundant, which means the replicas of this database will be spread across + multiple availability zones. + :type zone_redundant: bool :ivar kind: Kind of elastic pool. This is metadata used for the Azure portal experience. :vartype kind: str @@ -73,10 +77,11 @@ class ElasticPool(TrackedResource): 'database_dtu_max': {'key': 'properties.databaseDtuMax', 'type': 'int'}, 'database_dtu_min': {'key': 'properties.databaseDtuMin', 'type': 'int'}, 'storage_mb': {'key': 'properties.storageMB', 'type': 'int'}, + 'zone_redundant': {'key': 'properties.zoneRedundant', 'type': 'bool'}, 'kind': {'key': 'kind', 'type': 'str'}, } - def __init__(self, location, tags=None, edition=None, dtu=None, database_dtu_max=None, database_dtu_min=None, storage_mb=None): + def __init__(self, location, tags=None, edition=None, dtu=None, database_dtu_max=None, database_dtu_min=None, storage_mb=None, zone_redundant=None): super(ElasticPool, self).__init__(tags=tags, location=location) self.creation_date = None self.state = None @@ -85,4 +90,5 @@ def __init__(self, location, tags=None, edition=None, dtu=None, database_dtu_max self.database_dtu_max = database_dtu_max self.database_dtu_min = database_dtu_min self.storage_mb = storage_mb + self.zone_redundant = zone_redundant self.kind = None diff --git a/azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool_edition_capability.py b/azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool_edition_capability.py index 820cb4401316..9891e27fc3f2 100644 --- a/azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool_edition_capability.py +++ b/azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool_edition_capability.py @@ -27,21 +27,27 @@ class ElasticPoolEditionCapability(Model): levels for the edition. :vartype supported_elastic_pool_dtus: list[~azure.mgmt.sql.models.ElasticPoolDtuCapability] + :ivar zone_redundant: Whether or not zone redundancy is supported for the + edition. + :vartype zone_redundant: bool """ _validation = { 'name': {'readonly': True}, 'status': {'readonly': True}, 'supported_elastic_pool_dtus': {'readonly': True}, + 'zone_redundant': {'readonly': True}, } _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'status': {'key': 'status', 'type': 'CapabilityStatus'}, 'supported_elastic_pool_dtus': {'key': 'supportedElasticPoolDtus', 'type': '[ElasticPoolDtuCapability]'}, + 'zone_redundant': {'key': 'zoneRedundant', 'type': 'bool'}, } def __init__(self): self.name = None self.status = None self.supported_elastic_pool_dtus = None + self.zone_redundant = None diff --git a/azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool_update.py b/azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool_update.py index fef51004bcd6..e6d53d5ec36e 100644 --- a/azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool_update.py +++ b/azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool_update.py @@ -43,6 +43,10 @@ class ElasticPoolUpdate(Resource): :type database_dtu_min: int :param storage_mb: Gets storage limit for the database elastic pool in MB. :type storage_mb: int + :param zone_redundant: Whether or not this database elastic pool is zone + redundant, which means the replicas of this database will be spread across + multiple availability zones. + :type zone_redundant: bool """ _validation = { @@ -65,9 +69,10 @@ class ElasticPoolUpdate(Resource): 'database_dtu_max': {'key': 'properties.databaseDtuMax', 'type': 'int'}, 'database_dtu_min': {'key': 'properties.databaseDtuMin', 'type': 'int'}, 'storage_mb': {'key': 'properties.storageMB', 'type': 'int'}, + 'zone_redundant': {'key': 'properties.zoneRedundant', 'type': 'bool'}, } - def __init__(self, tags=None, edition=None, dtu=None, database_dtu_max=None, database_dtu_min=None, storage_mb=None): + def __init__(self, tags=None, edition=None, dtu=None, database_dtu_max=None, database_dtu_min=None, storage_mb=None, zone_redundant=None): super(ElasticPoolUpdate, self).__init__() self.tags = tags self.creation_date = None @@ -77,3 +82,4 @@ def __init__(self, tags=None, edition=None, dtu=None, database_dtu_max=None, dat self.database_dtu_max = database_dtu_max self.database_dtu_min = database_dtu_min self.storage_mb = storage_mb + self.zone_redundant = zone_redundant diff --git a/azure-mgmt-sql/azure/mgmt/sql/version.py b/azure-mgmt-sql/azure/mgmt/sql/version.py index 0a72a39badd5..feaaf2faf213 100644 --- a/azure-mgmt-sql/azure/mgmt/sql/version.py +++ b/azure-mgmt-sql/azure/mgmt/sql/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.8.2" +VERSION = "0.8.1" diff --git a/azure-mgmt-sql/build.json b/azure-mgmt-sql/build.json index 6b03b625f7d7..f798995be684 100644 --- a/azure-mgmt-sql/build.json +++ b/azure-mgmt-sql/build.json @@ -171,7 +171,7 @@ "resolvedInfo": null, "packageMetadata": { "name": "@microsoft.azure/autorest.python", - "version": "2.0.17", + "version": "2.0.19", "dependencies": { "dotnet-2.0.0": "^1.4.4" }, @@ -197,22 +197,22 @@ "bundleDependencies": false, "peerDependencies": {}, "deprecated": false, - "_resolved": "/root/.autorest/@microsoft.azure_autorest.python@2.0.17/node_modules/@microsoft.azure/autorest.python", - "_shasum": "84a951c19c502343726cfe33cf43cefa76219b39", + "_resolved": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", + "_shasum": "e069166c16fd903c8e1fdf9395b433f3043cb6e3", "_shrinkwrap": null, "bin": null, - "_id": "@microsoft.azure/autorest.python@2.0.17", - "_from": "file:/root/.autorest/@microsoft.azure_autorest.python@2.0.17/node_modules/@microsoft.azure/autorest.python", + "_id": "@microsoft.azure/autorest.python@2.0.19", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", "_requested": { "type": "directory", "where": "/git-restapi", - "raw": "/root/.autorest/@microsoft.azure_autorest.python@2.0.17/node_modules/@microsoft.azure/autorest.python", - "rawSpec": "/root/.autorest/@microsoft.azure_autorest.python@2.0.17/node_modules/@microsoft.azure/autorest.python", - "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.python@2.0.17/node_modules/@microsoft.azure/autorest.python", - "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.python@2.0.17/node_modules/@microsoft.azure/autorest.python" + "raw": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python" }, - "_spec": "/root/.autorest/@microsoft.azure_autorest.python@2.0.17/node_modules/@microsoft.azure/autorest.python", - "_where": "/root/.autorest/@microsoft.azure_autorest.python@2.0.17/node_modules/@microsoft.azure/autorest.python" + "_spec": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", + "_where": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python" }, "extensionManager": { "installationPath": "/root/.autorest", @@ -222,5 +222,5 @@ } ], "autorest_bootstrap": {}, - "date": "2017-10-18T00:04:55Z" + "date": "2017-10-20T22:46:10Z" } \ No newline at end of file