Skip to content

Commit

Permalink
Generated from a406644e7e4884a29e15943f52956492dd1b5e92
Browse files Browse the repository at this point in the history
Update databases.json

Remove "Currently the only supported option is GRS (GeoRedundantStorage)" from databases 2019
  • Loading branch information
SDK Automation committed Sep 28, 2020
1 parent e62cce7 commit 6ff3acf
Show file tree
Hide file tree
Showing 7 changed files with 645 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
from .operations import ServerAzureADOnlyAuthenticationsOperations
from .operations import ImportExportOperations
from .operations import ManagedInstanceAzureADOnlyAuthenticationsOperations
from .operations import ServerTrustGroupsOperations
from . import models


Expand Down Expand Up @@ -304,6 +305,8 @@ class SqlManagementClient(SDKClient):
:vartype import_export: azure.mgmt.sql.operations.ImportExportOperations
:ivar managed_instance_azure_ad_only_authentications: ManagedInstanceAzureADOnlyAuthentications operations
:vartype managed_instance_azure_ad_only_authentications: azure.mgmt.sql.operations.ManagedInstanceAzureADOnlyAuthenticationsOperations
:ivar server_trust_groups: ServerTrustGroups operations
:vartype server_trust_groups: azure.mgmt.sql.operations.ServerTrustGroupsOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand Down Expand Up @@ -512,3 +515,5 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.managed_instance_azure_ad_only_authentications = ManagedInstanceAzureADOnlyAuthenticationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.server_trust_groups = ServerTrustGroupsOperations(
self._client, self.config, self._serialize, self._deserialize)
8 changes: 8 additions & 0 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,11 @@
from ._models_py3 import ServerConnectionPolicy
from ._models_py3 import ServerDnsAlias
from ._models_py3 import ServerDnsAliasAcquisition
from ._models_py3 import ServerInfo
from ._models_py3 import ServerKey
from ._models_py3 import ServerPrivateEndpointConnection
from ._models_py3 import ServerSecurityAlertPolicy
from ._models_py3 import ServerTrustGroup
from ._models_py3 import ServerUpdate
from ._models_py3 import ServerUsage
from ._models_py3 import ServerVersionCapability
Expand Down Expand Up @@ -340,9 +342,11 @@
from ._models import ServerConnectionPolicy
from ._models import ServerDnsAlias
from ._models import ServerDnsAliasAcquisition
from ._models import ServerInfo
from ._models import ServerKey
from ._models import ServerPrivateEndpointConnection
from ._models import ServerSecurityAlertPolicy
from ._models import ServerTrustGroup
from ._models import ServerUpdate
from ._models import ServerUsage
from ._models import ServerVersionCapability
Expand Down Expand Up @@ -445,6 +449,7 @@
from ._paged_models import ServerKeyPaged
from ._paged_models import ServerPaged
from ._paged_models import ServerSecurityAlertPolicyPaged
from ._paged_models import ServerTrustGroupPaged
from ._paged_models import ServerUsagePaged
from ._paged_models import ServerVulnerabilityAssessmentPaged
from ._paged_models import ServiceObjectivePaged
Expand Down Expand Up @@ -704,9 +709,11 @@
'ServerConnectionPolicy',
'ServerDnsAlias',
'ServerDnsAliasAcquisition',
'ServerInfo',
'ServerKey',
'ServerPrivateEndpointConnection',
'ServerSecurityAlertPolicy',
'ServerTrustGroup',
'ServerUpdate',
'ServerUsage',
'ServerVersionCapability',
Expand Down Expand Up @@ -828,6 +835,7 @@
'ManagedDatabasePaged',
'ServerAzureADOnlyAuthenticationPaged',
'ManagedInstanceAzureADOnlyAuthenticationPaged',
'ServerTrustGroupPaged',
'ServerConnectionType',
'SecurityAlertPolicyState',
'SecurityAlertPolicyEmailAccountAdmins',
Expand Down
83 changes: 79 additions & 4 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,7 @@ class Database(TrackedResource):
automatically paused. A value of -1 means that automatic pause is disabled
:type auto_pause_delay: int
:param storage_account_type: The storage account type used to store
backups for this database. Currently the only supported option is GRS
(GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS'
backups for this database. Possible values include: 'GRS', 'LRS', 'ZRS'
:type storage_account_type: str or
~azure.mgmt.sql.models.StorageAccountType
:param min_capacity: Minimal capacity that database will always have
Expand Down Expand Up @@ -1280,8 +1279,7 @@ class DatabaseUpdate(Model):
automatically paused. A value of -1 means that automatic pause is disabled
:type auto_pause_delay: int
:param storage_account_type: The storage account type used to store
backups for this database. Currently the only supported option is GRS
(GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS'
backups for this database. Possible values include: 'GRS', 'LRS', 'ZRS'
:type storage_account_type: str or
~azure.mgmt.sql.models.StorageAccountType
:param min_capacity: Minimal capacity that database will always have
Expand Down Expand Up @@ -8408,6 +8406,28 @@ def __init__(self, **kwargs):
self.old_server_dns_alias_id = kwargs.get('old_server_dns_alias_id', None)


class ServerInfo(Model):
"""Server info for the server trust group.
All required parameters must be populated in order to send to Azure.
:param server_id: Required. Server Id.
:type server_id: str
"""

_validation = {
'server_id': {'required': True},
}

_attribute_map = {
'server_id': {'key': 'serverId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ServerInfo, self).__init__(**kwargs)
self.server_id = kwargs.get('server_id', None)


class ServerKey(ProxyResource):
"""A server key.
Expand Down Expand Up @@ -8579,6 +8599,49 @@ def __init__(self, **kwargs):
self.creation_time = None


class ServerTrustGroup(ProxyResource):
"""A server trust group.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Resource ID.
:vartype id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param group_members: Required. Group members information for the server
trust group.
:type group_members: list[~azure.mgmt.sql.models.ServerInfo]
:param trust_scopes: Required. Trust scope of the server trust group.
:type trust_scopes: list[str]
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'group_members': {'required': True},
'trust_scopes': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'group_members': {'key': 'properties.groupMembers', 'type': '[ServerInfo]'},
'trust_scopes': {'key': 'properties.trustScopes', 'type': '[str]'},
}

def __init__(self, **kwargs):
super(ServerTrustGroup, self).__init__(**kwargs)
self.group_members = kwargs.get('group_members', None)
self.trust_scopes = kwargs.get('trust_scopes', None)


class ServerUpdate(Model):
"""An update request for an Azure SQL Database server.
Expand Down Expand Up @@ -9599,6 +9662,9 @@ class SyncGroup(ProxyResource):
:param use_private_link_connection: If use private link connection is
enabled.
:type use_private_link_connection: bool
:ivar private_endpoint_name: Private endpoint name of the sync group if
use private link connection is enabled.
:vartype private_endpoint_name: str
"""

_validation = {
Expand All @@ -9607,6 +9673,7 @@ class SyncGroup(ProxyResource):
'type': {'readonly': True},
'last_sync_time': {'readonly': True},
'sync_state': {'readonly': True},
'private_endpoint_name': {'readonly': True},
}

_attribute_map = {
Expand All @@ -9622,6 +9689,7 @@ class SyncGroup(ProxyResource):
'sync_state': {'key': 'properties.syncState', 'type': 'str'},
'schema': {'key': 'properties.schema', 'type': 'SyncGroupSchema'},
'use_private_link_connection': {'key': 'properties.usePrivateLinkConnection', 'type': 'bool'},
'private_endpoint_name': {'key': 'properties.privateEndpointName', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -9635,6 +9703,7 @@ def __init__(self, **kwargs):
self.sync_state = None
self.schema = kwargs.get('schema', None)
self.use_private_link_connection = kwargs.get('use_private_link_connection', None)
self.private_endpoint_name = None


class SyncGroupLogProperties(Model):
Expand Down Expand Up @@ -9777,6 +9846,9 @@ class SyncMember(ProxyResource):
:param use_private_link_connection: Whether to use private link
connection.
:type use_private_link_connection: bool
:ivar private_endpoint_name: Private endpoint name of the sync member if
use private link connection is enabled, for sync members in Azure.
:vartype private_endpoint_name: str
:param server_name: Server name of the member database in the sync member
:type server_name: str
:param database_name: Database name of the member database in the sync
Expand All @@ -9803,6 +9875,7 @@ class SyncMember(ProxyResource):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'private_endpoint_name': {'readonly': True},
'sync_state': {'readonly': True},
}

Expand All @@ -9815,6 +9888,7 @@ class SyncMember(ProxyResource):
'sql_server_database_id': {'key': 'properties.sqlServerDatabaseId', 'type': 'str'},
'sync_member_azure_database_resource_id': {'key': 'properties.syncMemberAzureDatabaseResourceId', 'type': 'str'},
'use_private_link_connection': {'key': 'properties.usePrivateLinkConnection', 'type': 'bool'},
'private_endpoint_name': {'key': 'properties.privateEndpointName', 'type': 'str'},
'server_name': {'key': 'properties.serverName', 'type': 'str'},
'database_name': {'key': 'properties.databaseName', 'type': 'str'},
'user_name': {'key': 'properties.userName', 'type': 'str'},
Expand All @@ -9830,6 +9904,7 @@ def __init__(self, **kwargs):
self.sql_server_database_id = kwargs.get('sql_server_database_id', None)
self.sync_member_azure_database_resource_id = kwargs.get('sync_member_azure_database_resource_id', None)
self.use_private_link_connection = kwargs.get('use_private_link_connection', None)
self.private_endpoint_name = None
self.server_name = kwargs.get('server_name', None)
self.database_name = kwargs.get('database_name', None)
self.user_name = kwargs.get('user_name', None)
Expand Down
Loading

0 comments on commit 6ff3acf

Please sign in to comment.