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
2 changes: 1 addition & 1 deletion sdk/sql/azure-mgmt-sql/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "a07f49e3f75a134c1acdacc338c9f9dc32386f66",
"commit": "e50066d7d90bcb99d7619f05ea32fe4480aa3a69",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/sql/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
"readme": "specification/sql/resource-manager/readme.md"
Expand Down
3 changes: 0 additions & 3 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@
from ._models_py3 import ReplicationLink
from ._models_py3 import Resource
from ._models_py3 import ResourceIdentity
from ._models_py3 import ResourceIdentityWithUserAssignedIdentities
from ._models_py3 import ResourceMoveDefinition
from ._models_py3 import ResourceWithWritableName
from ._models_py3 import RestorableDroppedDatabase
Expand Down Expand Up @@ -420,7 +419,6 @@
from ._models import ReplicationLink
from ._models import Resource
from ._models import ResourceIdentity
from ._models import ResourceIdentityWithUserAssignedIdentities
from ._models import ResourceMoveDefinition
from ._models import ResourceWithWritableName
from ._models import RestorableDroppedDatabase
Expand Down Expand Up @@ -876,7 +874,6 @@
'ReplicationLink',
'Resource',
'ResourceIdentity',
'ResourceIdentityWithUserAssignedIdentities',
'ResourceMoveDefinition',
'ResourceWithWritableName',
'RestorableDroppedDatabase',
Expand Down
43 changes: 1 addition & 42 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9452,7 +9452,7 @@ class ResourceIdentity(Model):
:param type: The identity type. Set this to 'SystemAssigned' in order to
automatically create and assign an Azure Active Directory principal for
the resource. Possible values include: 'None', 'SystemAssigned',
'UserAssigned'
'UserAssigned', 'SystemAssigned,UserAssigned'
:type type: str or ~azure.mgmt.sql.models.IdentityType
:ivar tenant_id: The Azure Active Directory tenant id.
:vartype tenant_id: str
Expand All @@ -9478,47 +9478,6 @@ def __init__(self, **kwargs):
self.tenant_id = None


class ResourceIdentityWithUserAssignedIdentities(Model):
"""Azure Active Directory identity configuration for a resource.

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

:param user_assigned_identities: The resource ids of the user assigned
identities to use
:type user_assigned_identities: dict[str,
~azure.mgmt.sql.models.UserIdentity]
:ivar principal_id: The Azure Active Directory principal id.
:vartype principal_id: str
:param type: The identity type. Set this to 'SystemAssigned' in order to
automatically create and assign an Azure Active Directory principal for
the resource. Possible values include: 'None', 'SystemAssigned',
'UserAssigned'
:type type: str or ~azure.mgmt.sql.models.IdentityType
:ivar tenant_id: The Azure Active Directory tenant id.
:vartype tenant_id: str
"""

_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
}

_attribute_map = {
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserIdentity}'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ResourceIdentityWithUserAssignedIdentities, self).__init__(**kwargs)
self.user_assigned_identities = kwargs.get('user_assigned_identities', None)
self.principal_id = None
self.type = kwargs.get('type', None)
self.tenant_id = None


class ResourceMoveDefinition(Model):
"""Contains the information necessary to perform a resource move (rename).

Expand Down
43 changes: 1 addition & 42 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 @@ -9452,7 +9452,7 @@ class ResourceIdentity(Model):
:param type: The identity type. Set this to 'SystemAssigned' in order to
automatically create and assign an Azure Active Directory principal for
the resource. Possible values include: 'None', 'SystemAssigned',
'UserAssigned'
'UserAssigned', 'SystemAssigned,UserAssigned'
:type type: str or ~azure.mgmt.sql.models.IdentityType
:ivar tenant_id: The Azure Active Directory tenant id.
:vartype tenant_id: str
Expand All @@ -9478,47 +9478,6 @@ def __init__(self, *, user_assigned_identities=None, type=None, **kwargs) -> Non
self.tenant_id = None


class ResourceIdentityWithUserAssignedIdentities(Model):
"""Azure Active Directory identity configuration for a resource.

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

:param user_assigned_identities: The resource ids of the user assigned
identities to use
:type user_assigned_identities: dict[str,
~azure.mgmt.sql.models.UserIdentity]
:ivar principal_id: The Azure Active Directory principal id.
:vartype principal_id: str
:param type: The identity type. Set this to 'SystemAssigned' in order to
automatically create and assign an Azure Active Directory principal for
the resource. Possible values include: 'None', 'SystemAssigned',
'UserAssigned'
:type type: str or ~azure.mgmt.sql.models.IdentityType
:ivar tenant_id: The Azure Active Directory tenant id.
:vartype tenant_id: str
"""

_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
}

_attribute_map = {
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserIdentity}'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, *, user_assigned_identities=None, type=None, **kwargs) -> None:
super(ResourceIdentityWithUserAssignedIdentities, self).__init__(**kwargs)
self.user_assigned_identities = user_assigned_identities
self.principal_id = None
self.type = type
self.tenant_id = None


class ResourceMoveDefinition(Model):
"""Contains the information necessary to perform a resource move (rename).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ class IdentityType(str, Enum):
none = "None"
system_assigned = "SystemAssigned"
user_assigned = "UserAssigned"
system_assigned_user_assigned = "SystemAssigned,UserAssigned"


class ManagedServerCreateMode(str, Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def get(

def _create_or_update_initial(
self, resource_group_name, server_name, outbound_rule_fqdn, custom_headers=None, raw=False, **operation_config):
parameters = {}
parameters = None

# Construct URL
url = self.create_or_update.metadata['url']
Expand Down