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/datafactory/azure-mgmt-datafactory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pip install azure-identity

### Authentication

By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down
6 changes: 3 additions & 3 deletions sdk/datafactory/azure-mgmt-datafactory/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "f06cffbda682a8cd225a8b16bc6f000d26d01612",
"commit": "028d65cf9c7d7cf60195f7e508fe196fb6b631a3",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.26.4",
"@autorest/python@6.27.4",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/datafactory/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.26.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"autorest_command": "autorest specification/datafactory/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/datafactory/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
LinkedServicesOperations,
ManagedPrivateEndpointsOperations,
ManagedVirtualNetworksOperations,
Operations,
PipelineRunsOperations,
PipelinesOperations,
PrivateEndPointConnectionsOperations,
Expand All @@ -52,8 +51,6 @@ class DataFactoryManagementClient: # pylint: disable=too-many-instance-attribut
"""The Azure Data Factory V2 management API provides a RESTful set of web services that interact
with Azure Data Factory V2 services.

:ivar operations: Operations operations
:vartype operations: azure.mgmt.datafactory.operations.Operations
:ivar factories: FactoriesOperations operations
:vartype factories: azure.mgmt.datafactory.operations.FactoriesOperations
:ivar exposure_control: ExposureControlOperations operations
Expand Down Expand Up @@ -155,7 +152,6 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.factories = FactoriesOperations(self._client, self._config, self._serialize, self._deserialize)
self.exposure_control = ExposureControlOperations(
self._client, self._config, self._serialize, self._deserialize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def _create_xml_node(tag, prefix=None, ns=None):
return ET.Element(tag)


class Model(object):
class Model:
"""Mixin for all client request body/response body models to support
serialization and deserialization.
"""
Expand Down Expand Up @@ -563,7 +563,7 @@ def _decode_attribute_map_key(key):
return key.replace("\\.", ".")


class Serializer(object): # pylint: disable=too-many-public-methods
class Serializer: # pylint: disable=too-many-public-methods
"""Request object model serializer."""

basic_types = {str: "str", int: "int", bool: "bool", float: "float"}
Expand Down Expand Up @@ -1441,7 +1441,7 @@ def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument
return children[0]


class Deserializer(object):
class Deserializer:
"""Response object model deserializer.

:param dict classes: Class type dictionary for deserializing complex types.
Expand Down Expand Up @@ -1683,17 +1683,21 @@ def _instantiate_model(self, response, attrs, additional_properties=None):
subtype = getattr(response, "_subtype_map", {})
try:
readonly = [
k for k, v in response._validation.items() if v.get("readonly") # pylint: disable=protected-access
k
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
if v.get("readonly")
]
const = [
k for k, v in response._validation.items() if v.get("constant") # pylint: disable=protected-access
k
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
if v.get("constant")
]
kwargs = {k: v for k, v in attrs.items() if k not in subtype and k not in readonly + const}
response_obj = response(**kwargs)
for attr in readonly:
setattr(response_obj, attr, attrs.get(attr))
if additional_properties:
response_obj.additional_properties = additional_properties
response_obj.additional_properties = additional_properties # type: ignore
return response_obj
except TypeError as err:
msg = "Unable to deserialize {} into model {}. ".format(kwargs, response) # type: ignore
Expand Down
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 = "9.1.0"
VERSION = "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
LinkedServicesOperations,
ManagedPrivateEndpointsOperations,
ManagedVirtualNetworksOperations,
Operations,
PipelineRunsOperations,
PipelinesOperations,
PrivateEndPointConnectionsOperations,
Expand All @@ -52,8 +51,6 @@ class DataFactoryManagementClient: # pylint: disable=too-many-instance-attribut
"""The Azure Data Factory V2 management API provides a RESTful set of web services that interact
with Azure Data Factory V2 services.

:ivar operations: Operations operations
:vartype operations: azure.mgmt.datafactory.aio.operations.Operations
:ivar factories: FactoriesOperations operations
:vartype factories: azure.mgmt.datafactory.aio.operations.FactoriesOperations
:ivar exposure_control: ExposureControlOperations operations
Expand Down Expand Up @@ -156,7 +153,6 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.factories = FactoriesOperations(self._client, self._config, self._serialize, self._deserialize)
self.exposure_control = ExposureControlOperations(
self._client, self._config, self._serialize, self._deserialize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._operations import Operations # type: ignore
from ._factories_operations import FactoriesOperations # type: ignore
from ._exposure_control_operations import ExposureControlOperations # type: ignore
from ._integration_runtimes_operations import IntegrationRuntimesOperations # type: ignore
Expand Down Expand Up @@ -41,7 +40,6 @@
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"Operations",
"FactoriesOperations",
"ExposureControlOperations",
"IntegrationRuntimesOperations",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
AzureMySqlTableDataset,
AzurePostgreSqlLinkedService,
AzurePostgreSqlSink,
AzurePostgreSqlSinkUpsertSettings,
AzurePostgreSqlSource,
AzurePostgreSqlTableDataset,
AzureQueueSink,
Expand Down Expand Up @@ -744,8 +745,10 @@
TarGZipReadSettings,
TarReadSettings,
TeamDeskLinkedService,
TeradataImportCommand,
TeradataLinkedService,
TeradataPartitionSettings,
TeradataSink,
TeradataSource,
TeradataTableDataset,
TextFormat,
Expand Down Expand Up @@ -811,6 +814,7 @@
AmazonRdsForSqlAuthenticationType,
AvroCompressionCodec,
AzureFunctionActivityMethod,
AzurePostgreSqlWriteMethodEnum,
AzureSearchIndexWriteBehaviorType,
AzureSqlDWAuthenticationType,
AzureSqlDatabaseAuthenticationType,
Expand Down Expand Up @@ -847,6 +851,7 @@
GoogleAdWordsAuthenticationType,
GoogleBigQueryAuthenticationType,
GoogleBigQueryV2AuthenticationType,
GreenplumAuthenticationType,
HBaseAuthenticationType,
HDInsightActivityDebugInfoOption,
HdiNodeTypes,
Expand Down Expand Up @@ -877,6 +882,7 @@
NotebookReferenceType,
ODataAadServicePrincipalCredentialType,
ODataAuthenticationType,
OracleAuthenticationType,
OraclePartitionOption,
OrcCompressionCodec,
ParameterType,
Expand Down Expand Up @@ -931,6 +937,7 @@
TriggerRuntimeState,
TumblingWindowFrequency,
Type,
ValueType,
VariableType,
WebActivityMethod,
WebAuthenticationType,
Expand Down Expand Up @@ -1037,6 +1044,7 @@
"AzureMySqlTableDataset",
"AzurePostgreSqlLinkedService",
"AzurePostgreSqlSink",
"AzurePostgreSqlSinkUpsertSettings",
"AzurePostgreSqlSource",
"AzurePostgreSqlTableDataset",
"AzureQueueSink",
Expand Down Expand Up @@ -1671,8 +1679,10 @@
"TarGZipReadSettings",
"TarReadSettings",
"TeamDeskLinkedService",
"TeradataImportCommand",
"TeradataLinkedService",
"TeradataPartitionSettings",
"TeradataSink",
"TeradataSource",
"TeradataTableDataset",
"TextFormat",
Expand Down Expand Up @@ -1735,6 +1745,7 @@
"AmazonRdsForSqlAuthenticationType",
"AvroCompressionCodec",
"AzureFunctionActivityMethod",
"AzurePostgreSqlWriteMethodEnum",
"AzureSearchIndexWriteBehaviorType",
"AzureSqlDWAuthenticationType",
"AzureSqlDatabaseAuthenticationType",
Expand Down Expand Up @@ -1771,6 +1782,7 @@
"GoogleAdWordsAuthenticationType",
"GoogleBigQueryAuthenticationType",
"GoogleBigQueryV2AuthenticationType",
"GreenplumAuthenticationType",
"HBaseAuthenticationType",
"HDInsightActivityDebugInfoOption",
"HdiNodeTypes",
Expand Down Expand Up @@ -1801,6 +1813,7 @@
"NotebookReferenceType",
"ODataAadServicePrincipalCredentialType",
"ODataAuthenticationType",
"OracleAuthenticationType",
"OraclePartitionOption",
"OrcCompressionCodec",
"ParameterType",
Expand Down Expand Up @@ -1855,6 +1868,7 @@
"TriggerRuntimeState",
"TumblingWindowFrequency",
"Type",
"ValueType",
"VariableType",
"WebActivityMethod",
"WebAuthenticationType",
Expand Down
Loading