Skip to content

Commit

Permalink
Update from release/v3
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Aug 3, 2020
1 parent c60e2dd commit 25d7e83
Show file tree
Hide file tree
Showing 9 changed files with 503 additions and 120 deletions.
15 changes: 10 additions & 5 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_sql_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,13 @@
from .operations import ManagedInstanceLongTermRetentionPoliciesOperations
from .operations import WorkloadGroupsOperations
from .operations import WorkloadClassifiersOperations
from .operations import ServerAzureADAdministratorsOperations
from .operations import ManagedInstanceOperations
from .operations import ServerAzureADAdministratorsOperations
from .operations import SyncGroupsOperations
from .operations import SyncMembersOperations
from .operations import ManagedDatabaseRestoreDetailsOperations
from .operations import ManagedDatabasesOperations
from .operations import ServerAzureADOnlyAuthenticationsOperations
from . import models


Expand Down Expand Up @@ -283,10 +284,10 @@ class SqlManagementClient(SDKClient):
:vartype workload_groups: azure.mgmt.sql.operations.WorkloadGroupsOperations
:ivar workload_classifiers: WorkloadClassifiers operations
:vartype workload_classifiers: azure.mgmt.sql.operations.WorkloadClassifiersOperations
:ivar server_azure_ad_administrators: ServerAzureADAdministrators operations
:vartype server_azure_ad_administrators: azure.mgmt.sql.operations.ServerAzureADAdministratorsOperations
:ivar managed_instance_operations: ManagedInstanceOperations operations
:vartype managed_instance_operations: azure.mgmt.sql.operations.ManagedInstanceOperations
:ivar server_azure_ad_administrators: ServerAzureADAdministrators operations
:vartype server_azure_ad_administrators: azure.mgmt.sql.operations.ServerAzureADAdministratorsOperations
:ivar sync_groups: SyncGroups operations
:vartype sync_groups: azure.mgmt.sql.operations.SyncGroupsOperations
:ivar sync_members: SyncMembers operations
Expand All @@ -295,6 +296,8 @@ class SqlManagementClient(SDKClient):
:vartype managed_database_restore_details: azure.mgmt.sql.operations.ManagedDatabaseRestoreDetailsOperations
:ivar managed_databases: ManagedDatabases operations
:vartype managed_databases: azure.mgmt.sql.operations.ManagedDatabasesOperations
:ivar server_azure_ad_only_authentications: ServerAzureADOnlyAuthentications operations
:vartype server_azure_ad_only_authentications: azure.mgmt.sql.operations.ServerAzureADOnlyAuthenticationsOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand Down Expand Up @@ -485,10 +488,10 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.workload_classifiers = WorkloadClassifiersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.server_azure_ad_administrators = ServerAzureADAdministratorsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.managed_instance_operations = ManagedInstanceOperations(
self._client, self.config, self._serialize, self._deserialize)
self.server_azure_ad_administrators = ServerAzureADAdministratorsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.sync_groups = SyncGroupsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.sync_members = SyncMembersOperations(
Expand All @@ -497,3 +500,5 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.managed_databases = ManagedDatabasesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.server_azure_ad_only_authentications = ServerAzureADOnlyAuthenticationsOperations(
self._client, self.config, self._serialize, self._deserialize)
7 changes: 6 additions & 1 deletion sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
from ._models_py3 import Server
from ._models_py3 import ServerAutomaticTuning
from ._models_py3 import ServerAzureADAdministrator
from ._models_py3 import ServerAzureADOnlyAuthentication
from ._models_py3 import ServerBlobAuditingPolicy
from ._models_py3 import ServerCommunicationLink
from ._models_py3 import ServerConnectionPolicy
Expand Down Expand Up @@ -325,6 +326,7 @@
from ._models import Server
from ._models import ServerAutomaticTuning
from ._models import ServerAzureADAdministrator
from ._models import ServerAzureADOnlyAuthentication
from ._models import ServerBlobAuditingPolicy
from ._models import ServerCommunicationLink
from ._models import ServerConnectionPolicy
Expand Down Expand Up @@ -427,6 +429,7 @@
from ._paged_models import RestorePointPaged
from ._paged_models import SensitivityLabelPaged
from ._paged_models import ServerAzureADAdministratorPaged
from ._paged_models import ServerAzureADOnlyAuthenticationPaged
from ._paged_models import ServerBlobAuditingPolicyPaged
from ._paged_models import ServerCommunicationLinkPaged
from ._paged_models import ServerDnsAliasPaged
Expand Down Expand Up @@ -683,6 +686,7 @@
'Server',
'ServerAutomaticTuning',
'ServerAzureADAdministrator',
'ServerAzureADOnlyAuthentication',
'ServerBlobAuditingPolicy',
'ServerCommunicationLink',
'ServerConnectionPolicy',
Expand Down Expand Up @@ -802,14 +806,15 @@
'ManagedInstanceLongTermRetentionPolicyPaged',
'WorkloadGroupPaged',
'WorkloadClassifierPaged',
'ServerAzureADAdministratorPaged',
'ManagedInstanceOperationPaged',
'ServerAzureADAdministratorPaged',
'SyncDatabaseIdPropertiesPaged',
'SyncFullSchemaPropertiesPaged',
'SyncGroupLogPropertiesPaged',
'SyncGroupPaged',
'SyncMemberPaged',
'ManagedDatabasePaged',
'ServerAzureADOnlyAuthenticationPaged',
'ServerConnectionType',
'SecurityAlertPolicyState',
'SecurityAlertPolicyEmailAccountAdmins',
Expand Down
43 changes: 41 additions & 2 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7861,9 +7861,9 @@ class ServerAzureADAdministrator(ProxyResource):
:type sid: str
:param tenant_id: Tenant ID of the administrator.
:type tenant_id: str
:param azure_ad_only_authentication: Azure Active Directory only
:ivar azure_ad_only_authentication: Azure Active Directory only
Authentication enabled.
:type azure_ad_only_authentication: bool
:vartype azure_ad_only_authentication: bool
"""

_validation = {
Expand All @@ -7873,6 +7873,7 @@ class ServerAzureADAdministrator(ProxyResource):
'administrator_type': {'required': True, 'constant': True},
'login': {'required': True},
'sid': {'required': True},
'azure_ad_only_authentication': {'readonly': True},
}

_attribute_map = {
Expand All @@ -7893,6 +7894,44 @@ def __init__(self, **kwargs):
self.login = kwargs.get('login', None)
self.sid = kwargs.get('sid', None)
self.tenant_id = kwargs.get('tenant_id', None)
self.azure_ad_only_authentication = None


class ServerAzureADOnlyAuthentication(ProxyResource):
"""Azure Active Directory only authentication.
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 azure_ad_only_authentication: Required. Azure Active Directory only
Authentication enabled.
:type azure_ad_only_authentication: bool
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'azure_ad_only_authentication': {'key': 'properties.azureADOnlyAuthentication', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(ServerAzureADOnlyAuthentication, self).__init__(**kwargs)
self.azure_ad_only_authentication = kwargs.get('azure_ad_only_authentication', None)


Expand Down
45 changes: 42 additions & 3 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 @@ -7861,9 +7861,9 @@ class ServerAzureADAdministrator(ProxyResource):
:type sid: str
:param tenant_id: Tenant ID of the administrator.
:type tenant_id: str
:param azure_ad_only_authentication: Azure Active Directory only
:ivar azure_ad_only_authentication: Azure Active Directory only
Authentication enabled.
:type azure_ad_only_authentication: bool
:vartype azure_ad_only_authentication: bool
"""

_validation = {
Expand All @@ -7873,6 +7873,7 @@ class ServerAzureADAdministrator(ProxyResource):
'administrator_type': {'required': True, 'constant': True},
'login': {'required': True},
'sid': {'required': True},
'azure_ad_only_authentication': {'readonly': True},
}

_attribute_map = {
Expand All @@ -7888,11 +7889,49 @@ class ServerAzureADAdministrator(ProxyResource):

administrator_type = "ActiveDirectory"

def __init__(self, *, login: str, sid: str, tenant_id: str=None, azure_ad_only_authentication: bool=None, **kwargs) -> None:
def __init__(self, *, login: str, sid: str, tenant_id: str=None, **kwargs) -> None:
super(ServerAzureADAdministrator, self).__init__(**kwargs)
self.login = login
self.sid = sid
self.tenant_id = tenant_id
self.azure_ad_only_authentication = None


class ServerAzureADOnlyAuthentication(ProxyResource):
"""Azure Active Directory only authentication.
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 azure_ad_only_authentication: Required. Azure Active Directory only
Authentication enabled.
:type azure_ad_only_authentication: bool
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'azure_ad_only_authentication': {'key': 'properties.azureADOnlyAuthentication', 'type': 'bool'},
}

def __init__(self, *, azure_ad_only_authentication: bool, **kwargs) -> None:
super(ServerAzureADOnlyAuthentication, self).__init__(**kwargs)
self.azure_ad_only_authentication = azure_ad_only_authentication


Expand Down
29 changes: 21 additions & 8 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 @@ -935,32 +935,32 @@ class WorkloadClassifierPaged(Paged):
def __init__(self, *args, **kwargs):

super(WorkloadClassifierPaged, self).__init__(*args, **kwargs)
class ServerAzureADAdministratorPaged(Paged):
class ManagedInstanceOperationPaged(Paged):
"""
A paging container for iterating over a list of :class:`ServerAzureADAdministrator <azure.mgmt.sql.models.ServerAzureADAdministrator>` object
A paging container for iterating over a list of :class:`ManagedInstanceOperation <azure.mgmt.sql.models.ManagedInstanceOperation>` object
"""

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

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

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

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

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

super(ManagedInstanceOperationPaged, self).__init__(*args, **kwargs)
super(ServerAzureADAdministratorPaged, self).__init__(*args, **kwargs)
class SyncDatabaseIdPropertiesPaged(Paged):
"""
A paging container for iterating over a list of :class:`SyncDatabaseIdProperties <azure.mgmt.sql.models.SyncDatabaseIdProperties>` object
Expand Down Expand Up @@ -1039,3 +1039,16 @@ class ManagedDatabasePaged(Paged):
def __init__(self, *args, **kwargs):

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

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

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

super(ServerAzureADOnlyAuthenticationPaged, self).__init__(*args, **kwargs)
6 changes: 4 additions & 2 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,13 @@
from ._managed_instance_long_term_retention_policies_operations import ManagedInstanceLongTermRetentionPoliciesOperations
from ._workload_groups_operations import WorkloadGroupsOperations
from ._workload_classifiers_operations import WorkloadClassifiersOperations
from ._server_azure_ad_administrators_operations import ServerAzureADAdministratorsOperations
from ._managed_instance_operations import ManagedInstanceOperations
from ._server_azure_ad_administrators_operations import ServerAzureADAdministratorsOperations
from ._sync_groups_operations import SyncGroupsOperations
from ._sync_members_operations import SyncMembersOperations
from ._managed_database_restore_details_operations import ManagedDatabaseRestoreDetailsOperations
from ._managed_databases_operations import ManagedDatabasesOperations
from ._server_azure_ad_only_authentications_operations import ServerAzureADOnlyAuthenticationsOperations

__all__ = [
'RecoverableDatabasesOperations',
Expand Down Expand Up @@ -187,10 +188,11 @@
'ManagedInstanceLongTermRetentionPoliciesOperations',
'WorkloadGroupsOperations',
'WorkloadClassifiersOperations',
'ServerAzureADAdministratorsOperations',
'ManagedInstanceOperations',
'ServerAzureADAdministratorsOperations',
'SyncGroupsOperations',
'SyncMembersOperations',
'ManagedDatabaseRestoreDetailsOperations',
'ManagedDatabasesOperations',
'ServerAzureADOnlyAuthenticationsOperations',
]
Loading

0 comments on commit 25d7e83

Please sign in to comment.