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
8 changes: 4 additions & 4 deletions sdk/sql/azure-mgmt-sql/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.4.2",
"autorest": "3.4.5",
"use": [
"@autorest/[email protected].0",
"@autorest/[email protected].3",
"@autorest/[email protected]"
],
"commit": "a07f49e3f75a134c1acdacc338c9f9dc32386f66",
"commit": "0b540cc19c40416f320e4febf79c3bf2fccd682e",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/sql/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected].0 --use=@autorest/[email protected] --version=3.4.2",
"autorest_command": "autorest specification/sql/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected].3 --use=@autorest/[email protected] --version=3.4.5",
"readme": "specification/sql/resource-manager/readme.md"
}
2 changes: 1 addition & 1 deletion sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "3.0.0"
VERSION = "0.9.0"
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def get_long_running_output(pipeline_response):
return cls(pipeline_response, deserialized, {})
return deserialized

blob_auditing_policy_name = "default"
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serverName': self._serialize.url("server_name", server_name, 'str'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def get_long_running_output(pipeline_response):
return cls(pipeline_response, deserialized, {})
return deserialized

blob_auditing_policy_name = "default"
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serverName': self._serialize.url("server_name", server_name, 'str'),
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 @@ -240,7 +240,6 @@
from ._models_py3 import ReplicationLinkListResult
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 @@ -582,7 +581,6 @@
from ._models import ReplicationLinkListResult # type: ignore
from ._models import Resource # type: ignore
from ._models import ResourceIdentity # type: ignore
from ._models import ResourceIdentityWithUserAssignedIdentities # type: ignore
from ._models import ResourceMoveDefinition # type: ignore
from ._models import ResourceWithWritableName # type: ignore
from ._models import RestorableDroppedDatabase # type: ignore
Expand Down Expand Up @@ -1066,7 +1064,6 @@
'ReplicationLinkListResult',
'Resource',
'ResourceIdentity',
'ResourceIdentityWithUserAssignedIdentities',
'ResourceMoveDefinition',
'ResourceWithWritableName',
'RestorableDroppedDatabase',
Expand Down
44 changes: 2 additions & 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 @@ -436,7 +436,7 @@ class CheckNameAvailabilityRequest(msrest.serialization.Model):

:param name: Required.
:type name: str
:ivar type: Required. Default value: "Microsoft.Sql/servers".
:ivar type: Has constant value: "Microsoft.Sql/servers".
:vartype type: str
"""

Expand Down Expand Up @@ -11299,7 +11299,7 @@ class ResourceIdentity(msrest.serialization.Model):
: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".
"None", "SystemAssigned", "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 Down Expand Up @@ -11328,46 +11328,6 @@ def __init__(
self.tenant_id = None


class ResourceIdentityWithUserAssignedIdentities(msrest.serialization.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(msrest.serialization.Model):
"""Contains the information necessary to perform a resource move (rename).

Expand Down
47 changes: 2 additions & 45 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 @@ -450,7 +450,7 @@ class CheckNameAvailabilityRequest(msrest.serialization.Model):

:param name: Required.
:type name: str
:ivar type: Required. Default value: "Microsoft.Sql/servers".
:ivar type: Has constant value: "Microsoft.Sql/servers".
:vartype type: str
"""

Expand Down Expand Up @@ -11885,7 +11885,7 @@ class ResourceIdentity(msrest.serialization.Model):
: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".
"None", "SystemAssigned", "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 Down Expand Up @@ -11917,49 +11917,6 @@ def __init__(
self.tenant_id = None


class ResourceIdentityWithUserAssignedIdentities(msrest.serialization.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: Optional[Dict[str, "UserIdentity"]] = None,
type: Optional[Union[str, "IdentityType"]] = None,
**kwargs
):
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(msrest.serialization.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 @@ -444,6 +444,7 @@ class IdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
NONE = "None"
SYSTEM_ASSIGNED = "SystemAssigned"
USER_ASSIGNED = "UserAssigned"
SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned"

class ImplementationMethod(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Gets the method in which this recommended action can be manually implemented. e.g., TSql,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ def get_long_running_output(pipeline_response):
return cls(pipeline_response, deserialized, {})
return deserialized

blob_auditing_policy_name = "default"
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serverName': self._serialize.url("server_name", server_name, 'str'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ def get_long_running_output(pipeline_response):
return cls(pipeline_response, deserialized, {})
return deserialized

blob_auditing_policy_name = "default"
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'serverName': self._serialize.url("server_name", server_name, 'str'),
Expand Down