diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/_meta.json b/sdk/iotoperations/azure-mgmt-iotoperations/_meta.json index 34efceffdcdb..2588385681d5 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/_meta.json +++ b/sdk/iotoperations/azure-mgmt-iotoperations/_meta.json @@ -1,6 +1,6 @@ { - "commit": "7d0134ad6d42786b1ff2d49a3cfb331b336c3099", + "commit": "6f972618cea0df6aa7f681a325efe7ca2a9db9d0", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/iotoperations/IoTOperations.Management", - "@azure-tools/typespec-python": "0.36.0" + "@azure-tools/typespec-python": "0.36.4" } \ No newline at end of file diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/__init__.py b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/__init__.py index 2edfdfad8a76..89cfdaa539ba 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/__init__.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/__init__.py @@ -5,15 +5,21 @@ # Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +# pylint: disable=wrong-import-position -from ._client import IoTOperationsMgmtClient +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from ._patch import * # pylint: disable=unused-wildcard-import + +from ._client import IoTOperationsMgmtClient # type: ignore from ._version import VERSION __version__ = VERSION try: from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import + from ._patch import * except ImportError: _patch_all = [] from ._patch import patch_sdk as _patch_sdk diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_client.py b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_client.py index 26fe43ded2a5..8820242c0134 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_client.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_client.py @@ -22,9 +22,11 @@ BrokerAuthorizationOperations, BrokerListenerOperations, BrokerOperations, + BrokersOperations, DataflowEndpointOperations, DataflowOperations, DataflowProfileOperations, + DataflowsOperations, InstanceOperations, Operations, ) @@ -36,6 +38,10 @@ class IoTOperationsMgmtClient: # pylint: disable=too-many-instance-attributes """Microsoft.IoTOperations Resource Provider management API. + :ivar brokers: BrokersOperations operations + :vartype brokers: azure.mgmt.iotoperations.operations.BrokersOperations + :ivar dataflows: DataflowsOperations operations + :vartype dataflows: azure.mgmt.iotoperations.operations.DataflowsOperations :ivar operations: Operations operations :vartype operations: azure.mgmt.iotoperations.operations.Operations :ivar instance: InstanceOperations operations @@ -63,7 +69,7 @@ class IoTOperationsMgmtClient: # pylint: disable=too-many-instance-attributes :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :keyword api_version: The API version to use for this operation. Default value is - "2024-09-15-preview". Note that overriding this default value may result in unsupported + "2025-01-01-preview". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no @@ -104,6 +110,8 @@ def __init__( self._serialize = Serializer() self._deserialize = Deserializer() self._serialize.client_side_validation = False + self.brokers = BrokersOperations(self._client, self._config, self._serialize, self._deserialize) + self.dataflows = DataflowsOperations(self._client, self._config, self._serialize, self._deserialize) self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) self.instance = InstanceOperations(self._client, self._config, self._serialize, self._deserialize) self.broker = BrokerOperations(self._client, self._config, self._serialize, self._deserialize) diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_configuration.py b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_configuration.py index 7af1d5b1ab71..711862b57d4f 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_configuration.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_configuration.py @@ -30,7 +30,7 @@ class IoTOperationsMgmtClientConfiguration: # pylint: disable=too-many-instance :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :keyword api_version: The API version to use for this operation. Default value is - "2024-09-15-preview". Note that overriding this default value may result in unsupported + "2025-01-01-preview". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -42,7 +42,7 @@ def __init__( base_url: str = "https://management.azure.com", **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2024-09-15-preview") + api_version: str = kwargs.pop("api_version", "2025-01-01-preview") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_model_base.py b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_model_base.py index 9d401b0cf012..e6a2730f9276 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_model_base.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_model_base.py @@ -5,7 +5,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -# pylint: disable=protected-access, arguments-differ, signature-differs, broad-except, too-many-lines +# pylint: disable=protected-access, broad-except import copy import calendar @@ -574,7 +574,7 @@ def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None: def copy(self) -> "Model": return Model(self.__dict__) - def __new__(cls, *args: typing.Any, **kwargs: typing.Any) -> Self: # pylint: disable=unused-argument + def __new__(cls, *args: typing.Any, **kwargs: typing.Any) -> Self: if f"{cls.__module__}.{cls.__qualname__}" not in cls._calculated: # we know the last nine classes in mro are going to be 'Model', '_MyMutableMapping', 'MutableMapping', # 'Mapping', 'Collection', 'Sized', 'Iterable', 'Container' and 'object' @@ -585,8 +585,8 @@ def __new__(cls, *args: typing.Any, **kwargs: typing.Any) -> Self: # pylint: di annotations = { k: v for mro_class in mros - if hasattr(mro_class, "__annotations__") # pylint: disable=no-member - for k, v in mro_class.__annotations__.items() # pylint: disable=no-member + if hasattr(mro_class, "__annotations__") + for k, v in mro_class.__annotations__.items() } for attr, rf in attr_to_rest_field.items(): rf._module = cls.__module__ @@ -601,8 +601,8 @@ def __new__(cls, *args: typing.Any, **kwargs: typing.Any) -> Self: # pylint: di def __init_subclass__(cls, discriminator: typing.Optional[str] = None) -> None: for base in cls.__bases__: - if hasattr(base, "__mapping__"): # pylint: disable=no-member - base.__mapping__[discriminator or cls.__name__] = cls # type: ignore # pylint: disable=no-member + if hasattr(base, "__mapping__"): + base.__mapping__[discriminator or cls.__name__] = cls # type: ignore @classmethod def _get_discriminator(cls, exist_discriminators) -> typing.Optional["_RestField"]: @@ -613,7 +613,7 @@ def _get_discriminator(cls, exist_discriminators) -> typing.Optional["_RestField @classmethod def _deserialize(cls, data, exist_discriminators): - if not hasattr(cls, "__mapping__"): # pylint: disable=no-member + if not hasattr(cls, "__mapping__"): return cls(data) discriminator = cls._get_discriminator(exist_discriminators) if discriminator is None: @@ -633,7 +633,7 @@ def _deserialize(cls, data, exist_discriminators): discriminator_value = data.find(xml_name).text # pyright: ignore else: discriminator_value = data.get(discriminator._rest_name) - mapped_cls = cls.__mapping__.get(discriminator_value, cls) # pyright: ignore # pylint: disable=no-member + mapped_cls = cls.__mapping__.get(discriminator_value, cls) # pyright: ignore return mapped_cls._deserialize(data, exist_discriminators) def as_dict(self, *, exclude_readonly: bool = False) -> typing.Dict[str, typing.Any]: diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_serialization.py b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_serialization.py index 480e941d758f..ce17d1798ce7 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_serialization.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/_serialization.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. @@ -506,7 +507,6 @@ def _flatten_subtype(cls, key, objects): def _classify(cls, response, objects): """Check the class _subtype_map for any child classes. We want to ignore any inherited _subtype_maps. - Remove the polymorphic key from the initial data. :param dict response: The initial data :param dict objects: The class objects @@ -518,7 +518,7 @@ def _classify(cls, response, objects): if not isinstance(response, ET.Element): rest_api_response_key = cls._get_rest_key_parts(subtype_key)[-1] - subtype_value = response.pop(rest_api_response_key, None) or response.pop(subtype_key, None) + subtype_value = response.get(rest_api_response_key, None) or response.get(subtype_key, None) else: subtype_value = xml_key_extractor(subtype_key, cls._attribute_map[subtype_key], response) if subtype_value: diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/__init__.py b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/__init__.py index 143626f5fc61..829a7e4cd703 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/__init__.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/__init__.py @@ -5,12 +5,18 @@ # Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +# pylint: disable=wrong-import-position -from ._client import IoTOperationsMgmtClient +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from ._patch import * # pylint: disable=unused-wildcard-import + +from ._client import IoTOperationsMgmtClient # type: ignore try: from ._patch import __all__ as _patch_all - from ._patch import * # pylint: disable=unused-wildcard-import + from ._patch import * except ImportError: _patch_all = [] from ._patch import patch_sdk as _patch_sdk diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/_client.py b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/_client.py index 0a449e85234a..348380f7cfae 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/_client.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/_client.py @@ -22,9 +22,11 @@ BrokerAuthorizationOperations, BrokerListenerOperations, BrokerOperations, + BrokersOperations, DataflowEndpointOperations, DataflowOperations, DataflowProfileOperations, + DataflowsOperations, InstanceOperations, Operations, ) @@ -36,6 +38,10 @@ class IoTOperationsMgmtClient: # pylint: disable=too-many-instance-attributes """Microsoft.IoTOperations Resource Provider management API. + :ivar brokers: BrokersOperations operations + :vartype brokers: azure.mgmt.iotoperations.aio.operations.BrokersOperations + :ivar dataflows: DataflowsOperations operations + :vartype dataflows: azure.mgmt.iotoperations.aio.operations.DataflowsOperations :ivar operations: Operations operations :vartype operations: azure.mgmt.iotoperations.aio.operations.Operations :ivar instance: InstanceOperations operations @@ -63,7 +69,7 @@ class IoTOperationsMgmtClient: # pylint: disable=too-many-instance-attributes :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :keyword api_version: The API version to use for this operation. Default value is - "2024-09-15-preview". Note that overriding this default value may result in unsupported + "2025-01-01-preview". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no @@ -104,6 +110,8 @@ def __init__( self._serialize = Serializer() self._deserialize = Deserializer() self._serialize.client_side_validation = False + self.brokers = BrokersOperations(self._client, self._config, self._serialize, self._deserialize) + self.dataflows = DataflowsOperations(self._client, self._config, self._serialize, self._deserialize) self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) self.instance = InstanceOperations(self._client, self._config, self._serialize, self._deserialize) self.broker = BrokerOperations(self._client, self._config, self._serialize, self._deserialize) diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/_configuration.py b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/_configuration.py index c2a9369017c8..71c71b05b890 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/_configuration.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/_configuration.py @@ -30,7 +30,7 @@ class IoTOperationsMgmtClientConfiguration: # pylint: disable=too-many-instance :param base_url: Service host. Default value is "https://management.azure.com". :type base_url: str :keyword api_version: The API version to use for this operation. Default value is - "2024-09-15-preview". Note that overriding this default value may result in unsupported + "2025-01-01-preview". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -42,7 +42,7 @@ def __init__( base_url: str = "https://management.azure.com", **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2024-09-15-preview") + api_version: str = kwargs.pop("api_version", "2025-01-01-preview") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/operations/__init__.py b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/operations/__init__.py index f53c6a9d0dab..7cb8893c5e4e 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/operations/__init__.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/operations/__init__.py @@ -5,22 +5,32 @@ # Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +# pylint: disable=wrong-import-position -from ._operations import Operations -from ._operations import InstanceOperations -from ._operations import BrokerOperations -from ._operations import BrokerListenerOperations -from ._operations import BrokerAuthenticationOperations -from ._operations import BrokerAuthorizationOperations -from ._operations import DataflowProfileOperations -from ._operations import DataflowOperations -from ._operations import DataflowEndpointOperations +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from ._patch import * # pylint: disable=unused-wildcard-import + +from ._operations import BrokersOperations # type: ignore +from ._operations import DataflowsOperations # type: ignore +from ._operations import Operations # type: ignore +from ._operations import InstanceOperations # type: ignore +from ._operations import BrokerOperations # type: ignore +from ._operations import BrokerListenerOperations # type: ignore +from ._operations import BrokerAuthenticationOperations # type: ignore +from ._operations import BrokerAuthorizationOperations # type: ignore +from ._operations import DataflowProfileOperations # type: ignore +from ._operations import DataflowOperations # type: ignore +from ._operations import DataflowEndpointOperations # type: ignore from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import +from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ + "BrokersOperations", + "DataflowsOperations", "Operations", "InstanceOperations", "BrokerOperations", diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/operations/_operations.py b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/operations/_operations.py index c3a9c7c95769..6ff3096762d1 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/operations/_operations.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/aio/operations/_operations.py @@ -81,6 +81,42 @@ JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object +class BrokersOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.iotoperations.aio.IoTOperationsMgmtClient`'s + :attr:`brokers` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + +class DataflowsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.iotoperations.aio.IoTOperationsMgmtClient`'s + :attr:`dataflows` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + class Operations: """ .. warning:: @@ -1524,8 +1560,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( self, resource_group_name: str, instance_name: str, broker_name: str, listener_name: str, **kwargs: Any - ) -> _models.BrokerListenerResource: - """Get a BrokerListenerResource. + ) -> _models.ListenerResource: + """Get a ListenerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -1536,8 +1572,8 @@ async def get( :type broker_name: str :param listener_name: Name of Instance broker listener resource. Required. :type listener_name: str - :return: BrokerListenerResource. The BrokerListenerResource is compatible with MutableMapping - :rtype: ~azure.mgmt.iotoperations.models.BrokerListenerResource + :return: ListenerResource. The ListenerResource is compatible with MutableMapping + :rtype: ~azure.mgmt.iotoperations.models.ListenerResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -1551,7 +1587,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.BrokerListenerResource] = kwargs.pop("cls", None) + cls: ClsType[_models.ListenerResource] = kwargs.pop("cls", None) _request = build_broker_listener_get_request( resource_group_name=resource_group_name, @@ -1588,7 +1624,7 @@ async def get( if _stream: deserialized = response.iter_bytes() else: - deserialized = _deserialize(_models.BrokerListenerResource, response.json()) + deserialized = _deserialize(_models.ListenerResource, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -1601,7 +1637,7 @@ async def _create_or_update_initial( instance_name: str, broker_name: str, listener_name: str, - resource: Union[_models.BrokerListenerResource, JSON, IO[bytes]], + resource: Union[_models.ListenerResource, JSON, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -1679,12 +1715,12 @@ async def begin_create_or_update( instance_name: str, broker_name: str, listener_name: str, - resource: _models.BrokerListenerResource, + resource: _models.ListenerResource, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.BrokerListenerResource]: - """Create a BrokerListenerResource. + ) -> AsyncLROPoller[_models.ListenerResource]: + """Create a ListenerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -1696,14 +1732,13 @@ async def begin_create_or_update( :param listener_name: Name of Instance broker listener resource. Required. :type listener_name: str :param resource: Resource create parameters. Required. - :type resource: ~azure.mgmt.iotoperations.models.BrokerListenerResource + :type resource: ~azure.mgmt.iotoperations.models.ListenerResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns BrokerListenerResource. The - BrokerListenerResource is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.BrokerListenerResource] + :return: An instance of AsyncLROPoller that returns ListenerResource. The ListenerResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.ListenerResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1718,8 +1753,8 @@ async def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.BrokerListenerResource]: - """Create a BrokerListenerResource. + ) -> AsyncLROPoller[_models.ListenerResource]: + """Create a ListenerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -1735,10 +1770,9 @@ async def begin_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 - :return: An instance of AsyncLROPoller that returns BrokerListenerResource. The - BrokerListenerResource is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.BrokerListenerResource] + :return: An instance of AsyncLROPoller that returns ListenerResource. The ListenerResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.ListenerResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1753,8 +1787,8 @@ async def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.BrokerListenerResource]: - """Create a BrokerListenerResource. + ) -> AsyncLROPoller[_models.ListenerResource]: + """Create a ListenerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -1770,10 +1804,9 @@ async def begin_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 - :return: An instance of AsyncLROPoller that returns BrokerListenerResource. The - BrokerListenerResource is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.BrokerListenerResource] + :return: An instance of AsyncLROPoller that returns ListenerResource. The ListenerResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.ListenerResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -1784,10 +1817,10 @@ async def begin_create_or_update( instance_name: str, broker_name: str, listener_name: str, - resource: Union[_models.BrokerListenerResource, JSON, IO[bytes]], + resource: Union[_models.ListenerResource, JSON, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.BrokerListenerResource]: - """Create a BrokerListenerResource. + ) -> AsyncLROPoller[_models.ListenerResource]: + """Create a ListenerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -1798,20 +1831,19 @@ async def begin_create_or_update( :type broker_name: str :param listener_name: Name of Instance broker listener resource. Required. :type listener_name: str - :param resource: Resource create parameters. Is one of the following types: - BrokerListenerResource, JSON, IO[bytes] Required. - :type resource: ~azure.mgmt.iotoperations.models.BrokerListenerResource or JSON or IO[bytes] - :return: An instance of AsyncLROPoller that returns BrokerListenerResource. The - BrokerListenerResource is compatible with MutableMapping - :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.BrokerListenerResource] + :param resource: Resource create parameters. Is one of the following types: ListenerResource, + JSON, IO[bytes] Required. + :type resource: ~azure.mgmt.iotoperations.models.ListenerResource or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns ListenerResource. The ListenerResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.ListenerResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BrokerListenerResource] = kwargs.pop("cls", None) + cls: ClsType[_models.ListenerResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -1833,7 +1865,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.BrokerListenerResource, response.json()) + deserialized = _deserialize(_models.ListenerResource, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -1851,13 +1883,13 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.BrokerListenerResource].from_continuation_token( + return AsyncLROPoller[_models.ListenerResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.BrokerListenerResource]( + return AsyncLROPoller[_models.ListenerResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @@ -1924,7 +1956,7 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, instance_name: str, broker_name: str, listener_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Delete a BrokerListenerResource. + """Delete a ListenerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -1988,8 +2020,8 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @distributed_trace def list_by_resource_group( self, resource_group_name: str, instance_name: str, broker_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BrokerListenerResource"]: - """List BrokerListenerResource resources by BrokerResource. + ) -> AsyncIterable["_models.ListenerResource"]: + """List ListenerResource resources by BrokerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -1998,15 +2030,15 @@ def list_by_resource_group( :type instance_name: str :param broker_name: Name of broker. Required. :type broker_name: str - :return: An iterator like instance of BrokerListenerResource + :return: An iterator like instance of ListenerResource :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.iotoperations.models.BrokerListenerResource] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.iotoperations.models.ListenerResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.BrokerListenerResource]] = kwargs.pop("cls", None) + cls: ClsType[List[_models.ListenerResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -2059,7 +2091,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.BrokerListenerResource], deserialized["value"]) + list_of_elem = _deserialize(List[_models.ListenerResource], deserialized["value"]) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, AsyncList(list_of_elem) @@ -2103,8 +2135,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( self, resource_group_name: str, instance_name: str, broker_name: str, authentication_name: str, **kwargs: Any - ) -> _models.BrokerAuthenticationResource: - """Get a BrokerAuthenticationResource. + ) -> _models.AuthenticationResource: + """Get a AuthenticationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2115,9 +2147,8 @@ async def get( :type broker_name: str :param authentication_name: Name of Instance broker authentication resource. Required. :type authentication_name: str - :return: BrokerAuthenticationResource. The BrokerAuthenticationResource is compatible with - MutableMapping - :rtype: ~azure.mgmt.iotoperations.models.BrokerAuthenticationResource + :return: AuthenticationResource. The AuthenticationResource is compatible with MutableMapping + :rtype: ~azure.mgmt.iotoperations.models.AuthenticationResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -2131,7 +2162,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.BrokerAuthenticationResource] = kwargs.pop("cls", None) + cls: ClsType[_models.AuthenticationResource] = kwargs.pop("cls", None) _request = build_broker_authentication_get_request( resource_group_name=resource_group_name, @@ -2168,7 +2199,7 @@ async def get( if _stream: deserialized = response.iter_bytes() else: - deserialized = _deserialize(_models.BrokerAuthenticationResource, response.json()) + deserialized = _deserialize(_models.AuthenticationResource, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -2181,7 +2212,7 @@ async def _create_or_update_initial( instance_name: str, broker_name: str, authentication_name: str, - resource: Union[_models.BrokerAuthenticationResource, JSON, IO[bytes]], + resource: Union[_models.AuthenticationResource, JSON, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -2259,12 +2290,12 @@ async def begin_create_or_update( instance_name: str, broker_name: str, authentication_name: str, - resource: _models.BrokerAuthenticationResource, + resource: _models.AuthenticationResource, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.BrokerAuthenticationResource]: - """Create a BrokerAuthenticationResource. + ) -> AsyncLROPoller[_models.AuthenticationResource]: + """Create a AuthenticationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2276,14 +2307,14 @@ async def begin_create_or_update( :param authentication_name: Name of Instance broker authentication resource. Required. :type authentication_name: str :param resource: Resource create parameters. Required. - :type resource: ~azure.mgmt.iotoperations.models.BrokerAuthenticationResource + :type resource: ~azure.mgmt.iotoperations.models.AuthenticationResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns BrokerAuthenticationResource. The - BrokerAuthenticationResource is compatible with MutableMapping + :return: An instance of AsyncLROPoller that returns AuthenticationResource. The + AuthenticationResource is compatible with MutableMapping :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.BrokerAuthenticationResource] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.AuthenticationResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2298,8 +2329,8 @@ async def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.BrokerAuthenticationResource]: - """Create a BrokerAuthenticationResource. + ) -> AsyncLROPoller[_models.AuthenticationResource]: + """Create a AuthenticationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2315,10 +2346,10 @@ async def begin_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 - :return: An instance of AsyncLROPoller that returns BrokerAuthenticationResource. The - BrokerAuthenticationResource is compatible with MutableMapping + :return: An instance of AsyncLROPoller that returns AuthenticationResource. The + AuthenticationResource is compatible with MutableMapping :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.BrokerAuthenticationResource] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.AuthenticationResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2333,8 +2364,8 @@ async def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.BrokerAuthenticationResource]: - """Create a BrokerAuthenticationResource. + ) -> AsyncLROPoller[_models.AuthenticationResource]: + """Create a AuthenticationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2350,10 +2381,10 @@ async def begin_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 - :return: An instance of AsyncLROPoller that returns BrokerAuthenticationResource. The - BrokerAuthenticationResource is compatible with MutableMapping + :return: An instance of AsyncLROPoller that returns AuthenticationResource. The + AuthenticationResource is compatible with MutableMapping :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.BrokerAuthenticationResource] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.AuthenticationResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2364,10 +2395,10 @@ async def begin_create_or_update( instance_name: str, broker_name: str, authentication_name: str, - resource: Union[_models.BrokerAuthenticationResource, JSON, IO[bytes]], + resource: Union[_models.AuthenticationResource, JSON, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.BrokerAuthenticationResource]: - """Create a BrokerAuthenticationResource. + ) -> AsyncLROPoller[_models.AuthenticationResource]: + """Create a AuthenticationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2379,20 +2410,19 @@ async def begin_create_or_update( :param authentication_name: Name of Instance broker authentication resource. Required. :type authentication_name: str :param resource: Resource create parameters. Is one of the following types: - BrokerAuthenticationResource, JSON, IO[bytes] Required. - :type resource: ~azure.mgmt.iotoperations.models.BrokerAuthenticationResource or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns BrokerAuthenticationResource. The - BrokerAuthenticationResource is compatible with MutableMapping + AuthenticationResource, JSON, IO[bytes] Required. + :type resource: ~azure.mgmt.iotoperations.models.AuthenticationResource or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns AuthenticationResource. The + AuthenticationResource is compatible with MutableMapping :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.BrokerAuthenticationResource] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.AuthenticationResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BrokerAuthenticationResource] = kwargs.pop("cls", None) + cls: ClsType[_models.AuthenticationResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -2414,7 +2444,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.BrokerAuthenticationResource, response.json()) + deserialized = _deserialize(_models.AuthenticationResource, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -2432,13 +2462,13 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.BrokerAuthenticationResource].from_continuation_token( + return AsyncLROPoller[_models.AuthenticationResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.BrokerAuthenticationResource]( + return AsyncLROPoller[_models.AuthenticationResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @@ -2505,7 +2535,7 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, instance_name: str, broker_name: str, authentication_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Delete a BrokerAuthenticationResource. + """Delete a AuthenticationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2569,8 +2599,8 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @distributed_trace def list_by_resource_group( self, resource_group_name: str, instance_name: str, broker_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BrokerAuthenticationResource"]: - """List BrokerAuthenticationResource resources by BrokerResource. + ) -> AsyncIterable["_models.AuthenticationResource"]: + """List AuthenticationResource resources by BrokerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2579,15 +2609,15 @@ def list_by_resource_group( :type instance_name: str :param broker_name: Name of broker. Required. :type broker_name: str - :return: An iterator like instance of BrokerAuthenticationResource + :return: An iterator like instance of AuthenticationResource :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.iotoperations.models.BrokerAuthenticationResource] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.iotoperations.models.AuthenticationResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.BrokerAuthenticationResource]] = kwargs.pop("cls", None) + cls: ClsType[List[_models.AuthenticationResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -2640,7 +2670,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.BrokerAuthenticationResource], deserialized["value"]) + list_of_elem = _deserialize(List[_models.AuthenticationResource], deserialized["value"]) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, AsyncList(list_of_elem) @@ -2684,8 +2714,8 @@ def __init__(self, *args, **kwargs) -> None: @distributed_trace_async async def get( self, resource_group_name: str, instance_name: str, broker_name: str, authorization_name: str, **kwargs: Any - ) -> _models.BrokerAuthorizationResource: - """Get a BrokerAuthorizationResource. + ) -> _models.AuthorizationResource: + """Get a AuthorizationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2696,9 +2726,8 @@ async def get( :type broker_name: str :param authorization_name: Name of Instance broker authorization resource. Required. :type authorization_name: str - :return: BrokerAuthorizationResource. The BrokerAuthorizationResource is compatible with - MutableMapping - :rtype: ~azure.mgmt.iotoperations.models.BrokerAuthorizationResource + :return: AuthorizationResource. The AuthorizationResource is compatible with MutableMapping + :rtype: ~azure.mgmt.iotoperations.models.AuthorizationResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -2712,7 +2741,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.BrokerAuthorizationResource] = kwargs.pop("cls", None) + cls: ClsType[_models.AuthorizationResource] = kwargs.pop("cls", None) _request = build_broker_authorization_get_request( resource_group_name=resource_group_name, @@ -2749,7 +2778,7 @@ async def get( if _stream: deserialized = response.iter_bytes() else: - deserialized = _deserialize(_models.BrokerAuthorizationResource, response.json()) + deserialized = _deserialize(_models.AuthorizationResource, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -2762,7 +2791,7 @@ async def _create_or_update_initial( instance_name: str, broker_name: str, authorization_name: str, - resource: Union[_models.BrokerAuthorizationResource, JSON, IO[bytes]], + resource: Union[_models.AuthorizationResource, JSON, IO[bytes]], **kwargs: Any ) -> AsyncIterator[bytes]: error_map: MutableMapping = { @@ -2840,12 +2869,12 @@ async def begin_create_or_update( instance_name: str, broker_name: str, authorization_name: str, - resource: _models.BrokerAuthorizationResource, + resource: _models.AuthorizationResource, *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.BrokerAuthorizationResource]: - """Create a BrokerAuthorizationResource. + ) -> AsyncLROPoller[_models.AuthorizationResource]: + """Create a AuthorizationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2857,14 +2886,14 @@ async def begin_create_or_update( :param authorization_name: Name of Instance broker authorization resource. Required. :type authorization_name: str :param resource: Resource create parameters. Required. - :type resource: ~azure.mgmt.iotoperations.models.BrokerAuthorizationResource + :type resource: ~azure.mgmt.iotoperations.models.AuthorizationResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of AsyncLROPoller that returns BrokerAuthorizationResource. The - BrokerAuthorizationResource is compatible with MutableMapping + :return: An instance of AsyncLROPoller that returns AuthorizationResource. The + AuthorizationResource is compatible with MutableMapping :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.BrokerAuthorizationResource] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.AuthorizationResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2879,8 +2908,8 @@ async def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.BrokerAuthorizationResource]: - """Create a BrokerAuthorizationResource. + ) -> AsyncLROPoller[_models.AuthorizationResource]: + """Create a AuthorizationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2896,10 +2925,10 @@ async def begin_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 - :return: An instance of AsyncLROPoller that returns BrokerAuthorizationResource. The - BrokerAuthorizationResource is compatible with MutableMapping + :return: An instance of AsyncLROPoller that returns AuthorizationResource. The + AuthorizationResource is compatible with MutableMapping :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.BrokerAuthorizationResource] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.AuthorizationResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2914,8 +2943,8 @@ async def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> AsyncLROPoller[_models.BrokerAuthorizationResource]: - """Create a BrokerAuthorizationResource. + ) -> AsyncLROPoller[_models.AuthorizationResource]: + """Create a AuthorizationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2931,10 +2960,10 @@ async def begin_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 - :return: An instance of AsyncLROPoller that returns BrokerAuthorizationResource. The - BrokerAuthorizationResource is compatible with MutableMapping + :return: An instance of AsyncLROPoller that returns AuthorizationResource. The + AuthorizationResource is compatible with MutableMapping :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.BrokerAuthorizationResource] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.AuthorizationResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2945,10 +2974,10 @@ async def begin_create_or_update( instance_name: str, broker_name: str, authorization_name: str, - resource: Union[_models.BrokerAuthorizationResource, JSON, IO[bytes]], + resource: Union[_models.AuthorizationResource, JSON, IO[bytes]], **kwargs: Any - ) -> AsyncLROPoller[_models.BrokerAuthorizationResource]: - """Create a BrokerAuthorizationResource. + ) -> AsyncLROPoller[_models.AuthorizationResource]: + """Create a AuthorizationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2960,20 +2989,19 @@ async def begin_create_or_update( :param authorization_name: Name of Instance broker authorization resource. Required. :type authorization_name: str :param resource: Resource create parameters. Is one of the following types: - BrokerAuthorizationResource, JSON, IO[bytes] Required. - :type resource: ~azure.mgmt.iotoperations.models.BrokerAuthorizationResource or JSON or - IO[bytes] - :return: An instance of AsyncLROPoller that returns BrokerAuthorizationResource. The - BrokerAuthorizationResource is compatible with MutableMapping + AuthorizationResource, JSON, IO[bytes] Required. + :type resource: ~azure.mgmt.iotoperations.models.AuthorizationResource or JSON or IO[bytes] + :return: An instance of AsyncLROPoller that returns AuthorizationResource. The + AuthorizationResource is compatible with MutableMapping :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.BrokerAuthorizationResource] + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.iotoperations.models.AuthorizationResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BrokerAuthorizationResource] = kwargs.pop("cls", None) + cls: ClsType[_models.AuthorizationResource] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -2995,7 +3023,7 @@ async def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.BrokerAuthorizationResource, response.json()) + deserialized = _deserialize(_models.AuthorizationResource, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -3013,13 +3041,13 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return AsyncLROPoller[_models.BrokerAuthorizationResource].from_continuation_token( + return AsyncLROPoller[_models.AuthorizationResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return AsyncLROPoller[_models.BrokerAuthorizationResource]( + return AsyncLROPoller[_models.AuthorizationResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @@ -3086,7 +3114,7 @@ async def _delete_initial( async def begin_delete( self, resource_group_name: str, instance_name: str, broker_name: str, authorization_name: str, **kwargs: Any ) -> AsyncLROPoller[None]: - """Delete a BrokerAuthorizationResource. + """Delete a AuthorizationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -3150,8 +3178,8 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @distributed_trace def list_by_resource_group( self, resource_group_name: str, instance_name: str, broker_name: str, **kwargs: Any - ) -> AsyncIterable["_models.BrokerAuthorizationResource"]: - """List BrokerAuthorizationResource resources by BrokerResource. + ) -> AsyncIterable["_models.AuthorizationResource"]: + """List AuthorizationResource resources by BrokerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -3160,15 +3188,15 @@ def list_by_resource_group( :type instance_name: str :param broker_name: Name of broker. Required. :type broker_name: str - :return: An iterator like instance of BrokerAuthorizationResource + :return: An iterator like instance of AuthorizationResource :rtype: - ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.iotoperations.models.BrokerAuthorizationResource] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.iotoperations.models.AuthorizationResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.BrokerAuthorizationResource]] = kwargs.pop("cls", None) + cls: ClsType[List[_models.AuthorizationResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -3221,7 +3249,7 @@ def prepare_request(next_link=None): async def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.BrokerAuthorizationResource], deserialized["value"]) + list_of_elem = _deserialize(List[_models.AuthorizationResource], deserialized["value"]) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, AsyncList(list_of_elem) diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/models/__init__.py b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/models/__init__.py index 5249f7614e66..622ca20a75a6 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/models/__init__.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/models/__init__.py @@ -5,167 +5,182 @@ # Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +# pylint: disable=wrong-import-position -from ._models import AdvancedSettings -from ._models import AuthorizationConfig -from ._models import AuthorizationRule -from ._models import BackendChain -from ._models import BatchingConfiguration -from ._models import BrokerAuthenticationProperties -from ._models import BrokerAuthenticationResource -from ._models import BrokerAuthenticatorCustomAuth -from ._models import BrokerAuthenticatorMethodCustom -from ._models import BrokerAuthenticatorMethodSat -from ._models import BrokerAuthenticatorMethodX509 -from ._models import BrokerAuthenticatorMethodX509Attributes -from ._models import BrokerAuthenticatorMethods -from ._models import BrokerAuthorizationProperties -from ._models import BrokerAuthorizationResource -from ._models import BrokerDiagnostics -from ._models import BrokerListenerProperties -from ._models import BrokerListenerResource -from ._models import BrokerProperties -from ._models import BrokerResource -from ._models import BrokerResourceRule -from ._models import Cardinality -from ._models import CertManagerCertOptions -from ._models import CertManagerCertificateSpec -from ._models import CertManagerIssuerRef -from ._models import CertManagerPrivateKey -from ._models import ClientConfig -from ._models import DataflowBuiltInTransformationDataset -from ._models import DataflowBuiltInTransformationFilter -from ._models import DataflowBuiltInTransformationMap -from ._models import DataflowBuiltInTransformationSettings -from ._models import DataflowDestinationOperationSettings -from ._models import DataflowEndpointAuthenticationAccessToken -from ._models import DataflowEndpointAuthenticationSasl -from ._models import DataflowEndpointAuthenticationServiceAccountToken -from ._models import DataflowEndpointAuthenticationSystemAssignedManagedIdentity -from ._models import DataflowEndpointAuthenticationUserAssignedManagedIdentity -from ._models import DataflowEndpointAuthenticationX509 -from ._models import DataflowEndpointDataExplorer -from ._models import DataflowEndpointDataExplorerAuthentication -from ._models import DataflowEndpointDataLakeStorage -from ._models import DataflowEndpointDataLakeStorageAuthentication -from ._models import DataflowEndpointFabricOneLake -from ._models import DataflowEndpointFabricOneLakeAuthentication -from ._models import DataflowEndpointFabricOneLakeNames -from ._models import DataflowEndpointKafka -from ._models import DataflowEndpointKafkaAuthentication -from ._models import DataflowEndpointKafkaBatching -from ._models import DataflowEndpointLocalStorage -from ._models import DataflowEndpointMqtt -from ._models import DataflowEndpointMqttAuthentication -from ._models import DataflowEndpointProperties -from ._models import DataflowEndpointResource -from ._models import DataflowOperation -from ._models import DataflowProfileProperties -from ._models import DataflowProfileResource -from ._models import DataflowProperties -from ._models import DataflowResource -from ._models import DataflowSourceOperationSettings -from ._models import DiagnosticsLogs -from ._models import DiskBackedMessageBuffer -from ._models import ErrorAdditionalInfo -from ._models import ErrorDetail -from ._models import ErrorResponse -from ._models import ExtendedLocation -from ._models import Frontend -from ._models import GenerateResourceLimits -from ._models import InstancePatchModel -from ._models import InstanceProperties -from ._models import InstanceResource -from ._models import KubernetesReference -from ._models import ListenerPort -from ._models import LocalKubernetesReference -from ._models import ManagedServiceIdentity -from ._models import Metrics -from ._models import Operation -from ._models import OperationDisplay -from ._models import PrincipalDefinition -from ._models import ProfileDiagnostics -from ._models import ProxyResource -from ._models import Resource -from ._models import SanForCert -from ._models import SchemaRegistryRef -from ._models import SelfCheck -from ._models import SelfTracing -from ._models import StateStoreResourceRule -from ._models import SubscriberQueueLimit -from ._models import SystemData -from ._models import TlsCertMethod -from ._models import TlsProperties -from ._models import Traces -from ._models import TrackedResource -from ._models import UserAssignedIdentity -from ._models import VolumeClaimResourceRequirements -from ._models import VolumeClaimSpec -from ._models import VolumeClaimSpecSelector -from ._models import VolumeClaimSpecSelectorMatchExpressions -from ._models import X509ManualCertificate +from typing import TYPE_CHECKING -from ._enums import ActionType -from ._enums import BrokerAuthenticationMethod -from ._enums import BrokerMemoryProfile -from ._enums import BrokerProtocolType -from ._enums import BrokerResourceDefinitionMethods -from ._enums import CertManagerIssuerKind -from ._enums import CloudEventAttributeType -from ._enums import CreatedByType -from ._enums import DataExplorerAuthMethod -from ._enums import DataLakeStorageAuthMethod -from ._enums import DataflowEndpointAuthenticationSaslType -from ._enums import DataflowEndpointFabricPathType -from ._enums import DataflowEndpointKafkaAcks -from ._enums import DataflowEndpointKafkaCompression -from ._enums import DataflowEndpointKafkaPartitionStrategy -from ._enums import DataflowMappingType -from ._enums import EndpointType -from ._enums import ExtendedLocationType -from ._enums import FabricOneLakeAuthMethod -from ._enums import FilterType -from ._enums import KafkaAuthMethod -from ._enums import ManagedServiceIdentityType -from ._enums import MqttAuthMethod -from ._enums import MqttRetainType -from ._enums import OperationType -from ._enums import OperationalMode -from ._enums import OperatorValues -from ._enums import Origin -from ._enums import PrivateKeyAlgorithm -from ._enums import PrivateKeyRotationPolicy -from ._enums import ProvisioningState -from ._enums import ServiceType -from ._enums import SourceSerializationFormat -from ._enums import StateStoreResourceDefinitionMethods -from ._enums import StateStoreResourceKeyTypes -from ._enums import SubscriberMessageDropStrategy -from ._enums import TlsCertMethodMode -from ._enums import TransformationSerializationFormat +if TYPE_CHECKING: + from ._patch import * # pylint: disable=unused-wildcard-import + + +from ._models import ( # type: ignore + AdvancedSettings, + AuthenticationProperties, + AuthenticationResource, + AuthenticatorMethodCustom, + AuthenticatorMethodSat, + AuthenticatorMethodX509, + AuthenticatorMethods, + AuthorizationConfig, + AuthorizationProperties, + AuthorizationResource, + AuthorizationRule, + BackendChain, + BatchingConfiguration, + BrokerAuthenticatorCustomAuth, + BrokerAuthenticatorMethodX509Attributes, + BrokerDiagnostics, + BrokerProperties, + BrokerResource, + BrokerResourceRule, + Cardinality, + CertManagerCertOptions, + CertManagerCertificateSpec, + CertManagerIssuerRef, + CertManagerPrivateKey, + ClientConfig, + DataExplorerEndpoint, + DataExplorerSettings, + DataLakeStorageEndpoint, + DataLakeStorageSettings, + DataflowBuiltInTransformationDataset, + DataflowBuiltInTransformationFilter, + DataflowBuiltInTransformationMap, + DataflowBuiltInTransformationSettings, + DataflowDestinationOperationSettings, + DataflowEndpointAuthenticationAccessToken, + DataflowEndpointAuthenticationSasl, + DataflowEndpointAuthenticationServiceAccountToken, + DataflowEndpointAuthenticationSystemAssignedManagedIdentity, + DataflowEndpointAuthenticationUserAssignedManagedIdentity, + DataflowEndpointAuthenticationX509, + DataflowEndpointDataExplorerAuthentication, + DataflowEndpointDataLakeStorageAuthentication, + DataflowEndpointFabricOneLakeAuthentication, + DataflowEndpointFabricOneLakeNames, + DataflowEndpointKafkaAuthentication, + DataflowEndpointKafkaBatching, + DataflowEndpointMqttAuthentication, + DataflowEndpointProperties, + DataflowEndpointResource, + DataflowOperation, + DataflowProfileProperties, + DataflowProfileResource, + DataflowProperties, + DataflowResource, + DataflowSourceOperationSettings, + DiagnosticsLogs, + DiskBackedMessageBuffer, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + ExtendedLocation, + FabricOneLakeEndpoint, + FabricOneLakeSettings, + Frontend, + GenerateResourceLimits, + InstancePatchModel, + InstanceProperties, + InstanceResource, + KafkaEndpoint, + KafkaSettings, + KubernetesReference, + ListenerPort, + ListenerProperties, + ListenerResource, + LocalKubernetesReference, + LocalStorageEndpoint, + LocalStorageSettings, + ManagedServiceIdentity, + Metrics, + MqttEndpoint, + MqttSettings, + Operation, + OperationDisplay, + PrincipalDefinition, + ProfileDiagnostics, + ProxyResource, + Resource, + SanForCert, + SchemaRegistryRef, + SelfCheck, + SelfTracing, + StateStoreResourceRule, + SubscriberQueueLimit, + SystemData, + TlsCertMethod, + TlsProperties, + Traces, + TrackedResource, + UserAssignedIdentity, + VolumeClaimResourceRequirements, + VolumeClaimSpec, + VolumeClaimSpecSelector, + VolumeClaimSpecSelectorMatchExpressions, + X509ManualCertificate, +) + +from ._enums import ( # type: ignore + ActionType, + AuthenticationMethod, + BrokerMemoryProfile, + BrokerProtocolType, + BrokerResourceDefinitionMethods, + CertManagerIssuerKind, + CloudEventAttributeType, + CreatedByType, + DataExplorerAuthMethod, + DataLakeStorageAuthMethod, + DataflowEndpointAuthenticationSaslType, + DataflowEndpointFabricPathType, + DataflowEndpointKafkaAcks, + DataflowEndpointKafkaCompression, + DataflowEndpointKafkaPartitionStrategy, + DataflowMappingType, + EndpointType, + ExtendedLocationType, + FabricOneLakeAuthMethod, + FilterType, + KafkaAuthMethod, + ManagedServiceIdentityType, + MqttAuthMethod, + MqttRetainType, + OperationType, + OperationalMode, + OperatorValues, + Origin, + PrivateKeyAlgorithm, + PrivateKeyRotationPolicy, + ProvisioningState, + ServiceType, + SourceSerializationFormat, + StateStoreResourceDefinitionMethods, + StateStoreResourceKeyTypes, + SubscriberMessageDropStrategy, + TlsCertMethodMode, + TransformationSerializationFormat, +) from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import +from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ "AdvancedSettings", + "AuthenticationProperties", + "AuthenticationResource", + "AuthenticatorMethodCustom", + "AuthenticatorMethodSat", + "AuthenticatorMethodX509", + "AuthenticatorMethods", "AuthorizationConfig", + "AuthorizationProperties", + "AuthorizationResource", "AuthorizationRule", "BackendChain", "BatchingConfiguration", - "BrokerAuthenticationProperties", - "BrokerAuthenticationResource", "BrokerAuthenticatorCustomAuth", - "BrokerAuthenticatorMethodCustom", - "BrokerAuthenticatorMethodSat", - "BrokerAuthenticatorMethodX509", "BrokerAuthenticatorMethodX509Attributes", - "BrokerAuthenticatorMethods", - "BrokerAuthorizationProperties", - "BrokerAuthorizationResource", "BrokerDiagnostics", - "BrokerListenerProperties", - "BrokerListenerResource", "BrokerProperties", "BrokerResource", "BrokerResourceRule", @@ -175,6 +190,10 @@ "CertManagerIssuerRef", "CertManagerPrivateKey", "ClientConfig", + "DataExplorerEndpoint", + "DataExplorerSettings", + "DataLakeStorageEndpoint", + "DataLakeStorageSettings", "DataflowBuiltInTransformationDataset", "DataflowBuiltInTransformationFilter", "DataflowBuiltInTransformationMap", @@ -186,18 +205,12 @@ "DataflowEndpointAuthenticationSystemAssignedManagedIdentity", "DataflowEndpointAuthenticationUserAssignedManagedIdentity", "DataflowEndpointAuthenticationX509", - "DataflowEndpointDataExplorer", "DataflowEndpointDataExplorerAuthentication", - "DataflowEndpointDataLakeStorage", "DataflowEndpointDataLakeStorageAuthentication", - "DataflowEndpointFabricOneLake", "DataflowEndpointFabricOneLakeAuthentication", "DataflowEndpointFabricOneLakeNames", - "DataflowEndpointKafka", "DataflowEndpointKafkaAuthentication", "DataflowEndpointKafkaBatching", - "DataflowEndpointLocalStorage", - "DataflowEndpointMqtt", "DataflowEndpointMqttAuthentication", "DataflowEndpointProperties", "DataflowEndpointResource", @@ -213,16 +226,26 @@ "ErrorDetail", "ErrorResponse", "ExtendedLocation", + "FabricOneLakeEndpoint", + "FabricOneLakeSettings", "Frontend", "GenerateResourceLimits", "InstancePatchModel", "InstanceProperties", "InstanceResource", + "KafkaEndpoint", + "KafkaSettings", "KubernetesReference", "ListenerPort", + "ListenerProperties", + "ListenerResource", "LocalKubernetesReference", + "LocalStorageEndpoint", + "LocalStorageSettings", "ManagedServiceIdentity", "Metrics", + "MqttEndpoint", + "MqttSettings", "Operation", "OperationDisplay", "PrincipalDefinition", @@ -247,7 +270,7 @@ "VolumeClaimSpecSelectorMatchExpressions", "X509ManualCertificate", "ActionType", - "BrokerAuthenticationMethod", + "AuthenticationMethod", "BrokerMemoryProfile", "BrokerProtocolType", "BrokerResourceDefinitionMethods", diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/models/_enums.py b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/models/_enums.py index 494bf7b4726e..28a8ff78b507 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/models/_enums.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/models/_enums.py @@ -19,8 +19,8 @@ class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Actions are for internal-only APIs.""" -class BrokerAuthenticationMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Broker Authentication Mode.""" +class AuthenticationMethod(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Authentication Mode.""" CUSTOM = "Custom" """Custom authentication configuration.""" diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/models/_models.py b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/models/_models.py index e48c98c333c6..5d242c833e24 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/models/_models.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/models/_models.py @@ -6,12 +6,14 @@ # Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +# pylint: disable=useless-super-delegation import datetime -from typing import Any, Dict, List, Mapping, Optional, TYPE_CHECKING, Union, overload +from typing import Any, Dict, List, Literal, Mapping, Optional, TYPE_CHECKING, Union, overload from .. import _model_base -from .._model_base import rest_field +from .._model_base import rest_discriminator, rest_field +from ._enums import EndpointType if TYPE_CHECKING: from .. import models as _models @@ -55,174 +57,25 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class AuthorizationConfig(_model_base.Model): - """Broker AuthorizationConfig properties. - - :ivar cache: Enable caching of the authorization rules. Known values are: "Enabled" and - "Disabled". - :vartype cache: str or ~azure.mgmt.iotoperations.models.OperationalMode - :ivar rules: The authorization rules to follow. If no rule is set, but Authorization Resource - is used that would mean DenyAll. - :vartype rules: list[~azure.mgmt.iotoperations.models.AuthorizationRule] - """ - - cache: Optional[Union[str, "_models.OperationalMode"]] = rest_field() - """Enable caching of the authorization rules. Known values are: \"Enabled\" and \"Disabled\".""" - rules: Optional[List["_models.AuthorizationRule"]] = rest_field() - """The authorization rules to follow. If no rule is set, but Authorization Resource is used that - would mean DenyAll.""" - - @overload - def __init__( - self, - *, - cache: Optional[Union[str, "_models.OperationalMode"]] = None, - rules: Optional[List["_models.AuthorizationRule"]] = None, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) - - -class AuthorizationRule(_model_base.Model): - """AuthorizationConfig Rule Properties. - - - :ivar broker_resources: Give access to Broker methods and topics. Required. - :vartype broker_resources: list[~azure.mgmt.iotoperations.models.BrokerResourceRule] - :ivar principals: Give access to clients based on the following properties. Required. - :vartype principals: ~azure.mgmt.iotoperations.models.PrincipalDefinition - :ivar state_store_resources: Give access to state store resources. - :vartype state_store_resources: list[~azure.mgmt.iotoperations.models.StateStoreResourceRule] - """ - - broker_resources: List["_models.BrokerResourceRule"] = rest_field(name="brokerResources") - """Give access to Broker methods and topics. Required.""" - principals: "_models.PrincipalDefinition" = rest_field() - """Give access to clients based on the following properties. Required.""" - state_store_resources: Optional[List["_models.StateStoreResourceRule"]] = rest_field(name="stateStoreResources") - """Give access to state store resources.""" - - @overload - def __init__( - self, - *, - broker_resources: List["_models.BrokerResourceRule"], - principals: "_models.PrincipalDefinition", - state_store_resources: Optional[List["_models.StateStoreResourceRule"]] = None, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) - - -class BackendChain(_model_base.Model): - """Desired properties of the backend instances of the broker. - - - :ivar partitions: The desired number of physical backend partitions. Required. - :vartype partitions: int - :ivar redundancy_factor: The desired numbers of backend replicas (pods) in a physical - partition. Required. - :vartype redundancy_factor: int - :ivar workers: Number of logical backend workers per replica (pod). - :vartype workers: int - """ - - partitions: int = rest_field() - """The desired number of physical backend partitions. Required.""" - redundancy_factor: int = rest_field(name="redundancyFactor") - """The desired numbers of backend replicas (pods) in a physical partition. Required.""" - workers: Optional[int] = rest_field() - """Number of logical backend workers per replica (pod).""" - - @overload - def __init__( - self, - *, - partitions: int, - redundancy_factor: int, - workers: Optional[int] = None, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) - - -class BatchingConfiguration(_model_base.Model): - """Batching configuration. - - :ivar latency_seconds: Batching latency in seconds. - :vartype latency_seconds: int - :ivar max_messages: Maximum number of messages in a batch. - :vartype max_messages: int - """ - - latency_seconds: Optional[int] = rest_field(name="latencySeconds") - """Batching latency in seconds.""" - max_messages: Optional[int] = rest_field(name="maxMessages") - """Maximum number of messages in a batch.""" - - @overload - def __init__( - self, - *, - latency_seconds: Optional[int] = None, - max_messages: Optional[int] = None, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) - - -class BrokerAuthenticationProperties(_model_base.Model): - """BrokerAuthentication Resource properties. +class AuthenticationProperties(_model_base.Model): + """Authentication Resource properties. Readonly variables are only populated by the server, and will be ignored when sending a request. :ivar authentication_methods: Defines a set of Broker authentication methods to be used on ``BrokerListeners``. For each array element one authenticator type supported. Required. - :vartype authentication_methods: - list[~azure.mgmt.iotoperations.models.BrokerAuthenticatorMethods] + :vartype authentication_methods: list[~azure.mgmt.iotoperations.models.AuthenticatorMethods] :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". :vartype provisioning_state: str or ~azure.mgmt.iotoperations.models.ProvisioningState """ - authentication_methods: List["_models.BrokerAuthenticatorMethods"] = rest_field(name="authenticationMethods") + authentication_methods: List["_models.AuthenticatorMethods"] = rest_field(name="authenticationMethods") """Defines a set of Broker authentication methods to be used on ``BrokerListeners``. For each array element one authenticator type supported. Required.""" provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( @@ -235,7 +88,7 @@ class BrokerAuthenticationProperties(_model_base.Model): def __init__( self, *, - authentication_methods: List["_models.BrokerAuthenticatorMethods"], + authentication_methods: List["_models.AuthenticatorMethods"], ) -> None: ... @overload @@ -245,7 +98,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -299,7 +152,7 @@ class ProxyResource(Resource): """ -class BrokerAuthenticationResource(ProxyResource): +class AuthenticationResource(ProxyResource): """Instance broker authentication resource. Readonly variables are only populated by the server, and will be ignored when sending a request. @@ -317,12 +170,12 @@ class BrokerAuthenticationResource(ProxyResource): information. :vartype system_data: ~azure.mgmt.iotoperations.models.SystemData :ivar properties: The resource-specific properties for this resource. - :vartype properties: ~azure.mgmt.iotoperations.models.BrokerAuthenticationProperties + :vartype properties: ~azure.mgmt.iotoperations.models.AuthenticationProperties :ivar extended_location: Edge location of the resource. Required. :vartype extended_location: ~azure.mgmt.iotoperations.models.ExtendedLocation """ - properties: Optional["_models.BrokerAuthenticationProperties"] = rest_field() + properties: Optional["_models.AuthenticationProperties"] = rest_field() """The resource-specific properties for this resource.""" extended_location: "_models.ExtendedLocation" = rest_field(name="extendedLocation", visibility=["read", "create"]) """Edge location of the resource. Required.""" @@ -332,36 +185,7 @@ def __init__( self, *, extended_location: "_models.ExtendedLocation", - properties: Optional["_models.BrokerAuthenticationProperties"] = None, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) - - -class BrokerAuthenticatorCustomAuth(_model_base.Model): - """Custom Authentication properties. - - - :ivar x509: X509 Custom Auth type details. Required. - :vartype x509: ~azure.mgmt.iotoperations.models.X509ManualCertificate - """ - - x509: "_models.X509ManualCertificate" = rest_field() - """X509 Custom Auth type details. Required.""" - - @overload - def __init__( - self, - *, - x509: "_models.X509ManualCertificate", + properties: Optional["_models.AuthenticationProperties"] = None, ) -> None: ... @overload @@ -371,11 +195,11 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BrokerAuthenticatorMethodCustom(_model_base.Model): +class AuthenticatorMethodCustom(_model_base.Model): """Custom method for BrokerAuthentication. @@ -418,46 +242,46 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BrokerAuthenticatorMethods(_model_base.Model): +class AuthenticatorMethods(_model_base.Model): """Set of broker authentication policies. Only one method is supported for each entry. :ivar method: Custom authentication configuration. Required. Known values are: "Custom", "ServiceAccountToken", and "X509". - :vartype method: str or ~azure.mgmt.iotoperations.models.BrokerAuthenticationMethod + :vartype method: str or ~azure.mgmt.iotoperations.models.AuthenticationMethod :ivar custom_settings: Custom authentication configuration. - :vartype custom_settings: ~azure.mgmt.iotoperations.models.BrokerAuthenticatorMethodCustom + :vartype custom_settings: ~azure.mgmt.iotoperations.models.AuthenticatorMethodCustom :ivar service_account_token_settings: ServiceAccountToken authentication configuration. :vartype service_account_token_settings: - ~azure.mgmt.iotoperations.models.BrokerAuthenticatorMethodSat + ~azure.mgmt.iotoperations.models.AuthenticatorMethodSat :ivar x509_settings: X.509 authentication configuration. - :vartype x509_settings: ~azure.mgmt.iotoperations.models.BrokerAuthenticatorMethodX509 + :vartype x509_settings: ~azure.mgmt.iotoperations.models.AuthenticatorMethodX509 """ - method: Union[str, "_models.BrokerAuthenticationMethod"] = rest_field() + method: Union[str, "_models.AuthenticationMethod"] = rest_field() """Custom authentication configuration. Required. Known values are: \"Custom\", \"ServiceAccountToken\", and \"X509\".""" - custom_settings: Optional["_models.BrokerAuthenticatorMethodCustom"] = rest_field(name="customSettings") + custom_settings: Optional["_models.AuthenticatorMethodCustom"] = rest_field(name="customSettings") """Custom authentication configuration.""" - service_account_token_settings: Optional["_models.BrokerAuthenticatorMethodSat"] = rest_field( + service_account_token_settings: Optional["_models.AuthenticatorMethodSat"] = rest_field( name="serviceAccountTokenSettings" ) """ServiceAccountToken authentication configuration.""" - x509_settings: Optional["_models.BrokerAuthenticatorMethodX509"] = rest_field(name="x509Settings") + x509_settings: Optional["_models.AuthenticatorMethodX509"] = rest_field(name="x509Settings") """X.509 authentication configuration.""" @overload def __init__( self, *, - method: Union[str, "_models.BrokerAuthenticationMethod"], - custom_settings: Optional["_models.BrokerAuthenticatorMethodCustom"] = None, - service_account_token_settings: Optional["_models.BrokerAuthenticatorMethodSat"] = None, - x509_settings: Optional["_models.BrokerAuthenticatorMethodX509"] = None, + method: Union[str, "_models.AuthenticationMethod"], + custom_settings: Optional["_models.AuthenticatorMethodCustom"] = None, + service_account_token_settings: Optional["_models.AuthenticatorMethodSat"] = None, + x509_settings: Optional["_models.AuthenticatorMethodX509"] = None, ) -> None: ... @overload @@ -467,11 +291,11 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BrokerAuthenticatorMethodSat(_model_base.Model): +class AuthenticatorMethodSat(_model_base.Model): """Service Account Token for BrokerAuthentication. @@ -496,11 +320,11 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BrokerAuthenticatorMethodX509(_model_base.Model): +class AuthenticatorMethodX509(_model_base.Model): """X509 for BrokerAuthentication. :ivar authorization_attributes: X509 authorization attributes properties. @@ -532,31 +356,33 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BrokerAuthenticatorMethodX509Attributes(_model_base.Model): - """BrokerAuthenticatorMethodX509Attributes properties. - +class AuthorizationConfig(_model_base.Model): + """Broker AuthorizationConfig properties. - :ivar attributes: Attributes object. Required. - :vartype attributes: dict[str, str] - :ivar subject: Subject of the X509 attribute. Required. - :vartype subject: str + :ivar cache: Enable caching of the authorization rules. Known values are: "Enabled" and + "Disabled". + :vartype cache: str or ~azure.mgmt.iotoperations.models.OperationalMode + :ivar rules: The authorization rules to follow. If no rule is set, but Authorization Resource + is used that would mean DenyAll. + :vartype rules: list[~azure.mgmt.iotoperations.models.AuthorizationRule] """ - attributes: Dict[str, str] = rest_field() - """Attributes object. Required.""" - subject: str = rest_field() - """Subject of the X509 attribute. Required.""" + cache: Optional[Union[str, "_models.OperationalMode"]] = rest_field() + """Enable caching of the authorization rules. Known values are: \"Enabled\" and \"Disabled\".""" + rules: Optional[List["_models.AuthorizationRule"]] = rest_field() + """The authorization rules to follow. If no rule is set, but Authorization Resource is used that + would mean DenyAll.""" @overload def __init__( self, *, - attributes: Dict[str, str], - subject: str, + cache: Optional[Union[str, "_models.OperationalMode"]] = None, + rules: Optional[List["_models.AuthorizationRule"]] = None, ) -> None: ... @overload @@ -566,12 +392,12 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BrokerAuthorizationProperties(_model_base.Model): - """BrokerAuthorization Resource properties. +class AuthorizationProperties(_model_base.Model): + """Authorization Resource properties. Readonly variables are only populated by the server, and will be ignored when sending a request. @@ -606,11 +432,11 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BrokerAuthorizationResource(ProxyResource): +class AuthorizationResource(ProxyResource): """Instance broker authorizations resource. Readonly variables are only populated by the server, and will be ignored when sending a request. @@ -628,12 +454,12 @@ class BrokerAuthorizationResource(ProxyResource): information. :vartype system_data: ~azure.mgmt.iotoperations.models.SystemData :ivar properties: The resource-specific properties for this resource. - :vartype properties: ~azure.mgmt.iotoperations.models.BrokerAuthorizationProperties + :vartype properties: ~azure.mgmt.iotoperations.models.AuthorizationProperties :ivar extended_location: Edge location of the resource. Required. :vartype extended_location: ~azure.mgmt.iotoperations.models.ExtendedLocation """ - properties: Optional["_models.BrokerAuthorizationProperties"] = rest_field() + properties: Optional["_models.AuthorizationProperties"] = rest_field() """The resource-specific properties for this resource.""" extended_location: "_models.ExtendedLocation" = rest_field(name="extendedLocation", visibility=["read", "create"]) """Edge location of the resource. Required.""" @@ -643,7 +469,7 @@ def __init__( self, *, extended_location: "_models.ExtendedLocation", - properties: Optional["_models.BrokerAuthorizationProperties"] = None, + properties: Optional["_models.AuthorizationProperties"] = None, ) -> None: ... @overload @@ -653,40 +479,36 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BrokerDiagnostics(_model_base.Model): - """Broker Diagnostic Setting properties. +class AuthorizationRule(_model_base.Model): + """AuthorizationConfig Rule Properties. - :ivar logs: Diagnostic log settings for the resource. - :vartype logs: ~azure.mgmt.iotoperations.models.DiagnosticsLogs - :ivar metrics: The metrics settings for the resource. - :vartype metrics: ~azure.mgmt.iotoperations.models.Metrics - :ivar self_check: The self check properties. - :vartype self_check: ~azure.mgmt.iotoperations.models.SelfCheck - :ivar traces: The trace properties. - :vartype traces: ~azure.mgmt.iotoperations.models.Traces + + :ivar broker_resources: Give access to Broker methods and topics. Required. + :vartype broker_resources: list[~azure.mgmt.iotoperations.models.BrokerResourceRule] + :ivar principals: Give access to clients based on the following properties. Required. + :vartype principals: ~azure.mgmt.iotoperations.models.PrincipalDefinition + :ivar state_store_resources: Give access to state store resources. + :vartype state_store_resources: list[~azure.mgmt.iotoperations.models.StateStoreResourceRule] """ - logs: Optional["_models.DiagnosticsLogs"] = rest_field() - """Diagnostic log settings for the resource.""" - metrics: Optional["_models.Metrics"] = rest_field() - """The metrics settings for the resource.""" - self_check: Optional["_models.SelfCheck"] = rest_field(name="selfCheck") - """The self check properties.""" - traces: Optional["_models.Traces"] = rest_field() - """The trace properties.""" + broker_resources: List["_models.BrokerResourceRule"] = rest_field(name="brokerResources") + """Give access to Broker methods and topics. Required.""" + principals: "_models.PrincipalDefinition" = rest_field() + """Give access to clients based on the following properties. Required.""" + state_store_resources: Optional[List["_models.StateStoreResourceRule"]] = rest_field(name="stateStoreResources") + """Give access to state store resources.""" @overload def __init__( self, *, - logs: Optional["_models.DiagnosticsLogs"] = None, - metrics: Optional["_models.Metrics"] = None, - self_check: Optional["_models.SelfCheck"] = None, - traces: Optional["_models.Traces"] = None, + broker_resources: List["_models.BrokerResourceRule"], + principals: "_models.PrincipalDefinition", + state_store_resources: Optional[List["_models.StateStoreResourceRule"]] = None, ) -> None: ... @overload @@ -696,49 +518,70 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BrokerListenerProperties(_model_base.Model): - """Defines a Broker listener. A listener is a collection of ports on which the broker accepts - connections from clients. +class BackendChain(_model_base.Model): + """Desired properties of the backend instances of the broker. - Readonly variables are only populated by the server, and will be ignored when sending a request. + :ivar partitions: The desired number of physical backend partitions. Required. + :vartype partitions: int + :ivar redundancy_factor: The desired numbers of backend replicas (pods) in a physical + partition. Required. + :vartype redundancy_factor: int + :ivar workers: Number of logical backend workers per replica (pod). + :vartype workers: int + """ - :ivar service_name: Kubernetes Service name of this listener. - :vartype service_name: str - :ivar ports: Ports on which this listener accepts client connections. Required. - :vartype ports: list[~azure.mgmt.iotoperations.models.ListenerPort] - :ivar service_type: Kubernetes Service type of this listener. Known values are: "ClusterIp", - "LoadBalancer", and "NodePort". - :vartype service_type: str or ~azure.mgmt.iotoperations.models.ServiceType - :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". - :vartype provisioning_state: str or ~azure.mgmt.iotoperations.models.ProvisioningState + partitions: int = rest_field() + """The desired number of physical backend partitions. Required.""" + redundancy_factor: int = rest_field(name="redundancyFactor") + """The desired numbers of backend replicas (pods) in a physical partition. Required.""" + workers: Optional[int] = rest_field() + """Number of logical backend workers per replica (pod).""" + + @overload + def __init__( + self, + *, + partitions: int, + redundancy_factor: int, + workers: Optional[int] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BatchingConfiguration(_model_base.Model): + """Batching configuration. + + :ivar latency_seconds: Batching latency in seconds. + :vartype latency_seconds: int + :ivar max_messages: Maximum number of messages in a batch. + :vartype max_messages: int """ - service_name: Optional[str] = rest_field(name="serviceName") - """Kubernetes Service name of this listener.""" - ports: List["_models.ListenerPort"] = rest_field() - """Ports on which this listener accepts client connections. Required.""" - service_type: Optional[Union[str, "_models.ServiceType"]] = rest_field(name="serviceType") - """Kubernetes Service type of this listener. Known values are: \"ClusterIp\", \"LoadBalancer\", - and \"NodePort\".""" - provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( - name="provisioningState", visibility=["read"] - ) - """The status of the last operation. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", - \"Provisioning\", \"Updating\", \"Deleting\", and \"Accepted\".""" + latency_seconds: Optional[int] = rest_field(name="latencySeconds") + """Batching latency in seconds.""" + max_messages: Optional[int] = rest_field(name="maxMessages") + """Maximum number of messages in a batch.""" @overload def __init__( self, *, - ports: List["_models.ListenerPort"], - service_name: Optional[str] = None, - service_type: Optional[Union[str, "_models.ServiceType"]] = None, + latency_seconds: Optional[int] = None, + max_messages: Optional[int] = None, ) -> None: ... @overload @@ -748,44 +591,103 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BrokerListenerResource(ProxyResource): - """Instance broker resource. +class BrokerAuthenticatorCustomAuth(_model_base.Model): + """Custom Authentication properties. - Readonly variables are only populated by the server, and will be ignored when sending a request. + :ivar x509: X509 Custom Auth type details. Required. + :vartype x509: ~azure.mgmt.iotoperations.models.X509ManualCertificate + """ - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.iotoperations.models.SystemData - :ivar properties: The resource-specific properties for this resource. - :vartype properties: ~azure.mgmt.iotoperations.models.BrokerListenerProperties - :ivar extended_location: Edge location of the resource. Required. - :vartype extended_location: ~azure.mgmt.iotoperations.models.ExtendedLocation + x509: "_models.X509ManualCertificate" = rest_field() + """X509 Custom Auth type details. Required.""" + + @overload + def __init__( + self, + *, + x509: "_models.X509ManualCertificate", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BrokerAuthenticatorMethodX509Attributes(_model_base.Model): + """BrokerAuthenticatorMethodX509Attributes properties. + + + :ivar attributes: Attributes object. Required. + :vartype attributes: dict[str, str] + :ivar subject: Subject of the X509 attribute. Required. + :vartype subject: str """ - properties: Optional["_models.BrokerListenerProperties"] = rest_field() - """The resource-specific properties for this resource.""" - extended_location: "_models.ExtendedLocation" = rest_field(name="extendedLocation", visibility=["read", "create"]) - """Edge location of the resource. Required.""" + attributes: Dict[str, str] = rest_field() + """Attributes object. Required.""" + subject: str = rest_field() + """Subject of the X509 attribute. Required.""" @overload def __init__( self, *, - extended_location: "_models.ExtendedLocation", - properties: Optional["_models.BrokerListenerProperties"] = None, + attributes: Dict[str, str], + subject: str, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class BrokerDiagnostics(_model_base.Model): + """Broker Diagnostic Setting properties. + + :ivar logs: Diagnostic log settings for the resource. + :vartype logs: ~azure.mgmt.iotoperations.models.DiagnosticsLogs + :ivar metrics: The metrics settings for the resource. + :vartype metrics: ~azure.mgmt.iotoperations.models.Metrics + :ivar self_check: The self check properties. + :vartype self_check: ~azure.mgmt.iotoperations.models.SelfCheck + :ivar traces: The trace properties. + :vartype traces: ~azure.mgmt.iotoperations.models.Traces + """ + + logs: Optional["_models.DiagnosticsLogs"] = rest_field() + """Diagnostic log settings for the resource.""" + metrics: Optional["_models.Metrics"] = rest_field() + """The metrics settings for the resource.""" + self_check: Optional["_models.SelfCheck"] = rest_field(name="selfCheck") + """The self check properties.""" + traces: Optional["_models.Traces"] = rest_field() + """The trace properties.""" + + @overload + def __init__( + self, + *, + logs: Optional["_models.DiagnosticsLogs"] = None, + metrics: Optional["_models.Metrics"] = None, + self_check: Optional["_models.SelfCheck"] = None, + traces: Optional["_models.Traces"] = None, ) -> None: ... @overload @@ -795,7 +697,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -870,7 +772,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -917,7 +819,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -965,7 +867,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -999,7 +901,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -1060,7 +962,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -1103,7 +1005,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -1144,7 +1046,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -1181,7 +1083,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -1235,49 +1137,44 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DataflowBuiltInTransformationDataset(_model_base.Model): - """Dataflow BuiltIn Transformation dataset properties. +class DataflowEndpointProperties(_model_base.Model): + """DataflowEndpoint Resource properties. NOTE - Only one type of endpoint is supported for one + Resource. + You probably want to use the sub-classes and not this class directly. Known sub-classes are: + DataExplorerEndpoint, DataLakeStorageEndpoint, FabricOneLakeEndpoint, KafkaEndpoint, + LocalStorageEndpoint, MqttEndpoint - :ivar key: The key of the dataset. Required. - :vartype key: str - :ivar description: A user provided optional description of the dataset. - :vartype description: str - :ivar schema_ref: The reference to the schema that describes the dataset. Allowed: JSON - Schema/draft-7. - :vartype schema_ref: str - :ivar inputs: List of fields for enriching from the Broker State Store. Required. - :vartype inputs: list[str] - :ivar expression: Condition to enrich data from Broker State Store. Example: $1 < 0 || $1 > $2 - (Assuming inputs section $1 and $2 are provided). - :vartype expression: str + Readonly variables are only populated by the server, and will be ignored when sending a request. + + + :ivar endpoint_type: Endpoint Type. Required. Known values are: "DataExplorer", + "DataLakeStorage", "FabricOneLake", "Kafka", "LocalStorage", and "Mqtt". + :vartype endpoint_type: str or ~azure.mgmt.iotoperations.models.EndpointType + :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + :vartype provisioning_state: str or ~azure.mgmt.iotoperations.models.ProvisioningState """ - key: str = rest_field() - """The key of the dataset. Required.""" - description: Optional[str] = rest_field() - """A user provided optional description of the dataset.""" - schema_ref: Optional[str] = rest_field(name="schemaRef") - """The reference to the schema that describes the dataset. Allowed: JSON Schema/draft-7.""" - inputs: List[str] = rest_field() - """List of fields for enriching from the Broker State Store. Required.""" - expression: Optional[str] = rest_field() - """Condition to enrich data from Broker State Store. Example: $1 < 0 || $1 > $2 (Assuming inputs - section $1 and $2 are provided).""" + __mapping__: Dict[str, _model_base.Model] = {} + endpoint_type: str = rest_discriminator(name="endpointType") + """Endpoint Type. Required. Known values are: \"DataExplorer\", \"DataLakeStorage\", + \"FabricOneLake\", \"Kafka\", \"LocalStorage\", and \"Mqtt\".""" + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The status of the last operation. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", + \"Provisioning\", \"Updating\", \"Deleting\", and \"Accepted\".""" @overload def __init__( self, *, - key: str, - inputs: List[str], - description: Optional[str] = None, - schema_ref: Optional[str] = None, - expression: Optional[str] = None, + endpoint_type: str, ) -> None: ... @overload @@ -1287,45 +1184,35 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DataflowBuiltInTransformationFilter(_model_base.Model): - """Dataflow BuiltIn Transformation filter properties. +class DataExplorerEndpoint(DataflowEndpointProperties, discriminator="DataExplorer"): + """Azure Data Explorer endpoint. + Readonly variables are only populated by the server, and will be ignored when sending a request. - :ivar type: The type of dataflow operation. "Filter" - :vartype type: str or ~azure.mgmt.iotoperations.models.FilterType - :ivar description: A user provided optional description of the filter. - :vartype description: str - :ivar inputs: List of fields for filtering in JSON path expression. Required. - :vartype inputs: list[str] - :ivar expression: Condition to filter data. Can reference input fields with {n} where n is the - index of the input field starting from 1. Example: $1 < 0 || $1 > $2 (Assuming inputs section - $1 and $2 are provided). Required. - :vartype expression: str + + :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + :vartype provisioning_state: str or ~azure.mgmt.iotoperations.models.ProvisioningState + :ivar endpoint_type: Endpoint Type. Required. Azure Data Explorer Type + :vartype endpoint_type: str or ~azure.mgmt.iotoperations.models.DATA_EXPLORER + :ivar data_explorer_settings: Azure Data Explorer endpoint. Required. + :vartype data_explorer_settings: ~azure.mgmt.iotoperations.models.DataExplorerSettings """ - type: Optional[Union[str, "_models.FilterType"]] = rest_field() - """The type of dataflow operation. \"Filter\"""" - description: Optional[str] = rest_field() - """A user provided optional description of the filter.""" - inputs: List[str] = rest_field() - """List of fields for filtering in JSON path expression. Required.""" - expression: str = rest_field() - """Condition to filter data. Can reference input fields with {n} where n is the index of the input - field starting from 1. Example: $1 < 0 || $1 > $2 (Assuming inputs section $1 and $2 are - provided). Required.""" + endpoint_type: Literal[EndpointType.DATA_EXPLORER] = rest_discriminator(name="endpointType") # type: ignore + """Endpoint Type. Required. Azure Data Explorer Type""" + data_explorer_settings: "_models.DataExplorerSettings" = rest_field(name="dataExplorerSettings") + """Azure Data Explorer endpoint. Required.""" @overload def __init__( self, *, - inputs: List[str], - expression: str, - type: Optional[Union[str, "_models.FilterType"]] = None, - description: Optional[str] = None, + data_explorer_settings: "_models.DataExplorerSettings", ) -> None: ... @overload @@ -1335,24 +1222,173 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, endpoint_type=EndpointType.DATA_EXPLORER, **kwargs) -class DataflowBuiltInTransformationMap(_model_base.Model): - """Dataflow BuiltIn Transformation map properties. +class DataExplorerSettings(_model_base.Model): + """Azure Data Explorer endpoint properties. - :ivar type: Type of transformation. Known values are: "NewProperties", "Rename", "Compute", - "PassThrough", and "BuiltInFunction". - :vartype type: str or ~azure.mgmt.iotoperations.models.DataflowMappingType - :ivar description: A user provided optional description of the mapping function. - :vartype description: str - :ivar inputs: List of fields for mapping in JSON path expression. Required. - :vartype inputs: list[str] - :ivar expression: Modify the inputs field(s) to the final output field. Example: $1 * 2.2 - (Assuming inputs section $1 is provided). - :vartype expression: str + :ivar authentication: Authentication configuration. NOTE - only authentication property is + allowed per entry. Required. + :vartype authentication: + ~azure.mgmt.iotoperations.models.DataflowEndpointDataExplorerAuthentication + :ivar database: Database name. Required. + :vartype database: str + :ivar host: Host of the Azure Data Explorer in the form of + :code:``.:code:``.kusto.windows.net . Required. + :vartype host: str + :ivar batching: Azure Data Explorer endpoint batching configuration. + :vartype batching: ~azure.mgmt.iotoperations.models.BatchingConfiguration + """ + + authentication: "_models.DataflowEndpointDataExplorerAuthentication" = rest_field() + """Authentication configuration. NOTE - only authentication property is allowed per entry. + Required.""" + database: str = rest_field() + """Database name. Required.""" + host: str = rest_field() + """Host of the Azure Data Explorer in the form of + :code:``.:code:``.kusto.windows.net . Required.""" + batching: Optional["_models.BatchingConfiguration"] = rest_field() + """Azure Data Explorer endpoint batching configuration.""" + + @overload + def __init__( + self, + *, + authentication: "_models.DataflowEndpointDataExplorerAuthentication", + database: str, + host: str, + batching: Optional["_models.BatchingConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataflowBuiltInTransformationDataset(_model_base.Model): + """Dataflow BuiltIn Transformation dataset properties. + + + :ivar key: The key of the dataset. Required. + :vartype key: str + :ivar description: A user provided optional description of the dataset. + :vartype description: str + :ivar schema_ref: The reference to the schema that describes the dataset. Allowed: JSON + Schema/draft-7. + :vartype schema_ref: str + :ivar inputs: List of fields for enriching from the Broker State Store. Required. + :vartype inputs: list[str] + :ivar expression: Condition to enrich data from Broker State Store. Example: $1 < 0 || $1 > $2 + (Assuming inputs section $1 and $2 are provided). + :vartype expression: str + """ + + key: str = rest_field() + """The key of the dataset. Required.""" + description: Optional[str] = rest_field() + """A user provided optional description of the dataset.""" + schema_ref: Optional[str] = rest_field(name="schemaRef") + """The reference to the schema that describes the dataset. Allowed: JSON Schema/draft-7.""" + inputs: List[str] = rest_field() + """List of fields for enriching from the Broker State Store. Required.""" + expression: Optional[str] = rest_field() + """Condition to enrich data from Broker State Store. Example: $1 < 0 || $1 > $2 (Assuming inputs + section $1 and $2 are provided).""" + + @overload + def __init__( + self, + *, + key: str, + inputs: List[str], + description: Optional[str] = None, + schema_ref: Optional[str] = None, + expression: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataflowBuiltInTransformationFilter(_model_base.Model): + """Dataflow BuiltIn Transformation filter properties. + + + :ivar type: The type of dataflow operation. "Filter" + :vartype type: str or ~azure.mgmt.iotoperations.models.FilterType + :ivar description: A user provided optional description of the filter. + :vartype description: str + :ivar inputs: List of fields for filtering in JSON path expression. Required. + :vartype inputs: list[str] + :ivar expression: Condition to filter data. Can reference input fields with {n} where n is the + index of the input field starting from 1. Example: $1 < 0 || $1 > $2 (Assuming inputs section + $1 and $2 are provided). Required. + :vartype expression: str + """ + + type: Optional[Union[str, "_models.FilterType"]] = rest_field() + """The type of dataflow operation. \"Filter\"""" + description: Optional[str] = rest_field() + """A user provided optional description of the filter.""" + inputs: List[str] = rest_field() + """List of fields for filtering in JSON path expression. Required.""" + expression: str = rest_field() + """Condition to filter data. Can reference input fields with {n} where n is the index of the input + field starting from 1. Example: $1 < 0 || $1 > $2 (Assuming inputs section $1 and $2 are + provided). Required.""" + + @overload + def __init__( + self, + *, + inputs: List[str], + expression: str, + type: Optional[Union[str, "_models.FilterType"]] = None, + description: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataflowBuiltInTransformationMap(_model_base.Model): + """Dataflow BuiltIn Transformation map properties. + + + :ivar type: Type of transformation. Known values are: "NewProperties", "Rename", "Compute", + "PassThrough", and "BuiltInFunction". + :vartype type: str or ~azure.mgmt.iotoperations.models.DataflowMappingType + :ivar description: A user provided optional description of the mapping function. + :vartype description: str + :ivar inputs: List of fields for mapping in JSON path expression. Required. + :vartype inputs: list[str] + :ivar expression: Modify the inputs field(s) to the final output field. Example: $1 * 2.2 + (Assuming inputs section $1 is provided). + :vartype expression: str :ivar output: Where and how the input fields to be organized in the output record. Required. :vartype output: str """ @@ -1388,7 +1424,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -1444,7 +1480,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -1482,7 +1518,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -1511,7 +1547,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -1548,7 +1584,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -1579,7 +1615,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -1609,7 +1645,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -1649,7 +1685,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -1678,56 +1714,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) - - -class DataflowEndpointDataExplorer(_model_base.Model): - """Azure Data Explorer endpoint properties. - - - :ivar authentication: Authentication configuration. NOTE - only authentication property is - allowed per entry. Required. - :vartype authentication: - ~azure.mgmt.iotoperations.models.DataflowEndpointDataExplorerAuthentication - :ivar database: Database name. Required. - :vartype database: str - :ivar host: Host of the Azure Data Explorer in the form of - :code:``.:code:``.kusto.windows.net . Required. - :vartype host: str - :ivar batching: Azure Data Explorer endpoint batching configuration. - :vartype batching: ~azure.mgmt.iotoperations.models.BatchingConfiguration - """ - - authentication: "_models.DataflowEndpointDataExplorerAuthentication" = rest_field() - """Authentication configuration. NOTE - only authentication property is allowed per entry. - Required.""" - database: str = rest_field() - """Database name. Required.""" - host: str = rest_field() - """Host of the Azure Data Explorer in the form of - :code:``.:code:``.kusto.windows.net . Required.""" - batching: Optional["_models.BatchingConfiguration"] = rest_field() - """Azure Data Explorer endpoint batching configuration.""" - - @overload - def __init__( - self, - *, - authentication: "_models.DataflowEndpointDataExplorerAuthentication", - database: str, - host: str, - batching: Optional["_models.BatchingConfiguration"] = None, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -1780,50 +1767,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) - - -class DataflowEndpointDataLakeStorage(_model_base.Model): - """Azure Data Lake endpoint properties. - - - :ivar authentication: Authentication configuration. NOTE - only authentication property is - allowed per entry. Required. - :vartype authentication: - ~azure.mgmt.iotoperations.models.DataflowEndpointDataLakeStorageAuthentication - :ivar host: Host of the Azure Data Lake in the form of :code:``.blob.core.windows.net - . Required. - :vartype host: str - :ivar batching: Azure Data Lake endpoint batching configuration. - :vartype batching: ~azure.mgmt.iotoperations.models.BatchingConfiguration - """ - - authentication: "_models.DataflowEndpointDataLakeStorageAuthentication" = rest_field() - """Authentication configuration. NOTE - only authentication property is allowed per entry. - Required.""" - host: str = rest_field() - """Host of the Azure Data Lake in the form of :code:``.blob.core.windows.net . Required.""" - batching: Optional["_models.BatchingConfiguration"] = rest_field() - """Azure Data Lake endpoint batching configuration.""" - - @overload - def __init__( - self, - *, - authentication: "_models.DataflowEndpointDataLakeStorageAuthentication", - host: str, - batching: Optional["_models.BatchingConfiguration"] = None, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -1884,70 +1828,13 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DataflowEndpointFabricOneLake(_model_base.Model): - """Microsoft Fabric endpoint properties. - - - :ivar authentication: Authentication configuration. NOTE - only one authentication property is - allowed per entry. Required. - :vartype authentication: - ~azure.mgmt.iotoperations.models.DataflowEndpointFabricOneLakeAuthentication - :ivar names: Names of the workspace and lakehouse. Required. - :vartype names: ~azure.mgmt.iotoperations.models.DataflowEndpointFabricOneLakeNames - :ivar one_lake_path_type: Type of location of the data in the workspace. Can be either tables - or files. Required. Known values are: "Files" and "Tables". - :vartype one_lake_path_type: str or - ~azure.mgmt.iotoperations.models.DataflowEndpointFabricPathType - :ivar host: Host of the Microsoft Fabric in the form of - https://:code:``.fabric.microsoft.com. Required. - :vartype host: str - :ivar batching: Batching configuration. - :vartype batching: ~azure.mgmt.iotoperations.models.BatchingConfiguration - """ - - authentication: "_models.DataflowEndpointFabricOneLakeAuthentication" = rest_field() - """Authentication configuration. NOTE - only one authentication property is allowed per entry. - Required.""" - names: "_models.DataflowEndpointFabricOneLakeNames" = rest_field() - """Names of the workspace and lakehouse. Required.""" - one_lake_path_type: Union[str, "_models.DataflowEndpointFabricPathType"] = rest_field(name="oneLakePathType") - """Type of location of the data in the workspace. Can be either tables or files. Required. Known - values are: \"Files\" and \"Tables\".""" - host: str = rest_field() - """Host of the Microsoft Fabric in the form of https://:code:``.fabric.microsoft.com. - Required.""" - batching: Optional["_models.BatchingConfiguration"] = rest_field() - """Batching configuration.""" - - @overload - def __init__( - self, - *, - authentication: "_models.DataflowEndpointFabricOneLakeAuthentication", - names: "_models.DataflowEndpointFabricOneLakeNames", - one_lake_path_type: Union[str, "_models.DataflowEndpointFabricPathType"], - host: str, - batching: Optional["_models.BatchingConfiguration"] = None, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) - - -class DataflowEndpointFabricOneLakeAuthentication(_model_base.Model): # pylint: disable=name-too-long - """Microsoft Fabric endpoint. Authentication properties. NOTE - Only one method is supported for - one entry. +class DataflowEndpointFabricOneLakeAuthentication(_model_base.Model): # pylint: disable=name-too-long + """Microsoft Fabric endpoint. Authentication properties. NOTE - Only one method is supported for + one entry. :ivar method: Mode of Authentication. Required. Known values are: @@ -1994,7 +1881,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -2028,100 +1915,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) - - -class DataflowEndpointKafka(_model_base.Model): - """Kafka endpoint properties. - - - :ivar authentication: Authentication configuration. NOTE - only authentication property is - allowed per entry. Required. - :vartype authentication: ~azure.mgmt.iotoperations.models.DataflowEndpointKafkaAuthentication - :ivar consumer_group_id: Consumer group ID. - :vartype consumer_group_id: str - :ivar host: Kafka endpoint host. Required. - :vartype host: str - :ivar batching: Batching configuration. - :vartype batching: ~azure.mgmt.iotoperations.models.DataflowEndpointKafkaBatching - :ivar copy_mqtt_properties: Copy Broker properties. No effect if the endpoint is used as a - source or if the dataflow doesn't have an Broker source. Known values are: "Enabled" and - "Disabled". - :vartype copy_mqtt_properties: str or ~azure.mgmt.iotoperations.models.OperationalMode - :ivar compression: Compression. Can be none, gzip, lz4, or snappy. No effect if the endpoint is - used as a source. Known values are: "None", "Gzip", "Snappy", and "Lz4". - :vartype compression: str or ~azure.mgmt.iotoperations.models.DataflowEndpointKafkaCompression - :ivar kafka_acks: Kafka acks. Can be all, one, or zero. No effect if the endpoint is used as a - source. Known values are: "Zero", "One", and "All". - :vartype kafka_acks: str or ~azure.mgmt.iotoperations.models.DataflowEndpointKafkaAcks - :ivar partition_strategy: Partition handling strategy. Can be default or static. No effect if - the endpoint is used as a source. Known values are: "Default", "Static", "Topic", and - "Property". - :vartype partition_strategy: str or - ~azure.mgmt.iotoperations.models.DataflowEndpointKafkaPartitionStrategy - :ivar tls: TLS configuration. - :vartype tls: ~azure.mgmt.iotoperations.models.TlsProperties - :ivar cloud_event_attributes: Cloud event mapping config. Known values are: "Propagate" and - "CreateOrRemap". - :vartype cloud_event_attributes: str or - ~azure.mgmt.iotoperations.models.CloudEventAttributeType - """ - - authentication: "_models.DataflowEndpointKafkaAuthentication" = rest_field() - """Authentication configuration. NOTE - only authentication property is allowed per entry. - Required.""" - consumer_group_id: Optional[str] = rest_field(name="consumerGroupId") - """Consumer group ID.""" - host: str = rest_field() - """Kafka endpoint host. Required.""" - batching: Optional["_models.DataflowEndpointKafkaBatching"] = rest_field() - """Batching configuration.""" - copy_mqtt_properties: Optional[Union[str, "_models.OperationalMode"]] = rest_field(name="copyMqttProperties") - """Copy Broker properties. No effect if the endpoint is used as a source or if the dataflow - doesn't have an Broker source. Known values are: \"Enabled\" and \"Disabled\".""" - compression: Optional[Union[str, "_models.DataflowEndpointKafkaCompression"]] = rest_field() - """Compression. Can be none, gzip, lz4, or snappy. No effect if the endpoint is used as a source. - Known values are: \"None\", \"Gzip\", \"Snappy\", and \"Lz4\".""" - kafka_acks: Optional[Union[str, "_models.DataflowEndpointKafkaAcks"]] = rest_field(name="kafkaAcks") - """Kafka acks. Can be all, one, or zero. No effect if the endpoint is used as a source. Known - values are: \"Zero\", \"One\", and \"All\".""" - partition_strategy: Optional[Union[str, "_models.DataflowEndpointKafkaPartitionStrategy"]] = rest_field( - name="partitionStrategy" - ) - """Partition handling strategy. Can be default or static. No effect if the endpoint is used as a - source. Known values are: \"Default\", \"Static\", \"Topic\", and \"Property\".""" - tls: Optional["_models.TlsProperties"] = rest_field() - """TLS configuration.""" - cloud_event_attributes: Optional[Union[str, "_models.CloudEventAttributeType"]] = rest_field( - name="cloudEventAttributes" - ) - """Cloud event mapping config. Known values are: \"Propagate\" and \"CreateOrRemap\".""" - - @overload - def __init__( - self, - *, - authentication: "_models.DataflowEndpointKafkaAuthentication", - host: str, - consumer_group_id: Optional[str] = None, - batching: Optional["_models.DataflowEndpointKafkaBatching"] = None, - copy_mqtt_properties: Optional[Union[str, "_models.OperationalMode"]] = None, - compression: Optional[Union[str, "_models.DataflowEndpointKafkaCompression"]] = None, - kafka_acks: Optional[Union[str, "_models.DataflowEndpointKafkaAcks"]] = None, - partition_strategy: Optional[Union[str, "_models.DataflowEndpointKafkaPartitionStrategy"]] = None, - tls: Optional["_models.TlsProperties"] = None, - cloud_event_attributes: Optional[Union[str, "_models.CloudEventAttributeType"]] = None, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -2188,7 +1982,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -2231,26 +2025,69 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DataflowEndpointLocalStorage(_model_base.Model): - """Local persistent volume endpoint properties. +class DataflowEndpointMqttAuthentication(_model_base.Model): + """Mqtt endpoint Authentication properties. NOTE - only authentication property is allowed per + entry. - :ivar persistent_volume_claim_ref: Persistent volume claim name. Required. - :vartype persistent_volume_claim_ref: str + :ivar method: Mode of Authentication. Required. Known values are: + "SystemAssignedManagedIdentity", "UserAssignedManagedIdentity", "ServiceAccountToken", + "X509Certificate", and "Anonymous". + :vartype method: str or ~azure.mgmt.iotoperations.models.MqttAuthMethod + :ivar system_assigned_managed_identity_settings: System-assigned managed identity + authentication. + :vartype system_assigned_managed_identity_settings: + ~azure.mgmt.iotoperations.models.DataflowEndpointAuthenticationSystemAssignedManagedIdentity + :ivar user_assigned_managed_identity_settings: User-assigned managed identity authentication. + :vartype user_assigned_managed_identity_settings: + ~azure.mgmt.iotoperations.models.DataflowEndpointAuthenticationUserAssignedManagedIdentity + :ivar service_account_token_settings: Kubernetes service account token authentication. Default + audience if not set is aio-internal. + :vartype service_account_token_settings: + ~azure.mgmt.iotoperations.models.DataflowEndpointAuthenticationServiceAccountToken + :ivar x509_certificate_settings: X.509 certificate authentication. + :vartype x509_certificate_settings: + ~azure.mgmt.iotoperations.models.DataflowEndpointAuthenticationX509 """ - persistent_volume_claim_ref: str = rest_field(name="persistentVolumeClaimRef") - """Persistent volume claim name. Required.""" + method: Union[str, "_models.MqttAuthMethod"] = rest_field() + """Mode of Authentication. Required. Known values are: \"SystemAssignedManagedIdentity\", + \"UserAssignedManagedIdentity\", \"ServiceAccountToken\", \"X509Certificate\", and + \"Anonymous\".""" + system_assigned_managed_identity_settings: Optional[ + "_models.DataflowEndpointAuthenticationSystemAssignedManagedIdentity" + ] = rest_field(name="systemAssignedManagedIdentitySettings") + """System-assigned managed identity authentication.""" + user_assigned_managed_identity_settings: Optional[ + "_models.DataflowEndpointAuthenticationUserAssignedManagedIdentity" + ] = rest_field(name="userAssignedManagedIdentitySettings") + """User-assigned managed identity authentication.""" + service_account_token_settings: Optional["_models.DataflowEndpointAuthenticationServiceAccountToken"] = rest_field( + name="serviceAccountTokenSettings" + ) + """Kubernetes service account token authentication. Default audience if not set is aio-internal.""" + x509_certificate_settings: Optional["_models.DataflowEndpointAuthenticationX509"] = rest_field( + name="x509CertificateSettings" + ) + """X.509 certificate authentication.""" @overload def __init__( self, *, - persistent_volume_claim_ref: str, + method: Union[str, "_models.MqttAuthMethod"], + system_assigned_managed_identity_settings: Optional[ + "_models.DataflowEndpointAuthenticationSystemAssignedManagedIdentity" + ] = None, + user_assigned_managed_identity_settings: Optional[ + "_models.DataflowEndpointAuthenticationUserAssignedManagedIdentity" + ] = None, + service_account_token_settings: Optional["_models.DataflowEndpointAuthenticationServiceAccountToken"] = None, + x509_certificate_settings: Optional["_models.DataflowEndpointAuthenticationX509"] = None, ) -> None: ... @overload @@ -2260,273 +2097,31 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class DataflowEndpointMqtt(_model_base.Model): # pylint: disable=too-many-instance-attributes - """Broker endpoint properties. +class DataflowEndpointResource(ProxyResource): + """Instance dataflowEndpoint resource. + Readonly variables are only populated by the server, and will be ignored when sending a request. - :ivar authentication: authentication properties. DEFAULT: kubernetes.audience=aio-internal. - NOTE - Enum field only property is allowed. Required. - :vartype authentication: ~azure.mgmt.iotoperations.models.DataflowEndpointMqttAuthentication - :ivar client_id_prefix: Client ID prefix. Client ID generated by the dataflow is - :code:``-TBD. Optional; no prefix if omitted. - :vartype client_id_prefix: str - :ivar host: Host of the Broker in the form of :code:``::code:``. Optional; - connects to Broker if omitted. - :vartype host: str - :ivar protocol: Enable or disable websockets. Known values are: "Mqtt" and "WebSockets". - :vartype protocol: str or ~azure.mgmt.iotoperations.models.BrokerProtocolType - :ivar keep_alive_seconds: Broker KeepAlive for connection in seconds. - :vartype keep_alive_seconds: int - :ivar retain: Whether or not to keep the retain setting. Known values are: "Keep" and "Never". - :vartype retain: str or ~azure.mgmt.iotoperations.models.MqttRetainType - :ivar max_inflight_messages: The max number of messages to keep in flight. For subscribe, this - is the receive maximum. For publish, this is the maximum number of messages to send before - waiting for an ack. - :vartype max_inflight_messages: int - :ivar qos: Qos for Broker connection. - :vartype qos: int - :ivar session_expiry_seconds: Session expiry in seconds. - :vartype session_expiry_seconds: int - :ivar tls: TLS configuration. - :vartype tls: ~azure.mgmt.iotoperations.models.TlsProperties - :ivar cloud_event_attributes: Cloud event mapping config. Known values are: "Propagate" and - "CreateOrRemap". - :vartype cloud_event_attributes: str or - ~azure.mgmt.iotoperations.models.CloudEventAttributeType - """ - - authentication: "_models.DataflowEndpointMqttAuthentication" = rest_field() - """authentication properties. DEFAULT: kubernetes.audience=aio-internal. NOTE - Enum field only - property is allowed. Required.""" - client_id_prefix: Optional[str] = rest_field(name="clientIdPrefix") - """Client ID prefix. Client ID generated by the dataflow is :code:``-TBD. Optional; no - prefix if omitted.""" - host: Optional[str] = rest_field() - """Host of the Broker in the form of :code:``::code:``. Optional; connects to - Broker if omitted.""" - protocol: Optional[Union[str, "_models.BrokerProtocolType"]] = rest_field() - """Enable or disable websockets. Known values are: \"Mqtt\" and \"WebSockets\".""" - keep_alive_seconds: Optional[int] = rest_field(name="keepAliveSeconds") - """Broker KeepAlive for connection in seconds.""" - retain: Optional[Union[str, "_models.MqttRetainType"]] = rest_field() - """Whether or not to keep the retain setting. Known values are: \"Keep\" and \"Never\".""" - max_inflight_messages: Optional[int] = rest_field(name="maxInflightMessages") - """The max number of messages to keep in flight. For subscribe, this is the receive maximum. For - publish, this is the maximum number of messages to send before waiting for an ack.""" - qos: Optional[int] = rest_field() - """Qos for Broker connection.""" - session_expiry_seconds: Optional[int] = rest_field(name="sessionExpirySeconds") - """Session expiry in seconds.""" - tls: Optional["_models.TlsProperties"] = rest_field() - """TLS configuration.""" - cloud_event_attributes: Optional[Union[str, "_models.CloudEventAttributeType"]] = rest_field( - name="cloudEventAttributes" - ) - """Cloud event mapping config. Known values are: \"Propagate\" and \"CreateOrRemap\".""" - - @overload - def __init__( - self, - *, - authentication: "_models.DataflowEndpointMqttAuthentication", - client_id_prefix: Optional[str] = None, - host: Optional[str] = None, - protocol: Optional[Union[str, "_models.BrokerProtocolType"]] = None, - keep_alive_seconds: Optional[int] = None, - retain: Optional[Union[str, "_models.MqttRetainType"]] = None, - max_inflight_messages: Optional[int] = None, - qos: Optional[int] = None, - session_expiry_seconds: Optional[int] = None, - tls: Optional["_models.TlsProperties"] = None, - cloud_event_attributes: Optional[Union[str, "_models.CloudEventAttributeType"]] = None, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) - - -class DataflowEndpointMqttAuthentication(_model_base.Model): - """Mqtt endpoint Authentication properties. NOTE - only authentication property is allowed per - entry. - - - :ivar method: Mode of Authentication. Required. Known values are: - "SystemAssignedManagedIdentity", "UserAssignedManagedIdentity", "ServiceAccountToken", - "X509Certificate", and "Anonymous". - :vartype method: str or ~azure.mgmt.iotoperations.models.MqttAuthMethod - :ivar system_assigned_managed_identity_settings: System-assigned managed identity - authentication. - :vartype system_assigned_managed_identity_settings: - ~azure.mgmt.iotoperations.models.DataflowEndpointAuthenticationSystemAssignedManagedIdentity - :ivar user_assigned_managed_identity_settings: User-assigned managed identity authentication. - :vartype user_assigned_managed_identity_settings: - ~azure.mgmt.iotoperations.models.DataflowEndpointAuthenticationUserAssignedManagedIdentity - :ivar service_account_token_settings: Kubernetes service account token authentication. Default - audience if not set is aio-internal. - :vartype service_account_token_settings: - ~azure.mgmt.iotoperations.models.DataflowEndpointAuthenticationServiceAccountToken - :ivar x509_certificate_settings: X.509 certificate authentication. - :vartype x509_certificate_settings: - ~azure.mgmt.iotoperations.models.DataflowEndpointAuthenticationX509 - """ - - method: Union[str, "_models.MqttAuthMethod"] = rest_field() - """Mode of Authentication. Required. Known values are: \"SystemAssignedManagedIdentity\", - \"UserAssignedManagedIdentity\", \"ServiceAccountToken\", \"X509Certificate\", and - \"Anonymous\".""" - system_assigned_managed_identity_settings: Optional[ - "_models.DataflowEndpointAuthenticationSystemAssignedManagedIdentity" - ] = rest_field(name="systemAssignedManagedIdentitySettings") - """System-assigned managed identity authentication.""" - user_assigned_managed_identity_settings: Optional[ - "_models.DataflowEndpointAuthenticationUserAssignedManagedIdentity" - ] = rest_field(name="userAssignedManagedIdentitySettings") - """User-assigned managed identity authentication.""" - service_account_token_settings: Optional["_models.DataflowEndpointAuthenticationServiceAccountToken"] = rest_field( - name="serviceAccountTokenSettings" - ) - """Kubernetes service account token authentication. Default audience if not set is aio-internal.""" - x509_certificate_settings: Optional["_models.DataflowEndpointAuthenticationX509"] = rest_field( - name="x509CertificateSettings" - ) - """X.509 certificate authentication.""" - - @overload - def __init__( - self, - *, - method: Union[str, "_models.MqttAuthMethod"], - system_assigned_managed_identity_settings: Optional[ - "_models.DataflowEndpointAuthenticationSystemAssignedManagedIdentity" - ] = None, - user_assigned_managed_identity_settings: Optional[ - "_models.DataflowEndpointAuthenticationUserAssignedManagedIdentity" - ] = None, - service_account_token_settings: Optional["_models.DataflowEndpointAuthenticationServiceAccountToken"] = None, - x509_certificate_settings: Optional["_models.DataflowEndpointAuthenticationX509"] = None, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) - - -class DataflowEndpointProperties(_model_base.Model): - """DataflowEndpoint Resource properties. NOTE - Only one type of endpoint is supported for one - Resource. - - Readonly variables are only populated by the server, and will be ignored when sending a request. - - - :ivar endpoint_type: Endpoint Type. Required. Known values are: "DataExplorer", - "DataLakeStorage", "FabricOneLake", "Kafka", "LocalStorage", and "Mqtt". - :vartype endpoint_type: str or ~azure.mgmt.iotoperations.models.EndpointType - :ivar data_explorer_settings: Azure Data Explorer endpoint. - :vartype data_explorer_settings: ~azure.mgmt.iotoperations.models.DataflowEndpointDataExplorer - :ivar data_lake_storage_settings: Azure Data Lake endpoint. - :vartype data_lake_storage_settings: - ~azure.mgmt.iotoperations.models.DataflowEndpointDataLakeStorage - :ivar fabric_one_lake_settings: Microsoft Fabric endpoint. - :vartype fabric_one_lake_settings: - ~azure.mgmt.iotoperations.models.DataflowEndpointFabricOneLake - :ivar kafka_settings: Kafka endpoint. - :vartype kafka_settings: ~azure.mgmt.iotoperations.models.DataflowEndpointKafka - :ivar local_storage_settings: Local persistent volume endpoint. - :vartype local_storage_settings: ~azure.mgmt.iotoperations.models.DataflowEndpointLocalStorage - :ivar mqtt_settings: Broker endpoint. - :vartype mqtt_settings: ~azure.mgmt.iotoperations.models.DataflowEndpointMqtt - :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", - "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". - :vartype provisioning_state: str or ~azure.mgmt.iotoperations.models.ProvisioningState - """ - - endpoint_type: Union[str, "_models.EndpointType"] = rest_field(name="endpointType") - """Endpoint Type. Required. Known values are: \"DataExplorer\", \"DataLakeStorage\", - \"FabricOneLake\", \"Kafka\", \"LocalStorage\", and \"Mqtt\".""" - data_explorer_settings: Optional["_models.DataflowEndpointDataExplorer"] = rest_field(name="dataExplorerSettings") - """Azure Data Explorer endpoint.""" - data_lake_storage_settings: Optional["_models.DataflowEndpointDataLakeStorage"] = rest_field( - name="dataLakeStorageSettings" - ) - """Azure Data Lake endpoint.""" - fabric_one_lake_settings: Optional["_models.DataflowEndpointFabricOneLake"] = rest_field( - name="fabricOneLakeSettings" - ) - """Microsoft Fabric endpoint.""" - kafka_settings: Optional["_models.DataflowEndpointKafka"] = rest_field(name="kafkaSettings") - """Kafka endpoint.""" - local_storage_settings: Optional["_models.DataflowEndpointLocalStorage"] = rest_field(name="localStorageSettings") - """Local persistent volume endpoint.""" - mqtt_settings: Optional["_models.DataflowEndpointMqtt"] = rest_field(name="mqttSettings") - """Broker endpoint.""" - provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( - name="provisioningState", visibility=["read"] - ) - """The status of the last operation. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", - \"Provisioning\", \"Updating\", \"Deleting\", and \"Accepted\".""" - - @overload - def __init__( - self, - *, - endpoint_type: Union[str, "_models.EndpointType"], - data_explorer_settings: Optional["_models.DataflowEndpointDataExplorer"] = None, - data_lake_storage_settings: Optional["_models.DataflowEndpointDataLakeStorage"] = None, - fabric_one_lake_settings: Optional["_models.DataflowEndpointFabricOneLake"] = None, - kafka_settings: Optional["_models.DataflowEndpointKafka"] = None, - local_storage_settings: Optional["_models.DataflowEndpointLocalStorage"] = None, - mqtt_settings: Optional["_models.DataflowEndpointMqtt"] = None, - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: - """ - :param mapping: raw JSON to initialize the model. - :type mapping: Mapping[str, Any] - """ - - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) - - -class DataflowEndpointResource(ProxyResource): - """Instance dataflowEndpoint resource. - - Readonly variables are only populated by the server, and will be ignored when sending a request. - - - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.iotoperations.models.SystemData - :ivar properties: The resource-specific properties for this resource. - :vartype properties: ~azure.mgmt.iotoperations.models.DataflowEndpointProperties - :ivar extended_location: Edge location of the resource. Required. - :vartype extended_location: ~azure.mgmt.iotoperations.models.ExtendedLocation + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.iotoperations.models.SystemData + :ivar properties: The resource-specific properties for this resource. + :vartype properties: ~azure.mgmt.iotoperations.models.DataflowEndpointProperties + :ivar extended_location: Edge location of the resource. Required. + :vartype extended_location: ~azure.mgmt.iotoperations.models.ExtendedLocation """ properties: Optional["_models.DataflowEndpointProperties"] = rest_field() @@ -2549,7 +2144,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -2606,7 +2201,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -2651,7 +2246,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -2698,7 +2293,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -2746,7 +2341,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -2793,7 +2388,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -2851,7 +2446,88 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class DataLakeStorageEndpoint(DataflowEndpointProperties, discriminator="DataLakeStorage"): + """Azure Data Lake endpoint. + + Readonly variables are only populated by the server, and will be ignored when sending a request. + + + :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + :vartype provisioning_state: str or ~azure.mgmt.iotoperations.models.ProvisioningState + :ivar endpoint_type: Endpoint Type. Required. Azure Data Lake Type + :vartype endpoint_type: str or ~azure.mgmt.iotoperations.models.DATA_LAKE_STORAGE + :ivar data_lake_storage_settings: Azure Data Lake endpoint. Required. + :vartype data_lake_storage_settings: ~azure.mgmt.iotoperations.models.DataLakeStorageSettings + """ + + endpoint_type: Literal[EndpointType.DATA_LAKE_STORAGE] = rest_discriminator(name="endpointType") # type: ignore + """Endpoint Type. Required. Azure Data Lake Type""" + data_lake_storage_settings: "_models.DataLakeStorageSettings" = rest_field(name="dataLakeStorageSettings") + """Azure Data Lake endpoint. Required.""" + + @overload + def __init__( + self, + *, + data_lake_storage_settings: "_models.DataLakeStorageSettings", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, endpoint_type=EndpointType.DATA_LAKE_STORAGE, **kwargs) + + +class DataLakeStorageSettings(_model_base.Model): + """Azure Data Lake endpoint properties. + + + :ivar authentication: Authentication configuration. NOTE - only authentication property is + allowed per entry. Required. + :vartype authentication: + ~azure.mgmt.iotoperations.models.DataflowEndpointDataLakeStorageAuthentication + :ivar host: Host of the Azure Data Lake in the form of :code:``.blob.core.windows.net + . Required. + :vartype host: str + :ivar batching: Azure Data Lake endpoint batching configuration. + :vartype batching: ~azure.mgmt.iotoperations.models.BatchingConfiguration + """ + + authentication: "_models.DataflowEndpointDataLakeStorageAuthentication" = rest_field() + """Authentication configuration. NOTE - only authentication property is allowed per entry. + Required.""" + host: str = rest_field() + """Host of the Azure Data Lake in the form of :code:``.blob.core.windows.net . Required.""" + batching: Optional["_models.BatchingConfiguration"] = rest_field() + """Azure Data Lake endpoint batching configuration.""" + + @overload + def __init__( + self, + *, + authentication: "_models.DataflowEndpointDataLakeStorageAuthentication", + host: str, + batching: Optional["_models.BatchingConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -2879,7 +2555,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -2936,7 +2612,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3013,7 +2689,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3048,22 +2724,117 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class Frontend(_model_base.Model): - """The desired properties of the frontend instances of the Broker. +class FabricOneLakeEndpoint(DataflowEndpointProperties, discriminator="FabricOneLake"): + """Microsoft Fabric endpoint. + Readonly variables are only populated by the server, and will be ignored when sending a request. - :ivar replicas: The desired number of frontend instances (pods). Required. - :vartype replicas: int - :ivar workers: Number of logical frontend workers per instance (pod). - :vartype workers: int - """ - replicas: int = rest_field() - """The desired number of frontend instances (pods). Required.""" + :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + :vartype provisioning_state: str or ~azure.mgmt.iotoperations.models.ProvisioningState + :ivar endpoint_type: Endpoint Type. Required. Microsoft Fabric Type + :vartype endpoint_type: str or ~azure.mgmt.iotoperations.models.FABRIC_ONE_LAKE + :ivar fabric_one_lake_settings: Microsoft Fabric endpoint. Required. + :vartype fabric_one_lake_settings: ~azure.mgmt.iotoperations.models.FabricOneLakeSettings + """ + + endpoint_type: Literal[EndpointType.FABRIC_ONE_LAKE] = rest_discriminator(name="endpointType") # type: ignore + """Endpoint Type. Required. Microsoft Fabric Type""" + fabric_one_lake_settings: "_models.FabricOneLakeSettings" = rest_field(name="fabricOneLakeSettings") + """Microsoft Fabric endpoint. Required.""" + + @overload + def __init__( + self, + *, + fabric_one_lake_settings: "_models.FabricOneLakeSettings", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, endpoint_type=EndpointType.FABRIC_ONE_LAKE, **kwargs) + + +class FabricOneLakeSettings(_model_base.Model): + """Microsoft Fabric endpoint properties. + + + :ivar authentication: Authentication configuration. NOTE - only one authentication property is + allowed per entry. Required. + :vartype authentication: + ~azure.mgmt.iotoperations.models.DataflowEndpointFabricOneLakeAuthentication + :ivar names: Names of the workspace and lakehouse. Required. + :vartype names: ~azure.mgmt.iotoperations.models.DataflowEndpointFabricOneLakeNames + :ivar one_lake_path_type: Type of location of the data in the workspace. Can be either tables + or files. Required. Known values are: "Files" and "Tables". + :vartype one_lake_path_type: str or + ~azure.mgmt.iotoperations.models.DataflowEndpointFabricPathType + :ivar host: Host of the Microsoft Fabric in the form of + https://:code:``.fabric.microsoft.com. Required. + :vartype host: str + :ivar batching: Batching configuration. + :vartype batching: ~azure.mgmt.iotoperations.models.BatchingConfiguration + """ + + authentication: "_models.DataflowEndpointFabricOneLakeAuthentication" = rest_field() + """Authentication configuration. NOTE - only one authentication property is allowed per entry. + Required.""" + names: "_models.DataflowEndpointFabricOneLakeNames" = rest_field() + """Names of the workspace and lakehouse. Required.""" + one_lake_path_type: Union[str, "_models.DataflowEndpointFabricPathType"] = rest_field(name="oneLakePathType") + """Type of location of the data in the workspace. Can be either tables or files. Required. Known + values are: \"Files\" and \"Tables\".""" + host: str = rest_field() + """Host of the Microsoft Fabric in the form of https://:code:``.fabric.microsoft.com. + Required.""" + batching: Optional["_models.BatchingConfiguration"] = rest_field() + """Batching configuration.""" + + @overload + def __init__( + self, + *, + authentication: "_models.DataflowEndpointFabricOneLakeAuthentication", + names: "_models.DataflowEndpointFabricOneLakeNames", + one_lake_path_type: Union[str, "_models.DataflowEndpointFabricPathType"], + host: str, + batching: Optional["_models.BatchingConfiguration"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class Frontend(_model_base.Model): + """The desired properties of the frontend instances of the Broker. + + + :ivar replicas: The desired number of frontend instances (pods). Required. + :vartype replicas: int + :ivar workers: Number of logical frontend workers per instance (pod). + :vartype workers: int + """ + + replicas: int = rest_field() + """The desired number of frontend instances (pods). Required.""" workers: Optional[int] = rest_field() """Number of logical frontend workers per instance (pod).""" @@ -3082,7 +2853,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3112,7 +2883,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3145,7 +2916,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3194,7 +2965,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3205,34 +2976,383 @@ class TrackedResource(Resource): Readonly variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.iotoperations.models.SystemData - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.iotoperations.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + """ + + tags: Optional[Dict[str, str]] = rest_field() + """Resource tags.""" + location: str = rest_field(visibility=["read", "create"]) + """The geo-location where the resource lives. Required.""" + + @overload + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class InstanceResource(TrackedResource): + """A Instance resource is a logical container for a set of child resources. + + Readonly variables are only populated by the server, and will be ignored when sending a request. + + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.iotoperations.models.SystemData + :ivar tags: Resource tags. + :vartype tags: dict[str, str] + :ivar location: The geo-location where the resource lives. Required. + :vartype location: str + :ivar properties: The resource-specific properties for this resource. + :vartype properties: ~azure.mgmt.iotoperations.models.InstanceProperties + :ivar extended_location: Edge location of the resource. Required. + :vartype extended_location: ~azure.mgmt.iotoperations.models.ExtendedLocation + :ivar identity: The managed service identities assigned to this resource. + :vartype identity: ~azure.mgmt.iotoperations.models.ManagedServiceIdentity + """ + + properties: Optional["_models.InstanceProperties"] = rest_field() + """The resource-specific properties for this resource.""" + extended_location: "_models.ExtendedLocation" = rest_field(name="extendedLocation", visibility=["read", "create"]) + """Edge location of the resource. Required.""" + identity: Optional["_models.ManagedServiceIdentity"] = rest_field() + """The managed service identities assigned to this resource.""" + + @overload + def __init__( + self, + *, + location: str, + extended_location: "_models.ExtendedLocation", + tags: Optional[Dict[str, str]] = None, + properties: Optional["_models.InstanceProperties"] = None, + identity: Optional["_models.ManagedServiceIdentity"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class KafkaEndpoint(DataflowEndpointProperties, discriminator="Kafka"): + """Kafka endpoint. + + Readonly variables are only populated by the server, and will be ignored when sending a request. + + + :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + :vartype provisioning_state: str or ~azure.mgmt.iotoperations.models.ProvisioningState + :ivar endpoint_type: Endpoint Type. Required. Kafka Type + :vartype endpoint_type: str or ~azure.mgmt.iotoperations.models.KAFKA + :ivar kafka_settings: Kafka endpoint. Required. + :vartype kafka_settings: ~azure.mgmt.iotoperations.models.KafkaSettings + """ + + endpoint_type: Literal[EndpointType.KAFKA] = rest_discriminator(name="endpointType") # type: ignore + """Endpoint Type. Required. Kafka Type""" + kafka_settings: "_models.KafkaSettings" = rest_field(name="kafkaSettings") + """Kafka endpoint. Required.""" + + @overload + def __init__( + self, + *, + kafka_settings: "_models.KafkaSettings", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, endpoint_type=EndpointType.KAFKA, **kwargs) + + +class KafkaSettings(_model_base.Model): + """Kafka endpoint properties. + + + :ivar authentication: Authentication configuration. NOTE - only authentication property is + allowed per entry. Required. + :vartype authentication: ~azure.mgmt.iotoperations.models.DataflowEndpointKafkaAuthentication + :ivar consumer_group_id: Consumer group ID. + :vartype consumer_group_id: str + :ivar host: Kafka endpoint host. Required. + :vartype host: str + :ivar batching: Batching configuration. + :vartype batching: ~azure.mgmt.iotoperations.models.DataflowEndpointKafkaBatching + :ivar copy_mqtt_properties: Copy Broker properties. No effect if the endpoint is used as a + source or if the dataflow doesn't have an Broker source. Known values are: "Enabled" and + "Disabled". + :vartype copy_mqtt_properties: str or ~azure.mgmt.iotoperations.models.OperationalMode + :ivar compression: Compression. Can be none, gzip, lz4, or snappy. No effect if the endpoint is + used as a source. Known values are: "None", "Gzip", "Snappy", and "Lz4". + :vartype compression: str or ~azure.mgmt.iotoperations.models.DataflowEndpointKafkaCompression + :ivar kafka_acks: Kafka acks. Can be all, one, or zero. No effect if the endpoint is used as a + source. Known values are: "Zero", "One", and "All". + :vartype kafka_acks: str or ~azure.mgmt.iotoperations.models.DataflowEndpointKafkaAcks + :ivar partition_strategy: Partition handling strategy. Can be default or static. No effect if + the endpoint is used as a source. Known values are: "Default", "Static", "Topic", and + "Property". + :vartype partition_strategy: str or + ~azure.mgmt.iotoperations.models.DataflowEndpointKafkaPartitionStrategy + :ivar tls: TLS configuration. + :vartype tls: ~azure.mgmt.iotoperations.models.TlsProperties + :ivar cloud_event_attributes: Cloud event mapping config. Known values are: "Propagate" and + "CreateOrRemap". + :vartype cloud_event_attributes: str or + ~azure.mgmt.iotoperations.models.CloudEventAttributeType + """ + + authentication: "_models.DataflowEndpointKafkaAuthentication" = rest_field() + """Authentication configuration. NOTE - only authentication property is allowed per entry. + Required.""" + consumer_group_id: Optional[str] = rest_field(name="consumerGroupId") + """Consumer group ID.""" + host: str = rest_field() + """Kafka endpoint host. Required.""" + batching: Optional["_models.DataflowEndpointKafkaBatching"] = rest_field() + """Batching configuration.""" + copy_mqtt_properties: Optional[Union[str, "_models.OperationalMode"]] = rest_field(name="copyMqttProperties") + """Copy Broker properties. No effect if the endpoint is used as a source or if the dataflow + doesn't have an Broker source. Known values are: \"Enabled\" and \"Disabled\".""" + compression: Optional[Union[str, "_models.DataflowEndpointKafkaCompression"]] = rest_field() + """Compression. Can be none, gzip, lz4, or snappy. No effect if the endpoint is used as a source. + Known values are: \"None\", \"Gzip\", \"Snappy\", and \"Lz4\".""" + kafka_acks: Optional[Union[str, "_models.DataflowEndpointKafkaAcks"]] = rest_field(name="kafkaAcks") + """Kafka acks. Can be all, one, or zero. No effect if the endpoint is used as a source. Known + values are: \"Zero\", \"One\", and \"All\".""" + partition_strategy: Optional[Union[str, "_models.DataflowEndpointKafkaPartitionStrategy"]] = rest_field( + name="partitionStrategy" + ) + """Partition handling strategy. Can be default or static. No effect if the endpoint is used as a + source. Known values are: \"Default\", \"Static\", \"Topic\", and \"Property\".""" + tls: Optional["_models.TlsProperties"] = rest_field() + """TLS configuration.""" + cloud_event_attributes: Optional[Union[str, "_models.CloudEventAttributeType"]] = rest_field( + name="cloudEventAttributes" + ) + """Cloud event mapping config. Known values are: \"Propagate\" and \"CreateOrRemap\".""" + + @overload + def __init__( + self, + *, + authentication: "_models.DataflowEndpointKafkaAuthentication", + host: str, + consumer_group_id: Optional[str] = None, + batching: Optional["_models.DataflowEndpointKafkaBatching"] = None, + copy_mqtt_properties: Optional[Union[str, "_models.OperationalMode"]] = None, + compression: Optional[Union[str, "_models.DataflowEndpointKafkaCompression"]] = None, + kafka_acks: Optional[Union[str, "_models.DataflowEndpointKafkaAcks"]] = None, + partition_strategy: Optional[Union[str, "_models.DataflowEndpointKafkaPartitionStrategy"]] = None, + tls: Optional["_models.TlsProperties"] = None, + cloud_event_attributes: Optional[Union[str, "_models.CloudEventAttributeType"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class KubernetesReference(_model_base.Model): + """Kubernetes reference. + + + :ivar api_group: APIGroup is the group for the resource being referenced. If APIGroup is not + specified, the specified Kind must be in the core API group. For any other third-party types, + APIGroup is required. + :vartype api_group: str + :ivar kind: Kind is the type of resource being referenced. Required. + :vartype kind: str + :ivar name: Name is the name of resource being referenced. Required. + :vartype name: str + :ivar namespace: Namespace is the namespace of the resource being referenced. This field is + required when the resource has a namespace. + :vartype namespace: str + """ + + api_group: Optional[str] = rest_field(name="apiGroup") + """APIGroup is the group for the resource being referenced. If APIGroup is not specified, the + specified Kind must be in the core API group. For any other third-party types, APIGroup is + required.""" + kind: str = rest_field() + """Kind is the type of resource being referenced. Required.""" + name: str = rest_field() + """Name is the name of resource being referenced. Required.""" + namespace: Optional[str] = rest_field() + """Namespace is the namespace of the resource being referenced. This field is required when the + resource has a namespace.""" + + @overload + def __init__( + self, + *, + kind: str, + name: str, + api_group: Optional[str] = None, + namespace: Optional[str] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ListenerPort(_model_base.Model): + """Defines a TCP port on which a ``BrokerListener`` listens. + + + :ivar authentication_ref: Reference to client authentication settings. Omit to disable + authentication. + :vartype authentication_ref: str + :ivar authorization_ref: Reference to client authorization settings. Omit to disable + authorization. + :vartype authorization_ref: str + :ivar node_port: Kubernetes node port. Only relevant when this port is associated with a + ``NodePort`` listener. + :vartype node_port: int + :ivar port: TCP port for accepting client connections. Required. + :vartype port: int + :ivar protocol: Protocol to use for client connections. Known values are: "Mqtt" and + "WebSockets". + :vartype protocol: str or ~azure.mgmt.iotoperations.models.BrokerProtocolType + :ivar tls: TLS server certificate settings for this port. Omit to disable TLS. + :vartype tls: ~azure.mgmt.iotoperations.models.TlsCertMethod + """ + + authentication_ref: Optional[str] = rest_field(name="authenticationRef") + """Reference to client authentication settings. Omit to disable authentication.""" + authorization_ref: Optional[str] = rest_field(name="authorizationRef") + """Reference to client authorization settings. Omit to disable authorization.""" + node_port: Optional[int] = rest_field(name="nodePort") + """Kubernetes node port. Only relevant when this port is associated with a ``NodePort`` listener.""" + port: int = rest_field() + """TCP port for accepting client connections. Required.""" + protocol: Optional[Union[str, "_models.BrokerProtocolType"]] = rest_field() + """Protocol to use for client connections. Known values are: \"Mqtt\" and \"WebSockets\".""" + tls: Optional["_models.TlsCertMethod"] = rest_field() + """TLS server certificate settings for this port. Omit to disable TLS.""" + + @overload + def __init__( + self, + *, + port: int, + authentication_ref: Optional[str] = None, + authorization_ref: Optional[str] = None, + node_port: Optional[int] = None, + protocol: Optional[Union[str, "_models.BrokerProtocolType"]] = None, + tls: Optional["_models.TlsCertMethod"] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class ListenerProperties(_model_base.Model): + """Defines a Broker listener. A listener is a collection of ports on which the broker accepts + connections from clients. + + Readonly variables are only populated by the server, and will be ignored when sending a request. + + + :ivar service_name: Kubernetes Service name of this listener. + :vartype service_name: str + :ivar ports: Ports on which this listener accepts client connections. Required. + :vartype ports: list[~azure.mgmt.iotoperations.models.ListenerPort] + :ivar service_type: Kubernetes Service type of this listener. Known values are: "ClusterIp", + "LoadBalancer", and "NodePort". + :vartype service_type: str or ~azure.mgmt.iotoperations.models.ServiceType + :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + :vartype provisioning_state: str or ~azure.mgmt.iotoperations.models.ProvisioningState """ - tags: Optional[Dict[str, str]] = rest_field() - """Resource tags.""" - location: str = rest_field(visibility=["read", "create"]) - """The geo-location where the resource lives. Required.""" + service_name: Optional[str] = rest_field(name="serviceName") + """Kubernetes Service name of this listener.""" + ports: List["_models.ListenerPort"] = rest_field() + """Ports on which this listener accepts client connections. Required.""" + service_type: Optional[Union[str, "_models.ServiceType"]] = rest_field(name="serviceType") + """Kubernetes Service type of this listener. Known values are: \"ClusterIp\", \"LoadBalancer\", + and \"NodePort\".""" + provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field( + name="provisioningState", visibility=["read"] + ) + """The status of the last operation. Known values are: \"Succeeded\", \"Failed\", \"Canceled\", + \"Provisioning\", \"Updating\", \"Deleting\", and \"Accepted\".""" @overload def __init__( self, *, - location: str, - tags: Optional[Dict[str, str]] = None, + ports: List["_models.ListenerPort"], + service_name: Optional[str] = None, + service_type: Optional[Union[str, "_models.ServiceType"]] = None, ) -> None: ... @overload @@ -3242,12 +3362,12 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class InstanceResource(TrackedResource): - """A Instance resource is a logical container for a set of child resources. +class ListenerResource(ProxyResource): + """Instance broker resource. Readonly variables are only populated by the server, and will be ignored when sending a request. @@ -3263,34 +3383,23 @@ class InstanceResource(TrackedResource): :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy information. :vartype system_data: ~azure.mgmt.iotoperations.models.SystemData - :ivar tags: Resource tags. - :vartype tags: dict[str, str] - :ivar location: The geo-location where the resource lives. Required. - :vartype location: str :ivar properties: The resource-specific properties for this resource. - :vartype properties: ~azure.mgmt.iotoperations.models.InstanceProperties + :vartype properties: ~azure.mgmt.iotoperations.models.ListenerProperties :ivar extended_location: Edge location of the resource. Required. :vartype extended_location: ~azure.mgmt.iotoperations.models.ExtendedLocation - :ivar identity: The managed service identities assigned to this resource. - :vartype identity: ~azure.mgmt.iotoperations.models.ManagedServiceIdentity """ - properties: Optional["_models.InstanceProperties"] = rest_field() + properties: Optional["_models.ListenerProperties"] = rest_field() """The resource-specific properties for this resource.""" extended_location: "_models.ExtendedLocation" = rest_field(name="extendedLocation", visibility=["read", "create"]) """Edge location of the resource. Required.""" - identity: Optional["_models.ManagedServiceIdentity"] = rest_field() - """The managed service identities assigned to this resource.""" @overload def __init__( self, *, - location: str, extended_location: "_models.ExtendedLocation", - tags: Optional[Dict[str, str]] = None, - properties: Optional["_models.InstanceProperties"] = None, - identity: Optional["_models.ManagedServiceIdentity"] = None, + properties: Optional["_models.ListenerProperties"] = None, ) -> None: ... @overload @@ -3300,11 +3409,11 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class KubernetesReference(_model_base.Model): +class LocalKubernetesReference(_model_base.Model): """Kubernetes reference. @@ -3316,9 +3425,6 @@ class KubernetesReference(_model_base.Model): :vartype kind: str :ivar name: Name is the name of resource being referenced. Required. :vartype name: str - :ivar namespace: Namespace is the namespace of the resource being referenced. This field is - required when the resource has a namespace. - :vartype namespace: str """ api_group: Optional[str] = rest_field(name="apiGroup") @@ -3329,9 +3435,6 @@ class KubernetesReference(_model_base.Model): """Kind is the type of resource being referenced. Required.""" name: str = rest_field() """Name is the name of resource being referenced. Required.""" - namespace: Optional[str] = rest_field() - """Namespace is the namespace of the resource being referenced. This field is required when the - resource has a namespace.""" @overload def __init__( @@ -3340,7 +3443,6 @@ def __init__( kind: str, name: str, api_group: Optional[str] = None, - namespace: Optional[str] = None, ) -> None: ... @overload @@ -3350,55 +3452,35 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ListenerPort(_model_base.Model): - """Defines a TCP port on which a ``BrokerListener`` listens. +class LocalStorageEndpoint(DataflowEndpointProperties, discriminator="LocalStorage"): + """Local persistent volume endpoint. + Readonly variables are only populated by the server, and will be ignored when sending a request. - :ivar authentication_ref: Reference to client authentication settings. Omit to disable - authentication. - :vartype authentication_ref: str - :ivar authorization_ref: Reference to client authorization settings. Omit to disable - authorization. - :vartype authorization_ref: str - :ivar node_port: Kubernetes node port. Only relevant when this port is associated with a - ``NodePort`` listener. - :vartype node_port: int - :ivar port: TCP port for accepting client connections. Required. - :vartype port: int - :ivar protocol: Protocol to use for client connections. Known values are: "Mqtt" and - "WebSockets". - :vartype protocol: str or ~azure.mgmt.iotoperations.models.BrokerProtocolType - :ivar tls: TLS server certificate settings for this port. Omit to disable TLS. - :vartype tls: ~azure.mgmt.iotoperations.models.TlsCertMethod + + :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + :vartype provisioning_state: str or ~azure.mgmt.iotoperations.models.ProvisioningState + :ivar endpoint_type: Endpoint Type. Required. Local Storage Type + :vartype endpoint_type: str or ~azure.mgmt.iotoperations.models.LOCAL_STORAGE + :ivar local_storage_settings: Local persistent volume endpoint. Required. + :vartype local_storage_settings: ~azure.mgmt.iotoperations.models.LocalStorageSettings """ - authentication_ref: Optional[str] = rest_field(name="authenticationRef") - """Reference to client authentication settings. Omit to disable authentication.""" - authorization_ref: Optional[str] = rest_field(name="authorizationRef") - """Reference to client authorization settings. Omit to disable authorization.""" - node_port: Optional[int] = rest_field(name="nodePort") - """Kubernetes node port. Only relevant when this port is associated with a ``NodePort`` listener.""" - port: int = rest_field() - """TCP port for accepting client connections. Required.""" - protocol: Optional[Union[str, "_models.BrokerProtocolType"]] = rest_field() - """Protocol to use for client connections. Known values are: \"Mqtt\" and \"WebSockets\".""" - tls: Optional["_models.TlsCertMethod"] = rest_field() - """TLS server certificate settings for this port. Omit to disable TLS.""" + endpoint_type: Literal[EndpointType.LOCAL_STORAGE] = rest_discriminator(name="endpointType") # type: ignore + """Endpoint Type. Required. Local Storage Type""" + local_storage_settings: "_models.LocalStorageSettings" = rest_field(name="localStorageSettings") + """Local persistent volume endpoint. Required.""" @overload def __init__( self, *, - port: int, - authentication_ref: Optional[str] = None, - authorization_ref: Optional[str] = None, - node_port: Optional[int] = None, - protocol: Optional[Union[str, "_models.BrokerProtocolType"]] = None, - tls: Optional["_models.TlsCertMethod"] = None, + local_storage_settings: "_models.LocalStorageSettings", ) -> None: ... @overload @@ -3408,40 +3490,26 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation - super().__init__(*args, **kwargs) + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, endpoint_type=EndpointType.LOCAL_STORAGE, **kwargs) -class LocalKubernetesReference(_model_base.Model): - """Kubernetes reference. +class LocalStorageSettings(_model_base.Model): + """Local persistent volume endpoint properties. - :ivar api_group: APIGroup is the group for the resource being referenced. If APIGroup is not - specified, the specified Kind must be in the core API group. For any other third-party types, - APIGroup is required. - :vartype api_group: str - :ivar kind: Kind is the type of resource being referenced. Required. - :vartype kind: str - :ivar name: Name is the name of resource being referenced. Required. - :vartype name: str + :ivar persistent_volume_claim_ref: Persistent volume claim name. Required. + :vartype persistent_volume_claim_ref: str """ - api_group: Optional[str] = rest_field(name="apiGroup") - """APIGroup is the group for the resource being referenced. If APIGroup is not specified, the - specified Kind must be in the core API group. For any other third-party types, APIGroup is - required.""" - kind: str = rest_field() - """Kind is the type of resource being referenced. Required.""" - name: str = rest_field() - """Name is the name of resource being referenced. Required.""" + persistent_volume_claim_ref: str = rest_field(name="persistentVolumeClaimRef") + """Persistent volume claim name. Required.""" @overload def __init__( self, *, - kind: str, - name: str, - api_group: Optional[str] = None, + persistent_volume_claim_ref: str, ) -> None: ... @overload @@ -3451,7 +3519,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3504,7 +3572,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3532,7 +3600,137 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, **kwargs) + + +class MqttEndpoint(DataflowEndpointProperties, discriminator="Mqtt"): + """Broker endpoint. + + Readonly variables are only populated by the server, and will be ignored when sending a request. + + + :ivar provisioning_state: The status of the last operation. Known values are: "Succeeded", + "Failed", "Canceled", "Provisioning", "Updating", "Deleting", and "Accepted". + :vartype provisioning_state: str or ~azure.mgmt.iotoperations.models.ProvisioningState + :ivar endpoint_type: Endpoint Type. Required. Broker Type + :vartype endpoint_type: str or ~azure.mgmt.iotoperations.models.MQTT + :ivar mqtt_settings: Broker endpoint. Required. + :vartype mqtt_settings: ~azure.mgmt.iotoperations.models.MqttSettings + """ + + endpoint_type: Literal[EndpointType.MQTT] = rest_discriminator(name="endpointType") # type: ignore + """Endpoint Type. Required. Broker Type""" + mqtt_settings: "_models.MqttSettings" = rest_field(name="mqttSettings") + """Broker endpoint. Required.""" + + @overload + def __init__( + self, + *, + mqtt_settings: "_models.MqttSettings", + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: + super().__init__(*args, endpoint_type=EndpointType.MQTT, **kwargs) + + +class MqttSettings(_model_base.Model): + """Broker endpoint properties. + + + :ivar authentication: authentication properties. DEFAULT: kubernetes.audience=aio-internal. + NOTE - Enum field only property is allowed. Required. + :vartype authentication: ~azure.mgmt.iotoperations.models.DataflowEndpointMqttAuthentication + :ivar client_id_prefix: Client ID prefix. Client ID generated by the dataflow is + :code:``-TBD. Optional; no prefix if omitted. + :vartype client_id_prefix: str + :ivar host: Host of the Broker in the form of :code:``::code:``. Optional; + connects to Broker if omitted. + :vartype host: str + :ivar protocol: Enable or disable websockets. Known values are: "Mqtt" and "WebSockets". + :vartype protocol: str or ~azure.mgmt.iotoperations.models.BrokerProtocolType + :ivar keep_alive_seconds: Broker KeepAlive for connection in seconds. + :vartype keep_alive_seconds: int + :ivar retain: Whether or not to keep the retain setting. Known values are: "Keep" and "Never". + :vartype retain: str or ~azure.mgmt.iotoperations.models.MqttRetainType + :ivar max_inflight_messages: The max number of messages to keep in flight. For subscribe, this + is the receive maximum. For publish, this is the maximum number of messages to send before + waiting for an ack. + :vartype max_inflight_messages: int + :ivar qos: Qos for Broker connection. + :vartype qos: int + :ivar session_expiry_seconds: Session expiry in seconds. + :vartype session_expiry_seconds: int + :ivar tls: TLS configuration. + :vartype tls: ~azure.mgmt.iotoperations.models.TlsProperties + :ivar cloud_event_attributes: Cloud event mapping config. Known values are: "Propagate" and + "CreateOrRemap". + :vartype cloud_event_attributes: str or + ~azure.mgmt.iotoperations.models.CloudEventAttributeType + """ + + authentication: "_models.DataflowEndpointMqttAuthentication" = rest_field() + """authentication properties. DEFAULT: kubernetes.audience=aio-internal. NOTE - Enum field only + property is allowed. Required.""" + client_id_prefix: Optional[str] = rest_field(name="clientIdPrefix") + """Client ID prefix. Client ID generated by the dataflow is :code:``-TBD. Optional; no + prefix if omitted.""" + host: Optional[str] = rest_field() + """Host of the Broker in the form of :code:``::code:``. Optional; connects to + Broker if omitted.""" + protocol: Optional[Union[str, "_models.BrokerProtocolType"]] = rest_field() + """Enable or disable websockets. Known values are: \"Mqtt\" and \"WebSockets\".""" + keep_alive_seconds: Optional[int] = rest_field(name="keepAliveSeconds") + """Broker KeepAlive for connection in seconds.""" + retain: Optional[Union[str, "_models.MqttRetainType"]] = rest_field() + """Whether or not to keep the retain setting. Known values are: \"Keep\" and \"Never\".""" + max_inflight_messages: Optional[int] = rest_field(name="maxInflightMessages") + """The max number of messages to keep in flight. For subscribe, this is the receive maximum. For + publish, this is the maximum number of messages to send before waiting for an ack.""" + qos: Optional[int] = rest_field() + """Qos for Broker connection.""" + session_expiry_seconds: Optional[int] = rest_field(name="sessionExpirySeconds") + """Session expiry in seconds.""" + tls: Optional["_models.TlsProperties"] = rest_field() + """TLS configuration.""" + cloud_event_attributes: Optional[Union[str, "_models.CloudEventAttributeType"]] = rest_field( + name="cloudEventAttributes" + ) + """Cloud event mapping config. Known values are: \"Propagate\" and \"CreateOrRemap\".""" + + @overload + def __init__( + self, + *, + authentication: "_models.DataflowEndpointMqttAuthentication", + client_id_prefix: Optional[str] = None, + host: Optional[str] = None, + protocol: Optional[Union[str, "_models.BrokerProtocolType"]] = None, + keep_alive_seconds: Optional[int] = None, + retain: Optional[Union[str, "_models.MqttRetainType"]] = None, + max_inflight_messages: Optional[int] = None, + qos: Optional[int] = None, + session_expiry_seconds: Optional[int] = None, + tls: Optional["_models.TlsProperties"] = None, + cloud_event_attributes: Optional[Union[str, "_models.CloudEventAttributeType"]] = None, + ) -> None: ... + + @overload + def __init__(self, mapping: Mapping[str, Any]) -> None: + """ + :param mapping: raw JSON to initialize the model. + :type mapping: Mapping[str, Any] + """ + + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3589,7 +3787,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3667,7 +3865,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3700,7 +3898,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3734,7 +3932,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3763,7 +3961,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3802,7 +4000,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3836,7 +4034,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3883,7 +4081,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3918,7 +4116,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -3975,7 +4173,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -4020,7 +4218,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -4053,7 +4251,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -4096,7 +4294,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -4154,7 +4352,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -4266,7 +4464,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -4307,7 +4505,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -4354,7 +4552,7 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) @@ -4385,5 +4583,5 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: :type mapping: Mapping[str, Any] """ - def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useless-super-delegation + def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/operations/__init__.py b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/operations/__init__.py index f53c6a9d0dab..7cb8893c5e4e 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/operations/__init__.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/operations/__init__.py @@ -5,22 +5,32 @@ # Code generated by Microsoft (R) Python Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +# pylint: disable=wrong-import-position -from ._operations import Operations -from ._operations import InstanceOperations -from ._operations import BrokerOperations -from ._operations import BrokerListenerOperations -from ._operations import BrokerAuthenticationOperations -from ._operations import BrokerAuthorizationOperations -from ._operations import DataflowProfileOperations -from ._operations import DataflowOperations -from ._operations import DataflowEndpointOperations +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from ._patch import * # pylint: disable=unused-wildcard-import + +from ._operations import BrokersOperations # type: ignore +from ._operations import DataflowsOperations # type: ignore +from ._operations import Operations # type: ignore +from ._operations import InstanceOperations # type: ignore +from ._operations import BrokerOperations # type: ignore +from ._operations import BrokerListenerOperations # type: ignore +from ._operations import BrokerAuthenticationOperations # type: ignore +from ._operations import BrokerAuthorizationOperations # type: ignore +from ._operations import DataflowProfileOperations # type: ignore +from ._operations import DataflowOperations # type: ignore +from ._operations import DataflowEndpointOperations # type: ignore from ._patch import __all__ as _patch_all -from ._patch import * # pylint: disable=unused-wildcard-import +from ._patch import * from ._patch import patch_sdk as _patch_sdk __all__ = [ + "BrokersOperations", + "DataflowsOperations", "Operations", "InstanceOperations", "BrokerOperations", diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/operations/_operations.py b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/operations/_operations.py index 170973e2cd35..ae14fe28c85a 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/operations/_operations.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/azure/mgmt/iotoperations/operations/_operations.py @@ -51,7 +51,7 @@ def build_operations_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -72,7 +72,7 @@ def build_instance_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -101,7 +101,7 @@ def build_instance_create_or_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -132,7 +132,7 @@ def build_instance_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -162,7 +162,7 @@ def build_instance_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -190,7 +190,7 @@ def build_instance_list_by_resource_group_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -219,7 +219,7 @@ def build_instance_list_by_subscription_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -245,7 +245,7 @@ def build_broker_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -275,7 +275,7 @@ def build_broker_create_or_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -306,7 +306,7 @@ def build_broker_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -335,7 +335,7 @@ def build_broker_list_by_resource_group_request( # pylint: disable=name-too-lon _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -368,7 +368,7 @@ def build_broker_listener_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -404,7 +404,7 @@ def build_broker_listener_create_or_update_request( # pylint: disable=name-too- _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -441,7 +441,7 @@ def build_broker_listener_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -471,7 +471,7 @@ def build_broker_listener_list_by_resource_group_request( # pylint: disable=nam _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -505,7 +505,7 @@ def build_broker_authentication_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -541,7 +541,7 @@ def build_broker_authentication_create_or_update_request( # pylint: disable=nam _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -578,7 +578,7 @@ def build_broker_authentication_delete_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -608,7 +608,7 @@ def build_broker_authentication_list_by_resource_group_request( # pylint: disab _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -642,7 +642,7 @@ def build_broker_authorization_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -678,7 +678,7 @@ def build_broker_authorization_create_or_update_request( # pylint: disable=name _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -715,7 +715,7 @@ def build_broker_authorization_delete_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -745,7 +745,7 @@ def build_broker_authorization_list_by_resource_group_request( # pylint: disabl _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -774,7 +774,7 @@ def build_dataflow_profile_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -804,7 +804,7 @@ def build_dataflow_profile_create_or_update_request( # pylint: disable=name-too _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -835,7 +835,7 @@ def build_dataflow_profile_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -864,7 +864,7 @@ def build_dataflow_profile_list_by_resource_group_request( # pylint: disable=na _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -897,7 +897,7 @@ def build_dataflow_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -933,7 +933,7 @@ def build_dataflow_create_or_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -970,7 +970,7 @@ def build_dataflow_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1000,7 +1000,7 @@ def build_dataflow_list_by_resource_group_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1029,7 +1029,7 @@ def build_dataflow_endpoint_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1059,7 +1059,7 @@ def build_dataflow_endpoint_create_or_update_request( # pylint: disable=name-to _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1090,7 +1090,7 @@ def build_dataflow_endpoint_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1119,7 +1119,7 @@ def build_dataflow_endpoint_list_by_resource_group_request( # pylint: disable=n _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-09-15-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-01-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1141,6 +1141,42 @@ def build_dataflow_endpoint_list_by_resource_group_request( # pylint: disable=n return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) +class BrokersOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.iotoperations.IoTOperationsMgmtClient`'s + :attr:`brokers` attribute. + """ + + def __init__(self, *args, **kwargs): + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + +class DataflowsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.iotoperations.IoTOperationsMgmtClient`'s + :attr:`dataflows` attribute. + """ + + def __init__(self, *args, **kwargs): + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + class Operations: """ .. warning:: @@ -2577,8 +2613,8 @@ def __init__(self, *args, **kwargs): @distributed_trace def get( self, resource_group_name: str, instance_name: str, broker_name: str, listener_name: str, **kwargs: Any - ) -> _models.BrokerListenerResource: - """Get a BrokerListenerResource. + ) -> _models.ListenerResource: + """Get a ListenerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2589,8 +2625,8 @@ def get( :type broker_name: str :param listener_name: Name of Instance broker listener resource. Required. :type listener_name: str - :return: BrokerListenerResource. The BrokerListenerResource is compatible with MutableMapping - :rtype: ~azure.mgmt.iotoperations.models.BrokerListenerResource + :return: ListenerResource. The ListenerResource is compatible with MutableMapping + :rtype: ~azure.mgmt.iotoperations.models.ListenerResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -2604,7 +2640,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.BrokerListenerResource] = kwargs.pop("cls", None) + cls: ClsType[_models.ListenerResource] = kwargs.pop("cls", None) _request = build_broker_listener_get_request( resource_group_name=resource_group_name, @@ -2641,7 +2677,7 @@ def get( if _stream: deserialized = response.iter_bytes() else: - deserialized = _deserialize(_models.BrokerListenerResource, response.json()) + deserialized = _deserialize(_models.ListenerResource, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -2654,7 +2690,7 @@ def _create_or_update_initial( instance_name: str, broker_name: str, listener_name: str, - resource: Union[_models.BrokerListenerResource, JSON, IO[bytes]], + resource: Union[_models.ListenerResource, JSON, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -2732,12 +2768,12 @@ def begin_create_or_update( instance_name: str, broker_name: str, listener_name: str, - resource: _models.BrokerListenerResource, + resource: _models.ListenerResource, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.BrokerListenerResource]: - """Create a BrokerListenerResource. + ) -> LROPoller[_models.ListenerResource]: + """Create a ListenerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2749,13 +2785,13 @@ def begin_create_or_update( :param listener_name: Name of Instance broker listener resource. Required. :type listener_name: str :param resource: Resource create parameters. Required. - :type resource: ~azure.mgmt.iotoperations.models.BrokerListenerResource + :type resource: ~azure.mgmt.iotoperations.models.ListenerResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns BrokerListenerResource. The - BrokerListenerResource is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.BrokerListenerResource] + :return: An instance of LROPoller that returns ListenerResource. The ListenerResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.ListenerResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2770,8 +2806,8 @@ def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.BrokerListenerResource]: - """Create a BrokerListenerResource. + ) -> LROPoller[_models.ListenerResource]: + """Create a ListenerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2787,9 +2823,9 @@ def begin_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 - :return: An instance of LROPoller that returns BrokerListenerResource. The - BrokerListenerResource is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.BrokerListenerResource] + :return: An instance of LROPoller that returns ListenerResource. The ListenerResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.ListenerResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2804,8 +2840,8 @@ def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.BrokerListenerResource]: - """Create a BrokerListenerResource. + ) -> LROPoller[_models.ListenerResource]: + """Create a ListenerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2821,9 +2857,9 @@ def begin_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 - :return: An instance of LROPoller that returns BrokerListenerResource. The - BrokerListenerResource is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.BrokerListenerResource] + :return: An instance of LROPoller that returns ListenerResource. The ListenerResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.ListenerResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -2834,10 +2870,10 @@ def begin_create_or_update( instance_name: str, broker_name: str, listener_name: str, - resource: Union[_models.BrokerListenerResource, JSON, IO[bytes]], + resource: Union[_models.ListenerResource, JSON, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.BrokerListenerResource]: - """Create a BrokerListenerResource. + ) -> LROPoller[_models.ListenerResource]: + """Create a ListenerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -2848,19 +2884,19 @@ def begin_create_or_update( :type broker_name: str :param listener_name: Name of Instance broker listener resource. Required. :type listener_name: str - :param resource: Resource create parameters. Is one of the following types: - BrokerListenerResource, JSON, IO[bytes] Required. - :type resource: ~azure.mgmt.iotoperations.models.BrokerListenerResource or JSON or IO[bytes] - :return: An instance of LROPoller that returns BrokerListenerResource. The - BrokerListenerResource is compatible with MutableMapping - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.BrokerListenerResource] + :param resource: Resource create parameters. Is one of the following types: ListenerResource, + JSON, IO[bytes] Required. + :type resource: ~azure.mgmt.iotoperations.models.ListenerResource or JSON or IO[bytes] + :return: An instance of LROPoller that returns ListenerResource. The ListenerResource is + compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.ListenerResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BrokerListenerResource] = kwargs.pop("cls", None) + cls: ClsType[_models.ListenerResource] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -2882,7 +2918,7 @@ def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.BrokerListenerResource, response.json()) + deserialized = _deserialize(_models.ListenerResource, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -2900,13 +2936,13 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.BrokerListenerResource].from_continuation_token( + return LROPoller[_models.ListenerResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.BrokerListenerResource]( + return LROPoller[_models.ListenerResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @@ -2973,7 +3009,7 @@ def _delete_initial( def begin_delete( self, resource_group_name: str, instance_name: str, broker_name: str, listener_name: str, **kwargs: Any ) -> LROPoller[None]: - """Delete a BrokerListenerResource. + """Delete a ListenerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -3037,8 +3073,8 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @distributed_trace def list_by_resource_group( self, resource_group_name: str, instance_name: str, broker_name: str, **kwargs: Any - ) -> Iterable["_models.BrokerListenerResource"]: - """List BrokerListenerResource resources by BrokerResource. + ) -> Iterable["_models.ListenerResource"]: + """List ListenerResource resources by BrokerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -3047,14 +3083,14 @@ def list_by_resource_group( :type instance_name: str :param broker_name: Name of broker. Required. :type broker_name: str - :return: An iterator like instance of BrokerListenerResource - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.iotoperations.models.BrokerListenerResource] + :return: An iterator like instance of ListenerResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.iotoperations.models.ListenerResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.BrokerListenerResource]] = kwargs.pop("cls", None) + cls: ClsType[List[_models.ListenerResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -3107,7 +3143,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.BrokerListenerResource], deserialized["value"]) + list_of_elem = _deserialize(List[_models.ListenerResource], deserialized["value"]) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, iter(list_of_elem) @@ -3151,8 +3187,8 @@ def __init__(self, *args, **kwargs): @distributed_trace def get( self, resource_group_name: str, instance_name: str, broker_name: str, authentication_name: str, **kwargs: Any - ) -> _models.BrokerAuthenticationResource: - """Get a BrokerAuthenticationResource. + ) -> _models.AuthenticationResource: + """Get a AuthenticationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -3163,9 +3199,8 @@ def get( :type broker_name: str :param authentication_name: Name of Instance broker authentication resource. Required. :type authentication_name: str - :return: BrokerAuthenticationResource. The BrokerAuthenticationResource is compatible with - MutableMapping - :rtype: ~azure.mgmt.iotoperations.models.BrokerAuthenticationResource + :return: AuthenticationResource. The AuthenticationResource is compatible with MutableMapping + :rtype: ~azure.mgmt.iotoperations.models.AuthenticationResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -3179,7 +3214,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.BrokerAuthenticationResource] = kwargs.pop("cls", None) + cls: ClsType[_models.AuthenticationResource] = kwargs.pop("cls", None) _request = build_broker_authentication_get_request( resource_group_name=resource_group_name, @@ -3216,7 +3251,7 @@ def get( if _stream: deserialized = response.iter_bytes() else: - deserialized = _deserialize(_models.BrokerAuthenticationResource, response.json()) + deserialized = _deserialize(_models.AuthenticationResource, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -3229,7 +3264,7 @@ def _create_or_update_initial( instance_name: str, broker_name: str, authentication_name: str, - resource: Union[_models.BrokerAuthenticationResource, JSON, IO[bytes]], + resource: Union[_models.AuthenticationResource, JSON, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -3307,12 +3342,12 @@ def begin_create_or_update( instance_name: str, broker_name: str, authentication_name: str, - resource: _models.BrokerAuthenticationResource, + resource: _models.AuthenticationResource, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.BrokerAuthenticationResource]: - """Create a BrokerAuthenticationResource. + ) -> LROPoller[_models.AuthenticationResource]: + """Create a AuthenticationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -3324,14 +3359,13 @@ def begin_create_or_update( :param authentication_name: Name of Instance broker authentication resource. Required. :type authentication_name: str :param resource: Resource create parameters. Required. - :type resource: ~azure.mgmt.iotoperations.models.BrokerAuthenticationResource + :type resource: ~azure.mgmt.iotoperations.models.AuthenticationResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns BrokerAuthenticationResource. The - BrokerAuthenticationResource is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.BrokerAuthenticationResource] + :return: An instance of LROPoller that returns AuthenticationResource. The + AuthenticationResource is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.AuthenticationResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -3346,8 +3380,8 @@ def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.BrokerAuthenticationResource]: - """Create a BrokerAuthenticationResource. + ) -> LROPoller[_models.AuthenticationResource]: + """Create a AuthenticationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -3363,10 +3397,9 @@ def begin_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 - :return: An instance of LROPoller that returns BrokerAuthenticationResource. The - BrokerAuthenticationResource is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.BrokerAuthenticationResource] + :return: An instance of LROPoller that returns AuthenticationResource. The + AuthenticationResource is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.AuthenticationResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -3381,8 +3414,8 @@ def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.BrokerAuthenticationResource]: - """Create a BrokerAuthenticationResource. + ) -> LROPoller[_models.AuthenticationResource]: + """Create a AuthenticationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -3398,10 +3431,9 @@ def begin_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 - :return: An instance of LROPoller that returns BrokerAuthenticationResource. The - BrokerAuthenticationResource is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.BrokerAuthenticationResource] + :return: An instance of LROPoller that returns AuthenticationResource. The + AuthenticationResource is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.AuthenticationResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -3412,10 +3444,10 @@ def begin_create_or_update( instance_name: str, broker_name: str, authentication_name: str, - resource: Union[_models.BrokerAuthenticationResource, JSON, IO[bytes]], + resource: Union[_models.AuthenticationResource, JSON, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.BrokerAuthenticationResource]: - """Create a BrokerAuthenticationResource. + ) -> LROPoller[_models.AuthenticationResource]: + """Create a AuthenticationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -3427,20 +3459,18 @@ def begin_create_or_update( :param authentication_name: Name of Instance broker authentication resource. Required. :type authentication_name: str :param resource: Resource create parameters. Is one of the following types: - BrokerAuthenticationResource, JSON, IO[bytes] Required. - :type resource: ~azure.mgmt.iotoperations.models.BrokerAuthenticationResource or JSON or - IO[bytes] - :return: An instance of LROPoller that returns BrokerAuthenticationResource. The - BrokerAuthenticationResource is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.BrokerAuthenticationResource] + AuthenticationResource, JSON, IO[bytes] Required. + :type resource: ~azure.mgmt.iotoperations.models.AuthenticationResource or JSON or IO[bytes] + :return: An instance of LROPoller that returns AuthenticationResource. The + AuthenticationResource is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.AuthenticationResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BrokerAuthenticationResource] = kwargs.pop("cls", None) + cls: ClsType[_models.AuthenticationResource] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -3462,7 +3492,7 @@ def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.BrokerAuthenticationResource, response.json()) + deserialized = _deserialize(_models.AuthenticationResource, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -3480,13 +3510,13 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.BrokerAuthenticationResource].from_continuation_token( + return LROPoller[_models.AuthenticationResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.BrokerAuthenticationResource]( + return LROPoller[_models.AuthenticationResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @@ -3553,7 +3583,7 @@ def _delete_initial( def begin_delete( self, resource_group_name: str, instance_name: str, broker_name: str, authentication_name: str, **kwargs: Any ) -> LROPoller[None]: - """Delete a BrokerAuthenticationResource. + """Delete a AuthenticationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -3617,8 +3647,8 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @distributed_trace def list_by_resource_group( self, resource_group_name: str, instance_name: str, broker_name: str, **kwargs: Any - ) -> Iterable["_models.BrokerAuthenticationResource"]: - """List BrokerAuthenticationResource resources by BrokerResource. + ) -> Iterable["_models.AuthenticationResource"]: + """List AuthenticationResource resources by BrokerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -3627,15 +3657,14 @@ def list_by_resource_group( :type instance_name: str :param broker_name: Name of broker. Required. :type broker_name: str - :return: An iterator like instance of BrokerAuthenticationResource - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.iotoperations.models.BrokerAuthenticationResource] + :return: An iterator like instance of AuthenticationResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.iotoperations.models.AuthenticationResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.BrokerAuthenticationResource]] = kwargs.pop("cls", None) + cls: ClsType[List[_models.AuthenticationResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -3688,7 +3717,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.BrokerAuthenticationResource], deserialized["value"]) + list_of_elem = _deserialize(List[_models.AuthenticationResource], deserialized["value"]) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, iter(list_of_elem) @@ -3732,8 +3761,8 @@ def __init__(self, *args, **kwargs): @distributed_trace def get( self, resource_group_name: str, instance_name: str, broker_name: str, authorization_name: str, **kwargs: Any - ) -> _models.BrokerAuthorizationResource: - """Get a BrokerAuthorizationResource. + ) -> _models.AuthorizationResource: + """Get a AuthorizationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -3744,9 +3773,8 @@ def get( :type broker_name: str :param authorization_name: Name of Instance broker authorization resource. Required. :type authorization_name: str - :return: BrokerAuthorizationResource. The BrokerAuthorizationResource is compatible with - MutableMapping - :rtype: ~azure.mgmt.iotoperations.models.BrokerAuthorizationResource + :return: AuthorizationResource. The AuthorizationResource is compatible with MutableMapping + :rtype: ~azure.mgmt.iotoperations.models.AuthorizationResource :raises ~azure.core.exceptions.HttpResponseError: """ error_map: MutableMapping = { @@ -3760,7 +3788,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models.BrokerAuthorizationResource] = kwargs.pop("cls", None) + cls: ClsType[_models.AuthorizationResource] = kwargs.pop("cls", None) _request = build_broker_authorization_get_request( resource_group_name=resource_group_name, @@ -3797,7 +3825,7 @@ def get( if _stream: deserialized = response.iter_bytes() else: - deserialized = _deserialize(_models.BrokerAuthorizationResource, response.json()) + deserialized = _deserialize(_models.AuthorizationResource, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore @@ -3810,7 +3838,7 @@ def _create_or_update_initial( instance_name: str, broker_name: str, authorization_name: str, - resource: Union[_models.BrokerAuthorizationResource, JSON, IO[bytes]], + resource: Union[_models.AuthorizationResource, JSON, IO[bytes]], **kwargs: Any ) -> Iterator[bytes]: error_map: MutableMapping = { @@ -3888,12 +3916,12 @@ def begin_create_or_update( instance_name: str, broker_name: str, authorization_name: str, - resource: _models.BrokerAuthorizationResource, + resource: _models.AuthorizationResource, *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.BrokerAuthorizationResource]: - """Create a BrokerAuthorizationResource. + ) -> LROPoller[_models.AuthorizationResource]: + """Create a AuthorizationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -3905,14 +3933,13 @@ def begin_create_or_update( :param authorization_name: Name of Instance broker authorization resource. Required. :type authorization_name: str :param resource: Resource create parameters. Required. - :type resource: ~azure.mgmt.iotoperations.models.BrokerAuthorizationResource + :type resource: ~azure.mgmt.iotoperations.models.AuthorizationResource :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". :paramtype content_type: str - :return: An instance of LROPoller that returns BrokerAuthorizationResource. The - BrokerAuthorizationResource is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.BrokerAuthorizationResource] + :return: An instance of LROPoller that returns AuthorizationResource. The AuthorizationResource + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.AuthorizationResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -3927,8 +3954,8 @@ def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.BrokerAuthorizationResource]: - """Create a BrokerAuthorizationResource. + ) -> LROPoller[_models.AuthorizationResource]: + """Create a AuthorizationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -3944,10 +3971,9 @@ def begin_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 - :return: An instance of LROPoller that returns BrokerAuthorizationResource. The - BrokerAuthorizationResource is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.BrokerAuthorizationResource] + :return: An instance of LROPoller that returns AuthorizationResource. The AuthorizationResource + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.AuthorizationResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -3962,8 +3988,8 @@ def begin_create_or_update( *, content_type: str = "application/json", **kwargs: Any - ) -> LROPoller[_models.BrokerAuthorizationResource]: - """Create a BrokerAuthorizationResource. + ) -> LROPoller[_models.AuthorizationResource]: + """Create a AuthorizationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -3979,10 +4005,9 @@ def begin_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 - :return: An instance of LROPoller that returns BrokerAuthorizationResource. The - BrokerAuthorizationResource is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.BrokerAuthorizationResource] + :return: An instance of LROPoller that returns AuthorizationResource. The AuthorizationResource + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.AuthorizationResource] :raises ~azure.core.exceptions.HttpResponseError: """ @@ -3993,10 +4018,10 @@ def begin_create_or_update( instance_name: str, broker_name: str, authorization_name: str, - resource: Union[_models.BrokerAuthorizationResource, JSON, IO[bytes]], + resource: Union[_models.AuthorizationResource, JSON, IO[bytes]], **kwargs: Any - ) -> LROPoller[_models.BrokerAuthorizationResource]: - """Create a BrokerAuthorizationResource. + ) -> LROPoller[_models.AuthorizationResource]: + """Create a AuthorizationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -4008,20 +4033,18 @@ def begin_create_or_update( :param authorization_name: Name of Instance broker authorization resource. Required. :type authorization_name: str :param resource: Resource create parameters. Is one of the following types: - BrokerAuthorizationResource, JSON, IO[bytes] Required. - :type resource: ~azure.mgmt.iotoperations.models.BrokerAuthorizationResource or JSON or - IO[bytes] - :return: An instance of LROPoller that returns BrokerAuthorizationResource. The - BrokerAuthorizationResource is compatible with MutableMapping - :rtype: - ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.BrokerAuthorizationResource] + AuthorizationResource, JSON, IO[bytes] Required. + :type resource: ~azure.mgmt.iotoperations.models.AuthorizationResource or JSON or IO[bytes] + :return: An instance of LROPoller that returns AuthorizationResource. The AuthorizationResource + is compatible with MutableMapping + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.iotoperations.models.AuthorizationResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - cls: ClsType[_models.BrokerAuthorizationResource] = kwargs.pop("cls", None) + cls: ClsType[_models.AuthorizationResource] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) cont_token: Optional[str] = kwargs.pop("continuation_token", None) @@ -4043,7 +4066,7 @@ def begin_create_or_update( def get_long_running_output(pipeline_response): response = pipeline_response.http_response - deserialized = _deserialize(_models.BrokerAuthorizationResource, response.json()) + deserialized = _deserialize(_models.AuthorizationResource, response.json()) if cls: return cls(pipeline_response, deserialized, {}) # type: ignore return deserialized @@ -4061,13 +4084,13 @@ def get_long_running_output(pipeline_response): else: polling_method = polling if cont_token: - return LROPoller[_models.BrokerAuthorizationResource].from_continuation_token( + return LROPoller[_models.AuthorizationResource].from_continuation_token( polling_method=polling_method, continuation_token=cont_token, client=self._client, deserialization_callback=get_long_running_output, ) - return LROPoller[_models.BrokerAuthorizationResource]( + return LROPoller[_models.AuthorizationResource]( self._client, raw_result, get_long_running_output, polling_method # type: ignore ) @@ -4134,7 +4157,7 @@ def _delete_initial( def begin_delete( self, resource_group_name: str, instance_name: str, broker_name: str, authorization_name: str, **kwargs: Any ) -> LROPoller[None]: - """Delete a BrokerAuthorizationResource. + """Delete a AuthorizationResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -4198,8 +4221,8 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- @distributed_trace def list_by_resource_group( self, resource_group_name: str, instance_name: str, broker_name: str, **kwargs: Any - ) -> Iterable["_models.BrokerAuthorizationResource"]: - """List BrokerAuthorizationResource resources by BrokerResource. + ) -> Iterable["_models.AuthorizationResource"]: + """List AuthorizationResource resources by BrokerResource. :param resource_group_name: The name of the resource group. The name is case insensitive. Required. @@ -4208,15 +4231,14 @@ def list_by_resource_group( :type instance_name: str :param broker_name: Name of broker. Required. :type broker_name: str - :return: An iterator like instance of BrokerAuthorizationResource - :rtype: - ~azure.core.paging.ItemPaged[~azure.mgmt.iotoperations.models.BrokerAuthorizationResource] + :return: An iterator like instance of AuthorizationResource + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.iotoperations.models.AuthorizationResource] :raises ~azure.core.exceptions.HttpResponseError: """ _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[List[_models.BrokerAuthorizationResource]] = kwargs.pop("cls", None) + cls: ClsType[List[_models.AuthorizationResource]] = kwargs.pop("cls", None) error_map: MutableMapping = { 401: ClientAuthenticationError, @@ -4269,7 +4291,7 @@ def prepare_request(next_link=None): def extract_data(pipeline_response): deserialized = pipeline_response.http_response.json() - list_of_elem = _deserialize(List[_models.BrokerAuthorizationResource], deserialized["value"]) + list_of_elem = _deserialize(List[_models.AuthorizationResource], deserialized["value"]) if cls: list_of_elem = cls(list_of_elem) # type: ignore return deserialized.get("nextLink") or None, iter(list_of_elem) diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_create_or_update_complex.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_create_or_update_complex.py index c1c24bf2523e..b8c84289099d 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_create_or_update_complex.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_create_or_update_complex.py @@ -64,6 +64,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/BrokerAuthentication_CreateOrUpdate_Complex.json +# x-ms-original-file: 2025-01-01-preview/BrokerAuthentication_CreateOrUpdate_Complex.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_create_or_update_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_create_or_update_maximum_set_gen.py index e4e783a45c77..6b568b6d6e79 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_create_or_update_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_create_or_update_maximum_set_gen.py @@ -62,6 +62,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/BrokerAuthentication_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/BrokerAuthentication_CreateOrUpdate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_delete_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_delete_maximum_set_gen.py index a03d9ddccb8d..ccd7eb28805e 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_delete_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_delete_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2024-09-15-preview/BrokerAuthentication_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/BrokerAuthentication_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_get_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_get_maximum_set_gen.py index e601e59f7d0e..903618709470 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_get_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_get_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/BrokerAuthentication_Get_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/BrokerAuthentication_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_list_by_resource_group_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_list_by_resource_group_maximum_set_gen.py index 92d0e9b23be6..d95d2635b58f 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_list_by_resource_group_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authentication_list_by_resource_group_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2024-09-15-preview/BrokerAuthentication_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/BrokerAuthentication_ListByResourceGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_create_or_update_complex.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_create_or_update_complex.py index 0040be415cbc..09959e7fc2a8 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_create_or_update_complex.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_create_or_update_complex.py @@ -78,6 +78,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/BrokerAuthorization_CreateOrUpdate_Complex.json +# x-ms-original-file: 2025-01-01-preview/BrokerAuthorization_CreateOrUpdate_Complex.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_create_or_update_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_create_or_update_maximum_set_gen.py index f8748e0decd3..0ff9ed2640a5 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_create_or_update_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_create_or_update_maximum_set_gen.py @@ -60,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/BrokerAuthorization_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/BrokerAuthorization_CreateOrUpdate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_create_or_update_simple.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_create_or_update_simple.py index 48819d9f7be0..a44ba97430f9 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_create_or_update_simple.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_create_or_update_simple.py @@ -60,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/BrokerAuthorization_CreateOrUpdate_Simple.json +# x-ms-original-file: 2025-01-01-preview/BrokerAuthorization_CreateOrUpdate_Simple.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_delete_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_delete_maximum_set_gen.py index f5153a169683..478862225b19 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_delete_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_delete_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2024-09-15-preview/BrokerAuthorization_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/BrokerAuthorization_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_get_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_get_maximum_set_gen.py index 775ffadbc583..1b03bc8c674e 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_get_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_get_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/BrokerAuthorization_Get_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/BrokerAuthorization_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_list_by_resource_group_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_list_by_resource_group_maximum_set_gen.py index f1dc1d5efb44..7913cc87c592 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_list_by_resource_group_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_authorization_list_by_resource_group_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2024-09-15-preview/BrokerAuthorization_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/BrokerAuthorization_ListByResourceGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_complex.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_complex.py index 4c5a8b31c5c5..50e2825beacc 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_complex.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_complex.py @@ -50,6 +50,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/Broker_CreateOrUpdate_Complex.json +# x-ms-original-file: 2025-01-01-preview/Broker_CreateOrUpdate_Complex.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_maximum_set_gen.py index 618bf4c3e95a..9d12e15332d4 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_maximum_set_gen.py @@ -119,6 +119,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/Broker_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/Broker_CreateOrUpdate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_minimal.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_minimal.py index 0e6f250a9079..b157dd5d724e 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_minimal.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_minimal.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/Broker_CreateOrUpdate_Minimal.json +# x-ms-original-file: 2025-01-01-preview/Broker_CreateOrUpdate_Minimal.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_simple.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_simple.py index be119e290e0f..1231b69eea42 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_simple.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_create_or_update_simple.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/Broker_CreateOrUpdate_Simple.json +# x-ms-original-file: 2025-01-01-preview/Broker_CreateOrUpdate_Simple.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_delete_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_delete_maximum_set_gen.py index aa28eb79d8f2..18cbe93af932 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_delete_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_delete_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2024-09-15-preview/Broker_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/Broker_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_get_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_get_maximum_set_gen.py index 162a8b1c040d..323c42d7f4f2 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_get_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_get_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/Broker_Get_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/Broker_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_list_by_resource_group_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_list_by_resource_group_maximum_set_gen.py index 96bd9659fabb..8ace04c653e0 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_list_by_resource_group_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_list_by_resource_group_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2024-09-15-preview/Broker_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/Broker_ListByResourceGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_create_or_update_complex.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_create_or_update_complex.py index daa0e50f4c57..cfb8388bde15 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_create_or_update_complex.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_create_or_update_complex.py @@ -69,6 +69,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/BrokerListener_CreateOrUpdate_Complex.json +# x-ms-original-file: 2025-01-01-preview/BrokerListener_CreateOrUpdate_Complex.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_create_or_update_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_create_or_update_maximum_set_gen.py index 235edaeb6214..8048ed2b1841 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_create_or_update_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_create_or_update_maximum_set_gen.py @@ -71,6 +71,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/BrokerListener_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/BrokerListener_CreateOrUpdate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_create_or_update_simple.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_create_or_update_simple.py index f50a2cb5300a..4d05551d5a77 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_create_or_update_simple.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_create_or_update_simple.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/BrokerListener_CreateOrUpdate_Simple.json +# x-ms-original-file: 2025-01-01-preview/BrokerListener_CreateOrUpdate_Simple.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_delete_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_delete_maximum_set_gen.py index 1d06f913b00d..d57a88a2f00d 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_delete_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_delete_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2024-09-15-preview/BrokerListener_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/BrokerListener_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_get_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_get_maximum_set_gen.py index 55b323533e1b..7ba2f9a1fd88 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_get_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_get_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/BrokerListener_Get_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/BrokerListener_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_list_by_resource_group_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_list_by_resource_group_maximum_set_gen.py index e3d03da7ce9e..c0d69b580315 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_list_by_resource_group_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/broker_listener_list_by_resource_group_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2024-09-15-preview/BrokerListener_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/BrokerListener_ListByResourceGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_complex_contextualization.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_complex_contextualization.py index a66287a8e5c1..292037e40fa5 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_complex_contextualization.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_complex_contextualization.py @@ -77,6 +77,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/Dataflow_CreateOrUpdate_ComplexContextualization.json +# x-ms-original-file: 2025-01-01-preview/Dataflow_CreateOrUpdate_ComplexContextualization.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_complex_event_hub.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_complex_event_hub.py index 08e883e93a02..b01e5ad4e7cc 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_complex_event_hub.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_complex_event_hub.py @@ -95,6 +95,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/Dataflow_CreateOrUpdate_ComplexEventHub.json +# x-ms-original-file: 2025-01-01-preview/Dataflow_CreateOrUpdate_ComplexEventHub.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_filter_to_topic.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_filter_to_topic.py index 84e5697eb2c1..a8da5be81cb3 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_filter_to_topic.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_filter_to_topic.py @@ -78,6 +78,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/Dataflow_CreateOrUpdate_FilterToTopic.json +# x-ms-original-file: 2025-01-01-preview/Dataflow_CreateOrUpdate_FilterToTopic.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_maximum_set_gen.py index 9b0136244254..36ab796bc6de 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_maximum_set_gen.py @@ -92,6 +92,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/Dataflow_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/Dataflow_CreateOrUpdate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_simple_event_grid.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_simple_event_grid.py index 0bd3ac75b459..5bbc0f77f63d 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_simple_event_grid.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_simple_event_grid.py @@ -63,6 +63,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/Dataflow_CreateOrUpdate_SimpleEventGrid.json +# x-ms-original-file: 2025-01-01-preview/Dataflow_CreateOrUpdate_SimpleEventGrid.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_simple_fabric.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_simple_fabric.py index 163341a74b4b..63bbca8361bb 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_simple_fabric.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_create_or_update_simple_fabric.py @@ -67,6 +67,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/Dataflow_CreateOrUpdate_SimpleFabric.json +# x-ms-original-file: 2025-01-01-preview/Dataflow_CreateOrUpdate_SimpleFabric.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_delete_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_delete_maximum_set_gen.py index 89b837da4da5..04173d3d68a9 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_delete_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_delete_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): ).result() -# x-ms-original-file: 2024-09-15-preview/Dataflow_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/Dataflow_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_adlsv2.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_adlsv2.py index 90760d829e7c..f90087b0d04c 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_adlsv2.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_adlsv2.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/DataflowEndpoint_CreateOrUpdate_ADLSv2.json +# x-ms-original-file: 2025-01-01-preview/DataflowEndpoint_CreateOrUpdate_ADLSv2.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_adx.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_adx.py index 576f011e787f..576cdcb4d85a 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_adx.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_adx.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/DataflowEndpoint_CreateOrUpdate_ADX.json +# x-ms-original-file: 2025-01-01-preview/DataflowEndpoint_CreateOrUpdate_ADX.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_aio.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_aio.py index 9f5da0c2d4ee..5a9b64ce2d52 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_aio.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_aio.py @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/DataflowEndpoint_CreateOrUpdate_AIO.json +# x-ms-original-file: 2025-01-01-preview/DataflowEndpoint_CreateOrUpdate_AIO.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_event_grid.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_event_grid.py index 92a2993d240a..cac21d119942 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_event_grid.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_event_grid.py @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/DataflowEndpoint_CreateOrUpdate_EventGrid.json +# x-ms-original-file: 2025-01-01-preview/DataflowEndpoint_CreateOrUpdate_EventGrid.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_event_hub.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_event_hub.py index d5d8c279a0ed..e527047769c7 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_event_hub.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_event_hub.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/DataflowEndpoint_CreateOrUpdate_EventHub.json +# x-ms-original-file: 2025-01-01-preview/DataflowEndpoint_CreateOrUpdate_EventHub.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_fabric.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_fabric.py index d29bf8f2f4c1..fbd9aa2ab22e 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_fabric.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_fabric.py @@ -53,6 +53,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/DataflowEndpoint_CreateOrUpdate_Fabric.json +# x-ms-original-file: 2025-01-01-preview/DataflowEndpoint_CreateOrUpdate_Fabric.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_kafka.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_kafka.py index 8a9896075886..f43493ec9ac1 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_kafka.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_kafka.py @@ -59,6 +59,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/DataflowEndpoint_CreateOrUpdate_Kafka.json +# x-ms-original-file: 2025-01-01-preview/DataflowEndpoint_CreateOrUpdate_Kafka.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_local_storage.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_local_storage.py index 6841685a1b37..96a373d42f94 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_local_storage.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_local_storage.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/DataflowEndpoint_CreateOrUpdate_LocalStorage.json +# x-ms-original-file: 2025-01-01-preview/DataflowEndpoint_CreateOrUpdate_LocalStorage.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_maximum_set_gen.py index 2f6cbcc005f3..b201bf2410cd 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_maximum_set_gen.py @@ -133,6 +133,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/DataflowEndpoint_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/DataflowEndpoint_CreateOrUpdate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_mqtt.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_mqtt.py index 9764a670886a..d94d1e74a386 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_mqtt.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_create_or_update_mqtt.py @@ -59,6 +59,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/DataflowEndpoint_CreateOrUpdate_MQTT.json +# x-ms-original-file: 2025-01-01-preview/DataflowEndpoint_CreateOrUpdate_MQTT.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_delete_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_delete_maximum_set_gen.py index b1dfa4814930..f79b163d57af 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_delete_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_delete_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2024-09-15-preview/DataflowEndpoint_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/DataflowEndpoint_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_get_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_get_maximum_set_gen.py index e2ec6b36ca9d..bcc38e20bb96 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_get_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_get_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/DataflowEndpoint_Get_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/DataflowEndpoint_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_list_by_resource_group_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_list_by_resource_group_maximum_set_gen.py index 601e859558d1..005d9dad52e8 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_list_by_resource_group_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_endpoint_list_by_resource_group_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2024-09-15-preview/DataflowEndpoint_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/DataflowEndpoint_ListByResourceGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_get_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_get_maximum_set_gen.py index 261a0ea954a7..29c82122467d 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_get_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_get_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/Dataflow_Get_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/Dataflow_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_list_by_profile_resource_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_list_by_profile_resource_maximum_set_gen.py index 2e23bbd9b9a3..e6f38b6dfa88 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_list_by_profile_resource_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_list_by_profile_resource_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2024-09-15-preview/Dataflow_ListByProfileResource_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/Dataflow_ListByProfileResource_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_create_or_update_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_create_or_update_maximum_set_gen.py index b5e9f2a965d5..d225fda2395c 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_create_or_update_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_create_or_update_maximum_set_gen.py @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/DataflowProfile_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/DataflowProfile_CreateOrUpdate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_create_or_update_minimal.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_create_or_update_minimal.py index 46c5c524891c..5789a97d00d9 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_create_or_update_minimal.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_create_or_update_minimal.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/DataflowProfile_CreateOrUpdate_Minimal.json +# x-ms-original-file: 2025-01-01-preview/DataflowProfile_CreateOrUpdate_Minimal.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_create_or_update_multi.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_create_or_update_multi.py index 903dbaa8fff1..4e363da3e75f 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_create_or_update_multi.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_create_or_update_multi.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/DataflowProfile_CreateOrUpdate_Multi.json +# x-ms-original-file: 2025-01-01-preview/DataflowProfile_CreateOrUpdate_Multi.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_delete_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_delete_maximum_set_gen.py index 3e5418d8c15f..0b55ddbcbf82 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_delete_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_delete_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2024-09-15-preview/DataflowProfile_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/DataflowProfile_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_get_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_get_maximum_set_gen.py index b6186d7026e3..00dbe6d1b502 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_get_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_get_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/DataflowProfile_Get_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/DataflowProfile_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_list_by_resource_group_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_list_by_resource_group_maximum_set_gen.py index dc5ce7d64d8f..0aba62a14599 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_list_by_resource_group_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/dataflow_profile_list_by_resource_group_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2024-09-15-preview/DataflowProfile_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/DataflowProfile_ListByResourceGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_create_or_update_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_create_or_update_maximum_set_gen.py index 38393489b9e4..b94f1975ff26 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_create_or_update_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_create_or_update_maximum_set_gen.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/Instance_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/Instance_CreateOrUpdate_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_delete_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_delete_maximum_set_gen.py index 5efdae2fad23..3fb877111e4e 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_delete_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_delete_maximum_set_gen.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2024-09-15-preview/Instance_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/Instance_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_get_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_get_maximum_set_gen.py index c5cadf434e11..d191777b8d45 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_get_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_get_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/Instance_Get_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/Instance_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_list_by_resource_group_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_list_by_resource_group_maximum_set_gen.py index 112b7a482d7b..3d01baa7b25b 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_list_by_resource_group_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_list_by_resource_group_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2024-09-15-preview/Instance_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/Instance_ListByResourceGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_list_by_subscription_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_list_by_subscription_maximum_set_gen.py index 4d7855a98ab2..488af5a596bc 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_list_by_subscription_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_list_by_subscription_maximum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2024-09-15-preview/Instance_ListBySubscription_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/Instance_ListBySubscription_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_update_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_update_maximum_set_gen.py index 2c7a61a1545a..6973b7fa1ecc 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_update_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/instance_update_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2024-09-15-preview/Instance_Update_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/Instance_Update_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/operations_list_maximum_set_gen.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/operations_list_maximum_set_gen.py index 8d0f510d276c..68d51cae1ea0 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/operations_list_maximum_set_gen.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_samples/operations_list_maximum_set_gen.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2024-09-15-preview/Operations_List_MaximumSet_Gen.json +# x-ms-original-file: 2025-01-01-preview/Operations_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_tests/test_io_toperations_mgmt_dataflow_endpoint_operations.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_tests/test_io_toperations_mgmt_dataflow_endpoint_operations.py index 4227ee4806be..2613eb3d696f 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_tests/test_io_toperations_mgmt_dataflow_endpoint_operations.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_tests/test_io_toperations_mgmt_dataflow_endpoint_operations.py @@ -41,99 +41,7 @@ def test_dataflow_endpoint_begin_create_or_update(self, resource_group): "extendedLocation": {"name": "str", "type": "str"}, "id": "str", "name": "str", - "properties": { - "endpointType": "str", - "dataExplorerSettings": { - "authentication": { - "method": "str", - "systemAssignedManagedIdentitySettings": {"audience": "str"}, - "userAssignedManagedIdentitySettings": { - "clientId": "str", - "tenantId": "str", - "scope": "str", - }, - }, - "database": "str", - "host": "str", - "batching": {"latencySeconds": 0, "maxMessages": 0}, - }, - "dataLakeStorageSettings": { - "authentication": { - "method": "str", - "accessTokenSettings": {"secretRef": "str"}, - "systemAssignedManagedIdentitySettings": {"audience": "str"}, - "userAssignedManagedIdentitySettings": { - "clientId": "str", - "tenantId": "str", - "scope": "str", - }, - }, - "host": "str", - "batching": {"latencySeconds": 0, "maxMessages": 0}, - }, - "fabricOneLakeSettings": { - "authentication": { - "method": "str", - "systemAssignedManagedIdentitySettings": {"audience": "str"}, - "userAssignedManagedIdentitySettings": { - "clientId": "str", - "tenantId": "str", - "scope": "str", - }, - }, - "host": "str", - "names": {"lakehouseName": "str", "workspaceName": "str"}, - "oneLakePathType": "str", - "batching": {"latencySeconds": 0, "maxMessages": 0}, - }, - "kafkaSettings": { - "authentication": { - "method": "str", - "saslSettings": {"saslType": "str", "secretRef": "str"}, - "systemAssignedManagedIdentitySettings": {"audience": "str"}, - "userAssignedManagedIdentitySettings": { - "clientId": "str", - "tenantId": "str", - "scope": "str", - }, - "x509CertificateSettings": {"secretRef": "str"}, - }, - "host": "str", - "batching": {"latencyMs": 0, "maxBytes": 0, "maxMessages": 0, "mode": "str"}, - "cloudEventAttributes": "str", - "compression": "str", - "consumerGroupId": "str", - "copyMqttProperties": "str", - "kafkaAcks": "str", - "partitionStrategy": "str", - "tls": {"mode": "str", "trustedCaCertificateConfigMapRef": "str"}, - }, - "localStorageSettings": {"persistentVolumeClaimRef": "str"}, - "mqttSettings": { - "authentication": { - "method": "str", - "serviceAccountTokenSettings": {"audience": "str"}, - "systemAssignedManagedIdentitySettings": {"audience": "str"}, - "userAssignedManagedIdentitySettings": { - "clientId": "str", - "tenantId": "str", - "scope": "str", - }, - "x509CertificateSettings": {"secretRef": "str"}, - }, - "clientIdPrefix": "str", - "cloudEventAttributes": "str", - "host": "str", - "keepAliveSeconds": 0, - "maxInflightMessages": 0, - "protocol": "str", - "qos": 0, - "retain": "str", - "sessionExpirySeconds": 0, - "tls": {"mode": "str", "trustedCaCertificateConfigMapRef": "str"}, - }, - "provisioningState": "str", - }, + "properties": "dataflow_endpoint_properties", "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/generated_tests/test_io_toperations_mgmt_dataflow_endpoint_operations_async.py b/sdk/iotoperations/azure-mgmt-iotoperations/generated_tests/test_io_toperations_mgmt_dataflow_endpoint_operations_async.py index fab2a6575817..aa089e78341a 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/generated_tests/test_io_toperations_mgmt_dataflow_endpoint_operations_async.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/generated_tests/test_io_toperations_mgmt_dataflow_endpoint_operations_async.py @@ -43,99 +43,7 @@ async def test_dataflow_endpoint_begin_create_or_update(self, resource_group): "extendedLocation": {"name": "str", "type": "str"}, "id": "str", "name": "str", - "properties": { - "endpointType": "str", - "dataExplorerSettings": { - "authentication": { - "method": "str", - "systemAssignedManagedIdentitySettings": {"audience": "str"}, - "userAssignedManagedIdentitySettings": { - "clientId": "str", - "tenantId": "str", - "scope": "str", - }, - }, - "database": "str", - "host": "str", - "batching": {"latencySeconds": 0, "maxMessages": 0}, - }, - "dataLakeStorageSettings": { - "authentication": { - "method": "str", - "accessTokenSettings": {"secretRef": "str"}, - "systemAssignedManagedIdentitySettings": {"audience": "str"}, - "userAssignedManagedIdentitySettings": { - "clientId": "str", - "tenantId": "str", - "scope": "str", - }, - }, - "host": "str", - "batching": {"latencySeconds": 0, "maxMessages": 0}, - }, - "fabricOneLakeSettings": { - "authentication": { - "method": "str", - "systemAssignedManagedIdentitySettings": {"audience": "str"}, - "userAssignedManagedIdentitySettings": { - "clientId": "str", - "tenantId": "str", - "scope": "str", - }, - }, - "host": "str", - "names": {"lakehouseName": "str", "workspaceName": "str"}, - "oneLakePathType": "str", - "batching": {"latencySeconds": 0, "maxMessages": 0}, - }, - "kafkaSettings": { - "authentication": { - "method": "str", - "saslSettings": {"saslType": "str", "secretRef": "str"}, - "systemAssignedManagedIdentitySettings": {"audience": "str"}, - "userAssignedManagedIdentitySettings": { - "clientId": "str", - "tenantId": "str", - "scope": "str", - }, - "x509CertificateSettings": {"secretRef": "str"}, - }, - "host": "str", - "batching": {"latencyMs": 0, "maxBytes": 0, "maxMessages": 0, "mode": "str"}, - "cloudEventAttributes": "str", - "compression": "str", - "consumerGroupId": "str", - "copyMqttProperties": "str", - "kafkaAcks": "str", - "partitionStrategy": "str", - "tls": {"mode": "str", "trustedCaCertificateConfigMapRef": "str"}, - }, - "localStorageSettings": {"persistentVolumeClaimRef": "str"}, - "mqttSettings": { - "authentication": { - "method": "str", - "serviceAccountTokenSettings": {"audience": "str"}, - "systemAssignedManagedIdentitySettings": {"audience": "str"}, - "userAssignedManagedIdentitySettings": { - "clientId": "str", - "tenantId": "str", - "scope": "str", - }, - "x509CertificateSettings": {"secretRef": "str"}, - }, - "clientIdPrefix": "str", - "cloudEventAttributes": "str", - "host": "str", - "keepAliveSeconds": 0, - "maxInflightMessages": 0, - "protocol": "str", - "qos": 0, - "retain": "str", - "sessionExpirySeconds": 0, - "tls": {"mode": "str", "trustedCaCertificateConfigMapRef": "str"}, - }, - "provisioningState": "str", - }, + "properties": "dataflow_endpoint_properties", "systemData": { "createdAt": "2020-02-20 00:00:00", "createdBy": "str", diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_instance_operations_async_test.py b/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_instance_operations_async_test.py index 7e29a3b3762b..53c6c5f37831 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_instance_operations_async_test.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_instance_operations_async_test.py @@ -27,7 +27,6 @@ async def test_instance_list_by_resource_group(self, resource_group): ) result = [r async for r in response] assert result == [] - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy_async @@ -35,4 +34,3 @@ async def test_instance_list_by_subscription(self, resource_group): response = self.client.instance.list_by_subscription() result = [r async for r in response] assert response - \ No newline at end of file diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_instance_operations_test.py b/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_instance_operations_test.py index d573890c54c3..4f53d99b4b2a 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_instance_operations_test.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_instance_operations_test.py @@ -26,7 +26,6 @@ def test_instance_list_by_resource_group(self, resource_group): ) result = [r for r in response] assert result == [] - @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) @recorded_by_proxy diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_operations_async_test.py b/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_operations_async_test.py index 647a58de1452..8260bda58a9c 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_operations_async_test.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_operations_async_test.py @@ -25,4 +25,3 @@ async def test_operations_list(self, resource_group): response = self.client.operations.list() result = [r async for r in response] assert result - diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_operations_test.py b/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_operations_test.py index da6288b3c1af..e294fc6094a9 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_operations_test.py +++ b/sdk/iotoperations/azure-mgmt-iotoperations/tests/test_io_toperations_mgmt_operations_test.py @@ -24,4 +24,3 @@ def test_operations_list(self, resource_group): response = self.client.operations.list() result = [r for r in response] assert result - diff --git a/sdk/iotoperations/azure-mgmt-iotoperations/tsp-location.yaml b/sdk/iotoperations/azure-mgmt-iotoperations/tsp-location.yaml index cc251cc3b876..e77f530b696d 100644 --- a/sdk/iotoperations/azure-mgmt-iotoperations/tsp-location.yaml +++ b/sdk/iotoperations/azure-mgmt-iotoperations/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/iotoperations/IoTOperations.Management -commit: 7d0134ad6d42786b1ff2d49a3cfb331b336c3099 +commit: 6f972618cea0df6aa7f681a325efe7ca2a9db9d0 repo: Azure/azure-rest-api-specs additionalDirectories: