Skip to content
Merged
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
6 changes: 6 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@
from .sync_member import SyncMember
from .virtual_network_rule import VirtualNetworkRule
from .database_operation import DatabaseOperation
from .server_dns_alias import ServerDnsAlias
from .server_dns_alias_acquisition import ServerDnsAliasAcquisition
from .restore_point_paged import RestorePointPaged
from .recoverable_database_paged import RecoverableDatabasePaged
from .restorable_dropped_database_paged import RestorableDroppedDatabasePaged
Expand Down Expand Up @@ -127,6 +129,7 @@
from .sync_member_paged import SyncMemberPaged
from .virtual_network_rule_paged import VirtualNetworkRulePaged
from .database_operation_paged import DatabaseOperationPaged
from .server_dns_alias_paged import ServerDnsAliasPaged
from .sql_management_client_enums import (
BackupLongTermRetentionPolicyState,
RestorePointType,
Expand Down Expand Up @@ -262,6 +265,8 @@
'SyncMember',
'VirtualNetworkRule',
'DatabaseOperation',
'ServerDnsAlias',
'ServerDnsAliasAcquisition',
'RestorePointPaged',
'RecoverableDatabasePaged',
'RestorableDroppedDatabasePaged',
Expand Down Expand Up @@ -298,6 +303,7 @@
'SyncMemberPaged',
'VirtualNetworkRulePaged',
'DatabaseOperationPaged',
'ServerDnsAliasPaged',
'BackupLongTermRetentionPolicyState',
'RestorePointType',
'CapabilityStatus',
Expand Down
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
47 changes: 47 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/models/server_dns_alias.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .proxy_resource import ProxyResource


class ServerDnsAlias(ProxyResource):
"""A server DNS alias.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource ID.
:vartype id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:ivar azure_dns_record: The fully qualified DNS record for alias
:vartype azure_dns_record: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'azure_dns_record': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'azure_dns_record': {'key': 'properties.azureDnsRecord', 'type': 'str'},
}

def __init__(self):
super(ServerDnsAlias, self).__init__()
self.azure_dns_record = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ServerDnsAliasAcquisition(Model):
"""A server DNS alias acquisition request.

:param old_server_dns_alias_id: The id of the server alias that will be
acquired to point to this server instead.
:type old_server_dns_alias_id: str
"""

_attribute_map = {
'old_server_dns_alias_id': {'key': 'oldServerDnsAliasId', 'type': 'str'},
}

def __init__(self, old_server_dns_alias_id=None):
self.old_server_dns_alias_id = old_server_dns_alias_id
27 changes: 27 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/models/server_dns_alias_paged.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.paging import Paged


class ServerDnsAliasPaged(Paged):
"""
A paging container for iterating over a list of :class:`ServerDnsAlias <azure.mgmt.sql.models.ServerDnsAlias>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[ServerDnsAlias]'}
}

def __init__(self, *args, **kwargs):

super(ServerDnsAliasPaged, self).__init__(*args, **kwargs)
2 changes: 2 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/operations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
from .sync_members_operations import SyncMembersOperations
from .virtual_network_rules_operations import VirtualNetworkRulesOperations
from .database_operations import DatabaseOperations
from .server_dns_aliases_operations import ServerDnsAliasesOperations

__all__ = [
'BackupLongTermRetentionPoliciesOperations',
Expand Down Expand Up @@ -85,4 +86,5 @@
'SyncMembersOperations',
'VirtualNetworkRulesOperations',
'DatabaseOperations',
'ServerDnsAliasesOperations',
]
Loading