Skip to content

Commit

Permalink
Generated from 441e55a02c28c282d76dea99e191bd926d0811a2
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Sep 21, 2020
1 parent 981105d commit d37c88e
Show file tree
Hide file tree
Showing 7 changed files with 617 additions and 0 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
65 changes: 65 additions & 0 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8408,6 +8408,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 +8601,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
65 changes: 65 additions & 0 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -8408,6 +8408,28 @@ def __init__(self, *, old_server_dns_alias_id: str=None, **kwargs) -> None:
self.old_server_dns_alias_id = old_server_dns_alias_id


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, *, server_id: str, **kwargs) -> None:
super(ServerInfo, self).__init__(**kwargs)
self.server_id = server_id


class ServerKey(ProxyResource):
"""A server key.
Expand Down Expand Up @@ -8579,6 +8601,49 @@ def __init__(self, *, state, disabled_alerts=None, email_addresses=None, email_a
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, *, group_members, trust_scopes, **kwargs) -> None:
super(ServerTrustGroup, self).__init__(**kwargs)
self.group_members = group_members
self.trust_scopes = trust_scopes


class ServerUpdate(Model):
"""An update request for an Azure SQL Database server.
Expand Down
13 changes: 13 additions & 0 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_paged_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,3 +1065,16 @@ class ManagedInstanceAzureADOnlyAuthenticationPaged(Paged):
def __init__(self, *args, **kwargs):

super(ManagedInstanceAzureADOnlyAuthenticationPaged, self).__init__(*args, **kwargs)
class ServerTrustGroupPaged(Paged):
"""
A paging container for iterating over a list of :class:`ServerTrustGroup <azure.mgmt.sql.models.ServerTrustGroup>` object
"""

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

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

super(ServerTrustGroupPaged, self).__init__(*args, **kwargs)
2 changes: 2 additions & 0 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
from ._server_azure_ad_only_authentications_operations import ServerAzureADOnlyAuthenticationsOperations
from ._import_export_operations import ImportExportOperations
from ._managed_instance_azure_ad_only_authentications_operations import ManagedInstanceAzureADOnlyAuthenticationsOperations
from ._server_trust_groups_operations import ServerTrustGroupsOperations

__all__ = [
'RecoverableDatabasesOperations',
Expand Down Expand Up @@ -199,4 +200,5 @@
'ServerAzureADOnlyAuthenticationsOperations',
'ImportExportOperations',
'ManagedInstanceAzureADOnlyAuthenticationsOperations',
'ServerTrustGroupsOperations',
]
Loading

0 comments on commit d37c88e

Please sign in to comment.