Skip to content
Closed
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
8 changes: 7 additions & 1 deletion azure-mgmt-sql/azure/mgmt/sql/models/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
8 changes: 7 additions & 1 deletion azure-mgmt-sql/azure/mgmt/sql/models/database_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
6 changes: 6 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/models/edition_capability.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 7 additions & 1 deletion azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 7 additions & 1 deletion azure-mgmt-sql/azure/mgmt/sql/models/elastic_pool_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion azure-mgmt-sql/azure/mgmt/sql/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.8.2"
VERSION = "0.8.1"

24 changes: 12 additions & 12 deletions azure-mgmt-sql/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand All @@ -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",
Expand All @@ -222,5 +222,5 @@
}
],
"autorest_bootstrap": {},
"date": "2017-10-18T00:04:55Z"
"date": "2017-10-20T22:46:10Z"
}