diff --git a/sdk/datafactory/azure-mgmt-datafactory/_meta.json b/sdk/datafactory/azure-mgmt-datafactory/_meta.json index 71e5b746f1bc..83205eda76e1 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/_meta.json +++ b/sdk/datafactory/azure-mgmt-datafactory/_meta.json @@ -1,11 +1,11 @@ { - "commit": "d70ba571ddb519a63aa2ad96a96faff04647f81c", + "commit": "fd954ab01085498b191569ad18497ae56c7ca76a", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.9.2", "use": [ - "@autorest/python@6.4.0", + "@autorest/python@6.4.12", "@autorest/modelerfour@4.24.3" ], - "autorest_command": "autorest specification/datafactory/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.4.0 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False", + "autorest_command": "autorest specification/datafactory/resource-manager/readme.md --generate-sample=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.4.12 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False", "readme": "specification/datafactory/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_configuration.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_configuration.py index d10dbe995788..77c8fb24db69 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_configuration.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_configuration.py @@ -6,7 +6,6 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration @@ -15,11 +14,6 @@ from ._version import VERSION -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports - if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials import TokenCredential @@ -42,7 +36,7 @@ class DataFactoryManagementClientConfiguration(Configuration): # pylint: disabl def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: super(DataFactoryManagementClientConfiguration, self).__init__(**kwargs) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", "2018-06-01") + api_version: str = kwargs.pop("api_version", "2018-06-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_data_factory_management_client.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_data_factory_management_client.py index 599cf12f79b1..3d58d1113f1e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_data_factory_management_client.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_data_factory_management_client.py @@ -126,7 +126,7 @@ def __init__( self._config = DataFactoryManagementClientConfiguration( credential=credential, subscription_id=subscription_id, **kwargs ) - self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) + self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_serialization.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_serialization.py index f17c068e833e..842ae727fbbc 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_serialization.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_serialization.py @@ -629,7 +629,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs): if xml_desc.get("attr", False): if xml_ns: ET.register_namespace(xml_prefix, xml_ns) - xml_name = "{}{}".format(xml_ns, xml_name) + xml_name = "{{{}}}{}".format(xml_ns, xml_name) serialized.set(xml_name, new_attr) # type: ignore continue if xml_desc.get("text", False): @@ -1271,7 +1271,7 @@ def _extract_name_from_internal_type(internal_type): xml_name = internal_type_xml_map.get("name", internal_type.__name__) xml_ns = internal_type_xml_map.get("ns", None) if xml_ns: - xml_name = "{}{}".format(xml_ns, xml_name) + xml_name = "{{{}}}{}".format(xml_ns, xml_name) return xml_name @@ -1295,7 +1295,7 @@ def xml_key_extractor(attr, attr_desc, data): # Integrate namespace if necessary xml_ns = xml_desc.get("ns", internal_type_xml_map.get("ns", None)) if xml_ns: - xml_name = "{}{}".format(xml_ns, xml_name) + xml_name = "{{{}}}{}".format(xml_ns, xml_name) # If it's an attribute, that's simple if xml_desc.get("attr", False): diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_version.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_version.py index 47babc28d5ed..c47f66669f1b 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_version.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "3.1.0" +VERSION = "1.0.0" diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_configuration.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_configuration.py index d157b8f5b7e0..23f2cc2228c0 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_configuration.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_configuration.py @@ -6,7 +6,6 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration @@ -15,11 +14,6 @@ from .._version import VERSION -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports - if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential @@ -42,7 +36,7 @@ class DataFactoryManagementClientConfiguration(Configuration): # pylint: disabl def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: super(DataFactoryManagementClientConfiguration, self).__init__(**kwargs) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", "2018-06-01") + api_version: str = kwargs.pop("api_version", "2018-06-01") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_data_factory_management_client.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_data_factory_management_client.py index 0a1459a7f683..d65df4267df5 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_data_factory_management_client.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/_data_factory_management_client.py @@ -127,7 +127,7 @@ def __init__( self._config = DataFactoryManagementClientConfiguration( credential=credential, subscription_id=subscription_id, **kwargs ) - self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs) + self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs) client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_activity_runs_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_activity_runs_operations.py index d987ee7f21c7..77f97edd8eb6 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_activity_runs_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_activity_runs_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload from azure.core.exceptions import ( @@ -28,10 +28,6 @@ from ..._vendor import _convert_request from ...operations._activity_runs_operations import build_query_by_pipeline_run_request -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -154,16 +150,14 @@ async def query_by_pipeline_run( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ActivityRunsQueryResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(filter_parameters, (IO, bytes)): + if isinstance(filter_parameters, (IOBase, bytes)): _content = filter_parameters else: _json = self._serialize.body(filter_parameters, "RunFilterParameters") @@ -184,8 +178,9 @@ async def query_by_pipeline_run( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_credential_operations_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_credential_operations_operations.py index f53930e95001..3148130e0c97 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_credential_operations_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_credential_operations_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload import urllib.parse @@ -36,10 +36,6 @@ build_list_by_factory_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -83,9 +79,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.CredentialListResponse] = kwargs.pop("cls", None) error_map = { @@ -139,8 +133,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -267,16 +262,14 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ManagedIdentityCredentialResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(credential, (IO, bytes)): + if isinstance(credential, (IOBase, bytes)): _content = credential else: _json = self._serialize.body(credential, "ManagedIdentityCredentialResource") @@ -298,8 +291,9 @@ async def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -356,9 +350,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.ManagedIdentityCredentialResource]] = kwargs.pop("cls", None) request = build_get_request( @@ -375,8 +367,9 @@ async def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -426,9 +419,7 @@ async def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -444,8 +435,9 @@ async def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flow_debug_session_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flow_debug_session_operations.py index f392ab11cbe2..4768d96a0a33 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flow_debug_session_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flow_debug_session_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse @@ -39,10 +39,6 @@ build_query_by_factory_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -84,16 +80,14 @@ async def _create_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Optional[_models.CreateDataFlowDebugSessionResponse]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(request, (IO, bytes)): + if isinstance(request, (IOBase, bytes)): _content = request else: _json = self._serialize.body(request, "CreateDataFlowDebugSessionRequest") @@ -113,8 +107,9 @@ async def _create_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -249,9 +244,7 @@ async def begin_create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CreateDataFlowDebugSessionResponse] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -316,9 +309,7 @@ def query_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.QueryDataFlowDebugSessionsResponse] = kwargs.pop("cls", None) error_map = { @@ -372,8 +363,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -479,16 +471,14 @@ async def add_data_flow( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AddDataFlowToDebugSessionResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(request, (IO, bytes)): + if isinstance(request, (IOBase, bytes)): _content = request else: _json = self._serialize.body(request, "DataFlowDebugPackage") @@ -508,8 +498,9 @@ async def add_data_flow( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -619,16 +610,14 @@ async def delete( # pylint: disable=inconsistent-return-statements _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(request, (IO, bytes)): + if isinstance(request, (IOBase, bytes)): _content = request else: _json = self._serialize.body(request, "DeleteDataFlowDebugSessionRequest") @@ -648,8 +637,9 @@ async def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -683,16 +673,14 @@ async def _execute_command_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Optional[_models.DataFlowDebugCommandResponse]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(request, (IO, bytes)): + if isinstance(request, (IOBase, bytes)): _content = request else: _json = self._serialize.body(request, "DataFlowDebugCommandRequest") @@ -712,8 +700,9 @@ async def _execute_command_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -848,9 +837,7 @@ async def begin_execute_command( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DataFlowDebugCommandResponse] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flows_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flows_operations.py index bc4a273209ca..b42b7355a6f4 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flows_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_data_flows_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload import urllib.parse @@ -36,10 +36,6 @@ build_list_by_factory_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -174,16 +170,14 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DataFlowResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(data_flow, (IO, bytes)): + if isinstance(data_flow, (IOBase, bytes)): _content = data_flow else: _json = self._serialize.body(data_flow, "DataFlowResource") @@ -205,8 +199,9 @@ async def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -263,9 +258,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.DataFlowResource] = kwargs.pop("cls", None) request = build_get_request( @@ -282,8 +275,9 @@ async def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -331,9 +325,7 @@ async def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -349,8 +341,9 @@ async def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -385,9 +378,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.DataFlowListResponse] = kwargs.pop("cls", None) error_map = { @@ -441,8 +432,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_datasets_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_datasets_operations.py index f8c4ede50605..b6437d029ed5 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_datasets_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_datasets_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload import urllib.parse @@ -36,10 +36,6 @@ build_list_by_factory_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -81,9 +77,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.DatasetListResponse] = kwargs.pop("cls", None) error_map = { @@ -137,8 +131,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -265,16 +260,14 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DatasetResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(dataset, (IO, bytes)): + if isinstance(dataset, (IOBase, bytes)): _content = dataset else: _json = self._serialize.body(dataset, "DatasetResource") @@ -296,8 +289,9 @@ async def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -354,9 +348,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.DatasetResource]] = kwargs.pop("cls", None) request = build_get_request( @@ -373,8 +365,9 @@ async def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -424,9 +417,7 @@ async def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -442,8 +433,9 @@ async def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_exposure_control_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_exposure_control_operations.py index b46bab9b9d2f..e24d45d54b98 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_exposure_control_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_exposure_control_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload from azure.core.exceptions import ( @@ -32,10 +32,6 @@ build_query_feature_values_by_factory_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -132,16 +128,14 @@ async def get_feature_value( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExposureControlResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(exposure_control_request, (IO, bytes)): + if isinstance(exposure_control_request, (IOBase, bytes)): _content = exposure_control_request else: _json = self._serialize.body(exposure_control_request, "ExposureControlRequest") @@ -160,8 +154,9 @@ async def get_feature_value( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -271,16 +266,14 @@ async def get_feature_value_by_factory( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExposureControlResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(exposure_control_request, (IO, bytes)): + if isinstance(exposure_control_request, (IOBase, bytes)): _content = exposure_control_request else: _json = self._serialize.body(exposure_control_request, "ExposureControlRequest") @@ -300,8 +293,9 @@ async def get_feature_value_by_factory( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -415,16 +409,14 @@ async def query_feature_values_by_factory( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExposureControlBatchResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(exposure_control_batch_request, (IO, bytes)): + if isinstance(exposure_control_batch_request, (IOBase, bytes)): _content = exposure_control_batch_request else: _json = self._serialize.body(exposure_control_batch_request, "ExposureControlBatchRequest") @@ -444,8 +436,9 @@ async def query_feature_values_by_factory( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_factories_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_factories_operations.py index e035c980ee5c..814bec939053 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_factories_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_factories_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload import urllib.parse @@ -41,10 +41,6 @@ build_update_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -80,9 +76,7 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.Factory"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.FactoryListResponse] = kwargs.pop("cls", None) error_map = { @@ -134,8 +128,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -222,16 +217,14 @@ async def configure_factory_repo( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Factory] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(factory_repo_update, (IO, bytes)): + if isinstance(factory_repo_update, (IOBase, bytes)): _content = factory_repo_update else: _json = self._serialize.body(factory_repo_update, "FactoryRepoUpdate") @@ -250,8 +243,9 @@ async def configure_factory_repo( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -285,9 +279,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.FactoryListResponse] = kwargs.pop("cls", None) error_map = { @@ -340,8 +332,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -458,16 +451,14 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Factory] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(factory, (IO, bytes)): + if isinstance(factory, (IOBase, bytes)): _content = factory else: _json = self._serialize.body(factory, "Factory") @@ -488,8 +479,9 @@ async def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -599,16 +591,14 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Factory] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(factory_update_parameters, (IO, bytes)): + if isinstance(factory_update_parameters, (IOBase, bytes)): _content = factory_update_parameters else: _json = self._serialize.body(factory_update_parameters, "FactoryUpdateParameters") @@ -628,8 +618,9 @@ async def update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -679,9 +670,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.Factory]] = kwargs.pop("cls", None) request = build_get_request( @@ -697,8 +686,9 @@ async def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -746,9 +736,7 @@ async def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -763,8 +751,9 @@ async def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -871,16 +860,14 @@ async def get_git_hub_access_token( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.GitHubAccessTokenResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(git_hub_access_token_request, (IO, bytes)): + if isinstance(git_hub_access_token_request, (IOBase, bytes)): _content = git_hub_access_token_request else: _json = self._serialize.body(git_hub_access_token_request, "GitHubAccessTokenRequest") @@ -900,8 +887,9 @@ async def get_git_hub_access_token( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1007,16 +995,14 @@ async def get_data_plane_access( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AccessPolicyResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(policy, (IO, bytes)): + if isinstance(policy, (IOBase, bytes)): _content = policy else: _json = self._serialize.body(policy, "UserAccessPolicy") @@ -1036,8 +1022,9 @@ async def get_data_plane_access( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_global_parameters_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_global_parameters_operations.py index 4a8e51af7706..88e5b1f79b02 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_global_parameters_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_global_parameters_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload import urllib.parse @@ -36,10 +36,6 @@ build_list_by_factory_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -83,9 +79,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.GlobalParameterListResponse] = kwargs.pop("cls", None) error_map = { @@ -139,8 +133,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -184,9 +179,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.GlobalParameterResource] = kwargs.pop("cls", None) request = build_get_request( @@ -202,8 +195,9 @@ async def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -322,16 +316,14 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.GlobalParameterResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(default, (IO, bytes)): + if isinstance(default, (IOBase, bytes)): _content = default else: _json = self._serialize.body(default, "GlobalParameterResource") @@ -352,8 +344,9 @@ async def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -401,9 +394,7 @@ async def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -419,8 +410,9 @@ async def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_nodes_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_nodes_operations.py index 28710a207174..33be75a7e6ac 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_nodes_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_nodes_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload from azure.core.exceptions import ( @@ -33,10 +33,6 @@ build_update_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -90,9 +86,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.SelfHostedIntegrationRuntimeNode] = kwargs.pop("cls", None) request = build_get_request( @@ -109,8 +103,9 @@ async def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -160,9 +155,7 @@ async def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -179,8 +172,9 @@ async def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -308,16 +302,14 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SelfHostedIntegrationRuntimeNode] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(update_integration_runtime_node_request, (IO, bytes)): + if isinstance(update_integration_runtime_node_request, (IOBase, bytes)): _content = update_integration_runtime_node_request else: _json = self._serialize.body(update_integration_runtime_node_request, "UpdateIntegrationRuntimeNodeRequest") @@ -339,8 +331,9 @@ async def update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -390,9 +383,7 @@ async def get_ip_address( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeNodeIpAddress] = kwargs.pop("cls", None) request = build_get_ip_address_request( @@ -409,8 +400,9 @@ async def get_ip_address( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_object_metadata_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_object_metadata_operations.py index 82dfa0a52ebc..3f4559d327d1 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_object_metadata_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtime_object_metadata_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload from azure.core.exceptions import ( @@ -30,10 +30,6 @@ from ..._vendor import _convert_request from ...operations._integration_runtime_object_metadata_operations import build_get_request, build_refresh_request -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -71,9 +67,7 @@ async def _refresh_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.SsisObjectMetadataStatusResponse]] = kwargs.pop("cls", None) request = build_refresh_request( @@ -89,8 +83,9 @@ async def _refresh_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -141,9 +136,7 @@ async def begin_refresh( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.SsisObjectMetadataStatusResponse] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -290,16 +283,14 @@ async def get( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SsisObjectMetadataListResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(get_metadata_request, (IO, bytes)): + if isinstance(get_metadata_request, (IOBase, bytes)): _content = get_metadata_request else: if get_metadata_request is not None: @@ -323,8 +314,9 @@ async def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtimes_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtimes_operations.py index e90111760ed5..230432604733 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtimes_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_integration_runtimes_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse @@ -51,10 +51,6 @@ build_upgrade_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -98,9 +94,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeListResponse] = kwargs.pop("cls", None) error_map = { @@ -154,8 +148,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -285,16 +280,14 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(integration_runtime, (IO, bytes)): + if isinstance(integration_runtime, (IOBase, bytes)): _content = integration_runtime else: _json = self._serialize.body(integration_runtime, "IntegrationRuntimeResource") @@ -316,8 +309,9 @@ async def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -374,9 +368,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.IntegrationRuntimeResource]] = kwargs.pop("cls", None) request = build_get_request( @@ -393,8 +385,9 @@ async def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -519,16 +512,14 @@ async def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(update_integration_runtime_request, (IO, bytes)): + if isinstance(update_integration_runtime_request, (IOBase, bytes)): _content = update_integration_runtime_request else: _json = self._serialize.body(update_integration_runtime_request, "UpdateIntegrationRuntimeRequest") @@ -549,8 +540,9 @@ async def update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -598,9 +590,7 @@ async def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -616,8 +606,9 @@ async def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -661,9 +652,7 @@ async def get_status( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) request = build_get_status_request( @@ -679,8 +668,9 @@ async def get_status( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -730,9 +720,7 @@ async def list_outbound_network_dependencies_endpoints( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse] = kwargs.pop("cls", None) request = build_list_outbound_network_dependencies_endpoints_request( @@ -748,8 +736,9 @@ async def list_outbound_network_dependencies_endpoints( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -800,9 +789,7 @@ async def get_connection_info( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeConnectionInfo] = kwargs.pop("cls", None) request = build_get_connection_info_request( @@ -818,8 +805,9 @@ async def get_connection_info( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -943,16 +931,14 @@ async def regenerate_auth_key( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.IntegrationRuntimeAuthKeys] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(regenerate_key_parameters, (IO, bytes)): + if isinstance(regenerate_key_parameters, (IOBase, bytes)): _content = regenerate_key_parameters else: _json = self._serialize.body(regenerate_key_parameters, "IntegrationRuntimeRegenerateKeyParameters") @@ -973,8 +959,9 @@ async def regenerate_auth_key( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1022,9 +1009,7 @@ async def list_auth_keys( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeAuthKeys] = kwargs.pop("cls", None) request = build_list_auth_keys_request( @@ -1040,8 +1025,9 @@ async def list_auth_keys( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1075,9 +1061,7 @@ async def _start_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.IntegrationRuntimeStatusResponse]] = kwargs.pop("cls", None) request = build_start_request( @@ -1093,8 +1077,9 @@ async def _start_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1145,9 +1130,7 @@ async def begin_start( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1204,9 +1187,7 @@ async def _stop_initial( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_stop_request( @@ -1222,8 +1203,9 @@ async def _stop_initial( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1266,9 +1248,7 @@ async def begin_stop( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1340,9 +1320,7 @@ async def sync_credentials( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_sync_credentials_request( @@ -1358,8 +1336,9 @@ async def sync_credentials( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1404,9 +1383,7 @@ async def get_monitoring_data( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeMonitoringData] = kwargs.pop("cls", None) request = build_get_monitoring_data_request( @@ -1422,8 +1399,9 @@ async def get_monitoring_data( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1471,9 +1449,7 @@ async def upgrade( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_upgrade_request( @@ -1489,8 +1465,9 @@ async def upgrade( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1612,16 +1589,14 @@ async def remove_links( # pylint: disable=inconsistent-return-statements _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(linked_integration_runtime_request, (IO, bytes)): + if isinstance(linked_integration_runtime_request, (IOBase, bytes)): _content = linked_integration_runtime_request else: _json = self._serialize.body(linked_integration_runtime_request, "LinkedIntegrationRuntimeRequest") @@ -1642,8 +1617,9 @@ async def remove_links( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1762,16 +1738,14 @@ async def create_linked_integration_runtime( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(create_linked_integration_runtime_request, (IO, bytes)): + if isinstance(create_linked_integration_runtime_request, (IOBase, bytes)): _content = create_linked_integration_runtime_request else: _json = self._serialize.body( @@ -1794,8 +1768,9 @@ async def create_linked_integration_runtime( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_linked_services_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_linked_services_operations.py index 3b3aacd91b42..b5e35cd731c7 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_linked_services_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_linked_services_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload import urllib.parse @@ -36,10 +36,6 @@ build_list_by_factory_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -83,9 +79,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.LinkedServiceListResponse] = kwargs.pop("cls", None) error_map = { @@ -139,8 +133,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -270,16 +265,14 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LinkedServiceResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(linked_service, (IO, bytes)): + if isinstance(linked_service, (IOBase, bytes)): _content = linked_service else: _json = self._serialize.body(linked_service, "LinkedServiceResource") @@ -301,8 +294,9 @@ async def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -359,9 +353,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.LinkedServiceResource]] = kwargs.pop("cls", None) request = build_get_request( @@ -378,8 +370,9 @@ async def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -429,9 +422,7 @@ async def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -447,8 +438,9 @@ async def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_managed_private_endpoints_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_managed_private_endpoints_operations.py index 459c7bd228f2..32d0bba56589 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_managed_private_endpoints_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_managed_private_endpoints_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload import urllib.parse @@ -36,10 +36,6 @@ build_list_by_factory_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -85,9 +81,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ManagedPrivateEndpointListResponse] = kwargs.pop("cls", None) error_map = { @@ -142,8 +136,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -283,16 +278,14 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ManagedPrivateEndpointResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(managed_private_endpoint, (IO, bytes)): + if isinstance(managed_private_endpoint, (IOBase, bytes)): _content = managed_private_endpoint else: _json = self._serialize.body(managed_private_endpoint, "ManagedPrivateEndpointResource") @@ -315,8 +308,9 @@ async def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -376,9 +370,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ManagedPrivateEndpointResource] = kwargs.pop("cls", None) request = build_get_request( @@ -396,8 +388,9 @@ async def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -452,9 +445,7 @@ async def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -471,8 +462,9 @@ async def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_managed_virtual_networks_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_managed_virtual_networks_operations.py index b71352db5578..2b4a3939a7f7 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_managed_virtual_networks_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_managed_virtual_networks_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload import urllib.parse @@ -35,10 +35,6 @@ build_list_by_factory_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -82,9 +78,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ManagedVirtualNetworkListResponse] = kwargs.pop("cls", None) error_map = { @@ -138,8 +132,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -270,16 +265,14 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ManagedVirtualNetworkResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(managed_virtual_network, (IO, bytes)): + if isinstance(managed_virtual_network, (IOBase, bytes)): _content = managed_virtual_network else: _json = self._serialize.body(managed_virtual_network, "ManagedVirtualNetworkResource") @@ -301,8 +294,9 @@ async def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -359,9 +353,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ManagedVirtualNetworkResource] = kwargs.pop("cls", None) request = build_get_request( @@ -378,8 +370,9 @@ async def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_operations.py index 922f278d897a..e4f6d05ea917 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar import urllib.parse @@ -30,10 +29,6 @@ from ..._vendor import _convert_request from ...operations._operations import build_list_request -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -69,9 +64,7 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.Operation"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.OperationListResponse] = kwargs.pop("cls", None) error_map = { @@ -122,8 +115,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_pipeline_runs_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_pipeline_runs_operations.py index bbebe8d3c2d5..374007a9dd00 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_pipeline_runs_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_pipeline_runs_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload from azure.core.exceptions import ( @@ -32,10 +32,6 @@ build_query_by_factory_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -149,16 +145,14 @@ async def query_by_factory( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PipelineRunsQueryResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(filter_parameters, (IO, bytes)): + if isinstance(filter_parameters, (IOBase, bytes)): _content = filter_parameters else: _json = self._serialize.body(filter_parameters, "RunFilterParameters") @@ -178,8 +172,9 @@ async def query_by_factory( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -225,9 +220,7 @@ async def get(self, resource_group_name: str, factory_name: str, run_id: str, ** _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.PipelineRun] = kwargs.pop("cls", None) request = build_get_request( @@ -243,8 +236,9 @@ async def get(self, resource_group_name: str, factory_name: str, run_id: str, ** request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -300,9 +294,7 @@ async def cancel( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_cancel_request( @@ -319,8 +311,9 @@ async def cancel( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_pipelines_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_pipelines_operations.py index 54d7af0bf362..c0cee25442ba 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_pipelines_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_pipelines_operations.py @@ -6,6 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from io import IOBase import sys from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload import urllib.parse @@ -41,10 +42,6 @@ from collections.abc import MutableMapping else: from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -88,9 +85,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.PipelineListResponse] = kwargs.pop("cls", None) error_map = { @@ -144,8 +139,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -272,16 +268,14 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PipelineResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(pipeline, (IO, bytes)): + if isinstance(pipeline, (IOBase, bytes)): _content = pipeline else: _json = self._serialize.body(pipeline, "PipelineResource") @@ -303,8 +297,9 @@ async def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -361,9 +356,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.PipelineResource]] = kwargs.pop("cls", None) request = build_get_request( @@ -380,8 +373,9 @@ async def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -431,9 +425,7 @@ async def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -449,8 +441,9 @@ async def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -621,16 +614,14 @@ async def create_run( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CreateRunResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(parameters, (IO, bytes)): + if isinstance(parameters, (IOBase, bytes)): _content = parameters else: if parameters is not None: @@ -658,8 +649,9 @@ async def create_run( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_end_point_connections_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_end_point_connections_operations.py index da2bcba32bdc..74168c2a4f78 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_end_point_connections_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_end_point_connections_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar import urllib.parse @@ -30,10 +29,6 @@ from ..._vendor import _convert_request from ...operations._private_end_point_connections_operations import build_list_by_factory_request -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -77,9 +72,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.PrivateEndpointConnectionListResponse] = kwargs.pop("cls", None) error_map = { @@ -133,8 +126,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_endpoint_connection_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_endpoint_connection_operations.py index 032a1be7c99b..0e66482910b0 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_endpoint_connection_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_endpoint_connection_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload from azure.core.exceptions import ( @@ -32,10 +32,6 @@ build_get_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -175,16 +171,14 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PrivateEndpointConnectionResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(private_endpoint_wrapper, (IO, bytes)): + if isinstance(private_endpoint_wrapper, (IOBase, bytes)): _content = private_endpoint_wrapper else: _json = self._serialize.body(private_endpoint_wrapper, "PrivateLinkConnectionApprovalRequestResource") @@ -206,8 +200,9 @@ async def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -264,9 +259,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.PrivateEndpointConnectionResource] = kwargs.pop("cls", None) request = build_get_request( @@ -283,8 +276,9 @@ async def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -332,9 +326,7 @@ async def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -350,8 +342,9 @@ async def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_link_resources_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_link_resources_operations.py index 11aeb413aba4..9641e0f3d311 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_link_resources_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_private_link_resources_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( @@ -28,10 +27,6 @@ from ..._vendor import _convert_request from ...operations._private_link_resources_operations import build_get_request -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -81,9 +76,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.PrivateLinkResourcesWrapper] = kwargs.pop("cls", None) request = build_get_request( @@ -98,8 +91,9 @@ async def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_trigger_runs_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_trigger_runs_operations.py index e8da64448396..75518d070ec1 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_trigger_runs_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_trigger_runs_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload from azure.core.exceptions import ( @@ -32,10 +32,6 @@ build_rerun_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -89,9 +85,7 @@ async def rerun( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_rerun_request( @@ -108,8 +102,9 @@ async def rerun( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -155,9 +150,7 @@ async def cancel( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_cancel_request( @@ -174,8 +167,9 @@ async def cancel( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -281,16 +275,14 @@ async def query_by_factory( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TriggerRunsQueryResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(filter_parameters, (IO, bytes)): + if isinstance(filter_parameters, (IOBase, bytes)): _content = filter_parameters else: _json = self._serialize.body(filter_parameters, "RunFilterParameters") @@ -310,8 +302,9 @@ async def query_by_factory( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_triggers_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_triggers_operations.py index c5c7add922ed..d37c98a086a4 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_triggers_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_triggers_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse @@ -44,10 +44,6 @@ build_unsubscribe_from_events_request, ) -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -89,9 +85,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.TriggerListResponse] = kwargs.pop("cls", None) error_map = { @@ -145,8 +139,9 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -252,16 +247,14 @@ async def query_by_factory( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TriggerQueryResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(filter_parameters, (IO, bytes)): + if isinstance(filter_parameters, (IOBase, bytes)): _content = filter_parameters else: _json = self._serialize.body(filter_parameters, "TriggerFilterParameters") @@ -281,8 +274,9 @@ async def query_by_factory( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -413,16 +407,14 @@ async def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TriggerResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(trigger, (IO, bytes)): + if isinstance(trigger, (IOBase, bytes)): _content = trigger else: _json = self._serialize.body(trigger, "TriggerResource") @@ -444,8 +436,9 @@ async def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -502,9 +495,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.TriggerResource]] = kwargs.pop("cls", None) request = build_get_request( @@ -521,8 +512,9 @@ async def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -572,9 +564,7 @@ async def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -590,8 +580,9 @@ async def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -621,9 +612,7 @@ async def _subscribe_to_events_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.TriggerSubscriptionOperationStatus]] = kwargs.pop("cls", None) request = build_subscribe_to_events_request( @@ -639,8 +628,9 @@ async def _subscribe_to_events_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -691,9 +681,7 @@ async def begin_subscribe_to_events( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -764,9 +752,7 @@ async def get_event_subscription_status( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) request = build_get_event_subscription_status_request( @@ -782,8 +768,9 @@ async def get_event_subscription_status( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -817,9 +804,7 @@ async def _unsubscribe_from_events_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.TriggerSubscriptionOperationStatus]] = kwargs.pop("cls", None) request = build_unsubscribe_from_events_request( @@ -835,8 +820,9 @@ async def _unsubscribe_from_events_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -887,9 +873,7 @@ async def begin_unsubscribe_from_events( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -946,9 +930,7 @@ async def _start_initial( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_start_request( @@ -964,8 +946,9 @@ async def _start_initial( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1008,9 +991,7 @@ async def begin_start( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1065,9 +1046,7 @@ async def _stop_initial( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_stop_request( @@ -1083,8 +1062,9 @@ async def _stop_initial( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1127,9 +1107,7 @@ async def begin_stop( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py index 8b7d9ff583ce..bd62e995dd79 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py @@ -351,6 +351,7 @@ from ._models_py3 import IntegrationRuntimeCustomSetupScriptProperties from ._models_py3 import IntegrationRuntimeCustomerVirtualNetwork from ._models_py3 import IntegrationRuntimeDataFlowProperties +from ._models_py3 import IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem from ._models_py3 import IntegrationRuntimeDataProxyProperties from ._models_py3 import IntegrationRuntimeDebugResource from ._models_py3 import IntegrationRuntimeListResponse @@ -742,7 +743,6 @@ from ._data_factory_management_client_enums import ConfigurationType from ._data_factory_management_client_enums import CopyBehaviorType from ._data_factory_management_client_enums import CosmosDbConnectionMode -from ._data_factory_management_client_enums import CosmosDbServicePrincipalCredentialType from ._data_factory_management_client_enums import CredentialReferenceType from ._data_factory_management_client_enums import DataFlowComputeType from ._data_factory_management_client_enums import DataFlowDebugCommandType @@ -1197,6 +1197,7 @@ "IntegrationRuntimeCustomSetupScriptProperties", "IntegrationRuntimeCustomerVirtualNetwork", "IntegrationRuntimeDataFlowProperties", + "IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem", "IntegrationRuntimeDataProxyProperties", "IntegrationRuntimeDebugResource", "IntegrationRuntimeListResponse", @@ -1587,7 +1588,6 @@ "ConfigurationType", "CopyBehaviorType", "CosmosDbConnectionMode", - "CosmosDbServicePrincipalCredentialType", "CredentialReferenceType", "DataFlowComputeType", "DataFlowDebugCommandType", diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_data_factory_management_client_enums.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_data_factory_management_client_enums.py index a2b04c92ab26..c5bae63862c5 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_data_factory_management_client_enums.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_data_factory_management_client_enums.py @@ -121,24 +121,12 @@ class CopyBehaviorType(str, Enum, metaclass=CaseInsensitiveEnumMeta): class CosmosDbConnectionMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The connection mode used to access CosmosDB account. Type: string (or Expression with - resultType string). - """ + """The connection mode used to access CosmosDB account. Type: string.""" GATEWAY = "Gateway" DIRECT = "Direct" -class CosmosDbServicePrincipalCredentialType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The service principal credential type to use in Server-To-Server authentication. - 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or - Expression with resultType string). - """ - - SERVICE_PRINCIPAL_KEY = "ServicePrincipalKey" - SERVICE_PRINCIPAL_CERT = "ServicePrincipalCert" - - class CredentialReferenceType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Credential reference type.""" @@ -650,6 +638,7 @@ class RunQueryFilterOperator(str, Enum, metaclass=CaseInsensitiveEnumMeta): NOT_EQUALS = "NotEquals" IN = "In" NOT_IN = "NotIn" + IN_ENUM = "In" class RunQueryOrder(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -835,9 +824,7 @@ class SparkThriftTransportProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta) class SqlAlwaysEncryptedAkvAuthType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Sql always encrypted AKV authentication type. Type: string (or Expression with resultType - string). - """ + """Sql always encrypted AKV authentication type. Type: string.""" SERVICE_PRINCIPAL = "ServicePrincipal" MANAGED_IDENTITY = "ManagedIdentity" diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models_py3.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models_py3.py index 2852b80e7c57..0ff337b4f0d8 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models_py3.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/_models_py3.py @@ -705,9 +705,8 @@ class AmazonMWSLinkedService(LinkedService): # pylint: disable=too-many-instanc connecting over SSL. The default value is true. :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -734,7 +733,7 @@ class AmazonMWSLinkedService(LinkedService): # pylint: disable=too-many-instanc "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -754,7 +753,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -795,9 +794,8 @@ def __init__( connecting over SSL. The default value is true. :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -1566,9 +1564,8 @@ class AmazonRdsForOracleLinkedService(LinkedService): :ivar password: The Azure key vault secret reference of password in connection string. :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -1585,7 +1582,7 @@ class AmazonRdsForOracleLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -1598,7 +1595,7 @@ def __init__( parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -1619,9 +1616,8 @@ def __init__( :keyword password: The Azure key vault secret reference of password in connection string. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -1954,9 +1950,8 @@ class AmazonRdsForSqlServerLinkedService(LinkedService): # pylint: disable=too- :ivar password: The on-premises Windows authentication password. :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar always_encrypted_settings: Sql always encrypted properties. :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties """ @@ -1976,7 +1971,7 @@ class AmazonRdsForSqlServerLinkedService(LinkedService): # pylint: disable=too- "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "user_name": {"key": "typeProperties.userName", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "always_encrypted_settings": { "key": "typeProperties.alwaysEncryptedSettings", "type": "SqlAlwaysEncryptedProperties", @@ -1994,7 +1989,7 @@ def __init__( annotations: Optional[List[JSON]] = None, user_name: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, **kwargs: Any ) -> None: @@ -2019,9 +2014,8 @@ def __init__( :keyword password: The on-premises Windows authentication password. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword always_encrypted_settings: Sql always encrypted properties. :paramtype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties @@ -2079,6 +2073,10 @@ class AmazonRdsForSqlServerSource(TabularSource): # pylint: disable=too-many-in :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". :vartype stored_procedure_parameters: JSON + :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed + values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value + is ReadCommitted. Type: string (or Expression with resultType string). + :vartype isolation_level: JSON :ivar produce_additional_types: Which additional types to produce. :vartype produce_additional_types: JSON :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. @@ -2104,6 +2102,7 @@ class AmazonRdsForSqlServerSource(TabularSource): # pylint: disable=too-many-in "sql_reader_query": {"key": "sqlReaderQuery", "type": "object"}, "sql_reader_stored_procedure_name": {"key": "sqlReaderStoredProcedureName", "type": "object"}, "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, + "isolation_level": {"key": "isolationLevel", "type": "object"}, "produce_additional_types": {"key": "produceAdditionalTypes", "type": "object"}, "partition_option": {"key": "partitionOption", "type": "object"}, "partition_settings": {"key": "partitionSettings", "type": "SqlPartitionSettings"}, @@ -2122,6 +2121,7 @@ def __init__( sql_reader_query: Optional[JSON] = None, sql_reader_stored_procedure_name: Optional[JSON] = None, stored_procedure_parameters: Optional[JSON] = None, + isolation_level: Optional[JSON] = None, produce_additional_types: Optional[JSON] = None, partition_option: Optional[JSON] = None, partition_settings: Optional["_models.SqlPartitionSettings"] = None, @@ -2159,6 +2159,10 @@ def __init__( :keyword stored_procedure_parameters: Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". :paramtype stored_procedure_parameters: JSON + :keyword isolation_level: Specifies the transaction locking behavior for the SQL source. + Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default + value is ReadCommitted. Type: string (or Expression with resultType string). + :paramtype isolation_level: JSON :keyword produce_additional_types: Which additional types to produce. :paramtype produce_additional_types: JSON :keyword partition_option: The partition mechanism that will be used for Sql read in parallel. @@ -2181,6 +2185,7 @@ def __init__( self.sql_reader_query = sql_reader_query self.sql_reader_stored_procedure_name = sql_reader_stored_procedure_name self.stored_procedure_parameters = stored_procedure_parameters + self.isolation_level = isolation_level self.produce_additional_types = produce_additional_types self.partition_option = partition_option self.partition_settings = partition_settings @@ -2332,9 +2337,8 @@ class AmazonRedshiftLinkedService(LinkedService): # pylint: disable=too-many-in connections. The default value is 5439. Type: integer (or Expression with resultType integer). :vartype port: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -2355,7 +2359,7 @@ class AmazonRedshiftLinkedService(LinkedService): # pylint: disable=too-many-in "password": {"key": "typeProperties.password", "type": "SecretBase"}, "database": {"key": "typeProperties.database", "type": "object"}, "port": {"key": "typeProperties.port", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -2371,7 +2375,7 @@ def __init__( username: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, port: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -2401,9 +2405,8 @@ def __init__( connections. The default value is 5439. Type: integer (or Expression with resultType integer). :paramtype port: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -2688,9 +2691,8 @@ class AmazonS3CompatibleLinkedService(LinkedService): # pylint: disable=too-man access. Default value is false. Type: boolean (or Expression with resultType boolean). :vartype force_path_style: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -2708,7 +2710,7 @@ class AmazonS3CompatibleLinkedService(LinkedService): # pylint: disable=too-man "secret_access_key": {"key": "typeProperties.secretAccessKey", "type": "SecretBase"}, "service_url": {"key": "typeProperties.serviceUrl", "type": "object"}, "force_path_style": {"key": "typeProperties.forcePathStyle", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -2723,7 +2725,7 @@ def __init__( secret_access_key: Optional["_models.SecretBase"] = None, service_url: Optional[JSON] = None, force_path_style: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -2753,9 +2755,8 @@ def __init__( access. Default value is false. Type: boolean (or Expression with resultType boolean). :paramtype force_path_style: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -3035,8 +3036,9 @@ class AmazonS3CompatibleReadSettings(StoreReadSettings): # pylint: disable=too- configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. - :vartype enable_partition_discovery: bool + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: JSON :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :vartype partition_root_path: JSON @@ -3065,7 +3067,7 @@ class AmazonS3CompatibleReadSettings(StoreReadSettings): # pylint: disable=too- "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, "prefix": {"key": "prefix", "type": "object"}, "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "bool"}, + "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, "partition_root_path": {"key": "partitionRootPath", "type": "object"}, "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, @@ -3083,7 +3085,7 @@ def __init__( wildcard_file_name: Optional[JSON] = None, prefix: Optional[JSON] = None, file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[bool] = None, + enable_partition_discovery: Optional[JSON] = None, partition_root_path: Optional[JSON] = None, delete_files_after_completion: Optional[JSON] = None, modified_datetime_start: Optional[JSON] = None, @@ -3116,8 +3118,9 @@ def __init__( configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. - :paramtype enable_partition_discovery: bool + :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :paramtype enable_partition_discovery: JSON :keyword partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :paramtype partition_root_path: JSON @@ -3348,9 +3351,8 @@ class AmazonS3LinkedService(LinkedService): # pylint: disable=too-many-instance :ivar session_token: The session token for the S3 temporary security credential. :vartype session_token: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -3369,7 +3371,7 @@ class AmazonS3LinkedService(LinkedService): # pylint: disable=too-many-instance "secret_access_key": {"key": "typeProperties.secretAccessKey", "type": "SecretBase"}, "service_url": {"key": "typeProperties.serviceUrl", "type": "object"}, "session_token": {"key": "typeProperties.sessionToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -3385,7 +3387,7 @@ def __init__( secret_access_key: Optional["_models.SecretBase"] = None, service_url: Optional[JSON] = None, session_token: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -3416,9 +3418,8 @@ def __init__( :keyword session_token: The session token for the S3 temporary security credential. :paramtype session_token: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -3541,8 +3542,9 @@ class AmazonS3ReadSettings(StoreReadSettings): # pylint: disable=too-many-insta configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. - :vartype enable_partition_discovery: bool + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: JSON :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :vartype partition_root_path: JSON @@ -3571,7 +3573,7 @@ class AmazonS3ReadSettings(StoreReadSettings): # pylint: disable=too-many-insta "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, "prefix": {"key": "prefix", "type": "object"}, "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "bool"}, + "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, "partition_root_path": {"key": "partitionRootPath", "type": "object"}, "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, @@ -3589,7 +3591,7 @@ def __init__( wildcard_file_name: Optional[JSON] = None, prefix: Optional[JSON] = None, file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[bool] = None, + enable_partition_discovery: Optional[JSON] = None, partition_root_path: Optional[JSON] = None, delete_files_after_completion: Optional[JSON] = None, modified_datetime_start: Optional[JSON] = None, @@ -3622,8 +3624,9 @@ def __init__( configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. - :paramtype enable_partition_discovery: bool + :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :paramtype enable_partition_discovery: JSON :keyword partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :paramtype partition_root_path: JSON @@ -3766,7 +3769,8 @@ class AppendVariableActivity(ControlActivity): :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] :ivar variable_name: Name of the variable whose value needs to be appended to. :vartype variable_name: str - :ivar value: Value to be appended. Could be a static value or Expression. + :ivar value: Value to be appended. Type: could be a static value matching type of the variable + item or Expression with resultType matching type of the variable item. :vartype value: JSON """ @@ -3812,7 +3816,8 @@ def __init__( :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] :keyword variable_name: Name of the variable whose value needs to be appended to. :paramtype variable_name: str - :keyword value: Value to be appended. Could be a static value or Expression. + :keyword value: Value to be appended. Type: could be a static value matching type of the + variable item or Expression with resultType matching type of the variable item. :paramtype value: JSON """ super().__init__( @@ -3846,7 +3851,8 @@ class AppFiguresLinkedService(LinkedService): :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] :ivar annotations: List of tags that can be used for describing the linked service. :vartype annotations: list[JSON] - :ivar user_name: The username of the Appfigures source. Required. + :ivar user_name: The username of the Appfigures source. Type: string (or Expression with + resultType string). Required. :vartype user_name: JSON :ivar password: The password of the AppFigures source. Required. :vartype password: ~azure.mgmt.datafactory.models.SecretBase @@ -3898,7 +3904,8 @@ def __init__( :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] :keyword annotations: List of tags that can be used for describing the linked service. :paramtype annotations: list[JSON] - :keyword user_name: The username of the Appfigures source. Required. + :keyword user_name: The username of the Appfigures source. Type: string (or Expression with + resultType string). Required. :paramtype user_name: JSON :keyword password: The password of the AppFigures source. Required. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase @@ -3963,9 +3970,8 @@ class AsanaLinkedService(LinkedService): :ivar api_token: The api token for the Asana source. Required. :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -3981,7 +3987,7 @@ class AsanaLinkedService(LinkedService): "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, "annotations": {"key": "annotations", "type": "[object]"}, "api_token": {"key": "typeProperties.apiToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -3993,7 +3999,7 @@ def __init__( description: Optional[str] = None, parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -4011,9 +4017,8 @@ def __init__( :keyword api_token: The api token for the Asana source. Required. :paramtype api_token: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -4818,9 +4823,8 @@ class AzureBatchLinkedService(LinkedService): # pylint: disable=too-many-instan :ivar linked_service_name: The Azure Storage linked service reference. Required. :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar credential: The credential reference containing authentication information. :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference """ @@ -4845,7 +4849,7 @@ class AzureBatchLinkedService(LinkedService): # pylint: disable=too-many-instan "batch_uri": {"key": "typeProperties.batchUri", "type": "object"}, "pool_name": {"key": "typeProperties.poolName", "type": "object"}, "linked_service_name": {"key": "typeProperties.linkedServiceName", "type": "LinkedServiceReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, } @@ -4862,7 +4866,7 @@ def __init__( parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, access_key: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, credential: Optional["_models.CredentialReference"] = None, **kwargs: Any ) -> None: @@ -4892,9 +4896,8 @@ def __init__( :keyword linked_service_name: The Azure Storage linked service reference. Required. :paramtype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword credential: The credential reference containing authentication information. :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference """ @@ -5235,9 +5238,8 @@ class AzureBlobFSLinkedService(LinkedService): # pylint: disable=too-many-insta factory regions’ cloud type. Type: string (or Expression with resultType string). :vartype azure_cloud_type: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar credential: The credential reference containing authentication information. :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference :ivar service_principal_credential_type: The service principal credential type to use in @@ -5274,7 +5276,7 @@ class AzureBlobFSLinkedService(LinkedService): # pylint: disable=too-many-insta "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, "tenant": {"key": "typeProperties.tenant", "type": "object"}, "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, "service_principal_credential": {"key": "typeProperties.servicePrincipalCredential", "type": "SecretBase"}, @@ -5296,7 +5298,7 @@ def __init__( service_principal_key: Optional["_models.SecretBase"] = None, tenant: Optional[JSON] = None, azure_cloud_type: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, credential: Optional["_models.CredentialReference"] = None, service_principal_credential_type: Optional[JSON] = None, service_principal_credential: Optional["_models.SecretBase"] = None, @@ -5336,9 +5338,8 @@ def __init__( the data factory regions’ cloud type. Type: string (or Expression with resultType string). :paramtype azure_cloud_type: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword credential: The credential reference containing authentication information. :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference :keyword service_principal_credential_type: The service principal credential type to use in @@ -5472,8 +5473,9 @@ class AzureBlobFSReadSettings(StoreReadSettings): # pylint: disable=too-many-in configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. - :vartype enable_partition_discovery: bool + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: JSON :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :vartype partition_root_path: JSON @@ -5501,7 +5503,7 @@ class AzureBlobFSReadSettings(StoreReadSettings): # pylint: disable=too-many-in "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "bool"}, + "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, "partition_root_path": {"key": "partitionRootPath", "type": "object"}, "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, @@ -5518,7 +5520,7 @@ def __init__( wildcard_folder_path: Optional[JSON] = None, wildcard_file_name: Optional[JSON] = None, file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[bool] = None, + enable_partition_discovery: Optional[JSON] = None, partition_root_path: Optional[JSON] = None, delete_files_after_completion: Optional[JSON] = None, modified_datetime_start: Optional[JSON] = None, @@ -5548,8 +5550,9 @@ def __init__( configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. - :paramtype enable_partition_discovery: bool + :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :paramtype enable_partition_discovery: JSON :keyword partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :paramtype partition_root_path: JSON @@ -5609,7 +5612,8 @@ class AzureBlobFSSink(CopySink): :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). :vartype disable_metrics_collection: JSON - :ivar copy_behavior: The type of copy behavior for copy sink. + :ivar copy_behavior: The type of copy behavior for copy sink. Type: string (or Expression with + resultType string). :vartype copy_behavior: JSON :ivar metadata: Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). @@ -5669,7 +5673,8 @@ def __init__( :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). :paramtype disable_metrics_collection: JSON - :keyword copy_behavior: The type of copy behavior for copy sink. + :keyword copy_behavior: The type of copy behavior for copy sink. Type: string (or Expression + with resultType string). :paramtype copy_behavior: JSON :keyword metadata: Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). @@ -5973,7 +5978,7 @@ class AzureBlobStorageLinkedService(LinkedService): # pylint: disable=too-many- :vartype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar service_endpoint: Blob service endpoint of the Azure Blob Storage resource. It is mutually exclusive with connectionString, sasUri property. - :vartype service_endpoint: str + :vartype service_endpoint: JSON :ivar service_principal_id: The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with resultType string). :vartype service_principal_id: JSON @@ -5990,10 +5995,9 @@ class AzureBlobStorageLinkedService(LinkedService): # pylint: disable=too-many- :ivar account_kind: Specify the kind of your storage account. Allowed values are: Storage (general purpose v1), StorageV2 (general purpose v2), BlobStorage, or BlockBlobStorage. Type: string (or Expression with resultType string). - :vartype account_kind: str + :vartype account_kind: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). + encrypted using the integration runtime credential manager. Type: string. :vartype encrypted_credential: str :ivar credential: The credential reference containing authentication information. :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference @@ -6021,12 +6025,12 @@ class AzureBlobStorageLinkedService(LinkedService): # pylint: disable=too-many- "account_key": {"key": "typeProperties.accountKey", "type": "AzureKeyVaultSecretReference"}, "sas_uri": {"key": "typeProperties.sasUri", "type": "object"}, "sas_token": {"key": "typeProperties.sasToken", "type": "AzureKeyVaultSecretReference"}, - "service_endpoint": {"key": "typeProperties.serviceEndpoint", "type": "str"}, + "service_endpoint": {"key": "typeProperties.serviceEndpoint", "type": "object"}, "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, "tenant": {"key": "typeProperties.tenant", "type": "object"}, "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, - "account_kind": {"key": "typeProperties.accountKind", "type": "str"}, + "account_kind": {"key": "typeProperties.accountKind", "type": "object"}, "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, @@ -6045,12 +6049,12 @@ def __init__( account_key: Optional["_models.AzureKeyVaultSecretReference"] = None, sas_uri: Optional[JSON] = None, sas_token: Optional["_models.AzureKeyVaultSecretReference"] = None, - service_endpoint: Optional[str] = None, + service_endpoint: Optional[JSON] = None, service_principal_id: Optional[JSON] = None, service_principal_key: Optional["_models.SecretBase"] = None, tenant: Optional[JSON] = None, azure_cloud_type: Optional[JSON] = None, - account_kind: Optional[str] = None, + account_kind: Optional[JSON] = None, encrypted_credential: Optional[str] = None, credential: Optional["_models.CredentialReference"] = None, authentication_type: Optional[Union[str, "_models.AzureStorageAuthenticationType"]] = None, @@ -6082,7 +6086,7 @@ def __init__( :paramtype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword service_endpoint: Blob service endpoint of the Azure Blob Storage resource. It is mutually exclusive with connectionString, sasUri property. - :paramtype service_endpoint: str + :paramtype service_endpoint: JSON :keyword service_principal_id: The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with resultType string). :paramtype service_principal_id: JSON @@ -6099,10 +6103,9 @@ def __init__( :keyword account_kind: Specify the kind of your storage account. Allowed values are: Storage (general purpose v1), StorageV2 (general purpose v2), BlobStorage, or BlockBlobStorage. Type: string (or Expression with resultType string). - :paramtype account_kind: str + :paramtype account_kind: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). + are encrypted using the integration runtime credential manager. Type: string. :paramtype encrypted_credential: str :keyword credential: The credential reference containing authentication information. :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference @@ -6234,8 +6237,9 @@ class AzureBlobStorageReadSettings(StoreReadSettings): # pylint: disable=too-ma configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. - :vartype enable_partition_discovery: bool + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: JSON :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :vartype partition_root_path: JSON @@ -6264,7 +6268,7 @@ class AzureBlobStorageReadSettings(StoreReadSettings): # pylint: disable=too-ma "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, "prefix": {"key": "prefix", "type": "object"}, "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "bool"}, + "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, "partition_root_path": {"key": "partitionRootPath", "type": "object"}, "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, @@ -6282,7 +6286,7 @@ def __init__( wildcard_file_name: Optional[JSON] = None, prefix: Optional[JSON] = None, file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[bool] = None, + enable_partition_discovery: Optional[JSON] = None, partition_root_path: Optional[JSON] = None, delete_files_after_completion: Optional[JSON] = None, modified_datetime_start: Optional[JSON] = None, @@ -6315,8 +6319,9 @@ def __init__( configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. - :paramtype enable_partition_discovery: bool + :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :paramtype enable_partition_discovery: JSON :keyword partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :paramtype partition_root_path: JSON @@ -6754,9 +6759,8 @@ class AzureDatabricksDeltaLakeLinkedService(LinkedService): # pylint: disable=t this job. Type: string (or Expression with resultType string). :vartype cluster_id: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar credential: The credential reference containing authentication information. :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference :ivar workspace_resource_id: Workspace resource id for databricks REST API. Type: string (or @@ -6779,7 +6783,7 @@ class AzureDatabricksDeltaLakeLinkedService(LinkedService): # pylint: disable=t "domain": {"key": "typeProperties.domain", "type": "object"}, "access_token": {"key": "typeProperties.accessToken", "type": "SecretBase"}, "cluster_id": {"key": "typeProperties.clusterId", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, "workspace_resource_id": {"key": "typeProperties.workspaceResourceId", "type": "object"}, } @@ -6795,7 +6799,7 @@ def __init__( annotations: Optional[List[JSON]] = None, access_token: Optional["_models.SecretBase"] = None, cluster_id: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, credential: Optional["_models.CredentialReference"] = None, workspace_resource_id: Optional[JSON] = None, **kwargs: Any @@ -6823,9 +6827,8 @@ def __init__( of this job. Type: string (or Expression with resultType string). :paramtype cluster_id: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword credential: The credential reference containing authentication information. :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference :keyword workspace_resource_id: Workspace resource id for databricks REST API. Type: string (or @@ -7128,9 +7131,8 @@ class AzureDatabricksLinkedService(LinkedService): # pylint: disable=too-many-i disks are always enabled). Type: boolean (or Expression with resultType boolean). :vartype new_cluster_enable_elastic_disk: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar policy_id: The policy id for limiting the ability to configure clusters based on a user defined set of rules. Type: string (or Expression with resultType string). :vartype policy_id: JSON @@ -7166,7 +7168,7 @@ class AzureDatabricksLinkedService(LinkedService): # pylint: disable=too-many-i "new_cluster_driver_node_type": {"key": "typeProperties.newClusterDriverNodeType", "type": "object"}, "new_cluster_init_scripts": {"key": "typeProperties.newClusterInitScripts", "type": "object"}, "new_cluster_enable_elastic_disk": {"key": "typeProperties.newClusterEnableElasticDisk", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "policy_id": {"key": "typeProperties.policyId", "type": "object"}, "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, } @@ -7195,7 +7197,7 @@ def __init__( # pylint: disable=too-many-locals new_cluster_driver_node_type: Optional[JSON] = None, new_cluster_init_scripts: Optional[JSON] = None, new_cluster_enable_elastic_disk: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, policy_id: Optional[JSON] = None, credential: Optional["_models.CredentialReference"] = None, **kwargs: Any @@ -7271,9 +7273,8 @@ def __init__( # pylint: disable=too-many-locals disks are always enabled). Type: boolean (or Expression with resultType boolean). :paramtype new_cluster_enable_elastic_disk: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword policy_id: The policy id for limiting the ability to configure clusters based on a user defined set of rules. Type: string (or Expression with resultType string). :paramtype policy_id: JSON @@ -8033,9 +8034,8 @@ class AzureDataLakeAnalyticsLinkedService(LinkedService): # pylint: disable=too resultType string). :vartype data_lake_analytics_uri: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -8058,7 +8058,7 @@ class AzureDataLakeAnalyticsLinkedService(LinkedService): # pylint: disable=too "subscription_id": {"key": "typeProperties.subscriptionId", "type": "object"}, "resource_group_name": {"key": "typeProperties.resourceGroupName", "type": "object"}, "data_lake_analytics_uri": {"key": "typeProperties.dataLakeAnalyticsUri", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -8076,7 +8076,7 @@ def __init__( subscription_id: Optional[JSON] = None, resource_group_name: Optional[JSON] = None, data_lake_analytics_uri: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -8113,9 +8113,8 @@ def __init__( with resultType string). :paramtype data_lake_analytics_uri: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -8309,9 +8308,8 @@ class AzureDataLakeStoreLinkedService(LinkedService): # pylint: disable=too-man Factory account). Type: string (or Expression with resultType string). :vartype resource_group_name: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar credential: The credential reference containing authentication information. :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference """ @@ -8336,7 +8334,7 @@ class AzureDataLakeStoreLinkedService(LinkedService): # pylint: disable=too-man "account_name": {"key": "typeProperties.accountName", "type": "object"}, "subscription_id": {"key": "typeProperties.subscriptionId", "type": "object"}, "resource_group_name": {"key": "typeProperties.resourceGroupName", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, } @@ -8356,7 +8354,7 @@ def __init__( account_name: Optional[JSON] = None, subscription_id: Optional[JSON] = None, resource_group_name: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, credential: Optional["_models.CredentialReference"] = None, **kwargs: Any ) -> None: @@ -8398,9 +8396,8 @@ def __init__( Data Factory account). Type: string (or Expression with resultType string). :paramtype resource_group_name: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword credential: The credential reference containing authentication information. :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference """ @@ -8516,8 +8513,9 @@ class AzureDataLakeStoreReadSettings(StoreReadSettings): # pylint: disable=too- lexicographical order. Applies under the folderPath in data set, and filter files/sub-folders under the folderPath. Type: string (or Expression with resultType string). :vartype list_before: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. - :vartype enable_partition_discovery: bool + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: JSON :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :vartype partition_root_path: JSON @@ -8547,7 +8545,7 @@ class AzureDataLakeStoreReadSettings(StoreReadSettings): # pylint: disable=too- "file_list_path": {"key": "fileListPath", "type": "object"}, "list_after": {"key": "listAfter", "type": "object"}, "list_before": {"key": "listBefore", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "bool"}, + "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, "partition_root_path": {"key": "partitionRootPath", "type": "object"}, "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, @@ -8566,7 +8564,7 @@ def __init__( file_list_path: Optional[JSON] = None, list_after: Optional[JSON] = None, list_before: Optional[JSON] = None, - enable_partition_discovery: Optional[bool] = None, + enable_partition_discovery: Optional[JSON] = None, partition_root_path: Optional[JSON] = None, delete_files_after_completion: Optional[JSON] = None, modified_datetime_start: Optional[JSON] = None, @@ -8604,8 +8602,9 @@ def __init__( lexicographical order. Applies under the folderPath in data set, and filter files/sub-folders under the folderPath. Type: string (or Expression with resultType string). :paramtype list_before: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. - :paramtype enable_partition_discovery: bool + :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :paramtype enable_partition_discovery: JSON :keyword partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :paramtype partition_root_path: JSON @@ -8667,7 +8666,8 @@ class AzureDataLakeStoreSink(CopySink): :ivar disable_metrics_collection: If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). :vartype disable_metrics_collection: JSON - :ivar copy_behavior: The type of copy behavior for copy sink. + :ivar copy_behavior: The type of copy behavior for copy sink. Type: string (or Expression with + resultType string). :vartype copy_behavior: JSON :ivar enable_adls_single_file_parallel: Single File Parallel. :vartype enable_adls_single_file_parallel: JSON @@ -8726,7 +8726,8 @@ def __init__( :keyword disable_metrics_collection: If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). :paramtype disable_metrics_collection: JSON - :keyword copy_behavior: The type of copy behavior for copy sink. + :keyword copy_behavior: The type of copy behavior for copy sink. Type: string (or Expression + with resultType string). :paramtype copy_behavior: JSON :keyword enable_adls_single_file_parallel: Single File Parallel. :paramtype enable_adls_single_file_parallel: JSON @@ -8849,8 +8850,8 @@ class AzureDataLakeStoreWriteSettings(StoreWriteSettings): :ivar copy_behavior: The type of copy behavior for copy sink. :vartype copy_behavior: JSON :ivar expiry_date_time: Specifies the expiry time of the written files. The time is applied to - the UTC time zone in the format of "2018-12-01T05:00:00Z". Default value is NULL. Type: integer - (or Expression with resultType integer). + the UTC time zone in the format of "2018-12-01T05:00:00Z". Default value is NULL. Type: string + (or Expression with resultType string). :vartype expiry_date_time: JSON """ @@ -8891,7 +8892,7 @@ def __init__( :paramtype copy_behavior: JSON :keyword expiry_date_time: Specifies the expiry time of the written files. The time is applied to the UTC time zone in the format of "2018-12-01T05:00:00Z". Default value is NULL. Type: - integer (or Expression with resultType integer). + string (or Expression with resultType string). :paramtype expiry_date_time: JSON """ super().__init__( @@ -8947,9 +8948,8 @@ class AzureFileStorageLinkedService(LinkedService): # pylint: disable=too-many- resultType string). :vartype snapshot: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -8972,7 +8972,7 @@ class AzureFileStorageLinkedService(LinkedService): # pylint: disable=too-many- "sas_token": {"key": "typeProperties.sasToken", "type": "AzureKeyVaultSecretReference"}, "file_share": {"key": "typeProperties.fileShare", "type": "object"}, "snapshot": {"key": "typeProperties.snapshot", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -8992,7 +8992,7 @@ def __init__( sas_token: Optional["_models.AzureKeyVaultSecretReference"] = None, file_share: Optional[JSON] = None, snapshot: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -9031,9 +9031,8 @@ def __init__( resultType string). :paramtype snapshot: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -9142,8 +9141,9 @@ class AzureFileStorageReadSettings(StoreReadSettings): # pylint: disable=too-ma configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. - :vartype enable_partition_discovery: bool + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: JSON :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :vartype partition_root_path: JSON @@ -9172,7 +9172,7 @@ class AzureFileStorageReadSettings(StoreReadSettings): # pylint: disable=too-ma "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, "prefix": {"key": "prefix", "type": "object"}, "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "bool"}, + "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, "partition_root_path": {"key": "partitionRootPath", "type": "object"}, "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, @@ -9190,7 +9190,7 @@ def __init__( wildcard_file_name: Optional[JSON] = None, prefix: Optional[JSON] = None, file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[bool] = None, + enable_partition_discovery: Optional[JSON] = None, partition_root_path: Optional[JSON] = None, delete_files_after_completion: Optional[JSON] = None, modified_datetime_start: Optional[JSON] = None, @@ -9223,8 +9223,9 @@ def __init__( configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. - :paramtype enable_partition_discovery: bool + :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :paramtype enable_partition_discovery: JSON :keyword partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :paramtype partition_root_path: JSON @@ -9467,9 +9468,8 @@ class AzureFunctionLinkedService(LinkedService): # pylint: disable=too-many-ins :ivar function_key: Function or Host key for Azure Function App. :vartype function_key: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar credential: The credential reference containing authentication information. :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference :ivar resource_id: Allowed token audiences for azure function. @@ -9493,7 +9493,7 @@ class AzureFunctionLinkedService(LinkedService): # pylint: disable=too-many-ins "annotations": {"key": "annotations", "type": "[object]"}, "function_app_url": {"key": "typeProperties.functionAppUrl", "type": "object"}, "function_key": {"key": "typeProperties.functionKey", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, "resource_id": {"key": "typeProperties.resourceId", "type": "object"}, "authentication": {"key": "typeProperties.authentication", "type": "object"}, @@ -9509,7 +9509,7 @@ def __init__( parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, function_key: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, credential: Optional["_models.CredentialReference"] = None, resource_id: Optional[JSON] = None, authentication: Optional[JSON] = None, @@ -9533,9 +9533,8 @@ def __init__( :keyword function_key: Function or Host key for Azure Function App. :paramtype function_key: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword credential: The credential reference containing authentication information. :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference :keyword resource_id: Allowed token audiences for azure function. @@ -9752,9 +9751,8 @@ class AzureMariaDBLinkedService(LinkedService): :ivar pwd: The Azure key vault secret reference of password in connection string. :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -9770,7 +9768,7 @@ class AzureMariaDBLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "pwd": {"key": "typeProperties.pwd", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -9783,7 +9781,7 @@ def __init__( annotations: Optional[List[JSON]] = None, connection_string: Optional[JSON] = None, pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -9804,9 +9802,8 @@ def __init__( :keyword pwd: The Azure key vault secret reference of password in connection string. :paramtype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -10350,9 +10347,8 @@ class AzureMLLinkedService(LinkedService): # pylint: disable=too-many-instance- (or Expression with resultType string). :vartype tenant: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar authentication: Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType string). :vartype authentication: JSON @@ -10377,7 +10373,7 @@ class AzureMLLinkedService(LinkedService): # pylint: disable=too-many-instance- "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "authentication": {"key": "typeProperties.authentication", "type": "object"}, } @@ -10395,7 +10391,7 @@ def __init__( service_principal_id: Optional[JSON] = None, service_principal_key: Optional["_models.SecretBase"] = None, tenant: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, authentication: Optional[JSON] = None, **kwargs: Any ) -> None: @@ -10430,9 +10426,8 @@ def __init__( string (or Expression with resultType string). :paramtype tenant: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword authentication: Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType string). :paramtype authentication: JSON @@ -10494,9 +10489,8 @@ class AzureMLServiceLinkedService(LinkedService): # pylint: disable=too-many-in (or Expression with resultType string). :vartype tenant: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -10519,7 +10513,7 @@ class AzureMLServiceLinkedService(LinkedService): # pylint: disable=too-many-in "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, "tenant": {"key": "typeProperties.tenant", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -10536,7 +10530,7 @@ def __init__( service_principal_id: Optional[JSON] = None, service_principal_key: Optional["_models.SecretBase"] = None, tenant: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -10571,9 +10565,8 @@ def __init__( string (or Expression with resultType string). :paramtype tenant: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -10775,9 +10768,8 @@ class AzureMySqlLinkedService(LinkedService): :ivar password: The Azure key vault secret reference of password in connection string. :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -10794,7 +10786,7 @@ class AzureMySqlLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -10807,7 +10799,7 @@ def __init__( parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, password: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -10828,9 +10820,8 @@ def __init__( :keyword password: The Azure key vault secret reference of password in connection string. :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -11185,9 +11176,8 @@ class AzurePostgreSqlLinkedService(LinkedService): :ivar password: The Azure key vault secret reference of password in connection string. :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -11203,7 +11193,7 @@ class AzurePostgreSqlLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -11216,7 +11206,7 @@ def __init__( annotations: Optional[List[JSON]] = None, connection_string: Optional[JSON] = None, password: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -11237,9 +11227,8 @@ def __init__( :keyword password: The Azure key vault secret reference of password in connection string. :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -11907,9 +11896,8 @@ class AzureSearchLinkedService(LinkedService): :ivar key: Admin Key for Azure Search service. :vartype key: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -11926,7 +11914,7 @@ class AzureSearchLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "url": {"key": "typeProperties.url", "type": "object"}, "key": {"key": "typeProperties.key", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -11939,7 +11927,7 @@ def __init__( parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, key: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -11960,9 +11948,8 @@ def __init__( :keyword key: Admin Key for Azure Search service. :paramtype key: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -12015,9 +12002,8 @@ class AzureSqlDatabaseLinkedService(LinkedService): # pylint: disable=too-many- factory regions’ cloud type. Type: string (or Expression with resultType string). :vartype azure_cloud_type: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar always_encrypted_settings: Sql always encrypted properties. :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties :ivar credential: The credential reference containing authentication information. @@ -12042,7 +12028,7 @@ class AzureSqlDatabaseLinkedService(LinkedService): # pylint: disable=too-many- "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, "tenant": {"key": "typeProperties.tenant", "type": "object"}, "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "always_encrypted_settings": { "key": "typeProperties.alwaysEncryptedSettings", "type": "SqlAlwaysEncryptedProperties", @@ -12064,7 +12050,7 @@ def __init__( service_principal_key: Optional["_models.SecretBase"] = None, tenant: Optional[JSON] = None, azure_cloud_type: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, credential: Optional["_models.CredentialReference"] = None, **kwargs: Any @@ -12100,9 +12086,8 @@ def __init__( the data factory regions’ cloud type. Type: string (or Expression with resultType string). :paramtype azure_cloud_type: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword always_encrypted_settings: Sql always encrypted properties. :paramtype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties @@ -12167,9 +12152,8 @@ class AzureSqlDWLinkedService(LinkedService): # pylint: disable=too-many-instan factory regions’ cloud type. Type: string (or Expression with resultType string). :vartype azure_cloud_type: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar credential: The credential reference containing authentication information. :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference """ @@ -12192,7 +12176,7 @@ class AzureSqlDWLinkedService(LinkedService): # pylint: disable=too-many-instan "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, "tenant": {"key": "typeProperties.tenant", "type": "object"}, "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, } @@ -12210,7 +12194,7 @@ def __init__( service_principal_key: Optional["_models.SecretBase"] = None, tenant: Optional[JSON] = None, azure_cloud_type: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, credential: Optional["_models.CredentialReference"] = None, **kwargs: Any ) -> None: @@ -12246,9 +12230,8 @@ def __init__( the data factory regions’ cloud type. Type: string (or Expression with resultType string). :paramtype azure_cloud_type: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword credential: The credential reference containing authentication information. :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference """ @@ -12430,9 +12413,8 @@ class AzureSqlMILinkedService(LinkedService): # pylint: disable=too-many-instan factory regions’ cloud type. Type: string (or Expression with resultType string). :vartype azure_cloud_type: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar always_encrypted_settings: Sql always encrypted properties. :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties :ivar credential: The credential reference containing authentication information. @@ -12457,7 +12439,7 @@ class AzureSqlMILinkedService(LinkedService): # pylint: disable=too-many-instan "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, "tenant": {"key": "typeProperties.tenant", "type": "object"}, "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "always_encrypted_settings": { "key": "typeProperties.alwaysEncryptedSettings", "type": "SqlAlwaysEncryptedProperties", @@ -12479,7 +12461,7 @@ def __init__( service_principal_key: Optional["_models.SecretBase"] = None, tenant: Optional[JSON] = None, azure_cloud_type: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, credential: Optional["_models.CredentialReference"] = None, **kwargs: Any @@ -12515,9 +12497,8 @@ def __init__( the data factory regions’ cloud type. Type: string (or Expression with resultType string). :paramtype azure_cloud_type: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword always_encrypted_settings: Sql always encrypted properties. :paramtype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties @@ -12876,6 +12857,10 @@ class AzureSqlSource(TabularSource): # pylint: disable=too-many-instance-attrib :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". :vartype stored_procedure_parameters: JSON + :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed + values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value + is ReadCommitted. Type: string (or Expression with resultType string). + :vartype isolation_level: JSON :ivar produce_additional_types: Which additional types to produce. :vartype produce_additional_types: JSON :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. @@ -12901,6 +12886,7 @@ class AzureSqlSource(TabularSource): # pylint: disable=too-many-instance-attrib "sql_reader_query": {"key": "sqlReaderQuery", "type": "object"}, "sql_reader_stored_procedure_name": {"key": "sqlReaderStoredProcedureName", "type": "object"}, "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, + "isolation_level": {"key": "isolationLevel", "type": "object"}, "produce_additional_types": {"key": "produceAdditionalTypes", "type": "object"}, "partition_option": {"key": "partitionOption", "type": "object"}, "partition_settings": {"key": "partitionSettings", "type": "SqlPartitionSettings"}, @@ -12919,6 +12905,7 @@ def __init__( sql_reader_query: Optional[JSON] = None, sql_reader_stored_procedure_name: Optional[JSON] = None, stored_procedure_parameters: Optional[JSON] = None, + isolation_level: Optional[JSON] = None, produce_additional_types: Optional[JSON] = None, partition_option: Optional[JSON] = None, partition_settings: Optional["_models.SqlPartitionSettings"] = None, @@ -12956,6 +12943,10 @@ def __init__( :keyword stored_procedure_parameters: Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". :paramtype stored_procedure_parameters: JSON + :keyword isolation_level: Specifies the transaction locking behavior for the SQL source. + Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default + value is ReadCommitted. Type: string (or Expression with resultType string). + :paramtype isolation_level: JSON :keyword produce_additional_types: Which additional types to produce. :paramtype produce_additional_types: JSON :keyword partition_option: The partition mechanism that will be used for Sql read in parallel. @@ -12978,6 +12969,7 @@ def __init__( self.sql_reader_query = sql_reader_query self.sql_reader_stored_procedure_name = sql_reader_stored_procedure_name self.stored_procedure_parameters = stored_procedure_parameters + self.isolation_level = isolation_level self.produce_additional_types = produce_additional_types self.partition_option = partition_option self.partition_settings = partition_settings @@ -13134,8 +13126,7 @@ class AzureStorageLinkedService(LinkedService): # pylint: disable=too-many-inst :ivar sas_token: The Azure key vault secret reference of sasToken in sas uri. :vartype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). + encrypted using the integration runtime credential manager. Type: string. :vartype encrypted_credential: str """ @@ -13195,8 +13186,7 @@ def __init__( :keyword sas_token: The Azure key vault secret reference of sasToken in sas uri. :paramtype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). + are encrypted using the integration runtime credential manager. Type: string. :paramtype encrypted_credential: str """ super().__init__( @@ -13686,8 +13676,7 @@ class AzureTableStorageLinkedService(LinkedService): # pylint: disable=too-many :ivar sas_token: The Azure key vault secret reference of sasToken in sas uri. :vartype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). + encrypted using the integration runtime credential manager. Type: string. :vartype encrypted_credential: str """ @@ -13747,8 +13736,7 @@ def __init__( :keyword sas_token: The Azure key vault secret reference of sasToken in sas uri. :paramtype sas_token: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). + are encrypted using the integration runtime credential manager. Type: string. :paramtype encrypted_credential: str """ super().__init__( @@ -14814,9 +14802,8 @@ class CassandraLinkedService(LinkedService): # pylint: disable=too-many-instanc :ivar password: Password for authentication. :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -14836,7 +14823,7 @@ class CassandraLinkedService(LinkedService): # pylint: disable=too-many-instanc "port": {"key": "typeProperties.port", "type": "object"}, "username": {"key": "typeProperties.username", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -14852,7 +14839,7 @@ def __init__( port: Optional[JSON] = None, username: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -14882,9 +14869,8 @@ def __init__( :keyword password: Password for authentication. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -15513,9 +15499,8 @@ class CommonDataServiceForAppsLinkedService(LinkedService): # pylint: disable=t be AzureKeyVaultSecretReference. :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -15542,7 +15527,7 @@ class CommonDataServiceForAppsLinkedService(LinkedService): # pylint: disable=t "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, "service_principal_credential": {"key": "typeProperties.servicePrincipalCredential", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -15564,7 +15549,7 @@ def __init__( service_principal_id: Optional[JSON] = None, service_principal_credential_type: Optional[JSON] = None, service_principal_credential: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -15625,9 +15610,8 @@ def __init__( be AzureKeyVaultSecretReference. :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -15987,9 +15971,8 @@ class ConcurLinkedService(LinkedService): # pylint: disable=too-many-instance-a connecting over SSL. The default value is true. :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -16012,7 +15995,7 @@ class ConcurLinkedService(LinkedService): # pylint: disable=too-many-instance-a "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -16030,7 +16013,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -16066,9 +16049,8 @@ def __init__( connecting over SSL. The default value is true. :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -16703,10 +16685,8 @@ class CosmosDbLinkedService(LinkedService): # pylint: disable=too-many-instance :vartype service_principal_id: JSON :ivar service_principal_credential_type: The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). Known values are: - "ServicePrincipalKey" and "ServicePrincipalCert". - :vartype service_principal_credential_type: str or - ~azure.mgmt.datafactory.models.CosmosDbServicePrincipalCredentialType + for certificate. Type: string. + :vartype service_principal_credential_type: JSON :ivar service_principal_credential: The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If @@ -16720,13 +16700,12 @@ class CosmosDbLinkedService(LinkedService): # pylint: disable=too-many-instance values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). :vartype azure_cloud_type: JSON - :ivar connection_mode: The connection mode used to access CosmosDB account. Type: string (or - Expression with resultType string). Known values are: "Gateway" and "Direct". + :ivar connection_mode: The connection mode used to access CosmosDB account. Type: string. Known + values are: "Gateway" and "Direct". :vartype connection_mode: str or ~azure.mgmt.datafactory.models.CosmosDbConnectionMode :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar credential: The credential reference containing authentication information. :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference """ @@ -16747,12 +16726,12 @@ class CosmosDbLinkedService(LinkedService): # pylint: disable=too-many-instance "database": {"key": "typeProperties.database", "type": "object"}, "account_key": {"key": "typeProperties.accountKey", "type": "SecretBase"}, "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, - "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "str"}, + "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, "service_principal_credential": {"key": "typeProperties.servicePrincipalCredential", "type": "SecretBase"}, "tenant": {"key": "typeProperties.tenant", "type": "object"}, "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, "connection_mode": {"key": "typeProperties.connectionMode", "type": "str"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, } @@ -16769,14 +16748,12 @@ def __init__( database: Optional[JSON] = None, account_key: Optional["_models.SecretBase"] = None, service_principal_id: Optional[JSON] = None, - service_principal_credential_type: Optional[ - Union[str, "_models.CosmosDbServicePrincipalCredentialType"] - ] = None, + service_principal_credential_type: Optional[JSON] = None, service_principal_credential: Optional["_models.SecretBase"] = None, tenant: Optional[JSON] = None, azure_cloud_type: Optional[JSON] = None, connection_mode: Optional[Union[str, "_models.CosmosDbConnectionMode"]] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, credential: Optional["_models.CredentialReference"] = None, **kwargs: Any ) -> None: @@ -16809,10 +16786,8 @@ def __init__( :paramtype service_principal_id: JSON :keyword service_principal_credential_type: The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' - for certificate. Type: string (or Expression with resultType string). Known values are: - "ServicePrincipalKey" and "ServicePrincipalCert". - :paramtype service_principal_credential_type: str or - ~azure.mgmt.datafactory.models.CosmosDbServicePrincipalCredentialType + for certificate. Type: string. + :paramtype service_principal_credential_type: JSON :keyword service_principal_credential: The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If @@ -16826,13 +16801,12 @@ def __init__( Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). :paramtype azure_cloud_type: JSON - :keyword connection_mode: The connection mode used to access CosmosDB account. Type: string (or - Expression with resultType string). Known values are: "Gateway" and "Direct". + :keyword connection_mode: The connection mode used to access CosmosDB account. Type: string. + Known values are: "Gateway" and "Direct". :paramtype connection_mode: str or ~azure.mgmt.datafactory.models.CosmosDbConnectionMode :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword credential: The credential reference containing authentication information. :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference """ @@ -17639,9 +17613,8 @@ class CouchbaseLinkedService(LinkedService): :ivar cred_string: The Azure key vault secret reference of credString in connection string. :vartype cred_string: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -17657,7 +17630,7 @@ class CouchbaseLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "cred_string": {"key": "typeProperties.credString", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -17670,7 +17643,7 @@ def __init__( annotations: Optional[List[JSON]] = None, connection_string: Optional[JSON] = None, cred_string: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -17691,9 +17664,8 @@ def __init__( :keyword cred_string: The Azure key vault secret reference of credString in connection string. :paramtype cred_string: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -20407,9 +20379,8 @@ class DataworldLinkedService(LinkedService): :ivar api_token: The api token for the Dataworld source. Required. :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -20425,7 +20396,7 @@ class DataworldLinkedService(LinkedService): "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, "annotations": {"key": "annotations", "type": "[object]"}, "api_token": {"key": "typeProperties.apiToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -20437,7 +20408,7 @@ def __init__( description: Optional[str] = None, parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -20455,9 +20426,8 @@ def __init__( :keyword api_token: The api token for the Dataworld source. Required. :paramtype api_token: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -20517,8 +20487,8 @@ class Db2LinkedService(LinkedService): # pylint: disable=too-many-instance-attr :vartype certificate_common_name: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. It is mutually exclusive with - connectionString property. Type: string (or Expression with resultType string). - :vartype encrypted_credential: JSON + connectionString property. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -20540,7 +20510,7 @@ class Db2LinkedService(LinkedService): # pylint: disable=too-many-instance-attr "password": {"key": "typeProperties.password", "type": "SecretBase"}, "package_collection": {"key": "typeProperties.packageCollection", "type": "object"}, "certificate_common_name": {"key": "typeProperties.certificateCommonName", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -20559,7 +20529,7 @@ def __init__( password: Optional["_models.SecretBase"] = None, package_collection: Optional[JSON] = None, certificate_common_name: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -20601,8 +20571,8 @@ def __init__( :paramtype certificate_common_name: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. It is mutually exclusive with - connectionString property. Type: string (or Expression with resultType string). - :paramtype encrypted_credential: JSON + connectionString property. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -21949,9 +21919,8 @@ class DrillLinkedService(LinkedService): :ivar pwd: The Azure key vault secret reference of password in connection string. :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -21967,7 +21936,7 @@ class DrillLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "pwd": {"key": "typeProperties.pwd", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -21980,7 +21949,7 @@ def __init__( annotations: Optional[List[JSON]] = None, connection_string: Optional[JSON] = None, pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -22001,9 +21970,8 @@ def __init__( :keyword pwd: The Azure key vault secret reference of password in connection string. :paramtype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -22350,9 +22318,8 @@ class DynamicsAXLinkedService(LinkedService): # pylint: disable=too-many-instan Expression with resultType string). Required. :vartype aad_resource_id: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -22376,7 +22343,7 @@ class DynamicsAXLinkedService(LinkedService): # pylint: disable=too-many-instan "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, "tenant": {"key": "typeProperties.tenant", "type": "object"}, "aad_resource_id": {"key": "typeProperties.aadResourceId", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -22392,7 +22359,7 @@ def __init__( description: Optional[str] = None, parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -22425,9 +22392,8 @@ def __init__( (or Expression with resultType string). Required. :paramtype aad_resource_id: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -22830,9 +22796,8 @@ class DynamicsCrmLinkedService(LinkedService): # pylint: disable=too-many-insta be AzureKeyVaultSecretReference. :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -22859,7 +22824,7 @@ class DynamicsCrmLinkedService(LinkedService): # pylint: disable=too-many-insta "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, "service_principal_credential": {"key": "typeProperties.servicePrincipalCredential", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -22881,7 +22846,7 @@ def __init__( service_principal_id: Optional[JSON] = None, service_principal_credential_type: Optional[JSON] = None, service_principal_credential: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -22939,9 +22904,8 @@ def __init__( be AzureKeyVaultSecretReference. :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -23344,9 +23308,8 @@ class DynamicsLinkedService(LinkedService): # pylint: disable=too-many-instance be AzureKeyVaultSecretReference. :vartype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar credential: The credential reference containing authentication information. :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference """ @@ -23375,7 +23338,7 @@ class DynamicsLinkedService(LinkedService): # pylint: disable=too-many-instance "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, "service_principal_credential_type": {"key": "typeProperties.servicePrincipalCredentialType", "type": "object"}, "service_principal_credential": {"key": "typeProperties.servicePrincipalCredential", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, } @@ -23398,7 +23361,7 @@ def __init__( service_principal_id: Optional[JSON] = None, service_principal_credential_type: Optional[JSON] = None, service_principal_credential: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, credential: Optional["_models.CredentialReference"] = None, **kwargs: Any ) -> None: @@ -23456,9 +23419,8 @@ def __init__( be AzureKeyVaultSecretReference. :paramtype service_principal_credential: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword credential: The credential reference containing authentication information. :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference """ @@ -23736,9 +23698,8 @@ class EloquaLinkedService(LinkedService): # pylint: disable=too-many-instance-a connecting over SSL. The default value is true. :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -23760,7 +23721,7 @@ class EloquaLinkedService(LinkedService): # pylint: disable=too-many-instance-a "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -23777,7 +23738,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -23810,9 +23771,8 @@ def __init__( connecting over SSL. The default value is true. :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -26149,9 +26109,8 @@ class FileServerLinkedService(LinkedService): :ivar password: Password to logon the server. :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -26169,7 +26128,7 @@ class FileServerLinkedService(LinkedService): "host": {"key": "typeProperties.host", "type": "object"}, "user_id": {"key": "typeProperties.userId", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -26183,7 +26142,7 @@ def __init__( annotations: Optional[List[JSON]] = None, user_id: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -26207,9 +26166,8 @@ def __init__( :keyword password: Password to logon the server. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -26309,8 +26267,9 @@ class FileServerReadSettings(StoreReadSettings): # pylint: disable=too-many-ins configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. - :vartype enable_partition_discovery: bool + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: JSON :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :vartype partition_root_path: JSON @@ -26341,7 +26300,7 @@ class FileServerReadSettings(StoreReadSettings): # pylint: disable=too-many-ins "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "bool"}, + "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, "partition_root_path": {"key": "partitionRootPath", "type": "object"}, "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, @@ -26359,7 +26318,7 @@ def __init__( wildcard_folder_path: Optional[JSON] = None, wildcard_file_name: Optional[JSON] = None, file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[bool] = None, + enable_partition_discovery: Optional[JSON] = None, partition_root_path: Optional[JSON] = None, delete_files_after_completion: Optional[JSON] = None, modified_datetime_start: Optional[JSON] = None, @@ -26390,8 +26349,9 @@ def __init__( configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. - :paramtype enable_partition_discovery: bool + :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :paramtype enable_partition_discovery: JSON :keyword partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :paramtype partition_root_path: JSON @@ -27131,8 +27091,9 @@ class FtpReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-a :ivar wildcard_file_name: Ftp wildcardFileName. Type: string (or Expression with resultType string). :vartype wildcard_file_name: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. - :vartype enable_partition_discovery: bool + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: JSON :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :vartype partition_root_path: JSON @@ -27143,8 +27104,9 @@ class FtpReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-a configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :vartype file_list_path: JSON - :ivar use_binary_transfer: Specify whether to use binary transfer mode for FTP stores. - :vartype use_binary_transfer: bool + :ivar use_binary_transfer: Specify whether to use binary transfer mode for FTP stores. Type: + boolean (or Expression with resultType boolean). + :vartype use_binary_transfer: JSON :ivar disable_chunking: If true, disable parallel reading within each file. Default is false. Type: boolean (or Expression with resultType boolean). :vartype disable_chunking: JSON @@ -27162,11 +27124,11 @@ class FtpReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-a "recursive": {"key": "recursive", "type": "object"}, "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "bool"}, + "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, "partition_root_path": {"key": "partitionRootPath", "type": "object"}, "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, "file_list_path": {"key": "fileListPath", "type": "object"}, - "use_binary_transfer": {"key": "useBinaryTransfer", "type": "bool"}, + "use_binary_transfer": {"key": "useBinaryTransfer", "type": "object"}, "disable_chunking": {"key": "disableChunking", "type": "object"}, } @@ -27179,11 +27141,11 @@ def __init__( recursive: Optional[JSON] = None, wildcard_folder_path: Optional[JSON] = None, wildcard_file_name: Optional[JSON] = None, - enable_partition_discovery: Optional[bool] = None, + enable_partition_discovery: Optional[JSON] = None, partition_root_path: Optional[JSON] = None, delete_files_after_completion: Optional[JSON] = None, file_list_path: Optional[JSON] = None, - use_binary_transfer: Optional[bool] = None, + use_binary_transfer: Optional[JSON] = None, disable_chunking: Optional[JSON] = None, **kwargs: Any ) -> None: @@ -27206,8 +27168,9 @@ def __init__( :keyword wildcard_file_name: Ftp wildcardFileName. Type: string (or Expression with resultType string). :paramtype wildcard_file_name: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. - :paramtype enable_partition_discovery: bool + :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :paramtype enable_partition_discovery: JSON :keyword partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :paramtype partition_root_path: JSON @@ -27218,8 +27181,9 @@ def __init__( configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :paramtype file_list_path: JSON - :keyword use_binary_transfer: Specify whether to use binary transfer mode for FTP stores. - :paramtype use_binary_transfer: bool + :keyword use_binary_transfer: Specify whether to use binary transfer mode for FTP stores. Type: + boolean (or Expression with resultType boolean). + :paramtype use_binary_transfer: JSON :keyword disable_chunking: If true, disable parallel reading within each file. Default is false. Type: boolean (or Expression with resultType boolean). :paramtype disable_chunking: JSON @@ -27275,9 +27239,8 @@ class FtpServerLinkedService(LinkedService): # pylint: disable=too-many-instanc :ivar password: Password to logon the FTP server. :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar enable_ssl: If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). :vartype enable_ssl: JSON @@ -27304,7 +27267,7 @@ class FtpServerLinkedService(LinkedService): # pylint: disable=too-many-instanc "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, "user_name": {"key": "typeProperties.userName", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "enable_ssl": {"key": "typeProperties.enableSsl", "type": "object"}, "enable_server_certificate_validation": { "key": "typeProperties.enableServerCertificateValidation", @@ -27325,7 +27288,7 @@ def __init__( authentication_type: Optional[Union[str, "_models.FtpAuthenticationType"]] = None, user_name: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, enable_ssl: Optional[JSON] = None, enable_server_certificate_validation: Optional[JSON] = None, **kwargs: Any @@ -27357,9 +27320,8 @@ def __init__( :keyword password: Password to logon the FTP server. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword enable_ssl: If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType boolean). :paramtype enable_ssl: JSON @@ -27838,7 +27800,7 @@ class GoogleAdWordsLinkedService(LinkedService): # pylint: disable=too-many-ins with any other properties in the linked service. Type: object. :vartype connection_properties: JSON :ivar client_customer_id: The Client customer ID of the AdWords account that you want to fetch - report data for. + report data for. Type: string (or Expression with resultType string). :vartype client_customer_id: JSON :ivar developer_token: The developer token associated with the manager account that you use to grant access to the AdWords API. @@ -27858,22 +27820,24 @@ class GoogleAdWordsLinkedService(LinkedService): # pylint: disable=too-many-ins token. :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase :ivar email: The service account email ID that is used for ServiceAuthentication and can only - be used on self-hosted IR. + be used on self-hosted IR. Type: string (or Expression with resultType string). :vartype email: JSON :ivar key_file_path: The full path to the .p12 key file that is used to authenticate the - service account email address and can only be used on self-hosted IR. + service account email address and can only be used on self-hosted IR. Type: string (or + Expression with resultType string). :vartype key_file_path: JSON :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on - self-hosted IR. The default value is the cacerts.pem file installed with the IR. + self-hosted IR. The default value is the cacerts.pem file installed with the IR. Type: string + (or Expression with resultType string). :vartype trusted_cert_path: JSON :ivar use_system_trust_store: Specifies whether to use a CA certificate from the system trust - store or from a specified PEM file. The default value is false. + store or from a specified PEM file. The default value is false. Type: boolean (or Expression + with resultType boolean). :vartype use_system_trust_store: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -27898,7 +27862,7 @@ class GoogleAdWordsLinkedService(LinkedService): # pylint: disable=too-many-ins "key_file_path": {"key": "typeProperties.keyFilePath", "type": "object"}, "trusted_cert_path": {"key": "typeProperties.trustedCertPath", "type": "object"}, "use_system_trust_store": {"key": "typeProperties.useSystemTrustStore", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -27920,7 +27884,7 @@ def __init__( key_file_path: Optional[JSON] = None, trusted_cert_path: Optional[JSON] = None, use_system_trust_store: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -27939,7 +27903,7 @@ def __init__( exclusive with any other properties in the linked service. Type: object. :paramtype connection_properties: JSON :keyword client_customer_id: The Client customer ID of the AdWords account that you want to - fetch report data for. + fetch report data for. Type: string (or Expression with resultType string). :paramtype client_customer_id: JSON :keyword developer_token: The developer token associated with the manager account that you use to grant access to the AdWords API. @@ -27959,22 +27923,24 @@ def __init__( token. :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase :keyword email: The service account email ID that is used for ServiceAuthentication and can - only be used on self-hosted IR. + only be used on self-hosted IR. Type: string (or Expression with resultType string). :paramtype email: JSON :keyword key_file_path: The full path to the .p12 key file that is used to authenticate the - service account email address and can only be used on self-hosted IR. + service account email address and can only be used on self-hosted IR. Type: string (or + Expression with resultType string). :paramtype key_file_path: JSON :keyword trusted_cert_path: The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL - on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + on self-hosted IR. The default value is the cacerts.pem file installed with the IR. Type: + string (or Expression with resultType string). :paramtype trusted_cert_path: JSON :keyword use_system_trust_store: Specifies whether to use a CA certificate from the system - trust store or from a specified PEM file. The default value is false. + trust store or from a specified PEM file. The default value is false. Type: boolean (or + Expression with resultType boolean). :paramtype use_system_trust_store: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -28221,13 +28187,15 @@ class GoogleBigQueryLinkedService(LinkedService): # pylint: disable=too-many-in :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] :ivar annotations: List of tags that can be used for describing the linked service. :vartype annotations: list[JSON] - :ivar project: The default BigQuery project to query against. Required. + :ivar project: The default BigQuery project to query against. Type: string (or Expression with + resultType string). Required. :vartype project: JSON - :ivar additional_projects: A comma-separated list of public BigQuery projects to access. + :ivar additional_projects: A comma-separated list of public BigQuery projects to access. Type: + string (or Expression with resultType string). :vartype additional_projects: JSON :ivar request_google_drive_scope: Whether to request access to Google Drive. Allowing Google Drive access enables support for federated tables that combine BigQuery data with data from - Google Drive. The default value is false. + Google Drive. The default value is false. Type: string (or Expression with resultType string). :vartype request_google_drive_scope: JSON :ivar authentication_type: The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. Required. Known values are: @@ -28244,22 +28212,24 @@ class GoogleBigQueryLinkedService(LinkedService): # pylint: disable=too-many-in token. :vartype client_secret: ~azure.mgmt.datafactory.models.SecretBase :ivar email: The service account email ID that is used for ServiceAuthentication and can only - be used on self-hosted IR. + be used on self-hosted IR. Type: string (or Expression with resultType string). :vartype email: JSON :ivar key_file_path: The full path to the .p12 key file that is used to authenticate the - service account email address and can only be used on self-hosted IR. + service account email address and can only be used on self-hosted IR. Type: string (or + Expression with resultType string). :vartype key_file_path: JSON :ivar trusted_cert_path: The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL on - self-hosted IR. The default value is the cacerts.pem file installed with the IR. + self-hosted IR. The default value is the cacerts.pem file installed with the IR. Type: string + (or Expression with resultType string). :vartype trusted_cert_path: JSON :ivar use_system_trust_store: Specifies whether to use a CA certificate from the system trust - store or from a specified PEM file. The default value is false. + store or from a specified PEM file. The default value is false.Type: boolean (or Expression + with resultType boolean). :vartype use_system_trust_store: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -28286,7 +28256,7 @@ class GoogleBigQueryLinkedService(LinkedService): # pylint: disable=too-many-in "key_file_path": {"key": "typeProperties.keyFilePath", "type": "object"}, "trusted_cert_path": {"key": "typeProperties.trustedCertPath", "type": "object"}, "use_system_trust_store": {"key": "typeProperties.useSystemTrustStore", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -28308,7 +28278,7 @@ def __init__( key_file_path: Optional[JSON] = None, trusted_cert_path: Optional[JSON] = None, use_system_trust_store: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -28323,13 +28293,15 @@ def __init__( :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] :keyword annotations: List of tags that can be used for describing the linked service. :paramtype annotations: list[JSON] - :keyword project: The default BigQuery project to query against. Required. + :keyword project: The default BigQuery project to query against. Type: string (or Expression + with resultType string). Required. :paramtype project: JSON :keyword additional_projects: A comma-separated list of public BigQuery projects to access. + Type: string (or Expression with resultType string). :paramtype additional_projects: JSON :keyword request_google_drive_scope: Whether to request access to Google Drive. Allowing Google Drive access enables support for federated tables that combine BigQuery data with data from - Google Drive. The default value is false. + Google Drive. The default value is false. Type: string (or Expression with resultType string). :paramtype request_google_drive_scope: JSON :keyword authentication_type: The OAuth 2.0 authentication mechanism used for authentication. ServiceAuthentication can only be used on self-hosted IR. Required. Known values are: @@ -28346,22 +28318,24 @@ def __init__( token. :paramtype client_secret: ~azure.mgmt.datafactory.models.SecretBase :keyword email: The service account email ID that is used for ServiceAuthentication and can - only be used on self-hosted IR. + only be used on self-hosted IR. Type: string (or Expression with resultType string). :paramtype email: JSON :keyword key_file_path: The full path to the .p12 key file that is used to authenticate the - service account email address and can only be used on self-hosted IR. + service account email address and can only be used on self-hosted IR. Type: string (or + Expression with resultType string). :paramtype key_file_path: JSON :keyword trusted_cert_path: The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This property can only be set when using SSL - on self-hosted IR. The default value is the cacerts.pem file installed with the IR. + on self-hosted IR. The default value is the cacerts.pem file installed with the IR. Type: + string (or Expression with resultType string). :paramtype trusted_cert_path: JSON :keyword use_system_trust_store: Specifies whether to use a CA certificate from the system - trust store or from a specified PEM file. The default value is false. + trust store or from a specified PEM file. The default value is false.Type: boolean (or + Expression with resultType boolean). :paramtype use_system_trust_store: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -28640,9 +28614,8 @@ class GoogleCloudStorageLinkedService(LinkedService): string). :vartype service_url: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -28659,7 +28632,7 @@ class GoogleCloudStorageLinkedService(LinkedService): "access_key_id": {"key": "typeProperties.accessKeyId", "type": "object"}, "secret_access_key": {"key": "typeProperties.secretAccessKey", "type": "SecretBase"}, "service_url": {"key": "typeProperties.serviceUrl", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -28673,7 +28646,7 @@ def __init__( access_key_id: Optional[JSON] = None, secret_access_key: Optional["_models.SecretBase"] = None, service_url: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -28700,9 +28673,8 @@ def __init__( string). :paramtype service_url: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -28823,8 +28795,9 @@ class GoogleCloudStorageReadSettings(StoreReadSettings): # pylint: disable=too- configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. - :vartype enable_partition_discovery: bool + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: JSON :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :vartype partition_root_path: JSON @@ -28853,7 +28826,7 @@ class GoogleCloudStorageReadSettings(StoreReadSettings): # pylint: disable=too- "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, "prefix": {"key": "prefix", "type": "object"}, "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "bool"}, + "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, "partition_root_path": {"key": "partitionRootPath", "type": "object"}, "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, @@ -28871,7 +28844,7 @@ def __init__( wildcard_file_name: Optional[JSON] = None, prefix: Optional[JSON] = None, file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[bool] = None, + enable_partition_discovery: Optional[JSON] = None, partition_root_path: Optional[JSON] = None, delete_files_after_completion: Optional[JSON] = None, modified_datetime_start: Optional[JSON] = None, @@ -28904,8 +28877,9 @@ def __init__( configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. - :paramtype enable_partition_discovery: bool + :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :paramtype enable_partition_discovery: JSON :keyword partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :paramtype partition_root_path: JSON @@ -28959,9 +28933,8 @@ class GoogleSheetsLinkedService(LinkedService): :ivar api_token: The api token for the GoogleSheets source. Required. :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -28977,7 +28950,7 @@ class GoogleSheetsLinkedService(LinkedService): "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, "annotations": {"key": "annotations", "type": "[object]"}, "api_token": {"key": "typeProperties.apiToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -28989,7 +28962,7 @@ def __init__( description: Optional[str] = None, parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -29007,9 +28980,8 @@ def __init__( :keyword api_token: The api token for the GoogleSheets source. Required. :paramtype api_token: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -29048,9 +29020,8 @@ class GreenplumLinkedService(LinkedService): :ivar pwd: The Azure key vault secret reference of password in connection string. :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -29066,7 +29037,7 @@ class GreenplumLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "pwd": {"key": "typeProperties.pwd", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -29079,7 +29050,7 @@ def __init__( annotations: Optional[List[JSON]] = None, connection_string: Optional[JSON] = None, pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -29100,9 +29071,8 @@ def __init__( :keyword pwd: The Azure key vault secret reference of password in connection string. :paramtype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -29388,9 +29358,8 @@ class HBaseLinkedService(LinkedService): # pylint: disable=too-many-instance-at the server. The default value is false. :vartype allow_self_signed_server_cert: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -29416,7 +29385,7 @@ class HBaseLinkedService(LinkedService): # pylint: disable=too-many-instance-at "trusted_cert_path": {"key": "typeProperties.trustedCertPath", "type": "object"}, "allow_host_name_cn_mismatch": {"key": "typeProperties.allowHostNameCNMismatch", "type": "object"}, "allow_self_signed_server_cert": {"key": "typeProperties.allowSelfSignedServerCert", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -29437,7 +29406,7 @@ def __init__( trusted_cert_path: Optional[JSON] = None, allow_host_name_cn_mismatch: Optional[JSON] = None, allow_self_signed_server_cert: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -29482,9 +29451,8 @@ def __init__( from the server. The default value is false. :paramtype allow_self_signed_server_cert: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -29737,9 +29705,8 @@ class HdfsLinkedService(LinkedService): # pylint: disable=too-many-instance-att are: Anonymous and Windows. Type: string (or Expression with resultType string). :vartype authentication_type: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar user_name: User name for Windows authentication. Type: string (or Expression with resultType string). :vartype user_name: JSON @@ -29761,7 +29728,7 @@ class HdfsLinkedService(LinkedService): # pylint: disable=too-many-instance-att "annotations": {"key": "annotations", "type": "[object]"}, "url": {"key": "typeProperties.url", "type": "object"}, "authentication_type": {"key": "typeProperties.authenticationType", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "user_name": {"key": "typeProperties.userName", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, } @@ -29776,7 +29743,7 @@ def __init__( parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, authentication_type: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, user_name: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, **kwargs: Any @@ -29800,9 +29767,8 @@ def __init__( values are: Anonymous and Windows. Type: string (or Expression with resultType string). :paramtype authentication_type: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword user_name: User name for Windows authentication. Type: string (or Expression with resultType string). :paramtype user_name: JSON @@ -29908,8 +29874,9 @@ class HdfsReadSettings(StoreReadSettings): # pylint: disable=too-many-instance- configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. - :vartype enable_partition_discovery: bool + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: JSON :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :vartype partition_root_path: JSON @@ -29939,7 +29906,7 @@ class HdfsReadSettings(StoreReadSettings): # pylint: disable=too-many-instance- "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "bool"}, + "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, "partition_root_path": {"key": "partitionRootPath", "type": "object"}, "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, "modified_datetime_end": {"key": "modifiedDatetimeEnd", "type": "object"}, @@ -29957,7 +29924,7 @@ def __init__( wildcard_folder_path: Optional[JSON] = None, wildcard_file_name: Optional[JSON] = None, file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[bool] = None, + enable_partition_discovery: Optional[JSON] = None, partition_root_path: Optional[JSON] = None, modified_datetime_start: Optional[JSON] = None, modified_datetime_end: Optional[JSON] = None, @@ -29988,8 +29955,9 @@ def __init__( configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. - :paramtype enable_partition_discovery: bool + :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :paramtype enable_partition_discovery: JSON :keyword partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :paramtype partition_root_path: JSON @@ -30150,7 +30118,7 @@ class HDInsightHiveActivity(ExecutionActivity): # pylint: disable=too-many-inst :ivar defines: Allows user to specify defines for Hive job request. :vartype defines: dict[str, JSON] :ivar variables: User specified arguments under hivevar namespace. - :vartype variables: list[JSON] + :vartype variables: dict[str, JSON] :ivar query_timeout: Query timeout value (in minutes). Effective when the HDInsight cluster is with ESP (Enterprise Security Package). :vartype query_timeout: int @@ -30176,7 +30144,7 @@ class HDInsightHiveActivity(ExecutionActivity): # pylint: disable=too-many-inst "script_path": {"key": "typeProperties.scriptPath", "type": "object"}, "script_linked_service": {"key": "typeProperties.scriptLinkedService", "type": "LinkedServiceReference"}, "defines": {"key": "typeProperties.defines", "type": "{object}"}, - "variables": {"key": "typeProperties.variables", "type": "[object]"}, + "variables": {"key": "typeProperties.variables", "type": "{object}"}, "query_timeout": {"key": "typeProperties.queryTimeout", "type": "int"}, } @@ -30196,7 +30164,7 @@ def __init__( script_path: Optional[JSON] = None, script_linked_service: Optional["_models.LinkedServiceReference"] = None, defines: Optional[Dict[str, JSON]] = None, - variables: Optional[List[JSON]] = None, + variables: Optional[Dict[str, JSON]] = None, query_timeout: Optional[int] = None, **kwargs: Any ) -> None: @@ -30230,7 +30198,7 @@ def __init__( :keyword defines: Allows user to specify defines for Hive job request. :paramtype defines: dict[str, JSON] :keyword variables: User specified arguments under hivevar namespace. - :paramtype variables: list[JSON] + :paramtype variables: dict[str, JSON] :keyword query_timeout: Query timeout value (in minutes). Effective when the HDInsight cluster is with ESP (Enterprise Security Package). :paramtype query_timeout: int @@ -30288,9 +30256,8 @@ class HDInsightLinkedService(LinkedService): # pylint: disable=too-many-instanc the HCatalog database. :vartype hcatalog_linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar is_esp_enabled: Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: Boolean. :vartype is_esp_enabled: JSON @@ -30319,7 +30286,7 @@ class HDInsightLinkedService(LinkedService): # pylint: disable=too-many-instanc "key": "typeProperties.hcatalogLinkedServiceName", "type": "LinkedServiceReference", }, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "is_esp_enabled": {"key": "typeProperties.isEspEnabled", "type": "object"}, "file_system": {"key": "typeProperties.fileSystem", "type": "object"}, } @@ -30337,7 +30304,7 @@ def __init__( password: Optional["_models.SecretBase"] = None, linked_service_name: Optional["_models.LinkedServiceReference"] = None, hcatalog_linked_service_name: Optional["_models.LinkedServiceReference"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, is_esp_enabled: Optional[JSON] = None, file_system: Optional[JSON] = None, **kwargs: Any @@ -30368,9 +30335,8 @@ def __init__( to the HCatalog database. :paramtype hcatalog_linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword is_esp_enabled: Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: Boolean. :paramtype is_esp_enabled: JSON @@ -30636,9 +30602,8 @@ class HDInsightOnDemandLinkedService(LinkedService): # pylint: disable=too-many HDInsight cluster. :vartype yarn_configuration: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar head_node_size: Specifies the size of the head node for the HDInsight cluster. :vartype head_node_size: JSON :ivar data_node_size: Specifies the size of the data node for the HDInsight cluster. @@ -30709,7 +30674,7 @@ class HDInsightOnDemandLinkedService(LinkedService): # pylint: disable=too-many "oozie_configuration": {"key": "typeProperties.oozieConfiguration", "type": "object"}, "storm_configuration": {"key": "typeProperties.stormConfiguration", "type": "object"}, "yarn_configuration": {"key": "typeProperties.yarnConfiguration", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "head_node_size": {"key": "typeProperties.headNodeSize", "type": "object"}, "data_node_size": {"key": "typeProperties.dataNodeSize", "type": "object"}, "zookeeper_node_size": {"key": "typeProperties.zookeeperNodeSize", "type": "object"}, @@ -30753,7 +30718,7 @@ def __init__( # pylint: disable=too-many-locals oozie_configuration: Optional[JSON] = None, storm_configuration: Optional[JSON] = None, yarn_configuration: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, head_node_size: Optional[JSON] = None, data_node_size: Optional[JSON] = None, zookeeper_node_size: Optional[JSON] = None, @@ -30854,9 +30819,8 @@ def __init__( # pylint: disable=too-many-locals the HDInsight cluster. :paramtype yarn_configuration: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword head_node_size: Specifies the size of the head node for the HDInsight cluster. :paramtype head_node_size: JSON :keyword data_node_size: Specifies the size of the data node for the HDInsight cluster. @@ -31442,9 +31406,8 @@ class HiveLinkedService(LinkedService): # pylint: disable=too-many-instance-att the server. The default value is false. :vartype allow_self_signed_server_cert: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -31476,7 +31439,7 @@ class HiveLinkedService(LinkedService): # pylint: disable=too-many-instance-att "use_system_trust_store": {"key": "typeProperties.useSystemTrustStore", "type": "object"}, "allow_host_name_cn_mismatch": {"key": "typeProperties.allowHostNameCNMismatch", "type": "object"}, "allow_self_signed_server_cert": {"key": "typeProperties.allowSelfSignedServerCert", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -31503,7 +31466,7 @@ def __init__( use_system_trust_store: Optional[JSON] = None, allow_host_name_cn_mismatch: Optional[JSON] = None, allow_self_signed_server_cert: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -31566,9 +31529,8 @@ def __init__( from the server. The default value is false. :paramtype allow_self_signed_server_cert: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -32016,9 +31978,8 @@ class HttpLinkedService(LinkedService): # pylint: disable=too-many-instance-att with resultType string). :vartype cert_thumbprint: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar enable_server_certificate_validation: If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType boolean). :vartype enable_server_certificate_validation: JSON @@ -32043,7 +32004,7 @@ class HttpLinkedService(LinkedService): # pylint: disable=too-many-instance-att "auth_headers": {"key": "typeProperties.authHeaders", "type": "object"}, "embedded_cert_data": {"key": "typeProperties.embeddedCertData", "type": "object"}, "cert_thumbprint": {"key": "typeProperties.certThumbprint", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "enable_server_certificate_validation": { "key": "typeProperties.enableServerCertificateValidation", "type": "object", @@ -32065,7 +32026,7 @@ def __init__( auth_headers: Optional[JSON] = None, embedded_cert_data: Optional[JSON] = None, cert_thumbprint: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, enable_server_certificate_validation: Optional[JSON] = None, **kwargs: Any ) -> None: @@ -32107,9 +32068,8 @@ def __init__( with resultType string). :paramtype cert_thumbprint: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword enable_server_certificate_validation: If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType boolean). :paramtype enable_server_certificate_validation: JSON @@ -32135,7 +32095,7 @@ def __init__( class HttpReadSettings(StoreReadSettings): - """Sftp read settings. + """Http read settings. All required parameters must be populated in order to send to Azure. @@ -32160,13 +32120,11 @@ class HttpReadSettings(StoreReadSettings): string (or Expression with resultType string). :vartype additional_headers: JSON :ivar request_timeout: Specifies the timeout for a HTTP client to get HTTP response from HTTP - server. + server. Type: string (or Expression with resultType string). :vartype request_timeout: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. - :vartype enable_partition_discovery: bool - :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: - string (or Expression with resultType string). - :vartype partition_root_path: JSON + :ivar additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :vartype additional_columns: JSON """ _validation = { @@ -32182,8 +32140,7 @@ class HttpReadSettings(StoreReadSettings): "request_body": {"key": "requestBody", "type": "object"}, "additional_headers": {"key": "additionalHeaders", "type": "object"}, "request_timeout": {"key": "requestTimeout", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "bool"}, - "partition_root_path": {"key": "partitionRootPath", "type": "object"}, + "additional_columns": {"key": "additionalColumns", "type": "object"}, } def __init__( @@ -32196,8 +32153,7 @@ def __init__( request_body: Optional[JSON] = None, additional_headers: Optional[JSON] = None, request_timeout: Optional[JSON] = None, - enable_partition_discovery: Optional[bool] = None, - partition_root_path: Optional[JSON] = None, + additional_columns: Optional[JSON] = None, **kwargs: Any ) -> None: """ @@ -32220,13 +32176,11 @@ def __init__( Type: string (or Expression with resultType string). :paramtype additional_headers: JSON :keyword request_timeout: Specifies the timeout for a HTTP client to get HTTP response from - HTTP server. + HTTP server. Type: string (or Expression with resultType string). :paramtype request_timeout: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. - :paramtype enable_partition_discovery: bool - :keyword partition_root_path: Specify the root path where partition discovery starts from. - Type: string (or Expression with resultType string). - :paramtype partition_root_path: JSON + :keyword additional_columns: Specifies the additional columns to be added to source data. Type: + array of objects(AdditionalColumns) (or Expression with resultType array of objects). + :paramtype additional_columns: JSON """ super().__init__( additional_properties=additional_properties, @@ -32239,8 +32193,7 @@ def __init__( self.request_body = request_body self.additional_headers = additional_headers self.request_timeout = request_timeout - self.enable_partition_discovery = enable_partition_discovery - self.partition_root_path = partition_root_path + self.additional_columns = additional_columns class HttpServerLocation(DatasetLocation): @@ -32433,9 +32386,8 @@ class HubspotLinkedService(LinkedService): # pylint: disable=too-many-instance- connecting over SSL. The default value is true. :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -32457,7 +32409,7 @@ class HubspotLinkedService(LinkedService): # pylint: disable=too-many-instance- "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -32475,7 +32427,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -32511,9 +32463,8 @@ def __init__( connecting over SSL. The default value is true. :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -32886,9 +32837,8 @@ class ImpalaLinkedService(LinkedService): # pylint: disable=too-many-instance-a the server. The default value is false. :vartype allow_self_signed_server_cert: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -32914,7 +32864,7 @@ class ImpalaLinkedService(LinkedService): # pylint: disable=too-many-instance-a "use_system_trust_store": {"key": "typeProperties.useSystemTrustStore", "type": "object"}, "allow_host_name_cn_mismatch": {"key": "typeProperties.allowHostNameCNMismatch", "type": "object"}, "allow_self_signed_server_cert": {"key": "typeProperties.allowSelfSignedServerCert", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -32935,7 +32885,7 @@ def __init__( use_system_trust_store: Optional[JSON] = None, allow_host_name_cn_mismatch: Optional[JSON] = None, allow_self_signed_server_cert: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -32981,9 +32931,8 @@ def __init__( from the server. The default value is false. :paramtype allow_self_signed_server_cert: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -33249,8 +33198,8 @@ class InformixLinkedService(LinkedService): # pylint: disable=too-many-instance :ivar annotations: List of tags that can be used for describing the linked service. :vartype annotations: list[JSON] :ivar connection_string: The non-access credential portion of the connection string as well as - an optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - Required. + an optional encrypted credential. Type: string, or SecureString, or + AzureKeyVaultSecretReference, or Expression with resultType string. Required. :vartype connection_string: JSON :ivar authentication_type: Type of authentication used to connect to the Informix as ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType @@ -33265,9 +33214,8 @@ class InformixLinkedService(LinkedService): # pylint: disable=too-many-instance :ivar password: Password for Basic authentication. :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -33287,7 +33235,7 @@ class InformixLinkedService(LinkedService): # pylint: disable=too-many-instance "credential": {"key": "typeProperties.credential", "type": "SecretBase"}, "user_name": {"key": "typeProperties.userName", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -33303,7 +33251,7 @@ def __init__( credential: Optional["_models.SecretBase"] = None, user_name: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -33319,8 +33267,8 @@ def __init__( :keyword annotations: List of tags that can be used for describing the linked service. :paramtype annotations: list[JSON] :keyword connection_string: The non-access credential portion of the connection string as well - as an optional encrypted credential. Type: string, SecureString or - AzureKeyVaultSecretReference. Required. + as an optional encrypted credential. Type: string, or SecureString, or + AzureKeyVaultSecretReference, or Expression with resultType string. Required. :paramtype connection_string: JSON :keyword authentication_type: Type of authentication used to connect to the Informix as ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with @@ -33335,9 +33283,8 @@ def __init__( :keyword password: Password for Basic authentication. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -33977,6 +33924,9 @@ class IntegrationRuntimeDataFlowProperties(_serialization.Model): :ivar cleanup: Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if this is set as false. Default is true. :vartype cleanup: bool + :ivar custom_properties: Custom properties are used to tune the data flow runtime performance. + :vartype custom_properties: + list[~azure.mgmt.datafactory.models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem] """ _validation = { @@ -33989,6 +33939,10 @@ class IntegrationRuntimeDataFlowProperties(_serialization.Model): "core_count": {"key": "coreCount", "type": "int"}, "time_to_live": {"key": "timeToLive", "type": "int"}, "cleanup": {"key": "cleanup", "type": "bool"}, + "custom_properties": { + "key": "customProperties", + "type": "[IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem]", + }, } def __init__( @@ -33999,6 +33953,7 @@ def __init__( core_count: Optional[int] = None, time_to_live: Optional[int] = None, cleanup: Optional[bool] = None, + custom_properties: Optional[List["_models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem"]] = None, **kwargs: Any ) -> None: """ @@ -34017,6 +33972,10 @@ def __init__( :keyword cleanup: Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if this is set as false. Default is true. :paramtype cleanup: bool + :keyword custom_properties: Custom properties are used to tune the data flow runtime + performance. + :paramtype custom_properties: + list[~azure.mgmt.datafactory.models.IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem] """ super().__init__(**kwargs) self.additional_properties = additional_properties @@ -34024,6 +33983,33 @@ def __init__( self.core_count = core_count self.time_to_live = time_to_live self.cleanup = cleanup + self.custom_properties = custom_properties + + +class IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem(_serialization.Model): + """IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem. + + :ivar name: Name of custom property. + :vartype name: str + :ivar value: Value of custom property. + :vartype value: str + """ + + _attribute_map = { + "name": {"key": "name", "type": "str"}, + "value": {"key": "value", "type": "str"}, + } + + def __init__(self, *, name: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: + """ + :keyword name: Name of custom property. + :paramtype name: str + :keyword value: Value of custom property. + :paramtype value: str + """ + super().__init__(**kwargs) + self.name = name + self.value = value class IntegrationRuntimeDataProxyProperties(_serialization.Model): @@ -34879,9 +34865,8 @@ class JiraLinkedService(LinkedService): # pylint: disable=too-many-instance-att connecting over SSL. The default value is true. :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -34904,7 +34889,7 @@ class JiraLinkedService(LinkedService): # pylint: disable=too-many-instance-att "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -34922,7 +34907,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -34959,9 +34944,8 @@ def __init__( connecting over SSL. The default value is true. :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -36332,9 +36316,8 @@ class MagentoLinkedService(LinkedService): # pylint: disable=too-many-instance- connecting over SSL. The default value is true. :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -36354,7 +36337,7 @@ class MagentoLinkedService(LinkedService): # pylint: disable=too-many-instance- "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -36370,7 +36353,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -36400,9 +36383,8 @@ def __init__( connecting over SSL. The default value is true. :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -37446,9 +37428,8 @@ class MariaDBLinkedService(LinkedService): :ivar pwd: The Azure key vault secret reference of password in connection string. :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -37464,7 +37445,7 @@ class MariaDBLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "pwd": {"key": "typeProperties.pwd", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -37477,7 +37458,7 @@ def __init__( annotations: Optional[List[JSON]] = None, connection_string: Optional[JSON] = None, pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -37498,9 +37479,8 @@ def __init__( :keyword pwd: The Azure key vault secret reference of password in connection string. :paramtype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -37755,9 +37735,8 @@ class MarketoLinkedService(LinkedService): # pylint: disable=too-many-instance- connecting over SSL. The default value is true. :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -37779,7 +37758,7 @@ class MarketoLinkedService(LinkedService): # pylint: disable=too-many-instance- "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -37796,7 +37775,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -37829,9 +37808,8 @@ def __init__( connecting over SSL. The default value is true. :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -38100,8 +38078,8 @@ class MicrosoftAccessLinkedService(LinkedService): # pylint: disable=too-many-i :ivar annotations: List of tags that can be used for describing the linked service. :vartype annotations: list[JSON] :ivar connection_string: The non-access credential portion of the connection string as well as - an optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - Required. + an optional encrypted credential. Type: string, or SecureString, or + AzureKeyVaultSecretReference, or Expression with resultType string. Required. :vartype connection_string: JSON :ivar authentication_type: Type of authentication used to connect to the Microsoft Access as ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with @@ -38116,9 +38094,8 @@ class MicrosoftAccessLinkedService(LinkedService): # pylint: disable=too-many-i :ivar password: Password for Basic authentication. :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -38138,7 +38115,7 @@ class MicrosoftAccessLinkedService(LinkedService): # pylint: disable=too-many-i "credential": {"key": "typeProperties.credential", "type": "SecretBase"}, "user_name": {"key": "typeProperties.userName", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -38154,7 +38131,7 @@ def __init__( credential: Optional["_models.SecretBase"] = None, user_name: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -38170,8 +38147,8 @@ def __init__( :keyword annotations: List of tags that can be used for describing the linked service. :paramtype annotations: list[JSON] :keyword connection_string: The non-access credential portion of the connection string as well - as an optional encrypted credential. Type: string, SecureString or - AzureKeyVaultSecretReference. Required. + as an optional encrypted credential. Type: string, or SecureString, or + AzureKeyVaultSecretReference, or Expression with resultType string. Required. :paramtype connection_string: JSON :keyword authentication_type: Type of authentication used to connect to the Microsoft Access as ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with @@ -38186,9 +38163,8 @@ def __init__( :keyword password: Password for Basic authentication. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -38634,6 +38610,9 @@ class MongoDbAtlasLinkedService(LinkedService): :ivar database: The name of the MongoDB Atlas database that you want to access. Type: string (or Expression with resultType string). Required. :vartype database: JSON + :ivar mongo_db_atlas_driver_version: The MongoDB Atlas Driver version that you want to choose. + Allowed value are 2.10.4 and 2.19.0. Type: string (or Expression with resultType string). + :vartype mongo_db_atlas_driver_version: JSON """ _validation = { @@ -38651,6 +38630,7 @@ class MongoDbAtlasLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "database": {"key": "typeProperties.database", "type": "object"}, + "mongo_db_atlas_driver_version": {"key": "typeProperties.mongoDbAtlasDriverVersion", "type": "object"}, } def __init__( @@ -38663,6 +38643,7 @@ def __init__( description: Optional[str] = None, parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, + mongo_db_atlas_driver_version: Optional[JSON] = None, **kwargs: Any ) -> None: """ @@ -38684,6 +38665,10 @@ def __init__( :keyword database: The name of the MongoDB Atlas database that you want to access. Type: string (or Expression with resultType string). Required. :paramtype database: JSON + :keyword mongo_db_atlas_driver_version: The MongoDB Atlas Driver version that you want to + choose. Allowed value are 2.10.4 and 2.19.0. Type: string (or Expression with resultType + string). + :paramtype mongo_db_atlas_driver_version: JSON """ super().__init__( additional_properties=additional_properties, @@ -38696,6 +38681,7 @@ def __init__( self.type: str = "MongoDbAtlas" self.connection_string = connection_string self.database = database + self.mongo_db_atlas_driver_version = mongo_db_atlas_driver_version class MongoDbAtlasSink(CopySink): @@ -39145,9 +39131,8 @@ class MongoDbLinkedService(LinkedService): # pylint: disable=too-many-instance- the server. The default value is false. Type: boolean (or Expression with resultType boolean). :vartype allow_self_signed_server_cert: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -39172,7 +39157,7 @@ class MongoDbLinkedService(LinkedService): # pylint: disable=too-many-instance- "port": {"key": "typeProperties.port", "type": "object"}, "enable_ssl": {"key": "typeProperties.enableSsl", "type": "object"}, "allow_self_signed_server_cert": {"key": "typeProperties.allowSelfSignedServerCert", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -39192,7 +39177,7 @@ def __init__( port: Optional[JSON] = None, enable_ssl: Optional[JSON] = None, allow_self_signed_server_cert: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -39236,9 +39221,8 @@ def __init__( boolean). :paramtype allow_self_signed_server_cert: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -39794,14 +39778,14 @@ class MySqlLinkedService(LinkedService): :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] :ivar annotations: List of tags that can be used for describing the linked service. :vartype annotations: list[JSON] - :ivar connection_string: The connection string. Required. + :ivar connection_string: The connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. Required. :vartype connection_string: JSON :ivar password: The Azure key vault secret reference of password in connection string. :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -39818,7 +39802,7 @@ class MySqlLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -39831,7 +39815,7 @@ def __init__( parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, password: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -39846,14 +39830,14 @@ def __init__( :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] :keyword annotations: List of tags that can be used for describing the linked service. :paramtype annotations: list[JSON] - :keyword connection_string: The connection string. Required. + :keyword connection_string: The connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. Required. :paramtype connection_string: JSON :keyword password: The Azure key vault secret reference of password in connection string. :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -40095,9 +40079,8 @@ class NetezzaLinkedService(LinkedService): :ivar pwd: The Azure key vault secret reference of password in connection string. :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -40113,7 +40096,7 @@ class NetezzaLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "pwd": {"key": "typeProperties.pwd", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -40126,7 +40109,7 @@ def __init__( annotations: Optional[List[JSON]] = None, connection_string: Optional[JSON] = None, pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -40147,9 +40130,8 @@ def __init__( :keyword pwd: The Azure key vault secret reference of password in connection string. :paramtype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -40549,9 +40531,8 @@ class ODataLinkedService(LinkedService): # pylint: disable=too-many-instance-at string (or Expression with resultType string). :vartype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -40585,7 +40566,7 @@ class ODataLinkedService(LinkedService): # pylint: disable=too-many-instance-at "key": "typeProperties.servicePrincipalEmbeddedCertPassword", "type": "SecretBase", }, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -40611,7 +40592,7 @@ def __init__( service_principal_key: Optional["_models.SecretBase"] = None, service_principal_embedded_cert: Optional["_models.SecretBase"] = None, service_principal_embedded_cert_password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -40670,9 +40651,8 @@ def __init__( string (or Expression with resultType string). :paramtype service_principal_embedded_cert_password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -40926,8 +40906,8 @@ class OdbcLinkedService(LinkedService): # pylint: disable=too-many-instance-att :ivar annotations: List of tags that can be used for describing the linked service. :vartype annotations: list[JSON] :ivar connection_string: The non-access credential portion of the connection string as well as - an optional encrypted credential. Type: string, SecureString or AzureKeyVaultSecretReference. - Required. + an optional encrypted credential. Type: string, or SecureString, or + AzureKeyVaultSecretReference, or Expression with resultType string. Required. :vartype connection_string: JSON :ivar authentication_type: Type of authentication used to connect to the ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). @@ -40941,9 +40921,8 @@ class OdbcLinkedService(LinkedService): # pylint: disable=too-many-instance-att :ivar password: Password for Basic authentication. :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -40963,7 +40942,7 @@ class OdbcLinkedService(LinkedService): # pylint: disable=too-many-instance-att "credential": {"key": "typeProperties.credential", "type": "SecretBase"}, "user_name": {"key": "typeProperties.userName", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -40979,7 +40958,7 @@ def __init__( credential: Optional["_models.SecretBase"] = None, user_name: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -40995,8 +40974,8 @@ def __init__( :keyword annotations: List of tags that can be used for describing the linked service. :paramtype annotations: list[JSON] :keyword connection_string: The non-access credential portion of the connection string as well - as an optional encrypted credential. Type: string, SecureString or - AzureKeyVaultSecretReference. Required. + as an optional encrypted credential. Type: string, or SecureString, or + AzureKeyVaultSecretReference, or Expression with resultType string. Required. :paramtype connection_string: JSON :keyword authentication_type: Type of authentication used to connect to the ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string). @@ -41010,9 +40989,8 @@ def __init__( :keyword password: Password for Basic authentication. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -41479,9 +41457,8 @@ class Office365LinkedService(LinkedService): # pylint: disable=too-many-instanc :ivar service_principal_key: Specify the application's key. Required. :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -41503,7 +41480,7 @@ class Office365LinkedService(LinkedService): # pylint: disable=too-many-instanc "service_principal_tenant_id": {"key": "typeProperties.servicePrincipalTenantId", "type": "object"}, "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -41518,7 +41495,7 @@ def __init__( description: Optional[str] = None, parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -41545,9 +41522,8 @@ def __init__( :keyword service_principal_key: Specify the application's key. Required. :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -42074,9 +42050,8 @@ class OracleCloudStorageLinkedService(LinkedService): string). :vartype service_url: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -42093,7 +42068,7 @@ class OracleCloudStorageLinkedService(LinkedService): "access_key_id": {"key": "typeProperties.accessKeyId", "type": "object"}, "secret_access_key": {"key": "typeProperties.secretAccessKey", "type": "SecretBase"}, "service_url": {"key": "typeProperties.serviceUrl", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -42107,7 +42082,7 @@ def __init__( access_key_id: Optional[JSON] = None, secret_access_key: Optional["_models.SecretBase"] = None, service_url: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -42134,9 +42109,8 @@ def __init__( string). :paramtype service_url: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -42257,8 +42231,9 @@ class OracleCloudStorageReadSettings(StoreReadSettings): # pylint: disable=too- configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :vartype file_list_path: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. - :vartype enable_partition_discovery: bool + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: JSON :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :vartype partition_root_path: JSON @@ -42287,7 +42262,7 @@ class OracleCloudStorageReadSettings(StoreReadSettings): # pylint: disable=too- "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, "prefix": {"key": "prefix", "type": "object"}, "file_list_path": {"key": "fileListPath", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "bool"}, + "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, "partition_root_path": {"key": "partitionRootPath", "type": "object"}, "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, "modified_datetime_start": {"key": "modifiedDatetimeStart", "type": "object"}, @@ -42305,7 +42280,7 @@ def __init__( wildcard_file_name: Optional[JSON] = None, prefix: Optional[JSON] = None, file_list_path: Optional[JSON] = None, - enable_partition_discovery: Optional[bool] = None, + enable_partition_discovery: Optional[JSON] = None, partition_root_path: Optional[JSON] = None, delete_files_after_completion: Optional[JSON] = None, modified_datetime_start: Optional[JSON] = None, @@ -42338,8 +42313,9 @@ def __init__( configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). :paramtype file_list_path: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. - :paramtype enable_partition_discovery: bool + :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :paramtype enable_partition_discovery: JSON :keyword partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :paramtype partition_root_path: JSON @@ -42396,9 +42372,8 @@ class OracleLinkedService(LinkedService): :ivar password: The Azure key vault secret reference of password in connection string. :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -42415,7 +42390,7 @@ class OracleLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -42428,7 +42403,7 @@ def __init__( parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, password: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -42449,9 +42424,8 @@ def __init__( :keyword password: The Azure key vault secret reference of password in connection string. :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -42560,9 +42534,8 @@ class OracleServiceCloudLinkedService(LinkedService): # pylint: disable=too-man boolean). :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -42585,7 +42558,7 @@ class OracleServiceCloudLinkedService(LinkedService): # pylint: disable=too-man "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -42602,7 +42575,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -42636,9 +42609,8 @@ def __init__( boolean). :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -44122,7 +44094,7 @@ class PaypalLinkedService(LinkedService): # pylint: disable=too-many-instance-a :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] :ivar annotations: List of tags that can be used for describing the linked service. :vartype annotations: list[JSON] - :ivar host: The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). Required. + :ivar host: The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). Required. :vartype host: JSON :ivar client_id: The client ID associated with your PayPal application. Required. :vartype client_id: JSON @@ -44139,9 +44111,8 @@ class PaypalLinkedService(LinkedService): # pylint: disable=too-many-instance-a connecting over SSL. The default value is true. :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -44163,7 +44134,7 @@ class PaypalLinkedService(LinkedService): # pylint: disable=too-many-instance-a "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -44180,7 +44151,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -44195,7 +44166,7 @@ def __init__( :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] :keyword annotations: List of tags that can be used for describing the linked service. :paramtype annotations: list[JSON] - :keyword host: The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). Required. + :keyword host: The URL of the PayPal instance. (i.e. api.sandbox.paypal.com). Required. :paramtype host: JSON :keyword client_id: The client ID associated with your PayPal application. Required. :paramtype client_id: JSON @@ -44212,9 +44183,8 @@ def __init__( connecting over SSL. The default value is true. :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -44491,9 +44461,8 @@ class PhoenixLinkedService(LinkedService): # pylint: disable=too-many-instance- the server. The default value is false. :vartype allow_self_signed_server_cert: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -44520,7 +44489,7 @@ class PhoenixLinkedService(LinkedService): # pylint: disable=too-many-instance- "use_system_trust_store": {"key": "typeProperties.useSystemTrustStore", "type": "object"}, "allow_host_name_cn_mismatch": {"key": "typeProperties.allowHostNameCNMismatch", "type": "object"}, "allow_self_signed_server_cert": {"key": "typeProperties.allowSelfSignedServerCert", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -44542,7 +44511,7 @@ def __init__( use_system_trust_store: Optional[JSON] = None, allow_host_name_cn_mismatch: Optional[JSON] = None, allow_self_signed_server_cert: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -44592,9 +44561,8 @@ def __init__( from the server. The default value is false. :paramtype allow_self_signed_server_cert: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -45395,14 +45363,14 @@ class PostgreSqlLinkedService(LinkedService): :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] :ivar annotations: List of tags that can be used for describing the linked service. :vartype annotations: list[JSON] - :ivar connection_string: The connection string. Required. + :ivar connection_string: The connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. Required. :vartype connection_string: JSON :ivar password: The Azure key vault secret reference of password in connection string. :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -45419,7 +45387,7 @@ class PostgreSqlLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -45432,7 +45400,7 @@ def __init__( parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, password: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -45447,14 +45415,14 @@ def __init__( :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] :keyword annotations: List of tags that can be used for describing the linked service. :paramtype annotations: list[JSON] - :keyword connection_string: The connection string. Required. + :keyword connection_string: The connection string. Type: string, SecureString or + AzureKeyVaultSecretReference. Required. :paramtype connection_string: JSON :keyword password: The Azure key vault secret reference of password in connection string. :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -45933,9 +45901,8 @@ class PrestoLinkedService(LinkedService): # pylint: disable=too-many-instance-a are specified in the IANA Time Zone Database. The default value is the system time zone. :vartype time_zone_id: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -45966,7 +45933,7 @@ class PrestoLinkedService(LinkedService): # pylint: disable=too-many-instance-a "allow_host_name_cn_mismatch": {"key": "typeProperties.allowHostNameCNMismatch", "type": "object"}, "allow_self_signed_server_cert": {"key": "typeProperties.allowSelfSignedServerCert", "type": "object"}, "time_zone_id": {"key": "typeProperties.timeZoneID", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -45990,7 +45957,7 @@ def __init__( allow_host_name_cn_mismatch: Optional[JSON] = None, allow_self_signed_server_cert: Optional[JSON] = None, time_zone_id: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -46042,9 +46009,8 @@ def __init__( are specified in the IANA Time Zone Database. The default value is the system time zone. :paramtype time_zone_id: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -46690,9 +46656,8 @@ class QuickbaseLinkedService(LinkedService): :ivar user_token: The user token for the Quickbase source. Required. :vartype user_token: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -46710,7 +46675,7 @@ class QuickbaseLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "url": {"key": "typeProperties.url", "type": "object"}, "user_token": {"key": "typeProperties.userToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -46723,7 +46688,7 @@ def __init__( description: Optional[str] = None, parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -46744,9 +46709,8 @@ def __init__( :keyword user_token: The user token for the Quickbase source. Required. :paramtype user_token: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -46799,9 +46763,8 @@ class QuickBooksLinkedService(LinkedService): # pylint: disable=too-many-instan HTTPS. The default value is true. :vartype use_encrypted_endpoints: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -46823,7 +46786,7 @@ class QuickBooksLinkedService(LinkedService): # pylint: disable=too-many-instan "access_token": {"key": "typeProperties.accessToken", "type": "SecretBase"}, "access_token_secret": {"key": "typeProperties.accessTokenSecret", "type": "SecretBase"}, "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -46842,7 +46805,7 @@ def __init__( access_token: Optional["_models.SecretBase"] = None, access_token_secret: Optional["_models.SecretBase"] = None, use_encrypted_endpoints: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -46876,9 +46839,8 @@ def __init__( using HTTPS. The default value is true. :paramtype use_encrypted_endpoints: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -47684,9 +47646,8 @@ class ResponsysLinkedService(LinkedService): # pylint: disable=too-many-instanc boolean). :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -47708,7 +47669,7 @@ class ResponsysLinkedService(LinkedService): # pylint: disable=too-many-instanc "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -47725,7 +47686,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -47760,9 +47721,8 @@ def __init__( boolean). :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -48022,12 +47982,10 @@ class RestResourceDataset(Dataset): # pylint: disable=too-many-instance-attribu :ivar request_body: The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). :vartype request_body: JSON - :ivar additional_headers: The additional HTTP headers in the request to the RESTful API. Type: - string (or Expression with resultType string). - :vartype additional_headers: JSON - :ivar pagination_rules: The pagination rules to compose next page requests. Type: string (or - Expression with resultType string). - :vartype pagination_rules: JSON + :ivar additional_headers: The additional HTTP headers in the request to the RESTful API. + :vartype additional_headers: dict[str, JSON] + :ivar pagination_rules: The pagination rules to compose next page requests. + :vartype pagination_rules: dict[str, JSON] """ _validation = { @@ -48048,8 +48006,8 @@ class RestResourceDataset(Dataset): # pylint: disable=too-many-instance-attribu "relative_url": {"key": "typeProperties.relativeUrl", "type": "object"}, "request_method": {"key": "typeProperties.requestMethod", "type": "object"}, "request_body": {"key": "typeProperties.requestBody", "type": "object"}, - "additional_headers": {"key": "typeProperties.additionalHeaders", "type": "object"}, - "pagination_rules": {"key": "typeProperties.paginationRules", "type": "object"}, + "additional_headers": {"key": "typeProperties.additionalHeaders", "type": "{object}"}, + "pagination_rules": {"key": "typeProperties.paginationRules", "type": "{object}"}, } def __init__( @@ -48066,8 +48024,8 @@ def __init__( relative_url: Optional[JSON] = None, request_method: Optional[JSON] = None, request_body: Optional[JSON] = None, - additional_headers: Optional[JSON] = None, - pagination_rules: Optional[JSON] = None, + additional_headers: Optional[Dict[str, JSON]] = None, + pagination_rules: Optional[Dict[str, JSON]] = None, **kwargs: Any ) -> None: """ @@ -48101,11 +48059,9 @@ def __init__( string (or Expression with resultType string). :paramtype request_body: JSON :keyword additional_headers: The additional HTTP headers in the request to the RESTful API. - Type: string (or Expression with resultType string). - :paramtype additional_headers: JSON - :keyword pagination_rules: The pagination rules to compose next page requests. Type: string (or - Expression with resultType string). - :paramtype pagination_rules: JSON + :paramtype additional_headers: dict[str, JSON] + :keyword pagination_rules: The pagination rules to compose next page requests. + :paramtype pagination_rules: dict[str, JSON] """ super().__init__( additional_properties=additional_properties, @@ -48144,7 +48100,8 @@ class RestServiceLinkedService(LinkedService): # pylint: disable=too-many-insta :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] :ivar annotations: List of tags that can be used for describing the linked service. :vartype annotations: list[JSON] - :ivar url: The base URL of the REST service. Required. + :ivar url: The base URL of the REST service. Type: string (or Expression with resultType + string). Required. :vartype url: JSON :ivar enable_server_certificate_validation: Whether to validate server side SSL certificate when connecting to the endpoint.The default value is true. Type: boolean (or Expression with @@ -48155,7 +48112,8 @@ class RestServiceLinkedService(LinkedService): # pylint: disable=too-many-insta "ManagedServiceIdentity", and "OAuth2ClientCredential". :vartype authentication_type: str or ~azure.mgmt.datafactory.models.RestServiceAuthenticationType - :ivar user_name: The user name used in Basic authentication type. + :ivar user_name: The user name used in Basic authentication type. Type: string (or Expression + with resultType string). :vartype user_name: JSON :ivar password: The password used in Basic authentication type. :vartype password: ~azure.mgmt.datafactory.models.SecretBase @@ -48163,24 +48121,25 @@ class RestServiceLinkedService(LinkedService): # pylint: disable=too-many-insta authorization. Type: object (or Expression with resultType object). :vartype auth_headers: JSON :ivar service_principal_id: The application's client ID used in AadServicePrincipal - authentication type. + authentication type. Type: string (or Expression with resultType string). :vartype service_principal_id: JSON :ivar service_principal_key: The application's key used in AadServicePrincipal authentication type. :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase :ivar tenant: The tenant information (domain name or tenant ID) used in AadServicePrincipal - authentication type under which your application resides. + authentication type under which your application resides. Type: string (or Expression with + resultType string). :vartype tenant: JSON :ivar azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). :vartype azure_cloud_type: JSON - :ivar aad_resource_id: The resource you are requesting authorization to use. + :ivar aad_resource_id: The resource you are requesting authorization to use. Type: string (or + Expression with resultType string). :vartype aad_resource_id: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar credential: The credential reference containing authentication information. :vartype credential: ~azure.mgmt.datafactory.models.CredentialReference :ivar client_id: The client ID associated with your application. Type: string (or Expression @@ -48226,7 +48185,7 @@ class RestServiceLinkedService(LinkedService): # pylint: disable=too-many-insta "tenant": {"key": "typeProperties.tenant", "type": "object"}, "azure_cloud_type": {"key": "typeProperties.azureCloudType", "type": "object"}, "aad_resource_id": {"key": "typeProperties.aadResourceId", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "credential": {"key": "typeProperties.credential", "type": "CredentialReference"}, "client_id": {"key": "typeProperties.clientId", "type": "object"}, "client_secret": {"key": "typeProperties.clientSecret", "type": "SecretBase"}, @@ -48254,7 +48213,7 @@ def __init__( # pylint: disable=too-many-locals tenant: Optional[JSON] = None, azure_cloud_type: Optional[JSON] = None, aad_resource_id: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, credential: Optional["_models.CredentialReference"] = None, client_id: Optional[JSON] = None, client_secret: Optional["_models.SecretBase"] = None, @@ -48275,7 +48234,8 @@ def __init__( # pylint: disable=too-many-locals :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] :keyword annotations: List of tags that can be used for describing the linked service. :paramtype annotations: list[JSON] - :keyword url: The base URL of the REST service. Required. + :keyword url: The base URL of the REST service. Type: string (or Expression with resultType + string). Required. :paramtype url: JSON :keyword enable_server_certificate_validation: Whether to validate server side SSL certificate when connecting to the endpoint.The default value is true. Type: boolean (or Expression with @@ -48286,7 +48246,8 @@ def __init__( # pylint: disable=too-many-locals "ManagedServiceIdentity", and "OAuth2ClientCredential". :paramtype authentication_type: str or ~azure.mgmt.datafactory.models.RestServiceAuthenticationType - :keyword user_name: The user name used in Basic authentication type. + :keyword user_name: The user name used in Basic authentication type. Type: string (or + Expression with resultType string). :paramtype user_name: JSON :keyword password: The password used in Basic authentication type. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase @@ -48294,24 +48255,25 @@ def __init__( # pylint: disable=too-many-locals authorization. Type: object (or Expression with resultType object). :paramtype auth_headers: JSON :keyword service_principal_id: The application's client ID used in AadServicePrincipal - authentication type. + authentication type. Type: string (or Expression with resultType string). :paramtype service_principal_id: JSON :keyword service_principal_key: The application's key used in AadServicePrincipal authentication type. :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase :keyword tenant: The tenant information (domain name or tenant ID) used in AadServicePrincipal - authentication type under which your application resides. + authentication type under which your application resides. Type: string (or Expression with + resultType string). :paramtype tenant: JSON :keyword azure_cloud_type: Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string). :paramtype azure_cloud_type: JSON - :keyword aad_resource_id: The resource you are requesting authorization to use. + :keyword aad_resource_id: The resource you are requesting authorization to use. Type: string + (or Expression with resultType string). :paramtype aad_resource_id: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword credential: The credential reference containing authentication information. :paramtype credential: ~azure.mgmt.datafactory.models.CredentialReference :keyword client_id: The client ID associated with your application. Type: string (or Expression @@ -48751,7 +48713,7 @@ class RunQueryFilter(_serialization.Model): "ActivityType", "TriggerName", "TriggerRunTimestamp", "RunGroupId", and "LatestOnly". :vartype operand: str or ~azure.mgmt.datafactory.models.RunQueryFilterOperand :ivar operator: Operator to be used for filter. Required. Known values are: "Equals", - "NotEquals", "In", and "NotIn". + "NotEquals", "In", "NotIn", and "In". :vartype operator: str or ~azure.mgmt.datafactory.models.RunQueryFilterOperator :ivar values: List of filter values. Required. :vartype values: list[str] @@ -48786,7 +48748,7 @@ def __init__( "ActivityType", "TriggerName", "TriggerRunTimestamp", "RunGroupId", and "LatestOnly". :paramtype operand: str or ~azure.mgmt.datafactory.models.RunQueryFilterOperand :keyword operator: Operator to be used for filter. Required. Known values are: "Equals", - "NotEquals", "In", and "NotIn". + "NotEquals", "In", "NotIn", and "In". :paramtype operator: str or ~azure.mgmt.datafactory.models.RunQueryFilterOperator :keyword values: List of filter values. Required. :paramtype values: list[str] @@ -48880,9 +48842,8 @@ class SalesforceLinkedService(LinkedService): # pylint: disable=too-many-instan resultType string). :vartype api_version: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -48901,7 +48862,7 @@ class SalesforceLinkedService(LinkedService): # pylint: disable=too-many-instan "password": {"key": "typeProperties.password", "type": "SecretBase"}, "security_token": {"key": "typeProperties.securityToken", "type": "SecretBase"}, "api_version": {"key": "typeProperties.apiVersion", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -48917,7 +48878,7 @@ def __init__( password: Optional["_models.SecretBase"] = None, security_token: Optional["_models.SecretBase"] = None, api_version: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -48948,9 +48909,8 @@ def __init__( resultType string). :paramtype api_version: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -49008,9 +48968,8 @@ class SalesforceMarketingCloudLinkedService(LinkedService): # pylint: disable=t boolean). :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -49030,7 +48989,7 @@ class SalesforceMarketingCloudLinkedService(LinkedService): # pylint: disable=t "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -49047,7 +49006,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -49083,9 +49042,8 @@ def __init__( boolean). :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -49450,9 +49408,8 @@ class SalesforceServiceCloudLinkedService(LinkedService): # pylint: disable=too (or Expression with resultType string). :vartype extended_properties: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -49472,7 +49429,7 @@ class SalesforceServiceCloudLinkedService(LinkedService): # pylint: disable=too "security_token": {"key": "typeProperties.securityToken", "type": "SecretBase"}, "api_version": {"key": "typeProperties.apiVersion", "type": "object"}, "extended_properties": {"key": "typeProperties.extendedProperties", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -49489,7 +49446,7 @@ def __init__( security_token: Optional["_models.SecretBase"] = None, api_version: Optional[JSON] = None, extended_properties: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -49523,9 +49480,8 @@ def __init__( string (or Expression with resultType string). :paramtype extended_properties: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -50244,9 +50200,8 @@ class SapBWLinkedService(LinkedService): # pylint: disable=too-many-instance-at :ivar password: Password to access the SAP BW server. :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -50268,7 +50223,7 @@ class SapBWLinkedService(LinkedService): # pylint: disable=too-many-instance-at "client_id": {"key": "typeProperties.clientId", "type": "object"}, "user_name": {"key": "typeProperties.userName", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -50284,7 +50239,7 @@ def __init__( annotations: Optional[List[JSON]] = None, user_name: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -50314,9 +50269,8 @@ def __init__( :keyword password: Password to access the SAP BW server. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -50464,8 +50418,8 @@ class SapCloudForCustomerLinkedService(LinkedService): :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or - username/password must be provided. Type: string (or Expression with resultType string). - :vartype encrypted_credential: JSON + username/password must be provided. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -50483,7 +50437,7 @@ class SapCloudForCustomerLinkedService(LinkedService): "url": {"key": "typeProperties.url", "type": "object"}, "username": {"key": "typeProperties.username", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -50497,7 +50451,7 @@ def __init__( annotations: Optional[List[JSON]] = None, username: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -50523,8 +50477,8 @@ def __init__( :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or - username/password must be provided. Type: string (or Expression with resultType string). - :paramtype encrypted_credential: JSON + username/password must be provided. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -50899,15 +50853,15 @@ class SapEccLinkedService(LinkedService): :ivar url: The URL of SAP ECC OData API. For example, '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with resultType string). Required. - :vartype url: str + :vartype url: JSON :ivar username: The username for Basic authentication. Type: string (or Expression with resultType string). - :vartype username: str + :vartype username: JSON :ivar password: The password for Basic authentication. :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or - username/password must be provided. Type: string (or Expression with resultType string). + username/password must be provided. Type: string. :vartype encrypted_credential: str """ @@ -50923,8 +50877,8 @@ class SapEccLinkedService(LinkedService): "description": {"key": "description", "type": "str"}, "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, "annotations": {"key": "annotations", "type": "[object]"}, - "url": {"key": "typeProperties.url", "type": "str"}, - "username": {"key": "typeProperties.username", "type": "str"}, + "url": {"key": "typeProperties.url", "type": "object"}, + "username": {"key": "typeProperties.username", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } @@ -50932,13 +50886,13 @@ class SapEccLinkedService(LinkedService): def __init__( self, *, - url: str, + url: JSON, additional_properties: Optional[Dict[str, JSON]] = None, connect_via: Optional["_models.IntegrationRuntimeReference"] = None, description: Optional[str] = None, parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, - username: Optional[str] = None, + username: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, encrypted_credential: Optional[str] = None, **kwargs: Any @@ -50958,15 +50912,15 @@ def __init__( :keyword url: The URL of SAP ECC OData API. For example, '[https://hostname:port/sap/opu/odata/sap/servicename/]'. Type: string (or Expression with resultType string). Required. - :paramtype url: str + :paramtype url: JSON :keyword username: The username for Basic authentication. Type: string (or Expression with resultType string). - :paramtype username: str + :paramtype username: JSON :keyword password: The password for Basic authentication. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Either encryptedCredential or - username/password must be provided. Type: string (or Expression with resultType string). + username/password must be provided. Type: string. :paramtype encrypted_credential: str """ super().__init__( @@ -51237,9 +51191,8 @@ class SapHanaLinkedService(LinkedService): # pylint: disable=too-many-instance- :ivar password: Password to access the SAP HANA server. :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -51258,7 +51211,7 @@ class SapHanaLinkedService(LinkedService): # pylint: disable=too-many-instance- "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, "user_name": {"key": "typeProperties.userName", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -51274,7 +51227,7 @@ def __init__( authentication_type: Optional[Union[str, "_models.SapHanaAuthenticationType"]] = None, user_name: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -51304,9 +51257,8 @@ def __init__( :keyword password: Password to access the SAP HANA server. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -51656,9 +51608,8 @@ class SapOdpLinkedService(LinkedService): # pylint: disable=too-many-instance-a string). :vartype subscriber_name: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -51689,7 +51640,7 @@ class SapOdpLinkedService(LinkedService): # pylint: disable=too-many-instance-a "x509_certificate_path": {"key": "typeProperties.x509CertificatePath", "type": "object"}, "logon_group": {"key": "typeProperties.logonGroup", "type": "object"}, "subscriber_name": {"key": "typeProperties.subscriberName", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( # pylint: disable=too-many-locals @@ -51717,7 +51668,7 @@ def __init__( # pylint: disable=too-many-locals x509_certificate_path: Optional[JSON] = None, logon_group: Optional[JSON] = None, subscriber_name: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -51785,9 +51736,8 @@ def __init__( # pylint: disable=too-many-locals string). :paramtype subscriber_name: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -52112,9 +52062,8 @@ class SapOpenHubLinkedService(LinkedService): # pylint: disable=too-many-instan resultType string). :vartype logon_group: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -52138,7 +52087,7 @@ class SapOpenHubLinkedService(LinkedService): # pylint: disable=too-many-instan "message_server": {"key": "typeProperties.messageServer", "type": "object"}, "message_server_service": {"key": "typeProperties.messageServerService", "type": "object"}, "logon_group": {"key": "typeProperties.logonGroup", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -52159,7 +52108,7 @@ def __init__( message_server: Optional[JSON] = None, message_server_service: Optional[JSON] = None, logon_group: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -52207,9 +52156,8 @@ def __init__( resultType string). :paramtype logon_group: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -52556,9 +52504,8 @@ class SapTableLinkedService(LinkedService): # pylint: disable=too-many-instance resultType string). :vartype logon_group: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -52587,7 +52534,7 @@ class SapTableLinkedService(LinkedService): # pylint: disable=too-many-instance "snc_library_path": {"key": "typeProperties.sncLibraryPath", "type": "object"}, "snc_qop": {"key": "typeProperties.sncQop", "type": "object"}, "logon_group": {"key": "typeProperties.logonGroup", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -52613,7 +52560,7 @@ def __init__( snc_library_path: Optional[JSON] = None, snc_qop: Optional[JSON] = None, logon_group: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -52675,9 +52622,8 @@ def __init__( resultType string). :paramtype logon_group: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -53355,7 +53301,7 @@ class ScriptActivityParameter(_serialization.Model): "DateTimeOffset", "Decimal", "Double", "Guid", "Int16", "Int32", "Int64", "Single", "String", and "Timespan". :vartype type: str or ~azure.mgmt.datafactory.models.ScriptActivityParameterType - :ivar value: The value of the parameter. + :ivar value: The value of the parameter. Type: string (or Expression with resultType string). :vartype value: JSON :ivar direction: The direction of the parameter. Known values are: "Input", "Output", and "InputOutput". @@ -53389,7 +53335,8 @@ def __init__( "DateTimeOffset", "Decimal", "Double", "Guid", "Int16", "Int32", "Int64", "Single", "String", and "Timespan". :paramtype type: str or ~azure.mgmt.datafactory.models.ScriptActivityParameterType - :keyword value: The value of the parameter. + :keyword value: The value of the parameter. Type: string (or Expression with resultType + string). :paramtype value: JSON :keyword direction: The direction of the parameter. Known values are: "Input", "Output", and "InputOutput". @@ -53934,9 +53881,8 @@ class ServiceNowLinkedService(LinkedService): # pylint: disable=too-many-instan connecting over SSL. The default value is true. :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -53961,7 +53907,7 @@ class ServiceNowLinkedService(LinkedService): # pylint: disable=too-many-instan "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -53981,7 +53927,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -54024,9 +53970,8 @@ def __init__( connecting over SSL. The default value is true. :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -54346,6 +54291,8 @@ class SetVariableActivity(ControlActivity): :vartype variable_name: str :ivar value: Value to be set. Could be a static value or Expression. :vartype value: JSON + :ivar set_system_variable: If set to true, it sets the pipeline run return value. + :vartype set_system_variable: bool """ _validation = { @@ -54362,6 +54309,7 @@ class SetVariableActivity(ControlActivity): "user_properties": {"key": "userProperties", "type": "[UserProperty]"}, "variable_name": {"key": "typeProperties.variableName", "type": "str"}, "value": {"key": "typeProperties.value", "type": "object"}, + "set_system_variable": {"key": "typeProperties.setSystemVariable", "type": "bool"}, } def __init__( @@ -54374,6 +54322,7 @@ def __init__( user_properties: Optional[List["_models.UserProperty"]] = None, variable_name: Optional[str] = None, value: Optional[JSON] = None, + set_system_variable: Optional[bool] = None, **kwargs: Any ) -> None: """ @@ -54392,6 +54341,8 @@ def __init__( :paramtype variable_name: str :keyword value: Value to be set. Could be a static value or Expression. :paramtype value: JSON + :keyword set_system_variable: If set to true, it sets the pipeline run return value. + :paramtype set_system_variable: bool """ super().__init__( additional_properties=additional_properties, @@ -54404,6 +54355,7 @@ def __init__( self.type: str = "SetVariable" self.variable_name = variable_name self.value = value + self.set_system_variable = set_system_variable class SftpLocation(DatasetLocation): @@ -54485,8 +54437,9 @@ class SftpReadSettings(StoreReadSettings): # pylint: disable=too-many-instance- :ivar wildcard_file_name: Sftp wildcardFileName. Type: string (or Expression with resultType string). :vartype wildcard_file_name: JSON - :ivar enable_partition_discovery: Indicates whether to enable partition discovery. - :vartype enable_partition_discovery: bool + :ivar enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :vartype enable_partition_discovery: JSON :ivar partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :vartype partition_root_path: JSON @@ -54520,7 +54473,7 @@ class SftpReadSettings(StoreReadSettings): # pylint: disable=too-many-instance- "recursive": {"key": "recursive", "type": "object"}, "wildcard_folder_path": {"key": "wildcardFolderPath", "type": "object"}, "wildcard_file_name": {"key": "wildcardFileName", "type": "object"}, - "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "bool"}, + "enable_partition_discovery": {"key": "enablePartitionDiscovery", "type": "object"}, "partition_root_path": {"key": "partitionRootPath", "type": "object"}, "file_list_path": {"key": "fileListPath", "type": "object"}, "delete_files_after_completion": {"key": "deleteFilesAfterCompletion", "type": "object"}, @@ -54538,7 +54491,7 @@ def __init__( recursive: Optional[JSON] = None, wildcard_folder_path: Optional[JSON] = None, wildcard_file_name: Optional[JSON] = None, - enable_partition_discovery: Optional[bool] = None, + enable_partition_discovery: Optional[JSON] = None, partition_root_path: Optional[JSON] = None, file_list_path: Optional[JSON] = None, delete_files_after_completion: Optional[JSON] = None, @@ -54566,8 +54519,9 @@ def __init__( :keyword wildcard_file_name: Sftp wildcardFileName. Type: string (or Expression with resultType string). :paramtype wildcard_file_name: JSON - :keyword enable_partition_discovery: Indicates whether to enable partition discovery. - :paramtype enable_partition_discovery: bool + :keyword enable_partition_discovery: Indicates whether to enable partition discovery. Type: + boolean (or Expression with resultType boolean). + :paramtype enable_partition_discovery: JSON :keyword partition_root_path: Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). :paramtype partition_root_path: JSON @@ -54640,9 +54594,8 @@ class SftpServerLinkedService(LinkedService): # pylint: disable=too-many-instan :ivar password: Password to logon the SFTP server for Basic authentication. :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar private_key_path: The SSH private key file path for SshPublicKey authentication. Only valid for on-premises copy. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be specified. SSH private key should be OpenSSH @@ -54681,7 +54634,7 @@ class SftpServerLinkedService(LinkedService): # pylint: disable=too-many-instan "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, "user_name": {"key": "typeProperties.userName", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "private_key_path": {"key": "typeProperties.privateKeyPath", "type": "object"}, "private_key_content": {"key": "typeProperties.privateKeyContent", "type": "SecretBase"}, "pass_phrase": {"key": "typeProperties.passPhrase", "type": "SecretBase"}, @@ -54702,7 +54655,7 @@ def __init__( authentication_type: Optional[Union[str, "_models.SftpAuthenticationType"]] = None, user_name: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, private_key_path: Optional[JSON] = None, private_key_content: Optional["_models.SecretBase"] = None, pass_phrase: Optional["_models.SecretBase"] = None, @@ -54737,9 +54690,8 @@ def __init__( :keyword password: Password to logon the SFTP server for Basic authentication. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword private_key_path: The SSH private key file path for SshPublicKey authentication. Only valid for on-premises copy. For on-premises copy with SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should be specified. SSH private key should be OpenSSH @@ -54900,9 +54852,8 @@ class SharePointOnlineListLinkedService(LinkedService): # pylint: disable=too-m Directory. Type: string (or Expression with resultType string). Required. :vartype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -54924,7 +54875,7 @@ class SharePointOnlineListLinkedService(LinkedService): # pylint: disable=too-m "tenant_id": {"key": "typeProperties.tenantId", "type": "object"}, "service_principal_id": {"key": "typeProperties.servicePrincipalId", "type": "object"}, "service_principal_key": {"key": "typeProperties.servicePrincipalKey", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -54939,7 +54890,7 @@ def __init__( description: Optional[str] = None, parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -54970,9 +54921,8 @@ def __init__( Active Directory. Type: string (or Expression with resultType string). Required. :paramtype service_principal_key: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -55223,9 +55173,8 @@ class ShopifyLinkedService(LinkedService): # pylint: disable=too-many-instance- connecting over SSL. The default value is true. :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -55245,7 +55194,7 @@ class ShopifyLinkedService(LinkedService): # pylint: disable=too-many-instance- "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -55261,7 +55210,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -55292,9 +55241,8 @@ def __init__( connecting over SSL. The default value is true. :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -55570,9 +55518,8 @@ class SmartsheetLinkedService(LinkedService): :ivar api_token: The api token for the Smartsheet source. Required. :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -55588,7 +55535,7 @@ class SmartsheetLinkedService(LinkedService): "parameters": {"key": "parameters", "type": "{ParameterSpecification}"}, "annotations": {"key": "annotations", "type": "[object]"}, "api_token": {"key": "typeProperties.apiToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -55600,7 +55547,7 @@ def __init__( description: Optional[str] = None, parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -55618,9 +55565,8 @@ def __init__( :keyword api_token: The api token for the Smartsheet source. Required. :paramtype api_token: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -55896,9 +55842,8 @@ class SnowflakeLinkedService(LinkedService): :ivar password: The Azure key vault secret reference of password in connection string. :vartype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -55915,7 +55860,7 @@ class SnowflakeLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "password": {"key": "typeProperties.password", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -55928,7 +55873,7 @@ def __init__( parameters: Optional[Dict[str, "_models.ParameterSpecification"]] = None, annotations: Optional[List[JSON]] = None, password: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -55949,9 +55894,8 @@ def __init__( :keyword password: The Azure key vault secret reference of password in connection string. :paramtype password: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -56260,9 +56204,8 @@ class SparkLinkedService(LinkedService): # pylint: disable=too-many-instance-at the server. The default value is false. :vartype allow_self_signed_server_cert: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -56292,7 +56235,7 @@ class SparkLinkedService(LinkedService): # pylint: disable=too-many-instance-at "use_system_trust_store": {"key": "typeProperties.useSystemTrustStore", "type": "object"}, "allow_host_name_cn_mismatch": {"key": "typeProperties.allowHostNameCNMismatch", "type": "object"}, "allow_self_signed_server_cert": {"key": "typeProperties.allowSelfSignedServerCert", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -56316,7 +56259,7 @@ def __init__( use_system_trust_store: Optional[JSON] = None, allow_host_name_cn_mismatch: Optional[JSON] = None, allow_self_signed_server_cert: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -56371,9 +56314,8 @@ def __init__( from the server. The default value is false. :paramtype allow_self_signed_server_cert: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -56629,8 +56571,8 @@ class SqlAlwaysEncryptedProperties(_serialization.Model): All required parameters must be populated in order to send to Azure. :ivar always_encrypted_akv_auth_type: Sql always encrypted AKV authentication type. Type: - string (or Expression with resultType string). Required. Known values are: "ServicePrincipal", - "ManagedIdentity", and "UserAssignedManagedIdentity". + string. Required. Known values are: "ServicePrincipal", "ManagedIdentity", and + "UserAssignedManagedIdentity". :vartype always_encrypted_akv_auth_type: str or ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedAkvAuthType :ivar service_principal_id: The client ID of the application in Azure Active Directory used for @@ -56665,8 +56607,8 @@ def __init__( ) -> None: """ :keyword always_encrypted_akv_auth_type: Sql always encrypted AKV authentication type. Type: - string (or Expression with resultType string). Required. Known values are: "ServicePrincipal", - "ManagedIdentity", and "UserAssignedManagedIdentity". + string. Required. Known values are: "ServicePrincipal", "ManagedIdentity", and + "UserAssignedManagedIdentity". :paramtype always_encrypted_akv_auth_type: str or ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedAkvAuthType :keyword service_principal_id: The client ID of the application in Azure Active Directory used @@ -56894,6 +56836,10 @@ class SqlDWSource(TabularSource): # pylint: disable=too-many-instance-attribute Example: "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType object), itemType: StoredProcedureParameter. :vartype stored_procedure_parameters: JSON + :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed + values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value + is ReadCommitted. Type: string (or Expression with resultType string). + :vartype isolation_level: JSON :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". :vartype partition_option: JSON @@ -56917,6 +56863,7 @@ class SqlDWSource(TabularSource): # pylint: disable=too-many-instance-attribute "sql_reader_query": {"key": "sqlReaderQuery", "type": "object"}, "sql_reader_stored_procedure_name": {"key": "sqlReaderStoredProcedureName", "type": "object"}, "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, + "isolation_level": {"key": "isolationLevel", "type": "object"}, "partition_option": {"key": "partitionOption", "type": "object"}, "partition_settings": {"key": "partitionSettings", "type": "SqlPartitionSettings"}, } @@ -56934,6 +56881,7 @@ def __init__( sql_reader_query: Optional[JSON] = None, sql_reader_stored_procedure_name: Optional[JSON] = None, stored_procedure_parameters: Optional[JSON] = None, + isolation_level: Optional[JSON] = None, partition_option: Optional[JSON] = None, partition_settings: Optional["_models.SqlPartitionSettings"] = None, **kwargs: Any @@ -56971,6 +56919,10 @@ def __init__( Example: "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType object), itemType: StoredProcedureParameter. :paramtype stored_procedure_parameters: JSON + :keyword isolation_level: Specifies the transaction locking behavior for the SQL source. + Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default + value is ReadCommitted. Type: string (or Expression with resultType string). + :paramtype isolation_level: JSON :keyword partition_option: The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". :paramtype partition_option: JSON @@ -56991,6 +56943,7 @@ def __init__( self.sql_reader_query = sql_reader_query self.sql_reader_stored_procedure_name = sql_reader_stored_procedure_name self.stored_procedure_parameters = stored_procedure_parameters + self.isolation_level = isolation_level self.partition_option = partition_option self.partition_settings = partition_settings @@ -57237,6 +57190,10 @@ class SqlMISource(TabularSource): # pylint: disable=too-many-instance-attribute :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". :vartype stored_procedure_parameters: JSON + :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed + values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value + is ReadCommitted. Type: string (or Expression with resultType string). + :vartype isolation_level: JSON :ivar produce_additional_types: Which additional types to produce. :vartype produce_additional_types: JSON :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. @@ -57262,6 +57219,7 @@ class SqlMISource(TabularSource): # pylint: disable=too-many-instance-attribute "sql_reader_query": {"key": "sqlReaderQuery", "type": "object"}, "sql_reader_stored_procedure_name": {"key": "sqlReaderStoredProcedureName", "type": "object"}, "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, + "isolation_level": {"key": "isolationLevel", "type": "object"}, "produce_additional_types": {"key": "produceAdditionalTypes", "type": "object"}, "partition_option": {"key": "partitionOption", "type": "object"}, "partition_settings": {"key": "partitionSettings", "type": "SqlPartitionSettings"}, @@ -57280,6 +57238,7 @@ def __init__( sql_reader_query: Optional[JSON] = None, sql_reader_stored_procedure_name: Optional[JSON] = None, stored_procedure_parameters: Optional[JSON] = None, + isolation_level: Optional[JSON] = None, produce_additional_types: Optional[JSON] = None, partition_option: Optional[JSON] = None, partition_settings: Optional["_models.SqlPartitionSettings"] = None, @@ -57317,6 +57276,10 @@ def __init__( :keyword stored_procedure_parameters: Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". :paramtype stored_procedure_parameters: JSON + :keyword isolation_level: Specifies the transaction locking behavior for the SQL source. + Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default + value is ReadCommitted. Type: string (or Expression with resultType string). + :paramtype isolation_level: JSON :keyword produce_additional_types: Which additional types to produce. :paramtype produce_additional_types: JSON :keyword partition_option: The partition mechanism that will be used for Sql read in parallel. @@ -57339,6 +57302,7 @@ def __init__( self.sql_reader_query = sql_reader_query self.sql_reader_stored_procedure_name = sql_reader_stored_procedure_name self.stored_procedure_parameters = stored_procedure_parameters + self.isolation_level = isolation_level self.produce_additional_types = produce_additional_types self.partition_option = partition_option self.partition_settings = partition_settings @@ -57428,9 +57392,8 @@ class SqlServerLinkedService(LinkedService): # pylint: disable=too-many-instanc :ivar password: The on-premises Windows authentication password. :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str :ivar always_encrypted_settings: Sql always encrypted properties. :vartype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties """ @@ -57450,7 +57413,7 @@ class SqlServerLinkedService(LinkedService): # pylint: disable=too-many-instanc "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "user_name": {"key": "typeProperties.userName", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, "always_encrypted_settings": { "key": "typeProperties.alwaysEncryptedSettings", "type": "SqlAlwaysEncryptedProperties", @@ -57468,7 +57431,7 @@ def __init__( annotations: Optional[List[JSON]] = None, user_name: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, always_encrypted_settings: Optional["_models.SqlAlwaysEncryptedProperties"] = None, **kwargs: Any ) -> None: @@ -57493,9 +57456,8 @@ def __init__( :keyword password: The on-premises Windows authentication password. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str :keyword always_encrypted_settings: Sql always encrypted properties. :paramtype always_encrypted_settings: ~azure.mgmt.datafactory.models.SqlAlwaysEncryptedProperties @@ -57726,6 +57688,10 @@ class SqlServerSource(TabularSource): # pylint: disable=too-many-instance-attri :ivar stored_procedure_parameters: Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". :vartype stored_procedure_parameters: JSON + :ivar isolation_level: Specifies the transaction locking behavior for the SQL source. Allowed + values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value + is ReadCommitted. Type: string (or Expression with resultType string). + :vartype isolation_level: JSON :ivar produce_additional_types: Which additional types to produce. :vartype produce_additional_types: JSON :ivar partition_option: The partition mechanism that will be used for Sql read in parallel. @@ -57751,6 +57717,7 @@ class SqlServerSource(TabularSource): # pylint: disable=too-many-instance-attri "sql_reader_query": {"key": "sqlReaderQuery", "type": "object"}, "sql_reader_stored_procedure_name": {"key": "sqlReaderStoredProcedureName", "type": "object"}, "stored_procedure_parameters": {"key": "storedProcedureParameters", "type": "object"}, + "isolation_level": {"key": "isolationLevel", "type": "object"}, "produce_additional_types": {"key": "produceAdditionalTypes", "type": "object"}, "partition_option": {"key": "partitionOption", "type": "object"}, "partition_settings": {"key": "partitionSettings", "type": "SqlPartitionSettings"}, @@ -57769,6 +57736,7 @@ def __init__( sql_reader_query: Optional[JSON] = None, sql_reader_stored_procedure_name: Optional[JSON] = None, stored_procedure_parameters: Optional[JSON] = None, + isolation_level: Optional[JSON] = None, produce_additional_types: Optional[JSON] = None, partition_option: Optional[JSON] = None, partition_settings: Optional["_models.SqlPartitionSettings"] = None, @@ -57806,6 +57774,10 @@ def __init__( :keyword stored_procedure_parameters: Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". :paramtype stored_procedure_parameters: JSON + :keyword isolation_level: Specifies the transaction locking behavior for the SQL source. + Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default + value is ReadCommitted. Type: string (or Expression with resultType string). + :paramtype isolation_level: JSON :keyword produce_additional_types: Which additional types to produce. :paramtype produce_additional_types: JSON :keyword partition_option: The partition mechanism that will be used for Sql read in parallel. @@ -57828,6 +57800,7 @@ def __init__( self.sql_reader_query = sql_reader_query self.sql_reader_stored_procedure_name = sql_reader_stored_procedure_name self.stored_procedure_parameters = stored_procedure_parameters + self.isolation_level = isolation_level self.produce_additional_types = produce_additional_types self.partition_option = partition_option self.partition_settings = partition_settings @@ -58443,7 +58416,7 @@ class SquareLinkedService(LinkedService): # pylint: disable=too-many-instance-a :ivar connection_properties: Properties used to connect to Square. It is mutually exclusive with any other properties in the linked service. Type: object. :vartype connection_properties: JSON - :ivar host: The URL of the Square instance. (i.e. mystore.mysquare.com). + :ivar host: The URL of the Square instance. (i.e. mystore.mysquare.com). :vartype host: JSON :ivar client_id: The client ID associated with your Square application. :vartype client_id: JSON @@ -58463,9 +58436,8 @@ class SquareLinkedService(LinkedService): # pylint: disable=too-many-instance-a connecting over SSL. The default value is true. :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -58487,7 +58459,7 @@ class SquareLinkedService(LinkedService): # pylint: disable=too-many-instance-a "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -58506,7 +58478,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -58524,7 +58496,7 @@ def __init__( :keyword connection_properties: Properties used to connect to Square. It is mutually exclusive with any other properties in the linked service. Type: object. :paramtype connection_properties: JSON - :keyword host: The URL of the Square instance. (i.e. mystore.mysquare.com). + :keyword host: The URL of the Square instance. (i.e. mystore.mysquare.com). :paramtype host: JSON :keyword client_id: The client ID associated with your Square application. :paramtype client_id: JSON @@ -58544,9 +58516,8 @@ def __init__( connecting over SSL. The default value is true. :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -58777,9 +58748,11 @@ class SSISAccessCredential(_serialization.Model): All required parameters must be populated in order to send to Azure. - :ivar domain: Domain for windows authentication. Required. + :ivar domain: Domain for windows authentication. Type: string (or Expression with resultType + string). Required. :vartype domain: JSON - :ivar user_name: UseName for windows authentication. Required. + :ivar user_name: UseName for windows authentication. Type: string (or Expression with + resultType string). Required. :vartype user_name: JSON :ivar password: Password for windows authentication. Required. :vartype password: ~azure.mgmt.datafactory.models.SecretBase @@ -58799,9 +58772,11 @@ class SSISAccessCredential(_serialization.Model): def __init__(self, *, domain: JSON, user_name: JSON, password: "_models.SecretBase", **kwargs: Any) -> None: """ - :keyword domain: Domain for windows authentication. Required. + :keyword domain: Domain for windows authentication. Type: string (or Expression with resultType + string). Required. :paramtype domain: JSON - :keyword user_name: UseName for windows authentication. Required. + :keyword user_name: UseName for windows authentication. Type: string (or Expression with + resultType string). Required. :paramtype user_name: JSON :keyword password: Password for windows authentication. Required. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase @@ -59043,9 +59018,11 @@ class SSISExecutionCredential(_serialization.Model): All required parameters must be populated in order to send to Azure. - :ivar domain: Domain for windows authentication. Required. + :ivar domain: Domain for windows authentication. Type: string (or Expression with resultType + string). Required. :vartype domain: JSON - :ivar user_name: UseName for windows authentication. Required. + :ivar user_name: UseName for windows authentication. Type: string (or Expression with + resultType string). Required. :vartype user_name: JSON :ivar password: Password for windows authentication. Required. :vartype password: ~azure.mgmt.datafactory.models.SecureString @@ -59065,9 +59042,11 @@ class SSISExecutionCredential(_serialization.Model): def __init__(self, *, domain: JSON, user_name: JSON, password: "_models.SecureString", **kwargs: Any) -> None: """ - :keyword domain: Domain for windows authentication. Required. + :keyword domain: Domain for windows authentication. Type: string (or Expression with resultType + string). Required. :paramtype domain: JSON - :keyword user_name: UseName for windows authentication. Required. + :keyword user_name: UseName for windows authentication. Type: string (or Expression with + resultType string). Required. :paramtype user_name: JSON :keyword password: Password for windows authentication. Required. :paramtype password: ~azure.mgmt.datafactory.models.SecureString @@ -59999,9 +59978,8 @@ class SybaseLinkedService(LinkedService): # pylint: disable=too-many-instance-a :ivar password: Password for authentication. :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -60023,7 +60001,7 @@ class SybaseLinkedService(LinkedService): # pylint: disable=too-many-instance-a "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, "username": {"key": "typeProperties.username", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -60040,7 +60018,7 @@ def __init__( authentication_type: Optional[Union[str, "_models.SybaseAuthenticationType"]] = None, username: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -60073,9 +60051,8 @@ def __init__( :keyword password: Password for authentication. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -60339,8 +60316,17 @@ class SynapseNotebookActivity(ExecutionActivity): # pylint: disable=too-many-in of the notebook you provide. Type: string (or Expression with resultType string). :vartype driver_size: JSON :ivar num_executors: Number of executors to launch for this session, which will override the - 'numExecutors' of the notebook you provide. - :vartype num_executors: int + 'numExecutors' of the notebook you provide. Type: integer (or Expression with resultType + integer). + :vartype num_executors: JSON + :ivar configuration_type: The type of the spark config. Known values are: "Default", + "Customized", and "Artifact". + :vartype configuration_type: str or ~azure.mgmt.datafactory.models.ConfigurationType + :ivar target_spark_configuration: The spark configuration of the spark job. + :vartype target_spark_configuration: + ~azure.mgmt.datafactory.models.SparkConfigurationParametrizationReference + :ivar spark_config: Spark configuration property. + :vartype spark_config: dict[str, JSON] """ _validation = { @@ -60364,7 +60350,13 @@ class SynapseNotebookActivity(ExecutionActivity): # pylint: disable=too-many-in "executor_size": {"key": "typeProperties.executorSize", "type": "object"}, "conf": {"key": "typeProperties.conf", "type": "object"}, "driver_size": {"key": "typeProperties.driverSize", "type": "object"}, - "num_executors": {"key": "typeProperties.numExecutors", "type": "int"}, + "num_executors": {"key": "typeProperties.numExecutors", "type": "object"}, + "configuration_type": {"key": "typeProperties.configurationType", "type": "str"}, + "target_spark_configuration": { + "key": "typeProperties.targetSparkConfiguration", + "type": "SparkConfigurationParametrizationReference", + }, + "spark_config": {"key": "typeProperties.sparkConfig", "type": "{object}"}, } def __init__( @@ -60383,7 +60375,10 @@ def __init__( executor_size: Optional[JSON] = None, conf: Optional[JSON] = None, driver_size: Optional[JSON] = None, - num_executors: Optional[int] = None, + num_executors: Optional[JSON] = None, + configuration_type: Optional[Union[str, "_models.ConfigurationType"]] = None, + target_spark_configuration: Optional["_models.SparkConfigurationParametrizationReference"] = None, + spark_config: Optional[Dict[str, JSON]] = None, **kwargs: Any ) -> None: """ @@ -60422,8 +60417,17 @@ def __init__( string). :paramtype driver_size: JSON :keyword num_executors: Number of executors to launch for this session, which will override the - 'numExecutors' of the notebook you provide. - :paramtype num_executors: int + 'numExecutors' of the notebook you provide. Type: integer (or Expression with resultType + integer). + :paramtype num_executors: JSON + :keyword configuration_type: The type of the spark config. Known values are: "Default", + "Customized", and "Artifact". + :paramtype configuration_type: str or ~azure.mgmt.datafactory.models.ConfigurationType + :keyword target_spark_configuration: The spark configuration of the spark job. + :paramtype target_spark_configuration: + ~azure.mgmt.datafactory.models.SparkConfigurationParametrizationReference + :keyword spark_config: Spark configuration property. + :paramtype spark_config: dict[str, JSON] """ super().__init__( additional_properties=additional_properties, @@ -60443,6 +60447,9 @@ def __init__( self.conf = conf self.driver_size = driver_size self.num_executors = num_executors + self.configuration_type = configuration_type + self.target_spark_configuration = target_spark_configuration + self.spark_config = spark_config class SynapseNotebookReference(_serialization.Model): @@ -60996,9 +61003,8 @@ class TeamDeskLinkedService(LinkedService): # pylint: disable=too-many-instance :ivar api_token: The api token for the TeamDesk source. :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -61019,7 +61025,7 @@ class TeamDeskLinkedService(LinkedService): # pylint: disable=too-many-instance "user_name": {"key": "typeProperties.userName", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, "api_token": {"key": "typeProperties.apiToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -61035,7 +61041,7 @@ def __init__( user_name: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, api_token: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -61065,9 +61071,8 @@ def __init__( :keyword api_token: The api token for the TeamDesk source. :paramtype api_token: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -61118,9 +61123,8 @@ class TeradataLinkedService(LinkedService): # pylint: disable=too-many-instance :ivar password: Password for authentication. :vartype password: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -61139,7 +61143,7 @@ class TeradataLinkedService(LinkedService): # pylint: disable=too-many-instance "authentication_type": {"key": "typeProperties.authenticationType", "type": "str"}, "username": {"key": "typeProperties.username", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -61155,7 +61159,7 @@ def __init__( authentication_type: Optional[Union[str, "_models.TeradataAuthenticationType"]] = None, username: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -61186,9 +61190,8 @@ def __init__( :keyword password: Password for authentication. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -62229,7 +62232,8 @@ class TwilioLinkedService(LinkedService): :vartype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] :ivar annotations: List of tags that can be used for describing the linked service. :vartype annotations: list[JSON] - :ivar user_name: The Account SID of Twilio service. Required. + :ivar user_name: The Account SID of Twilio service. Type: string (or Expression with resultType + string). Required. :vartype user_name: JSON :ivar password: The auth token of Twilio service. Required. :vartype password: ~azure.mgmt.datafactory.models.SecretBase @@ -62276,7 +62280,8 @@ def __init__( :paramtype parameters: dict[str, ~azure.mgmt.datafactory.models.ParameterSpecification] :keyword annotations: List of tags that can be used for describing the linked service. :paramtype annotations: list[JSON] - :keyword user_name: The Account SID of Twilio service. Required. + :keyword user_name: The Account SID of Twilio service. Type: string (or Expression with + resultType string). Required. :paramtype user_name: JSON :keyword password: The auth token of Twilio service. Required. :paramtype password: ~azure.mgmt.datafactory.models.SecretBase @@ -62391,8 +62396,7 @@ class UntilActivity(ControlActivity): :ivar timeout: Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: - ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or Expression with - resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). :vartype timeout: JSON :ivar activities: List of activities to execute. Required. :vartype activities: list[~azure.mgmt.datafactory.models.Activity] @@ -62448,8 +62452,7 @@ def __init__( :keyword timeout: Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) which is 1 week as default. Type: string (or Expression with resultType string), pattern: - ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or Expression with - resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). :paramtype timeout: JSON :keyword activities: List of activities to execute. Required. :paramtype activities: list[~azure.mgmt.datafactory.models.Activity] @@ -62803,9 +62806,8 @@ class VerticaLinkedService(LinkedService): :ivar pwd: The Azure key vault secret reference of password in connection string. :vartype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -62821,7 +62823,7 @@ class VerticaLinkedService(LinkedService): "annotations": {"key": "annotations", "type": "[object]"}, "connection_string": {"key": "typeProperties.connectionString", "type": "object"}, "pwd": {"key": "typeProperties.pwd", "type": "AzureKeyVaultSecretReference"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -62834,7 +62836,7 @@ def __init__( annotations: Optional[List[JSON]] = None, connection_string: Optional[JSON] = None, pwd: Optional["_models.AzureKeyVaultSecretReference"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -62855,9 +62857,8 @@ def __init__( :keyword pwd: The Azure key vault secret reference of password in connection string. :paramtype pwd: ~azure.mgmt.datafactory.models.AzureKeyVaultSecretReference :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -63115,7 +63116,8 @@ class WaitActivity(ControlActivity): :vartype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] :ivar user_properties: Activity user properties. :vartype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :ivar wait_time_in_seconds: Duration in seconds. Required. + :ivar wait_time_in_seconds: Duration in seconds. Type: integer (or Expression with resultType + integer). Required. :vartype wait_time_in_seconds: JSON """ @@ -63158,7 +63160,8 @@ def __init__( :paramtype depends_on: list[~azure.mgmt.datafactory.models.ActivityDependency] :keyword user_properties: Activity user properties. :paramtype user_properties: list[~azure.mgmt.datafactory.models.UserProperty] - :keyword wait_time_in_seconds: Duration in seconds. Required. + :keyword wait_time_in_seconds: Duration in seconds. Type: integer (or Expression with + resultType integer). Required. :paramtype wait_time_in_seconds: JSON """ super().__init__( @@ -64102,9 +64105,8 @@ class XeroLinkedService(LinkedService): # pylint: disable=too-many-instance-att connecting over SSL. The default value is true. :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -64125,7 +64127,7 @@ class XeroLinkedService(LinkedService): # pylint: disable=too-many-instance-att "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -64143,7 +64145,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -64181,9 +64183,8 @@ def __init__( connecting over SSL. The default value is true. :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -64753,9 +64754,8 @@ class ZendeskLinkedService(LinkedService): # pylint: disable=too-many-instance- :ivar api_token: The api token for the Zendesk source. :vartype api_token: ~azure.mgmt.datafactory.models.SecretBase :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -64776,7 +64776,7 @@ class ZendeskLinkedService(LinkedService): # pylint: disable=too-many-instance- "user_name": {"key": "typeProperties.userName", "type": "object"}, "password": {"key": "typeProperties.password", "type": "SecretBase"}, "api_token": {"key": "typeProperties.apiToken", "type": "SecretBase"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -64792,7 +64792,7 @@ def __init__( user_name: Optional[JSON] = None, password: Optional["_models.SecretBase"] = None, api_token: Optional["_models.SecretBase"] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -64821,9 +64821,8 @@ def __init__( :keyword api_token: The api token for the Zendesk source. :paramtype api_token: ~azure.mgmt.datafactory.models.SecretBase :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, @@ -64923,9 +64922,8 @@ class ZohoLinkedService(LinkedService): # pylint: disable=too-many-instance-att connecting over SSL. The default value is true. :vartype use_peer_verification: JSON :ivar encrypted_credential: The encrypted credential used for authentication. Credentials are - encrypted using the integration runtime credential manager. Type: string (or Expression with - resultType string). - :vartype encrypted_credential: JSON + encrypted using the integration runtime credential manager. Type: string. + :vartype encrypted_credential: str """ _validation = { @@ -64945,7 +64943,7 @@ class ZohoLinkedService(LinkedService): # pylint: disable=too-many-instance-att "use_encrypted_endpoints": {"key": "typeProperties.useEncryptedEndpoints", "type": "object"}, "use_host_verification": {"key": "typeProperties.useHostVerification", "type": "object"}, "use_peer_verification": {"key": "typeProperties.usePeerVerification", "type": "object"}, - "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "object"}, + "encrypted_credential": {"key": "typeProperties.encryptedCredential", "type": "str"}, } def __init__( @@ -64962,7 +64960,7 @@ def __init__( use_encrypted_endpoints: Optional[JSON] = None, use_host_verification: Optional[JSON] = None, use_peer_verification: Optional[JSON] = None, - encrypted_credential: Optional[JSON] = None, + encrypted_credential: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -64995,9 +64993,8 @@ def __init__( connecting over SSL. The default value is true. :paramtype use_peer_verification: JSON :keyword encrypted_credential: The encrypted credential used for authentication. Credentials - are encrypted using the integration runtime credential manager. Type: string (or Expression - with resultType string). - :paramtype encrypted_credential: JSON + are encrypted using the integration runtime credential manager. Type: string. + :paramtype encrypted_credential: str """ super().__init__( additional_properties=additional_properties, diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_activity_runs_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_activity_runs_operations.py index 74ceb49a10e0..dde617b49552 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_activity_runs_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_activity_runs_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload from azure.core.exceptions import ( @@ -28,10 +28,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -45,7 +41,7 @@ def build_query_by_pipeline_run_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -201,16 +197,14 @@ def query_by_pipeline_run( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ActivityRunsQueryResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(filter_parameters, (IO, bytes)): + if isinstance(filter_parameters, (IOBase, bytes)): _content = filter_parameters else: _json = self._serialize.body(filter_parameters, "RunFilterParameters") @@ -231,8 +225,9 @@ def query_by_pipeline_run( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_credential_operations_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_credential_operations_operations.py index 3a4b3074ace4..574cd561cc57 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_credential_operations_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_credential_operations_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse @@ -30,10 +30,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -47,7 +43,7 @@ def build_list_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -93,7 +89,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -152,7 +148,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -202,7 +198,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -283,9 +279,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.CredentialListResponse] = kwargs.pop("cls", None) error_map = { @@ -339,8 +333,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -467,16 +462,14 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ManagedIdentityCredentialResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(credential, (IO, bytes)): + if isinstance(credential, (IOBase, bytes)): _content = credential else: _json = self._serialize.body(credential, "ManagedIdentityCredentialResource") @@ -498,8 +491,9 @@ def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -556,9 +550,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.ManagedIdentityCredentialResource]] = kwargs.pop("cls", None) request = build_get_request( @@ -575,8 +567,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -626,9 +619,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -644,8 +635,9 @@ def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_data_flow_debug_session_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_data_flow_debug_session_operations.py index 258c573a4873..2dadac8c562a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_data_flow_debug_session_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_data_flow_debug_session_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload import urllib.parse @@ -32,10 +32,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -49,7 +45,7 @@ def build_create_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -92,7 +88,7 @@ def build_query_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -132,7 +128,7 @@ def build_add_data_flow_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -175,7 +171,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -218,7 +214,7 @@ def build_execute_command_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -292,16 +288,14 @@ def _create_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Optional[_models.CreateDataFlowDebugSessionResponse]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(request, (IO, bytes)): + if isinstance(request, (IOBase, bytes)): _content = request else: _json = self._serialize.body(request, "CreateDataFlowDebugSessionRequest") @@ -321,8 +315,9 @@ def _create_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -457,9 +452,7 @@ def begin_create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CreateDataFlowDebugSessionResponse] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -523,9 +516,7 @@ def query_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.QueryDataFlowDebugSessionsResponse] = kwargs.pop("cls", None) error_map = { @@ -579,8 +570,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -686,16 +678,14 @@ def add_data_flow( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AddDataFlowToDebugSessionResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(request, (IO, bytes)): + if isinstance(request, (IOBase, bytes)): _content = request else: _json = self._serialize.body(request, "DataFlowDebugPackage") @@ -715,8 +705,9 @@ def add_data_flow( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -826,16 +817,14 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(request, (IO, bytes)): + if isinstance(request, (IOBase, bytes)): _content = request else: _json = self._serialize.body(request, "DeleteDataFlowDebugSessionRequest") @@ -855,8 +844,9 @@ def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -890,16 +880,14 @@ def _execute_command_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Optional[_models.DataFlowDebugCommandResponse]] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(request, (IO, bytes)): + if isinstance(request, (IOBase, bytes)): _content = request else: _json = self._serialize.body(request, "DataFlowDebugCommandRequest") @@ -919,8 +907,9 @@ def _execute_command_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1055,9 +1044,7 @@ def begin_execute_command( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DataFlowDebugCommandResponse] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_data_flows_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_data_flows_operations.py index d3c93a8c7dd1..af1b7e382cb4 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_data_flows_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_data_flows_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse @@ -30,10 +30,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -53,7 +49,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -112,7 +108,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -162,7 +158,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -210,7 +206,7 @@ def build_list_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -374,16 +370,14 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DataFlowResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(data_flow, (IO, bytes)): + if isinstance(data_flow, (IOBase, bytes)): _content = data_flow else: _json = self._serialize.body(data_flow, "DataFlowResource") @@ -405,8 +399,9 @@ def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -463,9 +458,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.DataFlowResource] = kwargs.pop("cls", None) request = build_get_request( @@ -482,8 +475,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -531,9 +525,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -549,8 +541,9 @@ def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -584,9 +577,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.DataFlowListResponse] = kwargs.pop("cls", None) error_map = { @@ -640,8 +631,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_datasets_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_datasets_operations.py index 7d2c990b5f3c..bc056e58ac71 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_datasets_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_datasets_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse @@ -30,10 +30,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -47,7 +43,7 @@ def build_list_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -93,7 +89,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -152,7 +148,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -202,7 +198,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -281,9 +277,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.DatasetListResponse] = kwargs.pop("cls", None) error_map = { @@ -337,8 +331,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -465,16 +460,14 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.DatasetResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(dataset, (IO, bytes)): + if isinstance(dataset, (IOBase, bytes)): _content = dataset else: _json = self._serialize.body(dataset, "DatasetResource") @@ -496,8 +489,9 @@ def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -554,9 +548,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.DatasetResource]] = kwargs.pop("cls", None) request = build_get_request( @@ -573,8 +565,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -624,9 +617,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -642,8 +633,9 @@ def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_exposure_control_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_exposure_control_operations.py index 9a16bb63b53b..9bd4eb49473f 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_exposure_control_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_exposure_control_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload from azure.core.exceptions import ( @@ -28,10 +28,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -43,7 +39,7 @@ def build_get_feature_value_request(location_id: str, subscription_id: str, **kw _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -76,7 +72,7 @@ def build_get_feature_value_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -119,7 +115,7 @@ def build_query_feature_values_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -248,16 +244,14 @@ def get_feature_value( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExposureControlResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(exposure_control_request, (IO, bytes)): + if isinstance(exposure_control_request, (IOBase, bytes)): _content = exposure_control_request else: _json = self._serialize.body(exposure_control_request, "ExposureControlRequest") @@ -276,8 +270,9 @@ def get_feature_value( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -387,16 +382,14 @@ def get_feature_value_by_factory( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExposureControlResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(exposure_control_request, (IO, bytes)): + if isinstance(exposure_control_request, (IOBase, bytes)): _content = exposure_control_request else: _json = self._serialize.body(exposure_control_request, "ExposureControlRequest") @@ -416,8 +409,9 @@ def get_feature_value_by_factory( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -531,16 +525,14 @@ def query_feature_values_by_factory( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ExposureControlBatchResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(exposure_control_batch_request, (IO, bytes)): + if isinstance(exposure_control_batch_request, (IOBase, bytes)): _content = exposure_control_batch_request else: _json = self._serialize.body(exposure_control_batch_request, "ExposureControlBatchRequest") @@ -560,8 +552,9 @@ def query_feature_values_by_factory( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_factories_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_factories_operations.py index fcf952730729..0bdf923ed021 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_factories_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_factories_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse @@ -30,10 +30,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -45,7 +41,7 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -69,7 +65,7 @@ def build_configure_factory_repo_request(location_id: str, subscription_id: str, _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -100,7 +96,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -132,7 +128,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -177,7 +173,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -225,7 +221,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -267,7 +263,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -307,7 +303,7 @@ def build_get_git_hub_access_token_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -350,7 +346,7 @@ def build_get_data_plane_access_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -418,9 +414,7 @@ def list(self, **kwargs: Any) -> Iterable["_models.Factory"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.FactoryListResponse] = kwargs.pop("cls", None) error_map = { @@ -472,8 +466,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -560,16 +555,14 @@ def configure_factory_repo( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Factory] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(factory_repo_update, (IO, bytes)): + if isinstance(factory_repo_update, (IOBase, bytes)): _content = factory_repo_update else: _json = self._serialize.body(factory_repo_update, "FactoryRepoUpdate") @@ -588,8 +581,9 @@ def configure_factory_repo( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -623,9 +617,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.FactoryListResponse] = kwargs.pop("cls", None) error_map = { @@ -678,8 +670,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -796,16 +789,14 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Factory] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(factory, (IO, bytes)): + if isinstance(factory, (IOBase, bytes)): _content = factory else: _json = self._serialize.body(factory, "Factory") @@ -826,8 +817,9 @@ def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -937,16 +929,14 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Factory] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(factory_update_parameters, (IO, bytes)): + if isinstance(factory_update_parameters, (IOBase, bytes)): _content = factory_update_parameters else: _json = self._serialize.body(factory_update_parameters, "FactoryUpdateParameters") @@ -966,8 +956,9 @@ def update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1017,9 +1008,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.Factory]] = kwargs.pop("cls", None) request = build_get_request( @@ -1035,8 +1024,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1084,9 +1074,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -1101,8 +1089,9 @@ def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1209,16 +1198,14 @@ def get_git_hub_access_token( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.GitHubAccessTokenResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(git_hub_access_token_request, (IO, bytes)): + if isinstance(git_hub_access_token_request, (IOBase, bytes)): _content = git_hub_access_token_request else: _json = self._serialize.body(git_hub_access_token_request, "GitHubAccessTokenRequest") @@ -1238,8 +1225,9 @@ def get_git_hub_access_token( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1345,16 +1333,14 @@ def get_data_plane_access( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AccessPolicyResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(policy, (IO, bytes)): + if isinstance(policy, (IOBase, bytes)): _content = policy else: _json = self._serialize.body(policy, "UserAccessPolicy") @@ -1374,8 +1360,9 @@ def get_data_plane_access( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_global_parameters_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_global_parameters_operations.py index 0153454c068b..f6e1086126e2 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_global_parameters_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_global_parameters_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse @@ -30,10 +30,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -47,7 +43,7 @@ def build_list_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -87,7 +83,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -135,7 +131,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -186,7 +182,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -266,9 +262,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.GlobalParameterListResponse] = kwargs.pop("cls", None) error_map = { @@ -322,8 +316,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -367,9 +362,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.GlobalParameterResource] = kwargs.pop("cls", None) request = build_get_request( @@ -385,8 +378,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -505,16 +499,14 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.GlobalParameterResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(default, (IO, bytes)): + if isinstance(default, (IOBase, bytes)): _content = default else: _json = self._serialize.body(default, "GlobalParameterResource") @@ -535,8 +527,9 @@ def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -584,9 +577,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -602,8 +593,9 @@ def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_nodes_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_nodes_operations.py index 4103c203d8b7..aabdf7499337 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_nodes_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_nodes_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload from azure.core.exceptions import ( @@ -28,10 +28,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -50,7 +46,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -106,7 +102,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -162,7 +158,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -221,7 +217,7 @@ def build_get_ip_address_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -315,9 +311,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.SelfHostedIntegrationRuntimeNode] = kwargs.pop("cls", None) request = build_get_request( @@ -334,8 +328,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -385,9 +380,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -404,8 +397,9 @@ def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -533,16 +527,14 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SelfHostedIntegrationRuntimeNode] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(update_integration_runtime_node_request, (IO, bytes)): + if isinstance(update_integration_runtime_node_request, (IOBase, bytes)): _content = update_integration_runtime_node_request else: _json = self._serialize.body(update_integration_runtime_node_request, "UpdateIntegrationRuntimeNodeRequest") @@ -564,8 +556,9 @@ def update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -615,9 +608,7 @@ def get_ip_address( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeNodeIpAddress] = kwargs.pop("cls", None) request = build_get_ip_address_request( @@ -634,8 +625,9 @@ def get_ip_address( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_object_metadata_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_object_metadata_operations.py index ba5ae41d0c63..48d3c3f1d34b 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_object_metadata_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtime_object_metadata_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload from azure.core.exceptions import ( @@ -30,10 +30,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -47,7 +43,7 @@ def build_refresh_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -95,7 +91,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -173,9 +169,7 @@ def _refresh_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.SsisObjectMetadataStatusResponse]] = kwargs.pop("cls", None) request = build_refresh_request( @@ -191,8 +185,9 @@ def _refresh_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -243,9 +238,7 @@ def begin_refresh( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.SsisObjectMetadataStatusResponse] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -392,16 +385,14 @@ def get( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.SsisObjectMetadataListResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(get_metadata_request, (IO, bytes)): + if isinstance(get_metadata_request, (IOBase, bytes)): _content = get_metadata_request else: if get_metadata_request is not None: @@ -425,8 +416,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtimes_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtimes_operations.py index bd1aa86d231f..9b22b245fe6c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtimes_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_integration_runtimes_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload import urllib.parse @@ -32,10 +32,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -49,7 +45,7 @@ def build_list_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -95,7 +91,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -154,7 +150,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -204,7 +200,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -255,7 +251,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -303,7 +299,7 @@ def build_get_status_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -351,7 +347,7 @@ def build_list_outbound_network_dependencies_endpoints_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -399,7 +395,7 @@ def build_get_connection_info_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -447,7 +443,7 @@ def build_regenerate_auth_key_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -498,7 +494,7 @@ def build_list_auth_keys_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -546,7 +542,7 @@ def build_start_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -594,7 +590,7 @@ def build_stop_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -642,7 +638,7 @@ def build_sync_credentials_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -690,7 +686,7 @@ def build_get_monitoring_data_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -738,7 +734,7 @@ def build_upgrade_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -786,7 +782,7 @@ def build_remove_links_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -837,7 +833,7 @@ def build_create_linked_integration_runtime_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -920,9 +916,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeListResponse] = kwargs.pop("cls", None) error_map = { @@ -976,8 +970,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1107,16 +1102,14 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(integration_runtime, (IO, bytes)): + if isinstance(integration_runtime, (IOBase, bytes)): _content = integration_runtime else: _json = self._serialize.body(integration_runtime, "IntegrationRuntimeResource") @@ -1138,8 +1131,9 @@ def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1196,9 +1190,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.IntegrationRuntimeResource]] = kwargs.pop("cls", None) request = build_get_request( @@ -1215,8 +1207,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1341,16 +1334,14 @@ def update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.IntegrationRuntimeResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(update_integration_runtime_request, (IO, bytes)): + if isinstance(update_integration_runtime_request, (IOBase, bytes)): _content = update_integration_runtime_request else: _json = self._serialize.body(update_integration_runtime_request, "UpdateIntegrationRuntimeRequest") @@ -1371,8 +1362,9 @@ def update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1420,9 +1412,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -1438,8 +1428,9 @@ def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1483,9 +1474,7 @@ def get_status( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) request = build_get_status_request( @@ -1501,8 +1490,9 @@ def get_status( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1552,9 +1542,7 @@ def list_outbound_network_dependencies_endpoints( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse] = kwargs.pop("cls", None) request = build_list_outbound_network_dependencies_endpoints_request( @@ -1570,8 +1558,9 @@ def list_outbound_network_dependencies_endpoints( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1622,9 +1611,7 @@ def get_connection_info( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeConnectionInfo] = kwargs.pop("cls", None) request = build_get_connection_info_request( @@ -1640,8 +1627,9 @@ def get_connection_info( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1765,16 +1753,14 @@ def regenerate_auth_key( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.IntegrationRuntimeAuthKeys] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(regenerate_key_parameters, (IO, bytes)): + if isinstance(regenerate_key_parameters, (IOBase, bytes)): _content = regenerate_key_parameters else: _json = self._serialize.body(regenerate_key_parameters, "IntegrationRuntimeRegenerateKeyParameters") @@ -1795,8 +1781,9 @@ def regenerate_auth_key( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1844,9 +1831,7 @@ def list_auth_keys( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeAuthKeys] = kwargs.pop("cls", None) request = build_list_auth_keys_request( @@ -1862,8 +1847,9 @@ def list_auth_keys( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1897,9 +1883,7 @@ def _start_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.IntegrationRuntimeStatusResponse]] = kwargs.pop("cls", None) request = build_start_request( @@ -1915,8 +1899,9 @@ def _start_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1967,9 +1952,7 @@ def begin_start( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -2026,9 +2009,7 @@ def _stop_initial( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_stop_request( @@ -2044,8 +2025,9 @@ def _stop_initial( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -2088,9 +2070,7 @@ def begin_stop( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -2162,9 +2142,7 @@ def sync_credentials( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_sync_credentials_request( @@ -2180,8 +2158,9 @@ def sync_credentials( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -2226,9 +2205,7 @@ def get_monitoring_data( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.IntegrationRuntimeMonitoringData] = kwargs.pop("cls", None) request = build_get_monitoring_data_request( @@ -2244,8 +2221,9 @@ def get_monitoring_data( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -2293,9 +2271,7 @@ def upgrade( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_upgrade_request( @@ -2311,8 +2287,9 @@ def upgrade( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -2434,16 +2411,14 @@ def remove_links( # pylint: disable=inconsistent-return-statements _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(linked_integration_runtime_request, (IO, bytes)): + if isinstance(linked_integration_runtime_request, (IOBase, bytes)): _content = linked_integration_runtime_request else: _json = self._serialize.body(linked_integration_runtime_request, "LinkedIntegrationRuntimeRequest") @@ -2464,8 +2439,9 @@ def remove_links( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -2584,16 +2560,14 @@ def create_linked_integration_runtime( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.IntegrationRuntimeStatusResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(create_linked_integration_runtime_request, (IO, bytes)): + if isinstance(create_linked_integration_runtime_request, (IOBase, bytes)): _content = create_linked_integration_runtime_request else: _json = self._serialize.body( @@ -2616,8 +2590,9 @@ def create_linked_integration_runtime( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_linked_services_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_linked_services_operations.py index 3cbe58ea4e93..84e48ee70613 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_linked_services_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_linked_services_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse @@ -30,10 +30,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -47,7 +43,7 @@ def build_list_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -93,7 +89,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -152,7 +148,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -202,7 +198,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -282,9 +278,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.LinkedServiceListResponse] = kwargs.pop("cls", None) error_map = { @@ -338,8 +332,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -469,16 +464,14 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.LinkedServiceResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(linked_service, (IO, bytes)): + if isinstance(linked_service, (IOBase, bytes)): _content = linked_service else: _json = self._serialize.body(linked_service, "LinkedServiceResource") @@ -500,8 +493,9 @@ def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -558,9 +552,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.LinkedServiceResource]] = kwargs.pop("cls", None) request = build_get_request( @@ -577,8 +569,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -628,9 +621,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -646,8 +637,9 @@ def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_managed_private_endpoints_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_managed_private_endpoints_operations.py index 02387ca70f3e..18b723347176 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_managed_private_endpoints_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_managed_private_endpoints_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse @@ -30,10 +30,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -47,7 +43,7 @@ def build_list_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -102,7 +98,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -170,7 +166,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -233,7 +229,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -324,9 +320,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ManagedPrivateEndpointListResponse] = kwargs.pop("cls", None) error_map = { @@ -381,8 +375,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -522,16 +517,14 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ManagedPrivateEndpointResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(managed_private_endpoint, (IO, bytes)): + if isinstance(managed_private_endpoint, (IOBase, bytes)): _content = managed_private_endpoint else: _json = self._serialize.body(managed_private_endpoint, "ManagedPrivateEndpointResource") @@ -554,8 +547,9 @@ def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -615,9 +609,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ManagedPrivateEndpointResource] = kwargs.pop("cls", None) request = build_get_request( @@ -635,8 +627,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -691,9 +684,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -710,8 +701,9 @@ def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_managed_virtual_networks_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_managed_virtual_networks_operations.py index 7bc1159469b6..b5ef2920903b 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_managed_virtual_networks_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_managed_virtual_networks_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse @@ -30,10 +30,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -47,7 +43,7 @@ def build_list_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -93,7 +89,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -152,7 +148,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -235,9 +231,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ManagedVirtualNetworkListResponse] = kwargs.pop("cls", None) error_map = { @@ -291,8 +285,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -423,16 +418,14 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.ManagedVirtualNetworkResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(managed_virtual_network, (IO, bytes)): + if isinstance(managed_virtual_network, (IOBase, bytes)): _content = managed_virtual_network else: _json = self._serialize.body(managed_virtual_network, "ManagedVirtualNetworkResource") @@ -454,8 +447,9 @@ def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -512,9 +506,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ManagedVirtualNetworkResource] = kwargs.pop("cls", None) request = build_get_request( @@ -531,8 +523,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_operations.py index 8af29aa5b695..b4a19caa42d1 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, Callable, Dict, Iterable, Optional, TypeVar import urllib.parse @@ -30,10 +29,6 @@ from .._serialization import Serializer from .._vendor import _convert_request -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -45,7 +40,7 @@ def build_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -91,9 +86,7 @@ def list(self, **kwargs: Any) -> Iterable["_models.Operation"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.OperationListResponse] = kwargs.pop("cls", None) error_map = { @@ -144,8 +137,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_pipeline_runs_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_pipeline_runs_operations.py index 73723a0b09c2..c3a9f1b88691 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_pipeline_runs_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_pipeline_runs_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload from azure.core.exceptions import ( @@ -28,10 +28,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -45,7 +41,7 @@ def build_query_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -88,7 +84,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -135,7 +131,7 @@ def build_cancel_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -281,16 +277,14 @@ def query_by_factory( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PipelineRunsQueryResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(filter_parameters, (IO, bytes)): + if isinstance(filter_parameters, (IOBase, bytes)): _content = filter_parameters else: _json = self._serialize.body(filter_parameters, "RunFilterParameters") @@ -310,8 +304,9 @@ def query_by_factory( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -357,9 +352,7 @@ def get(self, resource_group_name: str, factory_name: str, run_id: str, **kwargs _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.PipelineRun] = kwargs.pop("cls", None) request = build_get_request( @@ -375,8 +368,9 @@ def get(self, resource_group_name: str, factory_name: str, run_id: str, **kwargs request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -432,9 +426,7 @@ def cancel( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_cancel_request( @@ -451,8 +443,9 @@ def cancel( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_pipelines_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_pipelines_operations.py index b52f507dd9cb..79ac70596717 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_pipelines_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_pipelines_operations.py @@ -6,6 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from io import IOBase import sys from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse @@ -34,10 +35,6 @@ from collections.abc import MutableMapping else: from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -52,7 +49,7 @@ def build_list_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -98,7 +95,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -157,7 +154,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -207,7 +204,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -264,7 +261,7 @@ def build_create_run_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -356,9 +353,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.PipelineListResponse] = kwargs.pop("cls", None) error_map = { @@ -412,8 +407,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -540,16 +536,14 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PipelineResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(pipeline, (IO, bytes)): + if isinstance(pipeline, (IOBase, bytes)): _content = pipeline else: _json = self._serialize.body(pipeline, "PipelineResource") @@ -571,8 +565,9 @@ def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -629,9 +624,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.PipelineResource]] = kwargs.pop("cls", None) request = build_get_request( @@ -648,8 +641,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -699,9 +693,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -717,8 +709,9 @@ def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -889,16 +882,14 @@ def create_run( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.CreateRunResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(parameters, (IO, bytes)): + if isinstance(parameters, (IOBase, bytes)): _content = parameters else: if parameters is not None: @@ -926,8 +917,9 @@ def create_run( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_end_point_connections_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_end_point_connections_operations.py index 86407b53472d..fcab37fa5a20 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_end_point_connections_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_end_point_connections_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, Callable, Dict, Iterable, Optional, TypeVar import urllib.parse @@ -30,10 +29,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -47,7 +42,7 @@ def build_list_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -120,9 +115,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.PrivateEndpointConnectionListResponse] = kwargs.pop("cls", None) error_map = { @@ -176,8 +169,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_endpoint_connection_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_endpoint_connection_operations.py index e47ec5607375..af6c9467d72c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_endpoint_connection_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_endpoint_connection_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload from azure.core.exceptions import ( @@ -28,10 +28,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -51,7 +47,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -105,7 +101,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -154,7 +150,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -326,16 +322,14 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.PrivateEndpointConnectionResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(private_endpoint_wrapper, (IO, bytes)): + if isinstance(private_endpoint_wrapper, (IOBase, bytes)): _content = private_endpoint_wrapper else: _json = self._serialize.body(private_endpoint_wrapper, "PrivateLinkConnectionApprovalRequestResource") @@ -357,8 +351,9 @@ def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -415,9 +410,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.PrivateEndpointConnectionResource] = kwargs.pop("cls", None) request = build_get_request( @@ -434,8 +427,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -483,9 +477,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -501,8 +493,9 @@ def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_link_resources_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_link_resources_operations.py index c41c64876eaa..e01ec7c7dbc2 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_link_resources_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_private_link_resources_operations.py @@ -6,7 +6,6 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any, Callable, Dict, Optional, TypeVar from azure.core.exceptions import ( @@ -28,10 +27,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -43,7 +38,7 @@ def build_get_request(resource_group_name: str, factory_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -120,9 +115,7 @@ def get(self, resource_group_name: str, factory_name: str, **kwargs: Any) -> _mo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.PrivateLinkResourcesWrapper] = kwargs.pop("cls", None) request = build_get_request( @@ -137,8 +130,9 @@ def get(self, resource_group_name: str, factory_name: str, **kwargs: Any) -> _mo request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_trigger_runs_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_trigger_runs_operations.py index 2610f456a071..c3401601cbeb 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_trigger_runs_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_trigger_runs_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload from azure.core.exceptions import ( @@ -28,10 +28,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -45,7 +41,7 @@ def build_rerun_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -94,7 +90,7 @@ def build_cancel_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -143,7 +139,7 @@ def build_query_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -229,9 +225,7 @@ def rerun( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_rerun_request( @@ -248,8 +242,9 @@ def rerun( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -295,9 +290,7 @@ def cancel( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_cancel_request( @@ -314,8 +307,9 @@ def cancel( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -421,16 +415,14 @@ def query_by_factory( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TriggerRunsQueryResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(filter_parameters, (IO, bytes)): + if isinstance(filter_parameters, (IOBase, bytes)): _content = filter_parameters else: _json = self._serialize.body(filter_parameters, "RunFilterParameters") @@ -450,8 +442,9 @@ def query_by_factory( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_triggers_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_triggers_operations.py index a9d9c64898a7..242698eca50a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_triggers_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_triggers_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload import urllib.parse @@ -32,10 +32,6 @@ from .._serialization import Serializer from .._vendor import _convert_request, _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -49,7 +45,7 @@ def build_list_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -89,7 +85,7 @@ def build_query_by_factory_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -138,7 +134,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -197,7 +193,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -247,7 +243,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -295,7 +291,7 @@ def build_subscribe_to_events_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -343,7 +339,7 @@ def build_get_event_subscription_status_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -391,7 +387,7 @@ def build_unsubscribe_from_events_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -439,7 +435,7 @@ def build_start_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -487,7 +483,7 @@ def build_stop_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2018-06-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -566,9 +562,7 @@ def list_by_factory( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.TriggerListResponse] = kwargs.pop("cls", None) error_map = { @@ -622,8 +616,9 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -729,16 +724,14 @@ def query_by_factory( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TriggerQueryResponse] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(filter_parameters, (IO, bytes)): + if isinstance(filter_parameters, (IOBase, bytes)): _content = filter_parameters else: _json = self._serialize.body(filter_parameters, "TriggerFilterParameters") @@ -758,8 +751,9 @@ def query_by_factory( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -890,16 +884,14 @@ def create_or_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.TriggerResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None _content = None - if isinstance(trigger, (IO, bytes)): + if isinstance(trigger, (IOBase, bytes)): _content = trigger else: _json = self._serialize.body(trigger, "TriggerResource") @@ -921,8 +913,9 @@ def create_or_update( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -979,9 +972,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.TriggerResource]] = kwargs.pop("cls", None) request = build_get_request( @@ -998,8 +989,9 @@ def get( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1049,9 +1041,7 @@ def delete( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_delete_request( @@ -1067,8 +1057,9 @@ def delete( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1098,9 +1089,7 @@ def _subscribe_to_events_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.TriggerSubscriptionOperationStatus]] = kwargs.pop("cls", None) request = build_subscribe_to_events_request( @@ -1116,8 +1105,9 @@ def _subscribe_to_events_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1168,9 +1158,7 @@ def begin_subscribe_to_events( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1241,9 +1229,7 @@ def get_event_subscription_status( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) request = build_get_event_subscription_status_request( @@ -1259,8 +1245,9 @@ def get_event_subscription_status( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1294,9 +1281,7 @@ def _unsubscribe_from_events_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[Optional[_models.TriggerSubscriptionOperationStatus]] = kwargs.pop("cls", None) request = build_unsubscribe_from_events_request( @@ -1312,8 +1297,9 @@ def _unsubscribe_from_events_initial( request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1364,9 +1350,7 @@ def begin_unsubscribe_from_events( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.TriggerSubscriptionOperationStatus] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1423,9 +1407,7 @@ def _start_initial( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_start_request( @@ -1441,8 +1423,9 @@ def _start_initial( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1485,9 +1468,7 @@ def begin_start( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1542,9 +1523,7 @@ def _stop_initial( # pylint: disable=inconsistent-return-statements _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) request = build_stop_request( @@ -1560,8 +1539,9 @@ def _stop_initial( # pylint: disable=inconsistent-return-statements request = _convert_request(request) request.url = self._client.format_url(request.url) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1604,9 +1584,7 @@ def begin_stop( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2018-06-01"] = kwargs.pop( - "api_version", _params.pop("api-version", self._config.api_version) - ) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_delete.py index 78148b9851bb..2f11b533cd77 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_delete.py @@ -29,12 +29,11 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.credential_operations.delete( + client.credential_operations.delete( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", credential_name="exampleCredential", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_delete.py index 4cf9717e32f0..0c088894f52e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_delete.py @@ -29,12 +29,11 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.data_flow_debug_session.delete( + client.data_flow_debug_session.delete( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", request={"sessionId": "91fb57e0-8292-47be-89ff-c8f2d2bb2a7e"}, ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Delete.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_delete.py index 367b1499bc88..ff38280b1ae1 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_delete.py @@ -29,12 +29,11 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.data_flows.delete( + client.data_flows.delete( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", data_flow_name="exampleDataFlow", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_delete.py index 96005a1b97b7..1d9057087069 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_delete.py @@ -29,12 +29,11 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.datasets.delete( + client.datasets.delete( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", dataset_name="exampleDataset", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/delete_private_endpoint_connection.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/delete_private_endpoint_connection.py index 7bb6b8610235..d4d7374994aa 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/delete_private_endpoint_connection.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/delete_private_endpoint_connection.py @@ -29,12 +29,11 @@ def main(): subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", ) - response = client.private_endpoint_connection.delete( + client.private_endpoint_connection.delete( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", private_endpoint_connection_name="connection", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DeletePrivateEndpointConnection.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_delete.py index 6a25a45b0056..8491113ab999 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_delete.py @@ -29,11 +29,10 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.factories.delete( + client.factories.delete( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_delete.py index ce059dba7511..5c01f1bbf799 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_delete.py @@ -29,12 +29,11 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.global_parameters.delete( + client.global_parameters.delete( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", global_parameter_name="default", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Delete.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_delete.py index 890275e51b18..8d14988db7ce 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_delete.py @@ -29,13 +29,12 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.integration_runtime_nodes.delete( + client.integration_runtime_nodes.delete( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", integration_runtime_name="exampleIntegrationRuntime", node_name="Node_1", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_delete.py index 4667097eff43..5c97b05c0290 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_delete.py @@ -29,12 +29,11 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.integration_runtimes.delete( + client.integration_runtimes.delete( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", integration_runtime_name="exampleIntegrationRuntime", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_remove_links.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_remove_links.py index a77b0dc65e70..3c4534541edc 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_remove_links.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_remove_links.py @@ -29,13 +29,12 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.integration_runtimes.remove_links( + client.integration_runtimes.remove_links( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", integration_runtime_name="exampleIntegrationRuntime", linked_integration_runtime_request={"factoryName": "exampleFactoryName-linked"}, ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_stop.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_stop.py index 747e2d8854b7..7bd1fa2c295a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_stop.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_stop.py @@ -29,12 +29,11 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.integration_runtimes.begin_stop( + client.integration_runtimes.begin_stop( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", integration_runtime_name="exampleManagedIntegrationRuntime", ).result() - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_sync_credentials.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_sync_credentials.py index 14cb54320cad..2c1760ccf429 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_sync_credentials.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_sync_credentials.py @@ -29,12 +29,11 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.integration_runtimes.sync_credentials( + client.integration_runtimes.sync_credentials( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", integration_runtime_name="exampleIntegrationRuntime", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_upgrade.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_upgrade.py index f0bee541b854..eb6c687df761 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_upgrade.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_upgrade.py @@ -29,12 +29,11 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.integration_runtimes.upgrade( + client.integration_runtimes.upgrade( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", integration_runtime_name="exampleIntegrationRuntime", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_delete.py index ce3b0d95cad1..82be70cc1315 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_delete.py @@ -29,12 +29,11 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.linked_services.delete( + client.linked_services.delete( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", linked_service_name="exampleLinkedService", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_delete.py index 430542ebcbfe..eeafb5400b10 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_delete.py @@ -29,13 +29,12 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.managed_private_endpoints.delete( + client.managed_private_endpoints.delete( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", managed_virtual_network_name="exampleManagedVirtualNetworkName", managed_private_endpoint_name="exampleManagedPrivateEndpointName", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Delete.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_cancel.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_cancel.py index 1255f2627e43..7b61ffcc634c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_cancel.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_cancel.py @@ -29,12 +29,11 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.pipeline_runs.cancel( + client.pipeline_runs.cancel( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", run_id="16ac5348-ff82-4f95-a80d-638c1d47b721", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_delete.py index 9c32a2f7eeec..a3930e4cdc00 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_delete.py @@ -29,12 +29,11 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.pipelines.delete( + client.pipelines.delete( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", pipeline_name="examplePipeline", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_cancel.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_cancel.py index 53f5958809d7..e6397d3adbbe 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_cancel.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_cancel.py @@ -29,13 +29,12 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.trigger_runs.cancel( + client.trigger_runs.cancel( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", trigger_name="exampleTrigger", run_id="2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_rerun.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_rerun.py index 17237b977b04..7028af759654 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_rerun.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_rerun.py @@ -29,13 +29,12 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.trigger_runs.rerun( + client.trigger_runs.rerun( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", trigger_name="exampleTrigger", run_id="2f7fdb90-5df1-4b8e-ac2f-064cfa58202b", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_delete.py index 2f954469afe2..4ee618779ac7 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_delete.py @@ -29,12 +29,11 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.triggers.delete( + client.triggers.delete( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", trigger_name="exampleTrigger", ) - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_start.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_start.py index 92f7bfd20e88..096366ecd39e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_start.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_start.py @@ -29,12 +29,11 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.triggers.begin_start( + client.triggers.begin_start( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", trigger_name="exampleTrigger", ).result() - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_stop.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_stop.py index bbadbb26a214..98e2d192636f 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_stop.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_stop.py @@ -29,12 +29,11 @@ def main(): subscription_id="12345678-1234-1234-1234-12345678abc", ) - response = client.triggers.begin_stop( + client.triggers.begin_stop( resource_group_name="exampleResourceGroup", factory_name="exampleFactoryName", trigger_name="exampleTrigger", ).result() - print(response) # x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json