From d80e463b4b04efc421e417869417cc6690406119 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 25 Jun 2021 23:20:18 +0000 Subject: [PATCH] CodeGen from PR 14990 in Azure/azure-rest-api-specs [Python] track2 config (#14990) * authorization * automation * recoveryservices * logic * notificationhubs * search --- sdk/logic/azure-mgmt-logic/MANIFEST.in | 1 + sdk/logic/azure-mgmt-logic/_meta.json | 11 + .../mgmt/logic/_logic_management_client.py | 19 ++ .../azure/mgmt/logic/_metadata.json | 129 +++++++++++ .../azure/mgmt/logic/_version.py | 2 +- .../logic/aio/_logic_management_client.py | 18 ++ ...tegration_account_agreements_operations.py | 20 +- ...tegration_account_assemblies_operations.py | 20 +- ...account_batch_configurations_operations.py | 16 +- ...gration_account_certificates_operations.py | 16 +- .../_integration_account_maps_operations.py | 20 +- ...integration_account_partners_operations.py | 20 +- ..._integration_account_schemas_operations.py | 20 +- ...integration_account_sessions_operations.py | 16 +- .../_integration_accounts_operations.py | 40 ++-- ...nment_managed_api_operations_operations.py | 4 +- ...ice_environment_managed_apis_operations.py | 28 +-- ...e_environment_network_health_operations.py | 4 +- ...ion_service_environment_skus_operations.py | 4 +- ...gration_service_environments_operations.py | 40 ++-- .../mgmt/logic/aio/operations/_operations.py | 4 +- ...kflow_run_action_repetitions_operations.py | 12 +- ...epetitions_request_histories_operations.py | 8 +- ...run_action_request_histories_operations.py | 8 +- ...run_action_scope_repetitions_operations.py | 8 +- .../_workflow_run_actions_operations.py | 12 +- .../_workflow_run_operations_operations.py | 4 +- .../operations/_workflow_runs_operations.py | 12 +- .../_workflow_trigger_histories_operations.py | 12 +- .../_workflow_triggers_operations.py | 28 +-- .../_workflow_version_triggers_operations.py | 4 +- .../_workflow_versions_operations.py | 8 +- .../aio/operations/_workflows_operations.py | 82 +++---- .../azure/mgmt/logic/models/_models.py | 136 +++++------ .../azure/mgmt/logic/models/_models_py3.py | 214 +++++++++--------- ...tegration_account_agreements_operations.py | 10 +- ...tegration_account_assemblies_operations.py | 10 +- ...account_batch_configurations_operations.py | 8 +- ...gration_account_certificates_operations.py | 8 +- .../_integration_account_maps_operations.py | 10 +- ...integration_account_partners_operations.py | 10 +- ..._integration_account_schemas_operations.py | 10 +- ...integration_account_sessions_operations.py | 8 +- .../_integration_accounts_operations.py | 20 +- ...nment_managed_api_operations_operations.py | 2 +- ...ice_environment_managed_apis_operations.py | 16 +- ...e_environment_network_health_operations.py | 2 +- ...ion_service_environment_skus_operations.py | 2 +- ...gration_service_environments_operations.py | 22 +- .../mgmt/logic/operations/_operations.py | 2 +- ...kflow_run_action_repetitions_operations.py | 6 +- ...epetitions_request_histories_operations.py | 4 +- ...run_action_request_histories_operations.py | 4 +- ...run_action_scope_repetitions_operations.py | 4 +- .../_workflow_run_actions_operations.py | 6 +- .../_workflow_run_operations_operations.py | 2 +- .../operations/_workflow_runs_operations.py | 6 +- .../_workflow_trigger_histories_operations.py | 6 +- .../_workflow_triggers_operations.py | 14 +- .../_workflow_version_triggers_operations.py | 2 +- .../_workflow_versions_operations.py | 4 +- .../logic/operations/_workflows_operations.py | 50 ++-- 62 files changed, 713 insertions(+), 535 deletions(-) create mode 100644 sdk/logic/azure-mgmt-logic/_meta.json create mode 100644 sdk/logic/azure-mgmt-logic/azure/mgmt/logic/_metadata.json diff --git a/sdk/logic/azure-mgmt-logic/MANIFEST.in b/sdk/logic/azure-mgmt-logic/MANIFEST.in index fa6ea7e65b7a..d85e83afdf6e 100644 --- a/sdk/logic/azure-mgmt-logic/MANIFEST.in +++ b/sdk/logic/azure-mgmt-logic/MANIFEST.in @@ -1,3 +1,4 @@ +include _meta.json include *.md include azure/__init__.py include azure/mgmt/__init__.py diff --git a/sdk/logic/azure-mgmt-logic/_meta.json b/sdk/logic/azure-mgmt-logic/_meta.json new file mode 100644 index 000000000000..bfbc2d744c19 --- /dev/null +++ b/sdk/logic/azure-mgmt-logic/_meta.json @@ -0,0 +1,11 @@ +{ + "autorest": "3.4.2", + "use": [ + "@autorest/python@5.8.1", + "@autorest/modelerfour@4.19.2" + ], + "commit": "7f530e3727f746e26f5b5ece8a5874daf10cc56f", + "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "autorest_command": "autorest specification/logic/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", + "readme": "specification/logic/resource-manager/readme.md" +} \ No newline at end of file diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/_logic_management_client.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/_logic_management_client.py index 0cd3153bba30..3d866706af68 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/_logic_management_client.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/_logic_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import LogicManagementClientConfiguration from .operations import WorkflowsOperations @@ -186,6 +187,24 @@ def __init__( self.operations = Operations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/_metadata.json b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/_metadata.json new file mode 100644 index 000000000000..f7f9fc249bb6 --- /dev/null +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/_metadata.json @@ -0,0 +1,129 @@ +{ + "chosen_version": "2019-05-01", + "total_api_version_list": ["2019-05-01"], + "client": { + "name": "LogicManagementClient", + "filename": "_logic_management_client", + "description": "REST API for Azure Logic Apps.", + "base_url": "\u0027https://management.azure.com\u0027", + "custom_base_url": null, + "azure_arm": true, + "has_lro_operations": true, + "client_side_validation": false, + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"LogicManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"LogicManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" + }, + "global_parameters": { + "sync": { + "credential": { + "signature": "credential, # type: \"TokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials.TokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id, # type: str", + "description": "The subscription id.", + "docstring_type": "str", + "required": true + } + }, + "async": { + "credential": { + "signature": "credential: \"AsyncTokenCredential\",", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id: str,", + "description": "The subscription id.", + "docstring_type": "str", + "required": true + } + }, + "constant": { + }, + "call": "credential, subscription_id", + "service_client_specific": { + "sync": { + "api_version": { + "signature": "api_version=None, # type: Optional[str]", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url=None, # type: Optional[str]", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile=KnownProfiles.default, # type: KnownProfiles", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + }, + "async": { + "api_version": { + "signature": "api_version: Optional[str] = None,", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url: Optional[str] = None,", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile: KnownProfiles = KnownProfiles.default,", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + } + } + }, + "config": { + "credential": true, + "credential_scopes": ["https://management.azure.com/.default"], + "credential_default_policy_type": "BearerTokenCredentialPolicy", + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null, + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}", + "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" + }, + "operation_groups": { + "workflows": "WorkflowsOperations", + "workflow_versions": "WorkflowVersionsOperations", + "workflow_triggers": "WorkflowTriggersOperations", + "workflow_version_triggers": "WorkflowVersionTriggersOperations", + "workflow_trigger_histories": "WorkflowTriggerHistoriesOperations", + "workflow_runs": "WorkflowRunsOperations", + "workflow_run_actions": "WorkflowRunActionsOperations", + "workflow_run_action_repetitions": "WorkflowRunActionRepetitionsOperations", + "workflow_run_action_repetitions_request_histories": "WorkflowRunActionRepetitionsRequestHistoriesOperations", + "workflow_run_action_request_histories": "WorkflowRunActionRequestHistoriesOperations", + "workflow_run_action_scope_repetitions": "WorkflowRunActionScopeRepetitionsOperations", + "workflow_run_operations": "WorkflowRunOperationsOperations", + "integration_accounts": "IntegrationAccountsOperations", + "integration_account_assemblies": "IntegrationAccountAssembliesOperations", + "integration_account_batch_configurations": "IntegrationAccountBatchConfigurationsOperations", + "integration_account_schemas": "IntegrationAccountSchemasOperations", + "integration_account_maps": "IntegrationAccountMapsOperations", + "integration_account_partners": "IntegrationAccountPartnersOperations", + "integration_account_agreements": "IntegrationAccountAgreementsOperations", + "integration_account_certificates": "IntegrationAccountCertificatesOperations", + "integration_account_sessions": "IntegrationAccountSessionsOperations", + "integration_service_environments": "IntegrationServiceEnvironmentsOperations", + "integration_service_environment_skus": "IntegrationServiceEnvironmentSkusOperations", + "integration_service_environment_network_health": "IntegrationServiceEnvironmentNetworkHealthOperations", + "integration_service_environment_managed_apis": "IntegrationServiceEnvironmentManagedApisOperations", + "integration_service_environment_managed_api_operations": "IntegrationServiceEnvironmentManagedApiOperationsOperations", + "operations": "Operations" + } +} \ No newline at end of file diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/_version.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/_version.py index b77ac9246082..e5754a47ce68 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/_version.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "9.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/_logic_management_client.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/_logic_management_client.py index 085283195460..cdbeeebc0da4 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/_logic_management_client.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/_logic_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -183,6 +184,23 @@ def __init__( self.operations = Operations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_agreements_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_agreements_operations.py index c0df41361ac3..db0e58538115 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_agreements_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_agreements_operations.py @@ -47,7 +47,7 @@ def list( integration_account_name: str, top: Optional[int] = None, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.IntegrationAccountAgreementListResult"]: """Gets a list of integration account agreements. @@ -116,7 +116,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -132,7 +132,7 @@ async def get( resource_group_name: str, integration_account_name: str, agreement_name: str, - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccountAgreement": """Gets an integration account agreement. @@ -179,7 +179,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccountAgreement', pipeline_response) @@ -196,7 +196,7 @@ async def create_or_update( integration_account_name: str, agreement_name: str, agreement: "_models.IntegrationAccountAgreement", - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccountAgreement": """Creates or updates an integration account agreement. @@ -250,7 +250,7 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -270,7 +270,7 @@ async def delete( resource_group_name: str, integration_account_name: str, agreement_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes an integration account agreement. @@ -317,7 +317,7 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -331,7 +331,7 @@ async def list_content_callback_url( integration_account_name: str, agreement_name: str, list_content_callback_url: "_models.GetCallbackUrlParameters", - **kwargs + **kwargs: Any ) -> "_models.WorkflowTriggerCallbackUrl": """Get the content callback url. @@ -385,7 +385,7 @@ async def list_content_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_assemblies_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_assemblies_operations.py index 5d3df83244e4..099f183b285e 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_assemblies_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_assemblies_operations.py @@ -45,7 +45,7 @@ def list( self, resource_group_name: str, integration_account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AssemblyCollection"]: """List the assemblies for an integration account. @@ -105,7 +105,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -121,7 +121,7 @@ async def get( resource_group_name: str, integration_account_name: str, assembly_artifact_name: str, - **kwargs + **kwargs: Any ) -> "_models.AssemblyDefinition": """Get an assembly for an integration account. @@ -168,7 +168,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AssemblyDefinition', pipeline_response) @@ -185,7 +185,7 @@ async def create_or_update( integration_account_name: str, assembly_artifact_name: str, assembly_artifact: "_models.AssemblyDefinition", - **kwargs + **kwargs: Any ) -> "_models.AssemblyDefinition": """Create or update an assembly for an integration account. @@ -239,7 +239,7 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -259,7 +259,7 @@ async def delete( resource_group_name: str, integration_account_name: str, assembly_artifact_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete an assembly for an integration account. @@ -306,7 +306,7 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -319,7 +319,7 @@ async def list_content_callback_url( resource_group_name: str, integration_account_name: str, assembly_artifact_name: str, - **kwargs + **kwargs: Any ) -> "_models.WorkflowTriggerCallbackUrl": """Get the content callback url for an integration account assembly. @@ -366,7 +366,7 @@ async def list_content_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_batch_configurations_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_batch_configurations_operations.py index 73798fc2bbde..d316a49a260f 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_batch_configurations_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_batch_configurations_operations.py @@ -45,7 +45,7 @@ def list( self, resource_group_name: str, integration_account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BatchConfigurationCollection"]: """List the batch configurations for an integration account. @@ -105,7 +105,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -121,7 +121,7 @@ async def get( resource_group_name: str, integration_account_name: str, batch_configuration_name: str, - **kwargs + **kwargs: Any ) -> "_models.BatchConfiguration": """Get a batch configuration for an integration account. @@ -168,7 +168,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('BatchConfiguration', pipeline_response) @@ -185,7 +185,7 @@ async def create_or_update( integration_account_name: str, batch_configuration_name: str, batch_configuration: "_models.BatchConfiguration", - **kwargs + **kwargs: Any ) -> "_models.BatchConfiguration": """Create or update a batch configuration for an integration account. @@ -239,7 +239,7 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -259,7 +259,7 @@ async def delete( resource_group_name: str, integration_account_name: str, batch_configuration_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a batch configuration for an integration account. @@ -306,7 +306,7 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_certificates_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_certificates_operations.py index 8de1fd4badf7..521ad2a67d34 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_certificates_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_certificates_operations.py @@ -46,7 +46,7 @@ def list( resource_group_name: str, integration_account_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.IntegrationAccountCertificateListResult"]: """Gets a list of integration account certificates. @@ -110,7 +110,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -126,7 +126,7 @@ async def get( resource_group_name: str, integration_account_name: str, certificate_name: str, - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccountCertificate": """Gets an integration account certificate. @@ -173,7 +173,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccountCertificate', pipeline_response) @@ -190,7 +190,7 @@ async def create_or_update( integration_account_name: str, certificate_name: str, certificate: "_models.IntegrationAccountCertificate", - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccountCertificate": """Creates or updates an integration account certificate. @@ -244,7 +244,7 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -264,7 +264,7 @@ async def delete( resource_group_name: str, integration_account_name: str, certificate_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes an integration account certificate. @@ -311,7 +311,7 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_maps_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_maps_operations.py index e6a9521bcac8..6c6873f80128 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_maps_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_maps_operations.py @@ -47,7 +47,7 @@ def list( integration_account_name: str, top: Optional[int] = None, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.IntegrationAccountMapListResult"]: """Gets a list of integration account maps. @@ -115,7 +115,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -131,7 +131,7 @@ async def get( resource_group_name: str, integration_account_name: str, map_name: str, - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccountMap": """Gets an integration account map. @@ -178,7 +178,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccountMap', pipeline_response) @@ -195,7 +195,7 @@ async def create_or_update( integration_account_name: str, map_name: str, map: "_models.IntegrationAccountMap", - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccountMap": """Creates or updates an integration account map. @@ -249,7 +249,7 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -269,7 +269,7 @@ async def delete( resource_group_name: str, integration_account_name: str, map_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes an integration account map. @@ -316,7 +316,7 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -330,7 +330,7 @@ async def list_content_callback_url( integration_account_name: str, map_name: str, list_content_callback_url: "_models.GetCallbackUrlParameters", - **kwargs + **kwargs: Any ) -> "_models.WorkflowTriggerCallbackUrl": """Get the content callback url. @@ -384,7 +384,7 @@ async def list_content_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_partners_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_partners_operations.py index 857d3f789f98..4afaee866a86 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_partners_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_partners_operations.py @@ -47,7 +47,7 @@ def list( integration_account_name: str, top: Optional[int] = None, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.IntegrationAccountPartnerListResult"]: """Gets a list of integration account partners. @@ -115,7 +115,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -131,7 +131,7 @@ async def get( resource_group_name: str, integration_account_name: str, partner_name: str, - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccountPartner": """Gets an integration account partner. @@ -178,7 +178,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccountPartner', pipeline_response) @@ -195,7 +195,7 @@ async def create_or_update( integration_account_name: str, partner_name: str, partner: "_models.IntegrationAccountPartner", - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccountPartner": """Creates or updates an integration account partner. @@ -249,7 +249,7 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -269,7 +269,7 @@ async def delete( resource_group_name: str, integration_account_name: str, partner_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes an integration account partner. @@ -316,7 +316,7 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -330,7 +330,7 @@ async def list_content_callback_url( integration_account_name: str, partner_name: str, list_content_callback_url: "_models.GetCallbackUrlParameters", - **kwargs + **kwargs: Any ) -> "_models.WorkflowTriggerCallbackUrl": """Get the content callback url. @@ -384,7 +384,7 @@ async def list_content_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_schemas_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_schemas_operations.py index 282afaddd2e7..9cefef9977f1 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_schemas_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_schemas_operations.py @@ -47,7 +47,7 @@ def list( integration_account_name: str, top: Optional[int] = None, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.IntegrationAccountSchemaListResult"]: """Gets a list of integration account schemas. @@ -115,7 +115,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -131,7 +131,7 @@ async def get( resource_group_name: str, integration_account_name: str, schema_name: str, - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccountSchema": """Gets an integration account schema. @@ -178,7 +178,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccountSchema', pipeline_response) @@ -195,7 +195,7 @@ async def create_or_update( integration_account_name: str, schema_name: str, schema: "_models.IntegrationAccountSchema", - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccountSchema": """Creates or updates an integration account schema. @@ -249,7 +249,7 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -269,7 +269,7 @@ async def delete( resource_group_name: str, integration_account_name: str, schema_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes an integration account schema. @@ -316,7 +316,7 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -330,7 +330,7 @@ async def list_content_callback_url( integration_account_name: str, schema_name: str, list_content_callback_url: "_models.GetCallbackUrlParameters", - **kwargs + **kwargs: Any ) -> "_models.WorkflowTriggerCallbackUrl": """Get the content callback url. @@ -384,7 +384,7 @@ async def list_content_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_sessions_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_sessions_operations.py index 10f7f711dfd0..1c1bfa302c13 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_sessions_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_sessions_operations.py @@ -47,7 +47,7 @@ def list( integration_account_name: str, top: Optional[int] = None, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.IntegrationAccountSessionListResult"]: """Gets a list of integration account sessions. @@ -115,7 +115,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -131,7 +131,7 @@ async def get( resource_group_name: str, integration_account_name: str, session_name: str, - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccountSession": """Gets an integration account session. @@ -178,7 +178,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccountSession', pipeline_response) @@ -195,7 +195,7 @@ async def create_or_update( integration_account_name: str, session_name: str, session: "_models.IntegrationAccountSession", - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccountSession": """Creates or updates an integration account session. @@ -249,7 +249,7 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -269,7 +269,7 @@ async def delete( resource_group_name: str, integration_account_name: str, session_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes an integration account session. @@ -316,7 +316,7 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_accounts_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_accounts_operations.py index f9df4f28a45e..755c3a7da47e 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_accounts_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_accounts_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_subscription( self, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.IntegrationAccountListResult"]: """Gets a list of integration accounts by subscription. @@ -102,7 +102,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -117,7 +117,7 @@ def list_by_resource_group( self, resource_group_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.IntegrationAccountListResult"]: """Gets a list of integration accounts by resource group. @@ -178,7 +178,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -193,7 +193,7 @@ async def get( self, resource_group_name: str, integration_account_name: str, - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccount": """Gets an integration account. @@ -237,7 +237,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccount', pipeline_response) @@ -253,7 +253,7 @@ async def create_or_update( resource_group_name: str, integration_account_name: str, integration_account: "_models.IntegrationAccount", - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccount": """Creates or updates an integration account. @@ -304,7 +304,7 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -324,7 +324,7 @@ async def update( resource_group_name: str, integration_account_name: str, integration_account: "_models.IntegrationAccount", - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccount": """Updates an integration account. @@ -375,7 +375,7 @@ async def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccount', pipeline_response) @@ -390,7 +390,7 @@ async def delete( self, resource_group_name: str, integration_account_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes an integration account. @@ -434,7 +434,7 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -447,7 +447,7 @@ async def list_callback_url( resource_group_name: str, integration_account_name: str, parameters: "_models.GetCallbackUrlParameters", - **kwargs + **kwargs: Any ) -> "_models.CallbackUrl": """Gets the integration account callback URL. @@ -498,7 +498,7 @@ async def list_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CallbackUrl', pipeline_response) @@ -514,7 +514,7 @@ def list_key_vault_keys( resource_group_name: str, integration_account_name: str, list_key_vault_keys: "_models.ListKeyVaultKeysDefinition", - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.KeyVaultKeyCollection"]: """Gets the integration account's Key Vault keys. @@ -584,7 +584,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -600,7 +600,7 @@ async def log_tracking_events( resource_group_name: str, integration_account_name: str, log_tracking_events: "_models.TrackingEventsDefinition", - **kwargs + **kwargs: Any ) -> None: """Logs the integration account's tracking events. @@ -651,7 +651,7 @@ async def log_tracking_events( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -664,7 +664,7 @@ async def regenerate_access_key( resource_group_name: str, integration_account_name: str, regenerate_access_key: "_models.RegenerateActionParameter", - **kwargs + **kwargs: Any ) -> "_models.IntegrationAccount": """Regenerates the integration account access key. @@ -715,7 +715,7 @@ async def regenerate_access_key( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccount', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_managed_api_operations_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_managed_api_operations_operations.py index b1686cf7c31c..53ecb2fa2888 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_managed_api_operations_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_managed_api_operations_operations.py @@ -46,7 +46,7 @@ def list( resource_group: str, integration_service_environment_name: str, api_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ApiOperationListResult"]: """Gets the managed Api operations. @@ -109,7 +109,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_managed_apis_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_managed_apis_operations.py index f7dfef1cc708..6a7713cb01c9 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_managed_apis_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_managed_apis_operations.py @@ -47,7 +47,7 @@ def list( self, resource_group: str, integration_service_environment_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ManagedApiListResult"]: """Gets the integration service environment managed Apis. @@ -107,7 +107,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -123,7 +123,7 @@ async def get( resource_group: str, integration_service_environment_name: str, api_name: str, - **kwargs + **kwargs: Any ) -> "_models.ManagedApi": """Gets the integration service environment managed Api. @@ -170,7 +170,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('ManagedApi', pipeline_response) @@ -186,7 +186,7 @@ async def _put_initial( resource_group: str, integration_service_environment_name: str, api_name: str, - **kwargs + **kwargs: Any ) -> "_models.ManagedApi": cls = kwargs.pop('cls', None) # type: ClsType["_models.ManagedApi"] error_map = { @@ -220,7 +220,7 @@ async def _put_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -240,7 +240,7 @@ async def begin_put( resource_group: str, integration_service_environment_name: str, api_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ManagedApi"]: """Puts the integration service environment managed Api. @@ -252,8 +252,8 @@ async def begin_put( :type api_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either ManagedApi or the result of cls(response) @@ -312,7 +312,7 @@ async def _delete_initial( resource_group: str, integration_service_environment_name: str, api_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -346,7 +346,7 @@ async def _delete_initial( if response.status_code not in [202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -359,7 +359,7 @@ async def begin_delete( resource_group: str, integration_service_environment_name: str, api_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the integration service environment managed Api. @@ -371,8 +371,8 @@ async def begin_delete( :type api_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_network_health_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_network_health_operations.py index 23b77d8815df..5555646cc317 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_network_health_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_network_health_operations.py @@ -44,7 +44,7 @@ async def get( self, resource_group: str, integration_service_environment_name: str, - **kwargs + **kwargs: Any ) -> Dict[str, "_models.IntegrationServiceEnvironmentSubnetNetworkHealth"]: """Gets the integration service environment network health. @@ -88,7 +88,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('{IntegrationServiceEnvironmentSubnetNetworkHealth}', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_skus_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_skus_operations.py index 3cb215a66278..7788fdcdaaa3 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_skus_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environment_skus_operations.py @@ -45,7 +45,7 @@ def list( self, resource_group: str, integration_service_environment_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.IntegrationServiceEnvironmentSkuList"]: """Gets a list of integration service environment Skus. @@ -105,7 +105,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environments_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environments_operations.py index 39d9c7958280..92e7df82e5d3 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environments_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_service_environments_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_subscription( self, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.IntegrationServiceEnvironmentListResult"]: """Gets a list of integration service environments by subscription. @@ -104,7 +104,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -119,7 +119,7 @@ def list_by_resource_group( self, resource_group: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.IntegrationServiceEnvironmentListResult"]: """Gets a list of integration service environments by resource group. @@ -180,7 +180,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -195,7 +195,7 @@ async def get( self, resource_group: str, integration_service_environment_name: str, - **kwargs + **kwargs: Any ) -> "_models.IntegrationServiceEnvironment": """Gets an integration service environment. @@ -239,7 +239,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) @@ -255,7 +255,7 @@ async def _create_or_update_initial( resource_group: str, integration_service_environment_name: str, integration_service_environment: "_models.IntegrationServiceEnvironment", - **kwargs + **kwargs: Any ) -> "_models.IntegrationServiceEnvironment": cls = kwargs.pop('cls', None) # type: ClsType["_models.IntegrationServiceEnvironment"] error_map = { @@ -293,7 +293,7 @@ async def _create_or_update_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -313,7 +313,7 @@ async def begin_create_or_update( resource_group: str, integration_service_environment_name: str, integration_service_environment: "_models.IntegrationServiceEnvironment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.IntegrationServiceEnvironment"]: """Creates or updates an integration service environment. @@ -325,8 +325,8 @@ async def begin_create_or_update( :type integration_service_environment: ~azure.mgmt.logic.models.IntegrationServiceEnvironment :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either IntegrationServiceEnvironment or the result of cls(response) @@ -384,7 +384,7 @@ async def _update_initial( resource_group: str, integration_service_environment_name: str, integration_service_environment: "_models.IntegrationServiceEnvironment", - **kwargs + **kwargs: Any ) -> "_models.IntegrationServiceEnvironment": cls = kwargs.pop('cls', None) # type: ClsType["_models.IntegrationServiceEnvironment"] error_map = { @@ -422,7 +422,7 @@ async def _update_initial( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) @@ -438,7 +438,7 @@ async def begin_update( resource_group: str, integration_service_environment_name: str, integration_service_environment: "_models.IntegrationServiceEnvironment", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.IntegrationServiceEnvironment"]: """Updates an integration service environment. @@ -450,8 +450,8 @@ async def begin_update( :type integration_service_environment: ~azure.mgmt.logic.models.IntegrationServiceEnvironment :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either IntegrationServiceEnvironment or the result of cls(response) @@ -508,7 +508,7 @@ async def delete( self, resource_group: str, integration_service_environment_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes an integration service environment. @@ -552,7 +552,7 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -564,7 +564,7 @@ async def restart( self, resource_group: str, integration_service_environment_name: str, - **kwargs + **kwargs: Any ) -> None: """Restarts an integration service environment. @@ -608,7 +608,7 @@ async def restart( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_operations.py index b4a23f9e8077..50b756807d54 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Logic REST API operations. @@ -93,7 +93,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_repetitions_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_repetitions_operations.py index c58e31566f49..48f6192e1a9b 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_repetitions_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_repetitions_operations.py @@ -47,7 +47,7 @@ def list( workflow_name: str, run_name: str, action_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkflowRunActionRepetitionDefinitionCollection"]: """Get all of a workflow run action repetitions. @@ -113,7 +113,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -131,7 +131,7 @@ async def get( run_name: str, action_name: str, repetition_name: str, - **kwargs + **kwargs: Any ) -> "_models.WorkflowRunActionRepetitionDefinition": """Get a workflow run action repetition. @@ -184,7 +184,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowRunActionRepetitionDefinition', pipeline_response) @@ -202,7 +202,7 @@ def list_expression_traces( run_name: str, action_name: str, repetition_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ExpressionTraces"]: """Lists a workflow run expression trace. @@ -271,7 +271,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_repetitions_request_histories_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_repetitions_request_histories_operations.py index d7d3d2917e66..24ed516a0f35 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_repetitions_request_histories_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_repetitions_request_histories_operations.py @@ -48,7 +48,7 @@ def list( run_name: str, action_name: str, repetition_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RequestHistoryListResult"]: """List a workflow run repetition request history. @@ -117,7 +117,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -136,7 +136,7 @@ async def get( action_name: str, repetition_name: str, request_history_name: str, - **kwargs + **kwargs: Any ) -> "_models.RequestHistory": """Gets a workflow run repetition request history. @@ -192,7 +192,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('RequestHistory', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_request_histories_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_request_histories_operations.py index bc058c31308f..3392e70dca8b 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_request_histories_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_request_histories_operations.py @@ -47,7 +47,7 @@ def list( workflow_name: str, run_name: str, action_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RequestHistoryListResult"]: """List a workflow run request history. @@ -113,7 +113,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -131,7 +131,7 @@ async def get( run_name: str, action_name: str, request_history_name: str, - **kwargs + **kwargs: Any ) -> "_models.RequestHistory": """Gets a workflow run request history. @@ -184,7 +184,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('RequestHistory', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_scope_repetitions_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_scope_repetitions_operations.py index 6630b6580397..4a98f69d2277 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_scope_repetitions_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_action_scope_repetitions_operations.py @@ -47,7 +47,7 @@ def list( workflow_name: str, run_name: str, action_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkflowRunActionRepetitionDefinitionCollection"]: """List the workflow run action scoped repetitions. @@ -113,7 +113,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -131,7 +131,7 @@ async def get( run_name: str, action_name: str, repetition_name: str, - **kwargs + **kwargs: Any ) -> "_models.WorkflowRunActionRepetitionDefinition": """Get a workflow run action scoped repetition. @@ -184,7 +184,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowRunActionRepetitionDefinition', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_actions_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_actions_operations.py index 4a36f6a492d0..51c2f7e9244f 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_actions_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_actions_operations.py @@ -48,7 +48,7 @@ def list( run_name: str, top: Optional[int] = None, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkflowRunActionListResult"]: """Gets a list of workflow run actions. @@ -119,7 +119,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -136,7 +136,7 @@ async def get( workflow_name: str, run_name: str, action_name: str, - **kwargs + **kwargs: Any ) -> "_models.WorkflowRunAction": """Gets a workflow run action. @@ -186,7 +186,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowRunAction', pipeline_response) @@ -203,7 +203,7 @@ def list_expression_traces( workflow_name: str, run_name: str, action_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ExpressionTraces"]: """Lists a workflow run expression trace. @@ -269,7 +269,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_operations_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_operations_operations.py index 5c7f372a64ae..517400091bb0 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_operations_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_run_operations_operations.py @@ -46,7 +46,7 @@ async def get( workflow_name: str, run_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkflowRun": """Gets an operation for a run. @@ -96,7 +96,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowRun', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_runs_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_runs_operations.py index b6e4a549910d..b2e40fcaf1d7 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_runs_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_runs_operations.py @@ -47,7 +47,7 @@ def list( workflow_name: str, top: Optional[int] = None, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkflowRunListResult"]: """Gets a list of workflow runs. @@ -116,7 +116,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -132,7 +132,7 @@ async def get( resource_group_name: str, workflow_name: str, run_name: str, - **kwargs + **kwargs: Any ) -> "_models.WorkflowRun": """Gets a workflow run. @@ -179,7 +179,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowRun', pipeline_response) @@ -195,7 +195,7 @@ async def cancel( resource_group_name: str, workflow_name: str, run_name: str, - **kwargs + **kwargs: Any ) -> None: """Cancels a workflow run. @@ -242,7 +242,7 @@ async def cancel( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_trigger_histories_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_trigger_histories_operations.py index 777ccda7ffb7..bbcf2642b24d 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_trigger_histories_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_trigger_histories_operations.py @@ -48,7 +48,7 @@ def list( trigger_name: str, top: Optional[int] = None, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkflowTriggerHistoryListResult"]: """Gets a list of workflow trigger histories. @@ -120,7 +120,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -137,7 +137,7 @@ async def get( workflow_name: str, trigger_name: str, history_name: str, - **kwargs + **kwargs: Any ) -> "_models.WorkflowTriggerHistory": """Gets a workflow trigger history. @@ -188,7 +188,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerHistory', pipeline_response) @@ -205,7 +205,7 @@ async def resubmit( workflow_name: str, trigger_name: str, history_name: str, - **kwargs + **kwargs: Any ) -> None: """Resubmits a workflow run based on the trigger history. @@ -256,7 +256,7 @@ async def resubmit( if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_triggers_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_triggers_operations.py index be54102263a3..b00876e01276 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_triggers_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_triggers_operations.py @@ -47,7 +47,7 @@ def list( workflow_name: str, top: Optional[int] = None, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkflowTriggerListResult"]: """Gets a list of workflow triggers. @@ -115,7 +115,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -131,7 +131,7 @@ async def get( resource_group_name: str, workflow_name: str, trigger_name: str, - **kwargs + **kwargs: Any ) -> "_models.WorkflowTrigger": """Gets a workflow trigger. @@ -178,7 +178,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTrigger', pipeline_response) @@ -194,7 +194,7 @@ async def reset( resource_group_name: str, workflow_name: str, trigger_name: str, - **kwargs + **kwargs: Any ) -> None: """Resets a workflow trigger. @@ -241,7 +241,7 @@ async def reset( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -254,7 +254,7 @@ async def run( resource_group_name: str, workflow_name: str, trigger_name: str, - **kwargs + **kwargs: Any ) -> None: """Runs a workflow trigger. @@ -301,7 +301,7 @@ async def run( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -314,7 +314,7 @@ async def get_schema_json( resource_group_name: str, workflow_name: str, trigger_name: str, - **kwargs + **kwargs: Any ) -> "_models.JsonSchema": """Get the trigger schema as JSON. @@ -361,7 +361,7 @@ async def get_schema_json( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('JsonSchema', pipeline_response) @@ -378,7 +378,7 @@ async def set_state( workflow_name: str, trigger_name: str, set_state: "_models.SetTriggerStateActionDefinition", - **kwargs + **kwargs: Any ) -> None: """Sets the state of a workflow trigger. @@ -432,7 +432,7 @@ async def set_state( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -445,7 +445,7 @@ async def list_callback_url( resource_group_name: str, workflow_name: str, trigger_name: str, - **kwargs + **kwargs: Any ) -> "_models.WorkflowTriggerCallbackUrl": """Get the callback URL for a workflow trigger. @@ -492,7 +492,7 @@ async def list_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_version_triggers_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_version_triggers_operations.py index 48c8deef2368..dd4729afefbe 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_version_triggers_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_version_triggers_operations.py @@ -47,7 +47,7 @@ async def list_callback_url( version_id: str, trigger_name: str, parameters: Optional["_models.GetCallbackUrlParameters"] = None, - **kwargs + **kwargs: Any ) -> "_models.WorkflowTriggerCallbackUrl": """Get the callback url for a trigger of a workflow version. @@ -107,7 +107,7 @@ async def list_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_versions_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_versions_operations.py index 3c413dc2b8e9..c0b4b02011c0 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_versions_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflow_versions_operations.py @@ -46,7 +46,7 @@ def list( resource_group_name: str, workflow_name: str, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkflowVersionListResult"]: """Gets a list of workflow versions. @@ -110,7 +110,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -126,7 +126,7 @@ async def get( resource_group_name: str, workflow_name: str, version_id: str, - **kwargs + **kwargs: Any ) -> "_models.WorkflowVersion": """Gets a workflow version. @@ -173,7 +173,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowVersion', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflows_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflows_operations.py index 214bafdc8a1e..903c58373ecd 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflows_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_workflows_operations.py @@ -47,7 +47,7 @@ def list_by_subscription( self, top: Optional[int] = None, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkflowListResult"]: """Gets a list of workflows by subscription. @@ -110,7 +110,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -126,7 +126,7 @@ def list_by_resource_group( resource_group_name: str, top: Optional[int] = None, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WorkflowListResult"]: """Gets a list of workflows by resource group. @@ -192,7 +192,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -207,7 +207,7 @@ async def get( self, resource_group_name: str, workflow_name: str, - **kwargs + **kwargs: Any ) -> "_models.Workflow": """Gets a workflow. @@ -251,7 +251,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('Workflow', pipeline_response) @@ -267,7 +267,7 @@ async def create_or_update( resource_group_name: str, workflow_name: str, workflow: "_models.Workflow", - **kwargs + **kwargs: Any ) -> "_models.Workflow": """Creates or updates a workflow. @@ -318,7 +318,7 @@ async def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -337,7 +337,7 @@ async def update( self, resource_group_name: str, workflow_name: str, - **kwargs + **kwargs: Any ) -> "_models.Workflow": """Updates a workflow. @@ -381,7 +381,7 @@ async def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('Workflow', pipeline_response) @@ -396,7 +396,7 @@ async def delete( self, resource_group_name: str, workflow_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes a workflow. @@ -440,7 +440,7 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -452,7 +452,7 @@ async def disable( self, resource_group_name: str, workflow_name: str, - **kwargs + **kwargs: Any ) -> None: """Disables a workflow. @@ -496,7 +496,7 @@ async def disable( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -508,7 +508,7 @@ async def enable( self, resource_group_name: str, workflow_name: str, - **kwargs + **kwargs: Any ) -> None: """Enables a workflow. @@ -552,7 +552,7 @@ async def enable( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -565,8 +565,8 @@ async def generate_upgraded_definition( resource_group_name: str, workflow_name: str, parameters: "_models.GenerateUpgradedDefinitionParameters", - **kwargs - ) -> object: + **kwargs: Any + ) -> Any: """Generates the upgraded definition for a workflow. :param resource_group_name: The resource group name. @@ -576,11 +576,11 @@ async def generate_upgraded_definition( :param parameters: Parameters for generating an upgraded definition. :type parameters: ~azure.mgmt.logic.models.GenerateUpgradedDefinitionParameters :keyword callable cls: A custom type or function that will be passed the direct response - :return: object, or the result of cls(response) - :rtype: object + :return: any, or the result of cls(response) + :rtype: any :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[object] + cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -616,7 +616,7 @@ async def generate_upgraded_definition( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('object', pipeline_response) @@ -632,7 +632,7 @@ async def list_callback_url( resource_group_name: str, workflow_name: str, list_callback_url: "_models.GetCallbackUrlParameters", - **kwargs + **kwargs: Any ) -> "_models.WorkflowTriggerCallbackUrl": """Get the workflow callback Url. @@ -683,7 +683,7 @@ async def list_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) @@ -698,8 +698,8 @@ async def list_swagger( self, resource_group_name: str, workflow_name: str, - **kwargs - ) -> object: + **kwargs: Any + ) -> Any: """Gets an OpenAPI definition for the workflow. :param resource_group_name: The resource group name. @@ -707,11 +707,11 @@ async def list_swagger( :param workflow_name: The workflow name. :type workflow_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: object, or the result of cls(response) - :rtype: object + :return: any, or the result of cls(response) + :rtype: any :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[object] + cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -742,7 +742,7 @@ async def list_swagger( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('object', pipeline_response) @@ -758,7 +758,7 @@ async def _move_initial( resource_group_name: str, workflow_name: str, move: "_models.WorkflowReference", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -796,7 +796,7 @@ async def _move_initial( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -809,7 +809,7 @@ async def begin_move( resource_group_name: str, workflow_name: str, move: "_models.WorkflowReference", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Moves an existing workflow. @@ -821,8 +821,8 @@ async def begin_move( :type move: ~azure.mgmt.logic.models.WorkflowReference :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -877,7 +877,7 @@ async def regenerate_access_key( resource_group_name: str, workflow_name: str, key_type: "_models.RegenerateActionParameter", - **kwargs + **kwargs: Any ) -> None: """Regenerates the callback URL access key for request triggers. @@ -928,7 +928,7 @@ async def regenerate_access_key( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -941,7 +941,7 @@ async def validate_by_resource_group( resource_group_name: str, workflow_name: str, validate: "_models.Workflow", - **kwargs + **kwargs: Any ) -> None: """Validates the workflow. @@ -992,7 +992,7 @@ async def validate_by_resource_group( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -1006,7 +1006,7 @@ async def validate_by_location( location: str, workflow_name: str, validate: "_models.Workflow", - **kwargs + **kwargs: Any ) -> None: """Validates the workflow definition. @@ -1060,7 +1060,7 @@ async def validate_by_location( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/_models.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/_models.py index 5743632b0981..ac495681d7cf 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/_models.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/_models.py @@ -347,7 +347,7 @@ class ApiReference(ResourceReference): :param icon_uri: The icon uri of the api. :type icon_uri: str :param swagger: The swagger of the api. - :type swagger: object + :type swagger: any :param brand_color: The brand color of the api. :type brand_color: str :param category: The tier. Possible values include: "NotSpecified", "Enterprise", "Standard", @@ -559,7 +559,7 @@ class ApiResourceProperties(msrest.serialization.Model): :param name: The name. :type name: str :param connection_parameters: The connection parameters. - :type connection_parameters: dict[str, object] + :type connection_parameters: dict[str, any] :param metadata: The metadata. :type metadata: ~azure.mgmt.logic.models.ApiResourceMetadata :param runtime_urls: The runtime urls. @@ -631,8 +631,8 @@ class ArtifactProperties(msrest.serialization.Model): :type created_time: ~datetime.datetime :param changed_time: The artifact changed time. :type changed_time: ~datetime.datetime - :param metadata: Any object. - :type metadata: object + :param metadata: Anything. + :type metadata: any """ _attribute_map = { @@ -658,10 +658,10 @@ class ArtifactContentPropertiesDefinition(ArtifactProperties): :type created_time: ~datetime.datetime :param changed_time: The artifact changed time. :type changed_time: ~datetime.datetime - :param metadata: Any object. - :type metadata: object - :param content: Any object. - :type content: object + :param metadata: Anything. + :type metadata: any + :param content: Anything. + :type content: any :param content_type: The content type. :type content_type: str :param content_link: The content link. @@ -1264,10 +1264,10 @@ class AssemblyProperties(ArtifactContentPropertiesDefinition): :type created_time: ~datetime.datetime :param changed_time: The artifact changed time. :type changed_time: ~datetime.datetime - :param metadata: Any object. - :type metadata: object - :param content: Any object. - :type content: object + :param metadata: Anything. + :type metadata: any + :param content: Anything. + :type content: any :param content_type: The content type. :type content_type: str :param content_link: The content link. @@ -1460,8 +1460,8 @@ class BatchConfigurationProperties(ArtifactProperties): :type created_time: ~datetime.datetime :param changed_time: The artifact changed time. :type changed_time: ~datetime.datetime - :param metadata: Any object. - :type metadata: object + :param metadata: Anything. + :type metadata: any :param batch_group_name: Required. The name of the batch group. :type batch_group_name: str :param release_criteria: Required. The batch release criteria. @@ -1601,7 +1601,7 @@ class ContentLink(msrest.serialization.Model): :param content_hash: The content hash. :type content_hash: ~azure.mgmt.logic.models.ContentHash :param metadata: The metadata. - :type metadata: object + :type metadata: any """ _attribute_map = { @@ -2639,8 +2639,8 @@ class Expression(msrest.serialization.Model): :param text: The text. :type text: str - :param value: Any object. - :type value: object + :param value: Anything. + :type value: any :param subexpressions: The sub expressions. :type subexpressions: list[~azure.mgmt.logic.models.Expression] :param error: The azure resource error info. @@ -2670,8 +2670,8 @@ class ExpressionRoot(Expression): :param text: The text. :type text: str - :param value: Any object. - :type value: object + :param value: Anything. + :type value: any :param subexpressions: The sub expressions. :type subexpressions: list[~azure.mgmt.logic.models.Expression] :param error: The azure resource error info. @@ -2728,7 +2728,7 @@ class ExtendedErrorInfo(msrest.serialization.Model): :param details: The error message details. :type details: list[~azure.mgmt.logic.models.ExtendedErrorInfo] :param inner_error: The inner error. - :type inner_error: object + :type inner_error: any """ _validation = { @@ -2969,7 +2969,7 @@ class IntegrationAccountAgreement(Resource): :ivar changed_time: The changed time. :vartype changed_time: ~datetime.datetime :param metadata: The metadata. - :type metadata: object + :type metadata: any :param agreement_type: Required. The agreement type. Possible values include: "NotSpecified", "AS2", "X12", "Edifact". :type agreement_type: str or ~azure.mgmt.logic.models.AgreementType @@ -3103,7 +3103,7 @@ class IntegrationAccountCertificate(Resource): :ivar changed_time: The changed time. :vartype changed_time: ~datetime.datetime :param metadata: The metadata. - :type metadata: object + :type metadata: any :param key: The key details in the key vault. :type key: ~azure.mgmt.logic.models.KeyVaultKeyReference :param public_certificate: The public certificate. @@ -3223,7 +3223,7 @@ class IntegrationAccountMap(Resource): :ivar content_link: The content link. :vartype content_link: ~azure.mgmt.logic.models.ContentLink :param metadata: The metadata. - :type metadata: object + :type metadata: any """ _validation = { @@ -3360,7 +3360,7 @@ class IntegrationAccountPartner(Resource): :ivar changed_time: The changed time. :vartype changed_time: ~datetime.datetime :param metadata: The metadata. - :type metadata: object + :type metadata: any :param content: Required. The partner content. :type content: ~azure.mgmt.logic.models.PartnerContent """ @@ -3479,7 +3479,7 @@ class IntegrationAccountSchema(Resource): :ivar changed_time: The changed time. :vartype changed_time: ~datetime.datetime :param metadata: The metadata. - :type metadata: object + :type metadata: any :param content: The content. :type content: str :param content_type: The content type. @@ -3602,7 +3602,7 @@ class IntegrationAccountSession(Resource): :ivar changed_time: The changed time. :vartype changed_time: ~datetime.datetime :param content: The session content. - :type content: object + :type content: any """ _validation = { @@ -4572,7 +4572,7 @@ class Operation(msrest.serialization.Model): :param display: The object that represents the operation. :type display: ~azure.mgmt.logic.models.OperationDisplay :param properties: The properties. - :type properties: object + :type properties: any """ _attribute_map = { @@ -4662,8 +4662,8 @@ class OperationResultProperties(msrest.serialization.Model): :type status: str or ~azure.mgmt.logic.models.WorkflowStatus :param code: The workflow scope repetition code. :type code: str - :param error: Any object. - :type error: object + :param error: Anything. + :type error: any """ _attribute_map = { @@ -4705,20 +4705,20 @@ class OperationResult(OperationResultProperties): :type status: str or ~azure.mgmt.logic.models.WorkflowStatus :param code: The workflow scope repetition code. :type code: str - :param error: Any object. - :type error: object + :param error: Anything. + :type error: any :ivar tracking_id: Gets the tracking id. :vartype tracking_id: str :ivar inputs: Gets the inputs. - :vartype inputs: object + :vartype inputs: any :ivar inputs_link: Gets the link to inputs. :vartype inputs_link: ~azure.mgmt.logic.models.ContentLink :ivar outputs: Gets the outputs. - :vartype outputs: object + :vartype outputs: any :ivar outputs_link: Gets the link to outputs. :vartype outputs_link: ~azure.mgmt.logic.models.ContentLink :ivar tracked_properties: Gets the tracked properties. - :vartype tracked_properties: object + :vartype tracked_properties: any :param retry_history: Gets the retry histories. :type retry_history: list[~azure.mgmt.logic.models.RetryHistory] :param iteration_count: @@ -4896,7 +4896,7 @@ class Request(msrest.serialization.Model): """A request. :param headers: A list of all the headers attached to the request. - :type headers: object + :type headers: any :param uri: The destination for the request. :type uri: str :param method: The HTTP method used for the request. @@ -5019,7 +5019,7 @@ class Response(msrest.serialization.Model): """A response. :param headers: A list of all the headers attached to the response. - :type headers: object + :type headers: any :param status_code: The status code of the response. :type status_code: int :param body_link: Details on the location of the body content. @@ -5285,7 +5285,7 @@ class SwaggerCustomDynamicSchema(msrest.serialization.Model): :param value_path: Json pointer to the dynamic schema on the response body. :type value_path: str :param parameters: The operation parameters. - :type parameters: dict[str, object] + :type parameters: dict[str, any] """ _attribute_map = { @@ -5389,7 +5389,7 @@ class SwaggerCustomDynamicTreeParameter(msrest.serialization.Model): item to pass as a value to a parameter for the given operation. :type selected_item_value_path: str :param value: The parameter value. - :type value: object + :type value: any :param parameter_reference: The parameter reference. :type parameter_reference: str :param required: Indicates whether the parameter is required. @@ -5445,7 +5445,7 @@ class SwaggerExternalDocumentation(msrest.serialization.Model): :param uri: The documentation Uri. :type uri: str :param extensions: The vendor extensions. - :type extensions: dict[str, object] + :type extensions: dict[str, any] """ _attribute_map = { @@ -5479,7 +5479,7 @@ class SwaggerSchema(msrest.serialization.Model): :param properties: The object properties. :type properties: dict[str, ~azure.mgmt.logic.models.SwaggerSchema] :param additional_properties: The additional properties. - :type additional_properties: object + :type additional_properties: any :param required: The object required properties. :type required: list[str] :param max_properties: The maximum number of allowed properties. @@ -5497,7 +5497,7 @@ class SwaggerSchema(msrest.serialization.Model): :param external_docs: The external documentation. :type external_docs: ~azure.mgmt.logic.models.SwaggerExternalDocumentation :param example: The example value. - :type example: object + :type example: any :param notification_url_extension: Indicates the notification url extension. If this is set, the property's value should be a callback url for a webhook. :type notification_url_extension: bool @@ -5575,7 +5575,7 @@ class SwaggerXml(msrest.serialization.Model): :param wrapped: Indicates whether the array elements are wrapped in a container element. :type wrapped: bool :param extensions: The vendor extensions. - :type extensions: dict[str, object] + :type extensions: dict[str, any] """ _attribute_map = { @@ -5618,7 +5618,7 @@ class TrackingEvent(msrest.serialization.Model): "EdifactFunctionalGroupAcknowledgment", "EdifactTransactionSetAcknowledgment". :type record_type: str or ~azure.mgmt.logic.models.TrackingRecordType :param record: The record. - :type record: object + :type record: any :param error: The error. :type error: ~azure.mgmt.logic.models.TrackingEventErrorInfo """ @@ -5749,7 +5749,7 @@ class Workflow(Resource): :param integration_service_environment: The integration service environment. :type integration_service_environment: ~azure.mgmt.logic.models.ResourceReference :param definition: The definition. - :type definition: object + :type definition: any :param parameters: The parameters. :type parameters: dict[str, ~azure.mgmt.logic.models.WorkflowParameter] """ @@ -5857,9 +5857,9 @@ class WorkflowParameter(msrest.serialization.Model): "Int", "Float", "Bool", "Array", "Object", "SecureObject". :type type: str or ~azure.mgmt.logic.models.ParameterType :param value: The value. - :type value: object + :type value: any :param metadata: The metadata. - :type metadata: object + :type metadata: any :param description: The description. :type description: str """ @@ -5891,13 +5891,13 @@ class WorkflowOutputParameter(WorkflowParameter): "Int", "Float", "Bool", "Array", "Object", "SecureObject". :type type: str or ~azure.mgmt.logic.models.ParameterType :param value: The value. - :type value: object + :type value: any :param metadata: The metadata. - :type metadata: object + :type metadata: any :param description: The description. :type description: str :ivar error: Gets the error. - :vartype error: object + :vartype error: any """ _validation = { @@ -5975,7 +5975,7 @@ class WorkflowRun(SubResource): :ivar code: Gets the code. :vartype code: str :ivar error: Gets the error. - :vartype error: object + :vartype error: any :ivar correlation_id: Gets the correlation id. :vartype correlation_id: str :param correlation: The run correlation. @@ -6068,7 +6068,7 @@ class WorkflowRunAction(SubResource): :ivar code: Gets the code. :vartype code: str :ivar error: Gets the error. - :vartype error: object + :vartype error: any :ivar tracking_id: Gets the tracking id. :vartype tracking_id: str :param correlation: The correlation properties. @@ -6078,7 +6078,7 @@ class WorkflowRunAction(SubResource): :ivar outputs_link: Gets the link to outputs. :vartype outputs_link: ~azure.mgmt.logic.models.ContentLink :ivar tracked_properties: Gets the tracked properties. - :vartype tracked_properties: object + :vartype tracked_properties: any :param retry_history: Gets the retry histories. :type retry_history: list[~azure.mgmt.logic.models.RetryHistory] """ @@ -6206,20 +6206,20 @@ class WorkflowRunActionRepetitionDefinition(Resource): :type status: str or ~azure.mgmt.logic.models.WorkflowStatus :param code: The workflow scope repetition code. :type code: str - :param error: Any object. - :type error: object + :param error: Anything. + :type error: any :ivar tracking_id: Gets the tracking id. :vartype tracking_id: str :ivar inputs: Gets the inputs. - :vartype inputs: object + :vartype inputs: any :ivar inputs_link: Gets the link to inputs. :vartype inputs_link: ~azure.mgmt.logic.models.ContentLink :ivar outputs: Gets the outputs. - :vartype outputs: object + :vartype outputs: any :ivar outputs_link: Gets the link to outputs. :vartype outputs_link: ~azure.mgmt.logic.models.ContentLink :ivar tracked_properties: Gets the tracked properties. - :vartype tracked_properties: object + :vartype tracked_properties: any :param retry_history: Gets the retry histories. :type retry_history: list[~azure.mgmt.logic.models.RetryHistory] :param iteration_count: @@ -6325,20 +6325,20 @@ class WorkflowRunActionRepetitionProperties(OperationResult): :type status: str or ~azure.mgmt.logic.models.WorkflowStatus :param code: The workflow scope repetition code. :type code: str - :param error: Any object. - :type error: object + :param error: Anything. + :type error: any :ivar tracking_id: Gets the tracking id. :vartype tracking_id: str :ivar inputs: Gets the inputs. - :vartype inputs: object + :vartype inputs: any :ivar inputs_link: Gets the link to inputs. :vartype inputs_link: ~azure.mgmt.logic.models.ContentLink :ivar outputs: Gets the outputs. - :vartype outputs: object + :vartype outputs: any :ivar outputs_link: Gets the link to outputs. :vartype outputs_link: ~azure.mgmt.logic.models.ContentLink :ivar tracked_properties: Gets the tracked properties. - :vartype tracked_properties: object + :vartype tracked_properties: any :param retry_history: Gets the retry histories. :type retry_history: list[~azure.mgmt.logic.models.RetryHistory] :param iteration_count: @@ -6434,11 +6434,11 @@ class WorkflowRunTrigger(msrest.serialization.Model): :ivar name: Gets the name. :vartype name: str :ivar inputs: Gets the inputs. - :vartype inputs: object + :vartype inputs: any :ivar inputs_link: Gets the link to inputs. :vartype inputs_link: ~azure.mgmt.logic.models.ContentLink :ivar outputs: Gets the outputs. - :vartype outputs: object + :vartype outputs: any :ivar outputs_link: Gets the link to outputs. :vartype outputs_link: ~azure.mgmt.logic.models.ContentLink :ivar scheduled_time: Gets the scheduled time. @@ -6458,9 +6458,9 @@ class WorkflowRunTrigger(msrest.serialization.Model): "Aborted", "Ignored". :vartype status: str or ~azure.mgmt.logic.models.WorkflowStatus :ivar error: Gets the error. - :vartype error: object + :vartype error: any :ivar tracked_properties: Gets the tracked properties. - :vartype tracked_properties: object + :vartype tracked_properties: any """ _validation = { @@ -6695,7 +6695,7 @@ class WorkflowTriggerHistory(SubResource): :ivar code: Gets the code. :vartype code: str :ivar error: Gets the error. - :vartype error: object + :vartype error: any :ivar tracking_id: Gets the tracking id. :vartype tracking_id: str :param correlation: The run correlation. @@ -6987,7 +6987,7 @@ class WorkflowVersion(Resource): :param integration_account: The integration account. :type integration_account: ~azure.mgmt.logic.models.ResourceReference :param definition: The definition. - :type definition: object + :type definition: any :param parameters: The parameters. :type parameters: dict[str, ~azure.mgmt.logic.models.WorkflowParameter] """ diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/_models_py3.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/_models_py3.py index 7d4b3cb8255c..3cc2c53a981c 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/_models_py3.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -394,7 +394,7 @@ class ApiReference(ResourceReference): :param icon_uri: The icon uri of the api. :type icon_uri: str :param swagger: The swagger of the api. - :type swagger: object + :type swagger: any :param brand_color: The brand color of the api. :type brand_color: str :param category: The tier. Possible values include: "NotSpecified", "Enterprise", "Standard", @@ -429,7 +429,7 @@ def __init__( display_name: Optional[str] = None, description: Optional[str] = None, icon_uri: Optional[str] = None, - swagger: Optional[object] = None, + swagger: Optional[Any] = None, brand_color: Optional[str] = None, category: Optional[Union[str, "ApiTier"]] = None, integration_service_environment: Optional["ResourceReference"] = None, @@ -641,7 +641,7 @@ class ApiResourceProperties(msrest.serialization.Model): :param name: The name. :type name: str :param connection_parameters: The connection parameters. - :type connection_parameters: dict[str, object] + :type connection_parameters: dict[str, any] :param metadata: The metadata. :type metadata: ~azure.mgmt.logic.models.ApiResourceMetadata :param runtime_urls: The runtime urls. @@ -690,7 +690,7 @@ def __init__( self, *, name: Optional[str] = None, - connection_parameters: Optional[Dict[str, object]] = None, + connection_parameters: Optional[Dict[str, Any]] = None, metadata: Optional["ApiResourceMetadata"] = None, runtime_urls: Optional[List[str]] = None, general_information: Optional["ApiResourceGeneralInformation"] = None, @@ -727,8 +727,8 @@ class ArtifactProperties(msrest.serialization.Model): :type created_time: ~datetime.datetime :param changed_time: The artifact changed time. :type changed_time: ~datetime.datetime - :param metadata: Any object. - :type metadata: object + :param metadata: Anything. + :type metadata: any """ _attribute_map = { @@ -742,7 +742,7 @@ def __init__( *, created_time: Optional[datetime.datetime] = None, changed_time: Optional[datetime.datetime] = None, - metadata: Optional[object] = None, + metadata: Optional[Any] = None, **kwargs ): super(ArtifactProperties, self).__init__(**kwargs) @@ -758,10 +758,10 @@ class ArtifactContentPropertiesDefinition(ArtifactProperties): :type created_time: ~datetime.datetime :param changed_time: The artifact changed time. :type changed_time: ~datetime.datetime - :param metadata: Any object. - :type metadata: object - :param content: Any object. - :type content: object + :param metadata: Anything. + :type metadata: any + :param content: Anything. + :type content: any :param content_type: The content type. :type content_type: str :param content_link: The content link. @@ -782,8 +782,8 @@ def __init__( *, created_time: Optional[datetime.datetime] = None, changed_time: Optional[datetime.datetime] = None, - metadata: Optional[object] = None, - content: Optional[object] = None, + metadata: Optional[Any] = None, + content: Optional[Any] = None, content_type: Optional[str] = None, content_link: Optional["ContentLink"] = None, **kwargs @@ -1443,10 +1443,10 @@ class AssemblyProperties(ArtifactContentPropertiesDefinition): :type created_time: ~datetime.datetime :param changed_time: The artifact changed time. :type changed_time: ~datetime.datetime - :param metadata: Any object. - :type metadata: object - :param content: Any object. - :type content: object + :param metadata: Anything. + :type metadata: any + :param content: Anything. + :type content: any :param content_type: The content type. :type content_type: str :param content_link: The content link. @@ -1484,8 +1484,8 @@ def __init__( assembly_name: str, created_time: Optional[datetime.datetime] = None, changed_time: Optional[datetime.datetime] = None, - metadata: Optional[object] = None, - content: Optional[object] = None, + metadata: Optional[Any] = None, + content: Optional[Any] = None, content_type: Optional[str] = None, content_link: Optional["ContentLink"] = None, assembly_version: Optional[str] = None, @@ -1664,8 +1664,8 @@ class BatchConfigurationProperties(ArtifactProperties): :type created_time: ~datetime.datetime :param changed_time: The artifact changed time. :type changed_time: ~datetime.datetime - :param metadata: Any object. - :type metadata: object + :param metadata: Anything. + :type metadata: any :param batch_group_name: Required. The name of the batch group. :type batch_group_name: str :param release_criteria: Required. The batch release criteria. @@ -1692,7 +1692,7 @@ def __init__( release_criteria: "BatchReleaseCriteria", created_time: Optional[datetime.datetime] = None, changed_time: Optional[datetime.datetime] = None, - metadata: Optional[object] = None, + metadata: Optional[Any] = None, **kwargs ): super(BatchConfigurationProperties, self).__init__(created_time=created_time, changed_time=changed_time, metadata=metadata, **kwargs) @@ -1823,7 +1823,7 @@ class ContentLink(msrest.serialization.Model): :param content_hash: The content hash. :type content_hash: ~azure.mgmt.logic.models.ContentHash :param metadata: The metadata. - :type metadata: object + :type metadata: any """ _attribute_map = { @@ -1841,7 +1841,7 @@ def __init__( content_version: Optional[str] = None, content_size: Optional[int] = None, content_hash: Optional["ContentHash"] = None, - metadata: Optional[object] = None, + metadata: Optional[Any] = None, **kwargs ): super(ContentLink, self).__init__(**kwargs) @@ -3025,8 +3025,8 @@ class Expression(msrest.serialization.Model): :param text: The text. :type text: str - :param value: Any object. - :type value: object + :param value: Anything. + :type value: any :param subexpressions: The sub expressions. :type subexpressions: list[~azure.mgmt.logic.models.Expression] :param error: The azure resource error info. @@ -3044,7 +3044,7 @@ def __init__( self, *, text: Optional[str] = None, - value: Optional[object] = None, + value: Optional[Any] = None, subexpressions: Optional[List["Expression"]] = None, error: Optional["AzureResourceErrorInfo"] = None, **kwargs @@ -3061,8 +3061,8 @@ class ExpressionRoot(Expression): :param text: The text. :type text: str - :param value: Any object. - :type value: object + :param value: Anything. + :type value: any :param subexpressions: The sub expressions. :type subexpressions: list[~azure.mgmt.logic.models.Expression] :param error: The azure resource error info. @@ -3083,7 +3083,7 @@ def __init__( self, *, text: Optional[str] = None, - value: Optional[object] = None, + value: Optional[Any] = None, subexpressions: Optional[List["Expression"]] = None, error: Optional["AzureResourceErrorInfo"] = None, path: Optional[str] = None, @@ -3127,7 +3127,7 @@ class ExtendedErrorInfo(msrest.serialization.Model): :param details: The error message details. :type details: list[~azure.mgmt.logic.models.ExtendedErrorInfo] :param inner_error: The inner error. - :type inner_error: object + :type inner_error: any """ _validation = { @@ -3148,7 +3148,7 @@ def __init__( code: Union[str, "ErrorResponseCode"], message: str, details: Optional[List["ExtendedErrorInfo"]] = None, - inner_error: Optional[object] = None, + inner_error: Optional[Any] = None, **kwargs ): super(ExtendedErrorInfo, self).__init__(**kwargs) @@ -3398,7 +3398,7 @@ class IntegrationAccountAgreement(Resource): :ivar changed_time: The changed time. :vartype changed_time: ~datetime.datetime :param metadata: The metadata. - :type metadata: object + :type metadata: any :param agreement_type: Required. The agreement type. Possible values include: "NotSpecified", "AS2", "X12", "Edifact". :type agreement_type: str or ~azure.mgmt.logic.models.AgreementType @@ -3458,7 +3458,7 @@ def __init__( content: "AgreementContent", location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, - metadata: Optional[object] = None, + metadata: Optional[Any] = None, **kwargs ): super(IntegrationAccountAgreement, self).__init__(location=location, tags=tags, **kwargs) @@ -3547,7 +3547,7 @@ class IntegrationAccountCertificate(Resource): :ivar changed_time: The changed time. :vartype changed_time: ~datetime.datetime :param metadata: The metadata. - :type metadata: object + :type metadata: any :param key: The key details in the key vault. :type key: ~azure.mgmt.logic.models.KeyVaultKeyReference :param public_certificate: The public certificate. @@ -3580,7 +3580,7 @@ def __init__( *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, - metadata: Optional[object] = None, + metadata: Optional[Any] = None, key: Optional["KeyVaultKeyReference"] = None, public_certificate: Optional[str] = None, **kwargs @@ -3679,7 +3679,7 @@ class IntegrationAccountMap(Resource): :ivar content_link: The content link. :vartype content_link: ~azure.mgmt.logic.models.ContentLink :param metadata: The metadata. - :type metadata: object + :type metadata: any """ _validation = { @@ -3717,7 +3717,7 @@ def __init__( parameters_schema: Optional["IntegrationAccountMapPropertiesParametersSchema"] = None, content: Optional[str] = None, content_type: Optional[str] = None, - metadata: Optional[object] = None, + metadata: Optional[Any] = None, **kwargs ): super(IntegrationAccountMap, self).__init__(location=location, tags=tags, **kwargs) @@ -3831,7 +3831,7 @@ class IntegrationAccountPartner(Resource): :ivar changed_time: The changed time. :vartype changed_time: ~datetime.datetime :param metadata: The metadata. - :type metadata: object + :type metadata: any :param content: Required. The partner content. :type content: ~azure.mgmt.logic.models.PartnerContent """ @@ -3866,7 +3866,7 @@ def __init__( content: "PartnerContent", location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, - metadata: Optional[object] = None, + metadata: Optional[Any] = None, **kwargs ): super(IntegrationAccountPartner, self).__init__(location=location, tags=tags, **kwargs) @@ -3961,7 +3961,7 @@ class IntegrationAccountSchema(Resource): :ivar changed_time: The changed time. :vartype changed_time: ~datetime.datetime :param metadata: The metadata. - :type metadata: object + :type metadata: any :param content: The content. :type content: str :param content_type: The content type. @@ -4007,7 +4007,7 @@ def __init__( target_namespace: Optional[str] = None, document_name: Optional[str] = None, file_name: Optional[str] = None, - metadata: Optional[object] = None, + metadata: Optional[Any] = None, content: Optional[str] = None, content_type: Optional[str] = None, **kwargs @@ -4099,7 +4099,7 @@ class IntegrationAccountSession(Resource): :ivar changed_time: The changed time. :vartype changed_time: ~datetime.datetime :param content: The session content. - :type content: object + :type content: any """ _validation = { @@ -4126,7 +4126,7 @@ def __init__( *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, - content: Optional[object] = None, + content: Optional[Any] = None, **kwargs ): super(IntegrationAccountSession, self).__init__(location=location, tags=tags, **kwargs) @@ -5182,7 +5182,7 @@ class Operation(msrest.serialization.Model): :param display: The object that represents the operation. :type display: ~azure.mgmt.logic.models.OperationDisplay :param properties: The properties. - :type properties: object + :type properties: any """ _attribute_map = { @@ -5198,7 +5198,7 @@ def __init__( origin: Optional[str] = None, name: Optional[str] = None, display: Optional["OperationDisplay"] = None, - properties: Optional[object] = None, + properties: Optional[Any] = None, **kwargs ): super(Operation, self).__init__(**kwargs) @@ -5285,8 +5285,8 @@ class OperationResultProperties(msrest.serialization.Model): :type status: str or ~azure.mgmt.logic.models.WorkflowStatus :param code: The workflow scope repetition code. :type code: str - :param error: Any object. - :type error: object + :param error: Anything. + :type error: any """ _attribute_map = { @@ -5306,7 +5306,7 @@ def __init__( correlation: Optional["RunActionCorrelation"] = None, status: Optional[Union[str, "WorkflowStatus"]] = None, code: Optional[str] = None, - error: Optional[object] = None, + error: Optional[Any] = None, **kwargs ): super(OperationResultProperties, self).__init__(**kwargs) @@ -5335,20 +5335,20 @@ class OperationResult(OperationResultProperties): :type status: str or ~azure.mgmt.logic.models.WorkflowStatus :param code: The workflow scope repetition code. :type code: str - :param error: Any object. - :type error: object + :param error: Anything. + :type error: any :ivar tracking_id: Gets the tracking id. :vartype tracking_id: str :ivar inputs: Gets the inputs. - :vartype inputs: object + :vartype inputs: any :ivar inputs_link: Gets the link to inputs. :vartype inputs_link: ~azure.mgmt.logic.models.ContentLink :ivar outputs: Gets the outputs. - :vartype outputs: object + :vartype outputs: any :ivar outputs_link: Gets the link to outputs. :vartype outputs_link: ~azure.mgmt.logic.models.ContentLink :ivar tracked_properties: Gets the tracked properties. - :vartype tracked_properties: object + :vartype tracked_properties: any :param retry_history: Gets the retry histories. :type retry_history: list[~azure.mgmt.logic.models.RetryHistory] :param iteration_count: @@ -5389,7 +5389,7 @@ def __init__( correlation: Optional["RunActionCorrelation"] = None, status: Optional[Union[str, "WorkflowStatus"]] = None, code: Optional[str] = None, - error: Optional[object] = None, + error: Optional[Any] = None, retry_history: Optional[List["RetryHistory"]] = None, iteration_count: Optional[int] = None, **kwargs @@ -5551,7 +5551,7 @@ class Request(msrest.serialization.Model): """A request. :param headers: A list of all the headers attached to the request. - :type headers: object + :type headers: any :param uri: The destination for the request. :type uri: str :param method: The HTTP method used for the request. @@ -5567,7 +5567,7 @@ class Request(msrest.serialization.Model): def __init__( self, *, - headers: Optional[object] = None, + headers: Optional[Any] = None, uri: Optional[str] = None, method: Optional[str] = None, **kwargs @@ -5690,7 +5690,7 @@ class Response(msrest.serialization.Model): """A response. :param headers: A list of all the headers attached to the response. - :type headers: object + :type headers: any :param status_code: The status code of the response. :type status_code: int :param body_link: Details on the location of the body content. @@ -5706,7 +5706,7 @@ class Response(msrest.serialization.Model): def __init__( self, *, - headers: Optional[object] = None, + headers: Optional[Any] = None, status_code: Optional[int] = None, body_link: Optional["ContentLink"] = None, **kwargs @@ -5990,7 +5990,7 @@ class SwaggerCustomDynamicSchema(msrest.serialization.Model): :param value_path: Json pointer to the dynamic schema on the response body. :type value_path: str :param parameters: The operation parameters. - :type parameters: dict[str, object] + :type parameters: dict[str, any] """ _attribute_map = { @@ -6004,7 +6004,7 @@ def __init__( *, operation_id: Optional[str] = None, value_path: Optional[str] = None, - parameters: Optional[Dict[str, object]] = None, + parameters: Optional[Dict[str, Any]] = None, **kwargs ): super(SwaggerCustomDynamicSchema, self).__init__(**kwargs) @@ -6111,7 +6111,7 @@ class SwaggerCustomDynamicTreeParameter(msrest.serialization.Model): item to pass as a value to a parameter for the given operation. :type selected_item_value_path: str :param value: The parameter value. - :type value: object + :type value: any :param parameter_reference: The parameter reference. :type parameter_reference: str :param required: Indicates whether the parameter is required. @@ -6129,7 +6129,7 @@ def __init__( self, *, selected_item_value_path: Optional[str] = None, - value: Optional[object] = None, + value: Optional[Any] = None, parameter_reference: Optional[str] = None, required: Optional[bool] = None, **kwargs @@ -6175,7 +6175,7 @@ class SwaggerExternalDocumentation(msrest.serialization.Model): :param uri: The documentation Uri. :type uri: str :param extensions: The vendor extensions. - :type extensions: dict[str, object] + :type extensions: dict[str, any] """ _attribute_map = { @@ -6189,7 +6189,7 @@ def __init__( *, description: Optional[str] = None, uri: Optional[str] = None, - extensions: Optional[Dict[str, object]] = None, + extensions: Optional[Dict[str, Any]] = None, **kwargs ): super(SwaggerExternalDocumentation, self).__init__(**kwargs) @@ -6213,7 +6213,7 @@ class SwaggerSchema(msrest.serialization.Model): :param properties: The object properties. :type properties: dict[str, ~azure.mgmt.logic.models.SwaggerSchema] :param additional_properties: The additional properties. - :type additional_properties: object + :type additional_properties: any :param required: The object required properties. :type required: list[str] :param max_properties: The maximum number of allowed properties. @@ -6231,7 +6231,7 @@ class SwaggerSchema(msrest.serialization.Model): :param external_docs: The external documentation. :type external_docs: ~azure.mgmt.logic.models.SwaggerExternalDocumentation :param example: The example value. - :type example: object + :type example: any :param notification_url_extension: Indicates the notification url extension. If this is set, the property's value should be a callback url for a webhook. :type notification_url_extension: bool @@ -6276,7 +6276,7 @@ def __init__( title: Optional[str] = None, items: Optional["SwaggerSchema"] = None, properties: Optional[Dict[str, "SwaggerSchema"]] = None, - additional_properties: Optional[object] = None, + additional_properties: Optional[Any] = None, required: Optional[List[str]] = None, max_properties: Optional[int] = None, min_properties: Optional[int] = None, @@ -6285,7 +6285,7 @@ def __init__( read_only: Optional[bool] = None, xml: Optional["SwaggerXml"] = None, external_docs: Optional["SwaggerExternalDocumentation"] = None, - example: Optional[object] = None, + example: Optional[Any] = None, notification_url_extension: Optional[bool] = None, dynamic_schema_old: Optional["SwaggerCustomDynamicSchema"] = None, dynamic_schema_new: Optional["SwaggerCustomDynamicProperties"] = None, @@ -6330,7 +6330,7 @@ class SwaggerXml(msrest.serialization.Model): :param wrapped: Indicates whether the array elements are wrapped in a container element. :type wrapped: bool :param extensions: The vendor extensions. - :type extensions: dict[str, object] + :type extensions: dict[str, any] """ _attribute_map = { @@ -6350,7 +6350,7 @@ def __init__( prefix: Optional[str] = None, attribute: Optional[bool] = None, wrapped: Optional[bool] = None, - extensions: Optional[Dict[str, object]] = None, + extensions: Optional[Dict[str, Any]] = None, **kwargs ): super(SwaggerXml, self).__init__(**kwargs) @@ -6380,7 +6380,7 @@ class TrackingEvent(msrest.serialization.Model): "EdifactFunctionalGroupAcknowledgment", "EdifactTransactionSetAcknowledgment". :type record_type: str or ~azure.mgmt.logic.models.TrackingRecordType :param record: The record. - :type record: object + :type record: any :param error: The error. :type error: ~azure.mgmt.logic.models.TrackingEventErrorInfo """ @@ -6405,7 +6405,7 @@ def __init__( event_level: Union[str, "EventLevel"], event_time: datetime.datetime, record_type: Union[str, "TrackingRecordType"], - record: Optional[object] = None, + record: Optional[Any] = None, error: Optional["TrackingEventErrorInfo"] = None, **kwargs ): @@ -6524,7 +6524,7 @@ class Workflow(Resource): :param integration_service_environment: The integration service environment. :type integration_service_environment: ~azure.mgmt.logic.models.ResourceReference :param definition: The definition. - :type definition: object + :type definition: any :param parameters: The parameters. :type parameters: dict[str, ~azure.mgmt.logic.models.WorkflowParameter] """ @@ -6572,7 +6572,7 @@ def __init__( access_control: Optional["FlowAccessControlConfiguration"] = None, integration_account: Optional["ResourceReference"] = None, integration_service_environment: Optional["ResourceReference"] = None, - definition: Optional[object] = None, + definition: Optional[Any] = None, parameters: Optional[Dict[str, "WorkflowParameter"]] = None, **kwargs ): @@ -6647,9 +6647,9 @@ class WorkflowParameter(msrest.serialization.Model): "Int", "Float", "Bool", "Array", "Object", "SecureObject". :type type: str or ~azure.mgmt.logic.models.ParameterType :param value: The value. - :type value: object + :type value: any :param metadata: The metadata. - :type metadata: object + :type metadata: any :param description: The description. :type description: str """ @@ -6665,8 +6665,8 @@ def __init__( self, *, type: Optional[Union[str, "ParameterType"]] = None, - value: Optional[object] = None, - metadata: Optional[object] = None, + value: Optional[Any] = None, + metadata: Optional[Any] = None, description: Optional[str] = None, **kwargs ): @@ -6686,13 +6686,13 @@ class WorkflowOutputParameter(WorkflowParameter): "Int", "Float", "Bool", "Array", "Object", "SecureObject". :type type: str or ~azure.mgmt.logic.models.ParameterType :param value: The value. - :type value: object + :type value: any :param metadata: The metadata. - :type metadata: object + :type metadata: any :param description: The description. :type description: str :ivar error: Gets the error. - :vartype error: object + :vartype error: any """ _validation = { @@ -6711,8 +6711,8 @@ def __init__( self, *, type: Optional[Union[str, "ParameterType"]] = None, - value: Optional[object] = None, - metadata: Optional[object] = None, + value: Optional[Any] = None, + metadata: Optional[Any] = None, description: Optional[str] = None, **kwargs ): @@ -6777,7 +6777,7 @@ class WorkflowRun(SubResource): :ivar code: Gets the code. :vartype code: str :ivar error: Gets the error. - :vartype error: object + :vartype error: any :ivar correlation_id: Gets the correlation id. :vartype correlation_id: str :param correlation: The run correlation. @@ -6872,7 +6872,7 @@ class WorkflowRunAction(SubResource): :ivar code: Gets the code. :vartype code: str :ivar error: Gets the error. - :vartype error: object + :vartype error: any :ivar tracking_id: Gets the tracking id. :vartype tracking_id: str :param correlation: The correlation properties. @@ -6882,7 +6882,7 @@ class WorkflowRunAction(SubResource): :ivar outputs_link: Gets the link to outputs. :vartype outputs_link: ~azure.mgmt.logic.models.ContentLink :ivar tracked_properties: Gets the tracked properties. - :vartype tracked_properties: object + :vartype tracked_properties: any :param retry_history: Gets the retry histories. :type retry_history: list[~azure.mgmt.logic.models.RetryHistory] """ @@ -7018,20 +7018,20 @@ class WorkflowRunActionRepetitionDefinition(Resource): :type status: str or ~azure.mgmt.logic.models.WorkflowStatus :param code: The workflow scope repetition code. :type code: str - :param error: Any object. - :type error: object + :param error: Anything. + :type error: any :ivar tracking_id: Gets the tracking id. :vartype tracking_id: str :ivar inputs: Gets the inputs. - :vartype inputs: object + :vartype inputs: any :ivar inputs_link: Gets the link to inputs. :vartype inputs_link: ~azure.mgmt.logic.models.ContentLink :ivar outputs: Gets the outputs. - :vartype outputs: object + :vartype outputs: any :ivar outputs_link: Gets the link to outputs. :vartype outputs_link: ~azure.mgmt.logic.models.ContentLink :ivar tracked_properties: Gets the tracked properties. - :vartype tracked_properties: object + :vartype tracked_properties: any :param retry_history: Gets the retry histories. :type retry_history: list[~azure.mgmt.logic.models.RetryHistory] :param iteration_count: @@ -7085,7 +7085,7 @@ def __init__( correlation: Optional["RunActionCorrelation"] = None, status: Optional[Union[str, "WorkflowStatus"]] = None, code: Optional[str] = None, - error: Optional[object] = None, + error: Optional[Any] = None, retry_history: Optional[List["RetryHistory"]] = None, iteration_count: Optional[int] = None, repetition_indexes: Optional[List["RepetitionIndex"]] = None, @@ -7152,20 +7152,20 @@ class WorkflowRunActionRepetitionProperties(OperationResult): :type status: str or ~azure.mgmt.logic.models.WorkflowStatus :param code: The workflow scope repetition code. :type code: str - :param error: Any object. - :type error: object + :param error: Anything. + :type error: any :ivar tracking_id: Gets the tracking id. :vartype tracking_id: str :ivar inputs: Gets the inputs. - :vartype inputs: object + :vartype inputs: any :ivar inputs_link: Gets the link to inputs. :vartype inputs_link: ~azure.mgmt.logic.models.ContentLink :ivar outputs: Gets the outputs. - :vartype outputs: object + :vartype outputs: any :ivar outputs_link: Gets the link to outputs. :vartype outputs_link: ~azure.mgmt.logic.models.ContentLink :ivar tracked_properties: Gets the tracked properties. - :vartype tracked_properties: object + :vartype tracked_properties: any :param retry_history: Gets the retry histories. :type retry_history: list[~azure.mgmt.logic.models.RetryHistory] :param iteration_count: @@ -7209,7 +7209,7 @@ def __init__( correlation: Optional["RunActionCorrelation"] = None, status: Optional[Union[str, "WorkflowStatus"]] = None, code: Optional[str] = None, - error: Optional[object] = None, + error: Optional[Any] = None, retry_history: Optional[List["RetryHistory"]] = None, iteration_count: Optional[int] = None, repetition_indexes: Optional[List["RepetitionIndex"]] = None, @@ -7276,11 +7276,11 @@ class WorkflowRunTrigger(msrest.serialization.Model): :ivar name: Gets the name. :vartype name: str :ivar inputs: Gets the inputs. - :vartype inputs: object + :vartype inputs: any :ivar inputs_link: Gets the link to inputs. :vartype inputs_link: ~azure.mgmt.logic.models.ContentLink :ivar outputs: Gets the outputs. - :vartype outputs: object + :vartype outputs: any :ivar outputs_link: Gets the link to outputs. :vartype outputs_link: ~azure.mgmt.logic.models.ContentLink :ivar scheduled_time: Gets the scheduled time. @@ -7300,9 +7300,9 @@ class WorkflowRunTrigger(msrest.serialization.Model): "Aborted", "Ignored". :vartype status: str or ~azure.mgmt.logic.models.WorkflowStatus :ivar error: Gets the error. - :vartype error: object + :vartype error: any :ivar tracked_properties: Gets the tracked properties. - :vartype tracked_properties: object + :vartype tracked_properties: any """ _validation = { @@ -7544,7 +7544,7 @@ class WorkflowTriggerHistory(SubResource): :ivar code: Gets the code. :vartype code: str :ivar error: Gets the error. - :vartype error: object + :vartype error: any :ivar tracking_id: Gets the tracking id. :vartype tracking_id: str :param correlation: The run correlation. @@ -7863,7 +7863,7 @@ class WorkflowVersion(Resource): :param integration_account: The integration account. :type integration_account: ~azure.mgmt.logic.models.ResourceReference :param definition: The definition. - :type definition: object + :type definition: any :param parameters: The parameters. :type parameters: dict[str, ~azure.mgmt.logic.models.WorkflowParameter] """ @@ -7909,7 +7909,7 @@ def __init__( endpoints_configuration: Optional["FlowEndpointsConfiguration"] = None, access_control: Optional["FlowAccessControlConfiguration"] = None, integration_account: Optional["ResourceReference"] = None, - definition: Optional[object] = None, + definition: Optional[Any] = None, parameters: Optional[Dict[str, "WorkflowParameter"]] = None, **kwargs ): diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_agreements_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_agreements_operations.py index a46c6ce64ed1..d45bcdd92a4c 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_agreements_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_agreements_operations.py @@ -121,7 +121,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -185,7 +185,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccountAgreement', pipeline_response) @@ -257,7 +257,7 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -325,7 +325,7 @@ def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -394,7 +394,7 @@ def list_content_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_assemblies_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_assemblies_operations.py index 1dd57f9c518e..71194b72b26b 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_assemblies_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_assemblies_operations.py @@ -110,7 +110,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -174,7 +174,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AssemblyDefinition', pipeline_response) @@ -246,7 +246,7 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -314,7 +314,7 @@ def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -375,7 +375,7 @@ def list_content_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_batch_configurations_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_batch_configurations_operations.py index 9a050b2627ae..13ba9fa1d79e 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_batch_configurations_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_batch_configurations_operations.py @@ -110,7 +110,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -174,7 +174,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('BatchConfiguration', pipeline_response) @@ -246,7 +246,7 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -314,7 +314,7 @@ def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_certificates_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_certificates_operations.py index 55cf14eaa927..fdb6477bd88b 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_certificates_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_certificates_operations.py @@ -115,7 +115,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -179,7 +179,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccountCertificate', pipeline_response) @@ -251,7 +251,7 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -319,7 +319,7 @@ def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_maps_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_maps_operations.py index ebce580f182a..f8e0b8d45828 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_maps_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_maps_operations.py @@ -120,7 +120,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -184,7 +184,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccountMap', pipeline_response) @@ -256,7 +256,7 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -324,7 +324,7 @@ def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -393,7 +393,7 @@ def list_content_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_partners_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_partners_operations.py index 8a8d382b52bf..2efb9107ffb1 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_partners_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_partners_operations.py @@ -120,7 +120,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -184,7 +184,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccountPartner', pipeline_response) @@ -256,7 +256,7 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -324,7 +324,7 @@ def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -393,7 +393,7 @@ def list_content_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_schemas_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_schemas_operations.py index db4b33ec4de8..0c4f92cb4ed9 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_schemas_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_schemas_operations.py @@ -120,7 +120,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -184,7 +184,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccountSchema', pipeline_response) @@ -256,7 +256,7 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -324,7 +324,7 @@ def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -393,7 +393,7 @@ def list_content_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_sessions_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_sessions_operations.py index 9869398997d8..fa359ca8caed 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_sessions_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_account_sessions_operations.py @@ -120,7 +120,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -184,7 +184,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccountSession', pipeline_response) @@ -256,7 +256,7 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -324,7 +324,7 @@ def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_accounts_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_accounts_operations.py index bade3703a9ec..24d146d7a0bd 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_accounts_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_accounts_operations.py @@ -107,7 +107,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -184,7 +184,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -244,7 +244,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccount', pipeline_response) @@ -312,7 +312,7 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -384,7 +384,7 @@ def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccount', pipeline_response) @@ -444,7 +444,7 @@ def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -509,7 +509,7 @@ def list_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CallbackUrl', pipeline_response) @@ -596,7 +596,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -664,7 +664,7 @@ def log_tracking_events( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -729,7 +729,7 @@ def regenerate_access_key( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationAccount', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_managed_api_operations_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_managed_api_operations_operations.py index 1b601ed9e8ff..0cb4a3510605 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_managed_api_operations_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_managed_api_operations_operations.py @@ -114,7 +114,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_managed_apis_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_managed_apis_operations.py index 0a80af7ea119..1b189ec7b1b3 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_managed_apis_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_managed_apis_operations.py @@ -112,7 +112,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -176,7 +176,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('ManagedApi', pipeline_response) @@ -227,7 +227,7 @@ def _put_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -260,8 +260,8 @@ def begin_put( :type api_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ManagedApi or the result of cls(response) @@ -355,7 +355,7 @@ def _delete_initial( if response.status_code not in [202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -381,8 +381,8 @@ def begin_delete( :type api_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_network_health_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_network_health_operations.py index 15c5a4c9febc..02e8a7bd0d23 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_network_health_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_network_health_operations.py @@ -93,7 +93,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('{IntegrationServiceEnvironmentSubnetNetworkHealth}', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_skus_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_skus_operations.py index c49c6244c863..0aa57b7e2e36 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_skus_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environment_skus_operations.py @@ -110,7 +110,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environments_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environments_operations.py index 84c7ad2b2ddd..5c823bfecdf9 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environments_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_integration_service_environments_operations.py @@ -109,7 +109,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -186,7 +186,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -246,7 +246,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) @@ -301,7 +301,7 @@ def _create_or_update_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -334,8 +334,8 @@ def begin_create_or_update( :type integration_service_environment: ~azure.mgmt.logic.models.IntegrationServiceEnvironment :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either IntegrationServiceEnvironment or the result of cls(response) @@ -432,7 +432,7 @@ def _update_initial( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('IntegrationServiceEnvironment', pipeline_response) @@ -461,8 +461,8 @@ def begin_update( :type integration_service_environment: ~azure.mgmt.logic.models.IntegrationServiceEnvironment :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either IntegrationServiceEnvironment or the result of cls(response) @@ -564,7 +564,7 @@ def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -621,7 +621,7 @@ def restart( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_operations.py index 6774bdec1b94..6741fe83a7df 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_operations.py @@ -98,7 +98,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_repetitions_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_repetitions_operations.py index 8efdc424167a..c6fc8e31a55d 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_repetitions_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_repetitions_operations.py @@ -118,7 +118,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -190,7 +190,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowRunActionRepetitionDefinition', pipeline_response) @@ -278,7 +278,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_repetitions_request_histories_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_repetitions_request_histories_operations.py index 7a5e548656f8..760a71c6c7e3 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_repetitions_request_histories_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_repetitions_request_histories_operations.py @@ -122,7 +122,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -198,7 +198,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('RequestHistory', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_request_histories_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_request_histories_operations.py index 701aacc1de47..d7a8779be791 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_request_histories_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_request_histories_operations.py @@ -118,7 +118,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -190,7 +190,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('RequestHistory', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_scope_repetitions_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_scope_repetitions_operations.py index fb133482b9d7..ea046a1b15b7 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_scope_repetitions_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_action_scope_repetitions_operations.py @@ -118,7 +118,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -190,7 +190,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowRunActionRepetitionDefinition', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_actions_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_actions_operations.py index 0e2df3e4c97a..9e310cc8059b 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_actions_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_actions_operations.py @@ -124,7 +124,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -192,7 +192,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowRunAction', pipeline_response) @@ -276,7 +276,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_operations_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_operations_operations.py index 2af4548bfab3..423b9999f319 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_operations_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_run_operations_operations.py @@ -101,7 +101,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowRun', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_runs_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_runs_operations.py index 246e4818dde0..05cd7cd348db 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_runs_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_runs_operations.py @@ -121,7 +121,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -185,7 +185,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowRun', pipeline_response) @@ -249,7 +249,7 @@ def cancel( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_trigger_histories_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_trigger_histories_operations.py index 2c87d448e1bc..cf29d6cb2f21 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_trigger_histories_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_trigger_histories_operations.py @@ -125,7 +125,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -194,7 +194,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerHistory', pipeline_response) @@ -263,7 +263,7 @@ def resubmit( if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_triggers_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_triggers_operations.py index 9825a10915f4..36e4b319f201 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_triggers_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_triggers_operations.py @@ -120,7 +120,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -184,7 +184,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTrigger', pipeline_response) @@ -248,7 +248,7 @@ def reset( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -309,7 +309,7 @@ def run( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -370,7 +370,7 @@ def get_schema_json( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('JsonSchema', pipeline_response) @@ -442,7 +442,7 @@ def set_state( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -503,7 +503,7 @@ def list_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_version_triggers_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_version_triggers_operations.py index eb02d5a8df3e..216a5aa655c8 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_version_triggers_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_version_triggers_operations.py @@ -112,7 +112,7 @@ def list_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_versions_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_versions_operations.py index b42aa955728e..85df7252581a 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_versions_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflow_versions_operations.py @@ -115,7 +115,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -179,7 +179,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowVersion', pipeline_response) diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflows_operations.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflows_operations.py index cc7a046a119e..5ea4a0b20116 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflows_operations.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/operations/_workflows_operations.py @@ -115,7 +115,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -198,7 +198,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -258,7 +258,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('Workflow', pipeline_response) @@ -326,7 +326,7 @@ def create_or_update( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -390,7 +390,7 @@ def update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('Workflow', pipeline_response) @@ -450,7 +450,7 @@ def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -507,7 +507,7 @@ def disable( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -564,7 +564,7 @@ def enable( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -579,7 +579,7 @@ def generate_upgraded_definition( parameters, # type: "_models.GenerateUpgradedDefinitionParameters" **kwargs # type: Any ): - # type: (...) -> object + # type: (...) -> Any """Generates the upgraded definition for a workflow. :param resource_group_name: The resource group name. @@ -589,11 +589,11 @@ def generate_upgraded_definition( :param parameters: Parameters for generating an upgraded definition. :type parameters: ~azure.mgmt.logic.models.GenerateUpgradedDefinitionParameters :keyword callable cls: A custom type or function that will be passed the direct response - :return: object, or the result of cls(response) - :rtype: object + :return: any, or the result of cls(response) + :rtype: any :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[object] + cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -629,7 +629,7 @@ def generate_upgraded_definition( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('object', pipeline_response) @@ -697,7 +697,7 @@ def list_callback_url( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response) @@ -714,7 +714,7 @@ def list_swagger( workflow_name, # type: str **kwargs # type: Any ): - # type: (...) -> object + # type: (...) -> Any """Gets an OpenAPI definition for the workflow. :param resource_group_name: The resource group name. @@ -722,11 +722,11 @@ def list_swagger( :param workflow_name: The workflow name. :type workflow_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: object, or the result of cls(response) - :rtype: object + :return: any, or the result of cls(response) + :rtype: any :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[object] + cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -757,7 +757,7 @@ def list_swagger( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('object', pipeline_response) @@ -812,7 +812,7 @@ def _move_initial( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -838,8 +838,8 @@ def begin_move( :type move: ~azure.mgmt.logic.models.WorkflowReference :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -946,7 +946,7 @@ def regenerate_access_key( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -1011,7 +1011,7 @@ def validate_by_resource_group( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -1080,7 +1080,7 @@ def validate_by_location( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: