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..d8d16abd8369 --- /dev/null +++ b/sdk/logic/azure-mgmt-logic/_meta.json @@ -0,0 +1,11 @@ +{ + "autorest": "3.4.5", + "use": [ + "@autorest/python@5.8.4", + "@autorest/modelerfour@4.19.2" + ], + "commit": "594ad1f6133bafae68ded3617129b4c893c19766", + "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.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5", + "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..7c92e637746c 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,8 +47,8 @@ def list( self, resource_group: str, integration_service_environment_name: str, - **kwargs - ) -> AsyncIterable["_models.ManagedApiListResult"]: + **kwargs: Any + ) -> AsyncIterable["_models.IntegrationServiceEnvironmentManagedApiListResult"]: """Gets the integration service environment managed Apis. :param resource_group: The resource group. @@ -56,11 +56,11 @@ def list( :param integration_service_environment_name: The integration service environment name. :type integration_service_environment_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ManagedApiListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.logic.models.ManagedApiListResult] + :return: An iterator like instance of either IntegrationServiceEnvironmentManagedApiListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.logic.models.IntegrationServiceEnvironmentManagedApiListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ManagedApiListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.IntegrationServiceEnvironmentManagedApiListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -94,7 +94,7 @@ def prepare_request(next_link=None): return request async def extract_data(pipeline_response): - deserialized = self._deserialize('ManagedApiListResult', pipeline_response) + deserialized = self._deserialize('IntegrationServiceEnvironmentManagedApiListResult', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -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,8 +123,8 @@ async def get( resource_group: str, integration_service_environment_name: str, api_name: str, - **kwargs - ) -> "_models.ManagedApi": + **kwargs: Any + ) -> "_models.IntegrationServiceEnvironmentManagedApi": """Gets the integration service environment managed Api. :param resource_group: The resource group name. @@ -134,11 +134,11 @@ async def get( :param api_name: The api name. :type api_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedApi, or the result of cls(response) - :rtype: ~azure.mgmt.logic.models.ManagedApi + :return: IntegrationServiceEnvironmentManagedApi, or the result of cls(response) + :rtype: ~azure.mgmt.logic.models.IntegrationServiceEnvironmentManagedApi :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ManagedApi"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.IntegrationServiceEnvironmentManagedApi"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -170,10 +170,10 @@ 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) + deserialized = self._deserialize('IntegrationServiceEnvironmentManagedApi', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -186,14 +186,16 @@ async def _put_initial( resource_group: str, integration_service_environment_name: str, api_name: str, - **kwargs - ) -> "_models.ManagedApi": - cls = kwargs.pop('cls', None) # type: ClsType["_models.ManagedApi"] + integration_service_environment_managed_api: "_models.IntegrationServiceEnvironmentManagedApi", + **kwargs: Any + ) -> "_models.IntegrationServiceEnvironmentManagedApi": + cls = kwargs.pop('cls', None) # type: ClsType["_models.IntegrationServiceEnvironmentManagedApi"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2019-05-01" + content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL @@ -212,22 +214,26 @@ async def _put_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - request = self._client.put(url, query_parameters, header_parameters) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(integration_service_environment_managed_api, 'IntegrationServiceEnvironmentManagedApi') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response 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: - deserialized = self._deserialize('ManagedApi', pipeline_response) + deserialized = self._deserialize('IntegrationServiceEnvironmentManagedApi', pipeline_response) if response.status_code == 201: - deserialized = self._deserialize('ManagedApi', pipeline_response) + deserialized = self._deserialize('IntegrationServiceEnvironmentManagedApi', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -240,8 +246,9 @@ async def begin_put( resource_group: str, integration_service_environment_name: str, api_name: str, - **kwargs - ) -> AsyncLROPoller["_models.ManagedApi"]: + integration_service_environment_managed_api: "_models.IntegrationServiceEnvironmentManagedApi", + **kwargs: Any + ) -> AsyncLROPoller["_models.IntegrationServiceEnvironmentManagedApi"]: """Puts the integration service environment managed Api. :param resource_group: The resource group name. @@ -250,18 +257,21 @@ async def begin_put( :type integration_service_environment_name: str :param api_name: The api name. :type api_name: str + :param integration_service_environment_managed_api: The integration service environment managed + api. + :type integration_service_environment_managed_api: ~azure.mgmt.logic.models.IntegrationServiceEnvironmentManagedApi :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) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.logic.models.ManagedApi] + :return: An instance of AsyncLROPoller that returns either IntegrationServiceEnvironmentManagedApi or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.logic.models.IntegrationServiceEnvironmentManagedApi] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["_models.ManagedApi"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.IntegrationServiceEnvironmentManagedApi"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -272,6 +282,7 @@ async def begin_put( resource_group=resource_group, integration_service_environment_name=integration_service_environment_name, api_name=api_name, + integration_service_environment_managed_api=integration_service_environment_managed_api, cls=lambda x,y,z: x, **kwargs ) @@ -280,7 +291,7 @@ async def begin_put( kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): - deserialized = self._deserialize('ManagedApi', pipeline_response) + deserialized = self._deserialize('IntegrationServiceEnvironmentManagedApi', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -312,7 +323,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 +357,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 +370,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 +382,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/__init__.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/__init__.py index edb0930f64f8..478f565699a2 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/__init__.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/__init__.py @@ -100,6 +100,10 @@ from ._models_py3 import IntegrationServiceEnvironment from ._models_py3 import IntegrationServiceEnvironmentAccessEndpoint from ._models_py3 import IntegrationServiceEnvironmentListResult + from ._models_py3 import IntegrationServiceEnvironmentManagedApi + from ._models_py3 import IntegrationServiceEnvironmentManagedApiDeploymentParameters + from ._models_py3 import IntegrationServiceEnvironmentManagedApiListResult + from ._models_py3 import IntegrationServiceEnvironmentManagedApiProperties from ._models_py3 import IntegrationServiceEnvironmentNetworkDependency from ._models_py3 import IntegrationServiceEnvironmentNetworkDependencyHealth from ._models_py3 import IntegrationServiceEnvironmentNetworkEndpoint @@ -122,6 +126,7 @@ from ._models_py3 import ListKeyVaultKeysDefinition from ._models_py3 import ManagedApi from ._models_py3 import ManagedApiListResult + from ._models_py3 import ManagedServiceIdentity from ._models_py3 import NetworkConfiguration from ._models_py3 import OpenAuthenticationAccessPolicies from ._models_py3 import OpenAuthenticationAccessPolicy @@ -162,6 +167,7 @@ from ._models_py3 import TrackingEvent from ._models_py3 import TrackingEventErrorInfo from ._models_py3 import TrackingEventsDefinition + from ._models_py3 import UserAssignedIdentity from ._models_py3 import Workflow from ._models_py3 import WorkflowFilter from ._models_py3 import WorkflowListResult @@ -300,6 +306,10 @@ from ._models import IntegrationServiceEnvironment # type: ignore from ._models import IntegrationServiceEnvironmentAccessEndpoint # type: ignore from ._models import IntegrationServiceEnvironmentListResult # type: ignore + from ._models import IntegrationServiceEnvironmentManagedApi # type: ignore + from ._models import IntegrationServiceEnvironmentManagedApiDeploymentParameters # type: ignore + from ._models import IntegrationServiceEnvironmentManagedApiListResult # type: ignore + from ._models import IntegrationServiceEnvironmentManagedApiProperties # type: ignore from ._models import IntegrationServiceEnvironmentNetworkDependency # type: ignore from ._models import IntegrationServiceEnvironmentNetworkDependencyHealth # type: ignore from ._models import IntegrationServiceEnvironmentNetworkEndpoint # type: ignore @@ -322,6 +332,7 @@ from ._models import ListKeyVaultKeysDefinition # type: ignore from ._models import ManagedApi # type: ignore from ._models import ManagedApiListResult # type: ignore + from ._models import ManagedServiceIdentity # type: ignore from ._models import NetworkConfiguration # type: ignore from ._models import OpenAuthenticationAccessPolicies # type: ignore from ._models import OpenAuthenticationAccessPolicy # type: ignore @@ -362,6 +373,7 @@ from ._models import TrackingEvent # type: ignore from ._models import TrackingEventErrorInfo # type: ignore from ._models import TrackingEventsDefinition # type: ignore + from ._models import UserAssignedIdentity # type: ignore from ._models import Workflow # type: ignore from ._models import WorkflowFilter # type: ignore from ._models import WorkflowListResult # type: ignore @@ -429,6 +441,7 @@ IntegrationServiceEnvironmentSkuName, IntegrationServiceEnvironmentSkuScaleType, KeyType, + ManagedServiceIdentityType, MapType, MessageFilterType, OpenAuthenticationProviderType, @@ -549,6 +562,10 @@ 'IntegrationServiceEnvironment', 'IntegrationServiceEnvironmentAccessEndpoint', 'IntegrationServiceEnvironmentListResult', + 'IntegrationServiceEnvironmentManagedApi', + 'IntegrationServiceEnvironmentManagedApiDeploymentParameters', + 'IntegrationServiceEnvironmentManagedApiListResult', + 'IntegrationServiceEnvironmentManagedApiProperties', 'IntegrationServiceEnvironmentNetworkDependency', 'IntegrationServiceEnvironmentNetworkDependencyHealth', 'IntegrationServiceEnvironmentNetworkEndpoint', @@ -571,6 +588,7 @@ 'ListKeyVaultKeysDefinition', 'ManagedApi', 'ManagedApiListResult', + 'ManagedServiceIdentity', 'NetworkConfiguration', 'OpenAuthenticationAccessPolicies', 'OpenAuthenticationAccessPolicy', @@ -611,6 +629,7 @@ 'TrackingEvent', 'TrackingEventErrorInfo', 'TrackingEventsDefinition', + 'UserAssignedIdentity', 'Workflow', 'WorkflowFilter', 'WorkflowListResult', @@ -676,6 +695,7 @@ 'IntegrationServiceEnvironmentSkuName', 'IntegrationServiceEnvironmentSkuScaleType', 'KeyType', + 'ManagedServiceIdentityType', 'MapType', 'MessageFilterType', 'OpenAuthenticationProviderType', diff --git a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/_logic_management_client_enums.py b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/_logic_management_client_enums.py index 6cfb83828bcc..15f6d0d64232 100644 --- a/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/_logic_management_client_enums.py +++ b/sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/_logic_management_client_enums.py @@ -237,6 +237,15 @@ class KeyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): PRIMARY = "Primary" SECONDARY = "Secondary" +class ManagedServiceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Type of managed service identity. The type 'SystemAssigned' includes an implicitly created + identity. The type 'None' will remove any identities from the resource. + """ + + SYSTEM_ASSIGNED = "SystemAssigned" + USER_ASSIGNED = "UserAssigned" + NONE = "None" + class MapType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The map type. """ 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..6ce57088a84c 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", @@ -556,38 +556,55 @@ def __init__( class ApiResourceProperties(msrest.serialization.Model): """The API resource properties. - :param name: The name. - :type name: str - :param connection_parameters: The connection parameters. - :type connection_parameters: dict[str, object] - :param metadata: The metadata. - :type metadata: ~azure.mgmt.logic.models.ApiResourceMetadata - :param runtime_urls: The runtime urls. - :type runtime_urls: list[str] - :param general_information: The api general information. - :type general_information: ~azure.mgmt.logic.models.ApiResourceGeneralInformation - :param capabilities: The capabilities. - :type capabilities: list[str] - :param backend_service: The backend service. - :type backend_service: ~azure.mgmt.logic.models.ApiResourceBackendService - :param policies: The policies for the API. - :type policies: ~azure.mgmt.logic.models.ApiResourcePolicies - :param api_definition_url: The API definition. - :type api_definition_url: str - :param api_definitions: The api definitions. - :type api_definitions: ~azure.mgmt.logic.models.ApiResourceDefinitions + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The name. + :vartype name: str + :ivar connection_parameters: The connection parameters. + :vartype connection_parameters: dict[str, any] + :ivar metadata: The metadata. + :vartype metadata: ~azure.mgmt.logic.models.ApiResourceMetadata + :ivar runtime_urls: The runtime urls. + :vartype runtime_urls: list[str] + :ivar general_information: The api general information. + :vartype general_information: ~azure.mgmt.logic.models.ApiResourceGeneralInformation + :ivar capabilities: The capabilities. + :vartype capabilities: list[str] + :ivar backend_service: The backend service. + :vartype backend_service: ~azure.mgmt.logic.models.ApiResourceBackendService + :ivar policies: The policies for the API. + :vartype policies: ~azure.mgmt.logic.models.ApiResourcePolicies + :ivar api_definition_url: The API definition. + :vartype api_definition_url: str + :ivar api_definitions: The api definitions. + :vartype api_definitions: ~azure.mgmt.logic.models.ApiResourceDefinitions :param integration_service_environment: The integration service environment reference. :type integration_service_environment: ~azure.mgmt.logic.models.ResourceReference - :param provisioning_state: The provisioning state. Possible values include: "NotSpecified", + :ivar provisioning_state: The provisioning state. Possible values include: "NotSpecified", "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", "Moving", "Updating", "Registering", "Registered", "Unregistering", "Unregistered", "Completed", "Renewing", "Pending", "Waiting", "InProgress". - :type provisioning_state: str or ~azure.mgmt.logic.models.WorkflowProvisioningState - :param category: The category. Possible values include: "NotSpecified", "Enterprise", + :vartype provisioning_state: str or ~azure.mgmt.logic.models.WorkflowProvisioningState + :ivar category: The category. Possible values include: "NotSpecified", "Enterprise", "Standard", "Premium". - :type category: str or ~azure.mgmt.logic.models.ApiTier + :vartype category: str or ~azure.mgmt.logic.models.ApiTier """ + _validation = { + 'name': {'readonly': True}, + 'connection_parameters': {'readonly': True}, + 'metadata': {'readonly': True}, + 'runtime_urls': {'readonly': True}, + 'general_information': {'readonly': True}, + 'capabilities': {'readonly': True}, + 'backend_service': {'readonly': True}, + 'policies': {'readonly': True}, + 'api_definition_url': {'readonly': True}, + 'api_definitions': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'category': {'readonly': True}, + } + _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'connection_parameters': {'key': 'connectionParameters', 'type': '{object}'}, @@ -609,19 +626,19 @@ def __init__( **kwargs ): super(ApiResourceProperties, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.connection_parameters = kwargs.get('connection_parameters', None) - self.metadata = kwargs.get('metadata', None) - self.runtime_urls = kwargs.get('runtime_urls', None) - self.general_information = kwargs.get('general_information', None) - self.capabilities = kwargs.get('capabilities', None) - self.backend_service = kwargs.get('backend_service', None) - self.policies = kwargs.get('policies', None) - self.api_definition_url = kwargs.get('api_definition_url', None) - self.api_definitions = kwargs.get('api_definitions', None) + self.name = None + self.connection_parameters = None + self.metadata = None + self.runtime_urls = None + self.general_information = None + self.capabilities = None + self.backend_service = None + self.policies = None + self.api_definition_url = None + self.api_definitions = None self.integration_service_environment = kwargs.get('integration_service_environment', None) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.category = kwargs.get('category', None) + self.provisioning_state = None + self.category = None class ArtifactProperties(msrest.serialization.Model): @@ -631,8 +648,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 +675,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 +1281,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 +1477,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. @@ -1592,18 +1609,27 @@ def __init__( class ContentLink(msrest.serialization.Model): """The content link. + Variables are only populated by the server, and will be ignored when sending a request. + :param uri: The content link URI. :type uri: str - :param content_version: The content version. - :type content_version: str - :param content_size: The content size. - :type content_size: long - :param content_hash: The content hash. - :type content_hash: ~azure.mgmt.logic.models.ContentHash - :param metadata: The metadata. - :type metadata: object + :ivar content_version: The content version. + :vartype content_version: str + :ivar content_size: The content size. + :vartype content_size: long + :ivar content_hash: The content hash. + :vartype content_hash: ~azure.mgmt.logic.models.ContentHash + :ivar metadata: The metadata. + :vartype metadata: any """ + _validation = { + 'content_version': {'readonly': True}, + 'content_size': {'readonly': True}, + 'content_hash': {'readonly': True}, + 'metadata': {'readonly': True}, + } + _attribute_map = { 'uri': {'key': 'uri', 'type': 'str'}, 'content_version': {'key': 'contentVersion', 'type': 'str'}, @@ -1618,10 +1644,10 @@ def __init__( ): super(ContentLink, self).__init__(**kwargs) self.uri = kwargs.get('uri', None) - self.content_version = kwargs.get('content_version', None) - self.content_size = kwargs.get('content_size', None) - self.content_hash = kwargs.get('content_hash', None) - self.metadata = kwargs.get('metadata', None) + self.content_version = None + self.content_size = None + self.content_hash = None + self.metadata = None class Correlation(msrest.serialization.Model): @@ -2639,8 +2665,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 +2696,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 +2754,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 = { @@ -2914,7 +2940,7 @@ class IntegrationAccount(Resource): :param sku: The sku. :type sku: ~azure.mgmt.logic.models.IntegrationAccountSku :param integration_service_environment: The integration service environment. - :type integration_service_environment: ~azure.mgmt.logic.models.IntegrationServiceEnvironment + :type integration_service_environment: ~azure.mgmt.logic.models.ResourceReference :param state: The workflow state. Possible values include: "NotSpecified", "Completed", "Enabled", "Disabled", "Deleted", "Suspended". :type state: str or ~azure.mgmt.logic.models.WorkflowState @@ -2933,7 +2959,7 @@ class IntegrationAccount(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'sku': {'key': 'sku', 'type': 'IntegrationAccountSku'}, - 'integration_service_environment': {'key': 'properties.integrationServiceEnvironment', 'type': 'IntegrationServiceEnvironment'}, + 'integration_service_environment': {'key': 'properties.integrationServiceEnvironment', 'type': 'ResourceReference'}, 'state': {'key': 'properties.state', 'type': 'str'}, } @@ -2969,7 +2995,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 +3129,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 +3249,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 +3386,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 +3505,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 +3628,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 = { @@ -3774,6 +3800,8 @@ class IntegrationServiceEnvironment(Resource): :type properties: ~azure.mgmt.logic.models.IntegrationServiceEnvironmentProperties :param sku: The sku. :type sku: ~azure.mgmt.logic.models.IntegrationServiceEnvironmentSku + :param identity: Managed service identity properties. + :type identity: ~azure.mgmt.logic.models.ManagedServiceIdentity """ _validation = { @@ -3790,6 +3818,7 @@ class IntegrationServiceEnvironment(Resource): 'tags': {'key': 'tags', 'type': '{str}'}, 'properties': {'key': 'properties', 'type': 'IntegrationServiceEnvironmentProperties'}, 'sku': {'key': 'sku', 'type': 'IntegrationServiceEnvironmentSku'}, + 'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'}, } def __init__( @@ -3799,6 +3828,7 @@ def __init__( super(IntegrationServiceEnvironment, self).__init__(**kwargs) self.properties = kwargs.get('properties', None) self.sku = kwargs.get('sku', None) + self.identity = kwargs.get('identity', None) class IntegrationServiceEnvironmentAccessEndpoint(msrest.serialization.Model): @@ -3844,6 +3874,242 @@ def __init__( self.next_link = kwargs.get('next_link', None) +class IntegrationServiceEnvironmentManagedApi(Resource): + """The integration service environment managed api. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :ivar name_properties_name: The name. + :vartype name_properties_name: str + :ivar connection_parameters: The connection parameters. + :vartype connection_parameters: dict[str, any] + :ivar metadata: The metadata. + :vartype metadata: ~azure.mgmt.logic.models.ApiResourceMetadata + :ivar runtime_urls: The runtime urls. + :vartype runtime_urls: list[str] + :ivar general_information: The api general information. + :vartype general_information: ~azure.mgmt.logic.models.ApiResourceGeneralInformation + :ivar capabilities: The capabilities. + :vartype capabilities: list[str] + :ivar backend_service: The backend service. + :vartype backend_service: ~azure.mgmt.logic.models.ApiResourceBackendService + :ivar policies: The policies for the API. + :vartype policies: ~azure.mgmt.logic.models.ApiResourcePolicies + :ivar api_definition_url: The API definition. + :vartype api_definition_url: str + :ivar api_definitions: The api definitions. + :vartype api_definitions: ~azure.mgmt.logic.models.ApiResourceDefinitions + :param integration_service_environment: The integration service environment reference. + :type integration_service_environment: ~azure.mgmt.logic.models.ResourceReference + :ivar provisioning_state: The provisioning state. Possible values include: "NotSpecified", + "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", + "Failed", "Succeeded", "Moving", "Updating", "Registering", "Registered", "Unregistering", + "Unregistered", "Completed", "Renewing", "Pending", "Waiting", "InProgress". + :vartype provisioning_state: str or ~azure.mgmt.logic.models.WorkflowProvisioningState + :ivar category: The category. Possible values include: "NotSpecified", "Enterprise", + "Standard", "Premium". + :vartype category: str or ~azure.mgmt.logic.models.ApiTier + :param deployment_parameters: The integration service environment managed api deployment + parameters. + :type deployment_parameters: + ~azure.mgmt.logic.models.IntegrationServiceEnvironmentManagedApiDeploymentParameters + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'name_properties_name': {'readonly': True}, + 'connection_parameters': {'readonly': True}, + 'metadata': {'readonly': True}, + 'runtime_urls': {'readonly': True}, + 'general_information': {'readonly': True}, + 'capabilities': {'readonly': True}, + 'backend_service': {'readonly': True}, + 'policies': {'readonly': True}, + 'api_definition_url': {'readonly': True}, + 'api_definitions': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'category': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'name_properties_name': {'key': 'properties.name', 'type': 'str'}, + 'connection_parameters': {'key': 'properties.connectionParameters', 'type': '{object}'}, + 'metadata': {'key': 'properties.metadata', 'type': 'ApiResourceMetadata'}, + 'runtime_urls': {'key': 'properties.runtimeUrls', 'type': '[str]'}, + 'general_information': {'key': 'properties.generalInformation', 'type': 'ApiResourceGeneralInformation'}, + 'capabilities': {'key': 'properties.capabilities', 'type': '[str]'}, + 'backend_service': {'key': 'properties.backendService', 'type': 'ApiResourceBackendService'}, + 'policies': {'key': 'properties.policies', 'type': 'ApiResourcePolicies'}, + 'api_definition_url': {'key': 'properties.apiDefinitionUrl', 'type': 'str'}, + 'api_definitions': {'key': 'properties.apiDefinitions', 'type': 'ApiResourceDefinitions'}, + 'integration_service_environment': {'key': 'properties.integrationServiceEnvironment', 'type': 'ResourceReference'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'category': {'key': 'properties.category', 'type': 'str'}, + 'deployment_parameters': {'key': 'properties.deploymentParameters', 'type': 'IntegrationServiceEnvironmentManagedApiDeploymentParameters'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentManagedApi, self).__init__(**kwargs) + self.name_properties_name = None + self.connection_parameters = None + self.metadata = None + self.runtime_urls = None + self.general_information = None + self.capabilities = None + self.backend_service = None + self.policies = None + self.api_definition_url = None + self.api_definitions = None + self.integration_service_environment = kwargs.get('integration_service_environment', None) + self.provisioning_state = None + self.category = None + self.deployment_parameters = kwargs.get('deployment_parameters', None) + + +class IntegrationServiceEnvironmentManagedApiDeploymentParameters(msrest.serialization.Model): + """The integration service environment managed api deployment parameters. + + :param content_link_definition: The integration service environment managed api content link + for deployment. + :type content_link_definition: ~azure.mgmt.logic.models.ContentLink + """ + + _attribute_map = { + 'content_link_definition': {'key': 'contentLinkDefinition', 'type': 'ContentLink'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentManagedApiDeploymentParameters, self).__init__(**kwargs) + self.content_link_definition = kwargs.get('content_link_definition', None) + + +class IntegrationServiceEnvironmentManagedApiListResult(msrest.serialization.Model): + """The list of integration service environment managed APIs. + + :param value: The integration service environment managed APIs. + :type value: list[~azure.mgmt.logic.models.IntegrationServiceEnvironmentManagedApi] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationServiceEnvironmentManagedApi]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentManagedApiListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class IntegrationServiceEnvironmentManagedApiProperties(ApiResourceProperties): + """The integration service environment managed api properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The name. + :vartype name: str + :ivar connection_parameters: The connection parameters. + :vartype connection_parameters: dict[str, any] + :ivar metadata: The metadata. + :vartype metadata: ~azure.mgmt.logic.models.ApiResourceMetadata + :ivar runtime_urls: The runtime urls. + :vartype runtime_urls: list[str] + :ivar general_information: The api general information. + :vartype general_information: ~azure.mgmt.logic.models.ApiResourceGeneralInformation + :ivar capabilities: The capabilities. + :vartype capabilities: list[str] + :ivar backend_service: The backend service. + :vartype backend_service: ~azure.mgmt.logic.models.ApiResourceBackendService + :ivar policies: The policies for the API. + :vartype policies: ~azure.mgmt.logic.models.ApiResourcePolicies + :ivar api_definition_url: The API definition. + :vartype api_definition_url: str + :ivar api_definitions: The api definitions. + :vartype api_definitions: ~azure.mgmt.logic.models.ApiResourceDefinitions + :param integration_service_environment: The integration service environment reference. + :type integration_service_environment: ~azure.mgmt.logic.models.ResourceReference + :ivar provisioning_state: The provisioning state. Possible values include: "NotSpecified", + "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", + "Failed", "Succeeded", "Moving", "Updating", "Registering", "Registered", "Unregistering", + "Unregistered", "Completed", "Renewing", "Pending", "Waiting", "InProgress". + :vartype provisioning_state: str or ~azure.mgmt.logic.models.WorkflowProvisioningState + :ivar category: The category. Possible values include: "NotSpecified", "Enterprise", + "Standard", "Premium". + :vartype category: str or ~azure.mgmt.logic.models.ApiTier + :param deployment_parameters: The integration service environment managed api deployment + parameters. + :type deployment_parameters: + ~azure.mgmt.logic.models.IntegrationServiceEnvironmentManagedApiDeploymentParameters + """ + + _validation = { + 'name': {'readonly': True}, + 'connection_parameters': {'readonly': True}, + 'metadata': {'readonly': True}, + 'runtime_urls': {'readonly': True}, + 'general_information': {'readonly': True}, + 'capabilities': {'readonly': True}, + 'backend_service': {'readonly': True}, + 'policies': {'readonly': True}, + 'api_definition_url': {'readonly': True}, + 'api_definitions': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'category': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'connection_parameters': {'key': 'connectionParameters', 'type': '{object}'}, + 'metadata': {'key': 'metadata', 'type': 'ApiResourceMetadata'}, + 'runtime_urls': {'key': 'runtimeUrls', 'type': '[str]'}, + 'general_information': {'key': 'generalInformation', 'type': 'ApiResourceGeneralInformation'}, + 'capabilities': {'key': 'capabilities', 'type': '[str]'}, + 'backend_service': {'key': 'backendService', 'type': 'ApiResourceBackendService'}, + 'policies': {'key': 'policies', 'type': 'ApiResourcePolicies'}, + 'api_definition_url': {'key': 'apiDefinitionUrl', 'type': 'str'}, + 'api_definitions': {'key': 'apiDefinitions', 'type': 'ApiResourceDefinitions'}, + 'integration_service_environment': {'key': 'integrationServiceEnvironment', 'type': 'ResourceReference'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'deployment_parameters': {'key': 'deploymentParameters', 'type': 'IntegrationServiceEnvironmentManagedApiDeploymentParameters'}, + } + + def __init__( + self, + **kwargs + ): + super(IntegrationServiceEnvironmentManagedApiProperties, self).__init__(**kwargs) + self.deployment_parameters = kwargs.get('deployment_parameters', None) + + class IntegrationServiceEnvironmentNetworkDependency(msrest.serialization.Model): """The azure async operation resource. @@ -4464,6 +4730,51 @@ def __init__( self.next_link = kwargs.get('next_link', None) +class ManagedServiceIdentity(msrest.serialization.Model): + """Managed service identity properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. Type of managed service identity. The type 'SystemAssigned' includes an + implicitly created identity. The type 'None' will remove any identities from the resource. + Possible values include: "SystemAssigned", "UserAssigned", "None". + :type type: str or ~azure.mgmt.logic.models.ManagedServiceIdentityType + :ivar tenant_id: Tenant of managed service identity. + :vartype tenant_id: str + :ivar principal_id: Principal Id of managed service identity. + :vartype principal_id: str + :param user_assigned_identities: The list of user assigned identities associated with the + resource. The user identity dictionary key references will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + :type user_assigned_identities: dict[str, ~azure.mgmt.logic.models.UserAssignedIdentity] + """ + + _validation = { + 'type': {'required': True}, + 'tenant_id': {'readonly': True}, + 'principal_id': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserAssignedIdentity}'}, + } + + def __init__( + self, + **kwargs + ): + super(ManagedServiceIdentity, self).__init__(**kwargs) + self.type = kwargs['type'] + self.tenant_id = None + self.principal_id = None + self.user_assigned_identities = kwargs.get('user_assigned_identities', None) + + class NetworkConfiguration(msrest.serialization.Model): """The network configuration. @@ -4513,18 +4824,12 @@ def __init__( class OpenAuthenticationAccessPolicy(msrest.serialization.Model): """Open authentication access policy defined by user. - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar type: Type of provider for OAuth. Possible values include: "AAD". - :vartype type: str or ~azure.mgmt.logic.models.OpenAuthenticationProviderType + :param type: Type of provider for OAuth. Possible values include: "AAD". + :type type: str or ~azure.mgmt.logic.models.OpenAuthenticationProviderType :param claims: The access policy claims. :type claims: list[~azure.mgmt.logic.models.OpenAuthenticationPolicyClaim] """ - _validation = { - 'type': {'readonly': True}, - } - _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, 'claims': {'key': 'claims', 'type': '[OpenAuthenticationPolicyClaim]'}, @@ -4535,7 +4840,7 @@ def __init__( **kwargs ): super(OpenAuthenticationAccessPolicy, self).__init__(**kwargs) - self.type = None + self.type = kwargs.get('type', None) self.claims = kwargs.get('claims', None) @@ -4572,7 +4877,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 +4967,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 +5010,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 +5201,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 +5324,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 +5590,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 +5694,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 +5750,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 +5784,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 +5802,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 +5880,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 +5923,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 """ @@ -5707,6 +6012,36 @@ def __init__( self.events = kwargs['events'] +class UserAssignedIdentity(msrest.serialization.Model): + """User Assigned identity properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: Principal Id of user assigned identity. + :vartype principal_id: str + :ivar client_id: Client Id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UserAssignedIdentity, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + class Workflow(Resource): """The workflow type. @@ -5722,6 +6057,8 @@ class Workflow(Resource): :type location: str :param tags: A set of tags. The resource tags. :type tags: dict[str, str] + :param identity: Managed service identity properties. + :type identity: ~azure.mgmt.logic.models.ManagedServiceIdentity :ivar provisioning_state: Gets the provisioning state. Possible values include: "NotSpecified", "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", "Moving", "Updating", "Registering", "Registered", "Unregistering", @@ -5749,7 +6086,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] """ @@ -5772,6 +6109,7 @@ class Workflow(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, @@ -5792,6 +6130,7 @@ def __init__( **kwargs ): super(Workflow, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) self.provisioning_state = None self.created_time = None self.changed_time = None @@ -5857,9 +6196,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 +6230,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 +6314,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 +6407,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 +6417,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 +6545,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 +6664,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 +6773,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 +6797,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 +7034,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 +7326,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..570022bd19e4 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, @@ -638,38 +638,55 @@ def __init__( class ApiResourceProperties(msrest.serialization.Model): """The API resource properties. - :param name: The name. - :type name: str - :param connection_parameters: The connection parameters. - :type connection_parameters: dict[str, object] - :param metadata: The metadata. - :type metadata: ~azure.mgmt.logic.models.ApiResourceMetadata - :param runtime_urls: The runtime urls. - :type runtime_urls: list[str] - :param general_information: The api general information. - :type general_information: ~azure.mgmt.logic.models.ApiResourceGeneralInformation - :param capabilities: The capabilities. - :type capabilities: list[str] - :param backend_service: The backend service. - :type backend_service: ~azure.mgmt.logic.models.ApiResourceBackendService - :param policies: The policies for the API. - :type policies: ~azure.mgmt.logic.models.ApiResourcePolicies - :param api_definition_url: The API definition. - :type api_definition_url: str - :param api_definitions: The api definitions. - :type api_definitions: ~azure.mgmt.logic.models.ApiResourceDefinitions + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The name. + :vartype name: str + :ivar connection_parameters: The connection parameters. + :vartype connection_parameters: dict[str, any] + :ivar metadata: The metadata. + :vartype metadata: ~azure.mgmt.logic.models.ApiResourceMetadata + :ivar runtime_urls: The runtime urls. + :vartype runtime_urls: list[str] + :ivar general_information: The api general information. + :vartype general_information: ~azure.mgmt.logic.models.ApiResourceGeneralInformation + :ivar capabilities: The capabilities. + :vartype capabilities: list[str] + :ivar backend_service: The backend service. + :vartype backend_service: ~azure.mgmt.logic.models.ApiResourceBackendService + :ivar policies: The policies for the API. + :vartype policies: ~azure.mgmt.logic.models.ApiResourcePolicies + :ivar api_definition_url: The API definition. + :vartype api_definition_url: str + :ivar api_definitions: The api definitions. + :vartype api_definitions: ~azure.mgmt.logic.models.ApiResourceDefinitions :param integration_service_environment: The integration service environment reference. :type integration_service_environment: ~azure.mgmt.logic.models.ResourceReference - :param provisioning_state: The provisioning state. Possible values include: "NotSpecified", + :ivar provisioning_state: The provisioning state. Possible values include: "NotSpecified", "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", "Moving", "Updating", "Registering", "Registered", "Unregistering", "Unregistered", "Completed", "Renewing", "Pending", "Waiting", "InProgress". - :type provisioning_state: str or ~azure.mgmt.logic.models.WorkflowProvisioningState - :param category: The category. Possible values include: "NotSpecified", "Enterprise", + :vartype provisioning_state: str or ~azure.mgmt.logic.models.WorkflowProvisioningState + :ivar category: The category. Possible values include: "NotSpecified", "Enterprise", "Standard", "Premium". - :type category: str or ~azure.mgmt.logic.models.ApiTier + :vartype category: str or ~azure.mgmt.logic.models.ApiTier """ + _validation = { + 'name': {'readonly': True}, + 'connection_parameters': {'readonly': True}, + 'metadata': {'readonly': True}, + 'runtime_urls': {'readonly': True}, + 'general_information': {'readonly': True}, + 'capabilities': {'readonly': True}, + 'backend_service': {'readonly': True}, + 'policies': {'readonly': True}, + 'api_definition_url': {'readonly': True}, + 'api_definitions': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'category': {'readonly': True}, + } + _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'connection_parameters': {'key': 'connectionParameters', 'type': '{object}'}, @@ -689,35 +706,23 @@ class ApiResourceProperties(msrest.serialization.Model): def __init__( self, *, - name: Optional[str] = None, - connection_parameters: Optional[Dict[str, object]] = None, - metadata: Optional["ApiResourceMetadata"] = None, - runtime_urls: Optional[List[str]] = None, - general_information: Optional["ApiResourceGeneralInformation"] = None, - capabilities: Optional[List[str]] = None, - backend_service: Optional["ApiResourceBackendService"] = None, - policies: Optional["ApiResourcePolicies"] = None, - api_definition_url: Optional[str] = None, - api_definitions: Optional["ApiResourceDefinitions"] = None, integration_service_environment: Optional["ResourceReference"] = None, - provisioning_state: Optional[Union[str, "WorkflowProvisioningState"]] = None, - category: Optional[Union[str, "ApiTier"]] = None, **kwargs ): super(ApiResourceProperties, self).__init__(**kwargs) - self.name = name - self.connection_parameters = connection_parameters - self.metadata = metadata - self.runtime_urls = runtime_urls - self.general_information = general_information - self.capabilities = capabilities - self.backend_service = backend_service - self.policies = policies - self.api_definition_url = api_definition_url - self.api_definitions = api_definitions + self.name = None + self.connection_parameters = None + self.metadata = None + self.runtime_urls = None + self.general_information = None + self.capabilities = None + self.backend_service = None + self.policies = None + self.api_definition_url = None + self.api_definitions = None self.integration_service_environment = integration_service_environment - self.provisioning_state = provisioning_state - self.category = category + self.provisioning_state = None + self.category = None class ArtifactProperties(msrest.serialization.Model): @@ -727,8 +732,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 +747,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 +763,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 +787,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 +1448,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 +1489,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 +1669,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 +1697,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) @@ -1814,18 +1819,27 @@ def __init__( class ContentLink(msrest.serialization.Model): """The content link. + Variables are only populated by the server, and will be ignored when sending a request. + :param uri: The content link URI. :type uri: str - :param content_version: The content version. - :type content_version: str - :param content_size: The content size. - :type content_size: long - :param content_hash: The content hash. - :type content_hash: ~azure.mgmt.logic.models.ContentHash - :param metadata: The metadata. - :type metadata: object + :ivar content_version: The content version. + :vartype content_version: str + :ivar content_size: The content size. + :vartype content_size: long + :ivar content_hash: The content hash. + :vartype content_hash: ~azure.mgmt.logic.models.ContentHash + :ivar metadata: The metadata. + :vartype metadata: any """ + _validation = { + 'content_version': {'readonly': True}, + 'content_size': {'readonly': True}, + 'content_hash': {'readonly': True}, + 'metadata': {'readonly': True}, + } + _attribute_map = { 'uri': {'key': 'uri', 'type': 'str'}, 'content_version': {'key': 'contentVersion', 'type': 'str'}, @@ -1838,18 +1852,14 @@ def __init__( self, *, uri: Optional[str] = None, - content_version: Optional[str] = None, - content_size: Optional[int] = None, - content_hash: Optional["ContentHash"] = None, - metadata: Optional[object] = None, **kwargs ): super(ContentLink, self).__init__(**kwargs) self.uri = uri - self.content_version = content_version - self.content_size = content_size - self.content_hash = content_hash - self.metadata = metadata + self.content_version = None + self.content_size = None + self.content_hash = None + self.metadata = None class Correlation(msrest.serialization.Model): @@ -3025,8 +3035,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 +3054,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 +3071,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 +3093,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 +3137,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 +3158,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) @@ -3337,7 +3347,7 @@ class IntegrationAccount(Resource): :param sku: The sku. :type sku: ~azure.mgmt.logic.models.IntegrationAccountSku :param integration_service_environment: The integration service environment. - :type integration_service_environment: ~azure.mgmt.logic.models.IntegrationServiceEnvironment + :type integration_service_environment: ~azure.mgmt.logic.models.ResourceReference :param state: The workflow state. Possible values include: "NotSpecified", "Completed", "Enabled", "Disabled", "Deleted", "Suspended". :type state: str or ~azure.mgmt.logic.models.WorkflowState @@ -3356,7 +3366,7 @@ class IntegrationAccount(Resource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'sku': {'key': 'sku', 'type': 'IntegrationAccountSku'}, - 'integration_service_environment': {'key': 'properties.integrationServiceEnvironment', 'type': 'IntegrationServiceEnvironment'}, + 'integration_service_environment': {'key': 'properties.integrationServiceEnvironment', 'type': 'ResourceReference'}, 'state': {'key': 'properties.state', 'type': 'str'}, } @@ -3366,7 +3376,7 @@ def __init__( location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, sku: Optional["IntegrationAccountSku"] = None, - integration_service_environment: Optional["IntegrationServiceEnvironment"] = None, + integration_service_environment: Optional["ResourceReference"] = None, state: Optional[Union[str, "WorkflowState"]] = None, **kwargs ): @@ -3398,7 +3408,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 +3468,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 +3557,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 +3590,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 +3689,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 +3727,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 +3841,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 +3876,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 +3971,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 +4017,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 +4109,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 +4136,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) @@ -4288,6 +4298,8 @@ class IntegrationServiceEnvironment(Resource): :type properties: ~azure.mgmt.logic.models.IntegrationServiceEnvironmentProperties :param sku: The sku. :type sku: ~azure.mgmt.logic.models.IntegrationServiceEnvironmentSku + :param identity: Managed service identity properties. + :type identity: ~azure.mgmt.logic.models.ManagedServiceIdentity """ _validation = { @@ -4304,6 +4316,7 @@ class IntegrationServiceEnvironment(Resource): 'tags': {'key': 'tags', 'type': '{str}'}, 'properties': {'key': 'properties', 'type': 'IntegrationServiceEnvironmentProperties'}, 'sku': {'key': 'sku', 'type': 'IntegrationServiceEnvironmentSku'}, + 'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'}, } def __init__( @@ -4313,11 +4326,13 @@ def __init__( tags: Optional[Dict[str, str]] = None, properties: Optional["IntegrationServiceEnvironmentProperties"] = None, sku: Optional["IntegrationServiceEnvironmentSku"] = None, + identity: Optional["ManagedServiceIdentity"] = None, **kwargs ): super(IntegrationServiceEnvironment, self).__init__(location=location, tags=tags, **kwargs) self.properties = properties self.sku = sku + self.identity = identity class IntegrationServiceEnvironmentAccessEndpoint(msrest.serialization.Model): @@ -4368,6 +4383,255 @@ def __init__( self.next_link = next_link +class IntegrationServiceEnvironmentManagedApi(Resource): + """The integration service environment managed api. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. The resource tags. + :type tags: dict[str, str] + :ivar name_properties_name: The name. + :vartype name_properties_name: str + :ivar connection_parameters: The connection parameters. + :vartype connection_parameters: dict[str, any] + :ivar metadata: The metadata. + :vartype metadata: ~azure.mgmt.logic.models.ApiResourceMetadata + :ivar runtime_urls: The runtime urls. + :vartype runtime_urls: list[str] + :ivar general_information: The api general information. + :vartype general_information: ~azure.mgmt.logic.models.ApiResourceGeneralInformation + :ivar capabilities: The capabilities. + :vartype capabilities: list[str] + :ivar backend_service: The backend service. + :vartype backend_service: ~azure.mgmt.logic.models.ApiResourceBackendService + :ivar policies: The policies for the API. + :vartype policies: ~azure.mgmt.logic.models.ApiResourcePolicies + :ivar api_definition_url: The API definition. + :vartype api_definition_url: str + :ivar api_definitions: The api definitions. + :vartype api_definitions: ~azure.mgmt.logic.models.ApiResourceDefinitions + :param integration_service_environment: The integration service environment reference. + :type integration_service_environment: ~azure.mgmt.logic.models.ResourceReference + :ivar provisioning_state: The provisioning state. Possible values include: "NotSpecified", + "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", + "Failed", "Succeeded", "Moving", "Updating", "Registering", "Registered", "Unregistering", + "Unregistered", "Completed", "Renewing", "Pending", "Waiting", "InProgress". + :vartype provisioning_state: str or ~azure.mgmt.logic.models.WorkflowProvisioningState + :ivar category: The category. Possible values include: "NotSpecified", "Enterprise", + "Standard", "Premium". + :vartype category: str or ~azure.mgmt.logic.models.ApiTier + :param deployment_parameters: The integration service environment managed api deployment + parameters. + :type deployment_parameters: + ~azure.mgmt.logic.models.IntegrationServiceEnvironmentManagedApiDeploymentParameters + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'name_properties_name': {'readonly': True}, + 'connection_parameters': {'readonly': True}, + 'metadata': {'readonly': True}, + 'runtime_urls': {'readonly': True}, + 'general_information': {'readonly': True}, + 'capabilities': {'readonly': True}, + 'backend_service': {'readonly': True}, + 'policies': {'readonly': True}, + 'api_definition_url': {'readonly': True}, + 'api_definitions': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'category': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'name_properties_name': {'key': 'properties.name', 'type': 'str'}, + 'connection_parameters': {'key': 'properties.connectionParameters', 'type': '{object}'}, + 'metadata': {'key': 'properties.metadata', 'type': 'ApiResourceMetadata'}, + 'runtime_urls': {'key': 'properties.runtimeUrls', 'type': '[str]'}, + 'general_information': {'key': 'properties.generalInformation', 'type': 'ApiResourceGeneralInformation'}, + 'capabilities': {'key': 'properties.capabilities', 'type': '[str]'}, + 'backend_service': {'key': 'properties.backendService', 'type': 'ApiResourceBackendService'}, + 'policies': {'key': 'properties.policies', 'type': 'ApiResourcePolicies'}, + 'api_definition_url': {'key': 'properties.apiDefinitionUrl', 'type': 'str'}, + 'api_definitions': {'key': 'properties.apiDefinitions', 'type': 'ApiResourceDefinitions'}, + 'integration_service_environment': {'key': 'properties.integrationServiceEnvironment', 'type': 'ResourceReference'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'category': {'key': 'properties.category', 'type': 'str'}, + 'deployment_parameters': {'key': 'properties.deploymentParameters', 'type': 'IntegrationServiceEnvironmentManagedApiDeploymentParameters'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + integration_service_environment: Optional["ResourceReference"] = None, + deployment_parameters: Optional["IntegrationServiceEnvironmentManagedApiDeploymentParameters"] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentManagedApi, self).__init__(location=location, tags=tags, **kwargs) + self.name_properties_name = None + self.connection_parameters = None + self.metadata = None + self.runtime_urls = None + self.general_information = None + self.capabilities = None + self.backend_service = None + self.policies = None + self.api_definition_url = None + self.api_definitions = None + self.integration_service_environment = integration_service_environment + self.provisioning_state = None + self.category = None + self.deployment_parameters = deployment_parameters + + +class IntegrationServiceEnvironmentManagedApiDeploymentParameters(msrest.serialization.Model): + """The integration service environment managed api deployment parameters. + + :param content_link_definition: The integration service environment managed api content link + for deployment. + :type content_link_definition: ~azure.mgmt.logic.models.ContentLink + """ + + _attribute_map = { + 'content_link_definition': {'key': 'contentLinkDefinition', 'type': 'ContentLink'}, + } + + def __init__( + self, + *, + content_link_definition: Optional["ContentLink"] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentManagedApiDeploymentParameters, self).__init__(**kwargs) + self.content_link_definition = content_link_definition + + +class IntegrationServiceEnvironmentManagedApiListResult(msrest.serialization.Model): + """The list of integration service environment managed APIs. + + :param value: The integration service environment managed APIs. + :type value: list[~azure.mgmt.logic.models.IntegrationServiceEnvironmentManagedApi] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[IntegrationServiceEnvironmentManagedApi]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["IntegrationServiceEnvironmentManagedApi"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentManagedApiListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class IntegrationServiceEnvironmentManagedApiProperties(ApiResourceProperties): + """The integration service environment managed api properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The name. + :vartype name: str + :ivar connection_parameters: The connection parameters. + :vartype connection_parameters: dict[str, any] + :ivar metadata: The metadata. + :vartype metadata: ~azure.mgmt.logic.models.ApiResourceMetadata + :ivar runtime_urls: The runtime urls. + :vartype runtime_urls: list[str] + :ivar general_information: The api general information. + :vartype general_information: ~azure.mgmt.logic.models.ApiResourceGeneralInformation + :ivar capabilities: The capabilities. + :vartype capabilities: list[str] + :ivar backend_service: The backend service. + :vartype backend_service: ~azure.mgmt.logic.models.ApiResourceBackendService + :ivar policies: The policies for the API. + :vartype policies: ~azure.mgmt.logic.models.ApiResourcePolicies + :ivar api_definition_url: The API definition. + :vartype api_definition_url: str + :ivar api_definitions: The api definitions. + :vartype api_definitions: ~azure.mgmt.logic.models.ApiResourceDefinitions + :param integration_service_environment: The integration service environment reference. + :type integration_service_environment: ~azure.mgmt.logic.models.ResourceReference + :ivar provisioning_state: The provisioning state. Possible values include: "NotSpecified", + "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", + "Failed", "Succeeded", "Moving", "Updating", "Registering", "Registered", "Unregistering", + "Unregistered", "Completed", "Renewing", "Pending", "Waiting", "InProgress". + :vartype provisioning_state: str or ~azure.mgmt.logic.models.WorkflowProvisioningState + :ivar category: The category. Possible values include: "NotSpecified", "Enterprise", + "Standard", "Premium". + :vartype category: str or ~azure.mgmt.logic.models.ApiTier + :param deployment_parameters: The integration service environment managed api deployment + parameters. + :type deployment_parameters: + ~azure.mgmt.logic.models.IntegrationServiceEnvironmentManagedApiDeploymentParameters + """ + + _validation = { + 'name': {'readonly': True}, + 'connection_parameters': {'readonly': True}, + 'metadata': {'readonly': True}, + 'runtime_urls': {'readonly': True}, + 'general_information': {'readonly': True}, + 'capabilities': {'readonly': True}, + 'backend_service': {'readonly': True}, + 'policies': {'readonly': True}, + 'api_definition_url': {'readonly': True}, + 'api_definitions': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'category': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'connection_parameters': {'key': 'connectionParameters', 'type': '{object}'}, + 'metadata': {'key': 'metadata', 'type': 'ApiResourceMetadata'}, + 'runtime_urls': {'key': 'runtimeUrls', 'type': '[str]'}, + 'general_information': {'key': 'generalInformation', 'type': 'ApiResourceGeneralInformation'}, + 'capabilities': {'key': 'capabilities', 'type': '[str]'}, + 'backend_service': {'key': 'backendService', 'type': 'ApiResourceBackendService'}, + 'policies': {'key': 'policies', 'type': 'ApiResourcePolicies'}, + 'api_definition_url': {'key': 'apiDefinitionUrl', 'type': 'str'}, + 'api_definitions': {'key': 'apiDefinitions', 'type': 'ApiResourceDefinitions'}, + 'integration_service_environment': {'key': 'integrationServiceEnvironment', 'type': 'ResourceReference'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'deployment_parameters': {'key': 'deploymentParameters', 'type': 'IntegrationServiceEnvironmentManagedApiDeploymentParameters'}, + } + + def __init__( + self, + *, + integration_service_environment: Optional["ResourceReference"] = None, + deployment_parameters: Optional["IntegrationServiceEnvironmentManagedApiDeploymentParameters"] = None, + **kwargs + ): + super(IntegrationServiceEnvironmentManagedApiProperties, self).__init__(integration_service_environment=integration_service_environment, **kwargs) + self.deployment_parameters = deployment_parameters + + class IntegrationServiceEnvironmentNetworkDependency(msrest.serialization.Model): """The azure async operation resource. @@ -5063,6 +5327,54 @@ def __init__( self.next_link = next_link +class ManagedServiceIdentity(msrest.serialization.Model): + """Managed service identity properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. Type of managed service identity. The type 'SystemAssigned' includes an + implicitly created identity. The type 'None' will remove any identities from the resource. + Possible values include: "SystemAssigned", "UserAssigned", "None". + :type type: str or ~azure.mgmt.logic.models.ManagedServiceIdentityType + :ivar tenant_id: Tenant of managed service identity. + :vartype tenant_id: str + :ivar principal_id: Principal Id of managed service identity. + :vartype principal_id: str + :param user_assigned_identities: The list of user assigned identities associated with the + resource. The user identity dictionary key references will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + :type user_assigned_identities: dict[str, ~azure.mgmt.logic.models.UserAssignedIdentity] + """ + + _validation = { + 'type': {'required': True}, + 'tenant_id': {'readonly': True}, + 'principal_id': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserAssignedIdentity}'}, + } + + def __init__( + self, + *, + type: Union[str, "ManagedServiceIdentityType"], + user_assigned_identities: Optional[Dict[str, "UserAssignedIdentity"]] = None, + **kwargs + ): + super(ManagedServiceIdentity, self).__init__(**kwargs) + self.type = type + self.tenant_id = None + self.principal_id = None + self.user_assigned_identities = user_assigned_identities + + class NetworkConfiguration(msrest.serialization.Model): """The network configuration. @@ -5118,18 +5430,12 @@ def __init__( class OpenAuthenticationAccessPolicy(msrest.serialization.Model): """Open authentication access policy defined by user. - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar type: Type of provider for OAuth. Possible values include: "AAD". - :vartype type: str or ~azure.mgmt.logic.models.OpenAuthenticationProviderType + :param type: Type of provider for OAuth. Possible values include: "AAD". + :type type: str or ~azure.mgmt.logic.models.OpenAuthenticationProviderType :param claims: The access policy claims. :type claims: list[~azure.mgmt.logic.models.OpenAuthenticationPolicyClaim] """ - _validation = { - 'type': {'readonly': True}, - } - _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, 'claims': {'key': 'claims', 'type': '[OpenAuthenticationPolicyClaim]'}, @@ -5138,11 +5444,12 @@ class OpenAuthenticationAccessPolicy(msrest.serialization.Model): def __init__( self, *, + type: Optional[Union[str, "OpenAuthenticationProviderType"]] = None, claims: Optional[List["OpenAuthenticationPolicyClaim"]] = None, **kwargs ): super(OpenAuthenticationAccessPolicy, self).__init__(**kwargs) - self.type = None + self.type = type self.claims = claims @@ -5182,7 +5489,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 +5505,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 +5592,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 +5613,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 +5642,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 +5696,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 +5858,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 +5874,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 +5997,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 +6013,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 +6297,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 +6311,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 +6418,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 +6436,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 +6482,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 +6496,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 +6520,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 +6538,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 +6583,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 +6592,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 +6637,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 +6657,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 +6687,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 +6712,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 ): @@ -6482,6 +6789,36 @@ def __init__( self.events = events +class UserAssignedIdentity(msrest.serialization.Model): + """User Assigned identity properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: Principal Id of user assigned identity. + :vartype principal_id: str + :ivar client_id: Client Id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UserAssignedIdentity, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + class Workflow(Resource): """The workflow type. @@ -6497,6 +6834,8 @@ class Workflow(Resource): :type location: str :param tags: A set of tags. The resource tags. :type tags: dict[str, str] + :param identity: Managed service identity properties. + :type identity: ~azure.mgmt.logic.models.ManagedServiceIdentity :ivar provisioning_state: Gets the provisioning state. Possible values include: "NotSpecified", "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", "Moving", "Updating", "Registering", "Registered", "Unregistering", @@ -6524,7 +6863,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] """ @@ -6547,6 +6886,7 @@ class Workflow(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, @@ -6567,16 +6907,18 @@ def __init__( *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, + identity: Optional["ManagedServiceIdentity"] = None, state: Optional[Union[str, "WorkflowState"]] = None, endpoints_configuration: Optional["FlowEndpointsConfiguration"] = None, 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 ): super(Workflow, self).__init__(location=location, tags=tags, **kwargs) + self.identity = identity self.provisioning_state = None self.created_time = None self.changed_time = None @@ -6647,9 +6989,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 +7007,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 +7028,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 +7053,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 +7119,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 +7214,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 +7224,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 +7360,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 +7427,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 +7494,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 +7551,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 +7618,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 +7642,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 +7886,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 +8205,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 +8251,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..dfe1327e6ec9 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 @@ -53,7 +53,7 @@ def list( integration_service_environment_name, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["_models.ManagedApiListResult"] + # type: (...) -> Iterable["_models.IntegrationServiceEnvironmentManagedApiListResult"] """Gets the integration service environment managed Apis. :param resource_group: The resource group. @@ -61,11 +61,11 @@ def list( :param integration_service_environment_name: The integration service environment name. :type integration_service_environment_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ManagedApiListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.logic.models.ManagedApiListResult] + :return: An iterator like instance of either IntegrationServiceEnvironmentManagedApiListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.logic.models.IntegrationServiceEnvironmentManagedApiListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ManagedApiListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.IntegrationServiceEnvironmentManagedApiListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -99,7 +99,7 @@ def prepare_request(next_link=None): return request def extract_data(pipeline_response): - deserialized = self._deserialize('ManagedApiListResult', pipeline_response) + deserialized = self._deserialize('IntegrationServiceEnvironmentManagedApiListResult', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -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) @@ -130,7 +130,7 @@ def get( api_name, # type: str **kwargs # type: Any ): - # type: (...) -> "_models.ManagedApi" + # type: (...) -> "_models.IntegrationServiceEnvironmentManagedApi" """Gets the integration service environment managed Api. :param resource_group: The resource group name. @@ -140,11 +140,11 @@ def get( :param api_name: The api name. :type api_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ManagedApi, or the result of cls(response) - :rtype: ~azure.mgmt.logic.models.ManagedApi + :return: IntegrationServiceEnvironmentManagedApi, or the result of cls(response) + :rtype: ~azure.mgmt.logic.models.IntegrationServiceEnvironmentManagedApi :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ManagedApi"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.IntegrationServiceEnvironmentManagedApi"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -176,10 +176,10 @@ 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) + deserialized = self._deserialize('IntegrationServiceEnvironmentManagedApi', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -192,15 +192,17 @@ def _put_initial( resource_group, # type: str integration_service_environment_name, # type: str api_name, # type: str + integration_service_environment_managed_api, # type: "_models.IntegrationServiceEnvironmentManagedApi" **kwargs # type: Any ): - # type: (...) -> "_models.ManagedApi" - cls = kwargs.pop('cls', None) # type: ClsType["_models.ManagedApi"] + # type: (...) -> "_models.IntegrationServiceEnvironmentManagedApi" + cls = kwargs.pop('cls', None) # type: ClsType["_models.IntegrationServiceEnvironmentManagedApi"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) api_version = "2019-05-01" + content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL @@ -219,22 +221,26 @@ def _put_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - request = self._client.put(url, query_parameters, header_parameters) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(integration_service_environment_managed_api, 'IntegrationServiceEnvironmentManagedApi') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response 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: - deserialized = self._deserialize('ManagedApi', pipeline_response) + deserialized = self._deserialize('IntegrationServiceEnvironmentManagedApi', pipeline_response) if response.status_code == 201: - deserialized = self._deserialize('ManagedApi', pipeline_response) + deserialized = self._deserialize('IntegrationServiceEnvironmentManagedApi', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -247,9 +253,10 @@ def begin_put( resource_group, # type: str integration_service_environment_name, # type: str api_name, # type: str + integration_service_environment_managed_api, # type: "_models.IntegrationServiceEnvironmentManagedApi" **kwargs # type: Any ): - # type: (...) -> LROPoller["_models.ManagedApi"] + # type: (...) -> LROPoller["_models.IntegrationServiceEnvironmentManagedApi"] """Puts the integration service environment managed Api. :param resource_group: The resource group name. @@ -258,18 +265,21 @@ def begin_put( :type integration_service_environment_name: str :param api_name: The api name. :type api_name: str + :param integration_service_environment_managed_api: The integration service environment managed + api. + :type integration_service_environment_managed_api: ~azure.mgmt.logic.models.IntegrationServiceEnvironmentManagedApi :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) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.logic.models.ManagedApi] + :return: An instance of LROPoller that returns either IntegrationServiceEnvironmentManagedApi or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.logic.models.IntegrationServiceEnvironmentManagedApi] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["_models.ManagedApi"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.IntegrationServiceEnvironmentManagedApi"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -280,6 +290,7 @@ def begin_put( resource_group=resource_group, integration_service_environment_name=integration_service_environment_name, api_name=api_name, + integration_service_environment_managed_api=integration_service_environment_managed_api, cls=lambda x,y,z: x, **kwargs ) @@ -288,7 +299,7 @@ def begin_put( kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): - deserialized = self._deserialize('ManagedApi', pipeline_response) + deserialized = self._deserialize('IntegrationServiceEnvironmentManagedApi', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -355,7 +366,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 +392,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: