Skip to content

Commit dd47be4

Browse files
author
SDKAuto
committed
CodeGen from PR 15027 in Azure/azure-rest-api-specs
Merge bf7e0abc6b9af1e2a3741a715c39c4281806dcdd into 7f3c678
1 parent b208b2f commit dd47be4

File tree

5 files changed

+4
-88
lines changed

5 files changed

+4
-88
lines changed

sdk/sql/azure-mgmt-sql/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"autorest": "V2",
33
"use": "@microsoft.azure/autorest.python@~4.0.71",
4-
"commit": "a07f49e3f75a134c1acdacc338c9f9dc32386f66",
4+
"commit": "0b540cc19c40416f320e4febf79c3bf2fccd682e",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
66
"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",
77
"readme": "specification/sql/resource-manager/readme.md"

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@
177177
from ._models_py3 import ReplicationLink
178178
from ._models_py3 import Resource
179179
from ._models_py3 import ResourceIdentity
180-
from ._models_py3 import ResourceIdentityWithUserAssignedIdentities
181180
from ._models_py3 import ResourceMoveDefinition
182181
from ._models_py3 import ResourceWithWritableName
183182
from ._models_py3 import RestorableDroppedDatabase
@@ -420,7 +419,6 @@
420419
from ._models import ReplicationLink
421420
from ._models import Resource
422421
from ._models import ResourceIdentity
423-
from ._models import ResourceIdentityWithUserAssignedIdentities
424422
from ._models import ResourceMoveDefinition
425423
from ._models import ResourceWithWritableName
426424
from ._models import RestorableDroppedDatabase
@@ -876,7 +874,6 @@
876874
'ReplicationLink',
877875
'Resource',
878876
'ResourceIdentity',
879-
'ResourceIdentityWithUserAssignedIdentities',
880877
'ResourceMoveDefinition',
881878
'ResourceWithWritableName',
882879
'RestorableDroppedDatabase',

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models.py

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -9452,7 +9452,7 @@ class ResourceIdentity(Model):
94529452
:param type: The identity type. Set this to 'SystemAssigned' in order to
94539453
automatically create and assign an Azure Active Directory principal for
94549454
the resource. Possible values include: 'None', 'SystemAssigned',
9455-
'UserAssigned'
9455+
'UserAssigned', 'SystemAssigned,UserAssigned'
94569456
:type type: str or ~azure.mgmt.sql.models.IdentityType
94579457
:ivar tenant_id: The Azure Active Directory tenant id.
94589458
:vartype tenant_id: str
@@ -9478,47 +9478,6 @@ def __init__(self, **kwargs):
94789478
self.tenant_id = None
94799479

94809480

9481-
class ResourceIdentityWithUserAssignedIdentities(Model):
9482-
"""Azure Active Directory identity configuration for a resource.
9483-
9484-
Variables are only populated by the server, and will be ignored when
9485-
sending a request.
9486-
9487-
:param user_assigned_identities: The resource ids of the user assigned
9488-
identities to use
9489-
:type user_assigned_identities: dict[str,
9490-
~azure.mgmt.sql.models.UserIdentity]
9491-
:ivar principal_id: The Azure Active Directory principal id.
9492-
:vartype principal_id: str
9493-
:param type: The identity type. Set this to 'SystemAssigned' in order to
9494-
automatically create and assign an Azure Active Directory principal for
9495-
the resource. Possible values include: 'None', 'SystemAssigned',
9496-
'UserAssigned'
9497-
:type type: str or ~azure.mgmt.sql.models.IdentityType
9498-
:ivar tenant_id: The Azure Active Directory tenant id.
9499-
:vartype tenant_id: str
9500-
"""
9501-
9502-
_validation = {
9503-
'principal_id': {'readonly': True},
9504-
'tenant_id': {'readonly': True},
9505-
}
9506-
9507-
_attribute_map = {
9508-
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserIdentity}'},
9509-
'principal_id': {'key': 'principalId', 'type': 'str'},
9510-
'type': {'key': 'type', 'type': 'str'},
9511-
'tenant_id': {'key': 'tenantId', 'type': 'str'},
9512-
}
9513-
9514-
def __init__(self, **kwargs):
9515-
super(ResourceIdentityWithUserAssignedIdentities, self).__init__(**kwargs)
9516-
self.user_assigned_identities = kwargs.get('user_assigned_identities', None)
9517-
self.principal_id = None
9518-
self.type = kwargs.get('type', None)
9519-
self.tenant_id = None
9520-
9521-
95229481
class ResourceMoveDefinition(Model):
95239482
"""Contains the information necessary to perform a resource move (rename).
95249483

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models_py3.py

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -9452,7 +9452,7 @@ class ResourceIdentity(Model):
94529452
:param type: The identity type. Set this to 'SystemAssigned' in order to
94539453
automatically create and assign an Azure Active Directory principal for
94549454
the resource. Possible values include: 'None', 'SystemAssigned',
9455-
'UserAssigned'
9455+
'UserAssigned', 'SystemAssigned,UserAssigned'
94569456
:type type: str or ~azure.mgmt.sql.models.IdentityType
94579457
:ivar tenant_id: The Azure Active Directory tenant id.
94589458
:vartype tenant_id: str
@@ -9478,47 +9478,6 @@ def __init__(self, *, user_assigned_identities=None, type=None, **kwargs) -> Non
94789478
self.tenant_id = None
94799479

94809480

9481-
class ResourceIdentityWithUserAssignedIdentities(Model):
9482-
"""Azure Active Directory identity configuration for a resource.
9483-
9484-
Variables are only populated by the server, and will be ignored when
9485-
sending a request.
9486-
9487-
:param user_assigned_identities: The resource ids of the user assigned
9488-
identities to use
9489-
:type user_assigned_identities: dict[str,
9490-
~azure.mgmt.sql.models.UserIdentity]
9491-
:ivar principal_id: The Azure Active Directory principal id.
9492-
:vartype principal_id: str
9493-
:param type: The identity type. Set this to 'SystemAssigned' in order to
9494-
automatically create and assign an Azure Active Directory principal for
9495-
the resource. Possible values include: 'None', 'SystemAssigned',
9496-
'UserAssigned'
9497-
:type type: str or ~azure.mgmt.sql.models.IdentityType
9498-
:ivar tenant_id: The Azure Active Directory tenant id.
9499-
:vartype tenant_id: str
9500-
"""
9501-
9502-
_validation = {
9503-
'principal_id': {'readonly': True},
9504-
'tenant_id': {'readonly': True},
9505-
}
9506-
9507-
_attribute_map = {
9508-
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserIdentity}'},
9509-
'principal_id': {'key': 'principalId', 'type': 'str'},
9510-
'type': {'key': 'type', 'type': 'str'},
9511-
'tenant_id': {'key': 'tenantId', 'type': 'str'},
9512-
}
9513-
9514-
def __init__(self, *, user_assigned_identities=None, type=None, **kwargs) -> None:
9515-
super(ResourceIdentityWithUserAssignedIdentities, self).__init__(**kwargs)
9516-
self.user_assigned_identities = user_assigned_identities
9517-
self.principal_id = None
9518-
self.type = type
9519-
self.tenant_id = None
9520-
9521-
95229481
class ResourceMoveDefinition(Model):
95239482
"""Contains the information necessary to perform a resource move (rename).
95249483

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_sql_management_client_enums.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ class IdentityType(str, Enum):
610610
none = "None"
611611
system_assigned = "SystemAssigned"
612612
user_assigned = "UserAssigned"
613+
system_assigned_user_assigned = "SystemAssigned,UserAssigned"
613614

614615

615616
class ManagedServerCreateMode(str, Enum):

0 commit comments

Comments
 (0)