diff --git a/sdk/datafactory/azure-mgmt-datafactory/_meta.json b/sdk/datafactory/azure-mgmt-datafactory/_meta.json index 813b485eae9f..06e69f72fa8f 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/_meta.json +++ b/sdk/datafactory/azure-mgmt-datafactory/_meta.json @@ -1,11 +1,11 @@ { - "commit": "c45a7f47c1901149828eb8a33c74898c554659c0", + "commit": "3cc6612e8b95657fac253ebfe4774a0bfd2b56a9", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.9.7", "use": [ - "@autorest/python@6.7.1", - "@autorest/modelerfour@4.26.2" + "@autorest/python@6.13.7", + "@autorest/modelerfour@4.27.0" ], - "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.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --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.13.7 --use=@autorest/modelerfour@4.27.0 --version=3.9.7 --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 77c8fb24db69..ed3c1a32555f 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_configuration.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_configuration.py @@ -8,7 +8,6 @@ from typing import Any, TYPE_CHECKING -from azure.core.configuration import Configuration from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy @@ -19,7 +18,7 @@ from azure.core.credentials import TokenCredential -class DataFactoryManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes +class DataFactoryManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long """Configuration for DataFactoryManagementClient. Note that all parameters used to create this instance are saved as instance @@ -35,7 +34,6 @@ class DataFactoryManagementClientConfiguration(Configuration): # pylint: disabl """ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None: - super(DataFactoryManagementClientConfiguration, self).__init__(**kwargs) api_version: str = kwargs.pop("api_version", "2018-06-01") if credential is None: @@ -48,6 +46,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) kwargs.setdefault("sdk_moniker", "mgmt-datafactory/{}".format(VERSION)) + self.polling_interval = kwargs.get("polling_interval", 30) self._configure(**kwargs) def _configure(self, **kwargs: Any) -> None: @@ -56,9 +55,9 @@ def _configure(self, **kwargs: Any) -> None: self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs) + self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs) self.authentication_policy = kwargs.get("authentication_policy") if self.credential and not self.authentication_policy: self.authentication_policy = ARMChallengeAuthenticationPolicy( 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 8c7a2f18d7e2..9d12f544c419 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 @@ -9,8 +9,10 @@ from copy import deepcopy from typing import Any, TYPE_CHECKING +from azure.core.pipeline import policies from azure.core.rest import HttpRequest, HttpResponse from azure.mgmt.core import ARMPipelineClient +from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy from . import models as _models from ._configuration import DataFactoryManagementClientConfiguration @@ -129,7 +131,25 @@ def __init__( self._config = DataFactoryManagementClientConfiguration( credential=credential, subscription_id=subscription_id, **kwargs ) - self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) + _policies = kwargs.pop("policies", None) + if _policies is None: + _policies = [ + policies.RequestIdPolicy(**kwargs), + self._config.headers_policy, + self._config.user_agent_policy, + self._config.proxy_policy, + policies.ContentDecodePolicy(**kwargs), + ARMAutoResourceProviderRegistrationPolicy(), + self._config.redirect_policy, + self._config.retry_policy, + self._config.authentication_policy, + self._config.custom_hook_policy, + self._config.logging_policy, + policies.DistributedTracingPolicy(**kwargs), + policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, + self._config.http_logging_policy, + ] + self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) @@ -185,7 +205,7 @@ def __init__( self._client, self._config, self._serialize, self._deserialize ) - def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse: + def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: """Runs the network request through the client's chained policies. >>> from azure.core.rest import HttpRequest @@ -205,7 +225,7 @@ def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse: request_copy = deepcopy(request) request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, **kwargs) + return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore def close(self) -> None: self._client.close() 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 4bae2292227b..2f781d740827 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_serialization.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/_serialization.py @@ -63,8 +63,8 @@ import isodate # type: ignore -from azure.core.exceptions import DeserializationError, SerializationError, raise_with_traceback -from azure.core.serialization import NULL as AzureCoreNull +from azure.core.exceptions import DeserializationError, SerializationError +from azure.core.serialization import NULL as CoreNull _BOM = codecs.BOM_UTF8.decode(encoding="utf-8") @@ -124,7 +124,7 @@ def deserialize_from_text(cls, data: Optional[Union[AnyStr, IO]], content_type: pass return ET.fromstring(data_as_str) # nosec - except ET.ParseError: + except ET.ParseError as err: # It might be because the server has an issue, and returned JSON with # content-type XML.... # So let's try a JSON load, and if it's still broken @@ -143,7 +143,7 @@ def _json_attemp(data): # The function hack is because Py2.7 messes up with exception # context otherwise. _LOGGER.critical("Wasn't XML not JSON, failing") - raise_with_traceback(DeserializationError, "XML is invalid") + raise DeserializationError("XML is invalid") from err raise DeserializationError("Cannot deserialize content-type: {}".format(content_type)) @classmethod @@ -170,13 +170,6 @@ def deserialize_from_http_generics(cls, body_bytes: Optional[Union[AnyStr, IO]], return None -try: - basestring # type: ignore - unicode_str = unicode # type: ignore -except NameError: - basestring = str - unicode_str = str - _LOGGER = logging.getLogger(__name__) try: @@ -295,7 +288,7 @@ class Model(object): _validation: Dict[str, Dict[str, Any]] = {} def __init__(self, **kwargs: Any) -> None: - self.additional_properties: Dict[str, Any] = {} + self.additional_properties: Optional[Dict[str, Any]] = {} for k in kwargs: if k not in self._attribute_map: _LOGGER.warning("%s is not a known attribute of class %s and will be ignored", k, self.__class__) @@ -340,7 +333,7 @@ def _create_xml_node(cls): return _create_xml_node(xml_map.get("name", cls.__name__), xml_map.get("prefix", None), xml_map.get("ns", None)) def serialize(self, keep_readonly: bool = False, **kwargs: Any) -> JSON: - """Return the JSON that would be sent to azure from this model. + """Return the JSON that would be sent to server from this model. This is an alias to `as_dict(full_restapi_key_transformer, keep_readonly=False)`. @@ -351,7 +344,7 @@ def serialize(self, keep_readonly: bool = False, **kwargs: Any) -> JSON: :rtype: dict """ serializer = Serializer(self._infer_class_models()) - return serializer._serialize(self, keep_readonly=keep_readonly, **kwargs) + return serializer._serialize(self, keep_readonly=keep_readonly, **kwargs) # type: ignore def as_dict( self, @@ -390,7 +383,7 @@ def my_key_transformer(key, attr_desc, value): :rtype: dict """ serializer = Serializer(self._infer_class_models()) - return serializer._serialize(self, key_transformer=key_transformer, keep_readonly=keep_readonly, **kwargs) + return serializer._serialize(self, key_transformer=key_transformer, keep_readonly=keep_readonly, **kwargs) # type: ignore @classmethod def _infer_class_models(cls): @@ -415,7 +408,7 @@ def deserialize(cls: Type[ModelType], data: Any, content_type: Optional[str] = N :raises: DeserializationError if something went wrong """ deserializer = Deserializer(cls._infer_class_models()) - return deserializer(cls.__name__, data, content_type=content_type) + return deserializer(cls.__name__, data, content_type=content_type) # type: ignore @classmethod def from_dict( @@ -445,7 +438,7 @@ def from_dict( if key_extractors is None else key_extractors ) - return deserializer(cls.__name__, data, content_type=content_type) + return deserializer(cls.__name__, data, content_type=content_type) # type: ignore @classmethod def _flatten_subtype(cls, key, objects): @@ -545,7 +538,7 @@ class Serializer(object): "multiple": lambda x, y: x % y != 0, } - def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None): + def __init__(self, classes: Optional[Mapping[str, type]] = None): self.serialize_type = { "iso-8601": Serializer.serialize_iso, "rfc-1123": Serializer.serialize_rfc, @@ -561,7 +554,7 @@ def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None): "[]": self.serialize_iter, "{}": self.serialize_dict, } - self.dependencies: Dict[str, Type[ModelType]] = dict(classes) if classes else {} + self.dependencies: Dict[str, type] = dict(classes) if classes else {} self.key_transformer = full_restapi_key_transformer self.client_side_validation = True @@ -649,7 +642,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs): else: # That's a basic type # Integrate namespace if necessary local_node = _create_xml_node(xml_name, xml_prefix, xml_ns) - local_node.text = unicode_str(new_attr) + local_node.text = str(new_attr) serialized.append(local_node) # type: ignore else: # JSON for k in reversed(keys): # type: ignore @@ -668,7 +661,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs): except (AttributeError, KeyError, TypeError) as err: msg = "Attribute {} in object {} cannot be serialized.\n{}".format(attr_name, class_name, str(target_obj)) - raise_with_traceback(SerializationError, msg, err) + raise SerializationError(msg) from err else: return serialized @@ -710,7 +703,7 @@ def body(self, data, data_type, **kwargs): ] data = deserializer._deserialize(data_type, data) except DeserializationError as err: - raise_with_traceback(SerializationError, "Unable to build a model: " + str(err), err) + raise SerializationError("Unable to build a model: " + str(err)) from err return self._serialize(data, data_type, **kwargs) @@ -730,6 +723,7 @@ def url(self, name, data, data_type, **kwargs): if kwargs.get("skip_quote") is True: output = str(output) + output = output.replace("{", quote("{")).replace("}", quote("}")) else: output = quote(str(output), safe="") except SerializationError: @@ -744,7 +738,7 @@ def query(self, name, data, data_type, **kwargs): :param str data_type: The type to be serialized from. :keyword bool skip_quote: Whether to skip quote the serialized result. Defaults to False. - :rtype: str + :rtype: str, list :raises: TypeError if serialization fails. :raises: ValueError if data is None """ @@ -753,7 +747,7 @@ def query(self, name, data, data_type, **kwargs): if data_type.startswith("["): internal_data_type = data_type[1:-1] do_quote = not kwargs.get("skip_quote", False) - return str(self.serialize_iter(data, internal_data_type, do_quote=do_quote, **kwargs)) + return self.serialize_iter(data, internal_data_type, do_quote=do_quote, **kwargs) # Not a list, regular serialization output = self.serialize_data(data, data_type, **kwargs) @@ -804,7 +798,7 @@ def serialize_data(self, data, data_type, **kwargs): raise ValueError("No value for given attribute") try: - if data is AzureCoreNull: + if data is CoreNull: return None if data_type in self.basic_types.values(): return self.serialize_basic(data, data_type, **kwargs) @@ -824,7 +818,7 @@ def serialize_data(self, data, data_type, **kwargs): except (ValueError, TypeError) as err: msg = "Unable to serialize value: {!r} as type: {!r}." - raise_with_traceback(SerializationError, msg.format(data, data_type), err) + raise SerializationError(msg.format(data, data_type)) from err else: return self._serialize(data, **kwargs) @@ -993,7 +987,7 @@ def serialize_object(self, attr, **kwargs): return self.serialize_basic(attr, self.basic_types[obj_type], **kwargs) if obj_type is _long_type: return self.serialize_long(attr) - if obj_type is unicode_str: + if obj_type is str: return self.serialize_unicode(attr) if obj_type is datetime.datetime: return self.serialize_iso(attr) @@ -1170,10 +1164,10 @@ def serialize_iso(attr, **kwargs): return date + microseconds + "Z" except (ValueError, OverflowError) as err: msg = "Unable to serialize datetime object." - raise_with_traceback(SerializationError, msg, err) + raise SerializationError(msg) from err except AttributeError as err: msg = "ISO-8601 object must be valid Datetime object." - raise_with_traceback(TypeError, msg, err) + raise TypeError(msg) from err @staticmethod def serialize_unix(attr, **kwargs): @@ -1209,7 +1203,6 @@ def rest_key_extractor(attr, attr_desc, data): if working_data is None: # If at any point while following flatten JSON path see None, it means # that all properties under are None as well - # https://github.com/Azure/msrest-for-python/issues/197 return None key = ".".join(dict_keys[1:]) @@ -1230,7 +1223,6 @@ def rest_key_case_insensitive_extractor(attr, attr_desc, data): if working_data is None: # If at any point while following flatten JSON path see None, it means # that all properties under are None as well - # https://github.com/Azure/msrest-for-python/issues/197 return None key = ".".join(dict_keys[1:]) @@ -1371,7 +1363,7 @@ class Deserializer(object): valid_date = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?") - def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None): + def __init__(self, classes: Optional[Mapping[str, type]] = None): self.deserialize_type = { "iso-8601": Deserializer.deserialize_iso, "rfc-1123": Deserializer.deserialize_rfc, @@ -1391,7 +1383,7 @@ def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None): "duration": (isodate.Duration, datetime.timedelta), "iso-8601": (datetime.datetime), } - self.dependencies: Dict[str, Type[ModelType]] = dict(classes) if classes else {} + self.dependencies: Dict[str, type] = dict(classes) if classes else {} self.key_extractors = [rest_key_extractor, xml_key_extractor] # Additional properties only works if the "rest_key_extractor" is used to # extract the keys. Making it to work whatever the key extractor is too much @@ -1444,7 +1436,7 @@ def _deserialize(self, target_obj, data): response, class_name = self._classify_target(target_obj, data) - if isinstance(response, basestring): + if isinstance(response, str): return self.deserialize_data(data, response) elif isinstance(response, type) and issubclass(response, Enum): return self.deserialize_enum(data, response) @@ -1481,7 +1473,7 @@ def _deserialize(self, target_obj, data): d_attrs[attr] = value except (AttributeError, TypeError, KeyError) as err: msg = "Unable to deserialize to object: " + class_name # type: ignore - raise_with_traceback(DeserializationError, msg, err) + raise DeserializationError(msg) from err else: additional_properties = self._build_additional_properties(attributes, data) return self._instantiate_model(response, d_attrs, additional_properties) @@ -1515,14 +1507,14 @@ def _classify_target(self, target, data): if target is None: return None, None - if isinstance(target, basestring): + if isinstance(target, str): try: target = self.dependencies[target] except KeyError: return target, target try: - target = target._classify(data, self.dependencies) + target = target._classify(data, self.dependencies) # type: ignore except AttributeError: pass # Target is not a Model, no classify return target, target.__class__.__name__ # type: ignore @@ -1578,7 +1570,7 @@ def _unpack_content(raw_data, content_type=None): if hasattr(raw_data, "_content_consumed"): return RawDeserializer.deserialize_from_http_generics(raw_data.text, raw_data.headers) - if isinstance(raw_data, (basestring, bytes)) or hasattr(raw_data, "read"): + if isinstance(raw_data, (str, bytes)) or hasattr(raw_data, "read"): return RawDeserializer.deserialize_from_text(raw_data, content_type) # type: ignore return raw_data @@ -1652,7 +1644,7 @@ def deserialize_data(self, data, data_type): except (ValueError, TypeError, AttributeError) as err: msg = "Unable to deserialize response data." msg += " Data: {}, {}".format(data, data_type) - raise_with_traceback(DeserializationError, msg, err) + raise DeserializationError(msg) from err else: return self._deserialize(obj_type, data) @@ -1700,7 +1692,7 @@ def deserialize_object(self, attr, **kwargs): if isinstance(attr, ET.Element): # Do no recurse on XML, just return the tree as-is return attr - if isinstance(attr, basestring): + if isinstance(attr, str): return self.deserialize_basic(attr, "str") obj_type = type(attr) if obj_type in self.basic_types: @@ -1757,7 +1749,7 @@ def deserialize_basic(self, attr, data_type): if data_type == "bool": if attr in [True, False, 1, 0]: return bool(attr) - elif isinstance(attr, basestring): + elif isinstance(attr, str): if attr.lower() in ["true", "1"]: return True elif attr.lower() in ["false", "0"]: @@ -1808,7 +1800,6 @@ def deserialize_enum(data, enum_obj): data = data.value if isinstance(data, int): # Workaround. We might consider remove it in the future. - # https://github.com/Azure/azure-rest-api-specs/issues/141 try: return list(enum_obj.__members__.values())[data] except IndexError: @@ -1862,10 +1853,10 @@ def deserialize_decimal(attr): if isinstance(attr, ET.Element): attr = attr.text try: - return decimal.Decimal(attr) # type: ignore + return decimal.Decimal(str(attr)) # type: ignore except decimal.DecimalException as err: msg = "Invalid decimal {}".format(attr) - raise_with_traceback(DeserializationError, msg, err) + raise DeserializationError(msg) from err @staticmethod def deserialize_long(attr): @@ -1893,7 +1884,7 @@ def deserialize_duration(attr): duration = isodate.parse_duration(attr) except (ValueError, OverflowError, AttributeError) as err: msg = "Cannot deserialize duration object." - raise_with_traceback(DeserializationError, msg, err) + raise DeserializationError(msg) from err else: return duration @@ -1910,7 +1901,7 @@ def deserialize_date(attr): if re.search(r"[^\W\d_]", attr, re.I + re.U): # type: ignore raise DeserializationError("Date must have only digits and -. Received: %s" % attr) # This must NOT use defaultmonth/defaultday. Using None ensure this raises an exception. - return isodate.parse_date(attr, defaultmonth=None, defaultday=None) + return isodate.parse_date(attr, defaultmonth=0, defaultday=0) @staticmethod def deserialize_time(attr): @@ -1945,7 +1936,7 @@ def deserialize_rfc(attr): date_obj = date_obj.astimezone(tz=TZ_UTC) except ValueError as err: msg = "Cannot deserialize to rfc datetime object." - raise_with_traceback(DeserializationError, msg, err) + raise DeserializationError(msg) from err else: return date_obj @@ -1982,7 +1973,7 @@ def deserialize_iso(attr): raise OverflowError("Hit max or min date") except (ValueError, OverflowError, AttributeError) as err: msg = "Cannot deserialize datetime object." - raise_with_traceback(DeserializationError, msg, err) + raise DeserializationError(msg) from err else: return date_obj @@ -1998,9 +1989,10 @@ def deserialize_unix(attr): if isinstance(attr, ET.Element): attr = int(attr.text) # type: ignore try: + attr = int(attr) date_obj = datetime.datetime.fromtimestamp(attr, TZ_UTC) except ValueError as err: msg = "Cannot deserialize to unix datetime object." - raise_with_traceback(DeserializationError, msg, err) + raise DeserializationError(msg) from err else: return date_obj 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 92453d8691d9..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 = "6.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 23f2cc2228c0..0eefe72711ac 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 @@ -8,7 +8,6 @@ from typing import Any, TYPE_CHECKING -from azure.core.configuration import Configuration from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy @@ -19,7 +18,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class DataFactoryManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes +class DataFactoryManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long """Configuration for DataFactoryManagementClient. Note that all parameters used to create this instance are saved as instance @@ -35,7 +34,6 @@ class DataFactoryManagementClientConfiguration(Configuration): # pylint: disabl """ def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None: - super(DataFactoryManagementClientConfiguration, self).__init__(**kwargs) api_version: str = kwargs.pop("api_version", "2018-06-01") if credential is None: @@ -48,6 +46,7 @@ def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **k self.api_version = api_version self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"]) kwargs.setdefault("sdk_moniker", "mgmt-datafactory/{}".format(VERSION)) + self.polling_interval = kwargs.get("polling_interval", 30) self._configure(**kwargs) def _configure(self, **kwargs: Any) -> None: @@ -56,9 +55,9 @@ def _configure(self, **kwargs: Any) -> None: self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs) self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs) self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs) - self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs) self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs) + self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs) self.authentication_policy = kwargs.get("authentication_policy") if self.credential and not self.authentication_policy: self.authentication_policy = AsyncARMChallengeAuthenticationPolicy( 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 4076603e5dbc..ec9b4794fbad 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 @@ -9,8 +9,10 @@ from copy import deepcopy from typing import Any, Awaitable, TYPE_CHECKING +from azure.core.pipeline import policies from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient +from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy from .. import models as _models from .._serialization import Deserializer, Serializer @@ -130,7 +132,25 @@ def __init__( self._config = DataFactoryManagementClientConfiguration( credential=credential, subscription_id=subscription_id, **kwargs ) - self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs) + _policies = kwargs.pop("policies", None) + if _policies is None: + _policies = [ + policies.RequestIdPolicy(**kwargs), + self._config.headers_policy, + self._config.user_agent_policy, + self._config.proxy_policy, + policies.ContentDecodePolicy(**kwargs), + AsyncARMAutoResourceProviderRegistrationPolicy(), + self._config.redirect_policy, + self._config.retry_policy, + self._config.authentication_policy, + self._config.custom_hook_policy, + self._config.logging_policy, + policies.DistributedTracingPolicy(**kwargs), + policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, + self._config.http_logging_policy, + ] + self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) @@ -186,7 +206,9 @@ def __init__( self._client, self._config, self._serialize, self._deserialize ) - def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]: + def _send_request( + self, request: HttpRequest, *, stream: bool = False, **kwargs: Any + ) -> Awaitable[AsyncHttpResponse]: """Runs the network request through the client's chained policies. >>> from azure.core.rest import HttpRequest @@ -206,7 +228,7 @@ def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncH request_copy = deepcopy(request) request_copy.url = self._client.format_url(request_copy.url) - return self._client.send_request(request_copy, **kwargs) + return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore async def close(self) -> None: await self._client.close() 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 77f97edd8eb6..4fe6b0424a92 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -75,7 +75,6 @@ async def query_by_pipeline_run( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ActivityRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -87,7 +86,7 @@ async def query_by_pipeline_run( resource_group_name: str, factory_name: str, run_id: str, - filter_parameters: IO, + filter_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -101,11 +100,10 @@ async def query_by_pipeline_run( :param run_id: The pipeline run identifier. Required. :type run_id: str :param filter_parameters: Parameters to filter the activity runs. Required. - :type filter_parameters: IO + :type filter_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ActivityRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -117,7 +115,7 @@ async def query_by_pipeline_run( resource_group_name: str, factory_name: str, run_id: str, - filter_parameters: Union[_models.RunFilterParameters, IO], + filter_parameters: Union[_models.RunFilterParameters, IO[bytes]], **kwargs: Any ) -> _models.ActivityRunsQueryResponse: """Query activity runs based on input filter conditions. @@ -129,12 +127,8 @@ async def query_by_pipeline_run( :param run_id: The pipeline run identifier. Required. :type run_id: str :param filter_parameters: Parameters to filter the activity runs. Is either a - RunFilterParameters type or a IO type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + RunFilterParameters type or a IO[bytes] type. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO[bytes] :return: ActivityRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -162,7 +156,7 @@ async def query_by_pipeline_run( else: _json = self._serialize.body(filter_parameters, "RunFilterParameters") - request = build_query_by_pipeline_run_request( + _request = build_query_by_pipeline_run_request( resource_group_name=resource_group_name, factory_name=factory_name, run_id=run_id, @@ -171,16 +165,15 @@ async def query_by_pipeline_run( content_type=content_type, json=_json, content=_content, - template_url=self.query_by_pipeline_run.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -192,10 +185,6 @@ async def query_by_pipeline_run( deserialized = self._deserialize("ActivityRunsQueryResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - query_by_pipeline_run.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/queryActivityruns" - } + return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_change_data_capture_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_change_data_capture_operations.py index 78abc5ac2961..4dbb2cba776e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_change_data_capture_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/aio/operations/_change_data_capture_operations.py @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -72,7 +72,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ChangeDataCaptureResource or the result of cls(response) :rtype: @@ -96,17 +95,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -118,13 +116,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("ChangeDataCaptureListResponse", pipeline_response) @@ -134,11 +132,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -150,10 +148,6 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs" - } - @overload async def create_or_update( self, @@ -183,7 +177,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ChangeDataCaptureResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource :raises ~azure.core.exceptions.HttpResponseError: @@ -195,7 +188,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, change_data_capture_name: str, - change_data_capture: IO, + change_data_capture: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -210,7 +203,7 @@ async def create_or_update( :param change_data_capture_name: The change data capture name. Required. :type change_data_capture_name: str :param change_data_capture: Change data capture resource definition. Required. - :type change_data_capture: IO + :type change_data_capture: IO[bytes] :param if_match: ETag of the change data capture entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. @@ -218,7 +211,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ChangeDataCaptureResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource :raises ~azure.core.exceptions.HttpResponseError: @@ -230,7 +222,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, change_data_capture_name: str, - change_data_capture: Union[_models.ChangeDataCaptureResource, IO], + change_data_capture: Union[_models.ChangeDataCaptureResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.ChangeDataCaptureResource: @@ -243,16 +235,13 @@ async def create_or_update( :param change_data_capture_name: The change data capture name. Required. :type change_data_capture_name: str :param change_data_capture: Change data capture resource definition. Is either a - ChangeDataCaptureResource type or a IO type. Required. - :type change_data_capture: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource or IO + ChangeDataCaptureResource type or a IO[bytes] type. Required. + :type change_data_capture: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource or + IO[bytes] :param if_match: ETag of the change data capture entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ChangeDataCaptureResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource :raises ~azure.core.exceptions.HttpResponseError: @@ -280,7 +269,7 @@ async def create_or_update( else: _json = self._serialize.body(change_data_capture, "ChangeDataCaptureResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, change_data_capture_name=change_data_capture_name, @@ -290,16 +279,15 @@ async def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -311,13 +299,9 @@ async def create_or_update( deserialized = self._deserialize("ChangeDataCaptureResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}" - } + return deserialized # type: ignore @distributed_trace_async async def get( @@ -340,7 +324,6 @@ async def get( If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ChangeDataCaptureResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource :raises ~azure.core.exceptions.HttpResponseError: @@ -359,23 +342,22 @@ async def get( api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ChangeDataCaptureResource] = kwargs.pop("cls", None) - request = build_get_request( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, change_data_capture_name=change_data_capture_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -387,13 +369,9 @@ async def get( deserialized = self._deserialize("ChangeDataCaptureResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}" - } + return deserialized # type: ignore @distributed_trace_async async def delete( # pylint: disable=inconsistent-return-statements @@ -407,7 +385,6 @@ async def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param change_data_capture_name: The change data capture name. Required. :type change_data_capture_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -426,22 +403,21 @@ async def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, change_data_capture_name=change_data_capture_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -451,11 +427,7 @@ async def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def start( # pylint: disable=inconsistent-return-statements @@ -469,7 +441,6 @@ async def start( # pylint: disable=inconsistent-return-statements :type factory_name: str :param change_data_capture_name: The change data capture name. Required. :type change_data_capture_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -488,22 +459,21 @@ async def start( # pylint: disable=inconsistent-return-statements 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( + _request = build_start_request( resource_group_name=resource_group_name, factory_name=factory_name, change_data_capture_name=change_data_capture_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.start.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -513,11 +483,7 @@ async def start( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - start.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/start" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def stop( # pylint: disable=inconsistent-return-statements @@ -531,7 +497,6 @@ async def stop( # pylint: disable=inconsistent-return-statements :type factory_name: str :param change_data_capture_name: The change data capture name. Required. :type change_data_capture_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -550,22 +515,21 @@ async def stop( # pylint: disable=inconsistent-return-statements 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( + _request = build_stop_request( resource_group_name=resource_group_name, factory_name=factory_name, change_data_capture_name=change_data_capture_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.stop.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -575,11 +539,7 @@ async def stop( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - stop.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/stop" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def status( @@ -593,7 +553,6 @@ async def status( :type factory_name: str :param change_data_capture_name: The change data capture name. Required. :type change_data_capture_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: str or the result of cls(response) :rtype: str :raises ~azure.core.exceptions.HttpResponseError: @@ -612,22 +571,21 @@ async def status( api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[str] = kwargs.pop("cls", None) - request = build_status_request( + _request = build_status_request( resource_group_name=resource_group_name, factory_name=factory_name, change_data_capture_name=change_data_capture_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.status.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -639,10 +597,6 @@ async def status( deserialized = self._deserialize("str", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - status.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/status" - } + return deserialized # type: ignore 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 3148130e0c97..6b6076d30fc9 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -62,18 +62,16 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace def list_by_factory( self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> AsyncIterable["_models.ManagedIdentityCredentialResource"]: + ) -> AsyncIterable["_models.CredentialResource"]: """List credentials. :param resource_group_name: The resource group name. Required. :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ManagedIdentityCredentialResource or the result of - cls(response) + :return: An iterator like instance of either CredentialResource or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.CredentialResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} @@ -93,17 +91,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -115,13 +112,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("CredentialListResponse", pipeline_response) @@ -131,11 +128,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -147,22 +144,18 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials" - } - @overload async def create_or_update( self, resource_group_name: str, factory_name: str, credential_name: str, - credential: _models.ManagedIdentityCredentialResource, + credential: _models.CredentialResource, if_match: Optional[str] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ManagedIdentityCredentialResource: + ) -> _models.CredentialResource: """Creates or updates a credential. :param resource_group_name: The resource group name. Required. @@ -172,16 +165,15 @@ async def create_or_update( :param credential_name: Credential name. Required. :type credential_name: str :param credential: Credential resource definition. Required. - :type credential: ~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource + :type credential: ~azure.mgmt.datafactory.models.CredentialResource :param if_match: ETag of the credential entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedIdentityCredentialResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource + :return: CredentialResource or the result of cls(response) + :rtype: ~azure.mgmt.datafactory.models.CredentialResource :raises ~azure.core.exceptions.HttpResponseError: """ @@ -191,12 +183,12 @@ async def create_or_update( resource_group_name: str, factory_name: str, credential_name: str, - credential: IO, + credential: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ManagedIdentityCredentialResource: + ) -> _models.CredentialResource: """Creates or updates a credential. :param resource_group_name: The resource group name. Required. @@ -206,16 +198,15 @@ async def create_or_update( :param credential_name: Credential name. Required. :type credential_name: str :param credential: Credential resource definition. Required. - :type credential: IO + :type credential: IO[bytes] :param if_match: ETag of the credential entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedIdentityCredentialResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource + :return: CredentialResource or the result of cls(response) + :rtype: ~azure.mgmt.datafactory.models.CredentialResource :raises ~azure.core.exceptions.HttpResponseError: """ @@ -225,10 +216,10 @@ async def create_or_update( resource_group_name: str, factory_name: str, credential_name: str, - credential: Union[_models.ManagedIdentityCredentialResource, IO], + credential: Union[_models.CredentialResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any - ) -> _models.ManagedIdentityCredentialResource: + ) -> _models.CredentialResource: """Creates or updates a credential. :param resource_group_name: The resource group name. Required. @@ -237,18 +228,14 @@ async def create_or_update( :type factory_name: str :param credential_name: Credential name. Required. :type credential_name: str - :param credential: Credential resource definition. Is either a - ManagedIdentityCredentialResource type or a IO type. Required. - :type credential: ~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource or IO + :param credential: Credential resource definition. Is either a CredentialResource type or a + IO[bytes] type. Required. + :type credential: ~azure.mgmt.datafactory.models.CredentialResource or IO[bytes] :param if_match: ETag of the credential entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedIdentityCredentialResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource + :return: CredentialResource or the result of cls(response) + :rtype: ~azure.mgmt.datafactory.models.CredentialResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { @@ -264,7 +251,7 @@ async def create_or_update( 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) + cls: ClsType[_models.CredentialResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None @@ -272,9 +259,9 @@ async def create_or_update( if isinstance(credential, (IOBase, bytes)): _content = credential else: - _json = self._serialize.body(credential, "ManagedIdentityCredentialResource") + _json = self._serialize.body(credential, "CredentialResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, credential_name=credential_name, @@ -284,16 +271,15 @@ async def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -302,16 +288,12 @@ async def create_or_update( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - deserialized = self._deserialize("ManagedIdentityCredentialResource", pipeline_response) + deserialized = self._deserialize("CredentialResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}" - } + return deserialized # type: ignore @distributed_trace_async async def get( @@ -321,7 +303,7 @@ async def get( credential_name: str, if_none_match: Optional[str] = None, **kwargs: Any - ) -> Optional[_models.ManagedIdentityCredentialResource]: + ) -> Optional[_models.CredentialResource]: """Gets a credential. :param resource_group_name: The resource group name. Required. @@ -334,9 +316,8 @@ async def get( ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedIdentityCredentialResource or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource or None + :return: CredentialResource or None or the result of cls(response) + :rtype: ~azure.mgmt.datafactory.models.CredentialResource or None :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { @@ -351,25 +332,24 @@ async def get( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.ManagedIdentityCredentialResource]] = kwargs.pop("cls", None) + cls: ClsType[Optional[_models.CredentialResource]] = kwargs.pop("cls", None) - request = build_get_request( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, credential_name=credential_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -380,16 +360,12 @@ async def get( deserialized = None if response.status_code == 200: - deserialized = self._deserialize("ManagedIdentityCredentialResource", pipeline_response) + deserialized = self._deserialize("CredentialResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}" - } + return deserialized # type: ignore @distributed_trace_async async def delete( # pylint: disable=inconsistent-return-statements @@ -403,7 +379,6 @@ async def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param credential_name: Credential name. Required. :type credential_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -422,22 +397,21 @@ async def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, credential_name=credential_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -447,8 +421,4 @@ async def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}" - } + return cls(pipeline_response, None, {}) # type: ignore 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 4768d96a0a33..47cfdab346db 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -66,7 +66,7 @@ async def _create_initial( self, resource_group_name: str, factory_name: str, - request: Union[_models.CreateDataFlowDebugSessionRequest, IO], + request: Union[_models.CreateDataFlowDebugSessionRequest, IO[bytes]], **kwargs: Any ) -> Optional[_models.CreateDataFlowDebugSessionResponse]: error_map = { @@ -92,7 +92,7 @@ async def _create_initial( else: _json = self._serialize.body(request, "CreateDataFlowDebugSessionRequest") - request = build_create_request( + _request = build_create_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -100,16 +100,15 @@ async def _create_initial( content_type=content_type, json=_json, content=_content, - template_url=self._create_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -127,13 +126,9 @@ async def _create_initial( response_headers["location"] = self._deserialize("str", response.headers.get("location")) if cls: - return cls(pipeline_response, deserialized, response_headers) + return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized - - _create_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/createDataFlowDebugSession" - } + return deserialized # type: ignore @overload async def begin_create( @@ -156,14 +151,6 @@ async def begin_create( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for - this operation to not poll, or pass in your own initialized polling object for a personal - polling strategy. - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of AsyncLROPoller that returns either CreateDataFlowDebugSessionResponse or the result of cls(response) :rtype: @@ -176,7 +163,7 @@ async def begin_create( self, resource_group_name: str, factory_name: str, - request: IO, + request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -188,18 +175,10 @@ async def begin_create( :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug session definition. Required. - :type request: IO + :type request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for - this operation to not poll, or pass in your own initialized polling object for a personal - polling strategy. - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of AsyncLROPoller that returns either CreateDataFlowDebugSessionResponse or the result of cls(response) :rtype: @@ -212,7 +191,7 @@ async def begin_create( self, resource_group_name: str, factory_name: str, - request: Union[_models.CreateDataFlowDebugSessionRequest, IO], + request: Union[_models.CreateDataFlowDebugSessionRequest, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.CreateDataFlowDebugSessionResponse]: """Creates a data flow debug session. @@ -222,19 +201,8 @@ async def begin_create( :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug session definition. Is either a - CreateDataFlowDebugSessionRequest type or a IO type. Required. - :type request: ~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for - this operation to not poll, or pass in your own initialized polling object for a personal - polling strategy. - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + CreateDataFlowDebugSessionRequest type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionRequest or IO[bytes] :return: An instance of AsyncLROPoller that returns either CreateDataFlowDebugSessionResponse or the result of cls(response) :rtype: @@ -267,7 +235,7 @@ async def begin_create( def get_long_running_output(pipeline_response): deserialized = self._deserialize("CreateDataFlowDebugSessionResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: @@ -277,17 +245,15 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller.from_continuation_token( + return AsyncLROPoller[_models.CreateDataFlowDebugSessionResponse].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_create.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/createDataFlowDebugSession" - } + return AsyncLROPoller[_models.CreateDataFlowDebugSessionResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) @distributed_trace def query_by_factory( @@ -299,7 +265,6 @@ def query_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DataFlowDebugSessionInfo or the result of cls(response) :rtype: @@ -323,17 +288,16 @@ def query_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_query_by_factory_request( + _request = build_query_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.query_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -345,13 +309,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("QueryDataFlowDebugSessionsResponse", pipeline_response) @@ -361,11 +325,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -377,10 +341,6 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - query_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryDataFlowDebugSessions" - } - @overload async def add_data_flow( self, @@ -402,7 +362,6 @@ async def add_data_flow( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: AddDataFlowToDebugSessionResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -413,7 +372,7 @@ async def add_data_flow( self, resource_group_name: str, factory_name: str, - request: IO, + request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -425,11 +384,10 @@ async def add_data_flow( :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug session definition with debug content. Required. - :type request: IO + :type request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: AddDataFlowToDebugSessionResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -440,7 +398,7 @@ async def add_data_flow( self, resource_group_name: str, factory_name: str, - request: Union[_models.DataFlowDebugPackage, IO], + request: Union[_models.DataFlowDebugPackage, IO[bytes]], **kwargs: Any ) -> _models.AddDataFlowToDebugSessionResponse: """Add a data flow into debug session. @@ -450,12 +408,8 @@ async def add_data_flow( :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug session definition with debug content. Is either a - DataFlowDebugPackage type or a IO type. Required. - :type request: ~azure.mgmt.datafactory.models.DataFlowDebugPackage or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + DataFlowDebugPackage type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.datafactory.models.DataFlowDebugPackage or IO[bytes] :return: AddDataFlowToDebugSessionResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -483,7 +437,7 @@ async def add_data_flow( else: _json = self._serialize.body(request, "DataFlowDebugPackage") - request = build_add_data_flow_request( + _request = build_add_data_flow_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -491,16 +445,15 @@ async def add_data_flow( content_type=content_type, json=_json, content=_content, - template_url=self.add_data_flow.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -512,13 +465,9 @@ async def add_data_flow( deserialized = self._deserialize("AddDataFlowToDebugSessionResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - add_data_flow.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/addDataFlowToDebugSession" - } + return deserialized # type: ignore @overload async def delete( # pylint: disable=inconsistent-return-statements @@ -541,7 +490,6 @@ async def delete( # pylint: disable=inconsistent-return-statements :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -552,7 +500,7 @@ async def delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, factory_name: str, - request: IO, + request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -564,11 +512,10 @@ async def delete( # pylint: disable=inconsistent-return-statements :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug session definition for deletion. Required. - :type request: IO + :type request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -579,7 +526,7 @@ async def delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, factory_name: str, - request: Union[_models.DeleteDataFlowDebugSessionRequest, IO], + request: Union[_models.DeleteDataFlowDebugSessionRequest, IO[bytes]], **kwargs: Any ) -> None: """Deletes a data flow debug session. @@ -589,12 +536,8 @@ async def delete( # pylint: disable=inconsistent-return-statements :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug session definition for deletion. Is either a - DeleteDataFlowDebugSessionRequest type or a IO type. Required. - :type request: ~azure.mgmt.datafactory.models.DeleteDataFlowDebugSessionRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + DeleteDataFlowDebugSessionRequest type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.datafactory.models.DeleteDataFlowDebugSessionRequest or IO[bytes] :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -622,7 +565,7 @@ async def delete( # pylint: disable=inconsistent-return-statements else: _json = self._serialize.body(request, "DeleteDataFlowDebugSessionRequest") - request = build_delete_request( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -630,16 +573,15 @@ async def delete( # pylint: disable=inconsistent-return-statements content_type=content_type, json=_json, content=_content, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -649,17 +591,13 @@ async def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/deleteDataFlowDebugSession" - } + return cls(pipeline_response, None, {}) # type: ignore async def _execute_command_initial( self, resource_group_name: str, factory_name: str, - request: Union[_models.DataFlowDebugCommandRequest, IO], + request: Union[_models.DataFlowDebugCommandRequest, IO[bytes]], **kwargs: Any ) -> Optional[_models.DataFlowDebugCommandResponse]: error_map = { @@ -685,7 +623,7 @@ async def _execute_command_initial( else: _json = self._serialize.body(request, "DataFlowDebugCommandRequest") - request = build_execute_command_request( + _request = build_execute_command_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -693,16 +631,15 @@ async def _execute_command_initial( content_type=content_type, json=_json, content=_content, - template_url=self._execute_command_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -720,13 +657,9 @@ async def _execute_command_initial( response_headers["location"] = self._deserialize("str", response.headers.get("location")) if cls: - return cls(pipeline_response, deserialized, response_headers) - - return deserialized + return cls(pipeline_response, deserialized, response_headers) # type: ignore - _execute_command_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/executeDataFlowDebugCommand" - } + return deserialized # type: ignore @overload async def begin_execute_command( @@ -749,14 +682,6 @@ async def begin_execute_command( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for - this operation to not poll, or pass in your own initialized polling object for a personal - polling strategy. - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DataFlowDebugCommandResponse or the result of cls(response) :rtype: @@ -769,7 +694,7 @@ async def begin_execute_command( self, resource_group_name: str, factory_name: str, - request: IO, + request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -781,18 +706,10 @@ async def begin_execute_command( :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug command definition. Required. - :type request: IO + :type request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for - this operation to not poll, or pass in your own initialized polling object for a personal - polling strategy. - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DataFlowDebugCommandResponse or the result of cls(response) :rtype: @@ -805,7 +722,7 @@ async def begin_execute_command( self, resource_group_name: str, factory_name: str, - request: Union[_models.DataFlowDebugCommandRequest, IO], + request: Union[_models.DataFlowDebugCommandRequest, IO[bytes]], **kwargs: Any ) -> AsyncLROPoller[_models.DataFlowDebugCommandResponse]: """Execute a data flow debug command. @@ -815,19 +732,8 @@ async def begin_execute_command( :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug command definition. Is either a DataFlowDebugCommandRequest - type or a IO type. Required. - :type request: ~azure.mgmt.datafactory.models.DataFlowDebugCommandRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for - this operation to not poll, or pass in your own initialized polling object for a personal - polling strategy. - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.datafactory.models.DataFlowDebugCommandRequest or IO[bytes] :return: An instance of AsyncLROPoller that returns either DataFlowDebugCommandResponse or the result of cls(response) :rtype: @@ -860,7 +766,7 @@ async def begin_execute_command( def get_long_running_output(pipeline_response): deserialized = self._deserialize("DataFlowDebugCommandResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: @@ -870,14 +776,12 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller.from_continuation_token( + return AsyncLROPoller[_models.DataFlowDebugCommandResponse].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_execute_command.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/executeDataFlowDebugCommand" - } + return AsyncLROPoller[_models.DataFlowDebugCommandResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) 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 b42b7355a6f4..fe8d1f3b4ec4 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -87,7 +87,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DataFlowResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DataFlowResource :raises ~azure.core.exceptions.HttpResponseError: @@ -99,7 +98,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, data_flow_name: str, - data_flow: IO, + data_flow: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -114,14 +113,13 @@ async def create_or_update( :param data_flow_name: The data flow name. Required. :type data_flow_name: str :param data_flow: Data flow resource definition. Required. - :type data_flow: IO + :type data_flow: IO[bytes] :param if_match: ETag of the data flow entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DataFlowResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DataFlowResource :raises ~azure.core.exceptions.HttpResponseError: @@ -133,7 +131,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, data_flow_name: str, - data_flow: Union[_models.DataFlowResource, IO], + data_flow: Union[_models.DataFlowResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.DataFlowResource: @@ -145,16 +143,12 @@ async def create_or_update( :type factory_name: str :param data_flow_name: The data flow name. Required. :type data_flow_name: str - :param data_flow: Data flow resource definition. Is either a DataFlowResource type or a IO - type. Required. - :type data_flow: ~azure.mgmt.datafactory.models.DataFlowResource or IO + :param data_flow: Data flow resource definition. Is either a DataFlowResource type or a + IO[bytes] type. Required. + :type data_flow: ~azure.mgmt.datafactory.models.DataFlowResource or IO[bytes] :param if_match: ETag of the data flow entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DataFlowResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DataFlowResource :raises ~azure.core.exceptions.HttpResponseError: @@ -182,7 +176,7 @@ async def create_or_update( else: _json = self._serialize.body(data_flow, "DataFlowResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, data_flow_name=data_flow_name, @@ -192,16 +186,15 @@ async def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -213,13 +206,9 @@ async def create_or_update( deserialized = self._deserialize("DataFlowResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}" - } + return deserialized # type: ignore @distributed_trace_async async def get( @@ -242,7 +231,6 @@ async def get( ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DataFlowResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DataFlowResource :raises ~azure.core.exceptions.HttpResponseError: @@ -261,23 +249,22 @@ async def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, data_flow_name=data_flow_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -289,13 +276,9 @@ async def get( deserialized = self._deserialize("DataFlowResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}" - } + return deserialized # type: ignore @distributed_trace_async async def delete( # pylint: disable=inconsistent-return-statements @@ -309,7 +292,6 @@ async def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param data_flow_name: The data flow name. Required. :type data_flow_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -328,22 +310,21 @@ async def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, data_flow_name=data_flow_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -353,11 +334,7 @@ async def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def list_by_factory( @@ -369,7 +346,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DataFlowResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.DataFlowResource] @@ -392,17 +368,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -414,13 +389,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("DataFlowListResponse", pipeline_response) @@ -430,11 +405,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -445,7 +420,3 @@ async def get_next(next_link=None): return pipeline_response return AsyncItemPaged(get_next, extract_data) - - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows" - } 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 b6437d029ed5..9ba9c2b25823 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -69,7 +69,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DatasetResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.DatasetResource] :raises ~azure.core.exceptions.HttpResponseError: @@ -91,17 +90,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -113,13 +111,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("DatasetListResponse", pipeline_response) @@ -129,11 +127,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -145,10 +143,6 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets" - } - @overload async def create_or_update( self, @@ -177,7 +171,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DatasetResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DatasetResource :raises ~azure.core.exceptions.HttpResponseError: @@ -189,7 +182,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, dataset_name: str, - dataset: IO, + dataset: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -204,14 +197,13 @@ async def create_or_update( :param dataset_name: The dataset name. Required. :type dataset_name: str :param dataset: Dataset resource definition. Required. - :type dataset: IO + :type dataset: IO[bytes] :param if_match: ETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DatasetResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DatasetResource :raises ~azure.core.exceptions.HttpResponseError: @@ -223,7 +215,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, dataset_name: str, - dataset: Union[_models.DatasetResource, IO], + dataset: Union[_models.DatasetResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.DatasetResource: @@ -235,16 +227,12 @@ async def create_or_update( :type factory_name: str :param dataset_name: The dataset name. Required. :type dataset_name: str - :param dataset: Dataset resource definition. Is either a DatasetResource type or a IO type. - Required. - :type dataset: ~azure.mgmt.datafactory.models.DatasetResource or IO + :param dataset: Dataset resource definition. Is either a DatasetResource type or a IO[bytes] + type. Required. + :type dataset: ~azure.mgmt.datafactory.models.DatasetResource or IO[bytes] :param if_match: ETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DatasetResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DatasetResource :raises ~azure.core.exceptions.HttpResponseError: @@ -272,7 +260,7 @@ async def create_or_update( else: _json = self._serialize.body(dataset, "DatasetResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, dataset_name=dataset_name, @@ -282,16 +270,15 @@ async def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -303,13 +290,9 @@ async def create_or_update( deserialized = self._deserialize("DatasetResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}" - } + return deserialized # type: ignore @distributed_trace_async async def get( @@ -332,7 +315,6 @@ async def get( matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DatasetResource or None or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DatasetResource or None :raises ~azure.core.exceptions.HttpResponseError: @@ -351,23 +333,22 @@ async def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, dataset_name=dataset_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -381,13 +362,9 @@ async def get( deserialized = self._deserialize("DatasetResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}" - } + return deserialized # type: ignore @distributed_trace_async async def delete( # pylint: disable=inconsistent-return-statements @@ -401,7 +378,6 @@ async def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param dataset_name: The dataset name. Required. :type dataset_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -420,22 +396,21 @@ async def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, dataset_name=dataset_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -445,8 +420,4 @@ async def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}" - } + return cls(pipeline_response, None, {}) # type: ignore 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 e24d45d54b98..1aa01c01c980 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -73,7 +73,6 @@ async def get_feature_value( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ExposureControlResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -81,18 +80,22 @@ async def get_feature_value( @overload async def get_feature_value( - self, location_id: str, exposure_control_request: IO, *, content_type: str = "application/json", **kwargs: Any + self, + location_id: str, + exposure_control_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any ) -> _models.ExposureControlResponse: """Get exposure control feature for specific location. :param location_id: The location identifier. Required. :type location_id: str :param exposure_control_request: The exposure control request. Required. - :type exposure_control_request: IO + :type exposure_control_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ExposureControlResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -100,19 +103,19 @@ async def get_feature_value( @distributed_trace_async async def get_feature_value( - self, location_id: str, exposure_control_request: Union[_models.ExposureControlRequest, IO], **kwargs: Any + self, + location_id: str, + exposure_control_request: Union[_models.ExposureControlRequest, IO[bytes]], + **kwargs: Any ) -> _models.ExposureControlResponse: """Get exposure control feature for specific location. :param location_id: The location identifier. Required. :type location_id: str :param exposure_control_request: The exposure control request. Is either a - ExposureControlRequest type or a IO type. Required. - :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ExposureControlRequest type or a IO[bytes] type. Required. + :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or + IO[bytes] :return: ExposureControlResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -140,23 +143,22 @@ async def get_feature_value( else: _json = self._serialize.body(exposure_control_request, "ExposureControlRequest") - request = build_get_feature_value_request( + _request = build_get_feature_value_request( location_id=location_id, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, - template_url=self.get_feature_value.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -168,13 +170,9 @@ async def get_feature_value( deserialized = self._deserialize("ExposureControlResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get_feature_value.metadata = { - "url": "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/getFeatureValue" - } + return deserialized # type: ignore @overload async def get_feature_value_by_factory( @@ -197,7 +195,6 @@ async def get_feature_value_by_factory( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ExposureControlResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -208,7 +205,7 @@ async def get_feature_value_by_factory( self, resource_group_name: str, factory_name: str, - exposure_control_request: IO, + exposure_control_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -220,11 +217,10 @@ async def get_feature_value_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param exposure_control_request: The exposure control request. Required. - :type exposure_control_request: IO + :type exposure_control_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ExposureControlResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -235,7 +231,7 @@ async def get_feature_value_by_factory( self, resource_group_name: str, factory_name: str, - exposure_control_request: Union[_models.ExposureControlRequest, IO], + exposure_control_request: Union[_models.ExposureControlRequest, IO[bytes]], **kwargs: Any ) -> _models.ExposureControlResponse: """Get exposure control feature for specific factory. @@ -245,12 +241,9 @@ async def get_feature_value_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param exposure_control_request: The exposure control request. Is either a - ExposureControlRequest type or a IO type. Required. - :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ExposureControlRequest type or a IO[bytes] type. Required. + :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or + IO[bytes] :return: ExposureControlResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -278,7 +271,7 @@ async def get_feature_value_by_factory( else: _json = self._serialize.body(exposure_control_request, "ExposureControlRequest") - request = build_get_feature_value_by_factory_request( + _request = build_get_feature_value_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -286,16 +279,15 @@ async def get_feature_value_by_factory( content_type=content_type, json=_json, content=_content, - template_url=self.get_feature_value_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -307,13 +299,9 @@ async def get_feature_value_by_factory( deserialized = self._deserialize("ExposureControlResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get_feature_value_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getFeatureValue" - } + return deserialized # type: ignore @overload async def query_feature_values_by_factory( @@ -338,7 +326,6 @@ async def query_feature_values_by_factory( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ExposureControlBatchResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -349,7 +336,7 @@ async def query_feature_values_by_factory( self, resource_group_name: str, factory_name: str, - exposure_control_batch_request: IO, + exposure_control_batch_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -362,11 +349,10 @@ async def query_feature_values_by_factory( :type factory_name: str :param exposure_control_batch_request: The exposure control request for list of features. Required. - :type exposure_control_batch_request: IO + :type exposure_control_batch_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ExposureControlBatchResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -377,7 +363,7 @@ async def query_feature_values_by_factory( self, resource_group_name: str, factory_name: str, - exposure_control_batch_request: Union[_models.ExposureControlBatchRequest, IO], + exposure_control_batch_request: Union[_models.ExposureControlBatchRequest, IO[bytes]], **kwargs: Any ) -> _models.ExposureControlBatchResponse: """Get list of exposure control features for specific factory. @@ -387,13 +373,9 @@ async def query_feature_values_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param exposure_control_batch_request: The exposure control request for list of features. Is - either a ExposureControlBatchRequest type or a IO type. Required. + either a ExposureControlBatchRequest type or a IO[bytes] type. Required. :type exposure_control_batch_request: - ~azure.mgmt.datafactory.models.ExposureControlBatchRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ~azure.mgmt.datafactory.models.ExposureControlBatchRequest or IO[bytes] :return: ExposureControlBatchResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -421,7 +403,7 @@ async def query_feature_values_by_factory( else: _json = self._serialize.body(exposure_control_batch_request, "ExposureControlBatchRequest") - request = build_query_feature_values_by_factory_request( + _request = build_query_feature_values_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -429,16 +411,15 @@ async def query_feature_values_by_factory( content_type=content_type, json=_json, content=_content, - template_url=self.query_feature_values_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -450,10 +431,6 @@ async def query_feature_values_by_factory( deserialized = self._deserialize("ExposureControlBatchResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - query_feature_values_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryFeaturesValue" - } + return deserialized # type: ignore 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 814bec939053..a5bb31530f81 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -68,7 +68,6 @@ def __init__(self, *args, **kwargs) -> None: def list(self, **kwargs: Any) -> AsyncIterable["_models.Factory"]: """Lists factories under the specified subscription. - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either Factory or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.Factory] :raises ~azure.core.exceptions.HttpResponseError: @@ -90,15 +89,14 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.Factory"]: def prepare_request(next_link=None): if not next_link: - request = build_list_request( + _request = build_list_request( subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -110,13 +108,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("FactoryListResponse", pipeline_response) @@ -126,11 +124,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -142,8 +140,6 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - list.metadata = {"url": "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/factories"} - @overload async def configure_factory_repo( self, @@ -162,7 +158,6 @@ async def configure_factory_repo( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -170,18 +165,17 @@ async def configure_factory_repo( @overload async def configure_factory_repo( - self, location_id: str, factory_repo_update: IO, *, content_type: str = "application/json", **kwargs: Any + self, location_id: str, factory_repo_update: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> _models.Factory: """Updates a factory's repo information. :param location_id: The location identifier. Required. :type location_id: str :param factory_repo_update: Update factory repo request definition. Required. - :type factory_repo_update: IO + :type factory_repo_update: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -189,19 +183,15 @@ async def configure_factory_repo( @distributed_trace_async async def configure_factory_repo( - self, location_id: str, factory_repo_update: Union[_models.FactoryRepoUpdate, IO], **kwargs: Any + self, location_id: str, factory_repo_update: Union[_models.FactoryRepoUpdate, IO[bytes]], **kwargs: Any ) -> _models.Factory: """Updates a factory's repo information. :param location_id: The location identifier. Required. :type location_id: str :param factory_repo_update: Update factory repo request definition. Is either a - FactoryRepoUpdate type or a IO type. Required. - :type factory_repo_update: ~azure.mgmt.datafactory.models.FactoryRepoUpdate or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + FactoryRepoUpdate type or a IO[bytes] type. Required. + :type factory_repo_update: ~azure.mgmt.datafactory.models.FactoryRepoUpdate or IO[bytes] :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -229,23 +219,22 @@ async def configure_factory_repo( else: _json = self._serialize.body(factory_repo_update, "FactoryRepoUpdate") - request = build_configure_factory_repo_request( + _request = build_configure_factory_repo_request( location_id=location_id, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, - template_url=self.configure_factory_repo.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -257,13 +246,9 @@ async def configure_factory_repo( deserialized = self._deserialize("Factory", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - configure_factory_repo.metadata = { - "url": "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo" - } + return deserialized # type: ignore @distributed_trace def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> AsyncIterable["_models.Factory"]: @@ -271,7 +256,6 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy :param resource_group_name: The resource group name. Required. :type resource_group_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either Factory or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.Factory] :raises ~azure.core.exceptions.HttpResponseError: @@ -293,16 +277,15 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy def prepare_request(next_link=None): if not next_link: - request = build_list_by_resource_group_request( + _request = build_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_resource_group.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -314,13 +297,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("FactoryListResponse", pipeline_response) @@ -330,11 +313,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -346,10 +329,6 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - list_by_resource_group.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories" - } - @overload async def create_or_update( self, @@ -375,7 +354,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -386,7 +364,7 @@ async def create_or_update( self, resource_group_name: str, factory_name: str, - factory: IO, + factory: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -399,14 +377,13 @@ async def create_or_update( :param factory_name: The factory name. Required. :type factory_name: str :param factory: Factory resource definition. Required. - :type factory: IO + :type factory: IO[bytes] :param if_match: ETag of the factory entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -417,7 +394,7 @@ async def create_or_update( self, resource_group_name: str, factory_name: str, - factory: Union[_models.Factory, IO], + factory: Union[_models.Factory, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.Factory: @@ -427,15 +404,12 @@ async def create_or_update( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :param factory: Factory resource definition. Is either a Factory type or a IO type. Required. - :type factory: ~azure.mgmt.datafactory.models.Factory or IO + :param factory: Factory resource definition. Is either a Factory type or a IO[bytes] type. + Required. + :type factory: ~azure.mgmt.datafactory.models.Factory or IO[bytes] :param if_match: ETag of the factory entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -463,7 +437,7 @@ async def create_or_update( else: _json = self._serialize.body(factory, "Factory") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -472,16 +446,15 @@ async def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -493,13 +466,9 @@ async def create_or_update( deserialized = self._deserialize("Factory", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}" - } + return deserialized # type: ignore @overload async def update( @@ -522,7 +491,6 @@ async def update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -533,7 +501,7 @@ async def update( self, resource_group_name: str, factory_name: str, - factory_update_parameters: IO, + factory_update_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -545,11 +513,10 @@ async def update( :param factory_name: The factory name. Required. :type factory_name: str :param factory_update_parameters: The parameters for updating a factory. Required. - :type factory_update_parameters: IO + :type factory_update_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -560,7 +527,7 @@ async def update( self, resource_group_name: str, factory_name: str, - factory_update_parameters: Union[_models.FactoryUpdateParameters, IO], + factory_update_parameters: Union[_models.FactoryUpdateParameters, IO[bytes]], **kwargs: Any ) -> _models.Factory: """Updates a factory. @@ -570,12 +537,9 @@ async def update( :param factory_name: The factory name. Required. :type factory_name: str :param factory_update_parameters: The parameters for updating a factory. Is either a - FactoryUpdateParameters type or a IO type. Required. - :type factory_update_parameters: ~azure.mgmt.datafactory.models.FactoryUpdateParameters or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + FactoryUpdateParameters type or a IO[bytes] type. Required. + :type factory_update_parameters: ~azure.mgmt.datafactory.models.FactoryUpdateParameters or + IO[bytes] :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -603,7 +567,7 @@ async def update( else: _json = self._serialize.body(factory_update_parameters, "FactoryUpdateParameters") - request = build_update_request( + _request = build_update_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -611,16 +575,15 @@ async def update( content_type=content_type, json=_json, content=_content, - template_url=self.update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -632,13 +595,9 @@ async def update( deserialized = self._deserialize("Factory", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}" - } + return deserialized # type: ignore @distributed_trace_async async def get( @@ -654,7 +613,6 @@ async def get( matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or None or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory or None :raises ~azure.core.exceptions.HttpResponseError: @@ -673,22 +631,21 @@ async def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -702,13 +659,9 @@ async def get( deserialized = self._deserialize("Factory", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}" - } + return deserialized # type: ignore @distributed_trace_async async def delete( # pylint: disable=inconsistent-return-statements @@ -720,7 +673,6 @@ async def delete( # pylint: disable=inconsistent-return-statements :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -739,21 +691,20 @@ async def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -763,11 +714,7 @@ async def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}" - } + return cls(pipeline_response, None, {}) # type: ignore @overload async def get_git_hub_access_token( @@ -790,7 +737,6 @@ async def get_git_hub_access_token( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: GitHubAccessTokenResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -801,7 +747,7 @@ async def get_git_hub_access_token( self, resource_group_name: str, factory_name: str, - git_hub_access_token_request: IO, + git_hub_access_token_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -813,11 +759,10 @@ async def get_git_hub_access_token( :param factory_name: The factory name. Required. :type factory_name: str :param git_hub_access_token_request: Get GitHub access token request definition. Required. - :type git_hub_access_token_request: IO + :type git_hub_access_token_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: GitHubAccessTokenResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -828,7 +773,7 @@ async def get_git_hub_access_token( self, resource_group_name: str, factory_name: str, - git_hub_access_token_request: Union[_models.GitHubAccessTokenRequest, IO], + git_hub_access_token_request: Union[_models.GitHubAccessTokenRequest, IO[bytes]], **kwargs: Any ) -> _models.GitHubAccessTokenResponse: """Get GitHub Access Token. @@ -838,13 +783,9 @@ async def get_git_hub_access_token( :param factory_name: The factory name. Required. :type factory_name: str :param git_hub_access_token_request: Get GitHub access token request definition. Is either a - GitHubAccessTokenRequest type or a IO type. Required. + GitHubAccessTokenRequest type or a IO[bytes] type. Required. :type git_hub_access_token_request: ~azure.mgmt.datafactory.models.GitHubAccessTokenRequest or - IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + IO[bytes] :return: GitHubAccessTokenResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -872,7 +813,7 @@ async def get_git_hub_access_token( else: _json = self._serialize.body(git_hub_access_token_request, "GitHubAccessTokenRequest") - request = build_get_git_hub_access_token_request( + _request = build_get_git_hub_access_token_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -880,16 +821,15 @@ async def get_git_hub_access_token( content_type=content_type, json=_json, content=_content, - template_url=self.get_git_hub_access_token.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -901,13 +841,9 @@ async def get_git_hub_access_token( deserialized = self._deserialize("GitHubAccessTokenResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get_git_hub_access_token.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getGitHubAccessToken" - } + return deserialized # type: ignore @overload async def get_data_plane_access( @@ -930,7 +866,6 @@ async def get_data_plane_access( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: AccessPolicyResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -941,7 +876,7 @@ async def get_data_plane_access( self, resource_group_name: str, factory_name: str, - policy: IO, + policy: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -953,11 +888,10 @@ async def get_data_plane_access( :param factory_name: The factory name. Required. :type factory_name: str :param policy: Data Plane user access policy definition. Required. - :type policy: IO + :type policy: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: AccessPolicyResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -965,7 +899,11 @@ async def get_data_plane_access( @distributed_trace_async async def get_data_plane_access( - self, resource_group_name: str, factory_name: str, policy: Union[_models.UserAccessPolicy, IO], **kwargs: Any + self, + resource_group_name: str, + factory_name: str, + policy: Union[_models.UserAccessPolicy, IO[bytes]], + **kwargs: Any ) -> _models.AccessPolicyResponse: """Get Data Plane access. @@ -974,12 +912,8 @@ async def get_data_plane_access( :param factory_name: The factory name. Required. :type factory_name: str :param policy: Data Plane user access policy definition. Is either a UserAccessPolicy type or a - IO type. Required. - :type policy: ~azure.mgmt.datafactory.models.UserAccessPolicy or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + IO[bytes] type. Required. + :type policy: ~azure.mgmt.datafactory.models.UserAccessPolicy or IO[bytes] :return: AccessPolicyResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -1007,7 +941,7 @@ async def get_data_plane_access( else: _json = self._serialize.body(policy, "UserAccessPolicy") - request = build_get_data_plane_access_request( + _request = build_get_data_plane_access_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -1015,16 +949,15 @@ async def get_data_plane_access( content_type=content_type, json=_json, content=_content, - template_url=self.get_data_plane_access.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1036,10 +969,6 @@ async def get_data_plane_access( deserialized = self._deserialize("AccessPolicyResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get_data_plane_access.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getDataPlaneAccess" - } + return deserialized # type: ignore 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 88e5b1f79b02..28d0e308bba8 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -69,7 +69,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either GlobalParameterResource or the result of cls(response) :rtype: @@ -93,17 +92,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -115,13 +113,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("GlobalParameterListResponse", pipeline_response) @@ -131,11 +129,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -147,10 +145,6 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters" - } - @distributed_trace_async async def get( self, resource_group_name: str, factory_name: str, global_parameter_name: str, **kwargs: Any @@ -163,7 +157,6 @@ async def get( :type factory_name: str :param global_parameter_name: The global parameter name. Required. :type global_parameter_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: GlobalParameterResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource :raises ~azure.core.exceptions.HttpResponseError: @@ -182,22 +175,21 @@ async def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, global_parameter_name=global_parameter_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -209,13 +201,9 @@ async def get( deserialized = self._deserialize("GlobalParameterResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}" - } + return deserialized # type: ignore @overload async def create_or_update( @@ -241,7 +229,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: GlobalParameterResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource :raises ~azure.core.exceptions.HttpResponseError: @@ -253,7 +240,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, global_parameter_name: str, - default: IO, + default: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -267,11 +254,10 @@ async def create_or_update( :param global_parameter_name: The global parameter name. Required. :type global_parameter_name: str :param default: Global parameter resource definition. Required. - :type default: IO + :type default: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: GlobalParameterResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource :raises ~azure.core.exceptions.HttpResponseError: @@ -283,7 +269,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, global_parameter_name: str, - default: Union[_models.GlobalParameterResource, IO], + default: Union[_models.GlobalParameterResource, IO[bytes]], **kwargs: Any ) -> _models.GlobalParameterResource: """Creates or updates a Global parameter. @@ -295,12 +281,8 @@ async def create_or_update( :param global_parameter_name: The global parameter name. Required. :type global_parameter_name: str :param default: Global parameter resource definition. Is either a GlobalParameterResource type - or a IO type. Required. - :type default: ~azure.mgmt.datafactory.models.GlobalParameterResource or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + or a IO[bytes] type. Required. + :type default: ~azure.mgmt.datafactory.models.GlobalParameterResource or IO[bytes] :return: GlobalParameterResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource :raises ~azure.core.exceptions.HttpResponseError: @@ -328,7 +310,7 @@ async def create_or_update( else: _json = self._serialize.body(default, "GlobalParameterResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, global_parameter_name=global_parameter_name, @@ -337,16 +319,15 @@ async def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -358,13 +339,9 @@ async def create_or_update( deserialized = self._deserialize("GlobalParameterResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}" - } + return deserialized # type: ignore @distributed_trace_async async def delete( # pylint: disable=inconsistent-return-statements @@ -378,7 +355,6 @@ async def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param global_parameter_name: The global parameter name. Required. :type global_parameter_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -397,22 +373,21 @@ async def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, global_parameter_name=global_parameter_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -422,8 +397,4 @@ async def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}" - } + return cls(pipeline_response, None, {}) # type: ignore 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 33be75a7e6ac..ba82ba6012c5 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -70,7 +70,6 @@ async def get( :type integration_runtime_name: str :param node_name: The integration runtime node name. Required. :type node_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode :raises ~azure.core.exceptions.HttpResponseError: @@ -89,23 +88,22 @@ async def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, node_name=node_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -117,13 +115,9 @@ async def get( deserialized = self._deserialize("SelfHostedIntegrationRuntimeNode", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}" - } + return deserialized # type: ignore @distributed_trace_async async def delete( # pylint: disable=inconsistent-return-statements @@ -139,7 +133,6 @@ async def delete( # pylint: disable=inconsistent-return-statements :type integration_runtime_name: str :param node_name: The integration runtime node name. Required. :type node_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -158,23 +151,22 @@ async def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, node_name=node_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -184,11 +176,7 @@ async def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}" - } + return cls(pipeline_response, None, {}) # type: ignore @overload async def update( @@ -219,7 +207,6 @@ async def update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode :raises ~azure.core.exceptions.HttpResponseError: @@ -232,7 +219,7 @@ async def update( factory_name: str, integration_runtime_name: str, node_name: str, - update_integration_runtime_node_request: IO, + update_integration_runtime_node_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -249,11 +236,10 @@ async def update( :type node_name: str :param update_integration_runtime_node_request: The parameters for updating an integration runtime node. Required. - :type update_integration_runtime_node_request: IO + :type update_integration_runtime_node_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode :raises ~azure.core.exceptions.HttpResponseError: @@ -266,7 +252,7 @@ async def update( factory_name: str, integration_runtime_name: str, node_name: str, - update_integration_runtime_node_request: Union[_models.UpdateIntegrationRuntimeNodeRequest, IO], + update_integration_runtime_node_request: Union[_models.UpdateIntegrationRuntimeNodeRequest, IO[bytes]], **kwargs: Any ) -> _models.SelfHostedIntegrationRuntimeNode: """Updates a self-hosted integration runtime node. @@ -280,13 +266,10 @@ async def update( :param node_name: The integration runtime node name. Required. :type node_name: str :param update_integration_runtime_node_request: The parameters for updating an integration - runtime node. Is either a UpdateIntegrationRuntimeNodeRequest type or a IO type. Required. + runtime node. Is either a UpdateIntegrationRuntimeNodeRequest type or a IO[bytes] type. + Required. :type update_integration_runtime_node_request: - ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeNodeRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeNodeRequest or IO[bytes] :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode :raises ~azure.core.exceptions.HttpResponseError: @@ -314,7 +297,7 @@ async def update( else: _json = self._serialize.body(update_integration_runtime_node_request, "UpdateIntegrationRuntimeNodeRequest") - request = build_update_request( + _request = build_update_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, @@ -324,16 +307,15 @@ async def update( content_type=content_type, json=_json, content=_content, - template_url=self.update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -345,13 +327,9 @@ async def update( deserialized = self._deserialize("SelfHostedIntegrationRuntimeNode", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}" - } + return deserialized # type: ignore @distributed_trace_async async def get_ip_address( @@ -367,7 +345,6 @@ async def get_ip_address( :type integration_runtime_name: str :param node_name: The integration runtime node name. Required. :type node_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeNodeIpAddress or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeNodeIpAddress :raises ~azure.core.exceptions.HttpResponseError: @@ -386,23 +363,22 @@ async def get_ip_address( 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( + _request = build_get_ip_address_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, node_name=node_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get_ip_address.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -414,10 +390,6 @@ async def get_ip_address( deserialized = self._deserialize("IntegrationRuntimeNodeIpAddress", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get_ip_address.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress" - } + return deserialized # type: ignore 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 3f4559d327d1..4c5fa06610c9 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -34,7 +34,7 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class IntegrationRuntimeObjectMetadataOperations: +class IntegrationRuntimeObjectMetadataOperations: # pylint: disable=name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -70,22 +70,21 @@ async def _refresh_initial( 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( + _request = build_refresh_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self._refresh_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -99,13 +98,9 @@ async def _refresh_initial( deserialized = self._deserialize("SsisObjectMetadataStatusResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - _refresh_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata" - } + return deserialized # type: ignore @distributed_trace_async async def begin_refresh( @@ -119,14 +114,6 @@ async def begin_refresh( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for - this operation to not poll, or pass in your own initialized polling object for a personal - polling strategy. - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of AsyncLROPoller that returns either SsisObjectMetadataStatusResponse or the result of cls(response) :rtype: @@ -157,7 +144,7 @@ async def begin_refresh( def get_long_running_output(pipeline_response): deserialized = self._deserialize("SsisObjectMetadataStatusResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: @@ -167,17 +154,15 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller.from_continuation_token( + return AsyncLROPoller[_models.SsisObjectMetadataStatusResponse].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_refresh.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata" - } + return AsyncLROPoller[_models.SsisObjectMetadataStatusResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) @overload async def get( @@ -205,7 +190,6 @@ async def get( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: SsisObjectMetadataListResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -217,7 +201,7 @@ async def get( resource_group_name: str, factory_name: str, integration_runtime_name: str, - get_metadata_request: Optional[IO] = None, + get_metadata_request: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any @@ -233,11 +217,10 @@ async def get( :type integration_runtime_name: str :param get_metadata_request: The parameters for getting a SSIS object metadata. Default value is None. - :type get_metadata_request: IO + :type get_metadata_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: SsisObjectMetadataListResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -249,7 +232,7 @@ async def get( resource_group_name: str, factory_name: str, integration_runtime_name: str, - get_metadata_request: Optional[Union[_models.GetSsisObjectMetadataRequest, IO]] = None, + get_metadata_request: Optional[Union[_models.GetSsisObjectMetadataRequest, IO[bytes]]] = None, **kwargs: Any ) -> _models.SsisObjectMetadataListResponse: """Get a SSIS integration runtime object metadata by specified path. The return is pageable @@ -262,12 +245,9 @@ async def get( :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str :param get_metadata_request: The parameters for getting a SSIS object metadata. Is either a - GetSsisObjectMetadataRequest type or a IO type. Default value is None. - :type get_metadata_request: ~azure.mgmt.datafactory.models.GetSsisObjectMetadataRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + GetSsisObjectMetadataRequest type or a IO[bytes] type. Default value is None. + :type get_metadata_request: ~azure.mgmt.datafactory.models.GetSsisObjectMetadataRequest or + IO[bytes] :return: SsisObjectMetadataListResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -298,7 +278,7 @@ async def get( else: _json = None - request = build_get_request( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, @@ -307,16 +287,15 @@ async def get( content_type=content_type, json=_json, content=_content, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -328,10 +307,6 @@ async def get( deserialized = self._deserialize("SsisObjectMetadataListResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata" - } + return deserialized # type: ignore 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 230432604733..20a2f449369b 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -84,7 +84,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either IntegrationRuntimeResource or the result of cls(response) :rtype: @@ -108,17 +107,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -130,13 +128,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("IntegrationRuntimeListResponse", pipeline_response) @@ -146,11 +144,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -162,10 +160,6 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes" - } - @overload async def create_or_update( self, @@ -195,7 +189,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource :raises ~azure.core.exceptions.HttpResponseError: @@ -207,7 +200,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, integration_runtime_name: str, - integration_runtime: IO, + integration_runtime: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -222,7 +215,7 @@ async def create_or_update( :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str :param integration_runtime: Integration runtime resource definition. Required. - :type integration_runtime: IO + :type integration_runtime: IO[bytes] :param if_match: ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. @@ -230,7 +223,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource :raises ~azure.core.exceptions.HttpResponseError: @@ -242,7 +234,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, integration_runtime_name: str, - integration_runtime: Union[_models.IntegrationRuntimeResource, IO], + integration_runtime: Union[_models.IntegrationRuntimeResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.IntegrationRuntimeResource: @@ -255,16 +247,13 @@ async def create_or_update( :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str :param integration_runtime: Integration runtime resource definition. Is either a - IntegrationRuntimeResource type or a IO type. Required. - :type integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or IO + IntegrationRuntimeResource type or a IO[bytes] type. Required. + :type integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or + IO[bytes] :param if_match: ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource :raises ~azure.core.exceptions.HttpResponseError: @@ -292,7 +281,7 @@ async def create_or_update( else: _json = self._serialize.body(integration_runtime, "IntegrationRuntimeResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, @@ -302,16 +291,15 @@ async def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -323,13 +311,9 @@ async def create_or_update( deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}" - } + return deserialized # type: ignore @distributed_trace_async async def get( @@ -352,7 +336,6 @@ async def get( If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeResource or None or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or None :raises ~azure.core.exceptions.HttpResponseError: @@ -371,23 +354,22 @@ async def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -401,13 +383,9 @@ async def get( deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}" - } + return deserialized # type: ignore @overload async def update( @@ -435,7 +413,6 @@ async def update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource :raises ~azure.core.exceptions.HttpResponseError: @@ -447,7 +424,7 @@ async def update( resource_group_name: str, factory_name: str, integration_runtime_name: str, - update_integration_runtime_request: IO, + update_integration_runtime_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -462,11 +439,10 @@ async def update( :type integration_runtime_name: str :param update_integration_runtime_request: The parameters for updating an integration runtime. Required. - :type update_integration_runtime_request: IO + :type update_integration_runtime_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource :raises ~azure.core.exceptions.HttpResponseError: @@ -478,7 +454,7 @@ async def update( resource_group_name: str, factory_name: str, integration_runtime_name: str, - update_integration_runtime_request: Union[_models.UpdateIntegrationRuntimeRequest, IO], + update_integration_runtime_request: Union[_models.UpdateIntegrationRuntimeRequest, IO[bytes]], **kwargs: Any ) -> _models.IntegrationRuntimeResource: """Updates an integration runtime. @@ -490,13 +466,9 @@ async def update( :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str :param update_integration_runtime_request: The parameters for updating an integration runtime. - Is either a UpdateIntegrationRuntimeRequest type or a IO type. Required. + Is either a UpdateIntegrationRuntimeRequest type or a IO[bytes] type. Required. :type update_integration_runtime_request: - ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeRequest or IO[bytes] :return: IntegrationRuntimeResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource :raises ~azure.core.exceptions.HttpResponseError: @@ -524,7 +496,7 @@ async def update( else: _json = self._serialize.body(update_integration_runtime_request, "UpdateIntegrationRuntimeRequest") - request = build_update_request( + _request = build_update_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, @@ -533,16 +505,15 @@ async def update( content_type=content_type, json=_json, content=_content, - template_url=self.update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -554,13 +525,9 @@ async def update( deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}" - } + return deserialized # type: ignore @distributed_trace_async async def delete( # pylint: disable=inconsistent-return-statements @@ -574,7 +541,6 @@ async def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -593,22 +559,21 @@ async def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -618,11 +583,7 @@ async def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def get_status( @@ -636,7 +597,6 @@ async def get_status( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeStatusResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -655,22 +615,21 @@ async def get_status( 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( + _request = build_get_status_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get_status.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -682,16 +641,12 @@ async def get_status( deserialized = self._deserialize("IntegrationRuntimeStatusResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get_status.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getStatus" - } + return deserialized # type: ignore @distributed_trace_async - async def list_outbound_network_dependencies_endpoints( + async def list_outbound_network_dependencies_endpoints( # pylint: disable=name-too-long self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any ) -> _models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse: """Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. @@ -702,7 +657,6 @@ async def list_outbound_network_dependencies_endpoints( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse or the result of cls(response) :rtype: @@ -723,22 +677,21 @@ async def list_outbound_network_dependencies_endpoints( 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( + _request = build_list_outbound_network_dependencies_endpoints_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_outbound_network_dependencies_endpoints.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -752,13 +705,9 @@ async def list_outbound_network_dependencies_endpoints( ) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - list_outbound_network_dependencies_endpoints.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/outboundNetworkDependenciesEndpoints" - } + return deserialized # type: ignore @distributed_trace_async async def get_connection_info( @@ -773,7 +722,6 @@ async def get_connection_info( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeConnectionInfo or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeConnectionInfo :raises ~azure.core.exceptions.HttpResponseError: @@ -792,22 +740,21 @@ async def get_connection_info( 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( + _request = build_get_connection_info_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get_connection_info.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -819,13 +766,9 @@ async def get_connection_info( deserialized = self._deserialize("IntegrationRuntimeConnectionInfo", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get_connection_info.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo" - } + return deserialized # type: ignore @overload async def regenerate_auth_key( @@ -853,7 +796,6 @@ async def regenerate_auth_key( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeAuthKeys or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys :raises ~azure.core.exceptions.HttpResponseError: @@ -865,7 +807,7 @@ async def regenerate_auth_key( resource_group_name: str, factory_name: str, integration_runtime_name: str, - regenerate_key_parameters: IO, + regenerate_key_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -880,11 +822,10 @@ async def regenerate_auth_key( :type integration_runtime_name: str :param regenerate_key_parameters: The parameters for regenerating integration runtime authentication key. Required. - :type regenerate_key_parameters: IO + :type regenerate_key_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeAuthKeys or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys :raises ~azure.core.exceptions.HttpResponseError: @@ -896,7 +837,7 @@ async def regenerate_auth_key( resource_group_name: str, factory_name: str, integration_runtime_name: str, - regenerate_key_parameters: Union[_models.IntegrationRuntimeRegenerateKeyParameters, IO], + regenerate_key_parameters: Union[_models.IntegrationRuntimeRegenerateKeyParameters, IO[bytes]], **kwargs: Any ) -> _models.IntegrationRuntimeAuthKeys: """Regenerates the authentication key for an integration runtime. @@ -908,14 +849,10 @@ async def regenerate_auth_key( :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str :param regenerate_key_parameters: The parameters for regenerating integration runtime - authentication key. Is either a IntegrationRuntimeRegenerateKeyParameters type or a IO type. - Required. + authentication key. Is either a IntegrationRuntimeRegenerateKeyParameters type or a IO[bytes] + type. Required. :type regenerate_key_parameters: - ~azure.mgmt.datafactory.models.IntegrationRuntimeRegenerateKeyParameters or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ~azure.mgmt.datafactory.models.IntegrationRuntimeRegenerateKeyParameters or IO[bytes] :return: IntegrationRuntimeAuthKeys or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys :raises ~azure.core.exceptions.HttpResponseError: @@ -943,7 +880,7 @@ async def regenerate_auth_key( else: _json = self._serialize.body(regenerate_key_parameters, "IntegrationRuntimeRegenerateKeyParameters") - request = build_regenerate_auth_key_request( + _request = build_regenerate_auth_key_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, @@ -952,16 +889,15 @@ async def regenerate_auth_key( content_type=content_type, json=_json, content=_content, - template_url=self.regenerate_auth_key.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -973,13 +909,9 @@ async def regenerate_auth_key( deserialized = self._deserialize("IntegrationRuntimeAuthKeys", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - regenerate_auth_key.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey" - } + return deserialized # type: ignore @distributed_trace_async async def list_auth_keys( @@ -993,7 +925,6 @@ async def list_auth_keys( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeAuthKeys or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys :raises ~azure.core.exceptions.HttpResponseError: @@ -1012,22 +943,21 @@ async def list_auth_keys( 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( + _request = build_list_auth_keys_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_auth_keys.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1039,13 +969,9 @@ async def list_auth_keys( deserialized = self._deserialize("IntegrationRuntimeAuthKeys", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - list_auth_keys.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys" - } + return deserialized # type: ignore async def _start_initial( self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any @@ -1064,22 +990,21 @@ async def _start_initial( 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( + _request = build_start_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self._start_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1093,13 +1018,9 @@ async def _start_initial( deserialized = self._deserialize("IntegrationRuntimeStatusResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - _start_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start" - } + return deserialized # type: ignore @distributed_trace_async async def begin_start( @@ -1113,14 +1034,6 @@ async def begin_start( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for - this operation to not poll, or pass in your own initialized polling object for a personal - polling strategy. - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of AsyncLROPoller that returns either IntegrationRuntimeStatusResponse or the result of cls(response) :rtype: @@ -1151,7 +1064,7 @@ async def begin_start( def get_long_running_output(pipeline_response): deserialized = self._deserialize("IntegrationRuntimeStatusResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: @@ -1161,17 +1074,15 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller.from_continuation_token( + return AsyncLROPoller[_models.IntegrationRuntimeStatusResponse].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_start.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start" - } + return AsyncLROPoller[_models.IntegrationRuntimeStatusResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) async def _stop_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any @@ -1190,22 +1101,21 @@ async def _stop_initial( # pylint: disable=inconsistent-return-statements 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( + _request = build_stop_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self._stop_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1215,11 +1125,7 @@ async def _stop_initial( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - _stop_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def begin_stop( @@ -1233,14 +1139,6 @@ async def begin_stop( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for - this operation to not poll, or pass in your own initialized polling object for a personal - polling strategy. - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -1268,7 +1166,7 @@ async def begin_stop( def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) @@ -1277,17 +1175,13 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller.from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_stop.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop" - } + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace_async async def sync_credentials( # pylint: disable=inconsistent-return-statements @@ -1304,7 +1198,6 @@ async def sync_credentials( # pylint: disable=inconsistent-return-statements :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -1323,22 +1216,21 @@ async def sync_credentials( # pylint: disable=inconsistent-return-statements 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( + _request = build_sync_credentials_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.sync_credentials.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1348,11 +1240,7 @@ async def sync_credentials( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - sync_credentials.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def get_monitoring_data( @@ -1367,7 +1255,6 @@ async def get_monitoring_data( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeMonitoringData or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeMonitoringData :raises ~azure.core.exceptions.HttpResponseError: @@ -1386,22 +1273,21 @@ async def get_monitoring_data( 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( + _request = build_get_monitoring_data_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get_monitoring_data.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1413,13 +1299,9 @@ async def get_monitoring_data( deserialized = self._deserialize("IntegrationRuntimeMonitoringData", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get_monitoring_data.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/monitoringData" - } + return deserialized # type: ignore @distributed_trace_async async def upgrade( # pylint: disable=inconsistent-return-statements @@ -1433,7 +1315,6 @@ async def upgrade( # pylint: disable=inconsistent-return-statements :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -1452,22 +1333,21 @@ async def upgrade( # pylint: disable=inconsistent-return-statements 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( + _request = build_upgrade_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.upgrade.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1477,11 +1357,7 @@ async def upgrade( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - upgrade.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/upgrade" - } + return cls(pipeline_response, None, {}) # type: ignore @overload async def remove_links( # pylint: disable=inconsistent-return-statements @@ -1510,7 +1386,6 @@ async def remove_links( # pylint: disable=inconsistent-return-statements :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -1522,7 +1397,7 @@ async def remove_links( # pylint: disable=inconsistent-return-statements resource_group_name: str, factory_name: str, integration_runtime_name: str, - linked_integration_runtime_request: IO, + linked_integration_runtime_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -1538,11 +1413,10 @@ async def remove_links( # pylint: disable=inconsistent-return-statements :type integration_runtime_name: str :param linked_integration_runtime_request: The data factory name for the linked integration runtime. Required. - :type linked_integration_runtime_request: IO + :type linked_integration_runtime_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -1554,7 +1428,7 @@ async def remove_links( # pylint: disable=inconsistent-return-statements resource_group_name: str, factory_name: str, integration_runtime_name: str, - linked_integration_runtime_request: Union[_models.LinkedIntegrationRuntimeRequest, IO], + linked_integration_runtime_request: Union[_models.LinkedIntegrationRuntimeRequest, IO[bytes]], **kwargs: Any ) -> None: """Remove all linked integration runtimes under specific data factory in a self-hosted integration @@ -1567,13 +1441,9 @@ async def remove_links( # pylint: disable=inconsistent-return-statements :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str :param linked_integration_runtime_request: The data factory name for the linked integration - runtime. Is either a LinkedIntegrationRuntimeRequest type or a IO type. Required. + runtime. Is either a LinkedIntegrationRuntimeRequest type or a IO[bytes] type. Required. :type linked_integration_runtime_request: - ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRequest or IO[bytes] :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -1601,7 +1471,7 @@ async def remove_links( # pylint: disable=inconsistent-return-statements else: _json = self._serialize.body(linked_integration_runtime_request, "LinkedIntegrationRuntimeRequest") - request = build_remove_links_request( + _request = build_remove_links_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, @@ -1610,16 +1480,15 @@ async def remove_links( # pylint: disable=inconsistent-return-statements content_type=content_type, json=_json, content=_content, - template_url=self.remove_links.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1629,11 +1498,7 @@ async def remove_links( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - remove_links.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/removeLinks" - } + return cls(pipeline_response, None, {}) # type: ignore @overload async def create_linked_integration_runtime( @@ -1661,7 +1526,6 @@ async def create_linked_integration_runtime( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeStatusResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -1673,7 +1537,7 @@ async def create_linked_integration_runtime( resource_group_name: str, factory_name: str, integration_runtime_name: str, - create_linked_integration_runtime_request: IO, + create_linked_integration_runtime_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -1688,11 +1552,10 @@ async def create_linked_integration_runtime( :type integration_runtime_name: str :param create_linked_integration_runtime_request: The linked integration runtime properties. Required. - :type create_linked_integration_runtime_request: IO + :type create_linked_integration_runtime_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeStatusResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -1704,7 +1567,7 @@ async def create_linked_integration_runtime( resource_group_name: str, factory_name: str, integration_runtime_name: str, - create_linked_integration_runtime_request: Union[_models.CreateLinkedIntegrationRuntimeRequest, IO], + create_linked_integration_runtime_request: Union[_models.CreateLinkedIntegrationRuntimeRequest, IO[bytes]], **kwargs: Any ) -> _models.IntegrationRuntimeStatusResponse: """Create a linked integration runtime entry in a shared integration runtime. @@ -1716,13 +1579,9 @@ async def create_linked_integration_runtime( :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str :param create_linked_integration_runtime_request: The linked integration runtime properties. Is - either a CreateLinkedIntegrationRuntimeRequest type or a IO type. Required. + either a CreateLinkedIntegrationRuntimeRequest type or a IO[bytes] type. Required. :type create_linked_integration_runtime_request: - ~azure.mgmt.datafactory.models.CreateLinkedIntegrationRuntimeRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ~azure.mgmt.datafactory.models.CreateLinkedIntegrationRuntimeRequest or IO[bytes] :return: IntegrationRuntimeStatusResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -1752,7 +1611,7 @@ async def create_linked_integration_runtime( create_linked_integration_runtime_request, "CreateLinkedIntegrationRuntimeRequest" ) - request = build_create_linked_integration_runtime_request( + _request = build_create_linked_integration_runtime_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, @@ -1761,16 +1620,15 @@ async def create_linked_integration_runtime( content_type=content_type, json=_json, content=_content, - template_url=self.create_linked_integration_runtime.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1782,10 +1640,6 @@ async def create_linked_integration_runtime( deserialized = self._deserialize("IntegrationRuntimeStatusResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - create_linked_integration_runtime.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/linkedIntegrationRuntime" - } + return deserialized # type: ignore 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 b5e35cd731c7..635caf14000f 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -69,7 +69,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either LinkedServiceResource or the result of cls(response) :rtype: @@ -93,17 +92,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -115,13 +113,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("LinkedServiceListResponse", pipeline_response) @@ -131,11 +129,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -147,10 +145,6 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices" - } - @overload async def create_or_update( self, @@ -180,7 +174,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: LinkedServiceResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource :raises ~azure.core.exceptions.HttpResponseError: @@ -192,7 +185,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, linked_service_name: str, - linked_service: IO, + linked_service: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -207,7 +200,7 @@ async def create_or_update( :param linked_service_name: The linked service name. Required. :type linked_service_name: str :param linked_service: Linked service resource definition. Required. - :type linked_service: IO + :type linked_service: IO[bytes] :param if_match: ETag of the linkedService entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. @@ -215,7 +208,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: LinkedServiceResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource :raises ~azure.core.exceptions.HttpResponseError: @@ -227,7 +219,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, linked_service_name: str, - linked_service: Union[_models.LinkedServiceResource, IO], + linked_service: Union[_models.LinkedServiceResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.LinkedServiceResource: @@ -240,16 +232,12 @@ async def create_or_update( :param linked_service_name: The linked service name. Required. :type linked_service_name: str :param linked_service: Linked service resource definition. Is either a LinkedServiceResource - type or a IO type. Required. - :type linked_service: ~azure.mgmt.datafactory.models.LinkedServiceResource or IO + type or a IO[bytes] type. Required. + :type linked_service: ~azure.mgmt.datafactory.models.LinkedServiceResource or IO[bytes] :param if_match: ETag of the linkedService entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: LinkedServiceResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource :raises ~azure.core.exceptions.HttpResponseError: @@ -277,7 +265,7 @@ async def create_or_update( else: _json = self._serialize.body(linked_service, "LinkedServiceResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, linked_service_name=linked_service_name, @@ -287,16 +275,15 @@ async def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -308,13 +295,9 @@ async def create_or_update( deserialized = self._deserialize("LinkedServiceResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}" - } + return deserialized # type: ignore @distributed_trace_async async def get( @@ -337,7 +320,6 @@ async def get( the ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: LinkedServiceResource or None or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource or None :raises ~azure.core.exceptions.HttpResponseError: @@ -356,23 +338,22 @@ async def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, linked_service_name=linked_service_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -386,13 +367,9 @@ async def get( deserialized = self._deserialize("LinkedServiceResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}" - } + return deserialized # type: ignore @distributed_trace_async async def delete( # pylint: disable=inconsistent-return-statements @@ -406,7 +383,6 @@ async def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param linked_service_name: The linked service name. Required. :type linked_service_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -425,22 +401,21 @@ async def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, linked_service_name=linked_service_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -450,8 +425,4 @@ async def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}" - } + return cls(pipeline_response, None, {}) # type: ignore 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 32d0bba56589..6bf593c5384b 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -71,7 +71,6 @@ def list_by_factory( :type factory_name: str :param managed_virtual_network_name: Managed virtual network name. Required. :type managed_virtual_network_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ManagedPrivateEndpointResource or the result of cls(response) :rtype: @@ -95,18 +94,17 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, managed_virtual_network_name=managed_virtual_network_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -118,13 +116,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("ManagedPrivateEndpointListResponse", pipeline_response) @@ -134,11 +132,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -150,10 +148,6 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints" - } - @overload async def create_or_update( self, @@ -186,7 +180,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedPrivateEndpointResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource :raises ~azure.core.exceptions.HttpResponseError: @@ -199,7 +192,7 @@ async def create_or_update( factory_name: str, managed_virtual_network_name: str, managed_private_endpoint_name: str, - managed_private_endpoint: IO, + managed_private_endpoint: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -216,7 +209,7 @@ async def create_or_update( :param managed_private_endpoint_name: Managed private endpoint name. Required. :type managed_private_endpoint_name: str :param managed_private_endpoint: Managed private endpoint resource definition. Required. - :type managed_private_endpoint: IO + :type managed_private_endpoint: IO[bytes] :param if_match: ETag of the managed private endpoint entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. @@ -224,7 +217,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedPrivateEndpointResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource :raises ~azure.core.exceptions.HttpResponseError: @@ -237,7 +229,7 @@ async def create_or_update( factory_name: str, managed_virtual_network_name: str, managed_private_endpoint_name: str, - managed_private_endpoint: Union[_models.ManagedPrivateEndpointResource, IO], + managed_private_endpoint: Union[_models.ManagedPrivateEndpointResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.ManagedPrivateEndpointResource: @@ -252,17 +244,13 @@ async def create_or_update( :param managed_private_endpoint_name: Managed private endpoint name. Required. :type managed_private_endpoint_name: str :param managed_private_endpoint: Managed private endpoint resource definition. Is either a - ManagedPrivateEndpointResource type or a IO type. Required. + ManagedPrivateEndpointResource type or a IO[bytes] type. Required. :type managed_private_endpoint: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource - or IO + or IO[bytes] :param if_match: ETag of the managed private endpoint entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedPrivateEndpointResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource :raises ~azure.core.exceptions.HttpResponseError: @@ -290,7 +278,7 @@ async def create_or_update( else: _json = self._serialize.body(managed_private_endpoint, "ManagedPrivateEndpointResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, managed_virtual_network_name=managed_virtual_network_name, @@ -301,16 +289,15 @@ async def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -322,13 +309,9 @@ async def create_or_update( deserialized = self._deserialize("ManagedPrivateEndpointResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}" - } + return deserialized # type: ignore @distributed_trace_async async def get( @@ -354,7 +337,6 @@ async def get( get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedPrivateEndpointResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource :raises ~azure.core.exceptions.HttpResponseError: @@ -373,7 +355,7 @@ async def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, managed_virtual_network_name=managed_virtual_network_name, @@ -381,16 +363,15 @@ async def get( subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -402,13 +383,9 @@ async def get( deserialized = self._deserialize("ManagedPrivateEndpointResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}" - } + return deserialized # type: ignore @distributed_trace_async async def delete( # pylint: disable=inconsistent-return-statements @@ -429,7 +406,6 @@ async def delete( # pylint: disable=inconsistent-return-statements :type managed_virtual_network_name: str :param managed_private_endpoint_name: Managed private endpoint name. Required. :type managed_private_endpoint_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -448,23 +424,22 @@ async def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, managed_virtual_network_name=managed_virtual_network_name, managed_private_endpoint_name=managed_private_endpoint_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -474,8 +449,4 @@ async def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}" - } + return cls(pipeline_response, None, {}) # type: ignore 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 2b4a3939a7f7..7a4c0f30c6cd 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -68,7 +68,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ManagedVirtualNetworkResource or the result of cls(response) :rtype: @@ -92,17 +91,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -114,13 +112,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("ManagedVirtualNetworkListResponse", pipeline_response) @@ -130,11 +128,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -146,10 +144,6 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks" - } - @overload async def create_or_update( self, @@ -179,7 +173,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedVirtualNetworkResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource :raises ~azure.core.exceptions.HttpResponseError: @@ -191,7 +184,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, managed_virtual_network_name: str, - managed_virtual_network: IO, + managed_virtual_network: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -206,7 +199,7 @@ async def create_or_update( :param managed_virtual_network_name: Managed virtual network name. Required. :type managed_virtual_network_name: str :param managed_virtual_network: Managed Virtual Network resource definition. Required. - :type managed_virtual_network: IO + :type managed_virtual_network: IO[bytes] :param if_match: ETag of the managed Virtual Network entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. @@ -214,7 +207,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedVirtualNetworkResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource :raises ~azure.core.exceptions.HttpResponseError: @@ -226,7 +218,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, managed_virtual_network_name: str, - managed_virtual_network: Union[_models.ManagedVirtualNetworkResource, IO], + managed_virtual_network: Union[_models.ManagedVirtualNetworkResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.ManagedVirtualNetworkResource: @@ -239,17 +231,13 @@ async def create_or_update( :param managed_virtual_network_name: Managed virtual network name. Required. :type managed_virtual_network_name: str :param managed_virtual_network: Managed Virtual Network resource definition. Is either a - ManagedVirtualNetworkResource type or a IO type. Required. + ManagedVirtualNetworkResource type or a IO[bytes] type. Required. :type managed_virtual_network: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource or - IO + IO[bytes] :param if_match: ETag of the managed Virtual Network entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedVirtualNetworkResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource :raises ~azure.core.exceptions.HttpResponseError: @@ -277,7 +265,7 @@ async def create_or_update( else: _json = self._serialize.body(managed_virtual_network, "ManagedVirtualNetworkResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, managed_virtual_network_name=managed_virtual_network_name, @@ -287,16 +275,15 @@ async def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -308,13 +295,9 @@ async def create_or_update( deserialized = self._deserialize("ManagedVirtualNetworkResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}" - } + return deserialized # type: ignore @distributed_trace_async async def get( @@ -337,7 +320,6 @@ async def get( get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedVirtualNetworkResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource :raises ~azure.core.exceptions.HttpResponseError: @@ -356,23 +338,22 @@ async def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, managed_virtual_network_name=managed_virtual_network_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -384,10 +365,6 @@ async def get( deserialized = self._deserialize("ManagedVirtualNetworkResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}" - } + return deserialized # type: ignore 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 e4f6d05ea917..faf43785306c 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -56,7 +56,6 @@ def __init__(self, *args, **kwargs) -> None: def list(self, **kwargs: Any) -> AsyncIterable["_models.Operation"]: """Lists the available Azure Data Factory API operations. - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either Operation or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.Operation] :raises ~azure.core.exceptions.HttpResponseError: @@ -78,14 +77,13 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.Operation"]: def prepare_request(next_link=None): if not next_link: - request = build_list_request( + _request = build_list_request( api_version=api_version, - template_url=self.list.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -97,13 +95,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("OperationListResponse", pipeline_response) @@ -113,11 +111,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -128,5 +126,3 @@ async def get_next(next_link=None): return pipeline_response return AsyncItemPaged(get_next, extract_data) - - list.metadata = {"url": "/providers/Microsoft.DataFactory/operations"} 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 374007a9dd00..a71bc8a2d088 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -76,7 +76,6 @@ async def query_by_factory( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PipelineRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -87,7 +86,7 @@ async def query_by_factory( self, resource_group_name: str, factory_name: str, - filter_parameters: IO, + filter_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -99,11 +98,10 @@ async def query_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param filter_parameters: Parameters to filter the pipeline run. Required. - :type filter_parameters: IO + :type filter_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PipelineRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -114,7 +112,7 @@ async def query_by_factory( self, resource_group_name: str, factory_name: str, - filter_parameters: Union[_models.RunFilterParameters, IO], + filter_parameters: Union[_models.RunFilterParameters, IO[bytes]], **kwargs: Any ) -> _models.PipelineRunsQueryResponse: """Query pipeline runs in the factory based on input filter conditions. @@ -124,12 +122,8 @@ async def query_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param filter_parameters: Parameters to filter the pipeline run. Is either a - RunFilterParameters type or a IO type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + RunFilterParameters type or a IO[bytes] type. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO[bytes] :return: PipelineRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -157,7 +151,7 @@ async def query_by_factory( else: _json = self._serialize.body(filter_parameters, "RunFilterParameters") - request = build_query_by_factory_request( + _request = build_query_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -165,16 +159,15 @@ async def query_by_factory( content_type=content_type, json=_json, content=_content, - template_url=self.query_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -186,13 +179,9 @@ async def query_by_factory( deserialized = self._deserialize("PipelineRunsQueryResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - query_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryPipelineRuns" - } + return deserialized # type: ignore @distributed_trace_async async def get(self, resource_group_name: str, factory_name: str, run_id: str, **kwargs: Any) -> _models.PipelineRun: @@ -204,7 +193,6 @@ async def get(self, resource_group_name: str, factory_name: str, run_id: str, ** :type factory_name: str :param run_id: The pipeline run identifier. Required. :type run_id: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PipelineRun or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineRun :raises ~azure.core.exceptions.HttpResponseError: @@ -223,22 +211,21 @@ async def get(self, resource_group_name: str, factory_name: str, run_id: str, ** 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, run_id=run_id, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -250,13 +237,9 @@ async def get(self, resource_group_name: str, factory_name: str, run_id: str, ** deserialized = self._deserialize("PipelineRun", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}" - } + return deserialized # type: ignore @distributed_trace_async async def cancel( # pylint: disable=inconsistent-return-statements @@ -278,7 +261,6 @@ async def cancel( # pylint: disable=inconsistent-return-statements :param is_recursive: If true, cancel all the Child pipelines that are triggered by the current pipeline. Default value is None. :type is_recursive: bool - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -297,23 +279,22 @@ async def cancel( # pylint: disable=inconsistent-return-statements 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( + _request = build_cancel_request( resource_group_name=resource_group_name, factory_name=factory_name, run_id=run_id, subscription_id=self._config.subscription_id, is_recursive=is_recursive, api_version=api_version, - template_url=self.cancel.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -323,8 +304,4 @@ async def cancel( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - cancel.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/cancel" - } + return cls(pipeline_response, None, {}) # type: ignore 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 c0cee25442ba..2afe5cf4b804 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -76,7 +76,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either PipelineResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.PipelineResource] @@ -99,17 +98,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -121,13 +119,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("PipelineListResponse", pipeline_response) @@ -137,11 +135,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -153,10 +151,6 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines" - } - @overload async def create_or_update( self, @@ -185,7 +179,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PipelineResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineResource :raises ~azure.core.exceptions.HttpResponseError: @@ -197,7 +190,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, pipeline_name: str, - pipeline: IO, + pipeline: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -212,14 +205,13 @@ async def create_or_update( :param pipeline_name: The pipeline name. Required. :type pipeline_name: str :param pipeline: Pipeline resource definition. Required. - :type pipeline: IO + :type pipeline: IO[bytes] :param if_match: ETag of the pipeline entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PipelineResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineResource :raises ~azure.core.exceptions.HttpResponseError: @@ -231,7 +223,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, pipeline_name: str, - pipeline: Union[_models.PipelineResource, IO], + pipeline: Union[_models.PipelineResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.PipelineResource: @@ -243,16 +235,12 @@ async def create_or_update( :type factory_name: str :param pipeline_name: The pipeline name. Required. :type pipeline_name: str - :param pipeline: Pipeline resource definition. Is either a PipelineResource type or a IO type. - Required. - :type pipeline: ~azure.mgmt.datafactory.models.PipelineResource or IO + :param pipeline: Pipeline resource definition. Is either a PipelineResource type or a IO[bytes] + type. Required. + :type pipeline: ~azure.mgmt.datafactory.models.PipelineResource or IO[bytes] :param if_match: ETag of the pipeline entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PipelineResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineResource :raises ~azure.core.exceptions.HttpResponseError: @@ -280,7 +268,7 @@ async def create_or_update( else: _json = self._serialize.body(pipeline, "PipelineResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, pipeline_name=pipeline_name, @@ -290,16 +278,15 @@ async def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -311,13 +298,9 @@ async def create_or_update( deserialized = self._deserialize("PipelineResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}" - } + return deserialized # type: ignore @distributed_trace_async async def get( @@ -340,7 +323,6 @@ async def get( ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PipelineResource or None or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineResource or None :raises ~azure.core.exceptions.HttpResponseError: @@ -359,23 +341,22 @@ async def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, pipeline_name=pipeline_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -389,13 +370,9 @@ async def get( deserialized = self._deserialize("PipelineResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}" - } + return deserialized # type: ignore @distributed_trace_async async def delete( # pylint: disable=inconsistent-return-statements @@ -409,7 +386,6 @@ async def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param pipeline_name: The pipeline name. Required. :type pipeline_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -428,22 +404,21 @@ async def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, pipeline_name=pipeline_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -453,11 +428,7 @@ async def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}" - } + return cls(pipeline_response, None, {}) # type: ignore @overload async def create_run( @@ -502,7 +473,6 @@ async def create_run( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: CreateRunResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -518,7 +488,7 @@ async def create_run( is_recovery: Optional[bool] = None, start_activity_name: Optional[str] = None, start_from_failure: Optional[bool] = None, - parameters: Optional[IO] = None, + parameters: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any @@ -547,11 +517,10 @@ async def create_run( :type start_from_failure: bool :param parameters: Parameters of the pipeline run. These parameters will be used only if the runId is not specified. Default value is None. - :type parameters: IO + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: CreateRunResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -567,7 +536,7 @@ async def create_run( is_recovery: Optional[bool] = None, start_activity_name: Optional[str] = None, start_from_failure: Optional[bool] = None, - parameters: Optional[Union[Dict[str, JSON], IO]] = None, + parameters: Optional[Union[Dict[str, JSON], IO[bytes]]] = None, **kwargs: Any ) -> _models.CreateRunResponse: """Creates a run of a pipeline. @@ -593,12 +562,9 @@ async def create_run( is None. :type start_from_failure: bool :param parameters: Parameters of the pipeline run. These parameters will be used only if the - runId is not specified. Is either a {str: JSON} type or a IO type. Default value is None. - :type parameters: dict[str, JSON] or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + runId is not specified. Is either a {str: JSON} type or a IO[bytes] type. Default value is + None. + :type parameters: dict[str, JSON] or IO[bytes] :return: CreateRunResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -629,7 +595,7 @@ async def create_run( else: _json = None - request = build_create_run_request( + _request = build_create_run_request( resource_group_name=resource_group_name, factory_name=factory_name, pipeline_name=pipeline_name, @@ -642,16 +608,15 @@ async def create_run( content_type=content_type, json=_json, content=_content, - template_url=self.create_run.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -663,10 +628,6 @@ async def create_run( deserialized = self._deserialize("CreateRunResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - create_run.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}/createRun" - } + return deserialized # type: ignore 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 74168c2a4f78..109d5bece761 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -62,7 +62,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either PrivateEndpointConnectionResource or the result of cls(response) :rtype: @@ -86,17 +85,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -108,13 +106,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("PrivateEndpointConnectionListResponse", pipeline_response) @@ -124,11 +122,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -139,7 +137,3 @@ async def get_next(next_link=None): return pipeline_response return AsyncItemPaged(get_next, extract_data) - - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndPointConnections" - } 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 0e66482910b0..817db0967fe1 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -85,7 +85,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PrivateEndpointConnectionResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource :raises ~azure.core.exceptions.HttpResponseError: @@ -97,7 +96,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, private_endpoint_connection_name: str, - private_endpoint_wrapper: IO, + private_endpoint_wrapper: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -112,7 +111,7 @@ async def create_or_update( :param private_endpoint_connection_name: The private endpoint connection name. Required. :type private_endpoint_connection_name: str :param private_endpoint_wrapper: Required. - :type private_endpoint_wrapper: IO + :type private_endpoint_wrapper: IO[bytes] :param if_match: ETag of the private endpoint connection entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. @@ -120,7 +119,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PrivateEndpointConnectionResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource :raises ~azure.core.exceptions.HttpResponseError: @@ -132,7 +130,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, private_endpoint_connection_name: str, - private_endpoint_wrapper: Union[_models.PrivateLinkConnectionApprovalRequestResource, IO], + private_endpoint_wrapper: Union[_models.PrivateLinkConnectionApprovalRequestResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.PrivateEndpointConnectionResource: @@ -145,17 +143,13 @@ async def create_or_update( :param private_endpoint_connection_name: The private endpoint connection name. Required. :type private_endpoint_connection_name: str :param private_endpoint_wrapper: Is either a PrivateLinkConnectionApprovalRequestResource type - or a IO type. Required. + or a IO[bytes] type. Required. :type private_endpoint_wrapper: - ~azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequestResource or IO + ~azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequestResource or IO[bytes] :param if_match: ETag of the private endpoint connection entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PrivateEndpointConnectionResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource :raises ~azure.core.exceptions.HttpResponseError: @@ -183,7 +177,7 @@ async def create_or_update( else: _json = self._serialize.body(private_endpoint_wrapper, "PrivateLinkConnectionApprovalRequestResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, private_endpoint_connection_name=private_endpoint_connection_name, @@ -193,16 +187,15 @@ async def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -214,13 +207,9 @@ async def create_or_update( deserialized = self._deserialize("PrivateEndpointConnectionResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}" - } + return deserialized # type: ignore @distributed_trace_async async def get( @@ -243,7 +232,6 @@ async def get( for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PrivateEndpointConnectionResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource :raises ~azure.core.exceptions.HttpResponseError: @@ -262,23 +250,22 @@ async def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, private_endpoint_connection_name=private_endpoint_connection_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -290,13 +277,9 @@ async def get( deserialized = self._deserialize("PrivateEndpointConnectionResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}" - } + return deserialized # type: ignore @distributed_trace_async async def delete( # pylint: disable=inconsistent-return-statements @@ -310,7 +293,6 @@ async def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param private_endpoint_connection_name: The private endpoint connection name. Required. :type private_endpoint_connection_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -329,22 +311,21 @@ async def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, private_endpoint_connection_name=private_endpoint_connection_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -354,8 +335,4 @@ async def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}" - } + return cls(pipeline_response, None, {}) # type: ignore 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 9641e0f3d311..3caed65548e0 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -60,7 +60,6 @@ async def get( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PrivateLinkResourcesWrapper or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PrivateLinkResourcesWrapper :raises ~azure.core.exceptions.HttpResponseError: @@ -79,21 +78,20 @@ async def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -105,10 +103,6 @@ async def get( deserialized = self._deserialize("PrivateLinkResourcesWrapper", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateLinkResources" - } + return deserialized # type: ignore 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 75518d070ec1..cbe3b4965d46 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -69,7 +69,6 @@ async def rerun( # pylint: disable=inconsistent-return-statements :type trigger_name: str :param run_id: The pipeline run identifier. Required. :type run_id: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -88,23 +87,22 @@ async def rerun( # pylint: disable=inconsistent-return-statements 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( + _request = build_rerun_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, run_id=run_id, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.rerun.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -114,11 +112,7 @@ async def rerun( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - rerun.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/rerun" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def cancel( # pylint: disable=inconsistent-return-statements @@ -134,7 +128,6 @@ async def cancel( # pylint: disable=inconsistent-return-statements :type trigger_name: str :param run_id: The pipeline run identifier. Required. :type run_id: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -153,23 +146,22 @@ async def cancel( # pylint: disable=inconsistent-return-statements 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( + _request = build_cancel_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, run_id=run_id, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.cancel.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -179,11 +171,7 @@ async def cancel( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - cancel.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/cancel" - } + return cls(pipeline_response, None, {}) # type: ignore @overload async def query_by_factory( @@ -206,7 +194,6 @@ async def query_by_factory( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -217,7 +204,7 @@ async def query_by_factory( self, resource_group_name: str, factory_name: str, - filter_parameters: IO, + filter_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -229,11 +216,10 @@ async def query_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param filter_parameters: Parameters to filter the pipeline run. Required. - :type filter_parameters: IO + :type filter_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -244,7 +230,7 @@ async def query_by_factory( self, resource_group_name: str, factory_name: str, - filter_parameters: Union[_models.RunFilterParameters, IO], + filter_parameters: Union[_models.RunFilterParameters, IO[bytes]], **kwargs: Any ) -> _models.TriggerRunsQueryResponse: """Query trigger runs. @@ -254,12 +240,8 @@ async def query_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param filter_parameters: Parameters to filter the pipeline run. Is either a - RunFilterParameters type or a IO type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + RunFilterParameters type or a IO[bytes] type. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO[bytes] :return: TriggerRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -287,7 +269,7 @@ async def query_by_factory( else: _json = self._serialize.body(filter_parameters, "RunFilterParameters") - request = build_query_by_factory_request( + _request = build_query_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -295,16 +277,15 @@ async def query_by_factory( content_type=content_type, json=_json, content=_content, - template_url=self.query_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -316,10 +297,6 @@ async def query_by_factory( deserialized = self._deserialize("TriggerRunsQueryResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - query_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryTriggerRuns" - } + return deserialized # type: ignore 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 d37c98a086a4..54d3226eeb5b 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -77,7 +77,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either TriggerResource or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.datafactory.models.TriggerResource] :raises ~azure.core.exceptions.HttpResponseError: @@ -99,17 +98,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -121,13 +119,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request async def extract_data(pipeline_response): deserialized = self._deserialize("TriggerListResponse", pipeline_response) @@ -137,11 +135,11 @@ async def extract_data(pipeline_response): return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -153,10 +151,6 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers" - } - @overload async def query_by_factory( self, @@ -178,7 +172,6 @@ async def query_by_factory( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -189,7 +182,7 @@ async def query_by_factory( self, resource_group_name: str, factory_name: str, - filter_parameters: IO, + filter_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -201,11 +194,10 @@ async def query_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param filter_parameters: Parameters to filter the triggers. Required. - :type filter_parameters: IO + :type filter_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -216,7 +208,7 @@ async def query_by_factory( self, resource_group_name: str, factory_name: str, - filter_parameters: Union[_models.TriggerFilterParameters, IO], + filter_parameters: Union[_models.TriggerFilterParameters, IO[bytes]], **kwargs: Any ) -> _models.TriggerQueryResponse: """Query triggers. @@ -226,12 +218,8 @@ async def query_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param filter_parameters: Parameters to filter the triggers. Is either a - TriggerFilterParameters type or a IO type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.TriggerFilterParameters or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + TriggerFilterParameters type or a IO[bytes] type. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.TriggerFilterParameters or IO[bytes] :return: TriggerQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -259,7 +247,7 @@ async def query_by_factory( else: _json = self._serialize.body(filter_parameters, "TriggerFilterParameters") - request = build_query_by_factory_request( + _request = build_query_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -267,16 +255,15 @@ async def query_by_factory( content_type=content_type, json=_json, content=_content, - template_url=self.query_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -288,13 +275,9 @@ async def query_by_factory( deserialized = self._deserialize("TriggerQueryResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - query_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/querytriggers" - } + return deserialized # type: ignore @overload async def create_or_update( @@ -324,7 +307,6 @@ async def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerResource :raises ~azure.core.exceptions.HttpResponseError: @@ -336,7 +318,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, trigger_name: str, - trigger: IO, + trigger: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -351,14 +333,13 @@ async def create_or_update( :param trigger_name: The trigger name. Required. :type trigger_name: str :param trigger: Trigger resource definition. Required. - :type trigger: IO + :type trigger: IO[bytes] :param if_match: ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerResource :raises ~azure.core.exceptions.HttpResponseError: @@ -370,7 +351,7 @@ async def create_or_update( resource_group_name: str, factory_name: str, trigger_name: str, - trigger: Union[_models.TriggerResource, IO], + trigger: Union[_models.TriggerResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.TriggerResource: @@ -382,16 +363,12 @@ async def create_or_update( :type factory_name: str :param trigger_name: The trigger name. Required. :type trigger_name: str - :param trigger: Trigger resource definition. Is either a TriggerResource type or a IO type. - Required. - :type trigger: ~azure.mgmt.datafactory.models.TriggerResource or IO + :param trigger: Trigger resource definition. Is either a TriggerResource type or a IO[bytes] + type. Required. + :type trigger: ~azure.mgmt.datafactory.models.TriggerResource or IO[bytes] :param if_match: ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerResource :raises ~azure.core.exceptions.HttpResponseError: @@ -419,7 +396,7 @@ async def create_or_update( else: _json = self._serialize.body(trigger, "TriggerResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, @@ -429,16 +406,15 @@ async def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -450,13 +426,9 @@ async def create_or_update( deserialized = self._deserialize("TriggerResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}" - } + return deserialized # type: ignore @distributed_trace_async async def get( @@ -479,7 +451,6 @@ async def get( matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerResource or None or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerResource or None :raises ~azure.core.exceptions.HttpResponseError: @@ -498,23 +469,22 @@ async def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -528,13 +498,9 @@ async def get( deserialized = self._deserialize("TriggerResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}" - } + return deserialized # type: ignore @distributed_trace_async async def delete( # pylint: disable=inconsistent-return-statements @@ -548,7 +514,6 @@ async def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param trigger_name: The trigger name. Required. :type trigger_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -567,22 +532,21 @@ async def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -592,11 +556,7 @@ async def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}" - } + return cls(pipeline_response, None, {}) # type: ignore async def _subscribe_to_events_initial( self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any @@ -615,22 +575,21 @@ async def _subscribe_to_events_initial( 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( + _request = build_subscribe_to_events_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self._subscribe_to_events_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -644,13 +603,9 @@ async def _subscribe_to_events_initial( deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - _subscribe_to_events_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/subscribeToEvents" - } + return deserialized # type: ignore @distributed_trace_async async def begin_subscribe_to_events( @@ -664,14 +619,6 @@ async def begin_subscribe_to_events( :type factory_name: str :param trigger_name: The trigger name. Required. :type trigger_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for - this operation to not poll, or pass in your own initialized polling object for a personal - polling strategy. - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of AsyncLROPoller that returns either TriggerSubscriptionOperationStatus or the result of cls(response) :rtype: @@ -702,7 +649,7 @@ async def begin_subscribe_to_events( def get_long_running_output(pipeline_response): deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: @@ -712,17 +659,15 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller.from_continuation_token( + return AsyncLROPoller[_models.TriggerSubscriptionOperationStatus].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_subscribe_to_events.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/subscribeToEvents" - } + return AsyncLROPoller[_models.TriggerSubscriptionOperationStatus]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) @distributed_trace_async async def get_event_subscription_status( @@ -736,7 +681,6 @@ async def get_event_subscription_status( :type factory_name: str :param trigger_name: The trigger name. Required. :type trigger_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerSubscriptionOperationStatus or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus :raises ~azure.core.exceptions.HttpResponseError: @@ -755,22 +699,21 @@ async def get_event_subscription_status( 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( + _request = build_get_event_subscription_status_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get_event_subscription_status.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -782,13 +725,9 @@ async def get_event_subscription_status( deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get_event_subscription_status.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/getEventSubscriptionStatus" - } + return deserialized # type: ignore async def _unsubscribe_from_events_initial( self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any @@ -807,22 +746,21 @@ async def _unsubscribe_from_events_initial( 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( + _request = build_unsubscribe_from_events_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self._unsubscribe_from_events_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -836,13 +774,9 @@ async def _unsubscribe_from_events_initial( deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - _unsubscribe_from_events_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents" - } + return deserialized # type: ignore @distributed_trace_async async def begin_unsubscribe_from_events( @@ -856,14 +790,6 @@ async def begin_unsubscribe_from_events( :type factory_name: str :param trigger_name: The trigger name. Required. :type trigger_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for - this operation to not poll, or pass in your own initialized polling object for a personal - polling strategy. - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of AsyncLROPoller that returns either TriggerSubscriptionOperationStatus or the result of cls(response) :rtype: @@ -894,7 +820,7 @@ async def begin_unsubscribe_from_events( def get_long_running_output(pipeline_response): deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: @@ -904,17 +830,15 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller.from_continuation_token( + return AsyncLROPoller[_models.TriggerSubscriptionOperationStatus].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_unsubscribe_from_events.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents" - } + return AsyncLROPoller[_models.TriggerSubscriptionOperationStatus]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) async def _start_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any @@ -933,22 +857,21 @@ async def _start_initial( # pylint: disable=inconsistent-return-statements 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( + _request = build_start_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self._start_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -958,11 +881,7 @@ async def _start_initial( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - _start_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/start" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def begin_start( @@ -976,14 +895,6 @@ async def begin_start( :type factory_name: str :param trigger_name: The trigger name. Required. :type trigger_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for - this operation to not poll, or pass in your own initialized polling object for a personal - polling strategy. - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -1011,7 +922,7 @@ async def begin_start( def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) @@ -1020,17 +931,13 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller.from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_start.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/start" - } + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore async def _stop_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any @@ -1049,22 +956,21 @@ async def _stop_initial( # pylint: disable=inconsistent-return-statements 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( + _request = build_stop_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self._stop_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1074,11 +980,7 @@ async def _stop_initial( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - _stop_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/stop" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace_async async def begin_stop( @@ -1092,14 +994,6 @@ async def begin_stop( :type factory_name: str :param trigger_name: The trigger name. Required. :type trigger_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for - this operation to not poll, or pass in your own initialized polling object for a personal - polling strategy. - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -1127,7 +1021,7 @@ async def begin_stop( def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs)) @@ -1136,14 +1030,10 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return AsyncLROPoller.from_continuation_token( + return AsyncLROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_stop.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/stop" - } + return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore 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 bfe119074ede..002c846e9e72 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 @@ -649,6 +649,7 @@ from ._models_py3 import ServiceNowV2ObjectDataset from ._models_py3 import ServiceNowV2Source from ._models_py3 import ServicePrincipalCredential +from ._models_py3 import ServicePrincipalCredentialResource from ._models_py3 import SetVariableActivity from ._models_py3 import SftpLocation from ._models_py3 import SftpReadSettings @@ -1557,6 +1558,7 @@ "ServiceNowV2ObjectDataset", "ServiceNowV2Source", "ServicePrincipalCredential", + "ServicePrincipalCredentialResource", "SetVariableActivity", "SftpLocation", "SftpReadSettings", 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 1fafa92cbb6d..ae4d3ae05912 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 @@ -278,6 +278,7 @@ class ExpressionV2Type(str, Enum, metaclass=CaseInsensitiveEnumMeta): FIELD = "Field" UNARY = "Unary" BINARY = "Binary" + N_ARY = "NAry" class FactoryIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -308,7 +309,7 @@ class GlobalParameterType(str, Enum, metaclass=CaseInsensitiveEnumMeta): OBJECT = "Object" STRING = "String" - INT = "Int" + INT_ENUM = "Int" FLOAT = "Float" BOOL = "Bool" ARRAY = "Array" @@ -553,7 +554,7 @@ class NotebookParameterType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Notebook parameter type.""" STRING = "string" - INT = "int" + INT_ENUM = "int" FLOAT = "float" BOOL = "bool" @@ -603,7 +604,7 @@ class ParameterType(str, Enum, metaclass=CaseInsensitiveEnumMeta): OBJECT = "Object" STRING = "String" - INT = "Int" + INT_ENUM = "Int" FLOAT = "Float" BOOL = "Bool" ARRAY = "Array" @@ -693,9 +694,8 @@ class RunQueryFilterOperator(str, Enum, metaclass=CaseInsensitiveEnumMeta): EQUALS = "Equals" NOT_EQUALS = "NotEquals" - IN = "In" - NOT_IN = "NotIn" IN_ENUM = "In" + NOT_IN = "NotIn" class RunQueryOrder(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -961,7 +961,7 @@ class StoredProcedureParameterType(str, Enum, metaclass=CaseInsensitiveEnumMeta) """Stored procedure parameter type.""" STRING = "String" - INT = "Int" + INT_ENUM = "Int" INT64 = "Int64" DECIMAL = "Decimal" GUID = "Guid" 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 b1b92301f74c..1b9a36d8d33b 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 @@ -69,7 +69,7 @@ class Activity(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: ControlActivity, ExecuteWranglingDataflowActivity, ExecutionActivity - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -163,7 +163,7 @@ def __init__( class ActivityDependency(_serialization.Model): """Activity dependency information. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -382,7 +382,7 @@ def __init__(self, *, additional_properties: Optional[Dict[str, JSON]] = None, * class ActivityRunsQueryResponse(_serialization.Model): """A list activity runs. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of activity runs. Required. :vartype value: list[~azure.mgmt.datafactory.models.ActivityRun] @@ -504,7 +504,7 @@ class LinkedService(_serialization.Model): TeradataLinkedService, TwilioLinkedService, VerticaLinkedService, WarehouseLinkedService, WebLinkedService, XeroLinkedService, ZendeskLinkedService, ZohoLinkedService - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -695,7 +695,7 @@ def __init__( class AmazonMWSLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Amazon Marketplace Web Service linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -884,7 +884,7 @@ class Dataset(_serialization.Model): VerticaTableDataset, WarehouseTableDataset, WebTableDataset, XeroObjectDataset, XmlDataset, ZohoObjectDataset - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -1086,7 +1086,7 @@ def __init__( class AmazonMWSObjectDataset(Dataset): """Amazon Marketplace Web Service dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -1199,7 +1199,7 @@ class CopySource(_serialization.Model): SalesforceServiceCloudSource, SalesforceServiceCloudV2Source, SharePointOnlineListSource, SnowflakeSource, SnowflakeV2Source, TabularSource, WebSource, XmlSource - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -1332,7 +1332,7 @@ class TabularSource(CopySource): SqlSource, SquareSource, SybaseSource, TeradataSource, VerticaSource, WarehouseSource, XeroSource, ZohoSource - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -1494,7 +1494,7 @@ def __init__( class AmazonMWSSource(TabularSource): """A copy activity Amazon Marketplace Web Service source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -1596,7 +1596,7 @@ def __init__( class AmazonRdsForOracleLinkedService(LinkedService): """AmazonRdsForOracle database. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -1745,7 +1745,7 @@ def __init__( class AmazonRdsForOracleSource(CopySource): # pylint: disable=too-many-instance-attributes """A copy activity AmazonRdsForOracle source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -1866,7 +1866,7 @@ def __init__( class AmazonRdsForOracleTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """The AmazonRdsForOracle database dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -1979,7 +1979,7 @@ def __init__( class AmazonRdsForSqlServerLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Amazon RDS for SQL Server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -2092,7 +2092,7 @@ def __init__( class AmazonRdsForSqlServerSource(TabularSource): # pylint: disable=too-many-instance-attributes """A copy activity Amazon RDS for SQL Server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -2247,7 +2247,7 @@ def __init__( class AmazonRdsForSqlServerTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """The Amazon RDS for SQL Server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -2360,7 +2360,7 @@ def __init__( class AmazonRedshiftLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for Amazon Redshift. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -2481,7 +2481,7 @@ def __init__( class AmazonRedshiftSource(TabularSource): """A copy activity source for Amazon Redshift Source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -2592,7 +2592,7 @@ def __init__( class AmazonRedshiftTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """The Amazon Redshift table dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -2714,7 +2714,7 @@ def __init__( class AmazonS3CompatibleLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for Amazon S3 Compatible. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -2836,7 +2836,7 @@ class DatasetLocation(_serialization.Model): GoogleCloudStorageLocation, HdfsLocation, HttpServerLocation, LakeHouseLocation, OracleCloudStorageLocation, SftpLocation - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -2910,7 +2910,7 @@ def __init__( class AmazonS3CompatibleLocation(DatasetLocation): """The location of Amazon S3 Compatible dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -2988,7 +2988,7 @@ class StoreReadSettings(_serialization.Model): FileServerReadSettings, FtpReadSettings, GoogleCloudStorageReadSettings, HdfsReadSettings, HttpReadSettings, LakeHouseReadSettings, OracleCloudStorageReadSettings, SftpReadSettings - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -3062,7 +3062,7 @@ def __init__( class AmazonS3CompatibleReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-attributes """Amazon S3 Compatible read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -3211,7 +3211,7 @@ def __init__( class AmazonS3Dataset(Dataset): # pylint: disable=too-many-instance-attributes """A single Amazon Simple Storage Service (S3) object or a set of S3 objects. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -3375,7 +3375,7 @@ def __init__( class AmazonS3LinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for Amazon S3. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -3496,7 +3496,7 @@ def __init__( class AmazonS3Location(DatasetLocation): """The location of amazon S3 dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -3568,7 +3568,7 @@ def __init__( class AmazonS3ReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-attributes """Amazon S3 read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -3722,7 +3722,7 @@ class ControlActivity(Activity): IfConditionActivity, SetVariableActivity, SwitchActivity, UntilActivity, ValidationActivity, WaitActivity, WebHookActivity - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -3827,7 +3827,7 @@ def __init__( class AppendVariableActivity(ControlActivity): """Append value for a Variable of type Array. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -3931,7 +3931,7 @@ def __init__( class AppFiguresLinkedService(LinkedService): """Linked service for AppFigures. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -4047,7 +4047,7 @@ def __init__(self, **kwargs: Any) -> None: class AsanaLinkedService(LinkedService): """Linked service for Asana. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -4131,7 +4131,7 @@ def __init__( class AvroDataset(Dataset): # pylint: disable=too-many-instance-attributes """Avro dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -4253,7 +4253,7 @@ class DatasetStorageFormat(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AvroFormat, JsonFormat, OrcFormat, ParquetFormat, TextFormat - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -4314,7 +4314,7 @@ def __init__( class AvroFormat(DatasetStorageFormat): """The data stored in Avro format. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -4375,7 +4375,7 @@ class CopySink(_serialization.Model): SalesforceServiceCloudV2Sink, SalesforceSink, SalesforceV2Sink, SapCloudForCustomerSink, SnowflakeSink, SnowflakeV2Sink, SqlDWSink, SqlMISink, SqlServerSink, SqlSink, WarehouseSink - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -4515,7 +4515,7 @@ def __init__( class AvroSink(CopySink): """A copy activity Avro sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -4622,7 +4622,7 @@ def __init__( class AvroSource(CopySource): """A copy activity Avro source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -4717,7 +4717,7 @@ class FormatWriteSettings(_serialization.Model): AvroWriteSettings, DelimitedTextWriteSettings, JsonWriteSettings, OrcWriteSettings, ParquetWriteSettings - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -4759,7 +4759,7 @@ def __init__(self, *, additional_properties: Optional[Dict[str, JSON]] = None, * class AvroWriteSettings(FormatWriteSettings): """Avro write settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -4832,7 +4832,7 @@ class CustomSetupBase(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzPowerShellSetup, CmdkeySetup, ComponentSetup, EnvironmentVariableSetup - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: The type of custom setup. Required. :vartype type: str @@ -4864,7 +4864,7 @@ def __init__(self, **kwargs: Any) -> None: class AzPowerShellSetup(CustomSetupBase): """The express custom setup of installing Azure PowerShell. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: The type of custom setup. Required. :vartype type: str @@ -4895,7 +4895,7 @@ def __init__(self, *, version: str, **kwargs: Any) -> None: class AzureBatchLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Azure Batch linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -5023,7 +5023,7 @@ def __init__( class AzureBlobDataset(Dataset): # pylint: disable=too-many-instance-attributes """The Azure Blob storage. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -5177,7 +5177,7 @@ def __init__( class AzureBlobFSDataset(Dataset): # pylint: disable=too-many-instance-attributes """The Azure Data Lake Storage Gen2 storage. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -5304,7 +5304,7 @@ def __init__( class AzureBlobFSLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Azure Data Lake Storage Gen2 linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -5485,7 +5485,7 @@ def __init__( class AzureBlobFSLocation(DatasetLocation): """The location of azure blobFS dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -5548,7 +5548,7 @@ def __init__( class AzureBlobFSReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-attributes """Azure blobFS read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -5688,7 +5688,7 @@ def __init__( class AzureBlobFSSink(CopySink): """A copy activity Azure Data Lake Storage Gen2 sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -5799,7 +5799,7 @@ def __init__( class AzureBlobFSSource(CopySource): """A copy activity Azure BlobFS source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -5906,7 +5906,7 @@ class StoreWriteSettings(_serialization.Model): AzureFileStorageWriteSettings, FileServerWriteSettings, LakeHouseWriteSettings, SftpWriteSettings - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -5989,7 +5989,7 @@ def __init__( class AzureBlobFSWriteSettings(StoreWriteSettings): """Azure blobFS write settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -6071,7 +6071,7 @@ def __init__( class AzureBlobStorageLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """The azure blob storage linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -6266,7 +6266,7 @@ def __init__( class AzureBlobStorageLocation(DatasetLocation): """The location of azure blob dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -6329,7 +6329,7 @@ def __init__( class AzureBlobStorageReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-attributes """Azure blob read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -6478,7 +6478,7 @@ def __init__( class AzureBlobStorageWriteSettings(StoreWriteSettings): """Azure blob write settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -6560,7 +6560,7 @@ def __init__( class AzureDatabricksDeltaLakeDataset(Dataset): # pylint: disable=too-many-instance-attributes """Azure Databricks Delta Lake dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -6674,7 +6674,7 @@ class ExportSettings(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureDatabricksDeltaLakeExportCommand, SnowflakeExportCopyCommand - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -6713,7 +6713,7 @@ def __init__(self, *, additional_properties: Optional[Dict[str, JSON]] = None, * class AzureDatabricksDeltaLakeExportCommand(ExportSettings): """Azure Databricks Delta Lake export command settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -6770,7 +6770,7 @@ class ImportSettings(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureDatabricksDeltaLakeImportCommand, SnowflakeImportCopyCommand - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -6809,7 +6809,7 @@ def __init__(self, *, additional_properties: Optional[Dict[str, JSON]] = None, * class AzureDatabricksDeltaLakeImportCommand(ImportSettings): """Azure Databricks Delta Lake import command settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -6863,7 +6863,7 @@ def __init__( class AzureDatabricksDeltaLakeLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Azure Databricks Delta Lake linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -6985,7 +6985,7 @@ def __init__( class AzureDatabricksDeltaLakeSink(CopySink): """A copy activity Azure Databricks Delta Lake sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -7095,7 +7095,7 @@ def __init__( class AzureDatabricksDeltaLakeSource(CopySource): """A copy activity Azure Databricks Delta Lake source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -7187,7 +7187,7 @@ def __init__( class AzureDatabricksLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Azure Databricks linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -7454,7 +7454,7 @@ class ExecutionActivity(Activity): HDInsightStreamingActivity, LookupActivity, ScriptActivity, SynapseSparkJobDefinitionActivity, SqlServerStoredProcedureActivity, SynapseNotebookActivity, WebActivity - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -7587,7 +7587,7 @@ def __init__( class AzureDataExplorerCommandActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Azure Data Explorer command activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -7708,7 +7708,7 @@ def __init__( class AzureDataExplorerLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Azure Data Explorer (Kusto) linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -7831,7 +7831,7 @@ def __init__( class AzureDataExplorerSink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity Azure Data Explorer sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -7951,7 +7951,7 @@ def __init__( class AzureDataExplorerSource(CopySource): """A copy activity Azure Data Explorer (Kusto) source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -8063,7 +8063,7 @@ def __init__( class AzureDataExplorerTableDataset(Dataset): """The Azure Data Explorer (Kusto) dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -8167,7 +8167,7 @@ def __init__( class AzureDataLakeAnalyticsLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Azure Data Lake Analytics linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -8308,7 +8308,7 @@ def __init__( class AzureDataLakeStoreDataset(Dataset): # pylint: disable=too-many-instance-attributes """Azure Data Lake Store dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -8437,7 +8437,7 @@ def __init__( class AzureDataLakeStoreLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Azure Data Lake Store linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -8595,7 +8595,7 @@ def __init__( class AzureDataLakeStoreLocation(DatasetLocation): """The location of azure data lake store dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -8649,7 +8649,7 @@ def __init__( class AzureDataLakeStoreReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-attributes """Azure data lake store read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -8811,7 +8811,7 @@ def __init__( class AzureDataLakeStoreSink(CopySink): """A copy activity Azure Data Lake Store sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -8920,7 +8920,7 @@ def __init__( class AzureDataLakeStoreSource(CopySource): """A copy activity Azure Data Lake source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -9004,7 +9004,7 @@ def __init__( class AzureDataLakeStoreWriteSettings(StoreWriteSettings): """Azure data lake store write settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -9088,7 +9088,7 @@ def __init__( class AzureFileStorageLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Azure File Storage linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -9237,7 +9237,7 @@ def __init__( class AzureFileStorageLocation(DatasetLocation): """The location of file server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -9291,7 +9291,7 @@ def __init__( class AzureFileStorageReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-attributes """Azure File Storage read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -9440,7 +9440,7 @@ def __init__( class AzureFileStorageWriteSettings(StoreWriteSettings): """Azure File Storage write settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -9513,7 +9513,7 @@ def __init__( class AzureFunctionActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Azure Function activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -9548,7 +9548,7 @@ class AzureFunctionActivity(ExecutionActivity): # pylint: disable=too-many-inst :ivar headers: Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). - :vartype headers: dict[str, str] + :vartype headers: dict[str, JSON] :ivar body: Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). :vartype body: JSON @@ -9574,7 +9574,7 @@ class AzureFunctionActivity(ExecutionActivity): # pylint: disable=too-many-inst "policy": {"key": "policy", "type": "ActivityPolicy"}, "method": {"key": "typeProperties.method", "type": "str"}, "function_name": {"key": "typeProperties.functionName", "type": "object"}, - "headers": {"key": "typeProperties.headers", "type": "{str}"}, + "headers": {"key": "typeProperties.headers", "type": "{object}"}, "body": {"key": "typeProperties.body", "type": "object"}, } @@ -9592,7 +9592,7 @@ def __init__( user_properties: Optional[List["_models.UserProperty"]] = None, linked_service_name: Optional["_models.LinkedServiceReference"] = None, policy: Optional["_models.ActivityPolicy"] = None, - headers: Optional[Dict[str, str]] = None, + headers: Optional[Dict[str, JSON]] = None, body: Optional[JSON] = None, **kwargs: Any ) -> None: @@ -9628,7 +9628,7 @@ def __init__( :keyword headers: Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). - :paramtype headers: dict[str, str] + :paramtype headers: dict[str, JSON] :keyword body: Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). :paramtype body: JSON @@ -9655,7 +9655,7 @@ def __init__( class AzureFunctionLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Azure Function linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -9775,7 +9775,7 @@ def __init__( class AzureKeyVaultLinkedService(LinkedService): """Azure Key Vault linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -9862,7 +9862,7 @@ class SecretBase(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: AzureKeyVaultSecretReference, SecureString - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of the secret. Required. :vartype type: str @@ -9887,7 +9887,7 @@ def __init__(self, **kwargs: Any) -> None: class AzureKeyVaultSecretReference(SecretBase): """Azure Key Vault secret reference. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of the secret. Required. :vartype type: str @@ -9942,7 +9942,7 @@ def __init__( class AzureMariaDBLinkedService(LinkedService): """Azure Database for MariaDB linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -10034,7 +10034,7 @@ def __init__( class AzureMariaDBSource(TabularSource): """A copy activity Azure MariaDB source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -10136,7 +10136,7 @@ def __init__( class AzureMariaDBTableDataset(Dataset): """Azure Database for MariaDB dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -10238,7 +10238,7 @@ def __init__( class AzureMLBatchExecutionActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Azure ML Batch Execution activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -10378,7 +10378,7 @@ def __init__( class AzureMLExecutePipelineActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Azure ML Execute Pipeline activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -10565,7 +10565,7 @@ def __init__( class AzureMLLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Azure ML Studio Web Service linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -10706,7 +10706,7 @@ def __init__( class AzureMLServiceLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Azure ML Service linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -10850,7 +10850,7 @@ def __init__( class AzureMLUpdateResourceActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Azure ML Update Resource management activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -10989,7 +10989,7 @@ def __init__( class AzureMLWebServiceFile(_serialization.Model): """Azure ML WebService Input/Output file. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar file_path: The relative file path, including container name, in the Azure Blob Storage specified by the LinkedService. Type: string (or Expression with resultType string). Required. @@ -11028,7 +11028,7 @@ def __init__( class AzureMySqlLinkedService(LinkedService): """Azure MySQL database linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -11121,7 +11121,7 @@ def __init__( class AzureMySqlSink(CopySink): """A copy activity Azure MySql sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -11223,7 +11223,7 @@ def __init__( class AzureMySqlSource(TabularSource): """A copy activity Azure MySQL source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -11323,7 +11323,7 @@ def __init__( class AzureMySqlTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """The Azure MySQL database dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -11436,7 +11436,7 @@ def __init__( class AzurePostgreSqlLinkedService(LinkedService): """Azure PostgreSQL linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -11528,7 +11528,7 @@ def __init__( class AzurePostgreSqlSink(CopySink): """A copy activity Azure PostgreSQL sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -11630,7 +11630,7 @@ def __init__( class AzurePostgreSqlSource(TabularSource): """A copy activity Azure PostgreSQL source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -11732,7 +11732,7 @@ def __init__( class AzurePostgreSqlTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """Azure PostgreSQL dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -11854,7 +11854,7 @@ def __init__( class AzureQueueSink(CopySink): """A copy activity Azure Queue sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -11947,7 +11947,7 @@ def __init__( class AzureSearchIndexDataset(Dataset): """The Azure Search Index. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -12052,7 +12052,7 @@ def __init__( class AzureSearchIndexSink(CopySink): """A copy activity Azure Search Index sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -12156,7 +12156,7 @@ def __init__( class AzureSearchLinkedService(LinkedService): """Linked service for Windows Azure Search Service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -12249,7 +12249,7 @@ def __init__( class AzureSqlDatabaseLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Microsoft Azure SQL Database linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -12398,7 +12398,7 @@ def __init__( class AzureSqlDWLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Azure SQL Data Warehouse linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -12538,7 +12538,7 @@ def __init__( class AzureSqlDWTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """The Azure SQL Data Warehouse dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -12660,7 +12660,7 @@ def __init__( class AzureSqlMILinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Azure SQL Managed Instance linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -12809,7 +12809,7 @@ def __init__( class AzureSqlMITableDataset(Dataset): # pylint: disable=too-many-instance-attributes """The Azure SQL Managed Instance dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -12931,7 +12931,7 @@ def __init__( class AzureSqlSink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity Azure SQL sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -13104,7 +13104,7 @@ def __init__( class AzureSqlSource(TabularSource): # pylint: disable=too-many-instance-attributes """A copy activity Azure SQL source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -13261,7 +13261,7 @@ def __init__( class AzureSqlTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """The Azure SQL Server database dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -13383,7 +13383,7 @@ def __init__( class AzureStorageLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """The storage account linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -13491,7 +13491,7 @@ def __init__( class AzureSynapseArtifactsLinkedService(LinkedService): """Azure Synapse Analytics (Artifacts) linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -13513,7 +13513,7 @@ class AzureSynapseArtifactsLinkedService(LinkedService): authentication method. Type: string (or Expression with resultType string). :vartype authentication: JSON :ivar workspace_resource_id: The resource ID of the Synapse workspace. The format should be: - /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{workspaceName}. + /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{workspaceName}. # pylint: disable=line-too-long Type: string (or Expression with resultType string). :vartype workspace_resource_id: JSON """ @@ -13567,7 +13567,7 @@ def __init__( authentication method. Type: string (or Expression with resultType string). :paramtype authentication: JSON :keyword workspace_resource_id: The resource ID of the Synapse workspace. The format should be: - /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{workspaceName}. + /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{workspaceName}. # pylint: disable=line-too-long Type: string (or Expression with resultType string). :paramtype workspace_resource_id: JSON """ @@ -13588,7 +13588,7 @@ def __init__( class AzureTableDataset(Dataset): """The Azure Table storage dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -13693,7 +13693,7 @@ def __init__( class AzureTableSink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity Azure Table sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -13822,7 +13822,7 @@ def __init__( class AzureTableSource(TabularSource): """A copy activity Azure Table source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -13933,7 +13933,7 @@ def __init__( class AzureTableStorageLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """The azure table storage linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -14041,7 +14041,7 @@ def __init__( class BigDataPoolParametrizationReference(_serialization.Model): """Big data pool reference type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Big data pool reference type. Required. "BigDataPoolReference" :vartype type: str or ~azure.mgmt.datafactory.models.BigDataPoolReferenceType @@ -14078,7 +14078,7 @@ def __init__( class BinaryDataset(Dataset): # pylint: disable=too-many-instance-attributes """Binary dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -14191,7 +14191,7 @@ class FormatReadSettings(_serialization.Model): BinaryReadSettings, DelimitedTextReadSettings, JsonReadSettings, ParquetReadSettings, XmlReadSettings - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -14233,7 +14233,7 @@ def __init__(self, *, additional_properties: Optional[Dict[str, JSON]] = None, * class BinaryReadSettings(FormatReadSettings): """Binary read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -14276,7 +14276,7 @@ def __init__( class BinarySink(CopySink): """A copy activity Binary sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -14376,7 +14376,7 @@ def __init__( class BinarySource(CopySource): """A copy activity Binary source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -14470,7 +14470,7 @@ class Trigger(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -14541,7 +14541,7 @@ class MultiplePipelineTrigger(Trigger): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -14614,7 +14614,7 @@ class BlobEventsTrigger(MultiplePipelineTrigger): # pylint: disable=too-many-in Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -14726,7 +14726,7 @@ def __init__( class BlobSink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity Azure Blob sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -14862,7 +14862,7 @@ def __init__( class BlobSource(CopySource): """A copy activity Azure Blob source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -14966,7 +14966,7 @@ class BlobTrigger(MultiplePipelineTrigger): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -15058,7 +15058,7 @@ def __init__( class CassandraLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for Cassandra data source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -15177,7 +15177,7 @@ def __init__( class CassandraSource(TabularSource): """A copy activity source for a Cassandra database. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -15298,7 +15298,7 @@ def __init__( class CassandraTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """The Cassandra database dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -15416,7 +15416,7 @@ class ChainingTrigger(Trigger): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -15519,7 +15519,7 @@ def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: class ChangeDataCaptureListResponse(_serialization.Model): """A list of change data capture resources. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: Lists all resources of type change data capture. Required. :vartype value: list[~azure.mgmt.datafactory.models.ChangeDataCaptureResource] @@ -15593,7 +15593,7 @@ class ChangeDataCaptureResource(SubResource): # pylint: disable=too-many-instan Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar id: The resource identifier. :vartype id: str @@ -15705,7 +15705,7 @@ def __init__( class CloudError(_serialization.Model): """The object that defines the structure of an Azure Data Factory error response. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar code: Error code. Required. :vartype code: str @@ -15758,7 +15758,7 @@ def __init__( class CmdkeySetup(CustomSetupBase): """The custom setup of running cmdkey commands. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: The type of custom setup. Required. :vartype type: str @@ -15825,7 +15825,7 @@ def __init__(self, *, user_assigned_identity: Optional[str] = None, **kwargs: An class CommonDataServiceForAppsEntityDataset(Dataset): """The Common Data Service for Apps entity dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -15929,7 +15929,7 @@ def __init__( class CommonDataServiceForAppsLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Common Data Service for Apps linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -16130,7 +16130,7 @@ def __init__( class CommonDataServiceForAppsSink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity Common Data Service for Apps sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -16251,7 +16251,7 @@ def __init__( class CommonDataServiceForAppsSource(CopySource): """A copy activity Common Data Service for Apps source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -16344,7 +16344,7 @@ def __init__( class ComponentSetup(CustomSetupBase): """The custom setup of installing 3rd party components. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: The type of custom setup. Required. :vartype type: str @@ -16386,7 +16386,7 @@ class CompressionReadSettings(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: TarGZipReadSettings, TarReadSettings, ZipDeflateReadSettings - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -16426,7 +16426,7 @@ def __init__(self, *, additional_properties: Optional[Dict[str, JSON]] = None, * class ConcurLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Concur Service linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -16565,7 +16565,7 @@ def __init__( class ConcurObjectDataset(Dataset): """Concur Service dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -16667,7 +16667,7 @@ def __init__( class ConcurSource(TabularSource): """A copy activity Concur Service source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -16802,7 +16802,7 @@ def __init__(self, **kwargs: Any) -> None: class CopyActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Copy activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -17131,7 +17131,7 @@ class CopyTranslator(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: TabularTranslator - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -17165,7 +17165,7 @@ def __init__(self, *, additional_properties: Optional[Dict[str, JSON]] = None, * class CosmosDbLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Microsoft Azure Cosmos Database (CosmosDB) linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -17347,7 +17347,7 @@ def __init__( class CosmosDbMongoDbApiCollectionDataset(Dataset): """The CosmosDB (MongoDB API) database dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -17452,7 +17452,7 @@ def __init__( class CosmosDbMongoDbApiLinkedService(LinkedService): """Linked service for CosmosDB (MongoDB API) data source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -17550,7 +17550,7 @@ def __init__( class CosmosDbMongoDbApiSink(CopySink): """A copy activity sink for a CosmosDB (MongoDB API) database. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -17654,7 +17654,7 @@ def __init__( class CosmosDbMongoDbApiSource(CopySource): # pylint: disable=too-many-instance-attributes """A copy activity source for a CosmosDB (MongoDB API) database. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -17778,7 +17778,7 @@ def __init__( class CosmosDbSqlApiCollectionDataset(Dataset): """Microsoft Azure CosmosDB (SQL API) Collection dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -17883,7 +17883,7 @@ def __init__( class CosmosDbSqlApiSink(CopySink): """A copy activity Azure CosmosDB (SQL API) Collection sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -17985,7 +17985,7 @@ def __init__( class CosmosDbSqlApiSource(CopySource): # pylint: disable=too-many-instance-attributes """A copy activity Azure CosmosDB (SQL API) Collection source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -18103,7 +18103,7 @@ def __init__( class CouchbaseLinkedService(LinkedService): """Couchbase server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -18195,7 +18195,7 @@ def __init__( class CouchbaseSource(TabularSource): """A copy activity Couchbase server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -18297,7 +18297,7 @@ def __init__( class CouchbaseTableDataset(Dataset): """Couchbase server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -18528,7 +18528,7 @@ def __init__( class CreateRunResponse(_serialization.Model): """Response body with a run identifier. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar run_id: Identifier of a run. Required. :vartype run_id: str @@ -18558,7 +18558,7 @@ class Credential(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: ManagedIdentityCredential, ServicePrincipalCredential - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -18613,10 +18613,10 @@ def __init__( class CredentialListResponse(_serialization.Model): """A list of credential resources. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of credentials. Required. - :vartype value: list[~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource] + :vartype value: list[~azure.mgmt.datafactory.models.CredentialResource] :ivar next_link: The link to the next page of results, if any remaining results exist. :vartype next_link: str """ @@ -18626,20 +18626,16 @@ class CredentialListResponse(_serialization.Model): } _attribute_map = { - "value": {"key": "value", "type": "[ManagedIdentityCredentialResource]"}, + "value": {"key": "value", "type": "[CredentialResource]"}, "next_link": {"key": "nextLink", "type": "str"}, } def __init__( - self, - *, - value: List["_models.ManagedIdentityCredentialResource"], - next_link: Optional[str] = None, - **kwargs: Any + self, *, value: List["_models.CredentialResource"], next_link: Optional[str] = None, **kwargs: Any ) -> None: """ :keyword value: List of credentials. Required. - :paramtype value: list[~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource] + :paramtype value: list[~azure.mgmt.datafactory.models.CredentialResource] :keyword next_link: The link to the next page of results, if any remaining results exist. :paramtype next_link: str """ @@ -18651,7 +18647,7 @@ def __init__( class CredentialReference(_serialization.Model): """Credential reference type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -18701,7 +18697,7 @@ class CredentialResource(SubResource): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar id: The resource identifier. :vartype id: str @@ -18743,7 +18739,7 @@ def __init__(self, *, properties: "_models.Credential", **kwargs: Any) -> None: class CustomActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Custom activity type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -18939,7 +18935,7 @@ def __init__( class CustomDataset(Dataset): """The custom dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -19041,7 +19037,7 @@ def __init__( class CustomDataSourceLinkedService(LinkedService): """Custom linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -19118,7 +19114,7 @@ class CustomEventsTrigger(MultiplePipelineTrigger): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -19217,7 +19213,7 @@ def __init__( class DatabricksNotebookActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """DatabricksNotebook activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -19348,7 +19344,7 @@ def __init__( class DatabricksSparkJarActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """DatabricksSparkJar activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -19477,7 +19473,7 @@ def __init__( class DatabricksSparkPythonActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """DatabricksSparkPython activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -19607,7 +19603,7 @@ class DataFlow(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: Flowlet, MappingDataFlow, WranglingDataFlow - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of data flow. Required. :vartype type: str @@ -19662,7 +19658,7 @@ def __init__( class DataFlowDebugCommandPayload(_serialization.Model): """Structure of command payload. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar stream_name: The stream name which is used for preview. Required. :vartype stream_name: str @@ -19916,7 +19912,7 @@ def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: class DataFlowDebugResource(SubResourceDebugResource): """Data flow debug resource. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar name: The resource name. :vartype name: str @@ -20059,7 +20055,7 @@ def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: class DataFlowListResponse(_serialization.Model): """A list of data flow resources. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of data flows. Required. :vartype value: list[~azure.mgmt.datafactory.models.DataFlowResource] @@ -20093,7 +20089,7 @@ def __init__( class DataFlowReference(_serialization.Model): """Data flow reference type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -20157,7 +20153,7 @@ class DataFlowResource(SubResource): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar id: The resource identifier. :vartype id: str @@ -20199,7 +20195,7 @@ def __init__(self, *, properties: "_models.DataFlow", **kwargs: Any) -> None: class Transformation(_serialization.Model): """A data flow transformation. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar name: Transformation name. Required. :vartype name: str @@ -20258,7 +20254,7 @@ def __init__( class DataFlowSink(Transformation): """Transformation for data flow sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar name: Transformation name. Required. :vartype name: str @@ -20333,7 +20329,7 @@ def __init__( class DataFlowSource(Transformation): """Transformation for data flow source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar name: Transformation name. Required. :vartype name: str @@ -20476,7 +20472,7 @@ def __init__( class DataLakeAnalyticsUSQLActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Data Lake Analytics U-SQL activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -20697,7 +20693,7 @@ def __init__( class DatasetCompression(_serialization.Model): """The compression method used on a dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -20774,7 +20770,7 @@ def __init__(self, *, name: Optional[JSON] = None, type: Optional[JSON] = None, class DatasetDebugResource(SubResourceDebugResource): """Dataset debug resource. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar name: The resource name. :vartype name: str @@ -20825,7 +20821,7 @@ def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: class DatasetListResponse(_serialization.Model): """A list of dataset resources. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of datasets. Required. :vartype value: list[~azure.mgmt.datafactory.models.DatasetResource] @@ -20859,7 +20855,7 @@ def __init__( class DatasetReference(_serialization.Model): """Dataset reference type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Dataset reference type. Required. "DatasetReference" :vartype type: str or ~azure.mgmt.datafactory.models.DatasetReferenceType @@ -20907,7 +20903,7 @@ class DatasetResource(SubResource): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar id: The resource identifier. :vartype id: str @@ -20990,7 +20986,7 @@ def __init__( class DataworldLinkedService(LinkedService): """Linked service for Dataworld. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -21074,7 +21070,7 @@ def __init__( class Db2LinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for DB2 data source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -21226,7 +21222,7 @@ def __init__( class Db2Source(TabularSource): """A copy activity source for Db2 databases. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -21326,7 +21322,7 @@ def __init__( class Db2TableDataset(Dataset): # pylint: disable=too-many-instance-attributes """The Db2 table dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -21446,7 +21442,7 @@ def __init__( class DeleteActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Delete activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -21620,7 +21616,7 @@ def __init__(self, *, session_id: Optional[str] = None, **kwargs: Any) -> None: class DelimitedTextDataset(Dataset): # pylint: disable=too-many-instance-attributes """Delimited text dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -21803,7 +21799,7 @@ def __init__( class DelimitedTextReadSettings(FormatReadSettings): """Delimited text read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -21855,7 +21851,7 @@ def __init__( class DelimitedTextSink(CopySink): """A copy activity DelimitedText sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -21962,7 +21958,7 @@ def __init__( class DelimitedTextSource(CopySource): """A copy activity DelimitedText source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -22060,7 +22056,7 @@ def __init__( class DelimitedTextWriteSettings(FormatWriteSettings): """Delimited text write settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -22138,7 +22134,7 @@ class DependencyReference(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: SelfDependencyTumblingWindowTriggerReference, TriggerDependencyReference - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: The type of dependency reference. Required. :vartype type: str @@ -22168,7 +22164,7 @@ def __init__(self, **kwargs: Any) -> None: class DistcpSettings(_serialization.Model): """Distcp settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar resource_manager_endpoint: Specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType string). Required. @@ -22222,7 +22218,7 @@ def __init__( class DocumentDbCollectionDataset(Dataset): """Microsoft Azure Document Database Collection dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -22327,7 +22323,7 @@ def __init__( class DocumentDbCollectionSink(CopySink): """A copy activity Document Database Collection sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -22438,7 +22434,7 @@ def __init__( class DocumentDbCollectionSource(CopySource): """A copy activity Document Database Collection source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -22547,7 +22543,7 @@ def __init__( class DrillLinkedService(LinkedService): """Drill server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -22639,7 +22635,7 @@ def __init__( class DrillSource(TabularSource): """A copy activity Drill server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -22741,7 +22737,7 @@ def __init__( class DrillTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """Drill server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -22934,7 +22930,7 @@ def __init__( class DynamicsAXLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Dynamics AX linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -23064,7 +23060,7 @@ def __init__( class DynamicsAXResourceDataset(Dataset): """The path of the Dynamics AX OData entity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -23169,7 +23165,7 @@ def __init__( class DynamicsAXSource(TabularSource): """A copy activity Dynamics AX source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -23284,7 +23280,7 @@ def __init__( class DynamicsCrmEntityDataset(Dataset): """The Dynamics CRM entity dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -23388,7 +23384,7 @@ def __init__( class DynamicsCrmLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Dynamics CRM linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -23582,7 +23578,7 @@ def __init__( class DynamicsCrmSink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity Dynamics CRM sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -23703,7 +23699,7 @@ def __init__( class DynamicsCrmSource(CopySource): """A copy activity Dynamics CRM source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -23796,7 +23792,7 @@ def __init__( class DynamicsEntityDataset(Dataset): """The Dynamics entity dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -23900,7 +23896,7 @@ def __init__( class DynamicsLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Dynamics linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -24100,7 +24096,7 @@ def __init__( class DynamicsSink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity Dynamics sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -24221,7 +24217,7 @@ def __init__( class DynamicsSource(CopySource): """A copy activity Dynamics source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -24314,7 +24310,7 @@ def __init__( class EloquaLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Eloqua server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -24444,7 +24440,7 @@ def __init__( class EloquaObjectDataset(Dataset): """Eloqua server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -24546,7 +24542,7 @@ def __init__( class EloquaSource(TabularSource): """A copy activity Eloqua server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -24648,7 +24644,7 @@ def __init__( class EncryptionConfiguration(_serialization.Model): """Definition of CMK for the factory. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar key_name: The name of the key in Azure Key Vault to use as Customer Managed Key. Required. @@ -24741,7 +24737,7 @@ def __init__( class EnvironmentVariableSetup(CustomSetupBase): """The custom setup of setting environment variable. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: The type of custom setup. Required. :vartype type: str @@ -24779,7 +24775,7 @@ def __init__(self, *, variable_name: str, variable_value: str, **kwargs: Any) -> class ExcelDataset(Dataset): # pylint: disable=too-many-instance-attributes """Excel dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -24934,7 +24930,7 @@ def __init__( class ExcelSource(CopySource): """A copy activity excel source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -25025,7 +25021,7 @@ def __init__( class ExecuteDataFlowActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Execute data flow activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -25194,7 +25190,7 @@ def __init__( class ExecuteDataFlowActivityTypeProperties(_serialization.Model): """Execute data flow activity properties. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar data_flow: Data flow reference. Required. :vartype data_flow: ~azure.mgmt.datafactory.models.DataFlowReference @@ -25281,7 +25277,7 @@ def __init__( self.source_staging_concurrency = source_staging_concurrency -class ExecuteDataFlowActivityTypePropertiesCompute(_serialization.Model): +class ExecuteDataFlowActivityTypePropertiesCompute(_serialization.Model): # pylint: disable=name-too-long """Compute properties for data flow activity. :ivar compute_type: Compute type of the cluster which will execute data flow job. Possible @@ -25319,7 +25315,7 @@ def __init__( class ExecutePipelineActivity(ControlActivity): # pylint: disable=too-many-instance-attributes """Execute pipeline activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -25474,7 +25470,7 @@ def __init__( class ExecutePowerQueryActivityTypeProperties(ExecuteDataFlowActivityTypeProperties): """Execute power query data flow activity properties. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar data_flow: Data flow reference. Required. :vartype data_flow: ~azure.mgmt.datafactory.models.DataFlowReference @@ -25582,7 +25578,7 @@ def __init__( class ExecuteSSISPackageActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Execute SSIS package activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -25790,7 +25786,7 @@ def __init__( class ExecuteWranglingDataflowActivity(Activity): # pylint: disable=too-many-instance-attributes """Execute power query activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -25968,7 +25964,7 @@ def __init__( class ExposureControlBatchRequest(_serialization.Model): """A list of exposure control features. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar exposure_control_requests: List of exposure control features. Required. :vartype exposure_control_requests: list[~azure.mgmt.datafactory.models.ExposureControlRequest] @@ -25995,7 +25991,7 @@ def __init__(self, *, exposure_control_requests: List["_models.ExposureControlRe class ExposureControlBatchResponse(_serialization.Model): """A list of exposure control feature values. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar exposure_control_responses: List of exposure control feature values. Required. :vartype exposure_control_responses: @@ -26079,7 +26075,7 @@ def __init__(self, **kwargs: Any) -> None: class Expression(_serialization.Model): """Azure Data Factory expression definition. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Expression type. Required. "Expression" :vartype type: str or ~azure.mgmt.datafactory.models.ExpressionType @@ -26113,12 +26109,12 @@ class ExpressionV2(_serialization.Model): """Nested representation of a complex expression. :ivar type: Type of expressions supported by the system. Type: string. Known values are: - "Constant", "Field", "Unary", and "Binary". + "Constant", "Field", "Unary", "Binary", and "NAry". :vartype type: str or ~azure.mgmt.datafactory.models.ExpressionV2Type :ivar value: Value for Constant/Field Type: string. :vartype value: str - :ivar operator: Expression operator value Type: string. - :vartype operator: str + :ivar operators: Expression operator value Type: list of strings. + :vartype operators: list[JSON] :ivar operands: List of nested expressions. :vartype operands: list[~azure.mgmt.datafactory.models.ExpressionV2] """ @@ -26126,7 +26122,7 @@ class ExpressionV2(_serialization.Model): _attribute_map = { "type": {"key": "type", "type": "str"}, "value": {"key": "value", "type": "str"}, - "operator": {"key": "operator", "type": "str"}, + "operators": {"key": "operators", "type": "[object]"}, "operands": {"key": "operands", "type": "[ExpressionV2]"}, } @@ -26135,25 +26131,25 @@ def __init__( *, type: Optional[Union[str, "_models.ExpressionV2Type"]] = None, value: Optional[str] = None, - operator: Optional[str] = None, + operators: Optional[List[JSON]] = None, operands: Optional[List["_models.ExpressionV2"]] = None, **kwargs: Any ) -> None: """ :keyword type: Type of expressions supported by the system. Type: string. Known values are: - "Constant", "Field", "Unary", and "Binary". + "Constant", "Field", "Unary", "Binary", and "NAry". :paramtype type: str or ~azure.mgmt.datafactory.models.ExpressionV2Type :keyword value: Value for Constant/Field Type: string. :paramtype value: str - :keyword operator: Expression operator value Type: string. - :paramtype operator: str + :keyword operators: Expression operator value Type: list of strings. + :paramtype operators: list[JSON] :keyword operands: List of nested expressions. :paramtype operands: list[~azure.mgmt.datafactory.models.ExpressionV2] """ super().__init__(**kwargs) self.type = type self.value = value - self.operator = operator + self.operators = operators self.operands = operands @@ -26335,7 +26331,7 @@ class FactoryRepoConfiguration(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: FactoryGitHubConfiguration, FactoryVSTSConfiguration - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of repo configuration. Required. :vartype type: str @@ -26418,7 +26414,7 @@ def __init__( class FactoryGitHubConfiguration(FactoryRepoConfiguration): """Factory's GitHub repo information. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of repo configuration. Required. :vartype type: str @@ -26519,7 +26515,7 @@ class FactoryIdentity(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: The identity type. Required. Known values are: "SystemAssigned", "UserAssigned", and "SystemAssigned,UserAssigned". @@ -26569,7 +26565,7 @@ def __init__( class FactoryListResponse(_serialization.Model): """A list of factory resources. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of factories. Required. :vartype value: list[~azure.mgmt.datafactory.models.Factory] @@ -26674,7 +26670,7 @@ def __init__( class FactoryVSTSConfiguration(FactoryRepoConfiguration): """Factory's VSTS repo information. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of repo configuration. Required. :vartype type: str @@ -26770,7 +26766,7 @@ class FailActivity(ControlActivity): be evaluated to a string at runtime. The activity scope can be the whole pipeline or a control activity (e.g. foreach, switch, until), if the fail activity is contained in it. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -26882,7 +26878,7 @@ def __init__( class FileServerLinkedService(LinkedService): """File system linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -26984,7 +26980,7 @@ def __init__( class FileServerLocation(DatasetLocation): """The location of file server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -27038,7 +27034,7 @@ def __init__( class FileServerReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-attributes """File server read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -27187,7 +27183,7 @@ def __init__( class FileServerWriteSettings(StoreWriteSettings): """File server write settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -27260,7 +27256,7 @@ def __init__( class FileShareDataset(Dataset): # pylint: disable=too-many-instance-attributes """An on-premises file system dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -27414,7 +27410,7 @@ def __init__( class FileSystemSink(CopySink): """A copy activity file system sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -27514,7 +27510,7 @@ def __init__( class FileSystemSource(CopySource): """A copy activity file system source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -27607,7 +27603,7 @@ def __init__( class FilterActivity(ControlActivity): """Filter and return results from input array based on the conditions. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -27711,7 +27707,7 @@ def __init__( class Flowlet(DataFlow): """Data flow flowlet. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of data flow. Required. :vartype type: str @@ -27794,7 +27790,7 @@ def __init__( class ForEachActivity(ControlActivity): # pylint: disable=too-many-instance-attributes """This activity is used for iterating over a collection and execute given activities. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -27915,7 +27911,7 @@ def __init__( class FtpReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-attributes """Ftp read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -28055,7 +28051,7 @@ def __init__( class FtpServerLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """A FTP server Linked Service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -28198,7 +28194,7 @@ def __init__( class FtpServerLocation(DatasetLocation): """The location of ftp server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -28282,7 +28278,7 @@ def __init__( class GetMetadataActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Activity to get metadata of dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -28433,7 +28429,7 @@ def __init__(self, *, metadata_path: Optional[str] = None, **kwargs: Any) -> Non class GitHubAccessTokenRequest(_serialization.Model): """Get GitHub access token request definition. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar git_hub_access_code: GitHub access code. Required. :vartype git_hub_access_code: str @@ -28534,7 +28530,7 @@ def __init__( class GlobalParameterListResponse(_serialization.Model): """A list of Global parameters. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of global parameters. Required. :vartype value: list[~azure.mgmt.datafactory.models.GlobalParameterResource] @@ -28570,7 +28566,7 @@ class GlobalParameterResource(SubResource): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar id: The resource identifier. :vartype id: str @@ -28612,7 +28608,7 @@ def __init__(self, *, properties: Dict[str, "_models.GlobalParameterSpecificatio class GlobalParameterSpecification(_serialization.Model): """Definition of a single parameter for an entity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Global Parameter type. Required. Known values are: "Object", "String", "Int", "Float", "Bool", and "Array". @@ -28647,7 +28643,7 @@ def __init__(self, *, type: Union[str, "_models.GlobalParameterType"], value: JS class GoogleAdWordsLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Google AdWords service linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -28879,7 +28875,7 @@ def __init__( class GoogleAdWordsObjectDataset(Dataset): """Google AdWords service dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -28981,7 +28977,7 @@ def __init__( class GoogleAdWordsSource(TabularSource): """A copy activity Google AdWords service source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -29083,7 +29079,7 @@ def __init__( class GoogleBigQueryLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Google BigQuery service linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -29274,7 +29270,7 @@ def __init__( class GoogleBigQueryObjectDataset(Dataset): # pylint: disable=too-many-instance-attributes """Google BigQuery service dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -29396,7 +29392,7 @@ def __init__( class GoogleBigQuerySource(TabularSource): """A copy activity Google BigQuery service source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -29498,7 +29494,7 @@ def __init__( class GoogleBigQueryV2LinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Google BigQuery service linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -29632,7 +29628,7 @@ def __init__( class GoogleBigQueryV2ObjectDataset(Dataset): # pylint: disable=too-many-instance-attributes """Google BigQuery service dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -29745,7 +29741,7 @@ def __init__( class GoogleBigQueryV2Source(TabularSource): """A copy activity Google BigQuery service source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -29847,7 +29843,7 @@ def __init__( class GoogleCloudStorageLinkedService(LinkedService): """Linked service for Google Cloud Storage. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -29954,7 +29950,7 @@ def __init__( class GoogleCloudStorageLocation(DatasetLocation): """The location of Google Cloud Storage dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -30026,7 +30022,7 @@ def __init__( class GoogleCloudStorageReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-attributes """Google Cloud Storage read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -30175,7 +30171,7 @@ def __init__( class GoogleSheetsLinkedService(LinkedService): """Linked service for GoogleSheets. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -30259,7 +30255,7 @@ def __init__( class GreenplumLinkedService(LinkedService): """Greenplum Database linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -30351,7 +30347,7 @@ def __init__( class GreenplumSource(TabularSource): """A copy activity Greenplum Database source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -30453,7 +30449,7 @@ def __init__( class GreenplumTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """Greenplum Database dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -30574,7 +30570,7 @@ def __init__( class HBaseLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """HBase server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -30739,7 +30735,7 @@ def __init__( class HBaseObjectDataset(Dataset): """HBase server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -30841,7 +30837,7 @@ def __init__( class HBaseSource(TabularSource): """A copy activity HBase server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -30943,7 +30939,7 @@ def __init__( class HdfsLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Hadoop Distributed File System (HDFS) linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -31054,7 +31050,7 @@ def __init__( class HdfsLocation(DatasetLocation): """The location of HDFS. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -31108,7 +31104,7 @@ def __init__( class HdfsReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-attributes """HDFS read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -31255,7 +31251,7 @@ def __init__( class HdfsSource(CopySource): """A copy activity HDFS source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -31346,7 +31342,7 @@ def __init__( class HDInsightHiveActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """HDInsight Hive activity type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -31507,7 +31503,7 @@ def __init__( class HDInsightLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """HDInsight linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -31646,7 +31642,7 @@ def __init__( class HDInsightMapReduceActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """HDInsight MapReduce activity type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -31808,7 +31804,7 @@ def __init__( class HDInsightOnDemandLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """HDInsight ondemand linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -31912,7 +31908,7 @@ class HDInsightOnDemandLinkedService(LinkedService): # pylint: disable=too-many :vartype zookeeper_node_size: JSON :ivar script_actions: Custom script actions to run on HDI ondemand cluster once it's up. Please refer to - https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. + https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. # pylint: disable=line-too-long :vartype script_actions: list[~azure.mgmt.datafactory.models.ScriptAction] :ivar virtual_network_id: The ARM resource ID for the vNet to which the cluster should be joined after creation. Type: string (or Expression with resultType string). @@ -32130,7 +32126,7 @@ def __init__( # pylint: disable=too-many-locals :paramtype zookeeper_node_size: JSON :keyword script_actions: Custom script actions to run on HDI ondemand cluster once it's up. Please refer to - https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. + https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. # pylint: disable=line-too-long :paramtype script_actions: list[~azure.mgmt.datafactory.models.ScriptAction] :keyword virtual_network_id: The ARM resource ID for the vNet to which the cluster should be joined after creation. Type: string (or Expression with resultType string). @@ -32189,7 +32185,7 @@ def __init__( # pylint: disable=too-many-locals class HDInsightPigActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """HDInsight Pig activity type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -32336,7 +32332,7 @@ def __init__( class HDInsightSparkActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """HDInsight Spark activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -32505,7 +32501,7 @@ def __init__( class HDInsightStreamingActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """HDInsight streaming activity type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -32703,7 +32699,7 @@ def __init__( class HiveLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Hive Server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -32923,7 +32919,7 @@ def __init__( class HiveObjectDataset(Dataset): # pylint: disable=too-many-instance-attributes """Hive Server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -33044,7 +33040,7 @@ def __init__( class HiveSource(TabularSource): """A copy activity Hive Server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -33146,7 +33142,7 @@ def __init__( class HttpDataset(Dataset): # pylint: disable=too-many-instance-attributes """A file in an HTTP web server. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -33297,7 +33293,7 @@ def __init__( class HttpLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for an HTTP source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -33457,7 +33453,7 @@ def __init__( class HttpReadSettings(StoreReadSettings): """Http read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -33559,7 +33555,7 @@ def __init__( class HttpServerLocation(DatasetLocation): """The location of http server. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -33622,7 +33618,7 @@ def __init__( class HttpSource(CopySource): """A copy activity source for an HTTP file. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -33710,7 +33706,7 @@ def __init__( class HubspotLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Hubspot Service linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -33848,7 +33844,7 @@ def __init__( class HubspotObjectDataset(Dataset): """Hubspot Service dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -33950,7 +33946,7 @@ def __init__( class HubspotSource(TabularSource): """A copy activity Hubspot Service source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -34054,7 +34050,7 @@ class IfConditionActivity(ControlActivity): # pylint: disable=too-many-instance ifTrueActivities property or the ifFalseActivities property depending on the result of the expression. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -34172,7 +34168,7 @@ def __init__( class ImpalaLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Impala server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -34339,7 +34335,7 @@ def __init__( class ImpalaObjectDataset(Dataset): # pylint: disable=too-many-instance-attributes """Impala server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -34460,7 +34456,7 @@ def __init__( class ImpalaSource(TabularSource): """A copy activity Impala server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -34562,7 +34558,7 @@ def __init__( class InformixLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Informix linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -34686,7 +34682,7 @@ def __init__( class InformixSink(CopySink): """A copy activity Informix sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -34788,7 +34784,7 @@ def __init__( class InformixSource(TabularSource): """A copy activity source for Informix. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -34888,7 +34884,7 @@ def __init__( class InformixTableDataset(Dataset): """The Informix table dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -34994,7 +34990,7 @@ class IntegrationRuntime(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: ManagedIntegrationRuntime, SelfHostedIntegrationRuntime - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -35252,7 +35248,7 @@ def __init__(self, *, subnet_id: Optional[str] = None, **kwargs: Any) -> None: self.subnet_id = subnet_id -class IntegrationRuntimeCustomSetupScriptProperties(_serialization.Model): +class IntegrationRuntimeCustomSetupScriptProperties(_serialization.Model): # pylint: disable=name-too-long """Custom setup script properties for a managed dedicated integration runtime. :ivar blob_container_uri: The URI of the Azure blob container that contains the custom setup @@ -35366,7 +35362,7 @@ def __init__( self.custom_properties = custom_properties -class IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem(_serialization.Model): +class IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem(_serialization.Model): # pylint: disable=name-too-long """IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem. :ivar name: Name of custom property. @@ -35434,7 +35430,7 @@ def __init__( class IntegrationRuntimeDebugResource(SubResourceDebugResource): """Integration runtime debug resource. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar name: The resource name. :vartype name: str @@ -35465,7 +35461,7 @@ def __init__(self, *, properties: "_models.IntegrationRuntime", name: Optional[s class IntegrationRuntimeListResponse(_serialization.Model): """A list of integration runtime resources. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of integration runtimes. Required. :vartype value: list[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] @@ -35619,7 +35615,9 @@ def __init__(self, *, additional_properties: Optional[Dict[str, JSON]] = None, * self.received_bytes = None -class IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint(_serialization.Model): +class IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint( + _serialization.Model +): # pylint: disable=name-too-long """Azure-SSIS integration runtime outbound network dependency endpoints for one category. :ivar category: The category of outbound network dependency. @@ -35653,7 +35651,7 @@ def __init__( self.endpoints = endpoints -class IntegrationRuntimeOutboundNetworkDependenciesEndpoint(_serialization.Model): +class IntegrationRuntimeOutboundNetworkDependenciesEndpoint(_serialization.Model): # pylint: disable=name-too-long """The endpoint for Azure-SSIS integration runtime outbound network dependency. :ivar domain_name: The domain name of endpoint. @@ -35690,7 +35688,9 @@ def __init__( self.endpoint_details = endpoint_details -class IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(_serialization.Model): +class IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails( + _serialization.Model +): # pylint: disable=name-too-long """The details of Azure-SSIS integration runtime outbound network dependency endpoint. :ivar port: The port of endpoint. @@ -35710,7 +35710,9 @@ def __init__(self, *, port: Optional[int] = None, **kwargs: Any) -> None: self.port = port -class IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse(_serialization.Model): +class IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse( + _serialization.Model +): # pylint: disable=name-too-long """Azure-SSIS integration runtime outbound network dependency endpoints. :ivar value: The list of outbound network dependency endpoints. @@ -35740,7 +35742,7 @@ def __init__( class IntegrationRuntimeReference(_serialization.Model): """Integration runtime reference type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of integration runtime. Required. "IntegrationRuntimeReference" :vartype type: str or ~azure.mgmt.datafactory.models.IntegrationRuntimeReferenceType @@ -35783,7 +35785,7 @@ def __init__( self.parameters = parameters -class IntegrationRuntimeRegenerateKeyParameters(_serialization.Model): +class IntegrationRuntimeRegenerateKeyParameters(_serialization.Model): # pylint: disable=name-too-long """Parameters to regenerate the authentication key. :ivar key_name: The name of the authentication key to regenerate. Known values are: "authKey1" @@ -35812,7 +35814,7 @@ class IntegrationRuntimeResource(SubResource): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar id: The resource identifier. :vartype id: str @@ -36035,7 +36037,7 @@ class IntegrationRuntimeStatus(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -36084,7 +36086,7 @@ def __init__(self, *, additional_properties: Optional[Dict[str, JSON]] = None, * class IntegrationRuntimeStatusListResponse(_serialization.Model): """A list of integration runtime status. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of integration runtime status. Required. :vartype value: list[~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse] @@ -36120,7 +36122,7 @@ class IntegrationRuntimeStatusResponse(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar name: The integration runtime name. :vartype name: str @@ -36209,7 +36211,7 @@ def __init__( class JiraLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Jira Service linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -36349,7 +36351,7 @@ def __init__( class JiraObjectDataset(Dataset): """Jira Service dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -36451,7 +36453,7 @@ def __init__( class JiraSource(TabularSource): """A copy activity Jira Service source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -36553,7 +36555,7 @@ def __init__( class JsonDataset(Dataset): # pylint: disable=too-many-instance-attributes """Json dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -36677,7 +36679,7 @@ def __init__( class JsonFormat(DatasetStorageFormat): """The data stored in JSON format. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -36784,7 +36786,7 @@ def __init__( class JsonReadSettings(FormatReadSettings): """Json read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -36827,7 +36829,7 @@ def __init__( class JsonSink(CopySink): """A copy activity Json sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -36934,7 +36936,7 @@ def __init__( class JsonSource(CopySource): """A copy activity Json source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -37032,7 +37034,7 @@ def __init__( class JsonWriteSettings(FormatWriteSettings): """Json write settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -37077,7 +37079,7 @@ def __init__( class LakeHouseLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Microsoft Fabric LakeHouse linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -37224,7 +37226,7 @@ def __init__( class LakeHouseLocation(DatasetLocation): """The location of Microsoft Fabric LakeHouse Files dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -37278,7 +37280,7 @@ def __init__( class LakeHouseReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-attributes """Microsoft Fabric LakeHouse Files read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -37418,7 +37420,7 @@ def __init__( class LakeHouseTableDataset(Dataset): """Microsoft Fabric LakeHouse Table. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -37522,7 +37524,7 @@ def __init__( class LakeHouseTableSink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity for Microsoft Fabric LakeHouse Table sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -37644,7 +37646,7 @@ def __init__( class LakeHouseTableSource(CopySource): """A copy activity source for Microsoft Fabric LakeHouse Table. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -37746,7 +37748,7 @@ def __init__( class LakeHouseWriteSettings(StoreWriteSettings): """Microsoft Fabric LakeHouse Files write settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -37867,7 +37869,7 @@ class LinkedIntegrationRuntimeType(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar authorization_type: The authorization type for integration runtime sharing. Required. :vartype authorization_type: str @@ -37897,7 +37899,7 @@ def __init__(self, **kwargs: Any) -> None: class LinkedIntegrationRuntimeKeyAuthorization(LinkedIntegrationRuntimeType): """The key authorization type integration runtime. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar authorization_type: The authorization type for integration runtime sharing. Required. :vartype authorization_type: str @@ -37925,10 +37927,10 @@ def __init__(self, *, key: "_models.SecureString", **kwargs: Any) -> None: self.key = key -class LinkedIntegrationRuntimeRbacAuthorization(LinkedIntegrationRuntimeType): +class LinkedIntegrationRuntimeRbacAuthorization(LinkedIntegrationRuntimeType): # pylint: disable=name-too-long """The role based access control (RBAC) authorization type integration runtime. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar authorization_type: The authorization type for integration runtime sharing. Required. :vartype authorization_type: str @@ -37968,7 +37970,7 @@ def __init__( class LinkedIntegrationRuntimeRequest(_serialization.Model): """Data factory name for linked integration runtime request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar linked_factory_name: The data factory name for linked integration runtime. Required. :vartype linked_factory_name: str @@ -37994,7 +37996,7 @@ def __init__(self, *, linked_factory_name: str, **kwargs: Any) -> None: class LinkedServiceDebugResource(SubResourceDebugResource): """Linked service debug resource. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar name: The resource name. :vartype name: str @@ -38025,7 +38027,7 @@ def __init__(self, *, properties: "_models.LinkedService", name: Optional[str] = class LinkedServiceListResponse(_serialization.Model): """A list of linked service resources. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of linked services. Required. :vartype value: list[~azure.mgmt.datafactory.models.LinkedServiceResource] @@ -38059,7 +38061,7 @@ def __init__( class LinkedServiceReference(_serialization.Model): """Linked service reference type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Linked service reference type. Required. "LinkedServiceReference" :vartype type: str or ~azure.mgmt.datafactory.models.Type @@ -38107,7 +38109,7 @@ class LinkedServiceResource(SubResource): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar id: The resource identifier. :vartype id: str @@ -38149,7 +38151,7 @@ def __init__(self, *, properties: "_models.LinkedService", **kwargs: Any) -> Non class LogLocationSettings(_serialization.Model): """Log location settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar linked_service_name: Log storage linked service reference. Required. :vartype linked_service_name: ~azure.mgmt.datafactory.models.LinkedServiceReference @@ -38185,7 +38187,7 @@ def __init__( class LogSettings(_serialization.Model): """Log settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar enable_copy_activity_log: Specifies whether to enable copy activity log. Type: boolean (or Expression with resultType boolean). @@ -38234,7 +38236,7 @@ def __init__( class LogStorageSettings(_serialization.Model): """(Deprecated. Please use LogSettings) Log storage settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -38301,7 +38303,7 @@ def __init__( class LookupActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Lookup activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -38428,7 +38430,7 @@ def __init__( class MagentoLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Magento server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -38548,7 +38550,7 @@ def __init__( class MagentoObjectDataset(Dataset): """Magento server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -38650,7 +38652,7 @@ def __init__( class MagentoSource(TabularSource): """A copy activity Magento server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -38752,7 +38754,7 @@ def __init__( class ManagedIdentityCredential(Credential): """Managed identity credential. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -38763,8 +38765,6 @@ class ManagedIdentityCredential(Credential): :vartype description: str :ivar annotations: List of tags that can be used for describing the Credential. :vartype annotations: list[JSON] - :ivar resource_id: The resource id of user assigned managed identity. - :vartype resource_id: str """ _validation = { @@ -38776,7 +38776,6 @@ class ManagedIdentityCredential(Credential): "type": {"key": "type", "type": "str"}, "description": {"key": "description", "type": "str"}, "annotations": {"key": "annotations", "type": "[object]"}, - "resource_id": {"key": "typeProperties.resourceId", "type": "str"}, } def __init__( @@ -38785,7 +38784,6 @@ def __init__( additional_properties: Optional[Dict[str, JSON]] = None, description: Optional[str] = None, annotations: Optional[List[JSON]] = None, - resource_id: Optional[str] = None, **kwargs: Any ) -> None: """ @@ -38796,22 +38794,19 @@ def __init__( :paramtype description: str :keyword annotations: List of tags that can be used for describing the Credential. :paramtype annotations: list[JSON] - :keyword resource_id: The resource id of user assigned managed identity. - :paramtype resource_id: str """ super().__init__( additional_properties=additional_properties, description=description, annotations=annotations, **kwargs ) self.type: str = "ManagedIdentity" - self.resource_id = resource_id -class ManagedIdentityCredentialResource(SubResource): +class ManagedIdentityCredentialResource(CredentialResource): """Credential resource type. Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar id: The resource identifier. :vartype id: str @@ -38856,7 +38851,7 @@ class ManagedIntegrationRuntime(IntegrationRuntime): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -39102,7 +39097,7 @@ class ManagedIntegrationRuntimeStatus(IntegrationRuntimeStatus): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -39237,7 +39232,7 @@ def __init__( class ManagedPrivateEndpointListResponse(_serialization.Model): """A list of managed private endpoint resources. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of managed private endpoints. Required. :vartype value: list[~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource] @@ -39273,7 +39268,7 @@ class ManagedPrivateEndpointResource(SubResource): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar id: The resource identifier. :vartype id: str @@ -39352,7 +39347,7 @@ def __init__(self, *, additional_properties: Optional[Dict[str, JSON]] = None, * class ManagedVirtualNetworkListResponse(_serialization.Model): """A list of managed Virtual Network resources. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of managed Virtual Networks. Required. :vartype value: list[~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource] @@ -39386,7 +39381,7 @@ def __init__( class ManagedVirtualNetworkReference(_serialization.Model): """Managed Virtual Network reference type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Managed Virtual Network reference type. Required. "ManagedVirtualNetworkReference" :vartype type: str or ~azure.mgmt.datafactory.models.ManagedVirtualNetworkReferenceType @@ -39424,7 +39419,7 @@ class ManagedVirtualNetworkResource(SubResource): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar id: The resource identifier. :vartype id: str @@ -39596,7 +39591,7 @@ def __init__( class MapperConnection(_serialization.Model): """Source connection details. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar linked_service: Linked service reference. :vartype linked_service: ~azure.mgmt.datafactory.models.LinkedServiceReference @@ -39934,7 +39929,7 @@ def __init__( class MappingDataFlow(DataFlow): """Mapping data flow. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of data flow. Required. :vartype type: str @@ -40017,7 +40012,7 @@ def __init__( class MariaDBLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """MariaDB server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -40148,7 +40143,7 @@ def __init__( class MariaDBSource(TabularSource): """A copy activity MariaDB server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -40250,7 +40245,7 @@ def __init__( class MariaDBTableDataset(Dataset): """MariaDB server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -40352,7 +40347,7 @@ def __init__( class MarketoLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Marketo server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -40481,7 +40476,7 @@ def __init__( class MarketoObjectDataset(Dataset): """Marketo server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -40583,7 +40578,7 @@ def __init__( class MarketoSource(TabularSource): """A copy activity Marketo server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -40711,7 +40706,7 @@ def __init__(self, *, name: Optional[JSON] = None, value: Optional[JSON] = None, class MicrosoftAccessLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Microsoft Access linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -40835,7 +40830,7 @@ def __init__( class MicrosoftAccessSink(CopySink): """A copy activity Microsoft Access sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -40937,7 +40932,7 @@ def __init__( class MicrosoftAccessSource(CopySource): """A copy activity source for Microsoft Access. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -41028,7 +41023,7 @@ def __init__( class MicrosoftAccessTableDataset(Dataset): """The Microsoft Access table dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -41132,7 +41127,7 @@ def __init__( class MongoDbAtlasCollectionDataset(Dataset): """The MongoDB Atlas database dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -41237,7 +41232,7 @@ def __init__( class MongoDbAtlasLinkedService(LinkedService): """Linked service for MongoDB Atlas data source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -41335,7 +41330,7 @@ def __init__( class MongoDbAtlasSink(CopySink): """A copy activity MongoDB Atlas sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -41439,7 +41434,7 @@ def __init__( class MongoDbAtlasSource(CopySource): # pylint: disable=too-many-instance-attributes """A copy activity source for a MongoDB Atlas database. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -41563,7 +41558,7 @@ def __init__( class MongoDbCollectionDataset(Dataset): """The MongoDB database dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -41737,7 +41732,7 @@ def __init__( class MongoDbLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for MongoDb data source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -41896,7 +41891,7 @@ def __init__( class MongoDbSource(CopySource): """A copy activity source for a MongoDB database. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -41989,7 +41984,7 @@ def __init__( class MongoDbV2CollectionDataset(Dataset): """The MongoDB database dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -42094,7 +42089,7 @@ def __init__( class MongoDbV2LinkedService(LinkedService): """Linked service for MongoDB data source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -42183,7 +42178,7 @@ def __init__( class MongoDbV2Sink(CopySink): """A copy activity MongoDB sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -42287,7 +42282,7 @@ def __init__( class MongoDbV2Source(CopySource): # pylint: disable=too-many-instance-attributes """A copy activity source for a MongoDB database. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -42411,7 +42406,7 @@ def __init__( class MySqlLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for MySQL data source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -42560,7 +42555,7 @@ def __init__( class MySqlSource(TabularSource): """A copy activity source for MySQL databases. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -42660,7 +42655,7 @@ def __init__( class MySqlTableDataset(Dataset): """The MySQL table dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -42762,7 +42757,7 @@ def __init__( class NetezzaLinkedService(LinkedService): """Netezza linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -42903,7 +42898,7 @@ def __init__( class NetezzaSource(TabularSource): # pylint: disable=too-many-instance-attributes """A copy activity Netezza source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -43022,7 +43017,7 @@ def __init__( class NetezzaTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """Netezza dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -43176,7 +43171,7 @@ def __init__( class ODataLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Open Data Protocol (OData) linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -43386,7 +43381,7 @@ def __init__( class ODataResourceDataset(Dataset): """The Open Data Protocol (OData) resource dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -43488,7 +43483,7 @@ def __init__( class ODataSource(CopySource): """A copy activity source for OData source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -43594,7 +43589,7 @@ def __init__( class OdbcLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Open Database Connectivity (ODBC) linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -43716,7 +43711,7 @@ def __init__( class OdbcSink(CopySink): """A copy activity ODBC sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -43818,7 +43813,7 @@ def __init__( class OdbcSource(TabularSource): """A copy activity source for ODBC databases. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -43918,7 +43913,7 @@ def __init__( class OdbcTableDataset(Dataset): """The ODBC table dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -44020,7 +44015,7 @@ def __init__( class Office365Dataset(Dataset): # pylint: disable=too-many-instance-attributes """The Office365 account. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -44134,7 +44129,7 @@ def __init__( class Office365LinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Office365 linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -44248,7 +44243,7 @@ def __init__( class Office365Source(CopySource): # pylint: disable=too-many-instance-attributes """A copy activity source for an Office 365 service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -44727,7 +44722,7 @@ def __init__( class OracleCloudStorageLinkedService(LinkedService): """Linked service for Oracle Cloud Storage. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -44834,7 +44829,7 @@ def __init__( class OracleCloudStorageLocation(DatasetLocation): """The location of Oracle Cloud Storage dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -44906,7 +44901,7 @@ def __init__( class OracleCloudStorageReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-attributes """Oracle Cloud Storage read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -45055,7 +45050,7 @@ def __init__( class OracleLinkedService(LinkedService): """Oracle database. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -45204,7 +45199,7 @@ def __init__( class OracleServiceCloudLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Oracle Service Cloud linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -45337,7 +45332,7 @@ def __init__( class OracleServiceCloudObjectDataset(Dataset): """Oracle Service Cloud dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -45439,7 +45434,7 @@ def __init__( class OracleServiceCloudSource(TabularSource): """A copy activity Oracle Service Cloud source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -45541,7 +45536,7 @@ def __init__( class OracleSink(CopySink): """A copy activity Oracle sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -45643,7 +45638,7 @@ def __init__( class OracleSource(CopySource): # pylint: disable=too-many-instance-attributes """A copy activity Oracle source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -45762,7 +45757,7 @@ def __init__( class OracleTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """The on-premises Oracle database dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -45884,7 +45879,7 @@ def __init__( class OrcDataset(Dataset): # pylint: disable=too-many-instance-attributes """ORC dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -45995,7 +45990,7 @@ def __init__( class OrcFormat(DatasetStorageFormat): """The data stored in Optimized Row Columnar (ORC) format. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -46045,7 +46040,7 @@ def __init__( class OrcSink(CopySink): """A copy activity ORC sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -46152,7 +46147,7 @@ def __init__( class OrcSource(CopySource): """A copy activity ORC source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -46243,7 +46238,7 @@ def __init__( class OrcWriteSettings(FormatWriteSettings): """Orc write settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -46319,7 +46314,7 @@ def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: class PackageStore(_serialization.Model): """Package store for the SSIS integration runtime. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar name: The name of the package store. Required. :vartype name: str @@ -46352,7 +46347,7 @@ def __init__(self, *, name: str, package_store_linked_service: "_models.EntityRe class ParameterSpecification(_serialization.Model): """Definition of a single parameter for an entity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Parameter type. Required. Known values are: "Object", "String", "Int", "Float", "Bool", "Array", and "SecureString". @@ -46388,7 +46383,7 @@ def __init__( class ParquetDataset(Dataset): # pylint: disable=too-many-instance-attributes """Parquet dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -46499,7 +46494,7 @@ def __init__( class ParquetFormat(DatasetStorageFormat): """The data stored in Parquet format. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -46549,7 +46544,7 @@ def __init__( class ParquetReadSettings(FormatReadSettings): """Parquet read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -46592,7 +46587,7 @@ def __init__( class ParquetSink(CopySink): """A copy activity Parquet sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -46699,7 +46694,7 @@ def __init__( class ParquetSource(CopySource): """A copy activity Parquet source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -46797,7 +46792,7 @@ def __init__( class ParquetWriteSettings(FormatWriteSettings): """Parquet write settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -46853,7 +46848,7 @@ def __init__( class PaypalLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Paypal Service linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -46981,7 +46976,7 @@ def __init__( class PaypalObjectDataset(Dataset): """Paypal Service dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -47083,7 +47078,7 @@ def __init__( class PaypalSource(TabularSource): """A copy activity Paypal Service source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -47185,7 +47180,7 @@ def __init__( class PhoenixLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Phoenix server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -47364,7 +47359,7 @@ def __init__( class PhoenixObjectDataset(Dataset): # pylint: disable=too-many-instance-attributes """Phoenix server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -47486,7 +47481,7 @@ def __init__( class PhoenixSource(TabularSource): """A copy activity Phoenix server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -47688,7 +47683,7 @@ def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: class PipelineListResponse(_serialization.Model): """A list of pipeline resources. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of pipelines. Required. :vartype value: list[~azure.mgmt.datafactory.models.PipelineResource] @@ -47744,7 +47739,7 @@ def __init__( class PipelineReference(_serialization.Model): """Pipeline reference type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Pipeline reference type. Required. "PipelineReference" :vartype type: str or ~azure.mgmt.datafactory.models.PipelineReferenceType @@ -48041,7 +48036,7 @@ def __init__(self, **kwargs: Any) -> None: class PipelineRunsQueryResponse(_serialization.Model): """A list pipeline runs. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of pipeline runs. Required. :vartype value: list[~azure.mgmt.datafactory.models.PipelineRun] @@ -48142,7 +48137,7 @@ def __init__( class PostgreSqlLinkedService(LinkedService): """Linked service for PostgreSQL data source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -48235,7 +48230,7 @@ def __init__( class PostgreSqlSource(TabularSource): """A copy activity source for PostgreSQL databases. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -48335,7 +48330,7 @@ def __init__( class PostgreSqlTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """The PostgreSQL table dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -48455,7 +48450,7 @@ def __init__( class PostgreSqlV2LinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for PostgreSQLV2 data source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -48683,7 +48678,7 @@ def __init__( # pylint: disable=too-many-locals class PostgreSqlV2Source(TabularSource): """A copy activity source for PostgreSQL databases. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -48783,7 +48778,7 @@ def __init__( class PostgreSqlV2TableDataset(Dataset): # pylint: disable=too-many-instance-attributes """The PostgreSQLV2 table dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -48894,7 +48889,7 @@ def __init__( class PowerQuerySink(DataFlowSink): """Power query sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar name: Transformation name. Required. :vartype name: str @@ -49008,7 +49003,7 @@ def __init__( class PowerQuerySource(DataFlowSource): """Power query source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar name: Transformation name. Required. :vartype name: str @@ -49083,7 +49078,7 @@ def __init__( class PrestoLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Presto server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -49273,7 +49268,7 @@ def __init__( class PrestoObjectDataset(Dataset): # pylint: disable=too-many-instance-attributes """Presto server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -49394,7 +49389,7 @@ def __init__( class PrestoSource(TabularSource): """A copy activity Presto server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -49516,7 +49511,7 @@ def __init__(self, *, id: Optional[str] = None, **kwargs: Any) -> None: # pylin class PrivateEndpointConnectionListResponse(_serialization.Model): """A list of linked service resources. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of Private Endpoint Connections. Required. :vartype value: list[~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource] @@ -49631,7 +49626,7 @@ def __init__( self.private_endpoint = private_endpoint -class PrivateLinkConnectionApprovalRequestResource(SubResource): +class PrivateLinkConnectionApprovalRequestResource(SubResource): # pylint: disable=name-too-long """Private Endpoint Connection Approval ARM resource. Variables are only populated by the server, and will be ignored when sending a request. @@ -49790,7 +49785,7 @@ def __init__(self, **kwargs: Any) -> None: class PrivateLinkResourcesWrapper(_serialization.Model): """Wrapper for a collection of private link resources. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: list[~azure.mgmt.datafactory.models.PrivateLinkResource] @@ -49868,7 +49863,7 @@ def __init__( class QuickbaseLinkedService(LinkedService): """Linked service for Quickbase. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -49962,7 +49957,7 @@ def __init__( class QuickBooksLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """QuickBooks server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -50098,7 +50093,7 @@ def __init__( class QuickBooksObjectDataset(Dataset): """QuickBooks server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -50200,7 +50195,7 @@ def __init__( class QuickBooksSource(TabularSource): """A copy activity QuickBooks server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -50408,7 +50403,7 @@ def __init__( class RedirectIncompatibleRowSettings(_serialization.Model): """Redirect incompatible row settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -50465,7 +50460,7 @@ class RedshiftUnloadSettings(_serialization.Model): unload. With this, data from Amazon Redshift source will be unloaded into S3 first and then copied into the targeted sink from the interim S3. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar s3_linked_service_name: The name of the Amazon S3 linked service which will be used for the unload operation when copying from the Amazon Redshift source. Required. @@ -50506,7 +50501,7 @@ def __init__( class RelationalSource(CopySource): """A copy activity source for various relational databases. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -50597,7 +50592,7 @@ def __init__( class RelationalTableDataset(Dataset): """The relational table dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -50751,7 +50746,7 @@ class RerunTumblingWindowTrigger(Trigger): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -50844,7 +50839,7 @@ def __init__( class ResponsysLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Responsys linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -50978,7 +50973,7 @@ def __init__( class ResponsysObjectDataset(Dataset): """Responsys dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -51080,7 +51075,7 @@ def __init__( class ResponsysSource(TabularSource): """A copy activity Responsys source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -51182,7 +51177,7 @@ def __init__( class RestResourceDataset(Dataset): # pylint: disable=too-many-instance-attributes """A Rest service dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -51318,7 +51313,7 @@ def __init__( class RestServiceLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Rest Service linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -51556,7 +51551,7 @@ def __init__( # pylint: disable=too-many-locals class RestSink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity Rest service Sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -51698,7 +51693,7 @@ def __init__( class RestSource(CopySource): # pylint: disable=too-many-instance-attributes """A copy activity Rest service source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -51872,7 +51867,7 @@ def __init__( class RunFilterParameters(_serialization.Model): """Query parameters for listing runs. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar continuation_token: The continuation token for getting the next page of results. Null for first page. @@ -51938,7 +51933,7 @@ def __init__( class RunQueryFilter(_serialization.Model): """Query filter option for listing runs. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar operand: Parameter name to be used for filter. The allowed operands to query pipeline runs are PipelineName, RunStart, RunEnd and Status; to query activity runs are ActivityName, @@ -51948,7 +51943,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", "NotIn", and "In". + "NotEquals", "In", and "NotIn". :vartype operator: str or ~azure.mgmt.datafactory.models.RunQueryFilterOperator :ivar values: List of filter values. Required. :vartype values: list[str] @@ -51983,7 +51978,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", "NotIn", and "In". + "NotEquals", "In", and "NotIn". :paramtype operator: str or ~azure.mgmt.datafactory.models.RunQueryFilterOperator :keyword values: List of filter values. Required. :paramtype values: list[str] @@ -51997,7 +51992,7 @@ def __init__( class RunQueryOrderBy(_serialization.Model): """An object to provide order by options for listing runs. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar order_by: Parameter name to be used for order by. The allowed parameters to order by for pipeline runs are PipelineName, RunStart, RunEnd and Status; for activity runs are @@ -52046,7 +52041,7 @@ def __init__( class SalesforceLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for Salesforce. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -52167,7 +52162,7 @@ def __init__( class SalesforceMarketingCloudLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Salesforce Marketing Cloud linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -52301,7 +52296,7 @@ def __init__( class SalesforceMarketingCloudObjectDataset(Dataset): """Salesforce Marketing Cloud dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -52403,7 +52398,7 @@ def __init__( class SalesforceMarketingCloudSource(TabularSource): """A copy activity Salesforce Marketing Cloud source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -52505,7 +52500,7 @@ def __init__( class SalesforceObjectDataset(Dataset): """The Salesforce object dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -52609,7 +52604,7 @@ def __init__( class SalesforceServiceCloudLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for Salesforce Service Cloud. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -52739,7 +52734,7 @@ def __init__( class SalesforceServiceCloudObjectDataset(Dataset): """The Salesforce Service Cloud object dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -52843,7 +52838,7 @@ def __init__( class SalesforceServiceCloudSink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity Salesforce Service Cloud sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -52972,7 +52967,7 @@ def __init__( class SalesforceServiceCloudSource(CopySource): """A copy activity Salesforce Service Cloud source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -53072,7 +53067,7 @@ def __init__( class SalesforceServiceCloudV2LinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for Salesforce Service Cloud V2. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -53195,7 +53190,7 @@ def __init__( class SalesforceServiceCloudV2ObjectDataset(Dataset): # pylint: disable=too-many-instance-attributes """The Salesforce Service Cloud V2 object dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -53308,7 +53303,7 @@ def __init__( class SalesforceServiceCloudV2Sink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity Salesforce Service Cloud V2 sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -53437,7 +53432,7 @@ def __init__( class SalesforceServiceCloudV2Source(CopySource): """A copy activity Salesforce Service Cloud V2 source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -53537,7 +53532,7 @@ def __init__( class SalesforceSink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity Salesforce sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -53666,7 +53661,7 @@ def __init__( class SalesforceSource(TabularSource): """A copy activity Salesforce source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -53775,7 +53770,7 @@ def __init__( class SalesforceV2LinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for Salesforce V2. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -53898,7 +53893,7 @@ def __init__( class SalesforceV2ObjectDataset(Dataset): # pylint: disable=too-many-instance-attributes """The Salesforce V2 object dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -54011,7 +54006,7 @@ def __init__( class SalesforceV2Sink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity Salesforce V2 sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -54140,7 +54135,7 @@ def __init__( class SalesforceV2Source(TabularSource): """A copy activity Salesforce V2 source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -54249,7 +54244,7 @@ def __init__( class SapBwCubeDataset(Dataset): """The SAP BW cube dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -54344,7 +54339,7 @@ def __init__( class SapBWLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """SAP Business Warehouse Linked Service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -54466,7 +54461,7 @@ def __init__( class SapBwSource(TabularSource): """A copy activity source for SapBW server via MDX. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -54566,7 +54561,7 @@ def __init__( class SapCloudForCustomerLinkedService(LinkedService): """Linked service for SAP Cloud for Customer. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -54672,7 +54667,7 @@ def __init__( class SapCloudForCustomerResourceDataset(Dataset): """The path of the SAP Cloud for Customer OData entity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -54777,7 +54772,7 @@ def __init__( class SapCloudForCustomerSink(CopySink): """A copy activity SAP Cloud for Customer sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -54894,7 +54889,7 @@ def __init__( class SapCloudForCustomerSource(TabularSource): """A copy activity source for SAP Cloud for Customer source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -55009,7 +55004,7 @@ def __init__( class SapEccLinkedService(LinkedService): """Linked service for SAP ERP Central Component(SAP ECC). - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -55115,7 +55110,7 @@ def __init__( class SapEccResourceDataset(Dataset): """The path of the SAP ECC OData entity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -55220,7 +55215,7 @@ def __init__( class SapEccSource(TabularSource): """A copy activity source for SAP ECC source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -55335,7 +55330,7 @@ def __init__( class SapHanaLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """SAP HANA Linked Service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -55476,7 +55471,7 @@ def __init__(self, *, partition_column_name: Optional[JSON] = None, **kwargs: An class SapHanaSource(TabularSource): # pylint: disable=too-many-instance-attributes """A copy activity source for SAP HANA source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -55602,7 +55597,7 @@ def __init__( class SapHanaTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """SAP HANA Table properties. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -55714,7 +55709,7 @@ def __init__( class SapOdpLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """SAP ODP Linked Service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -55945,7 +55940,7 @@ def __init__( # pylint: disable=too-many-locals class SapOdpResourceDataset(Dataset): # pylint: disable=too-many-instance-attributes """SAP ODP Resource properties. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -56060,7 +56055,7 @@ def __init__( class SapOdpSource(TabularSource): # pylint: disable=too-many-instance-attributes """A copy activity source for SAP ODP source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -56189,7 +56184,7 @@ def __init__( class SapOpenHubLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """SAP Business Warehouse Open Hub Destination Linked Service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -56358,7 +56353,7 @@ def __init__( class SapOpenHubSource(TabularSource): # pylint: disable=too-many-instance-attributes """A copy activity source for SAP Business Warehouse Open Hub Destination source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -56491,7 +56486,7 @@ def __init__( class SapOpenHubTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """Sap Business Warehouse Open Hub Destination Table properties. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -56616,7 +56611,7 @@ def __init__( class SapTableLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """SAP Table Linked Service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -56887,7 +56882,7 @@ def __init__( class SapTableResourceDataset(Dataset): """SAP Table Resource properties. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -56992,7 +56987,7 @@ def __init__( class SapTableSource(TabularSource): # pylint: disable=too-many-instance-attributes """A copy activity source for SAP Table source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -57172,7 +57167,7 @@ class ScheduleTrigger(MultiplePipelineTrigger): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -57316,7 +57311,7 @@ def __init__( class ScriptAction(_serialization.Model): """Custom script action to run on HDI ondemand cluster once it's up. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar name: The user provided name of the script action. Required. :vartype name: str @@ -57362,7 +57357,7 @@ def __init__(self, *, name: str, uri: str, roles: JSON, parameters: Optional[str class ScriptActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Script activity type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -57549,7 +57544,7 @@ def __init__( class ScriptActivityScriptBlock(_serialization.Model): """Script block of scripts. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar text: The query text. Type: string (or Expression with resultType string). Required. :vartype text: JSON @@ -57597,7 +57592,7 @@ def __init__( class ScriptActivityTypePropertiesLogSettings(_serialization.Model): """Log settings of script activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar log_destination: The destination of logs. Type: string. Required. Known values are: "ActivityOutput" and "ExternalStore". @@ -57671,7 +57666,7 @@ class SecureString(SecretBase): """Azure Data Factory secure string definition. The string value will be masked with asterisks '*' during Get or List API calls. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of the secret. Required. :vartype type: str @@ -57699,10 +57694,10 @@ def __init__(self, *, value: str, **kwargs: Any) -> None: self.value = value -class SelfDependencyTumblingWindowTriggerReference(DependencyReference): +class SelfDependencyTumblingWindowTriggerReference(DependencyReference): # pylint: disable=name-too-long """Self referenced tumbling window trigger dependency. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: The type of dependency reference. Required. :vartype type: str @@ -57749,7 +57744,7 @@ def __init__(self, *, offset: str, size: Optional[str] = None, **kwargs: Any) -> class SelfHostedIntegrationRuntime(IntegrationRuntime): """Self-hosted integration runtime. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -57938,7 +57933,7 @@ class SelfHostedIntegrationRuntimeStatus(IntegrationRuntimeStatus): # pylint: d Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -58088,7 +58083,7 @@ def __init__( class ServiceNowLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """ServiceNow server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -58247,7 +58242,7 @@ def __init__( class ServiceNowObjectDataset(Dataset): """ServiceNow server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -58349,7 +58344,7 @@ def __init__( class ServiceNowSource(TabularSource): """A copy activity ServiceNow server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -58451,7 +58446,7 @@ def __init__( class ServiceNowV2LinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """ServiceNowV2 server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -58588,7 +58583,7 @@ def __init__( class ServiceNowV2ObjectDataset(Dataset): """ServiceNowV2 server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -58690,7 +58685,7 @@ def __init__( class ServiceNowV2Source(TabularSource): """A copy activity ServiceNowV2 server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -58790,7 +58785,7 @@ def __init__( class ServicePrincipalCredential(Credential): """Service principal credential. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -58858,10 +58853,54 @@ def __init__( self.tenant = tenant +class ServicePrincipalCredentialResource(CredentialResource): + """Credential resource type. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to server. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar etag: Etag identifies change in the resource. + :vartype etag: str + :ivar properties: Service Principal Credential properties. Required. + :vartype properties: ~azure.mgmt.datafactory.models.ServicePrincipalCredential + """ + + _validation = { + "id": {"readonly": True}, + "name": {"readonly": True}, + "type": {"readonly": True}, + "etag": {"readonly": True}, + "properties": {"required": True}, + } + + _attribute_map = { + "id": {"key": "id", "type": "str"}, + "name": {"key": "name", "type": "str"}, + "type": {"key": "type", "type": "str"}, + "etag": {"key": "etag", "type": "str"}, + "properties": {"key": "properties", "type": "ServicePrincipalCredential"}, + } + + def __init__(self, *, properties: "_models.ServicePrincipalCredential", **kwargs: Any) -> None: + """ + :keyword properties: Service Principal Credential properties. Required. + :paramtype properties: ~azure.mgmt.datafactory.models.ServicePrincipalCredential + """ + super().__init__(**kwargs) + self.properties = properties + + class SetVariableActivity(ControlActivity): # pylint: disable=too-many-instance-attributes """Set value for a Variable. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -58977,7 +59016,7 @@ def __init__( class SftpLocation(DatasetLocation): """The location of SFTP dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -59031,7 +59070,7 @@ def __init__( class SftpReadSettings(StoreReadSettings): # pylint: disable=too-many-instance-attributes """Sftp read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -59180,7 +59219,7 @@ def __init__( class SftpServerLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """A linked service for an SSH File Transfer Protocol (SFTP) server. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -59353,7 +59392,7 @@ def __init__( class SftpWriteSettings(StoreWriteSettings): """Sftp write settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -59446,7 +59485,7 @@ def __init__( class SharePointOnlineListLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """SharePoint Online List linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -59568,7 +59607,7 @@ def __init__( class SharePointOnlineListResourceDataset(Dataset): """The sharepoint online list resource dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -59672,7 +59711,7 @@ def __init__( class SharePointOnlineListSource(CopySource): """A copy activity source for sharePoint online list source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -59767,7 +59806,7 @@ def __init__( class ShopifyLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Shopify Service linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -59889,7 +59928,7 @@ def __init__( class ShopifyObjectDataset(Dataset): """Shopify Service dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -59991,7 +60030,7 @@ def __init__( class ShopifySource(TabularSource): """A copy activity Shopify Service source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -60125,7 +60164,7 @@ def __init__( class SmartsheetLinkedService(LinkedService): """Linked service for Smartsheet. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -60209,7 +60248,7 @@ def __init__( class SnowflakeDataset(Dataset): # pylint: disable=too-many-instance-attributes """The snowflake dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -60322,7 +60361,7 @@ def __init__( class SnowflakeExportCopyCommand(ExportSettings): """Snowflake export command settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -60384,7 +60423,7 @@ def __init__( class SnowflakeImportCopyCommand(ImportSettings): """Snowflake import command settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -60446,7 +60485,7 @@ def __init__( class SnowflakeLinkedService(LinkedService): """Snowflake linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -60539,7 +60578,7 @@ def __init__( class SnowflakeSink(CopySink): """A copy activity snowflake sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -60648,7 +60687,7 @@ def __init__( class SnowflakeSource(CopySource): """A copy activity snowflake source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -60738,7 +60777,7 @@ def __init__( class SnowflakeV2Dataset(Dataset): # pylint: disable=too-many-instance-attributes """The snowflake dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -60851,7 +60890,7 @@ def __init__( class SnowflakeV2LinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Snowflake linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -61029,7 +61068,7 @@ def __init__( class SnowflakeV2Sink(CopySink): """A copy activity snowflake sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -61138,7 +61177,7 @@ def __init__( class SnowflakeV2Source(CopySource): """A copy activity snowflake source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -61225,10 +61264,10 @@ def __init__( self.export_settings = export_settings -class SparkConfigurationParametrizationReference(_serialization.Model): +class SparkConfigurationParametrizationReference(_serialization.Model): # pylint: disable=name-too-long """Spark configuration reference. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Spark configuration reference type. Required. "SparkConfigurationReference" :vartype type: str or ~azure.mgmt.datafactory.models.SparkConfigurationReferenceType @@ -61265,7 +61304,7 @@ def __init__( class SparkLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Spark Server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -61460,7 +61499,7 @@ def __init__( class SparkObjectDataset(Dataset): # pylint: disable=too-many-instance-attributes """Spark Server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -61581,7 +61620,7 @@ def __init__( class SparkSource(TabularSource): """A copy activity Spark Server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -61683,7 +61722,7 @@ def __init__( class SqlAlwaysEncryptedProperties(_serialization.Model): """Sql always encrypted properties. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar always_encrypted_akv_auth_type: Sql always encrypted AKV authentication type. Type: string. Required. Known values are: "ServicePrincipal", "ManagedIdentity", and @@ -61745,7 +61784,7 @@ def __init__( class SqlDWSink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity SQL Data Warehouse sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -61915,7 +61954,7 @@ def __init__( class SqlDWSource(TabularSource): # pylint: disable=too-many-instance-attributes """A copy activity SQL Data Warehouse source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -62100,7 +62139,7 @@ def __init__( class SqlMISink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity Azure SQL Managed Instance sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -62273,7 +62312,7 @@ def __init__( class SqlMISource(TabularSource): # pylint: disable=too-many-instance-attributes """A copy activity Azure SQL Managed Instance source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -62487,7 +62526,7 @@ def __init__( class SqlServerLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """SQL Server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -62600,7 +62639,7 @@ def __init__( class SqlServerSink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity SQL server sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -62773,7 +62812,7 @@ def __init__( class SqlServerSource(TabularSource): # pylint: disable=too-many-instance-attributes """A copy activity SQL server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -62930,7 +62969,7 @@ def __init__( class SqlServerStoredProcedureActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """SQL stored procedure activity type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -63051,7 +63090,7 @@ def __init__( class SqlServerTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """The on-premises SQL Server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -63173,7 +63212,7 @@ def __init__( class SqlSink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity SQL sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -63346,7 +63385,7 @@ def __init__( class SqlSource(TabularSource): # pylint: disable=too-many-instance-attributes """A copy activity SQL source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -63541,7 +63580,7 @@ def __init__( class SquareLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Square Service linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -63685,7 +63724,7 @@ def __init__( class SquareObjectDataset(Dataset): """Square Service dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -63787,7 +63826,7 @@ def __init__( class SquareSource(TabularSource): """A copy activity Square Service source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -63889,7 +63928,7 @@ def __init__( class SSISAccessCredential(_serialization.Model): """SSIS access credential. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar domain: Domain for windows authentication. Type: string (or Expression with resultType string). Required. @@ -63933,7 +63972,7 @@ def __init__(self, *, domain: JSON, user_name: JSON, password: "_models.SecretBa class SSISChildPackage(_serialization.Model): """SSIS embedded child package. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar package_path: Path for embedded child package. Type: string (or Expression with resultType string). Required. @@ -63993,7 +64032,7 @@ class SsisObjectMetadata(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: SsisEnvironment, SsisFolder, SsisPackage, SsisProject - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of metadata. Required. Known values are: "Folder", "Project", "Package", and "Environment". @@ -64052,7 +64091,7 @@ def __init__( class SsisEnvironment(SsisObjectMetadata): """Ssis environment. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of metadata. Required. Known values are: "Folder", "Project", "Package", and "Environment". @@ -64159,7 +64198,7 @@ def __init__( class SSISExecutionCredential(_serialization.Model): """SSIS package execution credential. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar domain: Domain for windows authentication. Type: string (or Expression with resultType string). Required. @@ -64203,7 +64242,7 @@ def __init__(self, *, domain: JSON, user_name: JSON, password: "_models.SecureSt class SSISExecutionParameter(_serialization.Model): """SSIS execution parameter. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: SSIS package execution parameter value. Type: string (or Expression with resultType string). Required. @@ -64231,7 +64270,7 @@ def __init__(self, *, value: JSON, **kwargs: Any) -> None: class SsisFolder(SsisObjectMetadata): """Ssis folder. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of metadata. Required. Known values are: "Folder", "Project", "Package", and "Environment". @@ -64278,7 +64317,7 @@ def __init__( class SSISLogLocation(_serialization.Model): """SSIS package execution log location. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar log_path: The SSIS package execution log path. Type: string (or Expression with resultType string). Required. @@ -64415,7 +64454,7 @@ def __init__( class SsisPackage(SsisObjectMetadata): """Ssis Package. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of metadata. Required. Known values are: "Folder", "Project", "Package", and "Environment". @@ -64690,7 +64729,7 @@ def __init__( class SsisProject(SsisObjectMetadata): """Ssis project. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of metadata. Required. Known values are: "Folder", "Project", "Package", and "Environment". @@ -64765,7 +64804,7 @@ def __init__( class SSISPropertyOverride(_serialization.Model): """SSIS property override. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: SSIS package property override value. Type: string (or Expression with resultType string). Required. @@ -64868,7 +64907,7 @@ def __init__( class StagingSettings(_serialization.Model): """Staging settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -64963,7 +65002,7 @@ class SwitchActivity(ControlActivity): # pylint: disable=too-many-instance-attr """This activity evaluates an expression and executes activities under the cases property that correspond to the expression evaluation expected in the equals property. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -65109,7 +65148,7 @@ def __init__( class SybaseLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for Sybase data source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -65238,7 +65277,7 @@ def __init__( class SybaseSource(TabularSource): """A copy activity source for Sybase databases. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -65338,7 +65377,7 @@ def __init__( class SybaseTableDataset(Dataset): """The Sybase table dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -65441,7 +65480,7 @@ def __init__( class SynapseNotebookActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Execute Synapse notebook activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -65638,7 +65677,7 @@ def __init__( class SynapseNotebookReference(_serialization.Model): """Synapse notebook reference type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Synapse notebook reference type. Required. "NotebookReference" :vartype type: str or ~azure.mgmt.datafactory.models.NotebookReferenceType @@ -65675,7 +65714,7 @@ def __init__( class SynapseSparkJobDefinitionActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Execute spark job activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -65943,7 +65982,7 @@ def __init__( # pylint: disable=too-many-locals class SynapseSparkJobReference(_serialization.Model): """Synapse spark job reference type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Synapse spark job reference type. Required. "SparkJobDefinitionReference" :vartype type: str or ~azure.mgmt.datafactory.models.SparkJobReferenceType @@ -65978,7 +66017,7 @@ def __init__( class TabularTranslator(CopyTranslator): """A copy activity tabular translator. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -66001,9 +66040,9 @@ class TabularTranslator(CopyTranslator): strings in json format. Type: boolean (or Expression with resultType boolean). :vartype map_complex_values_to_string: JSON :ivar mappings: Column mappings with logical types. Tabular->tabular example: - [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. + [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. # pylint: disable=line-too-long Hierarchical->tabular example: - [{"source":{"path":"$.CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$.CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. + [{"source":{"path":"$.CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$.CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. # pylint: disable=line-too-long Type: object (or Expression with resultType object). :vartype mappings: JSON :ivar type_conversion: Whether to enable the advanced type conversion feature in the Copy @@ -66062,9 +66101,9 @@ def __init__( simple strings in json format. Type: boolean (or Expression with resultType boolean). :paramtype map_complex_values_to_string: JSON :keyword mappings: Column mappings with logical types. Tabular->tabular example: - [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. + [{"source":{"name":"CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"name":"CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. # pylint: disable=line-too-long Hierarchical->tabular example: - [{"source":{"path":"$.CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$.CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. + [{"source":{"path":"$.CustomerName","type":"String"},"sink":{"name":"ClientName","type":"String"}},{"source":{"path":"$.CustomerAddress","type":"String"},"sink":{"name":"ClientAddress","type":"String"}}]. # pylint: disable=line-too-long Type: object (or Expression with resultType object). :paramtype mappings: JSON :keyword type_conversion: Whether to enable the advanced type conversion feature in the Copy @@ -66087,7 +66126,7 @@ def __init__( class TarGZipReadSettings(CompressionReadSettings): """The TarGZip compression read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -66132,7 +66171,7 @@ def __init__( class TarReadSettings(CompressionReadSettings): """The Tar compression read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -66177,7 +66216,7 @@ def __init__( class TeamDeskLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for TeamDesk. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -66297,7 +66336,7 @@ def __init__( class TeradataLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for Teradata data source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -66465,7 +66504,7 @@ def __init__( class TeradataSource(TabularSource): # pylint: disable=too-many-instance-attributes """A copy activity Teradata source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -66582,7 +66621,7 @@ def __init__( class TeradataTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """The Teradata database dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -66694,7 +66733,7 @@ def __init__( class TextFormat(DatasetStorageFormat): # pylint: disable=too-many-instance-attributes """The data stored in text format. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -66830,7 +66869,7 @@ class TriggerDependencyReference(DependencyReference): You probably want to use the sub-classes and not this class directly. Known sub-classes are: TumblingWindowTriggerDependencyReference - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: The type of dependency reference. Required. :vartype type: str @@ -66895,7 +66934,7 @@ def __init__( class TriggerListResponse(_serialization.Model): """A list of trigger resources. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of triggers. Required. :vartype value: list[~azure.mgmt.datafactory.models.TriggerResource] @@ -66961,7 +67000,7 @@ def __init__( class TriggerQueryResponse(_serialization.Model): """A query of triggers. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of triggers. Required. :vartype value: list[~azure.mgmt.datafactory.models.TriggerResource] @@ -66997,7 +67036,7 @@ def __init__( class TriggerReference(_serialization.Model): """Trigger reference type. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Trigger reference type. Required. "TriggerReference" :vartype type: str or ~azure.mgmt.datafactory.models.TriggerReferenceType @@ -67032,7 +67071,7 @@ class TriggerResource(SubResource): Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar id: The resource identifier. :vartype id: str @@ -67152,7 +67191,7 @@ def __init__(self, *, additional_properties: Optional[Dict[str, JSON]] = None, * class TriggerRunsQueryResponse(_serialization.Model): """A list of trigger runs. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar value: List of trigger runs. Required. :vartype value: list[~azure.mgmt.datafactory.models.TriggerRun] @@ -67220,7 +67259,7 @@ class TumblingWindowTrigger(Trigger): # pylint: disable=too-many-instance-attri Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -67361,7 +67400,7 @@ def __init__( class TumblingWindowTriggerDependencyReference(TriggerDependencyReference): """Referenced tumbling window trigger dependency. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: The type of dependency reference. Required. :vartype type: str @@ -67420,7 +67459,7 @@ def __init__( class TwilioLinkedService(LinkedService): """Linked service for Twilio. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -67578,7 +67617,7 @@ class UntilActivity(ControlActivity): # pylint: disable=too-many-instance-attri """This activity executes inner activities until the specified boolean expression results to true or timeout is reached, whichever is earlier. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -67821,7 +67860,7 @@ def __init__( class UserProperty(_serialization.Model): """User property. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar name: User property name. Required. :vartype name: str @@ -67856,7 +67895,7 @@ def __init__(self, *, name: str, value: JSON, **kwargs: Any) -> None: class ValidationActivity(ControlActivity): # pylint: disable=too-many-instance-attributes """This activity verifies that an external resource exists. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -67994,7 +68033,7 @@ def __init__( class VariableSpecification(_serialization.Model): """Definition of a single variable for a Pipeline. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Variable type. Required. Known values are: "String", "Bool", and "Array". :vartype type: str or ~azure.mgmt.datafactory.models.VariableType @@ -68028,7 +68067,7 @@ def __init__( class VerticaLinkedService(LinkedService): """Vertica linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -68120,7 +68159,7 @@ def __init__( class VerticaSource(TabularSource): """A copy activity Vertica source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -68222,7 +68261,7 @@ def __init__( class VerticaTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """Vertica dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -68344,7 +68383,7 @@ def __init__( class WaitActivity(ControlActivity): """This activity suspends pipeline execution for the specified interval. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -68442,7 +68481,7 @@ def __init__( class WarehouseLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Microsoft Fabric Warehouse linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -68600,7 +68639,7 @@ def __init__( class WarehouseSink(CopySink): # pylint: disable=too-many-instance-attributes """A copy activity Microsoft Fabric Warehouse sink. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -68738,7 +68777,7 @@ def __init__( class WarehouseSource(TabularSource): # pylint: disable=too-many-instance-attributes """A copy activity Microsoft Fabric Warehouse source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -68891,7 +68930,7 @@ def __init__( class WarehouseTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """Microsoft Fabric Warehouse dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -69004,7 +69043,7 @@ def __init__( class WebActivity(ExecutionActivity): # pylint: disable=too-many-instance-attributes """Web activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -69039,7 +69078,7 @@ class WebActivity(ExecutionActivity): # pylint: disable=too-many-instance-attri :ivar headers: Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). - :vartype headers: dict[str, str] + :vartype headers: dict[str, JSON] :ivar body: Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). :vartype body: JSON @@ -69084,7 +69123,7 @@ class WebActivity(ExecutionActivity): # pylint: disable=too-many-instance-attri "policy": {"key": "policy", "type": "ActivityPolicy"}, "method": {"key": "typeProperties.method", "type": "str"}, "url": {"key": "typeProperties.url", "type": "object"}, - "headers": {"key": "typeProperties.headers", "type": "{str}"}, + "headers": {"key": "typeProperties.headers", "type": "{object}"}, "body": {"key": "typeProperties.body", "type": "object"}, "authentication": {"key": "typeProperties.authentication", "type": "WebActivityAuthentication"}, "disable_cert_validation": {"key": "typeProperties.disableCertValidation", "type": "bool"}, @@ -69109,7 +69148,7 @@ def __init__( user_properties: Optional[List["_models.UserProperty"]] = None, linked_service_name: Optional["_models.LinkedServiceReference"] = None, policy: Optional["_models.ActivityPolicy"] = None, - headers: Optional[Dict[str, str]] = None, + headers: Optional[Dict[str, JSON]] = None, body: Optional[JSON] = None, authentication: Optional["_models.WebActivityAuthentication"] = None, disable_cert_validation: Optional[bool] = None, @@ -69152,7 +69191,7 @@ def __init__( :keyword headers: Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). - :paramtype headers: dict[str, str] + :paramtype headers: dict[str, JSON] :keyword body: Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). :paramtype body: JSON @@ -69285,7 +69324,7 @@ class WebLinkedServiceTypeProperties(_serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: WebAnonymousAuthentication, WebBasicAuthentication, WebClientCertificateAuthentication - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar url: The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType string). Required. @@ -69327,7 +69366,7 @@ def __init__(self, *, url: JSON, **kwargs: Any) -> None: class WebAnonymousAuthentication(WebLinkedServiceTypeProperties): """A WebLinkedService that uses anonymous authentication to communicate with an HTTP endpoint. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar url: The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType string). Required. @@ -69360,7 +69399,7 @@ def __init__(self, *, url: JSON, **kwargs: Any) -> None: class WebBasicAuthentication(WebLinkedServiceTypeProperties): """A WebLinkedService that uses basic authentication to communicate with an HTTP endpoint. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar url: The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType string). Required. @@ -69411,7 +69450,7 @@ class WebClientCertificateAuthentication(WebLinkedServiceTypeProperties): HTTP endpoint. This scheme follows mutual authentication; the server must also provide valid credentials to the client. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar url: The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType string). Required. @@ -69458,7 +69497,7 @@ def __init__(self, *, url: JSON, pfx: "_models.SecretBase", password: "_models.S class WebHookActivity(ControlActivity): # pylint: disable=too-many-instance-attributes """WebHook activity. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -69494,7 +69533,7 @@ class WebHookActivity(ControlActivity): # pylint: disable=too-many-instance-att :ivar headers: Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). - :vartype headers: dict[str, str] + :vartype headers: dict[str, JSON] :ivar body: Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). :vartype body: JSON @@ -69527,7 +69566,7 @@ class WebHookActivity(ControlActivity): # pylint: disable=too-many-instance-att "method": {"key": "typeProperties.method", "type": "str"}, "url": {"key": "typeProperties.url", "type": "object"}, "timeout": {"key": "typeProperties.timeout", "type": "str"}, - "headers": {"key": "typeProperties.headers", "type": "{str}"}, + "headers": {"key": "typeProperties.headers", "type": "{object}"}, "body": {"key": "typeProperties.body", "type": "object"}, "authentication": {"key": "typeProperties.authentication", "type": "WebActivityAuthentication"}, "report_status_on_call_back": {"key": "typeProperties.reportStatusOnCallBack", "type": "object"}, @@ -69547,7 +69586,7 @@ def __init__( user_properties: Optional[List["_models.UserProperty"]] = None, policy: Optional["_models.SecureInputOutputPolicy"] = None, timeout: Optional[str] = None, - headers: Optional[Dict[str, str]] = None, + headers: Optional[Dict[str, JSON]] = None, body: Optional[JSON] = None, authentication: Optional["_models.WebActivityAuthentication"] = None, report_status_on_call_back: Optional[JSON] = None, @@ -69586,7 +69625,7 @@ def __init__( :keyword headers: Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). - :paramtype headers: dict[str, str] + :paramtype headers: dict[str, JSON] :keyword body: Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). :paramtype body: JSON @@ -69622,7 +69661,7 @@ def __init__( class WebLinkedService(LinkedService): """Web linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -69697,7 +69736,7 @@ def __init__( class WebSource(CopySource): """A copy activity source for web page table. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -69781,7 +69820,7 @@ def __init__( class WebTableDataset(Dataset): # pylint: disable=too-many-instance-attributes """The dataset points to a HTML table in the web page. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -69895,7 +69934,7 @@ def __init__( class WranglingDataFlow(DataFlow): """Power Query data flow. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar type: Type of data flow. Required. :vartype type: str @@ -69964,7 +70003,7 @@ def __init__( class XeroLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Xero Service linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -70104,7 +70143,7 @@ def __init__( class XeroObjectDataset(Dataset): """Xero Service dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -70206,7 +70245,7 @@ def __init__( class XeroSource(TabularSource): """A copy activity Xero Service source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -70308,7 +70347,7 @@ def __init__( class XmlDataset(Dataset): # pylint: disable=too-many-instance-attributes """Xml dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -70440,7 +70479,7 @@ def __init__( class XmlReadSettings(FormatReadSettings): """Xml read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -70523,7 +70562,7 @@ def __init__( class XmlSource(CopySource): """A copy activity Xml source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -70621,7 +70660,7 @@ def __init__( class ZendeskLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Linked service for Zendesk. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -70740,7 +70779,7 @@ def __init__( class ZipDeflateReadSettings(CompressionReadSettings): """The ZipDeflate compression read settings. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -70785,7 +70824,7 @@ def __init__( class ZohoLinkedService(LinkedService): # pylint: disable=too-many-instance-attributes """Zoho server linked service. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -70913,7 +70952,7 @@ def __init__( class ZohoObjectDataset(Dataset): """Zoho server dataset. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. @@ -71015,7 +71054,7 @@ def __init__( class ZohoSource(TabularSource): """A copy activity Zoho server source. - All required parameters must be populated in order to send to Azure. + All required parameters must be populated in order to send to server. :ivar additional_properties: Unmatched properties from the message are deserialized to this collection. 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 436dc42fe167..70e88bbdd5f3 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -122,7 +122,6 @@ def query_by_pipeline_run( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ActivityRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -134,7 +133,7 @@ def query_by_pipeline_run( resource_group_name: str, factory_name: str, run_id: str, - filter_parameters: IO, + filter_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -148,11 +147,10 @@ def query_by_pipeline_run( :param run_id: The pipeline run identifier. Required. :type run_id: str :param filter_parameters: Parameters to filter the activity runs. Required. - :type filter_parameters: IO + :type filter_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ActivityRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -164,7 +162,7 @@ def query_by_pipeline_run( resource_group_name: str, factory_name: str, run_id: str, - filter_parameters: Union[_models.RunFilterParameters, IO], + filter_parameters: Union[_models.RunFilterParameters, IO[bytes]], **kwargs: Any ) -> _models.ActivityRunsQueryResponse: """Query activity runs based on input filter conditions. @@ -176,12 +174,8 @@ def query_by_pipeline_run( :param run_id: The pipeline run identifier. Required. :type run_id: str :param filter_parameters: Parameters to filter the activity runs. Is either a - RunFilterParameters type or a IO type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + RunFilterParameters type or a IO[bytes] type. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO[bytes] :return: ActivityRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ActivityRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -209,7 +203,7 @@ def query_by_pipeline_run( else: _json = self._serialize.body(filter_parameters, "RunFilterParameters") - request = build_query_by_pipeline_run_request( + _request = build_query_by_pipeline_run_request( resource_group_name=resource_group_name, factory_name=factory_name, run_id=run_id, @@ -218,16 +212,15 @@ def query_by_pipeline_run( content_type=content_type, json=_json, content=_content, - template_url=self.query_by_pipeline_run.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -239,10 +232,6 @@ def query_by_pipeline_run( deserialized = self._deserialize("ActivityRunsQueryResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - query_by_pipeline_run.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/queryActivityruns" - } + return deserialized # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_change_data_capture_operations.py b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_change_data_capture_operations.py index 1cfabcc27d5d..398a760629e5 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_change_data_capture_operations.py +++ b/sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/operations/_change_data_capture_operations.py @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -413,7 +413,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ChangeDataCaptureResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.ChangeDataCaptureResource] @@ -436,17 +435,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -458,13 +456,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("ChangeDataCaptureListResponse", pipeline_response) @@ -474,11 +472,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -490,10 +488,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs" - } - @overload def create_or_update( self, @@ -523,7 +517,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ChangeDataCaptureResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource :raises ~azure.core.exceptions.HttpResponseError: @@ -535,7 +528,7 @@ def create_or_update( resource_group_name: str, factory_name: str, change_data_capture_name: str, - change_data_capture: IO, + change_data_capture: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -550,7 +543,7 @@ def create_or_update( :param change_data_capture_name: The change data capture name. Required. :type change_data_capture_name: str :param change_data_capture: Change data capture resource definition. Required. - :type change_data_capture: IO + :type change_data_capture: IO[bytes] :param if_match: ETag of the change data capture entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. @@ -558,7 +551,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ChangeDataCaptureResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource :raises ~azure.core.exceptions.HttpResponseError: @@ -570,7 +562,7 @@ def create_or_update( resource_group_name: str, factory_name: str, change_data_capture_name: str, - change_data_capture: Union[_models.ChangeDataCaptureResource, IO], + change_data_capture: Union[_models.ChangeDataCaptureResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.ChangeDataCaptureResource: @@ -583,16 +575,13 @@ def create_or_update( :param change_data_capture_name: The change data capture name. Required. :type change_data_capture_name: str :param change_data_capture: Change data capture resource definition. Is either a - ChangeDataCaptureResource type or a IO type. Required. - :type change_data_capture: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource or IO + ChangeDataCaptureResource type or a IO[bytes] type. Required. + :type change_data_capture: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource or + IO[bytes] :param if_match: ETag of the change data capture entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ChangeDataCaptureResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource :raises ~azure.core.exceptions.HttpResponseError: @@ -620,7 +609,7 @@ def create_or_update( else: _json = self._serialize.body(change_data_capture, "ChangeDataCaptureResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, change_data_capture_name=change_data_capture_name, @@ -630,16 +619,15 @@ def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -651,13 +639,9 @@ def create_or_update( deserialized = self._deserialize("ChangeDataCaptureResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}" - } + return deserialized # type: ignore @distributed_trace def get( @@ -680,7 +664,6 @@ def get( If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ChangeDataCaptureResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ChangeDataCaptureResource :raises ~azure.core.exceptions.HttpResponseError: @@ -699,23 +682,22 @@ def get( api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[_models.ChangeDataCaptureResource] = kwargs.pop("cls", None) - request = build_get_request( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, change_data_capture_name=change_data_capture_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -727,13 +709,9 @@ def get( deserialized = self._deserialize("ChangeDataCaptureResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}" - } + return deserialized # type: ignore @distributed_trace def delete( # pylint: disable=inconsistent-return-statements @@ -747,7 +725,6 @@ def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param change_data_capture_name: The change data capture name. Required. :type change_data_capture_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -766,22 +743,21 @@ def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, change_data_capture_name=change_data_capture_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -791,11 +767,7 @@ def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def start( # pylint: disable=inconsistent-return-statements @@ -809,7 +781,6 @@ def start( # pylint: disable=inconsistent-return-statements :type factory_name: str :param change_data_capture_name: The change data capture name. Required. :type change_data_capture_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -828,22 +799,21 @@ def start( # pylint: disable=inconsistent-return-statements 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( + _request = build_start_request( resource_group_name=resource_group_name, factory_name=factory_name, change_data_capture_name=change_data_capture_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.start.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -853,11 +823,7 @@ def start( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - start.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/start" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def stop( # pylint: disable=inconsistent-return-statements @@ -871,7 +837,6 @@ def stop( # pylint: disable=inconsistent-return-statements :type factory_name: str :param change_data_capture_name: The change data capture name. Required. :type change_data_capture_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -890,22 +855,21 @@ def stop( # pylint: disable=inconsistent-return-statements 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( + _request = build_stop_request( resource_group_name=resource_group_name, factory_name=factory_name, change_data_capture_name=change_data_capture_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.stop.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -915,11 +879,7 @@ def stop( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - stop.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/stop" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def status(self, resource_group_name: str, factory_name: str, change_data_capture_name: str, **kwargs: Any) -> str: @@ -931,7 +891,6 @@ def status(self, resource_group_name: str, factory_name: str, change_data_captur :type factory_name: str :param change_data_capture_name: The change data capture name. Required. :type change_data_capture_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: str or the result of cls(response) :rtype: str :raises ~azure.core.exceptions.HttpResponseError: @@ -950,22 +909,21 @@ def status(self, resource_group_name: str, factory_name: str, change_data_captur api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) cls: ClsType[str] = kwargs.pop("cls", None) - request = build_status_request( + _request = build_status_request( resource_group_name=resource_group_name, factory_name=factory_name, change_data_capture_name=change_data_capture_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.status.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -977,10 +935,6 @@ def status(self, resource_group_name: str, factory_name: str, change_data_captur deserialized = self._deserialize("str", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - status.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/status" - } + return deserialized # type: ignore 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 22909e035633..70004bf899fe 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -262,18 +262,15 @@ def __init__(self, *args, **kwargs): @distributed_trace def list_by_factory( self, resource_group_name: str, factory_name: str, **kwargs: Any - ) -> Iterable["_models.ManagedIdentityCredentialResource"]: + ) -> Iterable["_models.CredentialResource"]: """List credentials. :param resource_group_name: The resource group name. Required. :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ManagedIdentityCredentialResource or the result of - cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource] + :return: An iterator like instance of either CredentialResource or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.CredentialResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} @@ -293,17 +290,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -315,13 +311,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("CredentialListResponse", pipeline_response) @@ -331,11 +327,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -347,22 +343,18 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials" - } - @overload def create_or_update( self, resource_group_name: str, factory_name: str, credential_name: str, - credential: _models.ManagedIdentityCredentialResource, + credential: _models.CredentialResource, if_match: Optional[str] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ManagedIdentityCredentialResource: + ) -> _models.CredentialResource: """Creates or updates a credential. :param resource_group_name: The resource group name. Required. @@ -372,16 +364,15 @@ def create_or_update( :param credential_name: Credential name. Required. :type credential_name: str :param credential: Credential resource definition. Required. - :type credential: ~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource + :type credential: ~azure.mgmt.datafactory.models.CredentialResource :param if_match: ETag of the credential entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedIdentityCredentialResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource + :return: CredentialResource or the result of cls(response) + :rtype: ~azure.mgmt.datafactory.models.CredentialResource :raises ~azure.core.exceptions.HttpResponseError: """ @@ -391,12 +382,12 @@ def create_or_update( resource_group_name: str, factory_name: str, credential_name: str, - credential: IO, + credential: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", **kwargs: Any - ) -> _models.ManagedIdentityCredentialResource: + ) -> _models.CredentialResource: """Creates or updates a credential. :param resource_group_name: The resource group name. Required. @@ -406,16 +397,15 @@ def create_or_update( :param credential_name: Credential name. Required. :type credential_name: str :param credential: Credential resource definition. Required. - :type credential: IO + :type credential: IO[bytes] :param if_match: ETag of the credential entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedIdentityCredentialResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource + :return: CredentialResource or the result of cls(response) + :rtype: ~azure.mgmt.datafactory.models.CredentialResource :raises ~azure.core.exceptions.HttpResponseError: """ @@ -425,10 +415,10 @@ def create_or_update( resource_group_name: str, factory_name: str, credential_name: str, - credential: Union[_models.ManagedIdentityCredentialResource, IO], + credential: Union[_models.CredentialResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any - ) -> _models.ManagedIdentityCredentialResource: + ) -> _models.CredentialResource: """Creates or updates a credential. :param resource_group_name: The resource group name. Required. @@ -437,18 +427,14 @@ def create_or_update( :type factory_name: str :param credential_name: Credential name. Required. :type credential_name: str - :param credential: Credential resource definition. Is either a - ManagedIdentityCredentialResource type or a IO type. Required. - :type credential: ~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource or IO + :param credential: Credential resource definition. Is either a CredentialResource type or a + IO[bytes] type. Required. + :type credential: ~azure.mgmt.datafactory.models.CredentialResource or IO[bytes] :param if_match: ETag of the credential entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedIdentityCredentialResource or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource + :return: CredentialResource or the result of cls(response) + :rtype: ~azure.mgmt.datafactory.models.CredentialResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { @@ -464,7 +450,7 @@ def create_or_update( 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) + cls: ClsType[_models.CredentialResource] = kwargs.pop("cls", None) content_type = content_type or "application/json" _json = None @@ -472,9 +458,9 @@ def create_or_update( if isinstance(credential, (IOBase, bytes)): _content = credential else: - _json = self._serialize.body(credential, "ManagedIdentityCredentialResource") + _json = self._serialize.body(credential, "CredentialResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, credential_name=credential_name, @@ -484,16 +470,15 @@ def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -502,16 +487,12 @@ def create_or_update( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) - deserialized = self._deserialize("ManagedIdentityCredentialResource", pipeline_response) + deserialized = self._deserialize("CredentialResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}" - } + return deserialized # type: ignore @distributed_trace def get( @@ -521,7 +502,7 @@ def get( credential_name: str, if_none_match: Optional[str] = None, **kwargs: Any - ) -> Optional[_models.ManagedIdentityCredentialResource]: + ) -> Optional[_models.CredentialResource]: """Gets a credential. :param resource_group_name: The resource group name. Required. @@ -534,9 +515,8 @@ def get( ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedIdentityCredentialResource or None or the result of cls(response) - :rtype: ~azure.mgmt.datafactory.models.ManagedIdentityCredentialResource or None + :return: CredentialResource or None or the result of cls(response) + :rtype: ~azure.mgmt.datafactory.models.CredentialResource or None :raises ~azure.core.exceptions.HttpResponseError: """ error_map = { @@ -551,25 +531,24 @@ def get( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[Optional[_models.ManagedIdentityCredentialResource]] = kwargs.pop("cls", None) + cls: ClsType[Optional[_models.CredentialResource]] = kwargs.pop("cls", None) - request = build_get_request( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, credential_name=credential_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -580,16 +559,12 @@ def get( deserialized = None if response.status_code == 200: - deserialized = self._deserialize("ManagedIdentityCredentialResource", pipeline_response) + deserialized = self._deserialize("CredentialResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}" - } + return deserialized # type: ignore @distributed_trace def delete( # pylint: disable=inconsistent-return-statements @@ -603,7 +578,6 @@ def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param credential_name: Credential name. Required. :type credential_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -622,22 +596,21 @@ def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, credential_name=credential_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -647,8 +620,4 @@ def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}" - } + return cls(pipeline_response, None, {}) # type: ignore 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 9f8c65c39ec3..10ec3641c9d2 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -274,7 +274,7 @@ def _create_initial( self, resource_group_name: str, factory_name: str, - request: Union[_models.CreateDataFlowDebugSessionRequest, IO], + request: Union[_models.CreateDataFlowDebugSessionRequest, IO[bytes]], **kwargs: Any ) -> Optional[_models.CreateDataFlowDebugSessionResponse]: error_map = { @@ -300,7 +300,7 @@ def _create_initial( else: _json = self._serialize.body(request, "CreateDataFlowDebugSessionRequest") - request = build_create_request( + _request = build_create_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -308,16 +308,15 @@ def _create_initial( content_type=content_type, json=_json, content=_content, - template_url=self._create_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -335,13 +334,9 @@ def _create_initial( response_headers["location"] = self._deserialize("str", response.headers.get("location")) if cls: - return cls(pipeline_response, deserialized, response_headers) + return cls(pipeline_response, deserialized, response_headers) # type: ignore - return deserialized - - _create_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/createDataFlowDebugSession" - } + return deserialized # type: ignore @overload def begin_create( @@ -364,14 +359,6 @@ def begin_create( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this - operation to not poll, or pass in your own initialized polling object for a personal polling - strategy. - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of LROPoller that returns either CreateDataFlowDebugSessionResponse or the result of cls(response) :rtype: @@ -384,7 +371,7 @@ def begin_create( self, resource_group_name: str, factory_name: str, - request: IO, + request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -396,18 +383,10 @@ def begin_create( :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug session definition. Required. - :type request: IO + :type request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this - operation to not poll, or pass in your own initialized polling object for a personal polling - strategy. - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of LROPoller that returns either CreateDataFlowDebugSessionResponse or the result of cls(response) :rtype: @@ -420,7 +399,7 @@ def begin_create( self, resource_group_name: str, factory_name: str, - request: Union[_models.CreateDataFlowDebugSessionRequest, IO], + request: Union[_models.CreateDataFlowDebugSessionRequest, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.CreateDataFlowDebugSessionResponse]: """Creates a data flow debug session. @@ -430,19 +409,8 @@ def begin_create( :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug session definition. Is either a - CreateDataFlowDebugSessionRequest type or a IO type. Required. - :type request: ~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this - operation to not poll, or pass in your own initialized polling object for a personal polling - strategy. - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + CreateDataFlowDebugSessionRequest type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.datafactory.models.CreateDataFlowDebugSessionRequest or IO[bytes] :return: An instance of LROPoller that returns either CreateDataFlowDebugSessionResponse or the result of cls(response) :rtype: @@ -475,7 +443,7 @@ def begin_create( def get_long_running_output(pipeline_response): deserialized = self._deserialize("CreateDataFlowDebugSessionResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: @@ -485,17 +453,15 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller.from_continuation_token( + return LROPoller[_models.CreateDataFlowDebugSessionResponse].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_create.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/createDataFlowDebugSession" - } + return LROPoller[_models.CreateDataFlowDebugSessionResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) @distributed_trace def query_by_factory( @@ -507,7 +473,6 @@ def query_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DataFlowDebugSessionInfo or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.DataFlowDebugSessionInfo] @@ -530,17 +495,16 @@ def query_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_query_by_factory_request( + _request = build_query_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.query_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -552,13 +516,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("QueryDataFlowDebugSessionsResponse", pipeline_response) @@ -568,11 +532,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -584,10 +548,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - query_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryDataFlowDebugSessions" - } - @overload def add_data_flow( self, @@ -609,7 +569,6 @@ def add_data_flow( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: AddDataFlowToDebugSessionResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -620,7 +579,7 @@ def add_data_flow( self, resource_group_name: str, factory_name: str, - request: IO, + request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -632,11 +591,10 @@ def add_data_flow( :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug session definition with debug content. Required. - :type request: IO + :type request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: AddDataFlowToDebugSessionResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -647,7 +605,7 @@ def add_data_flow( self, resource_group_name: str, factory_name: str, - request: Union[_models.DataFlowDebugPackage, IO], + request: Union[_models.DataFlowDebugPackage, IO[bytes]], **kwargs: Any ) -> _models.AddDataFlowToDebugSessionResponse: """Add a data flow into debug session. @@ -657,12 +615,8 @@ def add_data_flow( :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug session definition with debug content. Is either a - DataFlowDebugPackage type or a IO type. Required. - :type request: ~azure.mgmt.datafactory.models.DataFlowDebugPackage or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + DataFlowDebugPackage type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.datafactory.models.DataFlowDebugPackage or IO[bytes] :return: AddDataFlowToDebugSessionResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.AddDataFlowToDebugSessionResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -690,7 +644,7 @@ def add_data_flow( else: _json = self._serialize.body(request, "DataFlowDebugPackage") - request = build_add_data_flow_request( + _request = build_add_data_flow_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -698,16 +652,15 @@ def add_data_flow( content_type=content_type, json=_json, content=_content, - template_url=self.add_data_flow.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -719,13 +672,9 @@ def add_data_flow( deserialized = self._deserialize("AddDataFlowToDebugSessionResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - add_data_flow.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/addDataFlowToDebugSession" - } + return deserialized # type: ignore @overload def delete( # pylint: disable=inconsistent-return-statements @@ -748,7 +697,6 @@ def delete( # pylint: disable=inconsistent-return-statements :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -759,7 +707,7 @@ def delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, factory_name: str, - request: IO, + request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -771,11 +719,10 @@ def delete( # pylint: disable=inconsistent-return-statements :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug session definition for deletion. Required. - :type request: IO + :type request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -786,7 +733,7 @@ def delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, factory_name: str, - request: Union[_models.DeleteDataFlowDebugSessionRequest, IO], + request: Union[_models.DeleteDataFlowDebugSessionRequest, IO[bytes]], **kwargs: Any ) -> None: """Deletes a data flow debug session. @@ -796,12 +743,8 @@ def delete( # pylint: disable=inconsistent-return-statements :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug session definition for deletion. Is either a - DeleteDataFlowDebugSessionRequest type or a IO type. Required. - :type request: ~azure.mgmt.datafactory.models.DeleteDataFlowDebugSessionRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + DeleteDataFlowDebugSessionRequest type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.datafactory.models.DeleteDataFlowDebugSessionRequest or IO[bytes] :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -829,7 +772,7 @@ def delete( # pylint: disable=inconsistent-return-statements else: _json = self._serialize.body(request, "DeleteDataFlowDebugSessionRequest") - request = build_delete_request( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -837,16 +780,15 @@ def delete( # pylint: disable=inconsistent-return-statements content_type=content_type, json=_json, content=_content, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -856,17 +798,13 @@ def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/deleteDataFlowDebugSession" - } + return cls(pipeline_response, None, {}) # type: ignore def _execute_command_initial( self, resource_group_name: str, factory_name: str, - request: Union[_models.DataFlowDebugCommandRequest, IO], + request: Union[_models.DataFlowDebugCommandRequest, IO[bytes]], **kwargs: Any ) -> Optional[_models.DataFlowDebugCommandResponse]: error_map = { @@ -892,7 +830,7 @@ def _execute_command_initial( else: _json = self._serialize.body(request, "DataFlowDebugCommandRequest") - request = build_execute_command_request( + _request = build_execute_command_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -900,16 +838,15 @@ def _execute_command_initial( content_type=content_type, json=_json, content=_content, - template_url=self._execute_command_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -927,13 +864,9 @@ def _execute_command_initial( response_headers["location"] = self._deserialize("str", response.headers.get("location")) if cls: - return cls(pipeline_response, deserialized, response_headers) - - return deserialized + return cls(pipeline_response, deserialized, response_headers) # type: ignore - _execute_command_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/executeDataFlowDebugCommand" - } + return deserialized # type: ignore @overload def begin_execute_command( @@ -956,14 +889,6 @@ def begin_execute_command( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this - operation to not poll, or pass in your own initialized polling object for a personal polling - strategy. - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of LROPoller that returns either DataFlowDebugCommandResponse or the result of cls(response) :rtype: @@ -976,7 +901,7 @@ def begin_execute_command( self, resource_group_name: str, factory_name: str, - request: IO, + request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -988,18 +913,10 @@ def begin_execute_command( :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug command definition. Required. - :type request: IO + :type request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this - operation to not poll, or pass in your own initialized polling object for a personal polling - strategy. - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of LROPoller that returns either DataFlowDebugCommandResponse or the result of cls(response) :rtype: @@ -1012,7 +929,7 @@ def begin_execute_command( self, resource_group_name: str, factory_name: str, - request: Union[_models.DataFlowDebugCommandRequest, IO], + request: Union[_models.DataFlowDebugCommandRequest, IO[bytes]], **kwargs: Any ) -> LROPoller[_models.DataFlowDebugCommandResponse]: """Execute a data flow debug command. @@ -1022,19 +939,8 @@ def begin_execute_command( :param factory_name: The factory name. Required. :type factory_name: str :param request: Data flow debug command definition. Is either a DataFlowDebugCommandRequest - type or a IO type. Required. - :type request: ~azure.mgmt.datafactory.models.DataFlowDebugCommandRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this - operation to not poll, or pass in your own initialized polling object for a personal polling - strategy. - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. + type or a IO[bytes] type. Required. + :type request: ~azure.mgmt.datafactory.models.DataFlowDebugCommandRequest or IO[bytes] :return: An instance of LROPoller that returns either DataFlowDebugCommandResponse or the result of cls(response) :rtype: @@ -1067,7 +973,7 @@ def begin_execute_command( def get_long_running_output(pipeline_response): deserialized = self._deserialize("DataFlowDebugCommandResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: @@ -1077,14 +983,12 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller.from_continuation_token( + return LROPoller[_models.DataFlowDebugCommandResponse].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_execute_command.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/executeDataFlowDebugCommand" - } + return LROPoller[_models.DataFlowDebugCommandResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) 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 de5c52eec5d2..efc6ddc5a7ce 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -287,7 +287,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DataFlowResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DataFlowResource :raises ~azure.core.exceptions.HttpResponseError: @@ -299,7 +298,7 @@ def create_or_update( resource_group_name: str, factory_name: str, data_flow_name: str, - data_flow: IO, + data_flow: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -314,14 +313,13 @@ def create_or_update( :param data_flow_name: The data flow name. Required. :type data_flow_name: str :param data_flow: Data flow resource definition. Required. - :type data_flow: IO + :type data_flow: IO[bytes] :param if_match: ETag of the data flow entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DataFlowResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DataFlowResource :raises ~azure.core.exceptions.HttpResponseError: @@ -333,7 +331,7 @@ def create_or_update( resource_group_name: str, factory_name: str, data_flow_name: str, - data_flow: Union[_models.DataFlowResource, IO], + data_flow: Union[_models.DataFlowResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.DataFlowResource: @@ -345,16 +343,12 @@ def create_or_update( :type factory_name: str :param data_flow_name: The data flow name. Required. :type data_flow_name: str - :param data_flow: Data flow resource definition. Is either a DataFlowResource type or a IO - type. Required. - :type data_flow: ~azure.mgmt.datafactory.models.DataFlowResource or IO + :param data_flow: Data flow resource definition. Is either a DataFlowResource type or a + IO[bytes] type. Required. + :type data_flow: ~azure.mgmt.datafactory.models.DataFlowResource or IO[bytes] :param if_match: ETag of the data flow entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DataFlowResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DataFlowResource :raises ~azure.core.exceptions.HttpResponseError: @@ -382,7 +376,7 @@ def create_or_update( else: _json = self._serialize.body(data_flow, "DataFlowResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, data_flow_name=data_flow_name, @@ -392,16 +386,15 @@ def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -413,13 +406,9 @@ def create_or_update( deserialized = self._deserialize("DataFlowResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}" - } + return deserialized # type: ignore @distributed_trace def get( @@ -442,7 +431,6 @@ def get( ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DataFlowResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DataFlowResource :raises ~azure.core.exceptions.HttpResponseError: @@ -461,23 +449,22 @@ def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, data_flow_name=data_flow_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -489,13 +476,9 @@ def get( deserialized = self._deserialize("DataFlowResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}" - } + return deserialized # type: ignore @distributed_trace def delete( # pylint: disable=inconsistent-return-statements @@ -509,7 +492,6 @@ def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param data_flow_name: The data flow name. Required. :type data_flow_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -528,22 +510,21 @@ def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, data_flow_name=data_flow_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -553,11 +534,7 @@ def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def list_by_factory( @@ -569,7 +546,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DataFlowResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.DataFlowResource] :raises ~azure.core.exceptions.HttpResponseError: @@ -591,17 +567,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -613,13 +588,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("DataFlowListResponse", pipeline_response) @@ -629,11 +604,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -644,7 +619,3 @@ def get_next(next_link=None): return pipeline_response return ItemPaged(get_next, extract_data) - - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows" - } 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 b3b171bcccdf..4ddda80f58c9 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -269,7 +269,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either DatasetResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.DatasetResource] :raises ~azure.core.exceptions.HttpResponseError: @@ -291,17 +290,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -313,13 +311,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("DatasetListResponse", pipeline_response) @@ -329,11 +327,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -345,10 +343,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets" - } - @overload def create_or_update( self, @@ -377,7 +371,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DatasetResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DatasetResource :raises ~azure.core.exceptions.HttpResponseError: @@ -389,7 +382,7 @@ def create_or_update( resource_group_name: str, factory_name: str, dataset_name: str, - dataset: IO, + dataset: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -404,14 +397,13 @@ def create_or_update( :param dataset_name: The dataset name. Required. :type dataset_name: str :param dataset: Dataset resource definition. Required. - :type dataset: IO + :type dataset: IO[bytes] :param if_match: ETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DatasetResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DatasetResource :raises ~azure.core.exceptions.HttpResponseError: @@ -423,7 +415,7 @@ def create_or_update( resource_group_name: str, factory_name: str, dataset_name: str, - dataset: Union[_models.DatasetResource, IO], + dataset: Union[_models.DatasetResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.DatasetResource: @@ -435,16 +427,12 @@ def create_or_update( :type factory_name: str :param dataset_name: The dataset name. Required. :type dataset_name: str - :param dataset: Dataset resource definition. Is either a DatasetResource type or a IO type. - Required. - :type dataset: ~azure.mgmt.datafactory.models.DatasetResource or IO + :param dataset: Dataset resource definition. Is either a DatasetResource type or a IO[bytes] + type. Required. + :type dataset: ~azure.mgmt.datafactory.models.DatasetResource or IO[bytes] :param if_match: ETag of the dataset entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DatasetResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DatasetResource :raises ~azure.core.exceptions.HttpResponseError: @@ -472,7 +460,7 @@ def create_or_update( else: _json = self._serialize.body(dataset, "DatasetResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, dataset_name=dataset_name, @@ -482,16 +470,15 @@ def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -503,13 +490,9 @@ def create_or_update( deserialized = self._deserialize("DatasetResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}" - } + return deserialized # type: ignore @distributed_trace def get( @@ -532,7 +515,6 @@ def get( matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: DatasetResource or None or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.DatasetResource or None :raises ~azure.core.exceptions.HttpResponseError: @@ -551,23 +533,22 @@ def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, dataset_name=dataset_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -581,13 +562,9 @@ def get( deserialized = self._deserialize("DatasetResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}" - } + return deserialized # type: ignore @distributed_trace def delete( # pylint: disable=inconsistent-return-statements @@ -601,7 +578,6 @@ def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param dataset_name: The dataset name. Required. :type dataset_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -620,22 +596,21 @@ def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, dataset_name=dataset_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -645,8 +620,4 @@ def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName}" - } + return cls(pipeline_response, None, {}) # type: ignore 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 5354c6e47c74..837fcdd369d0 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -66,7 +66,7 @@ def build_get_feature_value_request(location_id: str, subscription_id: str, **kw return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_get_feature_value_by_factory_request( +def build_get_feature_value_by_factory_request( # pylint: disable=name-too-long resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -109,7 +109,7 @@ def build_get_feature_value_by_factory_request( return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_query_feature_values_by_factory_request( +def build_query_feature_values_by_factory_request( # pylint: disable=name-too-long resource_group_name: str, factory_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -189,7 +189,6 @@ def get_feature_value( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ExposureControlResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -197,18 +196,22 @@ def get_feature_value( @overload def get_feature_value( - self, location_id: str, exposure_control_request: IO, *, content_type: str = "application/json", **kwargs: Any + self, + location_id: str, + exposure_control_request: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any ) -> _models.ExposureControlResponse: """Get exposure control feature for specific location. :param location_id: The location identifier. Required. :type location_id: str :param exposure_control_request: The exposure control request. Required. - :type exposure_control_request: IO + :type exposure_control_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ExposureControlResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -216,19 +219,19 @@ def get_feature_value( @distributed_trace def get_feature_value( - self, location_id: str, exposure_control_request: Union[_models.ExposureControlRequest, IO], **kwargs: Any + self, + location_id: str, + exposure_control_request: Union[_models.ExposureControlRequest, IO[bytes]], + **kwargs: Any ) -> _models.ExposureControlResponse: """Get exposure control feature for specific location. :param location_id: The location identifier. Required. :type location_id: str :param exposure_control_request: The exposure control request. Is either a - ExposureControlRequest type or a IO type. Required. - :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ExposureControlRequest type or a IO[bytes] type. Required. + :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or + IO[bytes] :return: ExposureControlResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -256,23 +259,22 @@ def get_feature_value( else: _json = self._serialize.body(exposure_control_request, "ExposureControlRequest") - request = build_get_feature_value_request( + _request = build_get_feature_value_request( location_id=location_id, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, - template_url=self.get_feature_value.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -284,13 +286,9 @@ def get_feature_value( deserialized = self._deserialize("ExposureControlResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get_feature_value.metadata = { - "url": "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/getFeatureValue" - } + return deserialized # type: ignore @overload def get_feature_value_by_factory( @@ -313,7 +311,6 @@ def get_feature_value_by_factory( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ExposureControlResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -324,7 +321,7 @@ def get_feature_value_by_factory( self, resource_group_name: str, factory_name: str, - exposure_control_request: IO, + exposure_control_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -336,11 +333,10 @@ def get_feature_value_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param exposure_control_request: The exposure control request. Required. - :type exposure_control_request: IO + :type exposure_control_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ExposureControlResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -351,7 +347,7 @@ def get_feature_value_by_factory( self, resource_group_name: str, factory_name: str, - exposure_control_request: Union[_models.ExposureControlRequest, IO], + exposure_control_request: Union[_models.ExposureControlRequest, IO[bytes]], **kwargs: Any ) -> _models.ExposureControlResponse: """Get exposure control feature for specific factory. @@ -361,12 +357,9 @@ def get_feature_value_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param exposure_control_request: The exposure control request. Is either a - ExposureControlRequest type or a IO type. Required. - :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ExposureControlRequest type or a IO[bytes] type. Required. + :type exposure_control_request: ~azure.mgmt.datafactory.models.ExposureControlRequest or + IO[bytes] :return: ExposureControlResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -394,7 +387,7 @@ def get_feature_value_by_factory( else: _json = self._serialize.body(exposure_control_request, "ExposureControlRequest") - request = build_get_feature_value_by_factory_request( + _request = build_get_feature_value_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -402,16 +395,15 @@ def get_feature_value_by_factory( content_type=content_type, json=_json, content=_content, - template_url=self.get_feature_value_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -423,13 +415,9 @@ def get_feature_value_by_factory( deserialized = self._deserialize("ExposureControlResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get_feature_value_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getFeatureValue" - } + return deserialized # type: ignore @overload def query_feature_values_by_factory( @@ -454,7 +442,6 @@ def query_feature_values_by_factory( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ExposureControlBatchResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -465,7 +452,7 @@ def query_feature_values_by_factory( self, resource_group_name: str, factory_name: str, - exposure_control_batch_request: IO, + exposure_control_batch_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -478,11 +465,10 @@ def query_feature_values_by_factory( :type factory_name: str :param exposure_control_batch_request: The exposure control request for list of features. Required. - :type exposure_control_batch_request: IO + :type exposure_control_batch_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ExposureControlBatchResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -493,7 +479,7 @@ def query_feature_values_by_factory( self, resource_group_name: str, factory_name: str, - exposure_control_batch_request: Union[_models.ExposureControlBatchRequest, IO], + exposure_control_batch_request: Union[_models.ExposureControlBatchRequest, IO[bytes]], **kwargs: Any ) -> _models.ExposureControlBatchResponse: """Get list of exposure control features for specific factory. @@ -503,13 +489,9 @@ def query_feature_values_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param exposure_control_batch_request: The exposure control request for list of features. Is - either a ExposureControlBatchRequest type or a IO type. Required. + either a ExposureControlBatchRequest type or a IO[bytes] type. Required. :type exposure_control_batch_request: - ~azure.mgmt.datafactory.models.ExposureControlBatchRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ~azure.mgmt.datafactory.models.ExposureControlBatchRequest or IO[bytes] :return: ExposureControlBatchResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ExposureControlBatchResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -537,7 +519,7 @@ def query_feature_values_by_factory( else: _json = self._serialize.body(exposure_control_batch_request, "ExposureControlBatchRequest") - request = build_query_feature_values_by_factory_request( + _request = build_query_feature_values_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -545,16 +527,15 @@ def query_feature_values_by_factory( content_type=content_type, json=_json, content=_content, - template_url=self.query_feature_values_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -566,10 +547,6 @@ def query_feature_values_by_factory( deserialized = self._deserialize("ExposureControlBatchResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - query_feature_values_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryFeaturesValue" - } + return deserialized # type: ignore 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 e20ead3b6fe8..b10df683bb5d 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -406,7 +406,6 @@ def __init__(self, *args, **kwargs): def list(self, **kwargs: Any) -> Iterable["_models.Factory"]: """Lists factories under the specified subscription. - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either Factory or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.Factory] :raises ~azure.core.exceptions.HttpResponseError: @@ -428,15 +427,14 @@ def list(self, **kwargs: Any) -> Iterable["_models.Factory"]: def prepare_request(next_link=None): if not next_link: - request = build_list_request( + _request = build_list_request( subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -448,13 +446,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("FactoryListResponse", pipeline_response) @@ -464,11 +462,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -480,8 +478,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - list.metadata = {"url": "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/factories"} - @overload def configure_factory_repo( self, @@ -500,7 +496,6 @@ def configure_factory_repo( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -508,18 +503,17 @@ def configure_factory_repo( @overload def configure_factory_repo( - self, location_id: str, factory_repo_update: IO, *, content_type: str = "application/json", **kwargs: Any + self, location_id: str, factory_repo_update: IO[bytes], *, content_type: str = "application/json", **kwargs: Any ) -> _models.Factory: """Updates a factory's repo information. :param location_id: The location identifier. Required. :type location_id: str :param factory_repo_update: Update factory repo request definition. Required. - :type factory_repo_update: IO + :type factory_repo_update: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -527,19 +521,15 @@ def configure_factory_repo( @distributed_trace def configure_factory_repo( - self, location_id: str, factory_repo_update: Union[_models.FactoryRepoUpdate, IO], **kwargs: Any + self, location_id: str, factory_repo_update: Union[_models.FactoryRepoUpdate, IO[bytes]], **kwargs: Any ) -> _models.Factory: """Updates a factory's repo information. :param location_id: The location identifier. Required. :type location_id: str :param factory_repo_update: Update factory repo request definition. Is either a - FactoryRepoUpdate type or a IO type. Required. - :type factory_repo_update: ~azure.mgmt.datafactory.models.FactoryRepoUpdate or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + FactoryRepoUpdate type or a IO[bytes] type. Required. + :type factory_repo_update: ~azure.mgmt.datafactory.models.FactoryRepoUpdate or IO[bytes] :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -567,23 +557,22 @@ def configure_factory_repo( else: _json = self._serialize.body(factory_repo_update, "FactoryRepoUpdate") - request = build_configure_factory_repo_request( + _request = build_configure_factory_repo_request( location_id=location_id, subscription_id=self._config.subscription_id, api_version=api_version, content_type=content_type, json=_json, content=_content, - template_url=self.configure_factory_repo.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -595,13 +584,9 @@ def configure_factory_repo( deserialized = self._deserialize("Factory", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - configure_factory_repo.metadata = { - "url": "/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo" - } + return deserialized # type: ignore @distributed_trace def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Iterable["_models.Factory"]: @@ -609,7 +594,6 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite :param resource_group_name: The resource group name. Required. :type resource_group_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either Factory or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.Factory] :raises ~azure.core.exceptions.HttpResponseError: @@ -631,16 +615,15 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite def prepare_request(next_link=None): if not next_link: - request = build_list_by_resource_group_request( + _request = build_list_by_resource_group_request( resource_group_name=resource_group_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_resource_group.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -652,13 +635,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("FactoryListResponse", pipeline_response) @@ -668,11 +651,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -684,10 +667,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - list_by_resource_group.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories" - } - @overload def create_or_update( self, @@ -713,7 +692,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -724,7 +702,7 @@ def create_or_update( self, resource_group_name: str, factory_name: str, - factory: IO, + factory: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -737,14 +715,13 @@ def create_or_update( :param factory_name: The factory name. Required. :type factory_name: str :param factory: Factory resource definition. Required. - :type factory: IO + :type factory: IO[bytes] :param if_match: ETag of the factory entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -755,7 +732,7 @@ def create_or_update( self, resource_group_name: str, factory_name: str, - factory: Union[_models.Factory, IO], + factory: Union[_models.Factory, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.Factory: @@ -765,15 +742,12 @@ def create_or_update( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :param factory: Factory resource definition. Is either a Factory type or a IO type. Required. - :type factory: ~azure.mgmt.datafactory.models.Factory or IO + :param factory: Factory resource definition. Is either a Factory type or a IO[bytes] type. + Required. + :type factory: ~azure.mgmt.datafactory.models.Factory or IO[bytes] :param if_match: ETag of the factory entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -801,7 +775,7 @@ def create_or_update( else: _json = self._serialize.body(factory, "Factory") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -810,16 +784,15 @@ def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -831,13 +804,9 @@ def create_or_update( deserialized = self._deserialize("Factory", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}" - } + return deserialized # type: ignore @overload def update( @@ -860,7 +829,6 @@ def update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -871,7 +839,7 @@ def update( self, resource_group_name: str, factory_name: str, - factory_update_parameters: IO, + factory_update_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -883,11 +851,10 @@ def update( :param factory_name: The factory name. Required. :type factory_name: str :param factory_update_parameters: The parameters for updating a factory. Required. - :type factory_update_parameters: IO + :type factory_update_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -898,7 +865,7 @@ def update( self, resource_group_name: str, factory_name: str, - factory_update_parameters: Union[_models.FactoryUpdateParameters, IO], + factory_update_parameters: Union[_models.FactoryUpdateParameters, IO[bytes]], **kwargs: Any ) -> _models.Factory: """Updates a factory. @@ -908,12 +875,9 @@ def update( :param factory_name: The factory name. Required. :type factory_name: str :param factory_update_parameters: The parameters for updating a factory. Is either a - FactoryUpdateParameters type or a IO type. Required. - :type factory_update_parameters: ~azure.mgmt.datafactory.models.FactoryUpdateParameters or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + FactoryUpdateParameters type or a IO[bytes] type. Required. + :type factory_update_parameters: ~azure.mgmt.datafactory.models.FactoryUpdateParameters or + IO[bytes] :return: Factory or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory :raises ~azure.core.exceptions.HttpResponseError: @@ -941,7 +905,7 @@ def update( else: _json = self._serialize.body(factory_update_parameters, "FactoryUpdateParameters") - request = build_update_request( + _request = build_update_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -949,16 +913,15 @@ def update( content_type=content_type, json=_json, content=_content, - template_url=self.update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -970,13 +933,9 @@ def update( deserialized = self._deserialize("Factory", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}" - } + return deserialized # type: ignore @distributed_trace def get( @@ -992,7 +951,6 @@ def get( matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: Factory or None or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.Factory or None :raises ~azure.core.exceptions.HttpResponseError: @@ -1011,22 +969,21 @@ def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1040,13 +997,9 @@ def get( deserialized = self._deserialize("Factory", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}" - } + return deserialized # type: ignore @distributed_trace def delete( # pylint: disable=inconsistent-return-statements @@ -1058,7 +1011,6 @@ def delete( # pylint: disable=inconsistent-return-statements :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -1077,21 +1029,20 @@ def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1101,11 +1052,7 @@ def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}" - } + return cls(pipeline_response, None, {}) # type: ignore @overload def get_git_hub_access_token( @@ -1128,7 +1075,6 @@ def get_git_hub_access_token( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: GitHubAccessTokenResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -1139,7 +1085,7 @@ def get_git_hub_access_token( self, resource_group_name: str, factory_name: str, - git_hub_access_token_request: IO, + git_hub_access_token_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -1151,11 +1097,10 @@ def get_git_hub_access_token( :param factory_name: The factory name. Required. :type factory_name: str :param git_hub_access_token_request: Get GitHub access token request definition. Required. - :type git_hub_access_token_request: IO + :type git_hub_access_token_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: GitHubAccessTokenResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -1166,7 +1111,7 @@ def get_git_hub_access_token( self, resource_group_name: str, factory_name: str, - git_hub_access_token_request: Union[_models.GitHubAccessTokenRequest, IO], + git_hub_access_token_request: Union[_models.GitHubAccessTokenRequest, IO[bytes]], **kwargs: Any ) -> _models.GitHubAccessTokenResponse: """Get GitHub Access Token. @@ -1176,13 +1121,9 @@ def get_git_hub_access_token( :param factory_name: The factory name. Required. :type factory_name: str :param git_hub_access_token_request: Get GitHub access token request definition. Is either a - GitHubAccessTokenRequest type or a IO type. Required. + GitHubAccessTokenRequest type or a IO[bytes] type. Required. :type git_hub_access_token_request: ~azure.mgmt.datafactory.models.GitHubAccessTokenRequest or - IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + IO[bytes] :return: GitHubAccessTokenResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.GitHubAccessTokenResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -1210,7 +1151,7 @@ def get_git_hub_access_token( else: _json = self._serialize.body(git_hub_access_token_request, "GitHubAccessTokenRequest") - request = build_get_git_hub_access_token_request( + _request = build_get_git_hub_access_token_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -1218,16 +1159,15 @@ def get_git_hub_access_token( content_type=content_type, json=_json, content=_content, - template_url=self.get_git_hub_access_token.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1239,13 +1179,9 @@ def get_git_hub_access_token( deserialized = self._deserialize("GitHubAccessTokenResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get_git_hub_access_token.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getGitHubAccessToken" - } + return deserialized # type: ignore @overload def get_data_plane_access( @@ -1268,7 +1204,6 @@ def get_data_plane_access( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: AccessPolicyResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -1279,7 +1214,7 @@ def get_data_plane_access( self, resource_group_name: str, factory_name: str, - policy: IO, + policy: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -1291,11 +1226,10 @@ def get_data_plane_access( :param factory_name: The factory name. Required. :type factory_name: str :param policy: Data Plane user access policy definition. Required. - :type policy: IO + :type policy: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: AccessPolicyResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -1303,7 +1237,11 @@ def get_data_plane_access( @distributed_trace def get_data_plane_access( - self, resource_group_name: str, factory_name: str, policy: Union[_models.UserAccessPolicy, IO], **kwargs: Any + self, + resource_group_name: str, + factory_name: str, + policy: Union[_models.UserAccessPolicy, IO[bytes]], + **kwargs: Any ) -> _models.AccessPolicyResponse: """Get Data Plane access. @@ -1312,12 +1250,8 @@ def get_data_plane_access( :param factory_name: The factory name. Required. :type factory_name: str :param policy: Data Plane user access policy definition. Is either a UserAccessPolicy type or a - IO type. Required. - :type policy: ~azure.mgmt.datafactory.models.UserAccessPolicy or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + IO[bytes] type. Required. + :type policy: ~azure.mgmt.datafactory.models.UserAccessPolicy or IO[bytes] :return: AccessPolicyResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.AccessPolicyResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -1345,7 +1279,7 @@ def get_data_plane_access( else: _json = self._serialize.body(policy, "UserAccessPolicy") - request = build_get_data_plane_access_request( + _request = build_get_data_plane_access_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -1353,16 +1287,15 @@ def get_data_plane_access( content_type=content_type, json=_json, content=_content, - template_url=self.get_data_plane_access.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1374,10 +1307,6 @@ def get_data_plane_access( deserialized = self._deserialize("AccessPolicyResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get_data_plane_access.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getDataPlaneAccess" - } + return deserialized # type: ignore 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 5a27f053683e..0aa7a8ccb736 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -253,7 +253,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either GlobalParameterResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.GlobalParameterResource] @@ -276,17 +275,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -298,13 +296,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("GlobalParameterListResponse", pipeline_response) @@ -314,11 +312,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -330,10 +328,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters" - } - @distributed_trace def get( self, resource_group_name: str, factory_name: str, global_parameter_name: str, **kwargs: Any @@ -346,7 +340,6 @@ def get( :type factory_name: str :param global_parameter_name: The global parameter name. Required. :type global_parameter_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: GlobalParameterResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource :raises ~azure.core.exceptions.HttpResponseError: @@ -365,22 +358,21 @@ def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, global_parameter_name=global_parameter_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -392,13 +384,9 @@ def get( deserialized = self._deserialize("GlobalParameterResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}" - } + return deserialized # type: ignore @overload def create_or_update( @@ -424,7 +412,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: GlobalParameterResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource :raises ~azure.core.exceptions.HttpResponseError: @@ -436,7 +423,7 @@ def create_or_update( resource_group_name: str, factory_name: str, global_parameter_name: str, - default: IO, + default: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -450,11 +437,10 @@ def create_or_update( :param global_parameter_name: The global parameter name. Required. :type global_parameter_name: str :param default: Global parameter resource definition. Required. - :type default: IO + :type default: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: GlobalParameterResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource :raises ~azure.core.exceptions.HttpResponseError: @@ -466,7 +452,7 @@ def create_or_update( resource_group_name: str, factory_name: str, global_parameter_name: str, - default: Union[_models.GlobalParameterResource, IO], + default: Union[_models.GlobalParameterResource, IO[bytes]], **kwargs: Any ) -> _models.GlobalParameterResource: """Creates or updates a Global parameter. @@ -478,12 +464,8 @@ def create_or_update( :param global_parameter_name: The global parameter name. Required. :type global_parameter_name: str :param default: Global parameter resource definition. Is either a GlobalParameterResource type - or a IO type. Required. - :type default: ~azure.mgmt.datafactory.models.GlobalParameterResource or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + or a IO[bytes] type. Required. + :type default: ~azure.mgmt.datafactory.models.GlobalParameterResource or IO[bytes] :return: GlobalParameterResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.GlobalParameterResource :raises ~azure.core.exceptions.HttpResponseError: @@ -511,7 +493,7 @@ def create_or_update( else: _json = self._serialize.body(default, "GlobalParameterResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, global_parameter_name=global_parameter_name, @@ -520,16 +502,15 @@ def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -541,13 +522,9 @@ def create_or_update( deserialized = self._deserialize("GlobalParameterResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}" - } + return deserialized # type: ignore @distributed_trace def delete( # pylint: disable=inconsistent-return-statements @@ -561,7 +538,6 @@ def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param global_parameter_name: The global parameter name. Required. :type global_parameter_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -580,22 +556,21 @@ def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, global_parameter_name=global_parameter_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -605,8 +580,4 @@ def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}" - } + return cls(pipeline_response, None, {}) # type: ignore 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 01d93b4e8ca4..33d445b0e496 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -295,7 +295,6 @@ def get( :type integration_runtime_name: str :param node_name: The integration runtime node name. Required. :type node_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode :raises ~azure.core.exceptions.HttpResponseError: @@ -314,23 +313,22 @@ def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, node_name=node_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -342,13 +340,9 @@ def get( deserialized = self._deserialize("SelfHostedIntegrationRuntimeNode", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}" - } + return deserialized # type: ignore @distributed_trace def delete( # pylint: disable=inconsistent-return-statements @@ -364,7 +358,6 @@ def delete( # pylint: disable=inconsistent-return-statements :type integration_runtime_name: str :param node_name: The integration runtime node name. Required. :type node_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -383,23 +376,22 @@ def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, node_name=node_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -409,11 +401,7 @@ def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}" - } + return cls(pipeline_response, None, {}) # type: ignore @overload def update( @@ -444,7 +432,6 @@ def update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode :raises ~azure.core.exceptions.HttpResponseError: @@ -457,7 +444,7 @@ def update( factory_name: str, integration_runtime_name: str, node_name: str, - update_integration_runtime_node_request: IO, + update_integration_runtime_node_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -474,11 +461,10 @@ def update( :type node_name: str :param update_integration_runtime_node_request: The parameters for updating an integration runtime node. Required. - :type update_integration_runtime_node_request: IO + :type update_integration_runtime_node_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode :raises ~azure.core.exceptions.HttpResponseError: @@ -491,7 +477,7 @@ def update( factory_name: str, integration_runtime_name: str, node_name: str, - update_integration_runtime_node_request: Union[_models.UpdateIntegrationRuntimeNodeRequest, IO], + update_integration_runtime_node_request: Union[_models.UpdateIntegrationRuntimeNodeRequest, IO[bytes]], **kwargs: Any ) -> _models.SelfHostedIntegrationRuntimeNode: """Updates a self-hosted integration runtime node. @@ -505,13 +491,10 @@ def update( :param node_name: The integration runtime node name. Required. :type node_name: str :param update_integration_runtime_node_request: The parameters for updating an integration - runtime node. Is either a UpdateIntegrationRuntimeNodeRequest type or a IO type. Required. + runtime node. Is either a UpdateIntegrationRuntimeNodeRequest type or a IO[bytes] type. + Required. :type update_integration_runtime_node_request: - ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeNodeRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeNodeRequest or IO[bytes] :return: SelfHostedIntegrationRuntimeNode or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.SelfHostedIntegrationRuntimeNode :raises ~azure.core.exceptions.HttpResponseError: @@ -539,7 +522,7 @@ def update( else: _json = self._serialize.body(update_integration_runtime_node_request, "UpdateIntegrationRuntimeNodeRequest") - request = build_update_request( + _request = build_update_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, @@ -549,16 +532,15 @@ def update( content_type=content_type, json=_json, content=_content, - template_url=self.update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -570,13 +552,9 @@ def update( deserialized = self._deserialize("SelfHostedIntegrationRuntimeNode", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}" - } + return deserialized # type: ignore @distributed_trace def get_ip_address( @@ -592,7 +570,6 @@ def get_ip_address( :type integration_runtime_name: str :param node_name: The integration runtime node name. Required. :type node_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeNodeIpAddress or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeNodeIpAddress :raises ~azure.core.exceptions.HttpResponseError: @@ -611,23 +588,22 @@ def get_ip_address( 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( + _request = build_get_ip_address_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, node_name=node_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get_ip_address.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -639,10 +615,6 @@ def get_ip_address( deserialized = self._deserialize("IntegrationRuntimeNodeIpAddress", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get_ip_address.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress" - } + return deserialized # type: ignore 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 1ed7fe0c9768..002283b61c12 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -136,7 +136,7 @@ def build_get_request( return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -class IntegrationRuntimeObjectMetadataOperations: +class IntegrationRuntimeObjectMetadataOperations: # pylint: disable=name-too-long """ .. warning:: **DO NOT** instantiate this class directly. @@ -172,22 +172,21 @@ def _refresh_initial( 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( + _request = build_refresh_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self._refresh_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -201,13 +200,9 @@ def _refresh_initial( deserialized = self._deserialize("SsisObjectMetadataStatusResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - _refresh_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata" - } + return deserialized # type: ignore @distributed_trace def begin_refresh( @@ -221,14 +216,6 @@ def begin_refresh( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this - operation to not poll, or pass in your own initialized polling object for a personal polling - strategy. - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of LROPoller that returns either SsisObjectMetadataStatusResponse or the result of cls(response) :rtype: @@ -259,7 +246,7 @@ def begin_refresh( def get_long_running_output(pipeline_response): deserialized = self._deserialize("SsisObjectMetadataStatusResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: @@ -269,17 +256,15 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller.from_continuation_token( + return LROPoller[_models.SsisObjectMetadataStatusResponse].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_refresh.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata" - } + return LROPoller[_models.SsisObjectMetadataStatusResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) @overload def get( @@ -307,7 +292,6 @@ def get( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: SsisObjectMetadataListResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -319,7 +303,7 @@ def get( resource_group_name: str, factory_name: str, integration_runtime_name: str, - get_metadata_request: Optional[IO] = None, + get_metadata_request: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any @@ -335,11 +319,10 @@ def get( :type integration_runtime_name: str :param get_metadata_request: The parameters for getting a SSIS object metadata. Default value is None. - :type get_metadata_request: IO + :type get_metadata_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: SsisObjectMetadataListResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -351,7 +334,7 @@ def get( resource_group_name: str, factory_name: str, integration_runtime_name: str, - get_metadata_request: Optional[Union[_models.GetSsisObjectMetadataRequest, IO]] = None, + get_metadata_request: Optional[Union[_models.GetSsisObjectMetadataRequest, IO[bytes]]] = None, **kwargs: Any ) -> _models.SsisObjectMetadataListResponse: """Get a SSIS integration runtime object metadata by specified path. The return is pageable @@ -364,12 +347,9 @@ def get( :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str :param get_metadata_request: The parameters for getting a SSIS object metadata. Is either a - GetSsisObjectMetadataRequest type or a IO type. Default value is None. - :type get_metadata_request: ~azure.mgmt.datafactory.models.GetSsisObjectMetadataRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + GetSsisObjectMetadataRequest type or a IO[bytes] type. Default value is None. + :type get_metadata_request: ~azure.mgmt.datafactory.models.GetSsisObjectMetadataRequest or + IO[bytes] :return: SsisObjectMetadataListResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.SsisObjectMetadataListResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -400,7 +380,7 @@ def get( else: _json = None - request = build_get_request( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, @@ -409,16 +389,15 @@ def get( content_type=content_type, json=_json, content=_content, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -430,10 +409,6 @@ def get( deserialized = self._deserialize("SsisObjectMetadataListResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata" - } + return deserialized # type: ignore 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 dcc32ce24b5a..ddbdf80b894f 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -341,7 +341,7 @@ def build_get_status_request( return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_list_outbound_network_dependencies_endpoints_request( +def build_list_outbound_network_dependencies_endpoints_request( # pylint: disable=name-too-long resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -827,7 +827,7 @@ def build_remove_links_request( return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_create_linked_integration_runtime_request( +def build_create_linked_integration_runtime_request( # pylint: disable=name-too-long resource_group_name: str, factory_name: str, integration_runtime_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -907,7 +907,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either IntegrationRuntimeResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.IntegrationRuntimeResource] @@ -930,17 +929,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -952,13 +950,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("IntegrationRuntimeListResponse", pipeline_response) @@ -968,11 +966,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -984,10 +982,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes" - } - @overload def create_or_update( self, @@ -1017,7 +1011,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource :raises ~azure.core.exceptions.HttpResponseError: @@ -1029,7 +1022,7 @@ def create_or_update( resource_group_name: str, factory_name: str, integration_runtime_name: str, - integration_runtime: IO, + integration_runtime: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -1044,7 +1037,7 @@ def create_or_update( :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str :param integration_runtime: Integration runtime resource definition. Required. - :type integration_runtime: IO + :type integration_runtime: IO[bytes] :param if_match: ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. @@ -1052,7 +1045,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource :raises ~azure.core.exceptions.HttpResponseError: @@ -1064,7 +1056,7 @@ def create_or_update( resource_group_name: str, factory_name: str, integration_runtime_name: str, - integration_runtime: Union[_models.IntegrationRuntimeResource, IO], + integration_runtime: Union[_models.IntegrationRuntimeResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.IntegrationRuntimeResource: @@ -1077,16 +1069,13 @@ def create_or_update( :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str :param integration_runtime: Integration runtime resource definition. Is either a - IntegrationRuntimeResource type or a IO type. Required. - :type integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or IO + IntegrationRuntimeResource type or a IO[bytes] type. Required. + :type integration_runtime: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or + IO[bytes] :param if_match: ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource :raises ~azure.core.exceptions.HttpResponseError: @@ -1114,7 +1103,7 @@ def create_or_update( else: _json = self._serialize.body(integration_runtime, "IntegrationRuntimeResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, @@ -1124,16 +1113,15 @@ def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1145,13 +1133,9 @@ def create_or_update( deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}" - } + return deserialized # type: ignore @distributed_trace def get( @@ -1174,7 +1158,6 @@ def get( If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeResource or None or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource or None :raises ~azure.core.exceptions.HttpResponseError: @@ -1193,23 +1176,22 @@ def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1223,13 +1205,9 @@ def get( deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}" - } + return deserialized # type: ignore @overload def update( @@ -1257,7 +1235,6 @@ def update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource :raises ~azure.core.exceptions.HttpResponseError: @@ -1269,7 +1246,7 @@ def update( resource_group_name: str, factory_name: str, integration_runtime_name: str, - update_integration_runtime_request: IO, + update_integration_runtime_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -1284,11 +1261,10 @@ def update( :type integration_runtime_name: str :param update_integration_runtime_request: The parameters for updating an integration runtime. Required. - :type update_integration_runtime_request: IO + :type update_integration_runtime_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource :raises ~azure.core.exceptions.HttpResponseError: @@ -1300,7 +1276,7 @@ def update( resource_group_name: str, factory_name: str, integration_runtime_name: str, - update_integration_runtime_request: Union[_models.UpdateIntegrationRuntimeRequest, IO], + update_integration_runtime_request: Union[_models.UpdateIntegrationRuntimeRequest, IO[bytes]], **kwargs: Any ) -> _models.IntegrationRuntimeResource: """Updates an integration runtime. @@ -1312,13 +1288,9 @@ def update( :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str :param update_integration_runtime_request: The parameters for updating an integration runtime. - Is either a UpdateIntegrationRuntimeRequest type or a IO type. Required. + Is either a UpdateIntegrationRuntimeRequest type or a IO[bytes] type. Required. :type update_integration_runtime_request: - ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ~azure.mgmt.datafactory.models.UpdateIntegrationRuntimeRequest or IO[bytes] :return: IntegrationRuntimeResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeResource :raises ~azure.core.exceptions.HttpResponseError: @@ -1346,7 +1318,7 @@ def update( else: _json = self._serialize.body(update_integration_runtime_request, "UpdateIntegrationRuntimeRequest") - request = build_update_request( + _request = build_update_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, @@ -1355,16 +1327,15 @@ def update( content_type=content_type, json=_json, content=_content, - template_url=self.update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1376,13 +1347,9 @@ def update( deserialized = self._deserialize("IntegrationRuntimeResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}" - } + return deserialized # type: ignore @distributed_trace def delete( # pylint: disable=inconsistent-return-statements @@ -1396,7 +1363,6 @@ def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -1415,22 +1381,21 @@ def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1440,11 +1405,7 @@ def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def get_status( @@ -1458,7 +1419,6 @@ def get_status( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeStatusResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -1477,22 +1437,21 @@ def get_status( 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( + _request = build_get_status_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get_status.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1504,16 +1463,12 @@ def get_status( deserialized = self._deserialize("IntegrationRuntimeStatusResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get_status.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getStatus" - } + return deserialized # type: ignore @distributed_trace - def list_outbound_network_dependencies_endpoints( + def list_outbound_network_dependencies_endpoints( # pylint: disable=name-too-long self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any ) -> _models.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse: """Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. @@ -1524,7 +1479,6 @@ def list_outbound_network_dependencies_endpoints( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse or the result of cls(response) :rtype: @@ -1545,22 +1499,21 @@ def list_outbound_network_dependencies_endpoints( 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( + _request = build_list_outbound_network_dependencies_endpoints_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_outbound_network_dependencies_endpoints.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1574,13 +1527,9 @@ def list_outbound_network_dependencies_endpoints( ) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - list_outbound_network_dependencies_endpoints.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/outboundNetworkDependenciesEndpoints" - } + return deserialized # type: ignore @distributed_trace def get_connection_info( @@ -1595,7 +1544,6 @@ def get_connection_info( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeConnectionInfo or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeConnectionInfo :raises ~azure.core.exceptions.HttpResponseError: @@ -1614,22 +1562,21 @@ def get_connection_info( 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( + _request = build_get_connection_info_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get_connection_info.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1641,13 +1588,9 @@ def get_connection_info( deserialized = self._deserialize("IntegrationRuntimeConnectionInfo", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get_connection_info.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo" - } + return deserialized # type: ignore @overload def regenerate_auth_key( @@ -1675,7 +1618,6 @@ def regenerate_auth_key( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeAuthKeys or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys :raises ~azure.core.exceptions.HttpResponseError: @@ -1687,7 +1629,7 @@ def regenerate_auth_key( resource_group_name: str, factory_name: str, integration_runtime_name: str, - regenerate_key_parameters: IO, + regenerate_key_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -1702,11 +1644,10 @@ def regenerate_auth_key( :type integration_runtime_name: str :param regenerate_key_parameters: The parameters for regenerating integration runtime authentication key. Required. - :type regenerate_key_parameters: IO + :type regenerate_key_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeAuthKeys or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys :raises ~azure.core.exceptions.HttpResponseError: @@ -1718,7 +1659,7 @@ def regenerate_auth_key( resource_group_name: str, factory_name: str, integration_runtime_name: str, - regenerate_key_parameters: Union[_models.IntegrationRuntimeRegenerateKeyParameters, IO], + regenerate_key_parameters: Union[_models.IntegrationRuntimeRegenerateKeyParameters, IO[bytes]], **kwargs: Any ) -> _models.IntegrationRuntimeAuthKeys: """Regenerates the authentication key for an integration runtime. @@ -1730,14 +1671,10 @@ def regenerate_auth_key( :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str :param regenerate_key_parameters: The parameters for regenerating integration runtime - authentication key. Is either a IntegrationRuntimeRegenerateKeyParameters type or a IO type. - Required. + authentication key. Is either a IntegrationRuntimeRegenerateKeyParameters type or a IO[bytes] + type. Required. :type regenerate_key_parameters: - ~azure.mgmt.datafactory.models.IntegrationRuntimeRegenerateKeyParameters or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ~azure.mgmt.datafactory.models.IntegrationRuntimeRegenerateKeyParameters or IO[bytes] :return: IntegrationRuntimeAuthKeys or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys :raises ~azure.core.exceptions.HttpResponseError: @@ -1765,7 +1702,7 @@ def regenerate_auth_key( else: _json = self._serialize.body(regenerate_key_parameters, "IntegrationRuntimeRegenerateKeyParameters") - request = build_regenerate_auth_key_request( + _request = build_regenerate_auth_key_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, @@ -1774,16 +1711,15 @@ def regenerate_auth_key( content_type=content_type, json=_json, content=_content, - template_url=self.regenerate_auth_key.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1795,13 +1731,9 @@ def regenerate_auth_key( deserialized = self._deserialize("IntegrationRuntimeAuthKeys", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - regenerate_auth_key.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey" - } + return deserialized # type: ignore @distributed_trace def list_auth_keys( @@ -1815,7 +1747,6 @@ def list_auth_keys( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeAuthKeys or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeAuthKeys :raises ~azure.core.exceptions.HttpResponseError: @@ -1834,22 +1765,21 @@ def list_auth_keys( 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( + _request = build_list_auth_keys_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_auth_keys.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1861,13 +1791,9 @@ def list_auth_keys( deserialized = self._deserialize("IntegrationRuntimeAuthKeys", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - list_auth_keys.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys" - } + return deserialized # type: ignore def _start_initial( self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any @@ -1886,22 +1812,21 @@ def _start_initial( 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( + _request = build_start_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self._start_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1915,13 +1840,9 @@ def _start_initial( deserialized = self._deserialize("IntegrationRuntimeStatusResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - _start_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start" - } + return deserialized # type: ignore @distributed_trace def begin_start( @@ -1935,14 +1856,6 @@ def begin_start( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this - operation to not poll, or pass in your own initialized polling object for a personal polling - strategy. - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of LROPoller that returns either IntegrationRuntimeStatusResponse or the result of cls(response) :rtype: @@ -1973,7 +1886,7 @@ def begin_start( def get_long_running_output(pipeline_response): deserialized = self._deserialize("IntegrationRuntimeStatusResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: @@ -1983,17 +1896,15 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller.from_continuation_token( + return LROPoller[_models.IntegrationRuntimeStatusResponse].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_start.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/start" - } + return LROPoller[_models.IntegrationRuntimeStatusResponse]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) def _stop_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, factory_name: str, integration_runtime_name: str, **kwargs: Any @@ -2012,22 +1923,21 @@ def _stop_initial( # pylint: disable=inconsistent-return-statements 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( + _request = build_stop_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self._stop_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -2037,11 +1947,7 @@ def _stop_initial( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - _stop_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def begin_stop( @@ -2055,14 +1961,6 @@ def begin_stop( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this - operation to not poll, or pass in your own initialized polling object for a personal polling - strategy. - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -2090,7 +1988,7 @@ def begin_stop( def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) @@ -2099,17 +1997,13 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return LROPoller.from_continuation_token( + return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_stop.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/stop" - } + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore @distributed_trace def sync_credentials( # pylint: disable=inconsistent-return-statements @@ -2126,7 +2020,6 @@ def sync_credentials( # pylint: disable=inconsistent-return-statements :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -2145,22 +2038,21 @@ def sync_credentials( # pylint: disable=inconsistent-return-statements 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( + _request = build_sync_credentials_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.sync_credentials.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -2170,11 +2062,7 @@ def sync_credentials( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - sync_credentials.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def get_monitoring_data( @@ -2189,7 +2077,6 @@ def get_monitoring_data( :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeMonitoringData or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeMonitoringData :raises ~azure.core.exceptions.HttpResponseError: @@ -2208,22 +2095,21 @@ def get_monitoring_data( 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( + _request = build_get_monitoring_data_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get_monitoring_data.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -2235,13 +2121,9 @@ def get_monitoring_data( deserialized = self._deserialize("IntegrationRuntimeMonitoringData", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get_monitoring_data.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/monitoringData" - } + return deserialized # type: ignore @distributed_trace def upgrade( # pylint: disable=inconsistent-return-statements @@ -2255,7 +2137,6 @@ def upgrade( # pylint: disable=inconsistent-return-statements :type factory_name: str :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -2274,22 +2155,21 @@ def upgrade( # pylint: disable=inconsistent-return-statements 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( + _request = build_upgrade_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.upgrade.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -2299,11 +2179,7 @@ def upgrade( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - upgrade.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/upgrade" - } + return cls(pipeline_response, None, {}) # type: ignore @overload def remove_links( # pylint: disable=inconsistent-return-statements @@ -2332,7 +2208,6 @@ def remove_links( # pylint: disable=inconsistent-return-statements :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -2344,7 +2219,7 @@ def remove_links( # pylint: disable=inconsistent-return-statements resource_group_name: str, factory_name: str, integration_runtime_name: str, - linked_integration_runtime_request: IO, + linked_integration_runtime_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -2360,11 +2235,10 @@ def remove_links( # pylint: disable=inconsistent-return-statements :type integration_runtime_name: str :param linked_integration_runtime_request: The data factory name for the linked integration runtime. Required. - :type linked_integration_runtime_request: IO + :type linked_integration_runtime_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -2376,7 +2250,7 @@ def remove_links( # pylint: disable=inconsistent-return-statements resource_group_name: str, factory_name: str, integration_runtime_name: str, - linked_integration_runtime_request: Union[_models.LinkedIntegrationRuntimeRequest, IO], + linked_integration_runtime_request: Union[_models.LinkedIntegrationRuntimeRequest, IO[bytes]], **kwargs: Any ) -> None: """Remove all linked integration runtimes under specific data factory in a self-hosted integration @@ -2389,13 +2263,9 @@ def remove_links( # pylint: disable=inconsistent-return-statements :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str :param linked_integration_runtime_request: The data factory name for the linked integration - runtime. Is either a LinkedIntegrationRuntimeRequest type or a IO type. Required. + runtime. Is either a LinkedIntegrationRuntimeRequest type or a IO[bytes] type. Required. :type linked_integration_runtime_request: - ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ~azure.mgmt.datafactory.models.LinkedIntegrationRuntimeRequest or IO[bytes] :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -2423,7 +2293,7 @@ def remove_links( # pylint: disable=inconsistent-return-statements else: _json = self._serialize.body(linked_integration_runtime_request, "LinkedIntegrationRuntimeRequest") - request = build_remove_links_request( + _request = build_remove_links_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, @@ -2432,16 +2302,15 @@ def remove_links( # pylint: disable=inconsistent-return-statements content_type=content_type, json=_json, content=_content, - template_url=self.remove_links.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -2451,11 +2320,7 @@ def remove_links( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - remove_links.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/removeLinks" - } + return cls(pipeline_response, None, {}) # type: ignore @overload def create_linked_integration_runtime( @@ -2483,7 +2348,6 @@ def create_linked_integration_runtime( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeStatusResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -2495,7 +2359,7 @@ def create_linked_integration_runtime( resource_group_name: str, factory_name: str, integration_runtime_name: str, - create_linked_integration_runtime_request: IO, + create_linked_integration_runtime_request: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -2510,11 +2374,10 @@ def create_linked_integration_runtime( :type integration_runtime_name: str :param create_linked_integration_runtime_request: The linked integration runtime properties. Required. - :type create_linked_integration_runtime_request: IO + :type create_linked_integration_runtime_request: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: IntegrationRuntimeStatusResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -2526,7 +2389,7 @@ def create_linked_integration_runtime( resource_group_name: str, factory_name: str, integration_runtime_name: str, - create_linked_integration_runtime_request: Union[_models.CreateLinkedIntegrationRuntimeRequest, IO], + create_linked_integration_runtime_request: Union[_models.CreateLinkedIntegrationRuntimeRequest, IO[bytes]], **kwargs: Any ) -> _models.IntegrationRuntimeStatusResponse: """Create a linked integration runtime entry in a shared integration runtime. @@ -2538,13 +2401,9 @@ def create_linked_integration_runtime( :param integration_runtime_name: The integration runtime name. Required. :type integration_runtime_name: str :param create_linked_integration_runtime_request: The linked integration runtime properties. Is - either a CreateLinkedIntegrationRuntimeRequest type or a IO type. Required. + either a CreateLinkedIntegrationRuntimeRequest type or a IO[bytes] type. Required. :type create_linked_integration_runtime_request: - ~azure.mgmt.datafactory.models.CreateLinkedIntegrationRuntimeRequest or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + ~azure.mgmt.datafactory.models.CreateLinkedIntegrationRuntimeRequest or IO[bytes] :return: IntegrationRuntimeStatusResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.IntegrationRuntimeStatusResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -2574,7 +2433,7 @@ def create_linked_integration_runtime( create_linked_integration_runtime_request, "CreateLinkedIntegrationRuntimeRequest" ) - request = build_create_linked_integration_runtime_request( + _request = build_create_linked_integration_runtime_request( resource_group_name=resource_group_name, factory_name=factory_name, integration_runtime_name=integration_runtime_name, @@ -2583,16 +2442,15 @@ def create_linked_integration_runtime( content_type=content_type, json=_json, content=_content, - template_url=self.create_linked_integration_runtime.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -2604,10 +2462,6 @@ def create_linked_integration_runtime( deserialized = self._deserialize("IntegrationRuntimeStatusResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_linked_integration_runtime.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/linkedIntegrationRuntime" - } + return deserialized # type: ignore 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 6b21244a5d39..19b333cbb642 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -269,7 +269,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either LinkedServiceResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.LinkedServiceResource] @@ -292,17 +291,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -314,13 +312,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("LinkedServiceListResponse", pipeline_response) @@ -330,11 +328,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -346,10 +344,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices" - } - @overload def create_or_update( self, @@ -379,7 +373,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: LinkedServiceResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource :raises ~azure.core.exceptions.HttpResponseError: @@ -391,7 +384,7 @@ def create_or_update( resource_group_name: str, factory_name: str, linked_service_name: str, - linked_service: IO, + linked_service: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -406,7 +399,7 @@ def create_or_update( :param linked_service_name: The linked service name. Required. :type linked_service_name: str :param linked_service: Linked service resource definition. Required. - :type linked_service: IO + :type linked_service: IO[bytes] :param if_match: ETag of the linkedService entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. @@ -414,7 +407,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: LinkedServiceResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource :raises ~azure.core.exceptions.HttpResponseError: @@ -426,7 +418,7 @@ def create_or_update( resource_group_name: str, factory_name: str, linked_service_name: str, - linked_service: Union[_models.LinkedServiceResource, IO], + linked_service: Union[_models.LinkedServiceResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.LinkedServiceResource: @@ -439,16 +431,12 @@ def create_or_update( :param linked_service_name: The linked service name. Required. :type linked_service_name: str :param linked_service: Linked service resource definition. Is either a LinkedServiceResource - type or a IO type. Required. - :type linked_service: ~azure.mgmt.datafactory.models.LinkedServiceResource or IO + type or a IO[bytes] type. Required. + :type linked_service: ~azure.mgmt.datafactory.models.LinkedServiceResource or IO[bytes] :param if_match: ETag of the linkedService entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: LinkedServiceResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource :raises ~azure.core.exceptions.HttpResponseError: @@ -476,7 +464,7 @@ def create_or_update( else: _json = self._serialize.body(linked_service, "LinkedServiceResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, linked_service_name=linked_service_name, @@ -486,16 +474,15 @@ def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -507,13 +494,9 @@ def create_or_update( deserialized = self._deserialize("LinkedServiceResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}" - } + return deserialized # type: ignore @distributed_trace def get( @@ -536,7 +519,6 @@ def get( the ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: LinkedServiceResource or None or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.LinkedServiceResource or None :raises ~azure.core.exceptions.HttpResponseError: @@ -555,23 +537,22 @@ def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, linked_service_name=linked_service_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -585,13 +566,9 @@ def get( deserialized = self._deserialize("LinkedServiceResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}" - } + return deserialized # type: ignore @distributed_trace def delete( # pylint: disable=inconsistent-return-statements @@ -605,7 +582,6 @@ def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param linked_service_name: The linked service name. Required. :type linked_service_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -624,22 +600,21 @@ def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, linked_service_name=linked_service_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -649,8 +624,4 @@ def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}" - } + return cls(pipeline_response, None, {}) # type: ignore 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 c3d39b41122d..d3f7e92f82f3 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -310,7 +310,6 @@ def list_by_factory( :type factory_name: str :param managed_virtual_network_name: Managed virtual network name. Required. :type managed_virtual_network_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ManagedPrivateEndpointResource or the result of cls(response) :rtype: @@ -334,18 +333,17 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, managed_virtual_network_name=managed_virtual_network_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -357,13 +355,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("ManagedPrivateEndpointListResponse", pipeline_response) @@ -373,11 +371,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -389,10 +387,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints" - } - @overload def create_or_update( self, @@ -425,7 +419,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedPrivateEndpointResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource :raises ~azure.core.exceptions.HttpResponseError: @@ -438,7 +431,7 @@ def create_or_update( factory_name: str, managed_virtual_network_name: str, managed_private_endpoint_name: str, - managed_private_endpoint: IO, + managed_private_endpoint: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -455,7 +448,7 @@ def create_or_update( :param managed_private_endpoint_name: Managed private endpoint name. Required. :type managed_private_endpoint_name: str :param managed_private_endpoint: Managed private endpoint resource definition. Required. - :type managed_private_endpoint: IO + :type managed_private_endpoint: IO[bytes] :param if_match: ETag of the managed private endpoint entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. @@ -463,7 +456,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedPrivateEndpointResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource :raises ~azure.core.exceptions.HttpResponseError: @@ -476,7 +468,7 @@ def create_or_update( factory_name: str, managed_virtual_network_name: str, managed_private_endpoint_name: str, - managed_private_endpoint: Union[_models.ManagedPrivateEndpointResource, IO], + managed_private_endpoint: Union[_models.ManagedPrivateEndpointResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.ManagedPrivateEndpointResource: @@ -491,17 +483,13 @@ def create_or_update( :param managed_private_endpoint_name: Managed private endpoint name. Required. :type managed_private_endpoint_name: str :param managed_private_endpoint: Managed private endpoint resource definition. Is either a - ManagedPrivateEndpointResource type or a IO type. Required. + ManagedPrivateEndpointResource type or a IO[bytes] type. Required. :type managed_private_endpoint: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource - or IO + or IO[bytes] :param if_match: ETag of the managed private endpoint entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedPrivateEndpointResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource :raises ~azure.core.exceptions.HttpResponseError: @@ -529,7 +517,7 @@ def create_or_update( else: _json = self._serialize.body(managed_private_endpoint, "ManagedPrivateEndpointResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, managed_virtual_network_name=managed_virtual_network_name, @@ -540,16 +528,15 @@ def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -561,13 +548,9 @@ def create_or_update( deserialized = self._deserialize("ManagedPrivateEndpointResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}" - } + return deserialized # type: ignore @distributed_trace def get( @@ -593,7 +576,6 @@ def get( get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedPrivateEndpointResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedPrivateEndpointResource :raises ~azure.core.exceptions.HttpResponseError: @@ -612,7 +594,7 @@ def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, managed_virtual_network_name=managed_virtual_network_name, @@ -620,16 +602,15 @@ def get( subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -641,13 +622,9 @@ def get( deserialized = self._deserialize("ManagedPrivateEndpointResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}" - } + return deserialized # type: ignore @distributed_trace def delete( # pylint: disable=inconsistent-return-statements @@ -668,7 +645,6 @@ def delete( # pylint: disable=inconsistent-return-statements :type managed_virtual_network_name: str :param managed_private_endpoint_name: Managed private endpoint name. Required. :type managed_private_endpoint_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -687,23 +663,22 @@ def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, managed_virtual_network_name=managed_virtual_network_name, managed_private_endpoint_name=managed_private_endpoint_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -713,8 +688,4 @@ def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}/managedPrivateEndpoints/{managedPrivateEndpointName}" - } + return cls(pipeline_response, None, {}) # type: ignore 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 e6d09a11ca21..71bb6d65d2e9 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -221,7 +221,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ManagedVirtualNetworkResource or the result of cls(response) :rtype: @@ -245,17 +244,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -267,13 +265,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("ManagedVirtualNetworkListResponse", pipeline_response) @@ -283,11 +281,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -299,10 +297,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks" - } - @overload def create_or_update( self, @@ -332,7 +326,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedVirtualNetworkResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource :raises ~azure.core.exceptions.HttpResponseError: @@ -344,7 +337,7 @@ def create_or_update( resource_group_name: str, factory_name: str, managed_virtual_network_name: str, - managed_virtual_network: IO, + managed_virtual_network: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -359,7 +352,7 @@ def create_or_update( :param managed_virtual_network_name: Managed virtual network name. Required. :type managed_virtual_network_name: str :param managed_virtual_network: Managed Virtual Network resource definition. Required. - :type managed_virtual_network: IO + :type managed_virtual_network: IO[bytes] :param if_match: ETag of the managed Virtual Network entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. @@ -367,7 +360,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedVirtualNetworkResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource :raises ~azure.core.exceptions.HttpResponseError: @@ -379,7 +371,7 @@ def create_or_update( resource_group_name: str, factory_name: str, managed_virtual_network_name: str, - managed_virtual_network: Union[_models.ManagedVirtualNetworkResource, IO], + managed_virtual_network: Union[_models.ManagedVirtualNetworkResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.ManagedVirtualNetworkResource: @@ -392,17 +384,13 @@ def create_or_update( :param managed_virtual_network_name: Managed virtual network name. Required. :type managed_virtual_network_name: str :param managed_virtual_network: Managed Virtual Network resource definition. Is either a - ManagedVirtualNetworkResource type or a IO type. Required. + ManagedVirtualNetworkResource type or a IO[bytes] type. Required. :type managed_virtual_network: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource or - IO + IO[bytes] :param if_match: ETag of the managed Virtual Network entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedVirtualNetworkResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource :raises ~azure.core.exceptions.HttpResponseError: @@ -430,7 +418,7 @@ def create_or_update( else: _json = self._serialize.body(managed_virtual_network, "ManagedVirtualNetworkResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, managed_virtual_network_name=managed_virtual_network_name, @@ -440,16 +428,15 @@ def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -461,13 +448,9 @@ def create_or_update( deserialized = self._deserialize("ManagedVirtualNetworkResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}" - } + return deserialized # type: ignore @distributed_trace def get( @@ -490,7 +473,6 @@ def get( get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: ManagedVirtualNetworkResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.ManagedVirtualNetworkResource :raises ~azure.core.exceptions.HttpResponseError: @@ -509,23 +491,22 @@ def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, managed_virtual_network_name=managed_virtual_network_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -537,10 +518,6 @@ def get( deserialized = self._deserialize("ManagedVirtualNetworkResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/managedVirtualNetworks/{managedVirtualNetworkName}" - } + return deserialized # type: ignore 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 b4a19caa42d1..994dffaf527a 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -78,7 +78,6 @@ def __init__(self, *args, **kwargs): def list(self, **kwargs: Any) -> Iterable["_models.Operation"]: """Lists the available Azure Data Factory API operations. - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either Operation or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.Operation] :raises ~azure.core.exceptions.HttpResponseError: @@ -100,14 +99,13 @@ def list(self, **kwargs: Any) -> Iterable["_models.Operation"]: def prepare_request(next_link=None): if not next_link: - request = build_list_request( + _request = build_list_request( api_version=api_version, - template_url=self.list.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -119,13 +117,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("OperationListResponse", pipeline_response) @@ -135,11 +133,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -150,5 +148,3 @@ def get_next(next_link=None): return pipeline_response return ItemPaged(get_next, extract_data) - - list.metadata = {"url": "/providers/Microsoft.DataFactory/operations"} 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 32f31dd80373..5b6b8e885440 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -208,7 +208,6 @@ def query_by_factory( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PipelineRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -219,7 +218,7 @@ def query_by_factory( self, resource_group_name: str, factory_name: str, - filter_parameters: IO, + filter_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -231,11 +230,10 @@ def query_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param filter_parameters: Parameters to filter the pipeline run. Required. - :type filter_parameters: IO + :type filter_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PipelineRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -246,7 +244,7 @@ def query_by_factory( self, resource_group_name: str, factory_name: str, - filter_parameters: Union[_models.RunFilterParameters, IO], + filter_parameters: Union[_models.RunFilterParameters, IO[bytes]], **kwargs: Any ) -> _models.PipelineRunsQueryResponse: """Query pipeline runs in the factory based on input filter conditions. @@ -256,12 +254,8 @@ def query_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param filter_parameters: Parameters to filter the pipeline run. Is either a - RunFilterParameters type or a IO type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + RunFilterParameters type or a IO[bytes] type. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO[bytes] :return: PipelineRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -289,7 +283,7 @@ def query_by_factory( else: _json = self._serialize.body(filter_parameters, "RunFilterParameters") - request = build_query_by_factory_request( + _request = build_query_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -297,16 +291,15 @@ def query_by_factory( content_type=content_type, json=_json, content=_content, - template_url=self.query_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -318,13 +311,9 @@ def query_by_factory( deserialized = self._deserialize("PipelineRunsQueryResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - query_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryPipelineRuns" - } + return deserialized # type: ignore @distributed_trace def get(self, resource_group_name: str, factory_name: str, run_id: str, **kwargs: Any) -> _models.PipelineRun: @@ -336,7 +325,6 @@ def get(self, resource_group_name: str, factory_name: str, run_id: str, **kwargs :type factory_name: str :param run_id: The pipeline run identifier. Required. :type run_id: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PipelineRun or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineRun :raises ~azure.core.exceptions.HttpResponseError: @@ -355,22 +343,21 @@ def get(self, resource_group_name: str, factory_name: str, run_id: str, **kwargs 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, run_id=run_id, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -382,13 +369,9 @@ def get(self, resource_group_name: str, factory_name: str, run_id: str, **kwargs deserialized = self._deserialize("PipelineRun", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}" - } + return deserialized # type: ignore @distributed_trace def cancel( # pylint: disable=inconsistent-return-statements @@ -410,7 +393,6 @@ def cancel( # pylint: disable=inconsistent-return-statements :param is_recursive: If true, cancel all the Child pipelines that are triggered by the current pipeline. Default value is None. :type is_recursive: bool - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -429,23 +411,22 @@ def cancel( # pylint: disable=inconsistent-return-statements 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( + _request = build_cancel_request( resource_group_name=resource_group_name, factory_name=factory_name, run_id=run_id, subscription_id=self._config.subscription_id, is_recursive=is_recursive, api_version=api_version, - template_url=self.cancel.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -455,8 +436,4 @@ def cancel( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - cancel.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/cancel" - } + return cls(pipeline_response, None, {}) # type: ignore 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 908515d24732..f2497b491774 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -345,7 +345,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either PipelineResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.PipelineResource] :raises ~azure.core.exceptions.HttpResponseError: @@ -367,17 +366,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -389,13 +387,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("PipelineListResponse", pipeline_response) @@ -405,11 +403,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -421,10 +419,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines" - } - @overload def create_or_update( self, @@ -453,7 +447,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PipelineResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineResource :raises ~azure.core.exceptions.HttpResponseError: @@ -465,7 +458,7 @@ def create_or_update( resource_group_name: str, factory_name: str, pipeline_name: str, - pipeline: IO, + pipeline: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -480,14 +473,13 @@ def create_or_update( :param pipeline_name: The pipeline name. Required. :type pipeline_name: str :param pipeline: Pipeline resource definition. Required. - :type pipeline: IO + :type pipeline: IO[bytes] :param if_match: ETag of the pipeline entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PipelineResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineResource :raises ~azure.core.exceptions.HttpResponseError: @@ -499,7 +491,7 @@ def create_or_update( resource_group_name: str, factory_name: str, pipeline_name: str, - pipeline: Union[_models.PipelineResource, IO], + pipeline: Union[_models.PipelineResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.PipelineResource: @@ -511,16 +503,12 @@ def create_or_update( :type factory_name: str :param pipeline_name: The pipeline name. Required. :type pipeline_name: str - :param pipeline: Pipeline resource definition. Is either a PipelineResource type or a IO type. - Required. - :type pipeline: ~azure.mgmt.datafactory.models.PipelineResource or IO + :param pipeline: Pipeline resource definition. Is either a PipelineResource type or a IO[bytes] + type. Required. + :type pipeline: ~azure.mgmt.datafactory.models.PipelineResource or IO[bytes] :param if_match: ETag of the pipeline entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PipelineResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineResource :raises ~azure.core.exceptions.HttpResponseError: @@ -548,7 +536,7 @@ def create_or_update( else: _json = self._serialize.body(pipeline, "PipelineResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, pipeline_name=pipeline_name, @@ -558,16 +546,15 @@ def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -579,13 +566,9 @@ def create_or_update( deserialized = self._deserialize("PipelineResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}" - } + return deserialized # type: ignore @distributed_trace def get( @@ -608,7 +591,6 @@ def get( ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PipelineResource or None or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PipelineResource or None :raises ~azure.core.exceptions.HttpResponseError: @@ -627,23 +609,22 @@ def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, pipeline_name=pipeline_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -657,13 +638,9 @@ def get( deserialized = self._deserialize("PipelineResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}" - } + return deserialized # type: ignore @distributed_trace def delete( # pylint: disable=inconsistent-return-statements @@ -677,7 +654,6 @@ def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param pipeline_name: The pipeline name. Required. :type pipeline_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -696,22 +672,21 @@ def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, pipeline_name=pipeline_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -721,11 +696,7 @@ def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}" - } + return cls(pipeline_response, None, {}) # type: ignore @overload def create_run( @@ -770,7 +741,6 @@ def create_run( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: CreateRunResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -786,7 +756,7 @@ def create_run( is_recovery: Optional[bool] = None, start_activity_name: Optional[str] = None, start_from_failure: Optional[bool] = None, - parameters: Optional[IO] = None, + parameters: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any @@ -815,11 +785,10 @@ def create_run( :type start_from_failure: bool :param parameters: Parameters of the pipeline run. These parameters will be used only if the runId is not specified. Default value is None. - :type parameters: IO + :type parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: CreateRunResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -835,7 +804,7 @@ def create_run( is_recovery: Optional[bool] = None, start_activity_name: Optional[str] = None, start_from_failure: Optional[bool] = None, - parameters: Optional[Union[Dict[str, JSON], IO]] = None, + parameters: Optional[Union[Dict[str, JSON], IO[bytes]]] = None, **kwargs: Any ) -> _models.CreateRunResponse: """Creates a run of a pipeline. @@ -861,12 +830,9 @@ def create_run( is None. :type start_from_failure: bool :param parameters: Parameters of the pipeline run. These parameters will be used only if the - runId is not specified. Is either a {str: JSON} type or a IO type. Default value is None. - :type parameters: dict[str, JSON] or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + runId is not specified. Is either a {str: JSON} type or a IO[bytes] type. Default value is + None. + :type parameters: dict[str, JSON] or IO[bytes] :return: CreateRunResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.CreateRunResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -897,7 +863,7 @@ def create_run( else: _json = None - request = build_create_run_request( + _request = build_create_run_request( resource_group_name=resource_group_name, factory_name=factory_name, pipeline_name=pipeline_name, @@ -910,16 +876,15 @@ def create_run( content_type=content_type, json=_json, content=_content, - template_url=self.create_run.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -931,10 +896,6 @@ def create_run( deserialized = self._deserialize("CreateRunResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - create_run.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}/createRun" - } + return deserialized # type: ignore 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 5f0ae6b7412d..7b18caff309c 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -105,7 +105,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either PrivateEndpointConnectionResource or the result of cls(response) :rtype: @@ -129,17 +128,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -151,13 +149,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("PrivateEndpointConnectionListResponse", pipeline_response) @@ -167,11 +165,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -182,7 +180,3 @@ def get_next(next_link=None): return pipeline_response return ItemPaged(get_next, extract_data) - - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndPointConnections" - } 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 258ae88e6706..35e8f8db2db3 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -236,7 +236,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PrivateEndpointConnectionResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource :raises ~azure.core.exceptions.HttpResponseError: @@ -248,7 +247,7 @@ def create_or_update( resource_group_name: str, factory_name: str, private_endpoint_connection_name: str, - private_endpoint_wrapper: IO, + private_endpoint_wrapper: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -263,7 +262,7 @@ def create_or_update( :param private_endpoint_connection_name: The private endpoint connection name. Required. :type private_endpoint_connection_name: str :param private_endpoint_wrapper: Required. - :type private_endpoint_wrapper: IO + :type private_endpoint_wrapper: IO[bytes] :param if_match: ETag of the private endpoint connection entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. @@ -271,7 +270,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PrivateEndpointConnectionResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource :raises ~azure.core.exceptions.HttpResponseError: @@ -283,7 +281,7 @@ def create_or_update( resource_group_name: str, factory_name: str, private_endpoint_connection_name: str, - private_endpoint_wrapper: Union[_models.PrivateLinkConnectionApprovalRequestResource, IO], + private_endpoint_wrapper: Union[_models.PrivateLinkConnectionApprovalRequestResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.PrivateEndpointConnectionResource: @@ -296,17 +294,13 @@ def create_or_update( :param private_endpoint_connection_name: The private endpoint connection name. Required. :type private_endpoint_connection_name: str :param private_endpoint_wrapper: Is either a PrivateLinkConnectionApprovalRequestResource type - or a IO type. Required. + or a IO[bytes] type. Required. :type private_endpoint_wrapper: - ~azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequestResource or IO + ~azure.mgmt.datafactory.models.PrivateLinkConnectionApprovalRequestResource or IO[bytes] :param if_match: ETag of the private endpoint connection entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PrivateEndpointConnectionResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource :raises ~azure.core.exceptions.HttpResponseError: @@ -334,7 +328,7 @@ def create_or_update( else: _json = self._serialize.body(private_endpoint_wrapper, "PrivateLinkConnectionApprovalRequestResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, private_endpoint_connection_name=private_endpoint_connection_name, @@ -344,16 +338,15 @@ def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -365,13 +358,9 @@ def create_or_update( deserialized = self._deserialize("PrivateEndpointConnectionResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}" - } + return deserialized # type: ignore @distributed_trace def get( @@ -394,7 +383,6 @@ def get( for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PrivateEndpointConnectionResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PrivateEndpointConnectionResource :raises ~azure.core.exceptions.HttpResponseError: @@ -413,23 +401,22 @@ def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, private_endpoint_connection_name=private_endpoint_connection_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -441,13 +428,9 @@ def get( deserialized = self._deserialize("PrivateEndpointConnectionResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}" - } + return deserialized # type: ignore @distributed_trace def delete( # pylint: disable=inconsistent-return-statements @@ -461,7 +444,6 @@ def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param private_endpoint_connection_name: The private endpoint connection name. Required. :type private_endpoint_connection_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -480,22 +462,21 @@ def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, private_endpoint_connection_name=private_endpoint_connection_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -505,8 +486,4 @@ def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateEndpointConnections/{privateEndpointConnectionName}" - } + return cls(pipeline_response, None, {}) # type: ignore 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 3241fc89e3a6..5953eb3ff583 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -99,7 +99,6 @@ def get(self, resource_group_name: str, factory_name: str, **kwargs: Any) -> _mo :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: PrivateLinkResourcesWrapper or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.PrivateLinkResourcesWrapper :raises ~azure.core.exceptions.HttpResponseError: @@ -118,21 +117,20 @@ def get(self, resource_group_name: str, factory_name: str, **kwargs: Any) -> _mo 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -144,10 +142,6 @@ def get(self, resource_group_name: str, factory_name: str, **kwargs: Any) -> _mo deserialized = self._deserialize("PrivateLinkResourcesWrapper", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/privateLinkResources" - } + return deserialized # type: ignore 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 b90e94cd0c05..bd0dd1eae31a 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -209,7 +209,6 @@ def rerun( # pylint: disable=inconsistent-return-statements :type trigger_name: str :param run_id: The pipeline run identifier. Required. :type run_id: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -228,23 +227,22 @@ def rerun( # pylint: disable=inconsistent-return-statements 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( + _request = build_rerun_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, run_id=run_id, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.rerun.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -254,11 +252,7 @@ def rerun( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - rerun.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/rerun" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def cancel( # pylint: disable=inconsistent-return-statements @@ -274,7 +268,6 @@ def cancel( # pylint: disable=inconsistent-return-statements :type trigger_name: str :param run_id: The pipeline run identifier. Required. :type run_id: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -293,23 +286,22 @@ def cancel( # pylint: disable=inconsistent-return-statements 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( + _request = build_cancel_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, run_id=run_id, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.cancel.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -319,11 +311,7 @@ def cancel( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - cancel.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/triggerRuns/{runId}/cancel" - } + return cls(pipeline_response, None, {}) # type: ignore @overload def query_by_factory( @@ -346,7 +334,6 @@ def query_by_factory( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -357,7 +344,7 @@ def query_by_factory( self, resource_group_name: str, factory_name: str, - filter_parameters: IO, + filter_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -369,11 +356,10 @@ def query_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param filter_parameters: Parameters to filter the pipeline run. Required. - :type filter_parameters: IO + :type filter_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -384,7 +370,7 @@ def query_by_factory( self, resource_group_name: str, factory_name: str, - filter_parameters: Union[_models.RunFilterParameters, IO], + filter_parameters: Union[_models.RunFilterParameters, IO[bytes]], **kwargs: Any ) -> _models.TriggerRunsQueryResponse: """Query trigger runs. @@ -394,12 +380,8 @@ def query_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param filter_parameters: Parameters to filter the pipeline run. Is either a - RunFilterParameters type or a IO type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + RunFilterParameters type or a IO[bytes] type. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.RunFilterParameters or IO[bytes] :return: TriggerRunsQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerRunsQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -427,7 +409,7 @@ def query_by_factory( else: _json = self._serialize.body(filter_parameters, "RunFilterParameters") - request = build_query_by_factory_request( + _request = build_query_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -435,16 +417,15 @@ def query_by_factory( content_type=content_type, json=_json, content=_content, - template_url=self.query_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -456,10 +437,6 @@ def query_by_factory( deserialized = self._deserialize("TriggerRunsQueryResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - query_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryTriggerRuns" - } + return deserialized # type: ignore 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 4119898fcf62..760c8579644c 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 @@ -1,4 +1,4 @@ -# pylint: disable=too-many-lines +# pylint: disable=too-many-lines,too-many-statements # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -333,7 +333,7 @@ def build_subscribe_to_events_request( return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) -def build_get_event_subscription_status_request( +def build_get_event_subscription_status_request( # pylint: disable=name-too-long resource_group_name: str, factory_name: str, trigger_name: str, subscription_id: str, **kwargs: Any ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) @@ -554,7 +554,6 @@ def list_by_factory( :type resource_group_name: str :param factory_name: The factory name. Required. :type factory_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either TriggerResource or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.datafactory.models.TriggerResource] :raises ~azure.core.exceptions.HttpResponseError: @@ -576,17 +575,16 @@ def list_by_factory( def prepare_request(next_link=None): if not next_link: - request = build_list_by_factory_request( + _request = build_list_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.list_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) else: # make call to next link with the client's api-version @@ -598,13 +596,13 @@ def prepare_request(next_link=None): } ) _next_request_params["api-version"] = self._config.api_version - request = HttpRequest( + _request = HttpRequest( "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) - request.method = "GET" - return request + _request = _convert_request(_request) + _request.url = self._client.format_url(_request.url) + _request.method = "GET" + return _request def extract_data(pipeline_response): deserialized = self._deserialize("TriggerListResponse", pipeline_response) @@ -614,11 +612,11 @@ def extract_data(pipeline_response): return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): - request = prepare_request(next_link) + _request = prepare_request(next_link) _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -630,10 +628,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - list_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers" - } - @overload def query_by_factory( self, @@ -655,7 +649,6 @@ def query_by_factory( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -666,7 +659,7 @@ def query_by_factory( self, resource_group_name: str, factory_name: str, - filter_parameters: IO, + filter_parameters: IO[bytes], *, content_type: str = "application/json", **kwargs: Any @@ -678,11 +671,10 @@ def query_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param filter_parameters: Parameters to filter the triggers. Required. - :type filter_parameters: IO + :type filter_parameters: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -693,7 +685,7 @@ def query_by_factory( self, resource_group_name: str, factory_name: str, - filter_parameters: Union[_models.TriggerFilterParameters, IO], + filter_parameters: Union[_models.TriggerFilterParameters, IO[bytes]], **kwargs: Any ) -> _models.TriggerQueryResponse: """Query triggers. @@ -703,12 +695,8 @@ def query_by_factory( :param factory_name: The factory name. Required. :type factory_name: str :param filter_parameters: Parameters to filter the triggers. Is either a - TriggerFilterParameters type or a IO type. Required. - :type filter_parameters: ~azure.mgmt.datafactory.models.TriggerFilterParameters or IO - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response + TriggerFilterParameters type or a IO[bytes] type. Required. + :type filter_parameters: ~azure.mgmt.datafactory.models.TriggerFilterParameters or IO[bytes] :return: TriggerQueryResponse or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerQueryResponse :raises ~azure.core.exceptions.HttpResponseError: @@ -736,7 +724,7 @@ def query_by_factory( else: _json = self._serialize.body(filter_parameters, "TriggerFilterParameters") - request = build_query_by_factory_request( + _request = build_query_by_factory_request( resource_group_name=resource_group_name, factory_name=factory_name, subscription_id=self._config.subscription_id, @@ -744,16 +732,15 @@ def query_by_factory( content_type=content_type, json=_json, content=_content, - template_url=self.query_by_factory.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -765,13 +752,9 @@ def query_by_factory( deserialized = self._deserialize("TriggerQueryResponse", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - query_by_factory.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/querytriggers" - } + return deserialized # type: ignore @overload def create_or_update( @@ -801,7 +784,6 @@ def create_or_update( :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerResource :raises ~azure.core.exceptions.HttpResponseError: @@ -813,7 +795,7 @@ def create_or_update( resource_group_name: str, factory_name: str, trigger_name: str, - trigger: IO, + trigger: IO[bytes], if_match: Optional[str] = None, *, content_type: str = "application/json", @@ -828,14 +810,13 @@ def create_or_update( :param trigger_name: The trigger name. Required. :type trigger_name: str :param trigger: Trigger resource definition. Required. - :type trigger: IO + :type trigger: IO[bytes] :param if_match: ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerResource :raises ~azure.core.exceptions.HttpResponseError: @@ -847,7 +828,7 @@ def create_or_update( resource_group_name: str, factory_name: str, trigger_name: str, - trigger: Union[_models.TriggerResource, IO], + trigger: Union[_models.TriggerResource, IO[bytes]], if_match: Optional[str] = None, **kwargs: Any ) -> _models.TriggerResource: @@ -859,16 +840,12 @@ def create_or_update( :type factory_name: str :param trigger_name: The trigger name. Required. :type trigger_name: str - :param trigger: Trigger resource definition. Is either a TriggerResource type or a IO type. - Required. - :type trigger: ~azure.mgmt.datafactory.models.TriggerResource or IO + :param trigger: Trigger resource definition. Is either a TriggerResource type or a IO[bytes] + type. Required. + :type trigger: ~azure.mgmt.datafactory.models.TriggerResource or IO[bytes] :param if_match: ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. Default value is None. :type if_match: str - :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. - Default value is None. - :paramtype content_type: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerResource or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerResource :raises ~azure.core.exceptions.HttpResponseError: @@ -896,7 +873,7 @@ def create_or_update( else: _json = self._serialize.body(trigger, "TriggerResource") - request = build_create_or_update_request( + _request = build_create_or_update_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, @@ -906,16 +883,15 @@ def create_or_update( content_type=content_type, json=_json, content=_content, - template_url=self.create_or_update.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -927,13 +903,9 @@ def create_or_update( deserialized = self._deserialize("TriggerResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - create_or_update.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}" - } + return deserialized # type: ignore @distributed_trace def get( @@ -956,7 +928,6 @@ def get( matches the existing entity tag, or if * was provided, then no content will be returned. Default value is None. :type if_none_match: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerResource or None or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerResource or None :raises ~azure.core.exceptions.HttpResponseError: @@ -975,23 +946,22 @@ def get( 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( + _request = build_get_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, subscription_id=self._config.subscription_id, if_none_match=if_none_match, api_version=api_version, - template_url=self.get.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1005,13 +975,9 @@ def get( deserialized = self._deserialize("TriggerResource", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - get.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}" - } + return deserialized # type: ignore @distributed_trace def delete( # pylint: disable=inconsistent-return-statements @@ -1025,7 +991,6 @@ def delete( # pylint: disable=inconsistent-return-statements :type factory_name: str :param trigger_name: The trigger name. Required. :type trigger_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None :raises ~azure.core.exceptions.HttpResponseError: @@ -1044,22 +1009,21 @@ def delete( # pylint: disable=inconsistent-return-statements 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( + _request = build_delete_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.delete.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1069,11 +1033,7 @@ def delete( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - delete.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}" - } + return cls(pipeline_response, None, {}) # type: ignore def _subscribe_to_events_initial( self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any @@ -1092,22 +1052,21 @@ def _subscribe_to_events_initial( 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( + _request = build_subscribe_to_events_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self._subscribe_to_events_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1121,13 +1080,9 @@ def _subscribe_to_events_initial( deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized + return cls(pipeline_response, deserialized, {}) # type: ignore - _subscribe_to_events_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/subscribeToEvents" - } + return deserialized # type: ignore @distributed_trace def begin_subscribe_to_events( @@ -1141,14 +1096,6 @@ def begin_subscribe_to_events( :type factory_name: str :param trigger_name: The trigger name. Required. :type trigger_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this - operation to not poll, or pass in your own initialized polling object for a personal polling - strategy. - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of LROPoller that returns either TriggerSubscriptionOperationStatus or the result of cls(response) :rtype: @@ -1179,7 +1126,7 @@ def begin_subscribe_to_events( def get_long_running_output(pipeline_response): deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: @@ -1189,17 +1136,15 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller.from_continuation_token( + return LROPoller[_models.TriggerSubscriptionOperationStatus].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_subscribe_to_events.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/subscribeToEvents" - } + return LROPoller[_models.TriggerSubscriptionOperationStatus]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) @distributed_trace def get_event_subscription_status( @@ -1213,7 +1158,6 @@ def get_event_subscription_status( :type factory_name: str :param trigger_name: The trigger name. Required. :type trigger_name: str - :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerSubscriptionOperationStatus or the result of cls(response) :rtype: ~azure.mgmt.datafactory.models.TriggerSubscriptionOperationStatus :raises ~azure.core.exceptions.HttpResponseError: @@ -1232,22 +1176,21 @@ def get_event_subscription_status( 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( + _request = build_get_event_subscription_status_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self.get_event_subscription_status.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1259,13 +1202,9 @@ def get_event_subscription_status( deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - get_event_subscription_status.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/getEventSubscriptionStatus" - } + return deserialized # type: ignore def _unsubscribe_from_events_initial( self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any @@ -1284,22 +1223,21 @@ def _unsubscribe_from_events_initial( 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( + _request = build_unsubscribe_from_events_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self._unsubscribe_from_events_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1313,13 +1251,9 @@ def _unsubscribe_from_events_initial( deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore - return deserialized - - _unsubscribe_from_events_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents" - } + return deserialized # type: ignore @distributed_trace def begin_unsubscribe_from_events( @@ -1333,14 +1267,6 @@ def begin_unsubscribe_from_events( :type factory_name: str :param trigger_name: The trigger name. Required. :type trigger_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this - operation to not poll, or pass in your own initialized polling object for a personal polling - strategy. - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of LROPoller that returns either TriggerSubscriptionOperationStatus or the result of cls(response) :rtype: @@ -1371,7 +1297,7 @@ def begin_unsubscribe_from_events( def get_long_running_output(pipeline_response): deserialized = self._deserialize("TriggerSubscriptionOperationStatus", pipeline_response) if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized if polling is True: @@ -1381,17 +1307,15 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller.from_continuation_token( + return LROPoller[_models.TriggerSubscriptionOperationStatus].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_unsubscribe_from_events.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/unsubscribeFromEvents" - } + return LROPoller[_models.TriggerSubscriptionOperationStatus]( + self._client, raw_result, get_long_running_output, polling_method # type: ignore + ) def _start_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any @@ -1410,22 +1334,21 @@ def _start_initial( # pylint: disable=inconsistent-return-statements 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( + _request = build_start_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self._start_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1435,11 +1358,7 @@ def _start_initial( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - _start_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/start" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def begin_start( @@ -1453,14 +1372,6 @@ def begin_start( :type factory_name: str :param trigger_name: The trigger name. Required. :type trigger_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this - operation to not poll, or pass in your own initialized polling object for a personal polling - strategy. - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -1488,7 +1399,7 @@ def begin_start( def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) @@ -1497,17 +1408,13 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return LROPoller.from_continuation_token( + return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_start.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/start" - } + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore def _stop_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, factory_name: str, trigger_name: str, **kwargs: Any @@ -1526,22 +1433,21 @@ def _stop_initial( # pylint: disable=inconsistent-return-statements 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( + _request = build_stop_request( resource_group_name=resource_group_name, factory_name=factory_name, trigger_name=trigger_name, subscription_id=self._config.subscription_id, api_version=api_version, - template_url=self._stop_initial.metadata["url"], headers=_headers, params=_params, ) - request = _convert_request(request) - request.url = self._client.format_url(request.url) + _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=_stream, **kwargs + _request, stream=_stream, **kwargs ) response = pipeline_response.http_response @@ -1551,11 +1457,7 @@ def _stop_initial( # pylint: disable=inconsistent-return-statements raise HttpResponseError(response=response, error_format=ARMErrorFormat) if cls: - return cls(pipeline_response, None, {}) - - _stop_initial.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/stop" - } + return cls(pipeline_response, None, {}) # type: ignore @distributed_trace def begin_stop( @@ -1569,14 +1471,6 @@ def begin_stop( :type factory_name: str :param trigger_name: The trigger name. Required. :type trigger_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this - operation to not poll, or pass in your own initialized polling object for a personal polling - strategy. - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no - Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -1604,7 +1498,7 @@ def begin_stop( def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, {}) # type: ignore if polling is True: polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs)) @@ -1613,14 +1507,10 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- else: polling_method = polling if cont_token: - return LROPoller.from_continuation_token( + return LROPoller[None].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) # type: ignore - - begin_stop.metadata = { - "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers/{triggerName}/stop" - } + return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/activity_runs_query_by_pipeline_run.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/activity_runs_query_by_pipeline_run.py index 03097f755512..f7210d13bc49 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/activity_runs_query_by_pipeline_run.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/activity_runs_query_by_pipeline_run.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/approve_reject_private_endpoint_connection.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/approve_reject_private_endpoint_connection.py index b88a741cd4d4..0c5e7351c792 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/approve_reject_private_endpoint_connection.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/approve_reject_private_endpoint_connection.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_create.py index fe3bd994602a..5a95fbdddf49 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_create.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_delete.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_delete.py index 033f962e958f..cb6114be82a4 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_delete.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_get.py index 7b8af1650b25..f21a9f5ab933 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_get.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_list_by_factory.py index aec672773151..b8d505054711 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_list_by_factory.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_start.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_start.py index 6f37e40fb386..0674774a7cf9 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_start.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_start.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_status.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_status.py index dd5e52093f6c..2d26602d4a28 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_status.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_status.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_stop.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_stop.py index 142c11646737..dfb70337f17c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_stop.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_stop.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_update.py index 1baa44702d8a..1e6c4fb73591 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/change_data_capture_update.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_create.py index 4ede160fa0df..549cfaf78c76 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_create.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 2f11b533cd77..bb8020edd271 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_delete.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_get.py index 96f905ccf566..1c1ceead77ab 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_get.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_list_by_factory.py index 25cea1998fe4..b07fe5450af6 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/credentials_list_by_factory.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_add_data_flow.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_add_data_flow.py index aff9d148d350..9666302164e4 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_add_data_flow.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_add_data_flow.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_create.py index 04117e1b0b48..5a4b016fe114 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_create.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 0c088894f52e..5993ff988b43 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 @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_execute_command.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_execute_command.py index 5be9f9c051a9..de450293e5cd 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_execute_command.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_execute_command.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_query_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_query_by_factory.py index 60b802c78a4f..d42cb2f6c8ea 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_query_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flow_debug_session_query_by_factory.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_create.py index 47ddb42275ac..7b1066d40a93 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_create.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 ff38280b1ae1..e7a0d1004f1e 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 @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_get.py index 0493e49c94c9..d612a6066ad6 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_get.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_list_by_factory.py index c2588cc92b80..3f8fef1de9a1 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_list_by_factory.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_update.py index ceb282db8a90..a01884eaf599 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/data_flows_update.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_create.py index 59fdb3cce70b..b0b8d14dc287 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_create.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 1d9057087069..61e1d6a6cfad 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_delete.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_get.py index ad4bfffcfbcd..c092a2206765 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_get.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_list_by_factory.py index ba4df198a9f0..a30515378588 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_list_by_factory.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_update.py index 80843dfd21df..0a1e9ff1b746 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/datasets_update.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 d4d7374994aa..343bf2253aeb 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 @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value.py index 84c5f7b604b2..2c82e63bca10 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value_by_factory.py index f4a5add8531c..f3482176d35a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_get_feature_value_by_factory.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_query_feature_values_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_query_feature_values_by_factory.py index 3da1808bf900..7b455f13c50d 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_query_feature_values_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/exposure_control_query_feature_values_by_factory.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_configure_factory_repo.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_configure_factory_repo.py index 958892de2fcd..662e787a01d0 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_configure_factory_repo.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_configure_factory_repo.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_create_or_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_create_or_update.py index b22f9510e0f4..5aac01800329 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_create_or_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_create_or_update.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 8491113ab999..a00893d122a4 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_delete.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get.py index 9f8b110fc501..c3d24806e4fe 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_data_plane_access.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_data_plane_access.py index 34565901b966..14650f48bf98 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_data_plane_access.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_data_plane_access.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_git_hub_access_token.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_git_hub_access_token.py index a00e8d632c37..ee93ad533db9 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_git_hub_access_token.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_get_git_hub_access_token.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list.py index 2278c8617fb8..eea9551b7ce0 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list_by_resource_group.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list_by_resource_group.py index 45407260b60b..6b93cb16d9a6 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list_by_resource_group.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_list_by_resource_group.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_update.py index 13c0fbc3e658..3aa6f283e190 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/factories_update.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_endpoint_connection.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_endpoint_connection.py index 7dab3ce49803..0d534c806ac3 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_endpoint_connection.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_endpoint_connection.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_link_resources.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_link_resources.py index b26c2cb41e82..ac771858709a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_link_resources.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/get_private_link_resources.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_create.py index 03b1e0a681b1..bb23777a1d7b 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_create.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 5c01f1bbf799..8ed4711888be 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 @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_get.py index c5648d72d05d..2be23fe2c8e3 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_get.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_list_by_factory.py index b712fea6f5a8..1764765472f6 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_list_by_factory.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_update.py index a083a1a97837..ebecf6c2f69f 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/global_parameters_update.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 8d14988db7ce..97f93007ed32 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 @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get.py index 025c3d5bd06d..f44a31e2feac 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get_ip_address.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get_ip_address.py index 8a8be120ef36..0ebd059af7d4 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get_ip_address.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_get_ip_address.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_update.py index d89557bfba6d..71e8b2dfa9e1 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_nodes_update.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_get.py index 9332431a6238..3560bba79c94 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_get.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_refresh.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_refresh.py index ef9494f5b850..de2c1fee1d25 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_refresh.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtime_object_metadata_refresh.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create.py index f81b9cce6bd6..cc095f5daa0e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create_linked_integration_runtime.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create_linked_integration_runtime.py index 2a04f18b83f2..636ae714e35c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create_linked_integration_runtime.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_create_linked_integration_runtime.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 5c97b05c0290..cf258d062828 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 @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get.py index b8cfb2689acc..8554571833ae 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_connection_info.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_connection_info.py index 80b0bbc5f682..30c3a55caad0 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_connection_info.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_connection_info.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_monitoring_data.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_monitoring_data.py index 162c40fb7e07..44083babd683 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_monitoring_data.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_monitoring_data.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_status.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_status.py index 3c9c6e425b20..bdc1f78dc495 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_status.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_get_status.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_auth_keys.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_auth_keys.py index 77484c392082..dc74bd58101d 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_auth_keys.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_auth_keys.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_by_factory.py index f32171dd55ef..eb384097707e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_by_factory.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_outbound_network_dependencies_endpoints.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_outbound_network_dependencies_endpoints.py index 5aec3d9a1ab4..49a00a314cfe 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_outbound_network_dependencies_endpoints.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_list_outbound_network_dependencies_endpoints.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_regenerate_auth_key.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_regenerate_auth_key.py index 30dfc7394c42..59dc78a72d7f 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_regenerate_auth_key.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_regenerate_auth_key.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 3c4534541edc..2b73df707706 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 @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_start.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_start.py index 88b707f764e3..426bf8ac11d9 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_start.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_start.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 7bd1fa2c295a..9aed76b2f9b4 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 @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 2c1760ccf429..5b23b2b3fc54 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 @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_update.py index 9ae649444824..5a6e753895c7 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/integration_runtimes_update.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 eb6c687df761..0328bd580ae0 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 @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_create.py index 9f88a1e37289..54721852357a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_create.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 82be70cc1315..12714be85b24 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 @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_get.py index 1a3a98a85c9f..71fbbaf49d77 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_get.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_list_by_factory.py index 7494404bdc52..cb3b9411ae37 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_list_by_factory.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_update.py index c30a65ac3a57..f3e42ef14904 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/linked_services_update.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_create.py index b13df906e445..78819449f547 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_create.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 eeafb5400b10..c377f254a06f 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 @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_get.py index 17ea1af54f3f..ce814031ba1a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_get.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_list_by_factory.py index 988b5ed2caae..e6769f33849f 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_private_endpoints_list_by_factory.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_create.py index 00e9f3cf546f..4a51cc6f510e 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_create.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_get.py index 546cb6407dbf..be30575a107a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_get.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_list_by_factory.py index eea4b830542c..085ed6bfb217 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/managed_virtual_networks_list_by_factory.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/operations_list.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/operations_list.py index 4a00681349e6..e1b8ee859d63 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/operations_list.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/operations_list.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 7b61ffcc634c..cf82f7848363 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 @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_get.py index 187b637511a1..157c748d92c5 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_get.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_query_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_query_by_factory.py index 183ad21d3667..301e27780897 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_query_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipeline_runs_query_by_factory.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create.py index 0e6679ec10c1..efe6b9116844 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create_run.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create_run.py index 99c7249b4d43..10caa96398d9 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create_run.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_create_run.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 a3930e4cdc00..f3d77242cf6c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_delete.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_get.py index 5fe05ed4b59b..168b51484623 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_get.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_list_by_factory.py index f4171ee7ed4f..031fc9368edc 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_list_by_factory.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_update.py index 3a1168540d25..39c504b227bb 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/pipelines_update.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/private_end_point_connections_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/private_end_point_connections_list_by_factory.py index 34b050d9e127..508a0a361c4a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/private_end_point_connections_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/private_end_point_connections_list_by_factory.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 e6397d3adbbe..5804c4bd4a05 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 @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_query_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_query_by_factory.py index cb975c7059c7..564a942c9aa7 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_query_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/trigger_runs_query_by_factory.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 7028af759654..83fa1c573d27 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 @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_create.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_create.py index 9a8c30b77c0a..df21f8434926 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_create.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_create.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 4ee618779ac7..d94151797ad6 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_delete.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_delete.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get.py index 0a161438ffb7..92c75b931015 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get_event_subscription_status.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get_event_subscription_status.py index 14cd6852fc80..ff85c8b51663 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get_event_subscription_status.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_get_event_subscription_status.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_list_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_list_by_factory.py index ffed2138c709..72b926eb7e9a 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_list_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_list_by_factory.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_query_by_factory.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_query_by_factory.py index 04c5ee1b7ec3..9f9ae0dc87e1 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_query_by_factory.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_query_by_factory.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 096366ecd39e..98140efefc23 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_start.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_start.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ 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 98e2d192636f..84f999dba177 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_stop.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_stop.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_subscribe_to_events.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_subscribe_to_events.py index 56be56a39243..65f680fa9c11 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_subscribe_to_events.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_subscribe_to_events.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_unsubscribe_from_events.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_unsubscribe_from_events.py index d36ed9f93de7..1796acfaaf24 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_unsubscribe_from_events.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_unsubscribe_from_events.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """ diff --git a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_update.py b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_update.py index 2a31cfb2aae1..33aeccb309a8 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_update.py +++ b/sdk/datafactory/azure-mgmt-datafactory/generated_samples/triggers_update.py @@ -6,7 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import Any, IO, Union + from azure.identity import DefaultAzureCredential + from azure.mgmt.datafactory import DataFactoryManagementClient """