diff --git a/sdk/appservice/azure-mgmt-web/_meta.json b/sdk/appservice/azure-mgmt-web/_meta.json index fba4aa56e66b..5693755f158c 100644 --- a/sdk/appservice/azure-mgmt-web/_meta.json +++ b/sdk/appservice/azure-mgmt-web/_meta.json @@ -1,12 +1,12 @@ { - "commit": "ff7b8e12e78b352561e2e470dd045be310a313fa", - "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "commit": "2bd40179c2fa02f6b6b274f85125dde82657e874", + "repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs", "autorest": "3.10.2", "use": [ - "@autorest/python@6.26.4", + "@autorest/python@6.27.4", "@autorest/modelerfour@4.27.0" ], - "autorest_command": "autorest specification/web/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.26.4 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", + "autorest_command": "autorest specification/web/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", "readme": "specification/web/resource-manager/readme.md", "package-2023-01": "fatal: invalid object name 'from'. from: WebApps.json", "package-2022-09": "fatal: invalid object name 'from'. from: WebApps.json", diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_operations_mixin.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_operations_mixin.py index f828816faac3..4d1d4a53a1db 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_operations_mixin.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_operations_mixin.py @@ -61,26 +61,10 @@ def check_name_availability( from .v2016_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -111,26 +95,10 @@ def get_publishing_user( from .v2016_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -164,26 +132,10 @@ def get_source_control( from .v2016_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -214,26 +166,10 @@ def get_subscription_deployment_locations( from .v2016_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -262,8 +198,6 @@ def list_ase_regions( api_version = self._get_api_version('list_ase_regions') if api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -298,26 +232,10 @@ def list_billing_meters( api_version = self._get_api_version('list_billing_meters') if api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -347,14 +265,10 @@ def list_custom_host_name_sites( :raises ~azure.core.exceptions.HttpResponseError: """ api_version = self._get_api_version('list_custom_host_name_sites') - if api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2022-09-01': + if api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -403,26 +317,10 @@ def list_geo_regions( from .v2016_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -453,26 +351,10 @@ def list_premier_add_on_offers( from .v2016_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -507,26 +389,10 @@ def list_site_identifiers_assigned_to_host_name( # pylint: disable=name-too-lon from .v2016_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -557,26 +423,10 @@ def list_skus( from .v2016_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -607,26 +457,10 @@ def list_source_controls( from .v2016_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -665,26 +499,10 @@ def move( # pylint: disable=inconsistent-return-statements from .v2016_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -719,26 +537,10 @@ def update_publishing_user( from .v2016_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -776,26 +578,10 @@ def update_source_control( from .v2016_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -833,26 +619,10 @@ def validate( from .v2016_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -925,26 +695,10 @@ def validate_move( # pylint: disable=inconsistent-return-statements from .v2016_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -981,26 +735,10 @@ def verify_hosting_environment_vnet( from .v2016_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebSiteManagementClientOperationsMixin as OperationClass else: diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_serialization.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_serialization.py index dc8692e6ec0f..a94487cbf17a 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_serialization.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_serialization.py @@ -309,7 +309,7 @@ def _create_xml_node(tag, prefix=None, ns=None): return ET.Element(tag) -class Model(object): +class Model: """Mixin for all client request body/response body models to support serialization and deserialization. """ @@ -562,7 +562,7 @@ def _decode_attribute_map_key(key): return key.replace("\\.", ".") -class Serializer(object): # pylint: disable=too-many-public-methods +class Serializer: # pylint: disable=too-many-public-methods """Request object model serializer.""" basic_types = {str: "str", int: "int", bool: "bool", float: "float"} @@ -1440,7 +1440,7 @@ def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument return children[0] -class Deserializer(object): +class Deserializer: """Response object model deserializer. :param dict classes: Class type dictionary for deserializing complex types. @@ -1682,17 +1682,21 @@ def _instantiate_model(self, response, attrs, additional_properties=None): subtype = getattr(response, "_subtype_map", {}) try: readonly = [ - k for k, v in response._validation.items() if v.get("readonly") # pylint: disable=protected-access + k + for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore + if v.get("readonly") ] const = [ - k for k, v in response._validation.items() if v.get("constant") # pylint: disable=protected-access + k + for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore + if v.get("constant") ] kwargs = {k: v for k, v in attrs.items() if k not in subtype and k not in readonly + const} response_obj = response(**kwargs) for attr in readonly: setattr(response_obj, attr, attrs.get(attr)) if additional_properties: - response_obj.additional_properties = additional_properties + response_obj.additional_properties = additional_properties # type: ignore return response_obj except TypeError as err: msg = "Unable to deserialize {} into model {}. ".format(kwargs, response) # type: ignore diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_web_site_management_client.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_web_site_management_client.py index 8fddd571114d..47f0071689b1 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_web_site_management_client.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/_web_site_management_client.py @@ -98,7 +98,7 @@ def __init__( policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, self._config.http_logging_policy, ] - self._client = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) + self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) super(WebSiteManagementClient, self).__init__( api_version=api_version, profile=profile @@ -112,76 +112,24 @@ def _models_dict(cls, api_version): def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: - * 2015-04-01: :mod:`v2015_04_01.models` - * 2015-08-01: :mod:`v2015_08_01.models` * 2016-03-01: :mod:`v2016_03_01.models` - * 2016-08-01: :mod:`v2016_08_01.models` - * 2016-09-01: :mod:`v2016_09_01.models` * 2018-02-01: :mod:`v2018_02_01.models` - * 2018-11-01: :mod:`v2018_11_01.models` - * 2019-08-01: :mod:`v2019_08_01.models` - * 2020-06-01: :mod:`v2020_06_01.models` - * 2020-09-01: :mod:`v2020_09_01.models` - * 2020-12-01: :mod:`v2020_12_01.models` - * 2021-01-01: :mod:`v2021_01_01.models` - * 2021-01-15: :mod:`v2021_01_15.models` - * 2021-03-01: :mod:`v2021_03_01.models` * 2022-09-01: :mod:`v2022_09_01.models` * 2023-01-01: :mod:`v2023_01_01.models` - * 2023-12-01: :mod:`v2023_12_01.models` * 2024-04-01: :mod:`v2024_04_01.models` """ - if api_version == '2015-04-01': - from .v2015_04_01 import models - return models - elif api_version == '2015-08-01': - from .v2015_08_01 import models - return models - elif api_version == '2016-03-01': + if api_version == '2016-03-01': from .v2016_03_01 import models return models - elif api_version == '2016-08-01': - from .v2016_08_01 import models - return models - elif api_version == '2016-09-01': - from .v2016_09_01 import models - return models elif api_version == '2018-02-01': from .v2018_02_01 import models return models - elif api_version == '2018-11-01': - from .v2018_11_01 import models - return models - elif api_version == '2019-08-01': - from .v2019_08_01 import models - return models - elif api_version == '2020-06-01': - from .v2020_06_01 import models - return models - elif api_version == '2020-09-01': - from .v2020_09_01 import models - return models - elif api_version == '2020-12-01': - from .v2020_12_01 import models - return models - elif api_version == '2021-01-01': - from .v2021_01_01 import models - return models - elif api_version == '2021-01-15': - from .v2021_01_15 import models - return models - elif api_version == '2021-03-01': - from .v2021_03_01 import models - return models elif api_version == '2022-09-01': from .v2022_09_01 import models return models elif api_version == '2023-01-01': from .v2023_01_01 import models return models - elif api_version == '2023-12-01': - from .v2023_12_01 import models - return models elif api_version == '2024-04-01': from .v2024_04_01 import models return models @@ -191,45 +139,18 @@ def models(cls, api_version=DEFAULT_API_VERSION): def app_service_certificate_orders(self): """Instance depends on the API version: - * 2015-08-01: :class:`AppServiceCertificateOrdersOperations` * 2018-02-01: :class:`AppServiceCertificateOrdersOperations` - * 2019-08-01: :class:`AppServiceCertificateOrdersOperations` - * 2020-06-01: :class:`AppServiceCertificateOrdersOperations` - * 2020-09-01: :class:`AppServiceCertificateOrdersOperations` - * 2020-12-01: :class:`AppServiceCertificateOrdersOperations` - * 2021-01-01: :class:`AppServiceCertificateOrdersOperations` - * 2021-01-15: :class:`AppServiceCertificateOrdersOperations` - * 2021-03-01: :class:`AppServiceCertificateOrdersOperations` * 2022-09-01: :class:`AppServiceCertificateOrdersOperations` * 2023-01-01: :class:`AppServiceCertificateOrdersOperations` - * 2023-12-01: :class:`AppServiceCertificateOrdersOperations` * 2024-04-01: :class:`AppServiceCertificateOrdersOperations` """ api_version = self._get_api_version('app_service_certificate_orders') - if api_version == '2015-08-01': - from .v2015_08_01.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from .v2018_02_01.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import AppServiceCertificateOrdersOperations as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import AppServiceCertificateOrdersOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import AppServiceCertificateOrdersOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import AppServiceCertificateOrdersOperations as OperationClass else: @@ -241,45 +162,18 @@ def app_service_certificate_orders(self): def app_service_environments(self): """Instance depends on the API version: - * 2016-09-01: :class:`AppServiceEnvironmentsOperations` * 2018-02-01: :class:`AppServiceEnvironmentsOperations` - * 2019-08-01: :class:`AppServiceEnvironmentsOperations` - * 2020-06-01: :class:`AppServiceEnvironmentsOperations` - * 2020-09-01: :class:`AppServiceEnvironmentsOperations` - * 2020-12-01: :class:`AppServiceEnvironmentsOperations` - * 2021-01-01: :class:`AppServiceEnvironmentsOperations` - * 2021-01-15: :class:`AppServiceEnvironmentsOperations` - * 2021-03-01: :class:`AppServiceEnvironmentsOperations` * 2022-09-01: :class:`AppServiceEnvironmentsOperations` * 2023-01-01: :class:`AppServiceEnvironmentsOperations` - * 2023-12-01: :class:`AppServiceEnvironmentsOperations` * 2024-04-01: :class:`AppServiceEnvironmentsOperations` """ api_version = self._get_api_version('app_service_environments') - if api_version == '2016-09-01': - from .v2016_09_01.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from .v2018_02_01.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import AppServiceEnvironmentsOperations as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import AppServiceEnvironmentsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import AppServiceEnvironmentsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import AppServiceEnvironmentsOperations as OperationClass else: @@ -291,45 +185,18 @@ def app_service_environments(self): def app_service_plans(self): """Instance depends on the API version: - * 2016-09-01: :class:`AppServicePlansOperations` * 2018-02-01: :class:`AppServicePlansOperations` - * 2019-08-01: :class:`AppServicePlansOperations` - * 2020-06-01: :class:`AppServicePlansOperations` - * 2020-09-01: :class:`AppServicePlansOperations` - * 2020-12-01: :class:`AppServicePlansOperations` - * 2021-01-01: :class:`AppServicePlansOperations` - * 2021-01-15: :class:`AppServicePlansOperations` - * 2021-03-01: :class:`AppServicePlansOperations` * 2022-09-01: :class:`AppServicePlansOperations` * 2023-01-01: :class:`AppServicePlansOperations` - * 2023-12-01: :class:`AppServicePlansOperations` * 2024-04-01: :class:`AppServicePlansOperations` """ api_version = self._get_api_version('app_service_plans') - if api_version == '2016-09-01': - from .v2016_09_01.operations import AppServicePlansOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from .v2018_02_01.operations import AppServicePlansOperations as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import AppServicePlansOperations as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import AppServicePlansOperations as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import AppServicePlansOperations as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import AppServicePlansOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import AppServicePlansOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import AppServicePlansOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import AppServicePlansOperations as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import AppServicePlansOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import AppServicePlansOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import AppServicePlansOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import AppServicePlansOperations as OperationClass else: @@ -355,30 +222,15 @@ def billing_meters(self): def certificate_orders_diagnostics(self): """Instance depends on the API version: - * 2020-12-01: :class:`CertificateOrdersDiagnosticsOperations` - * 2021-01-01: :class:`CertificateOrdersDiagnosticsOperations` - * 2021-01-15: :class:`CertificateOrdersDiagnosticsOperations` - * 2021-03-01: :class:`CertificateOrdersDiagnosticsOperations` * 2022-09-01: :class:`CertificateOrdersDiagnosticsOperations` * 2023-01-01: :class:`CertificateOrdersDiagnosticsOperations` - * 2023-12-01: :class:`CertificateOrdersDiagnosticsOperations` * 2024-04-01: :class:`CertificateOrdersDiagnosticsOperations` """ api_version = self._get_api_version('certificate_orders_diagnostics') - if api_version == '2020-12-01': - from .v2020_12_01.operations import CertificateOrdersDiagnosticsOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import CertificateOrdersDiagnosticsOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import CertificateOrdersDiagnosticsOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import CertificateOrdersDiagnosticsOperations as OperationClass - elif api_version == '2022-09-01': + if api_version == '2022-09-01': from .v2022_09_01.operations import CertificateOrdersDiagnosticsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import CertificateOrdersDiagnosticsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import CertificateOrdersDiagnosticsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import CertificateOrdersDiagnosticsOperations as OperationClass else: @@ -390,45 +242,18 @@ def certificate_orders_diagnostics(self): def certificate_registration_provider(self): """Instance depends on the API version: - * 2015-08-01: :class:`CertificateRegistrationProviderOperations` * 2018-02-01: :class:`CertificateRegistrationProviderOperations` - * 2019-08-01: :class:`CertificateRegistrationProviderOperations` - * 2020-06-01: :class:`CertificateRegistrationProviderOperations` - * 2020-09-01: :class:`CertificateRegistrationProviderOperations` - * 2020-12-01: :class:`CertificateRegistrationProviderOperations` - * 2021-01-01: :class:`CertificateRegistrationProviderOperations` - * 2021-01-15: :class:`CertificateRegistrationProviderOperations` - * 2021-03-01: :class:`CertificateRegistrationProviderOperations` * 2022-09-01: :class:`CertificateRegistrationProviderOperations` * 2023-01-01: :class:`CertificateRegistrationProviderOperations` - * 2023-12-01: :class:`CertificateRegistrationProviderOperations` * 2024-04-01: :class:`CertificateRegistrationProviderOperations` """ api_version = self._get_api_version('certificate_registration_provider') - if api_version == '2015-08-01': - from .v2015_08_01.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from .v2018_02_01.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import CertificateRegistrationProviderOperations as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import CertificateRegistrationProviderOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import CertificateRegistrationProviderOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import CertificateRegistrationProviderOperations as OperationClass else: @@ -442,17 +267,8 @@ def certificates(self): * 2016-03-01: :class:`CertificatesOperations` * 2018-02-01: :class:`CertificatesOperations` - * 2018-11-01: :class:`CertificatesOperations` - * 2019-08-01: :class:`CertificatesOperations` - * 2020-06-01: :class:`CertificatesOperations` - * 2020-09-01: :class:`CertificatesOperations` - * 2020-12-01: :class:`CertificatesOperations` - * 2021-01-01: :class:`CertificatesOperations` - * 2021-01-15: :class:`CertificatesOperations` - * 2021-03-01: :class:`CertificatesOperations` * 2022-09-01: :class:`CertificatesOperations` * 2023-01-01: :class:`CertificatesOperations` - * 2023-12-01: :class:`CertificatesOperations` * 2024-04-01: :class:`CertificatesOperations` """ api_version = self._get_api_version('certificates') @@ -460,28 +276,10 @@ def certificates(self): from .v2016_03_01.operations import CertificatesOperations as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import CertificatesOperations as OperationClass - elif api_version == '2018-11-01': - from .v2018_11_01.operations import CertificatesOperations as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import CertificatesOperations as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import CertificatesOperations as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import CertificatesOperations as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import CertificatesOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import CertificatesOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import CertificatesOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import CertificatesOperations as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import CertificatesOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import CertificatesOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import CertificatesOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import CertificatesOperations as OperationClass else: @@ -493,21 +291,15 @@ def certificates(self): def container_apps(self): """Instance depends on the API version: - * 2021-03-01: :class:`ContainerAppsOperations` * 2022-09-01: :class:`ContainerAppsOperations` * 2023-01-01: :class:`ContainerAppsOperations` - * 2023-12-01: :class:`ContainerAppsOperations` * 2024-04-01: :class:`ContainerAppsOperations` """ api_version = self._get_api_version('container_apps') - if api_version == '2021-03-01': - from .v2021_03_01.operations import ContainerAppsOperations as OperationClass - elif api_version == '2022-09-01': + if api_version == '2022-09-01': from .v2022_09_01.operations import ContainerAppsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import ContainerAppsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import ContainerAppsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import ContainerAppsOperations as OperationClass else: @@ -519,21 +311,15 @@ def container_apps(self): def container_apps_revisions(self): """Instance depends on the API version: - * 2021-03-01: :class:`ContainerAppsRevisionsOperations` * 2022-09-01: :class:`ContainerAppsRevisionsOperations` * 2023-01-01: :class:`ContainerAppsRevisionsOperations` - * 2023-12-01: :class:`ContainerAppsRevisionsOperations` * 2024-04-01: :class:`ContainerAppsRevisionsOperations` """ api_version = self._get_api_version('container_apps_revisions') - if api_version == '2021-03-01': - from .v2021_03_01.operations import ContainerAppsRevisionsOperations as OperationClass - elif api_version == '2022-09-01': + if api_version == '2022-09-01': from .v2022_09_01.operations import ContainerAppsRevisionsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import ContainerAppsRevisionsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import ContainerAppsRevisionsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import ContainerAppsRevisionsOperations as OperationClass else: @@ -547,16 +333,8 @@ def deleted_web_apps(self): * 2016-03-01: :class:`DeletedWebAppsOperations` * 2018-02-01: :class:`DeletedWebAppsOperations` - * 2019-08-01: :class:`DeletedWebAppsOperations` - * 2020-06-01: :class:`DeletedWebAppsOperations` - * 2020-09-01: :class:`DeletedWebAppsOperations` - * 2020-12-01: :class:`DeletedWebAppsOperations` - * 2021-01-01: :class:`DeletedWebAppsOperations` - * 2021-01-15: :class:`DeletedWebAppsOperations` - * 2021-03-01: :class:`DeletedWebAppsOperations` * 2022-09-01: :class:`DeletedWebAppsOperations` * 2023-01-01: :class:`DeletedWebAppsOperations` - * 2023-12-01: :class:`DeletedWebAppsOperations` * 2024-04-01: :class:`DeletedWebAppsOperations` """ api_version = self._get_api_version('deleted_web_apps') @@ -564,26 +342,10 @@ def deleted_web_apps(self): from .v2016_03_01.operations import DeletedWebAppsOperations as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import DeletedWebAppsOperations as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import DeletedWebAppsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import DeletedWebAppsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import DeletedWebAppsOperations as OperationClass else: @@ -597,16 +359,8 @@ def diagnostics(self): * 2016-03-01: :class:`DiagnosticsOperations` * 2018-02-01: :class:`DiagnosticsOperations` - * 2019-08-01: :class:`DiagnosticsOperations` - * 2020-06-01: :class:`DiagnosticsOperations` - * 2020-09-01: :class:`DiagnosticsOperations` - * 2020-12-01: :class:`DiagnosticsOperations` - * 2021-01-01: :class:`DiagnosticsOperations` - * 2021-01-15: :class:`DiagnosticsOperations` - * 2021-03-01: :class:`DiagnosticsOperations` * 2022-09-01: :class:`DiagnosticsOperations` * 2023-01-01: :class:`DiagnosticsOperations` - * 2023-12-01: :class:`DiagnosticsOperations` * 2024-04-01: :class:`DiagnosticsOperations` """ api_version = self._get_api_version('diagnostics') @@ -614,26 +368,10 @@ def diagnostics(self): from .v2016_03_01.operations import DiagnosticsOperations as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import DiagnosticsOperations as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import DiagnosticsOperations as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import DiagnosticsOperations as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import DiagnosticsOperations as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import DiagnosticsOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import DiagnosticsOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import DiagnosticsOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import DiagnosticsOperations as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import DiagnosticsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import DiagnosticsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import DiagnosticsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import DiagnosticsOperations as OperationClass else: @@ -645,45 +383,18 @@ def diagnostics(self): def domain_registration_provider(self): """Instance depends on the API version: - * 2015-04-01: :class:`DomainRegistrationProviderOperations` * 2018-02-01: :class:`DomainRegistrationProviderOperations` - * 2019-08-01: :class:`DomainRegistrationProviderOperations` - * 2020-06-01: :class:`DomainRegistrationProviderOperations` - * 2020-09-01: :class:`DomainRegistrationProviderOperations` - * 2020-12-01: :class:`DomainRegistrationProviderOperations` - * 2021-01-01: :class:`DomainRegistrationProviderOperations` - * 2021-01-15: :class:`DomainRegistrationProviderOperations` - * 2021-03-01: :class:`DomainRegistrationProviderOperations` * 2022-09-01: :class:`DomainRegistrationProviderOperations` * 2023-01-01: :class:`DomainRegistrationProviderOperations` - * 2023-12-01: :class:`DomainRegistrationProviderOperations` * 2024-04-01: :class:`DomainRegistrationProviderOperations` """ api_version = self._get_api_version('domain_registration_provider') - if api_version == '2015-04-01': - from .v2015_04_01.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from .v2018_02_01.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import DomainRegistrationProviderOperations as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import DomainRegistrationProviderOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import DomainRegistrationProviderOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import DomainRegistrationProviderOperations as OperationClass else: @@ -695,45 +406,18 @@ def domain_registration_provider(self): def domains(self): """Instance depends on the API version: - * 2015-04-01: :class:`DomainsOperations` * 2018-02-01: :class:`DomainsOperations` - * 2019-08-01: :class:`DomainsOperations` - * 2020-06-01: :class:`DomainsOperations` - * 2020-09-01: :class:`DomainsOperations` - * 2020-12-01: :class:`DomainsOperations` - * 2021-01-01: :class:`DomainsOperations` - * 2021-01-15: :class:`DomainsOperations` - * 2021-03-01: :class:`DomainsOperations` * 2022-09-01: :class:`DomainsOperations` * 2023-01-01: :class:`DomainsOperations` - * 2023-12-01: :class:`DomainsOperations` * 2024-04-01: :class:`DomainsOperations` """ api_version = self._get_api_version('domains') - if api_version == '2015-04-01': - from .v2015_04_01.operations import DomainsOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from .v2018_02_01.operations import DomainsOperations as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import DomainsOperations as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import DomainsOperations as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import DomainsOperations as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import DomainsOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import DomainsOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import DomainsOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import DomainsOperations as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import DomainsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import DomainsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import DomainsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import DomainsOperations as OperationClass else: @@ -746,14 +430,11 @@ def get_usages_in_location(self): """Instance depends on the API version: * 2023-01-01: :class:`GetUsagesInLocationOperations` - * 2023-12-01: :class:`GetUsagesInLocationOperations` * 2024-04-01: :class:`GetUsagesInLocationOperations` """ api_version = self._get_api_version('get_usages_in_location') if api_version == '2023-01-01': from .v2023_01_01.operations import GetUsagesInLocationOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import GetUsagesInLocationOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import GetUsagesInLocationOperations as OperationClass else: @@ -765,30 +446,15 @@ def get_usages_in_location(self): def global_operations(self): """Instance depends on the API version: - * 2020-12-01: :class:`GlobalOperations` - * 2021-01-01: :class:`GlobalOperations` - * 2021-01-15: :class:`GlobalOperations` - * 2021-03-01: :class:`GlobalOperations` * 2022-09-01: :class:`GlobalOperations` * 2023-01-01: :class:`GlobalOperations` - * 2023-12-01: :class:`GlobalOperations` * 2024-04-01: :class:`GlobalOperations` """ api_version = self._get_api_version('global_operations') - if api_version == '2020-12-01': - from .v2020_12_01.operations import GlobalOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import GlobalOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import GlobalOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import GlobalOperations as OperationClass - elif api_version == '2022-09-01': + if api_version == '2022-09-01': from .v2022_09_01.operations import GlobalOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import GlobalOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import GlobalOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import GlobalOperations as OperationClass else: @@ -800,27 +466,15 @@ def global_operations(self): def kube_environments(self): """Instance depends on the API version: - * 2021-01-01: :class:`KubeEnvironmentsOperations` - * 2021-01-15: :class:`KubeEnvironmentsOperations` - * 2021-03-01: :class:`KubeEnvironmentsOperations` * 2022-09-01: :class:`KubeEnvironmentsOperations` * 2023-01-01: :class:`KubeEnvironmentsOperations` - * 2023-12-01: :class:`KubeEnvironmentsOperations` * 2024-04-01: :class:`KubeEnvironmentsOperations` """ api_version = self._get_api_version('kube_environments') - if api_version == '2021-01-01': - from .v2021_01_01.operations import KubeEnvironmentsOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import KubeEnvironmentsOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import KubeEnvironmentsOperations as OperationClass - elif api_version == '2022-09-01': + if api_version == '2022-09-01': from .v2022_09_01.operations import KubeEnvironmentsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import KubeEnvironmentsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import KubeEnvironmentsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import KubeEnvironmentsOperations as OperationClass else: @@ -834,16 +488,8 @@ def provider(self): * 2016-03-01: :class:`ProviderOperations` * 2018-02-01: :class:`ProviderOperations` - * 2019-08-01: :class:`ProviderOperations` - * 2020-06-01: :class:`ProviderOperations` - * 2020-09-01: :class:`ProviderOperations` - * 2020-12-01: :class:`ProviderOperations` - * 2021-01-01: :class:`ProviderOperations` - * 2021-01-15: :class:`ProviderOperations` - * 2021-03-01: :class:`ProviderOperations` * 2022-09-01: :class:`ProviderOperations` * 2023-01-01: :class:`ProviderOperations` - * 2023-12-01: :class:`ProviderOperations` * 2024-04-01: :class:`ProviderOperations` """ api_version = self._get_api_version('provider') @@ -851,26 +497,10 @@ def provider(self): from .v2016_03_01.operations import ProviderOperations as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import ProviderOperations as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import ProviderOperations as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import ProviderOperations as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import ProviderOperations as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import ProviderOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import ProviderOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import ProviderOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import ProviderOperations as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import ProviderOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import ProviderOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import ProviderOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import ProviderOperations as OperationClass else: @@ -884,16 +514,8 @@ def recommendations(self): * 2016-03-01: :class:`RecommendationsOperations` * 2018-02-01: :class:`RecommendationsOperations` - * 2019-08-01: :class:`RecommendationsOperations` - * 2020-06-01: :class:`RecommendationsOperations` - * 2020-09-01: :class:`RecommendationsOperations` - * 2020-12-01: :class:`RecommendationsOperations` - * 2021-01-01: :class:`RecommendationsOperations` - * 2021-01-15: :class:`RecommendationsOperations` - * 2021-03-01: :class:`RecommendationsOperations` * 2022-09-01: :class:`RecommendationsOperations` * 2023-01-01: :class:`RecommendationsOperations` - * 2023-12-01: :class:`RecommendationsOperations` * 2024-04-01: :class:`RecommendationsOperations` """ api_version = self._get_api_version('recommendations') @@ -901,26 +523,10 @@ def recommendations(self): from .v2016_03_01.operations import RecommendationsOperations as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import RecommendationsOperations as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import RecommendationsOperations as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import RecommendationsOperations as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import RecommendationsOperations as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import RecommendationsOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import RecommendationsOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import RecommendationsOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import RecommendationsOperations as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import RecommendationsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import RecommendationsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import RecommendationsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import RecommendationsOperations as OperationClass else: @@ -934,16 +540,8 @@ def resource_health_metadata(self): * 2016-03-01: :class:`ResourceHealthMetadataOperations` * 2018-02-01: :class:`ResourceHealthMetadataOperations` - * 2019-08-01: :class:`ResourceHealthMetadataOperations` - * 2020-06-01: :class:`ResourceHealthMetadataOperations` - * 2020-09-01: :class:`ResourceHealthMetadataOperations` - * 2020-12-01: :class:`ResourceHealthMetadataOperations` - * 2021-01-01: :class:`ResourceHealthMetadataOperations` - * 2021-01-15: :class:`ResourceHealthMetadataOperations` - * 2021-03-01: :class:`ResourceHealthMetadataOperations` * 2022-09-01: :class:`ResourceHealthMetadataOperations` * 2023-01-01: :class:`ResourceHealthMetadataOperations` - * 2023-12-01: :class:`ResourceHealthMetadataOperations` * 2024-04-01: :class:`ResourceHealthMetadataOperations` """ api_version = self._get_api_version('resource_health_metadata') @@ -951,26 +549,10 @@ def resource_health_metadata(self): from .v2016_03_01.operations import ResourceHealthMetadataOperations as OperationClass elif api_version == '2018-02-01': from .v2018_02_01.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import ResourceHealthMetadataOperations as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import ResourceHealthMetadataOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import ResourceHealthMetadataOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import ResourceHealthMetadataOperations as OperationClass else: @@ -982,39 +564,15 @@ def resource_health_metadata(self): def static_sites(self): """Instance depends on the API version: - * 2019-08-01: :class:`StaticSitesOperations` - * 2020-06-01: :class:`StaticSitesOperations` - * 2020-09-01: :class:`StaticSitesOperations` - * 2020-12-01: :class:`StaticSitesOperations` - * 2021-01-01: :class:`StaticSitesOperations` - * 2021-01-15: :class:`StaticSitesOperations` - * 2021-03-01: :class:`StaticSitesOperations` * 2022-09-01: :class:`StaticSitesOperations` * 2023-01-01: :class:`StaticSitesOperations` - * 2023-12-01: :class:`StaticSitesOperations` * 2024-04-01: :class:`StaticSitesOperations` """ api_version = self._get_api_version('static_sites') - if api_version == '2019-08-01': - from .v2019_08_01.operations import StaticSitesOperations as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import StaticSitesOperations as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import StaticSitesOperations as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import StaticSitesOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import StaticSitesOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import StaticSitesOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import StaticSitesOperations as OperationClass - elif api_version == '2022-09-01': + if api_version == '2022-09-01': from .v2022_09_01.operations import StaticSitesOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import StaticSitesOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import StaticSitesOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import StaticSitesOperations as OperationClass else: @@ -1026,45 +584,18 @@ def static_sites(self): def top_level_domains(self): """Instance depends on the API version: - * 2015-04-01: :class:`TopLevelDomainsOperations` * 2018-02-01: :class:`TopLevelDomainsOperations` - * 2019-08-01: :class:`TopLevelDomainsOperations` - * 2020-06-01: :class:`TopLevelDomainsOperations` - * 2020-09-01: :class:`TopLevelDomainsOperations` - * 2020-12-01: :class:`TopLevelDomainsOperations` - * 2021-01-01: :class:`TopLevelDomainsOperations` - * 2021-01-15: :class:`TopLevelDomainsOperations` - * 2021-03-01: :class:`TopLevelDomainsOperations` * 2022-09-01: :class:`TopLevelDomainsOperations` * 2023-01-01: :class:`TopLevelDomainsOperations` - * 2023-12-01: :class:`TopLevelDomainsOperations` * 2024-04-01: :class:`TopLevelDomainsOperations` """ api_version = self._get_api_version('top_level_domains') - if api_version == '2015-04-01': - from .v2015_04_01.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from .v2018_02_01.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import TopLevelDomainsOperations as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import TopLevelDomainsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import TopLevelDomainsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import TopLevelDomainsOperations as OperationClass else: @@ -1076,45 +607,18 @@ def top_level_domains(self): def web_apps(self): """Instance depends on the API version: - * 2016-08-01: :class:`WebAppsOperations` * 2018-02-01: :class:`WebAppsOperations` - * 2019-08-01: :class:`WebAppsOperations` - * 2020-06-01: :class:`WebAppsOperations` - * 2020-09-01: :class:`WebAppsOperations` - * 2020-12-01: :class:`WebAppsOperations` - * 2021-01-01: :class:`WebAppsOperations` - * 2021-01-15: :class:`WebAppsOperations` - * 2021-03-01: :class:`WebAppsOperations` * 2022-09-01: :class:`WebAppsOperations` * 2023-01-01: :class:`WebAppsOperations` - * 2023-12-01: :class:`WebAppsOperations` * 2024-04-01: :class:`WebAppsOperations` """ api_version = self._get_api_version('web_apps') - if api_version == '2016-08-01': - from .v2016_08_01.operations import WebAppsOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from .v2018_02_01.operations import WebAppsOperations as OperationClass - elif api_version == '2019-08-01': - from .v2019_08_01.operations import WebAppsOperations as OperationClass - elif api_version == '2020-06-01': - from .v2020_06_01.operations import WebAppsOperations as OperationClass - elif api_version == '2020-09-01': - from .v2020_09_01.operations import WebAppsOperations as OperationClass - elif api_version == '2020-12-01': - from .v2020_12_01.operations import WebAppsOperations as OperationClass - elif api_version == '2021-01-01': - from .v2021_01_01.operations import WebAppsOperations as OperationClass - elif api_version == '2021-01-15': - from .v2021_01_15.operations import WebAppsOperations as OperationClass - elif api_version == '2021-03-01': - from .v2021_03_01.operations import WebAppsOperations as OperationClass elif api_version == '2022-09-01': from .v2022_09_01.operations import WebAppsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WebAppsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WebAppsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WebAppsOperations as OperationClass else: @@ -1128,7 +632,6 @@ def workflow_run_action_repetitions(self): * 2022-09-01: :class:`WorkflowRunActionRepetitionsOperations` * 2023-01-01: :class:`WorkflowRunActionRepetitionsOperations` - * 2023-12-01: :class:`WorkflowRunActionRepetitionsOperations` * 2024-04-01: :class:`WorkflowRunActionRepetitionsOperations` """ api_version = self._get_api_version('workflow_run_action_repetitions') @@ -1136,8 +639,6 @@ def workflow_run_action_repetitions(self): from .v2022_09_01.operations import WorkflowRunActionRepetitionsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WorkflowRunActionRepetitionsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WorkflowRunActionRepetitionsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WorkflowRunActionRepetitionsOperations as OperationClass else: @@ -1151,7 +652,6 @@ def workflow_run_action_repetitions_request_histories(self): * 2022-09-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations` * 2023-01-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations` - * 2023-12-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations` * 2024-04-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations` """ api_version = self._get_api_version('workflow_run_action_repetitions_request_histories') @@ -1159,8 +659,6 @@ def workflow_run_action_repetitions_request_histories(self): from .v2022_09_01.operations import WorkflowRunActionRepetitionsRequestHistoriesOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WorkflowRunActionRepetitionsRequestHistoriesOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WorkflowRunActionRepetitionsRequestHistoriesOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WorkflowRunActionRepetitionsRequestHistoriesOperations as OperationClass else: @@ -1174,7 +672,6 @@ def workflow_run_action_scope_repetitions(self): * 2022-09-01: :class:`WorkflowRunActionScopeRepetitionsOperations` * 2023-01-01: :class:`WorkflowRunActionScopeRepetitionsOperations` - * 2023-12-01: :class:`WorkflowRunActionScopeRepetitionsOperations` * 2024-04-01: :class:`WorkflowRunActionScopeRepetitionsOperations` """ api_version = self._get_api_version('workflow_run_action_scope_repetitions') @@ -1182,8 +679,6 @@ def workflow_run_action_scope_repetitions(self): from .v2022_09_01.operations import WorkflowRunActionScopeRepetitionsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WorkflowRunActionScopeRepetitionsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WorkflowRunActionScopeRepetitionsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WorkflowRunActionScopeRepetitionsOperations as OperationClass else: @@ -1197,7 +692,6 @@ def workflow_run_actions(self): * 2022-09-01: :class:`WorkflowRunActionsOperations` * 2023-01-01: :class:`WorkflowRunActionsOperations` - * 2023-12-01: :class:`WorkflowRunActionsOperations` * 2024-04-01: :class:`WorkflowRunActionsOperations` """ api_version = self._get_api_version('workflow_run_actions') @@ -1205,8 +699,6 @@ def workflow_run_actions(self): from .v2022_09_01.operations import WorkflowRunActionsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WorkflowRunActionsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WorkflowRunActionsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WorkflowRunActionsOperations as OperationClass else: @@ -1220,7 +712,6 @@ def workflow_runs(self): * 2022-09-01: :class:`WorkflowRunsOperations` * 2023-01-01: :class:`WorkflowRunsOperations` - * 2023-12-01: :class:`WorkflowRunsOperations` * 2024-04-01: :class:`WorkflowRunsOperations` """ api_version = self._get_api_version('workflow_runs') @@ -1228,8 +719,6 @@ def workflow_runs(self): from .v2022_09_01.operations import WorkflowRunsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WorkflowRunsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WorkflowRunsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WorkflowRunsOperations as OperationClass else: @@ -1243,7 +732,6 @@ def workflow_trigger_histories(self): * 2022-09-01: :class:`WorkflowTriggerHistoriesOperations` * 2023-01-01: :class:`WorkflowTriggerHistoriesOperations` - * 2023-12-01: :class:`WorkflowTriggerHistoriesOperations` * 2024-04-01: :class:`WorkflowTriggerHistoriesOperations` """ api_version = self._get_api_version('workflow_trigger_histories') @@ -1251,8 +739,6 @@ def workflow_trigger_histories(self): from .v2022_09_01.operations import WorkflowTriggerHistoriesOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WorkflowTriggerHistoriesOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WorkflowTriggerHistoriesOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WorkflowTriggerHistoriesOperations as OperationClass else: @@ -1266,7 +752,6 @@ def workflow_triggers(self): * 2022-09-01: :class:`WorkflowTriggersOperations` * 2023-01-01: :class:`WorkflowTriggersOperations` - * 2023-12-01: :class:`WorkflowTriggersOperations` * 2024-04-01: :class:`WorkflowTriggersOperations` """ api_version = self._get_api_version('workflow_triggers') @@ -1274,8 +759,6 @@ def workflow_triggers(self): from .v2022_09_01.operations import WorkflowTriggersOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WorkflowTriggersOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WorkflowTriggersOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WorkflowTriggersOperations as OperationClass else: @@ -1289,7 +772,6 @@ def workflow_versions(self): * 2022-09-01: :class:`WorkflowVersionsOperations` * 2023-01-01: :class:`WorkflowVersionsOperations` - * 2023-12-01: :class:`WorkflowVersionsOperations` * 2024-04-01: :class:`WorkflowVersionsOperations` """ api_version = self._get_api_version('workflow_versions') @@ -1297,8 +779,6 @@ def workflow_versions(self): from .v2022_09_01.operations import WorkflowVersionsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WorkflowVersionsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WorkflowVersionsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WorkflowVersionsOperations as OperationClass else: @@ -1312,7 +792,6 @@ def workflows(self): * 2022-09-01: :class:`WorkflowsOperations` * 2023-01-01: :class:`WorkflowsOperations` - * 2023-12-01: :class:`WorkflowsOperations` * 2024-04-01: :class:`WorkflowsOperations` """ api_version = self._get_api_version('workflows') @@ -1320,8 +799,6 @@ def workflows(self): from .v2022_09_01.operations import WorkflowsOperations as OperationClass elif api_version == '2023-01-01': from .v2023_01_01.operations import WorkflowsOperations as OperationClass - elif api_version == '2023-12-01': - from .v2023_12_01.operations import WorkflowsOperations as OperationClass elif api_version == '2024-04-01': from .v2024_04_01.operations import WorkflowsOperations as OperationClass else: diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_operations_mixin.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_operations_mixin.py index b6aea57949f1..f139e66fb6d1 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_operations_mixin.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_operations_mixin.py @@ -61,26 +61,10 @@ async def check_name_availability( from ..v2016_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -111,26 +95,10 @@ async def get_publishing_user( from ..v2016_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -164,26 +132,10 @@ async def get_source_control( from ..v2016_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -214,26 +166,10 @@ async def get_subscription_deployment_locations( from ..v2016_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -262,8 +198,6 @@ def list_ase_regions( api_version = self._get_api_version('list_ase_regions') if api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -299,26 +233,10 @@ def list_billing_meters( api_version = self._get_api_version('list_billing_meters') if api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -349,14 +267,10 @@ def list_custom_host_name_sites( :raises ~azure.core.exceptions.HttpResponseError: """ api_version = self._get_api_version('list_custom_host_name_sites') - if api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2022-09-01': + if api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -405,26 +319,10 @@ def list_geo_regions( from ..v2016_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -456,26 +354,10 @@ def list_premier_add_on_offers( from ..v2016_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -510,26 +392,10 @@ def list_site_identifiers_assigned_to_host_name( # pylint: disable=name-too-lon from ..v2016_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -560,26 +426,10 @@ async def list_skus( from ..v2016_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -611,26 +461,10 @@ def list_source_controls( from ..v2016_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -669,26 +503,10 @@ async def move( from ..v2016_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -723,26 +541,10 @@ async def update_publishing_user( from ..v2016_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -780,26 +582,10 @@ async def update_source_control( from ..v2016_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -837,26 +623,10 @@ async def validate( from ..v2016_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -929,26 +699,10 @@ async def validate_move( from ..v2016_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: @@ -985,26 +739,10 @@ async def verify_hosting_environment_vnet( from ..v2016_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass else: diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_web_site_management_client.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_web_site_management_client.py index 302cd90e5175..7790d2c7475b 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_web_site_management_client.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_web_site_management_client.py @@ -98,7 +98,7 @@ def __init__( policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None, self._config.http_logging_policy, ] - self._client = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) + self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, policies=_policies, **kwargs) super(WebSiteManagementClient, self).__init__( api_version=api_version, profile=profile @@ -112,76 +112,24 @@ def _models_dict(cls, api_version): def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: - * 2015-04-01: :mod:`v2015_04_01.models` - * 2015-08-01: :mod:`v2015_08_01.models` * 2016-03-01: :mod:`v2016_03_01.models` - * 2016-08-01: :mod:`v2016_08_01.models` - * 2016-09-01: :mod:`v2016_09_01.models` * 2018-02-01: :mod:`v2018_02_01.models` - * 2018-11-01: :mod:`v2018_11_01.models` - * 2019-08-01: :mod:`v2019_08_01.models` - * 2020-06-01: :mod:`v2020_06_01.models` - * 2020-09-01: :mod:`v2020_09_01.models` - * 2020-12-01: :mod:`v2020_12_01.models` - * 2021-01-01: :mod:`v2021_01_01.models` - * 2021-01-15: :mod:`v2021_01_15.models` - * 2021-03-01: :mod:`v2021_03_01.models` * 2022-09-01: :mod:`v2022_09_01.models` * 2023-01-01: :mod:`v2023_01_01.models` - * 2023-12-01: :mod:`v2023_12_01.models` * 2024-04-01: :mod:`v2024_04_01.models` """ - if api_version == '2015-04-01': - from ..v2015_04_01 import models - return models - elif api_version == '2015-08-01': - from ..v2015_08_01 import models - return models - elif api_version == '2016-03-01': + if api_version == '2016-03-01': from ..v2016_03_01 import models return models - elif api_version == '2016-08-01': - from ..v2016_08_01 import models - return models - elif api_version == '2016-09-01': - from ..v2016_09_01 import models - return models elif api_version == '2018-02-01': from ..v2018_02_01 import models return models - elif api_version == '2018-11-01': - from ..v2018_11_01 import models - return models - elif api_version == '2019-08-01': - from ..v2019_08_01 import models - return models - elif api_version == '2020-06-01': - from ..v2020_06_01 import models - return models - elif api_version == '2020-09-01': - from ..v2020_09_01 import models - return models - elif api_version == '2020-12-01': - from ..v2020_12_01 import models - return models - elif api_version == '2021-01-01': - from ..v2021_01_01 import models - return models - elif api_version == '2021-01-15': - from ..v2021_01_15 import models - return models - elif api_version == '2021-03-01': - from ..v2021_03_01 import models - return models elif api_version == '2022-09-01': from ..v2022_09_01 import models return models elif api_version == '2023-01-01': from ..v2023_01_01 import models return models - elif api_version == '2023-12-01': - from ..v2023_12_01 import models - return models elif api_version == '2024-04-01': from ..v2024_04_01 import models return models @@ -191,45 +139,18 @@ def models(cls, api_version=DEFAULT_API_VERSION): def app_service_certificate_orders(self): """Instance depends on the API version: - * 2015-08-01: :class:`AppServiceCertificateOrdersOperations` * 2018-02-01: :class:`AppServiceCertificateOrdersOperations` - * 2019-08-01: :class:`AppServiceCertificateOrdersOperations` - * 2020-06-01: :class:`AppServiceCertificateOrdersOperations` - * 2020-09-01: :class:`AppServiceCertificateOrdersOperations` - * 2020-12-01: :class:`AppServiceCertificateOrdersOperations` - * 2021-01-01: :class:`AppServiceCertificateOrdersOperations` - * 2021-01-15: :class:`AppServiceCertificateOrdersOperations` - * 2021-03-01: :class:`AppServiceCertificateOrdersOperations` * 2022-09-01: :class:`AppServiceCertificateOrdersOperations` * 2023-01-01: :class:`AppServiceCertificateOrdersOperations` - * 2023-12-01: :class:`AppServiceCertificateOrdersOperations` * 2024-04-01: :class:`AppServiceCertificateOrdersOperations` """ api_version = self._get_api_version('app_service_certificate_orders') - if api_version == '2015-08-01': - from ..v2015_08_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from ..v2018_02_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import AppServiceCertificateOrdersOperations as OperationClass else: @@ -241,45 +162,18 @@ def app_service_certificate_orders(self): def app_service_environments(self): """Instance depends on the API version: - * 2016-09-01: :class:`AppServiceEnvironmentsOperations` * 2018-02-01: :class:`AppServiceEnvironmentsOperations` - * 2019-08-01: :class:`AppServiceEnvironmentsOperations` - * 2020-06-01: :class:`AppServiceEnvironmentsOperations` - * 2020-09-01: :class:`AppServiceEnvironmentsOperations` - * 2020-12-01: :class:`AppServiceEnvironmentsOperations` - * 2021-01-01: :class:`AppServiceEnvironmentsOperations` - * 2021-01-15: :class:`AppServiceEnvironmentsOperations` - * 2021-03-01: :class:`AppServiceEnvironmentsOperations` * 2022-09-01: :class:`AppServiceEnvironmentsOperations` * 2023-01-01: :class:`AppServiceEnvironmentsOperations` - * 2023-12-01: :class:`AppServiceEnvironmentsOperations` * 2024-04-01: :class:`AppServiceEnvironmentsOperations` """ api_version = self._get_api_version('app_service_environments') - if api_version == '2016-09-01': - from ..v2016_09_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from ..v2018_02_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import AppServiceEnvironmentsOperations as OperationClass else: @@ -291,45 +185,18 @@ def app_service_environments(self): def app_service_plans(self): """Instance depends on the API version: - * 2016-09-01: :class:`AppServicePlansOperations` * 2018-02-01: :class:`AppServicePlansOperations` - * 2019-08-01: :class:`AppServicePlansOperations` - * 2020-06-01: :class:`AppServicePlansOperations` - * 2020-09-01: :class:`AppServicePlansOperations` - * 2020-12-01: :class:`AppServicePlansOperations` - * 2021-01-01: :class:`AppServicePlansOperations` - * 2021-01-15: :class:`AppServicePlansOperations` - * 2021-03-01: :class:`AppServicePlansOperations` * 2022-09-01: :class:`AppServicePlansOperations` * 2023-01-01: :class:`AppServicePlansOperations` - * 2023-12-01: :class:`AppServicePlansOperations` * 2024-04-01: :class:`AppServicePlansOperations` """ api_version = self._get_api_version('app_service_plans') - if api_version == '2016-09-01': - from ..v2016_09_01.aio.operations import AppServicePlansOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from ..v2018_02_01.aio.operations import AppServicePlansOperations as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import AppServicePlansOperations as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import AppServicePlansOperations as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import AppServicePlansOperations as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import AppServicePlansOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import AppServicePlansOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import AppServicePlansOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import AppServicePlansOperations as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import AppServicePlansOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import AppServicePlansOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import AppServicePlansOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import AppServicePlansOperations as OperationClass else: @@ -355,30 +222,15 @@ def billing_meters(self): def certificate_orders_diagnostics(self): """Instance depends on the API version: - * 2020-12-01: :class:`CertificateOrdersDiagnosticsOperations` - * 2021-01-01: :class:`CertificateOrdersDiagnosticsOperations` - * 2021-01-15: :class:`CertificateOrdersDiagnosticsOperations` - * 2021-03-01: :class:`CertificateOrdersDiagnosticsOperations` * 2022-09-01: :class:`CertificateOrdersDiagnosticsOperations` * 2023-01-01: :class:`CertificateOrdersDiagnosticsOperations` - * 2023-12-01: :class:`CertificateOrdersDiagnosticsOperations` * 2024-04-01: :class:`CertificateOrdersDiagnosticsOperations` """ api_version = self._get_api_version('certificate_orders_diagnostics') - if api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import CertificateOrdersDiagnosticsOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import CertificateOrdersDiagnosticsOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import CertificateOrdersDiagnosticsOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import CertificateOrdersDiagnosticsOperations as OperationClass - elif api_version == '2022-09-01': + if api_version == '2022-09-01': from ..v2022_09_01.aio.operations import CertificateOrdersDiagnosticsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import CertificateOrdersDiagnosticsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import CertificateOrdersDiagnosticsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import CertificateOrdersDiagnosticsOperations as OperationClass else: @@ -390,45 +242,18 @@ def certificate_orders_diagnostics(self): def certificate_registration_provider(self): """Instance depends on the API version: - * 2015-08-01: :class:`CertificateRegistrationProviderOperations` * 2018-02-01: :class:`CertificateRegistrationProviderOperations` - * 2019-08-01: :class:`CertificateRegistrationProviderOperations` - * 2020-06-01: :class:`CertificateRegistrationProviderOperations` - * 2020-09-01: :class:`CertificateRegistrationProviderOperations` - * 2020-12-01: :class:`CertificateRegistrationProviderOperations` - * 2021-01-01: :class:`CertificateRegistrationProviderOperations` - * 2021-01-15: :class:`CertificateRegistrationProviderOperations` - * 2021-03-01: :class:`CertificateRegistrationProviderOperations` * 2022-09-01: :class:`CertificateRegistrationProviderOperations` * 2023-01-01: :class:`CertificateRegistrationProviderOperations` - * 2023-12-01: :class:`CertificateRegistrationProviderOperations` * 2024-04-01: :class:`CertificateRegistrationProviderOperations` """ api_version = self._get_api_version('certificate_registration_provider') - if api_version == '2015-08-01': - from ..v2015_08_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from ..v2018_02_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import CertificateRegistrationProviderOperations as OperationClass else: @@ -442,17 +267,8 @@ def certificates(self): * 2016-03-01: :class:`CertificatesOperations` * 2018-02-01: :class:`CertificatesOperations` - * 2018-11-01: :class:`CertificatesOperations` - * 2019-08-01: :class:`CertificatesOperations` - * 2020-06-01: :class:`CertificatesOperations` - * 2020-09-01: :class:`CertificatesOperations` - * 2020-12-01: :class:`CertificatesOperations` - * 2021-01-01: :class:`CertificatesOperations` - * 2021-01-15: :class:`CertificatesOperations` - * 2021-03-01: :class:`CertificatesOperations` * 2022-09-01: :class:`CertificatesOperations` * 2023-01-01: :class:`CertificatesOperations` - * 2023-12-01: :class:`CertificatesOperations` * 2024-04-01: :class:`CertificatesOperations` """ api_version = self._get_api_version('certificates') @@ -460,28 +276,10 @@ def certificates(self): from ..v2016_03_01.aio.operations import CertificatesOperations as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import CertificatesOperations as OperationClass - elif api_version == '2018-11-01': - from ..v2018_11_01.aio.operations import CertificatesOperations as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import CertificatesOperations as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import CertificatesOperations as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import CertificatesOperations as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import CertificatesOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import CertificatesOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import CertificatesOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import CertificatesOperations as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import CertificatesOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import CertificatesOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import CertificatesOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import CertificatesOperations as OperationClass else: @@ -493,21 +291,15 @@ def certificates(self): def container_apps(self): """Instance depends on the API version: - * 2021-03-01: :class:`ContainerAppsOperations` * 2022-09-01: :class:`ContainerAppsOperations` * 2023-01-01: :class:`ContainerAppsOperations` - * 2023-12-01: :class:`ContainerAppsOperations` * 2024-04-01: :class:`ContainerAppsOperations` """ api_version = self._get_api_version('container_apps') - if api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import ContainerAppsOperations as OperationClass - elif api_version == '2022-09-01': + if api_version == '2022-09-01': from ..v2022_09_01.aio.operations import ContainerAppsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import ContainerAppsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import ContainerAppsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import ContainerAppsOperations as OperationClass else: @@ -519,21 +311,15 @@ def container_apps(self): def container_apps_revisions(self): """Instance depends on the API version: - * 2021-03-01: :class:`ContainerAppsRevisionsOperations` * 2022-09-01: :class:`ContainerAppsRevisionsOperations` * 2023-01-01: :class:`ContainerAppsRevisionsOperations` - * 2023-12-01: :class:`ContainerAppsRevisionsOperations` * 2024-04-01: :class:`ContainerAppsRevisionsOperations` """ api_version = self._get_api_version('container_apps_revisions') - if api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import ContainerAppsRevisionsOperations as OperationClass - elif api_version == '2022-09-01': + if api_version == '2022-09-01': from ..v2022_09_01.aio.operations import ContainerAppsRevisionsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import ContainerAppsRevisionsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import ContainerAppsRevisionsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import ContainerAppsRevisionsOperations as OperationClass else: @@ -547,16 +333,8 @@ def deleted_web_apps(self): * 2016-03-01: :class:`DeletedWebAppsOperations` * 2018-02-01: :class:`DeletedWebAppsOperations` - * 2019-08-01: :class:`DeletedWebAppsOperations` - * 2020-06-01: :class:`DeletedWebAppsOperations` - * 2020-09-01: :class:`DeletedWebAppsOperations` - * 2020-12-01: :class:`DeletedWebAppsOperations` - * 2021-01-01: :class:`DeletedWebAppsOperations` - * 2021-01-15: :class:`DeletedWebAppsOperations` - * 2021-03-01: :class:`DeletedWebAppsOperations` * 2022-09-01: :class:`DeletedWebAppsOperations` * 2023-01-01: :class:`DeletedWebAppsOperations` - * 2023-12-01: :class:`DeletedWebAppsOperations` * 2024-04-01: :class:`DeletedWebAppsOperations` """ api_version = self._get_api_version('deleted_web_apps') @@ -564,26 +342,10 @@ def deleted_web_apps(self): from ..v2016_03_01.aio.operations import DeletedWebAppsOperations as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import DeletedWebAppsOperations as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import DeletedWebAppsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import DeletedWebAppsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import DeletedWebAppsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import DeletedWebAppsOperations as OperationClass else: @@ -597,16 +359,8 @@ def diagnostics(self): * 2016-03-01: :class:`DiagnosticsOperations` * 2018-02-01: :class:`DiagnosticsOperations` - * 2019-08-01: :class:`DiagnosticsOperations` - * 2020-06-01: :class:`DiagnosticsOperations` - * 2020-09-01: :class:`DiagnosticsOperations` - * 2020-12-01: :class:`DiagnosticsOperations` - * 2021-01-01: :class:`DiagnosticsOperations` - * 2021-01-15: :class:`DiagnosticsOperations` - * 2021-03-01: :class:`DiagnosticsOperations` * 2022-09-01: :class:`DiagnosticsOperations` * 2023-01-01: :class:`DiagnosticsOperations` - * 2023-12-01: :class:`DiagnosticsOperations` * 2024-04-01: :class:`DiagnosticsOperations` """ api_version = self._get_api_version('diagnostics') @@ -614,26 +368,10 @@ def diagnostics(self): from ..v2016_03_01.aio.operations import DiagnosticsOperations as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import DiagnosticsOperations as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import DiagnosticsOperations as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import DiagnosticsOperations as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import DiagnosticsOperations as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import DiagnosticsOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import DiagnosticsOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import DiagnosticsOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import DiagnosticsOperations as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import DiagnosticsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import DiagnosticsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import DiagnosticsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import DiagnosticsOperations as OperationClass else: @@ -645,45 +383,18 @@ def diagnostics(self): def domain_registration_provider(self): """Instance depends on the API version: - * 2015-04-01: :class:`DomainRegistrationProviderOperations` * 2018-02-01: :class:`DomainRegistrationProviderOperations` - * 2019-08-01: :class:`DomainRegistrationProviderOperations` - * 2020-06-01: :class:`DomainRegistrationProviderOperations` - * 2020-09-01: :class:`DomainRegistrationProviderOperations` - * 2020-12-01: :class:`DomainRegistrationProviderOperations` - * 2021-01-01: :class:`DomainRegistrationProviderOperations` - * 2021-01-15: :class:`DomainRegistrationProviderOperations` - * 2021-03-01: :class:`DomainRegistrationProviderOperations` * 2022-09-01: :class:`DomainRegistrationProviderOperations` * 2023-01-01: :class:`DomainRegistrationProviderOperations` - * 2023-12-01: :class:`DomainRegistrationProviderOperations` * 2024-04-01: :class:`DomainRegistrationProviderOperations` """ api_version = self._get_api_version('domain_registration_provider') - if api_version == '2015-04-01': - from ..v2015_04_01.aio.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from ..v2018_02_01.aio.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import DomainRegistrationProviderOperations as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import DomainRegistrationProviderOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import DomainRegistrationProviderOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import DomainRegistrationProviderOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import DomainRegistrationProviderOperations as OperationClass else: @@ -695,45 +406,18 @@ def domain_registration_provider(self): def domains(self): """Instance depends on the API version: - * 2015-04-01: :class:`DomainsOperations` * 2018-02-01: :class:`DomainsOperations` - * 2019-08-01: :class:`DomainsOperations` - * 2020-06-01: :class:`DomainsOperations` - * 2020-09-01: :class:`DomainsOperations` - * 2020-12-01: :class:`DomainsOperations` - * 2021-01-01: :class:`DomainsOperations` - * 2021-01-15: :class:`DomainsOperations` - * 2021-03-01: :class:`DomainsOperations` * 2022-09-01: :class:`DomainsOperations` * 2023-01-01: :class:`DomainsOperations` - * 2023-12-01: :class:`DomainsOperations` * 2024-04-01: :class:`DomainsOperations` """ api_version = self._get_api_version('domains') - if api_version == '2015-04-01': - from ..v2015_04_01.aio.operations import DomainsOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from ..v2018_02_01.aio.operations import DomainsOperations as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import DomainsOperations as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import DomainsOperations as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import DomainsOperations as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import DomainsOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import DomainsOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import DomainsOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import DomainsOperations as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import DomainsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import DomainsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import DomainsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import DomainsOperations as OperationClass else: @@ -746,14 +430,11 @@ def get_usages_in_location(self): """Instance depends on the API version: * 2023-01-01: :class:`GetUsagesInLocationOperations` - * 2023-12-01: :class:`GetUsagesInLocationOperations` * 2024-04-01: :class:`GetUsagesInLocationOperations` """ api_version = self._get_api_version('get_usages_in_location') if api_version == '2023-01-01': from ..v2023_01_01.aio.operations import GetUsagesInLocationOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import GetUsagesInLocationOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import GetUsagesInLocationOperations as OperationClass else: @@ -765,30 +446,15 @@ def get_usages_in_location(self): def global_operations(self): """Instance depends on the API version: - * 2020-12-01: :class:`GlobalOperations` - * 2021-01-01: :class:`GlobalOperations` - * 2021-01-15: :class:`GlobalOperations` - * 2021-03-01: :class:`GlobalOperations` * 2022-09-01: :class:`GlobalOperations` * 2023-01-01: :class:`GlobalOperations` - * 2023-12-01: :class:`GlobalOperations` * 2024-04-01: :class:`GlobalOperations` """ api_version = self._get_api_version('global_operations') - if api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import GlobalOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import GlobalOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import GlobalOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import GlobalOperations as OperationClass - elif api_version == '2022-09-01': + if api_version == '2022-09-01': from ..v2022_09_01.aio.operations import GlobalOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import GlobalOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import GlobalOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import GlobalOperations as OperationClass else: @@ -800,27 +466,15 @@ def global_operations(self): def kube_environments(self): """Instance depends on the API version: - * 2021-01-01: :class:`KubeEnvironmentsOperations` - * 2021-01-15: :class:`KubeEnvironmentsOperations` - * 2021-03-01: :class:`KubeEnvironmentsOperations` * 2022-09-01: :class:`KubeEnvironmentsOperations` * 2023-01-01: :class:`KubeEnvironmentsOperations` - * 2023-12-01: :class:`KubeEnvironmentsOperations` * 2024-04-01: :class:`KubeEnvironmentsOperations` """ api_version = self._get_api_version('kube_environments') - if api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import KubeEnvironmentsOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import KubeEnvironmentsOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import KubeEnvironmentsOperations as OperationClass - elif api_version == '2022-09-01': + if api_version == '2022-09-01': from ..v2022_09_01.aio.operations import KubeEnvironmentsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import KubeEnvironmentsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import KubeEnvironmentsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import KubeEnvironmentsOperations as OperationClass else: @@ -834,16 +488,8 @@ def provider(self): * 2016-03-01: :class:`ProviderOperations` * 2018-02-01: :class:`ProviderOperations` - * 2019-08-01: :class:`ProviderOperations` - * 2020-06-01: :class:`ProviderOperations` - * 2020-09-01: :class:`ProviderOperations` - * 2020-12-01: :class:`ProviderOperations` - * 2021-01-01: :class:`ProviderOperations` - * 2021-01-15: :class:`ProviderOperations` - * 2021-03-01: :class:`ProviderOperations` * 2022-09-01: :class:`ProviderOperations` * 2023-01-01: :class:`ProviderOperations` - * 2023-12-01: :class:`ProviderOperations` * 2024-04-01: :class:`ProviderOperations` """ api_version = self._get_api_version('provider') @@ -851,26 +497,10 @@ def provider(self): from ..v2016_03_01.aio.operations import ProviderOperations as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import ProviderOperations as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import ProviderOperations as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import ProviderOperations as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import ProviderOperations as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import ProviderOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import ProviderOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import ProviderOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import ProviderOperations as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import ProviderOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import ProviderOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import ProviderOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import ProviderOperations as OperationClass else: @@ -884,16 +514,8 @@ def recommendations(self): * 2016-03-01: :class:`RecommendationsOperations` * 2018-02-01: :class:`RecommendationsOperations` - * 2019-08-01: :class:`RecommendationsOperations` - * 2020-06-01: :class:`RecommendationsOperations` - * 2020-09-01: :class:`RecommendationsOperations` - * 2020-12-01: :class:`RecommendationsOperations` - * 2021-01-01: :class:`RecommendationsOperations` - * 2021-01-15: :class:`RecommendationsOperations` - * 2021-03-01: :class:`RecommendationsOperations` * 2022-09-01: :class:`RecommendationsOperations` * 2023-01-01: :class:`RecommendationsOperations` - * 2023-12-01: :class:`RecommendationsOperations` * 2024-04-01: :class:`RecommendationsOperations` """ api_version = self._get_api_version('recommendations') @@ -901,26 +523,10 @@ def recommendations(self): from ..v2016_03_01.aio.operations import RecommendationsOperations as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import RecommendationsOperations as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import RecommendationsOperations as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import RecommendationsOperations as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import RecommendationsOperations as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import RecommendationsOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import RecommendationsOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import RecommendationsOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import RecommendationsOperations as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import RecommendationsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import RecommendationsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import RecommendationsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import RecommendationsOperations as OperationClass else: @@ -934,16 +540,8 @@ def resource_health_metadata(self): * 2016-03-01: :class:`ResourceHealthMetadataOperations` * 2018-02-01: :class:`ResourceHealthMetadataOperations` - * 2019-08-01: :class:`ResourceHealthMetadataOperations` - * 2020-06-01: :class:`ResourceHealthMetadataOperations` - * 2020-09-01: :class:`ResourceHealthMetadataOperations` - * 2020-12-01: :class:`ResourceHealthMetadataOperations` - * 2021-01-01: :class:`ResourceHealthMetadataOperations` - * 2021-01-15: :class:`ResourceHealthMetadataOperations` - * 2021-03-01: :class:`ResourceHealthMetadataOperations` * 2022-09-01: :class:`ResourceHealthMetadataOperations` * 2023-01-01: :class:`ResourceHealthMetadataOperations` - * 2023-12-01: :class:`ResourceHealthMetadataOperations` * 2024-04-01: :class:`ResourceHealthMetadataOperations` """ api_version = self._get_api_version('resource_health_metadata') @@ -951,26 +549,10 @@ def resource_health_metadata(self): from ..v2016_03_01.aio.operations import ResourceHealthMetadataOperations as OperationClass elif api_version == '2018-02-01': from ..v2018_02_01.aio.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import ResourceHealthMetadataOperations as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import ResourceHealthMetadataOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import ResourceHealthMetadataOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import ResourceHealthMetadataOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import ResourceHealthMetadataOperations as OperationClass else: @@ -982,39 +564,15 @@ def resource_health_metadata(self): def static_sites(self): """Instance depends on the API version: - * 2019-08-01: :class:`StaticSitesOperations` - * 2020-06-01: :class:`StaticSitesOperations` - * 2020-09-01: :class:`StaticSitesOperations` - * 2020-12-01: :class:`StaticSitesOperations` - * 2021-01-01: :class:`StaticSitesOperations` - * 2021-01-15: :class:`StaticSitesOperations` - * 2021-03-01: :class:`StaticSitesOperations` * 2022-09-01: :class:`StaticSitesOperations` * 2023-01-01: :class:`StaticSitesOperations` - * 2023-12-01: :class:`StaticSitesOperations` * 2024-04-01: :class:`StaticSitesOperations` """ api_version = self._get_api_version('static_sites') - if api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import StaticSitesOperations as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import StaticSitesOperations as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import StaticSitesOperations as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import StaticSitesOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import StaticSitesOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import StaticSitesOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import StaticSitesOperations as OperationClass - elif api_version == '2022-09-01': + if api_version == '2022-09-01': from ..v2022_09_01.aio.operations import StaticSitesOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import StaticSitesOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import StaticSitesOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import StaticSitesOperations as OperationClass else: @@ -1026,45 +584,18 @@ def static_sites(self): def top_level_domains(self): """Instance depends on the API version: - * 2015-04-01: :class:`TopLevelDomainsOperations` * 2018-02-01: :class:`TopLevelDomainsOperations` - * 2019-08-01: :class:`TopLevelDomainsOperations` - * 2020-06-01: :class:`TopLevelDomainsOperations` - * 2020-09-01: :class:`TopLevelDomainsOperations` - * 2020-12-01: :class:`TopLevelDomainsOperations` - * 2021-01-01: :class:`TopLevelDomainsOperations` - * 2021-01-15: :class:`TopLevelDomainsOperations` - * 2021-03-01: :class:`TopLevelDomainsOperations` * 2022-09-01: :class:`TopLevelDomainsOperations` * 2023-01-01: :class:`TopLevelDomainsOperations` - * 2023-12-01: :class:`TopLevelDomainsOperations` * 2024-04-01: :class:`TopLevelDomainsOperations` """ api_version = self._get_api_version('top_level_domains') - if api_version == '2015-04-01': - from ..v2015_04_01.aio.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from ..v2018_02_01.aio.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import TopLevelDomainsOperations as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import TopLevelDomainsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import TopLevelDomainsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import TopLevelDomainsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import TopLevelDomainsOperations as OperationClass else: @@ -1076,45 +607,18 @@ def top_level_domains(self): def web_apps(self): """Instance depends on the API version: - * 2016-08-01: :class:`WebAppsOperations` * 2018-02-01: :class:`WebAppsOperations` - * 2019-08-01: :class:`WebAppsOperations` - * 2020-06-01: :class:`WebAppsOperations` - * 2020-09-01: :class:`WebAppsOperations` - * 2020-12-01: :class:`WebAppsOperations` - * 2021-01-01: :class:`WebAppsOperations` - * 2021-01-15: :class:`WebAppsOperations` - * 2021-03-01: :class:`WebAppsOperations` * 2022-09-01: :class:`WebAppsOperations` * 2023-01-01: :class:`WebAppsOperations` - * 2023-12-01: :class:`WebAppsOperations` * 2024-04-01: :class:`WebAppsOperations` """ api_version = self._get_api_version('web_apps') - if api_version == '2016-08-01': - from ..v2016_08_01.aio.operations import WebAppsOperations as OperationClass - elif api_version == '2018-02-01': + if api_version == '2018-02-01': from ..v2018_02_01.aio.operations import WebAppsOperations as OperationClass - elif api_version == '2019-08-01': - from ..v2019_08_01.aio.operations import WebAppsOperations as OperationClass - elif api_version == '2020-06-01': - from ..v2020_06_01.aio.operations import WebAppsOperations as OperationClass - elif api_version == '2020-09-01': - from ..v2020_09_01.aio.operations import WebAppsOperations as OperationClass - elif api_version == '2020-12-01': - from ..v2020_12_01.aio.operations import WebAppsOperations as OperationClass - elif api_version == '2021-01-01': - from ..v2021_01_01.aio.operations import WebAppsOperations as OperationClass - elif api_version == '2021-01-15': - from ..v2021_01_15.aio.operations import WebAppsOperations as OperationClass - elif api_version == '2021-03-01': - from ..v2021_03_01.aio.operations import WebAppsOperations as OperationClass elif api_version == '2022-09-01': from ..v2022_09_01.aio.operations import WebAppsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WebAppsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WebAppsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WebAppsOperations as OperationClass else: @@ -1128,7 +632,6 @@ def workflow_run_action_repetitions(self): * 2022-09-01: :class:`WorkflowRunActionRepetitionsOperations` * 2023-01-01: :class:`WorkflowRunActionRepetitionsOperations` - * 2023-12-01: :class:`WorkflowRunActionRepetitionsOperations` * 2024-04-01: :class:`WorkflowRunActionRepetitionsOperations` """ api_version = self._get_api_version('workflow_run_action_repetitions') @@ -1136,8 +639,6 @@ def workflow_run_action_repetitions(self): from ..v2022_09_01.aio.operations import WorkflowRunActionRepetitionsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WorkflowRunActionRepetitionsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WorkflowRunActionRepetitionsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WorkflowRunActionRepetitionsOperations as OperationClass else: @@ -1151,7 +652,6 @@ def workflow_run_action_repetitions_request_histories(self): * 2022-09-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations` * 2023-01-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations` - * 2023-12-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations` * 2024-04-01: :class:`WorkflowRunActionRepetitionsRequestHistoriesOperations` """ api_version = self._get_api_version('workflow_run_action_repetitions_request_histories') @@ -1159,8 +659,6 @@ def workflow_run_action_repetitions_request_histories(self): from ..v2022_09_01.aio.operations import WorkflowRunActionRepetitionsRequestHistoriesOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WorkflowRunActionRepetitionsRequestHistoriesOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WorkflowRunActionRepetitionsRequestHistoriesOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WorkflowRunActionRepetitionsRequestHistoriesOperations as OperationClass else: @@ -1174,7 +672,6 @@ def workflow_run_action_scope_repetitions(self): * 2022-09-01: :class:`WorkflowRunActionScopeRepetitionsOperations` * 2023-01-01: :class:`WorkflowRunActionScopeRepetitionsOperations` - * 2023-12-01: :class:`WorkflowRunActionScopeRepetitionsOperations` * 2024-04-01: :class:`WorkflowRunActionScopeRepetitionsOperations` """ api_version = self._get_api_version('workflow_run_action_scope_repetitions') @@ -1182,8 +679,6 @@ def workflow_run_action_scope_repetitions(self): from ..v2022_09_01.aio.operations import WorkflowRunActionScopeRepetitionsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WorkflowRunActionScopeRepetitionsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WorkflowRunActionScopeRepetitionsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WorkflowRunActionScopeRepetitionsOperations as OperationClass else: @@ -1197,7 +692,6 @@ def workflow_run_actions(self): * 2022-09-01: :class:`WorkflowRunActionsOperations` * 2023-01-01: :class:`WorkflowRunActionsOperations` - * 2023-12-01: :class:`WorkflowRunActionsOperations` * 2024-04-01: :class:`WorkflowRunActionsOperations` """ api_version = self._get_api_version('workflow_run_actions') @@ -1205,8 +699,6 @@ def workflow_run_actions(self): from ..v2022_09_01.aio.operations import WorkflowRunActionsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WorkflowRunActionsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WorkflowRunActionsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WorkflowRunActionsOperations as OperationClass else: @@ -1220,7 +712,6 @@ def workflow_runs(self): * 2022-09-01: :class:`WorkflowRunsOperations` * 2023-01-01: :class:`WorkflowRunsOperations` - * 2023-12-01: :class:`WorkflowRunsOperations` * 2024-04-01: :class:`WorkflowRunsOperations` """ api_version = self._get_api_version('workflow_runs') @@ -1228,8 +719,6 @@ def workflow_runs(self): from ..v2022_09_01.aio.operations import WorkflowRunsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WorkflowRunsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WorkflowRunsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WorkflowRunsOperations as OperationClass else: @@ -1243,7 +732,6 @@ def workflow_trigger_histories(self): * 2022-09-01: :class:`WorkflowTriggerHistoriesOperations` * 2023-01-01: :class:`WorkflowTriggerHistoriesOperations` - * 2023-12-01: :class:`WorkflowTriggerHistoriesOperations` * 2024-04-01: :class:`WorkflowTriggerHistoriesOperations` """ api_version = self._get_api_version('workflow_trigger_histories') @@ -1251,8 +739,6 @@ def workflow_trigger_histories(self): from ..v2022_09_01.aio.operations import WorkflowTriggerHistoriesOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WorkflowTriggerHistoriesOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WorkflowTriggerHistoriesOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WorkflowTriggerHistoriesOperations as OperationClass else: @@ -1266,7 +752,6 @@ def workflow_triggers(self): * 2022-09-01: :class:`WorkflowTriggersOperations` * 2023-01-01: :class:`WorkflowTriggersOperations` - * 2023-12-01: :class:`WorkflowTriggersOperations` * 2024-04-01: :class:`WorkflowTriggersOperations` """ api_version = self._get_api_version('workflow_triggers') @@ -1274,8 +759,6 @@ def workflow_triggers(self): from ..v2022_09_01.aio.operations import WorkflowTriggersOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WorkflowTriggersOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WorkflowTriggersOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WorkflowTriggersOperations as OperationClass else: @@ -1289,7 +772,6 @@ def workflow_versions(self): * 2022-09-01: :class:`WorkflowVersionsOperations` * 2023-01-01: :class:`WorkflowVersionsOperations` - * 2023-12-01: :class:`WorkflowVersionsOperations` * 2024-04-01: :class:`WorkflowVersionsOperations` """ api_version = self._get_api_version('workflow_versions') @@ -1297,8 +779,6 @@ def workflow_versions(self): from ..v2022_09_01.aio.operations import WorkflowVersionsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WorkflowVersionsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WorkflowVersionsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WorkflowVersionsOperations as OperationClass else: @@ -1312,7 +792,6 @@ def workflows(self): * 2022-09-01: :class:`WorkflowsOperations` * 2023-01-01: :class:`WorkflowsOperations` - * 2023-12-01: :class:`WorkflowsOperations` * 2024-04-01: :class:`WorkflowsOperations` """ api_version = self._get_api_version('workflows') @@ -1320,8 +799,6 @@ def workflows(self): from ..v2022_09_01.aio.operations import WorkflowsOperations as OperationClass elif api_version == '2023-01-01': from ..v2023_01_01.aio.operations import WorkflowsOperations as OperationClass - elif api_version == '2023-12-01': - from ..v2023_12_01.aio.operations import WorkflowsOperations as OperationClass elif api_version == '2024-04-01': from ..v2024_04_01.aio.operations import WorkflowsOperations as OperationClass else: diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2016_03_01/_version.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2016_03_01/_version.py index 9bd4c9b55137..5c14e0d8303d 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2016_03_01/_version.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2016_03_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "0.0.0" +VERSION = "0.42.0" diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_02_01/_version.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_02_01/_version.py index 9bd4c9b55137..5c14e0d8303d 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_02_01/_version.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_02_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "0.0.0" +VERSION = "0.42.0" diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/_version.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/_version.py index 9bd4c9b55137..5c14e0d8303d 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/_version.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "0.0.0" +VERSION = "0.42.0" diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_app_service_plans_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_app_service_plans_operations.py index 27d62c9e7400..d849abb5dd56 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_app_service_plans_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_app_service_plans_operations.py @@ -8,21 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import ( - Any, - AsyncIterable, - AsyncIterator, - Callable, - Dict, - IO, - List, - Optional, - Type, - TypeVar, - Union, - cast, - overload, -) +from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -287,12 +273,9 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -320,7 +303,7 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -1589,12 +1572,9 @@ async def get_vnet_from_server_farm( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -1623,7 +1603,7 @@ async def get_vnet_from_server_farm( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -1938,12 +1918,9 @@ async def get_route_for_vnet( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -1973,7 +1950,7 @@ async def get_route_for_vnet( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -2083,16 +2060,9 @@ async def create_or_update_vnet_route( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -2134,7 +2104,7 @@ async def create_or_update_vnet_route( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -2167,12 +2137,9 @@ async def delete_vnet_route( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -2202,7 +2169,7 @@ async def delete_vnet_route( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -2308,16 +2275,9 @@ async def update_vnet_route( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -2359,7 +2319,7 @@ async def update_vnet_route( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_container_apps_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_container_apps_operations.py index aec5f80bee60..1eabeda643b5 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_container_apps_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_container_apps_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -243,12 +243,9 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -276,7 +273,7 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_domains_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_domains_operations.py index 2b1c50488af8..63b5d0348557 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_domains_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_domains_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -1552,10 +1552,6 @@ async def transfer_out(self, resource_group_name: str, domain_name: str, **kwarg 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_web_apps_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_web_apps_operations.py index dd0ea4b1a107..07362bf191bd 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_web_apps_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/aio/operations/_web_apps_operations.py @@ -8,21 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import ( - Any, - AsyncIterable, - AsyncIterator, - Callable, - Dict, - IO, - List, - Optional, - Type, - TypeVar, - Union, - cast, - overload, -) +from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -665,12 +651,9 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -698,7 +681,7 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -931,12 +914,9 @@ async def delete( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -966,7 +946,7 @@ async def delete( response = pipeline_response.http_response if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -1603,12 +1583,9 @@ async def delete_backup(self, resource_group_name: str, name: str, backup_id: st """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -1637,7 +1614,7 @@ async def delete_backup(self, resource_group_name: str, name: str, backup_id: st response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -5794,12 +5771,9 @@ async def get_continuous_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -5828,7 +5802,7 @@ async def get_continuous_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -5917,12 +5891,9 @@ async def start_continuous_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -5951,7 +5922,7 @@ async def start_continuous_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -5978,12 +5949,9 @@ async def stop_continuous_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -6012,7 +5980,7 @@ async def stop_continuous_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -7334,11 +7302,8 @@ async def _create_ms_deploy_operation_initial( error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -7383,7 +7348,7 @@ async def _create_ms_deploy_operation_initial( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -7535,12 +7500,9 @@ async def get_ms_deploy_log(self, resource_group_name: str, name: str, **kwargs: """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -7568,7 +7530,7 @@ async def get_ms_deploy_log(self, resource_group_name: str, name: str, **kwargs: response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -7719,12 +7681,9 @@ def list_functions( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -7775,7 +7734,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -7860,12 +7819,9 @@ async def get_function( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -7894,7 +7850,7 @@ async def get_function( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -8131,12 +8087,9 @@ async def delete_function(self, resource_group_name: str, name: str, function_na """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -8165,7 +8118,7 @@ async def delete_function(self, resource_group_name: str, name: str, function_na response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -8348,12 +8301,9 @@ async def delete_function_secret( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -8383,7 +8333,7 @@ async def delete_function_secret( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -8853,12 +8803,9 @@ async def delete_host_secret( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -8888,7 +8835,7 @@ async def delete_host_secret( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -9488,12 +9435,9 @@ async def delete_hybrid_connection( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -9523,7 +9467,7 @@ async def delete_hybrid_connection( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10033,12 +9977,9 @@ async def delete_relay_service_connection( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10067,7 +10008,7 @@ async def delete_relay_service_connection( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10444,11 +10385,8 @@ async def _create_instance_ms_deploy_operation_initial( # pylint: disable=name- error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10494,7 +10432,7 @@ async def _create_instance_ms_deploy_operation_initial( # pylint: disable=name- await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10664,12 +10602,9 @@ async def get_instance_ms_deploy_log( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10698,7 +10633,7 @@ async def get_instance_ms_deploy_log( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10738,12 +10673,9 @@ def list_instance_processes( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10795,7 +10727,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10827,12 +10759,9 @@ async def get_instance_process( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10862,7 +10791,7 @@ async def get_instance_process( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10898,12 +10827,9 @@ async def delete_instance_process( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10933,7 +10859,7 @@ async def delete_instance_process( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10964,12 +10890,9 @@ async def get_instance_process_dump( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -11004,7 +10927,7 @@ async def get_instance_process_dump( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -11047,12 +10970,9 @@ def list_instance_process_modules( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -11105,7 +11025,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -11139,12 +11059,9 @@ async def get_instance_process_module( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -11175,7 +11092,7 @@ async def get_instance_process_module( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -11217,12 +11134,9 @@ def list_instance_process_threads( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -11275,7 +11189,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -12183,12 +12097,9 @@ async def delete_swift_virtual_network(self, resource_group_name: str, name: str """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -12216,7 +12127,7 @@ async def delete_swift_virtual_network(self, resource_group_name: str, name: str response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -12397,12 +12308,9 @@ async def list_network_features( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -12431,7 +12339,7 @@ async def list_network_features( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14388,12 +14296,9 @@ def list_processes( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14444,7 +14349,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14473,12 +14378,9 @@ async def get_process( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14507,7 +14409,7 @@ async def get_process( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14538,12 +14440,9 @@ async def delete_process(self, resource_group_name: str, name: str, process_id: """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14572,7 +14471,7 @@ async def delete_process(self, resource_group_name: str, name: str, process_id: response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14600,12 +14499,9 @@ async def get_process_dump( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14639,7 +14535,7 @@ async def get_process_dump( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14679,12 +14575,9 @@ def list_process_modules( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14736,7 +14629,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14767,12 +14660,9 @@ async def get_process_module( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14802,7 +14692,7 @@ async def get_process_module( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14841,12 +14731,9 @@ def list_process_threads( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14898,7 +14785,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -16113,12 +16000,9 @@ def list_site_extensions( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16169,7 +16053,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -16197,12 +16081,9 @@ async def get_site_extension( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16231,7 +16112,7 @@ async def get_site_extension( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -16250,10 +16131,6 @@ async def _install_site_extension_initial( 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 429: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16383,12 +16260,9 @@ async def delete_site_extension( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16417,7 +16291,7 @@ async def delete_site_extension( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -16526,12 +16400,9 @@ async def get_slot(self, resource_group_name: str, name: str, slot: str, **kwarg """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16560,7 +16431,7 @@ async def get_slot(self, resource_group_name: str, name: str, slot: str, **kwarg response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -16820,12 +16691,9 @@ async def delete_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16856,7 +16724,7 @@ async def delete_slot( response = pipeline_response.http_response if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -17555,12 +17423,9 @@ async def delete_backup_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -17590,7 +17455,7 @@ async def delete_backup_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -21862,12 +21727,9 @@ async def get_continuous_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -21897,7 +21759,7 @@ async def get_continuous_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -21993,12 +21855,9 @@ async def start_continuous_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -22028,7 +21887,7 @@ async def start_continuous_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22058,12 +21917,9 @@ async def stop_continuous_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -22093,7 +21949,7 @@ async def stop_continuous_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23523,11 +23379,8 @@ async def _create_ms_deploy_operation_slot_initial( error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23573,7 +23426,7 @@ async def _create_ms_deploy_operation_slot_initial( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23747,12 +23600,9 @@ async def get_ms_deploy_log_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23781,7 +23631,7 @@ async def get_ms_deploy_log_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23819,12 +23669,9 @@ def list_instance_functions_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23876,7 +23723,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23969,12 +23816,9 @@ async def get_instance_function_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24004,7 +23848,7 @@ async def get_instance_function_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24257,12 +24101,9 @@ async def delete_instance_function_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24292,7 +24133,7 @@ async def delete_instance_function_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24487,12 +24328,9 @@ async def delete_function_secret_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24523,7 +24361,7 @@ async def delete_function_secret_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -25022,12 +24860,9 @@ async def delete_host_secret_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -25058,7 +24893,7 @@ async def delete_host_secret_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -25698,12 +25533,9 @@ async def delete_hybrid_connection_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -25734,7 +25566,7 @@ async def delete_hybrid_connection_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26281,12 +26113,9 @@ async def delete_relay_service_connection_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26316,7 +26145,7 @@ async def delete_relay_service_connection_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26719,11 +26548,8 @@ async def _create_instance_ms_deploy_operation_slot_initial( # pylint: disable= error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26770,7 +26596,7 @@ async def _create_instance_ms_deploy_operation_slot_initial( # pylint: disable= await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26956,12 +26782,9 @@ async def get_instance_ms_deploy_log_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26991,7 +26814,7 @@ async def get_instance_ms_deploy_log_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27034,12 +26857,9 @@ def list_instance_processes_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27092,7 +26912,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27127,12 +26947,9 @@ async def get_instance_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27163,7 +26980,7 @@ async def get_instance_process_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27202,12 +27019,9 @@ async def delete_instance_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27238,7 +27052,7 @@ async def delete_instance_process_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27272,12 +27086,9 @@ async def get_instance_process_dump_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27313,7 +27124,7 @@ async def get_instance_process_dump_slot( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27359,12 +27170,9 @@ def list_instance_process_modules_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27418,7 +27226,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27462,12 +27270,9 @@ async def get_instance_process_module_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27499,7 +27304,7 @@ async def get_instance_process_module_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27544,12 +27349,9 @@ def list_instance_process_threads_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27603,7 +27405,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -28140,12 +27942,9 @@ async def delete_swift_virtual_network_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -28174,7 +27973,7 @@ async def delete_swift_virtual_network_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -28371,12 +28170,9 @@ async def list_network_features_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -28406,7 +28202,7 @@ async def list_network_features_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30495,12 +30291,9 @@ def list_processes_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30552,7 +30345,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30584,12 +30377,9 @@ async def get_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30619,7 +30409,7 @@ async def get_process_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30655,12 +30445,9 @@ async def delete_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30690,7 +30477,7 @@ async def delete_process_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30721,12 +30508,9 @@ async def get_process_dump_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30761,7 +30545,7 @@ async def get_process_dump_slot( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30804,12 +30588,9 @@ def list_process_modules_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30862,7 +30643,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30896,12 +30677,9 @@ async def get_process_module_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30932,7 +30710,7 @@ async def get_process_module_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30974,12 +30752,9 @@ def list_process_threads_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -31032,7 +30807,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32352,12 +32127,9 @@ def list_site_extensions_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32409,7 +32181,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32440,12 +32212,9 @@ async def get_site_extension_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32475,7 +32244,7 @@ async def get_site_extension_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32494,10 +32263,6 @@ async def _install_site_extension_slot_initial( 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 429: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32635,12 +32400,9 @@ async def delete_site_extension_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32670,7 +32432,7 @@ async def delete_site_extension_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -33534,12 +33296,9 @@ async def delete_source_control_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -33569,7 +33328,7 @@ async def delete_source_control_slot( response = pipeline_response.http_response if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34264,12 +34023,9 @@ async def get_triggered_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -34299,7 +34055,7 @@ async def get_triggered_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34402,12 +34158,9 @@ def list_triggered_web_job_history_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -34460,7 +34213,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34494,12 +34247,9 @@ async def get_triggered_web_job_history_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -34530,7 +34280,7 @@ async def get_triggered_web_job_history_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34564,12 +34314,9 @@ async def run_triggered_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -34599,7 +34346,7 @@ async def run_triggered_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -35020,12 +34767,9 @@ async def delete_vnet_connection_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -35055,7 +34799,7 @@ async def delete_vnet_connection_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -35253,12 +34997,9 @@ async def get_vnet_connection_gateway_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -35289,7 +35030,7 @@ async def get_vnet_connection_gateway_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -36592,12 +36333,9 @@ async def delete_source_control( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -36626,7 +36364,7 @@ async def delete_source_control( response = pipeline_response.http_response if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -37277,12 +37015,9 @@ async def get_triggered_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -37311,7 +37046,7 @@ async def get_triggered_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -37407,12 +37142,9 @@ def list_triggered_web_job_history( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -37464,7 +37196,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -37495,12 +37227,9 @@ async def get_triggered_web_job_history( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -37530,7 +37259,7 @@ async def get_triggered_web_job_history( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -37561,12 +37290,9 @@ async def run_triggered_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -37595,7 +37321,7 @@ async def run_triggered_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -37986,12 +37712,9 @@ async def delete_vnet_connection(self, resource_group_name: str, name: str, vnet """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38020,7 +37743,7 @@ async def delete_vnet_connection(self, resource_group_name: str, name: str, vnet response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -38202,12 +37925,9 @@ async def get_vnet_connection_gateway( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38237,7 +37957,7 @@ async def get_vnet_connection_gateway( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -39098,12 +38818,9 @@ async def get_instance_workflow_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -39133,7 +38850,7 @@ async def get_instance_workflow_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -39312,12 +39029,9 @@ async def get_workflow( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -39346,7 +39060,7 @@ async def get_workflow( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/models/_models_py3.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/models/_models_py3.py index a66c66ac52a4..4929e756a5a4 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/models/_models_py3.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/models/_models_py3.py @@ -16782,8 +16782,8 @@ class RampUpRule(_serialization.Model): :code:`ActionHostName`. :vartype reroute_percentage: float :ivar change_step: In auto ramp up scenario this is the step to add/remove from - :code:`ReroutePercentage` until it reaches - \\n:code:`MinReroutePercentage` or + :code:`ReroutePercentage` until it reaches \\n\\ + :code:`MinReroutePercentage` or :code:`MaxReroutePercentage`. Site metrics are checked every N minutes specified in :code:`ChangeIntervalInMinutes`.\\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in @@ -16838,8 +16838,8 @@ def __init__( :code:`ActionHostName`. :paramtype reroute_percentage: float :keyword change_step: In auto ramp up scenario this is the step to add/remove from - :code:`ReroutePercentage` until it reaches - \\n:code:`MinReroutePercentage` or + :code:`ReroutePercentage` until it reaches \\n\\ + :code:`MinReroutePercentage` or :code:`MaxReroutePercentage`. Site metrics are checked every N minutes specified in :code:`ChangeIntervalInMinutes`.\\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_app_service_plans_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_app_service_plans_operations.py index 81e7e43449a1..778dd0807c70 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_app_service_plans_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_app_service_plans_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( @@ -1301,12 +1301,9 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.App """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -1334,7 +1331,7 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.App response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -2603,12 +2600,9 @@ def get_vnet_from_server_farm( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -2637,7 +2631,7 @@ def get_vnet_from_server_farm( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -2952,12 +2946,9 @@ def get_route_for_vnet( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -2987,7 +2978,7 @@ def get_route_for_vnet( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -3097,16 +3088,9 @@ def create_or_update_vnet_route( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -3148,7 +3132,7 @@ def create_or_update_vnet_route( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -3181,12 +3165,9 @@ def delete_vnet_route( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -3216,7 +3197,7 @@ def delete_vnet_route( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -3322,16 +3303,9 @@ def update_vnet_route( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -3373,7 +3347,7 @@ def update_vnet_route( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_container_apps_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_container_apps_operations.py index 902410565c17..4be6dd0e8992 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_container_apps_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_container_apps_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( @@ -435,12 +435,9 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.Con """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -468,7 +465,7 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.Con response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_domains_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_domains_operations.py index b197957131d5..bdb0db5363b1 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_domains_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_domains_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( @@ -2118,10 +2118,6 @@ def transfer_out(self, resource_group_name: str, domain_name: str, **kwargs: Any 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_web_apps_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_web_apps_operations.py index f08f06f132c0..935dd27ad3bd 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_web_apps_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2022_09_01/operations/_web_apps_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( @@ -16754,12 +16754,9 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.Sit """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16787,7 +16784,7 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.Sit response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -17020,12 +17017,9 @@ def delete( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -17055,7 +17049,7 @@ def delete( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -17694,12 +17688,9 @@ def delete_backup( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -17728,7 +17719,7 @@ def delete_backup( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -21874,12 +21865,9 @@ def get_continuous_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -21908,7 +21896,7 @@ def get_continuous_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -21997,12 +21985,9 @@ def start_continuous_web_job( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -22031,7 +22016,7 @@ def start_continuous_web_job( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22058,12 +22043,9 @@ def stop_continuous_web_job( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -22092,7 +22074,7 @@ def stop_continuous_web_job( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23410,11 +23392,8 @@ def _create_ms_deploy_operation_initial( error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23459,7 +23438,7 @@ def _create_ms_deploy_operation_initial( response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23611,12 +23590,9 @@ def get_ms_deploy_log(self, resource_group_name: str, name: str, **kwargs: Any) """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23644,7 +23620,7 @@ def get_ms_deploy_log(self, resource_group_name: str, name: str, **kwargs: Any) response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23794,12 +23770,9 @@ def list_functions( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23850,7 +23823,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23935,12 +23908,9 @@ def get_function( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23969,7 +23939,7 @@ def get_function( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24208,12 +24178,9 @@ def delete_function( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24242,7 +24209,7 @@ def delete_function( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24425,12 +24392,9 @@ def delete_function_secret( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24460,7 +24424,7 @@ def delete_function_secret( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24934,12 +24898,9 @@ def delete_host_secret( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24969,7 +24930,7 @@ def delete_host_secret( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -25568,12 +25529,9 @@ def delete_hybrid_connection( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -25603,7 +25561,7 @@ def delete_hybrid_connection( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26111,12 +26069,9 @@ def delete_relay_service_connection( # pylint: disable=inconsistent-return-stat """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26145,7 +26100,7 @@ def delete_relay_service_connection( # pylint: disable=inconsistent-return-stat response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26521,11 +26476,8 @@ def _create_instance_ms_deploy_operation_initial( # pylint: disable=name-too-lo error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26571,7 +26523,7 @@ def _create_instance_ms_deploy_operation_initial( # pylint: disable=name-too-lo response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26741,12 +26693,9 @@ def get_instance_ms_deploy_log( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26775,7 +26724,7 @@ def get_instance_ms_deploy_log( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26815,12 +26764,9 @@ def list_instance_processes( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26872,7 +26818,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26904,12 +26850,9 @@ def get_instance_process( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26939,7 +26882,7 @@ def get_instance_process( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26975,12 +26918,9 @@ def delete_instance_process( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27010,7 +26950,7 @@ def delete_instance_process( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27041,12 +26981,9 @@ def get_instance_process_dump( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27081,7 +27018,7 @@ def get_instance_process_dump( response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27123,12 +27060,9 @@ def list_instance_process_modules( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27181,7 +27115,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27215,12 +27149,9 @@ def get_instance_process_module( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27251,7 +27182,7 @@ def get_instance_process_module( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27292,12 +27223,9 @@ def list_instance_process_threads( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27350,7 +27278,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -28255,12 +28183,9 @@ def delete_swift_virtual_network( # pylint: disable=inconsistent-return-stateme """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -28288,7 +28213,7 @@ def delete_swift_virtual_network( # pylint: disable=inconsistent-return-stateme response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -28469,12 +28394,9 @@ def list_network_features( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -28503,7 +28425,7 @@ def list_network_features( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30456,12 +30378,9 @@ def list_processes(self, resource_group_name: str, name: str, **kwargs: Any) -> error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30512,7 +30431,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30539,12 +30458,9 @@ def get_process(self, resource_group_name: str, name: str, process_id: str, **kw """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30573,7 +30489,7 @@ def get_process(self, resource_group_name: str, name: str, process_id: str, **kw response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30606,12 +30522,9 @@ def delete_process( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30640,7 +30553,7 @@ def delete_process( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30666,12 +30579,9 @@ def get_process_dump(self, resource_group_name: str, name: str, process_id: str, """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30705,7 +30615,7 @@ def get_process_dump(self, resource_group_name: str, name: str, process_id: str, response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30744,12 +30654,9 @@ def list_process_modules( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30801,7 +30708,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30832,12 +30739,9 @@ def get_process_module( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30867,7 +30771,7 @@ def get_process_module( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30905,12 +30809,9 @@ def list_process_threads( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30962,7 +30863,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32177,12 +32078,9 @@ def list_site_extensions( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32233,7 +32131,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32261,12 +32159,9 @@ def get_site_extension( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32295,7 +32190,7 @@ def get_site_extension( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32314,10 +32209,6 @@ def _install_site_extension_initial( 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 429: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32446,12 +32337,9 @@ def delete_site_extension( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32480,7 +32368,7 @@ def delete_site_extension( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32589,12 +32477,9 @@ def get_slot(self, resource_group_name: str, name: str, slot: str, **kwargs: Any """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32623,7 +32508,7 @@ def get_slot(self, resource_group_name: str, name: str, slot: str, **kwargs: Any response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32883,12 +32768,9 @@ def delete_slot( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32919,7 +32801,7 @@ def delete_slot( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -33618,12 +33500,9 @@ def delete_backup_slot( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -33653,7 +33532,7 @@ def delete_backup_slot( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -37920,12 +37799,9 @@ def get_continuous_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -37955,7 +37831,7 @@ def get_continuous_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -38051,12 +37927,9 @@ def start_continuous_web_job_slot( # pylint: disable=inconsistent-return-statem """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38086,7 +37959,7 @@ def start_continuous_web_job_slot( # pylint: disable=inconsistent-return-statem response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -38116,12 +37989,9 @@ def stop_continuous_web_job_slot( # pylint: disable=inconsistent-return-stateme """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38151,7 +38021,7 @@ def stop_continuous_web_job_slot( # pylint: disable=inconsistent-return-stateme response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -39579,11 +39449,8 @@ def _create_ms_deploy_operation_slot_initial( error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -39629,7 +39496,7 @@ def _create_ms_deploy_operation_slot_initial( response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -39803,12 +39670,9 @@ def get_ms_deploy_log_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -39837,7 +39701,7 @@ def get_ms_deploy_log_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -39874,12 +39738,9 @@ def list_instance_functions_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -39931,7 +39792,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -40022,12 +39883,9 @@ def get_instance_function_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -40057,7 +39915,7 @@ def get_instance_function_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -40310,12 +40168,9 @@ def delete_instance_function_slot( # pylint: disable=inconsistent-return-statem """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -40345,7 +40200,7 @@ def delete_instance_function_slot( # pylint: disable=inconsistent-return-statem response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -40540,12 +40395,9 @@ def delete_function_secret_slot( # pylint: disable=inconsistent-return-statemen """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -40576,7 +40428,7 @@ def delete_function_secret_slot( # pylint: disable=inconsistent-return-statemen response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -41077,12 +40929,9 @@ def delete_host_secret_slot( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -41113,7 +40962,7 @@ def delete_host_secret_slot( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -41752,12 +41601,9 @@ def delete_hybrid_connection_slot( # pylint: disable=inconsistent-return-statem """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -41788,7 +41634,7 @@ def delete_hybrid_connection_slot( # pylint: disable=inconsistent-return-statem response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -42335,12 +42181,9 @@ def delete_relay_service_connection_slot( # pylint: disable=inconsistent-return """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -42370,7 +42213,7 @@ def delete_relay_service_connection_slot( # pylint: disable=inconsistent-return response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -42772,11 +42615,8 @@ def _create_instance_ms_deploy_operation_slot_initial( # pylint: disable=name-t error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -42823,7 +42663,7 @@ def _create_instance_ms_deploy_operation_slot_initial( # pylint: disable=name-t response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43009,12 +42849,9 @@ def get_instance_ms_deploy_log_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43044,7 +42881,7 @@ def get_instance_ms_deploy_log_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43087,12 +42924,9 @@ def list_instance_processes_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43145,7 +42979,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43180,12 +43014,9 @@ def get_instance_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43216,7 +43047,7 @@ def get_instance_process_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43255,12 +43086,9 @@ def delete_instance_process_slot( # pylint: disable=inconsistent-return-stateme """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43291,7 +43119,7 @@ def delete_instance_process_slot( # pylint: disable=inconsistent-return-stateme response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43325,12 +43153,9 @@ def get_instance_process_dump_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43366,7 +43191,7 @@ def get_instance_process_dump_slot( response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43411,12 +43236,9 @@ def list_instance_process_modules_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43470,7 +43292,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43514,12 +43336,9 @@ def get_instance_process_module_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43551,7 +43370,7 @@ def get_instance_process_module_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43595,12 +43414,9 @@ def list_instance_process_threads_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43654,7 +43470,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -44191,12 +44007,9 @@ def delete_swift_virtual_network_slot( # pylint: disable=inconsistent-return-st """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -44225,7 +44038,7 @@ def delete_swift_virtual_network_slot( # pylint: disable=inconsistent-return-st response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -44422,12 +44235,9 @@ def list_network_features_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -44457,7 +44267,7 @@ def list_network_features_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -46540,12 +46350,9 @@ def list_processes_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -46597,7 +46404,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -46629,12 +46436,9 @@ def get_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -46664,7 +46468,7 @@ def get_process_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -46700,12 +46504,9 @@ def delete_process_slot( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -46735,7 +46536,7 @@ def delete_process_slot( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -46766,12 +46567,9 @@ def get_process_dump_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -46806,7 +46604,7 @@ def get_process_dump_slot( response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -46848,12 +46646,9 @@ def list_process_modules_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -46906,7 +46701,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -46940,12 +46735,9 @@ def get_process_module_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -46976,7 +46768,7 @@ def get_process_module_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -47017,12 +46809,9 @@ def list_process_threads_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -47075,7 +46864,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -48393,12 +48182,9 @@ def list_site_extensions_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -48450,7 +48236,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -48481,12 +48267,9 @@ def get_site_extension_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -48516,7 +48299,7 @@ def get_site_extension_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -48535,10 +48318,6 @@ def _install_site_extension_slot_initial( 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 429: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -48675,12 +48454,9 @@ def delete_site_extension_slot( # pylint: disable=inconsistent-return-statement """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -48710,7 +48486,7 @@ def delete_site_extension_slot( # pylint: disable=inconsistent-return-statement response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -49568,12 +49344,9 @@ def delete_source_control_slot( # pylint: disable=inconsistent-return-statement """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -49603,7 +49376,7 @@ def delete_source_control_slot( # pylint: disable=inconsistent-return-statement response = pipeline_response.http_response if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -50306,12 +50079,9 @@ def get_triggered_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -50341,7 +50111,7 @@ def get_triggered_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -50443,12 +50213,9 @@ def list_triggered_web_job_history_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -50501,7 +50268,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -50535,12 +50302,9 @@ def get_triggered_web_job_history_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -50571,7 +50335,7 @@ def get_triggered_web_job_history_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -50605,12 +50369,9 @@ def run_triggered_web_job_slot( # pylint: disable=inconsistent-return-statement """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -50640,7 +50401,7 @@ def run_triggered_web_job_slot( # pylint: disable=inconsistent-return-statement response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -51060,12 +50821,9 @@ def delete_vnet_connection_slot( # pylint: disable=inconsistent-return-statemen """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -51095,7 +50853,7 @@ def delete_vnet_connection_slot( # pylint: disable=inconsistent-return-statemen response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -51293,12 +51051,9 @@ def get_vnet_connection_gateway_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -51329,7 +51084,7 @@ def get_vnet_connection_gateway_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -52626,12 +52381,9 @@ def delete_source_control( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -52660,7 +52412,7 @@ def delete_source_control( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -53319,12 +53071,9 @@ def get_triggered_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -53353,7 +53102,7 @@ def get_triggered_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -53448,12 +53197,9 @@ def list_triggered_web_job_history( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -53505,7 +53251,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -53536,12 +53282,9 @@ def get_triggered_web_job_history( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -53571,7 +53314,7 @@ def get_triggered_web_job_history( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -53602,12 +53345,9 @@ def run_triggered_web_job( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -53636,7 +53376,7 @@ def run_triggered_web_job( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -54028,12 +53768,9 @@ def delete_vnet_connection( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -54062,7 +53799,7 @@ def delete_vnet_connection( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -54244,12 +53981,9 @@ def get_vnet_connection_gateway( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -54279,7 +54013,7 @@ def get_vnet_connection_gateway( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -55137,12 +54871,9 @@ def get_instance_workflow_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -55172,7 +54903,7 @@ def get_instance_workflow_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -55350,12 +55081,9 @@ def get_workflow( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -55384,7 +55112,7 @@ def get_workflow( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/_version.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/_version.py index 9bd4c9b55137..5c14e0d8303d 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/_version.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "0.0.0" +VERSION = "0.42.0" diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_app_service_plans_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_app_service_plans_operations.py index 2b81417cde4c..612da543f25d 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_app_service_plans_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_app_service_plans_operations.py @@ -8,21 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import ( - Any, - AsyncIterable, - AsyncIterator, - Callable, - Dict, - IO, - List, - Optional, - Type, - TypeVar, - Union, - cast, - overload, -) +from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -287,12 +273,9 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -320,7 +303,7 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -1589,12 +1572,9 @@ async def get_vnet_from_server_farm( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -1623,7 +1603,7 @@ async def get_vnet_from_server_farm( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -1938,12 +1918,9 @@ async def get_route_for_vnet( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -1973,7 +1950,7 @@ async def get_route_for_vnet( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -2083,16 +2060,9 @@ async def create_or_update_vnet_route( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -2134,7 +2104,7 @@ async def create_or_update_vnet_route( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -2167,12 +2137,9 @@ async def delete_vnet_route( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -2202,7 +2169,7 @@ async def delete_vnet_route( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -2308,16 +2275,9 @@ async def update_vnet_route( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -2359,7 +2319,7 @@ async def update_vnet_route( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_container_apps_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_container_apps_operations.py index e3866fb87788..b9f54e74bde7 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_container_apps_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_container_apps_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -243,12 +243,9 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -276,7 +273,7 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_domains_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_domains_operations.py index fe62f700a297..1aedd68100fd 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_domains_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_domains_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -1552,10 +1552,6 @@ async def transfer_out(self, resource_group_name: str, domain_name: str, **kwarg 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_web_apps_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_web_apps_operations.py index 978990a3fc38..b9b7ae09b9e9 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_web_apps_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/aio/operations/_web_apps_operations.py @@ -8,21 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import ( - Any, - AsyncIterable, - AsyncIterator, - Callable, - Dict, - IO, - List, - Optional, - Type, - TypeVar, - Union, - cast, - overload, -) +from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -665,12 +651,9 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -698,7 +681,7 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -931,12 +914,9 @@ async def delete( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -966,7 +946,7 @@ async def delete( response = pipeline_response.http_response if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -1603,12 +1583,9 @@ async def delete_backup(self, resource_group_name: str, name: str, backup_id: st """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -1637,7 +1614,7 @@ async def delete_backup(self, resource_group_name: str, name: str, backup_id: st response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -5794,12 +5771,9 @@ async def get_continuous_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -5828,7 +5802,7 @@ async def get_continuous_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -5917,12 +5891,9 @@ async def start_continuous_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -5951,7 +5922,7 @@ async def start_continuous_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -5978,12 +5949,9 @@ async def stop_continuous_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -6012,7 +5980,7 @@ async def stop_continuous_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -7334,11 +7302,8 @@ async def _create_ms_deploy_operation_initial( error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -7383,7 +7348,7 @@ async def _create_ms_deploy_operation_initial( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -7535,12 +7500,9 @@ async def get_ms_deploy_log(self, resource_group_name: str, name: str, **kwargs: """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -7568,7 +7530,7 @@ async def get_ms_deploy_log(self, resource_group_name: str, name: str, **kwargs: response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -7719,12 +7681,9 @@ def list_functions( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -7775,7 +7734,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -7860,12 +7819,9 @@ async def get_function( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -7894,7 +7850,7 @@ async def get_function( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -8131,12 +8087,9 @@ async def delete_function(self, resource_group_name: str, name: str, function_na """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -8165,7 +8118,7 @@ async def delete_function(self, resource_group_name: str, name: str, function_na response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -8348,12 +8301,9 @@ async def delete_function_secret( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -8383,7 +8333,7 @@ async def delete_function_secret( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -8853,12 +8803,9 @@ async def delete_host_secret( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -8888,7 +8835,7 @@ async def delete_host_secret( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -9488,12 +9435,9 @@ async def delete_hybrid_connection( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -9523,7 +9467,7 @@ async def delete_hybrid_connection( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10033,12 +9977,9 @@ async def delete_relay_service_connection( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10067,7 +10008,7 @@ async def delete_relay_service_connection( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10444,11 +10385,8 @@ async def _create_instance_ms_deploy_operation_initial( # pylint: disable=name- error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10494,7 +10432,7 @@ async def _create_instance_ms_deploy_operation_initial( # pylint: disable=name- await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10664,12 +10602,9 @@ async def get_instance_ms_deploy_log( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10698,7 +10633,7 @@ async def get_instance_ms_deploy_log( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10738,12 +10673,9 @@ def list_instance_processes( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10795,7 +10727,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10827,12 +10759,9 @@ async def get_instance_process( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10862,7 +10791,7 @@ async def get_instance_process( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10898,12 +10827,9 @@ async def delete_instance_process( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10933,7 +10859,7 @@ async def delete_instance_process( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10964,12 +10890,9 @@ async def get_instance_process_dump( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -11004,7 +10927,7 @@ async def get_instance_process_dump( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -11047,12 +10970,9 @@ def list_instance_process_modules( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -11105,7 +11025,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -11139,12 +11059,9 @@ async def get_instance_process_module( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -11175,7 +11092,7 @@ async def get_instance_process_module( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -11217,12 +11134,9 @@ def list_instance_process_threads( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -11275,7 +11189,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -12183,12 +12097,9 @@ async def delete_swift_virtual_network(self, resource_group_name: str, name: str """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -12216,7 +12127,7 @@ async def delete_swift_virtual_network(self, resource_group_name: str, name: str response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -12397,12 +12308,9 @@ async def list_network_features( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -12431,7 +12339,7 @@ async def list_network_features( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14388,12 +14296,9 @@ def list_processes( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14444,7 +14349,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14473,12 +14378,9 @@ async def get_process( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14507,7 +14409,7 @@ async def get_process( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14538,12 +14440,9 @@ async def delete_process(self, resource_group_name: str, name: str, process_id: """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14572,7 +14471,7 @@ async def delete_process(self, resource_group_name: str, name: str, process_id: response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14600,12 +14499,9 @@ async def get_process_dump( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14639,7 +14535,7 @@ async def get_process_dump( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14679,12 +14575,9 @@ def list_process_modules( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14736,7 +14629,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14767,12 +14660,9 @@ async def get_process_module( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14802,7 +14692,7 @@ async def get_process_module( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14841,12 +14731,9 @@ def list_process_threads( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14898,7 +14785,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -16113,12 +16000,9 @@ def list_site_extensions( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16169,7 +16053,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -16197,12 +16081,9 @@ async def get_site_extension( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16231,7 +16112,7 @@ async def get_site_extension( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -16250,10 +16131,6 @@ async def _install_site_extension_initial( 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 429: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16383,12 +16260,9 @@ async def delete_site_extension( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16417,7 +16291,7 @@ async def delete_site_extension( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -16526,12 +16400,9 @@ async def get_slot(self, resource_group_name: str, name: str, slot: str, **kwarg """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16560,7 +16431,7 @@ async def get_slot(self, resource_group_name: str, name: str, slot: str, **kwarg response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -16820,12 +16691,9 @@ async def delete_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16856,7 +16724,7 @@ async def delete_slot( response = pipeline_response.http_response if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -17555,12 +17423,9 @@ async def delete_backup_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -17590,7 +17455,7 @@ async def delete_backup_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -21862,12 +21727,9 @@ async def get_continuous_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -21897,7 +21759,7 @@ async def get_continuous_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -21993,12 +21855,9 @@ async def start_continuous_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -22028,7 +21887,7 @@ async def start_continuous_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22058,12 +21917,9 @@ async def stop_continuous_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -22093,7 +21949,7 @@ async def stop_continuous_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23523,11 +23379,8 @@ async def _create_ms_deploy_operation_slot_initial( error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23573,7 +23426,7 @@ async def _create_ms_deploy_operation_slot_initial( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23747,12 +23600,9 @@ async def get_ms_deploy_log_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23781,7 +23631,7 @@ async def get_ms_deploy_log_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23819,12 +23669,9 @@ def list_instance_functions_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23876,7 +23723,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23969,12 +23816,9 @@ async def get_instance_function_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24004,7 +23848,7 @@ async def get_instance_function_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24257,12 +24101,9 @@ async def delete_instance_function_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24292,7 +24133,7 @@ async def delete_instance_function_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24487,12 +24328,9 @@ async def delete_function_secret_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24523,7 +24361,7 @@ async def delete_function_secret_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -25022,12 +24860,9 @@ async def delete_host_secret_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -25058,7 +24893,7 @@ async def delete_host_secret_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -25698,12 +25533,9 @@ async def delete_hybrid_connection_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -25734,7 +25566,7 @@ async def delete_hybrid_connection_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26281,12 +26113,9 @@ async def delete_relay_service_connection_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26316,7 +26145,7 @@ async def delete_relay_service_connection_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26719,11 +26548,8 @@ async def _create_instance_ms_deploy_operation_slot_initial( # pylint: disable= error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26770,7 +26596,7 @@ async def _create_instance_ms_deploy_operation_slot_initial( # pylint: disable= await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26956,12 +26782,9 @@ async def get_instance_ms_deploy_log_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26991,7 +26814,7 @@ async def get_instance_ms_deploy_log_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27034,12 +26857,9 @@ def list_instance_processes_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27092,7 +26912,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27127,12 +26947,9 @@ async def get_instance_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27163,7 +26980,7 @@ async def get_instance_process_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27202,12 +27019,9 @@ async def delete_instance_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27238,7 +27052,7 @@ async def delete_instance_process_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27272,12 +27086,9 @@ async def get_instance_process_dump_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27313,7 +27124,7 @@ async def get_instance_process_dump_slot( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27359,12 +27170,9 @@ def list_instance_process_modules_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27418,7 +27226,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27462,12 +27270,9 @@ async def get_instance_process_module_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27499,7 +27304,7 @@ async def get_instance_process_module_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27544,12 +27349,9 @@ def list_instance_process_threads_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27603,7 +27405,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -28140,12 +27942,9 @@ async def delete_swift_virtual_network_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -28174,7 +27973,7 @@ async def delete_swift_virtual_network_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -28371,12 +28170,9 @@ async def list_network_features_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -28406,7 +28202,7 @@ async def list_network_features_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30495,12 +30291,9 @@ def list_processes_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30552,7 +30345,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30584,12 +30377,9 @@ async def get_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30619,7 +30409,7 @@ async def get_process_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30655,12 +30445,9 @@ async def delete_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30690,7 +30477,7 @@ async def delete_process_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30721,12 +30508,9 @@ async def get_process_dump_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30761,7 +30545,7 @@ async def get_process_dump_slot( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30804,12 +30588,9 @@ def list_process_modules_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30862,7 +30643,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30896,12 +30677,9 @@ async def get_process_module_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30932,7 +30710,7 @@ async def get_process_module_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30974,12 +30752,9 @@ def list_process_threads_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -31032,7 +30807,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32352,12 +32127,9 @@ def list_site_extensions_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32409,7 +32181,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32440,12 +32212,9 @@ async def get_site_extension_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32475,7 +32244,7 @@ async def get_site_extension_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32494,10 +32263,6 @@ async def _install_site_extension_slot_initial( 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 429: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32635,12 +32400,9 @@ async def delete_site_extension_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32670,7 +32432,7 @@ async def delete_site_extension_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -33534,12 +33296,9 @@ async def delete_source_control_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -33569,7 +33328,7 @@ async def delete_source_control_slot( response = pipeline_response.http_response if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34264,12 +34023,9 @@ async def get_triggered_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -34299,7 +34055,7 @@ async def get_triggered_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34402,12 +34158,9 @@ def list_triggered_web_job_history_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -34460,7 +34213,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34494,12 +34247,9 @@ async def get_triggered_web_job_history_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -34530,7 +34280,7 @@ async def get_triggered_web_job_history_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34564,12 +34314,9 @@ async def run_triggered_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -34599,7 +34346,7 @@ async def run_triggered_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -35020,12 +34767,9 @@ async def delete_vnet_connection_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -35055,7 +34799,7 @@ async def delete_vnet_connection_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -35253,12 +34997,9 @@ async def get_vnet_connection_gateway_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -35289,7 +35030,7 @@ async def get_vnet_connection_gateway_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -36592,12 +36333,9 @@ async def delete_source_control( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -36626,7 +36364,7 @@ async def delete_source_control( response = pipeline_response.http_response if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -37277,12 +37015,9 @@ async def get_triggered_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -37311,7 +37046,7 @@ async def get_triggered_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -37407,12 +37142,9 @@ def list_triggered_web_job_history( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -37464,7 +37196,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -37495,12 +37227,9 @@ async def get_triggered_web_job_history( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -37530,7 +37259,7 @@ async def get_triggered_web_job_history( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -37561,12 +37290,9 @@ async def run_triggered_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -37595,7 +37321,7 @@ async def run_triggered_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -37986,12 +37712,9 @@ async def delete_vnet_connection(self, resource_group_name: str, name: str, vnet """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38020,7 +37743,7 @@ async def delete_vnet_connection(self, resource_group_name: str, name: str, vnet response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -38202,12 +37925,9 @@ async def get_vnet_connection_gateway( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38237,7 +37957,7 @@ async def get_vnet_connection_gateway( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -39098,12 +38818,9 @@ async def get_instance_workflow_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -39133,7 +38850,7 @@ async def get_instance_workflow_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -39312,12 +39029,9 @@ async def get_workflow( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -39346,7 +39060,7 @@ async def get_workflow( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/models/_models_py3.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/models/_models_py3.py index c40a615f7591..22a291c30d40 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/models/_models_py3.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/models/_models_py3.py @@ -16963,8 +16963,8 @@ class RampUpRule(_serialization.Model): :code:`ActionHostName`. :vartype reroute_percentage: float :ivar change_step: In auto ramp up scenario this is the step to add/remove from - :code:`ReroutePercentage` until it reaches - \\n:code:`MinReroutePercentage` or + :code:`ReroutePercentage` until it reaches \\n\\ + :code:`MinReroutePercentage` or :code:`MaxReroutePercentage`. Site metrics are checked every N minutes specified in :code:`ChangeIntervalInMinutes`.\\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in @@ -17019,8 +17019,8 @@ def __init__( :code:`ActionHostName`. :paramtype reroute_percentage: float :keyword change_step: In auto ramp up scenario this is the step to add/remove from - :code:`ReroutePercentage` until it reaches - \\n:code:`MinReroutePercentage` or + :code:`ReroutePercentage` until it reaches \\n\\ + :code:`MinReroutePercentage` or :code:`MaxReroutePercentage`. Site metrics are checked every N minutes specified in :code:`ChangeIntervalInMinutes`.\\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_app_service_plans_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_app_service_plans_operations.py index 4621c65826fc..95d540901176 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_app_service_plans_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_app_service_plans_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( @@ -1301,12 +1301,9 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.App """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -1334,7 +1331,7 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.App response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -2603,12 +2600,9 @@ def get_vnet_from_server_farm( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -2637,7 +2631,7 @@ def get_vnet_from_server_farm( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -2952,12 +2946,9 @@ def get_route_for_vnet( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -2987,7 +2978,7 @@ def get_route_for_vnet( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -3097,16 +3088,9 @@ def create_or_update_vnet_route( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -3148,7 +3132,7 @@ def create_or_update_vnet_route( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -3181,12 +3165,9 @@ def delete_vnet_route( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -3216,7 +3197,7 @@ def delete_vnet_route( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -3322,16 +3303,9 @@ def update_vnet_route( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -3373,7 +3347,7 @@ def update_vnet_route( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_container_apps_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_container_apps_operations.py index 8e04ee7f9381..dda876004c3a 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_container_apps_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_container_apps_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( @@ -435,12 +435,9 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.Con """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -468,7 +465,7 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.Con response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_domains_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_domains_operations.py index 69580a5e98f5..14c8124bcf34 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_domains_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_domains_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( @@ -2118,10 +2118,6 @@ def transfer_out(self, resource_group_name: str, domain_name: str, **kwargs: Any 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_web_apps_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_web_apps_operations.py index 64ddd1942393..ce0c936d2a48 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_web_apps_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2023_01_01/operations/_web_apps_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( @@ -16754,12 +16754,9 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.Sit """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16787,7 +16784,7 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.Sit response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -17020,12 +17017,9 @@ def delete( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -17055,7 +17049,7 @@ def delete( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -17694,12 +17688,9 @@ def delete_backup( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -17728,7 +17719,7 @@ def delete_backup( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -21874,12 +21865,9 @@ def get_continuous_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -21908,7 +21896,7 @@ def get_continuous_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -21997,12 +21985,9 @@ def start_continuous_web_job( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -22031,7 +22016,7 @@ def start_continuous_web_job( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22058,12 +22043,9 @@ def stop_continuous_web_job( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -22092,7 +22074,7 @@ def stop_continuous_web_job( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23410,11 +23392,8 @@ def _create_ms_deploy_operation_initial( error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23459,7 +23438,7 @@ def _create_ms_deploy_operation_initial( response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23611,12 +23590,9 @@ def get_ms_deploy_log(self, resource_group_name: str, name: str, **kwargs: Any) """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23644,7 +23620,7 @@ def get_ms_deploy_log(self, resource_group_name: str, name: str, **kwargs: Any) response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23794,12 +23770,9 @@ def list_functions( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23850,7 +23823,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23935,12 +23908,9 @@ def get_function( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23969,7 +23939,7 @@ def get_function( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24208,12 +24178,9 @@ def delete_function( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24242,7 +24209,7 @@ def delete_function( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24425,12 +24392,9 @@ def delete_function_secret( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24460,7 +24424,7 @@ def delete_function_secret( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24934,12 +24898,9 @@ def delete_host_secret( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24969,7 +24930,7 @@ def delete_host_secret( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -25568,12 +25529,9 @@ def delete_hybrid_connection( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -25603,7 +25561,7 @@ def delete_hybrid_connection( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26111,12 +26069,9 @@ def delete_relay_service_connection( # pylint: disable=inconsistent-return-stat """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26145,7 +26100,7 @@ def delete_relay_service_connection( # pylint: disable=inconsistent-return-stat response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26521,11 +26476,8 @@ def _create_instance_ms_deploy_operation_initial( # pylint: disable=name-too-lo error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26571,7 +26523,7 @@ def _create_instance_ms_deploy_operation_initial( # pylint: disable=name-too-lo response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26741,12 +26693,9 @@ def get_instance_ms_deploy_log( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26775,7 +26724,7 @@ def get_instance_ms_deploy_log( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26815,12 +26764,9 @@ def list_instance_processes( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26872,7 +26818,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26904,12 +26850,9 @@ def get_instance_process( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26939,7 +26882,7 @@ def get_instance_process( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26975,12 +26918,9 @@ def delete_instance_process( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27010,7 +26950,7 @@ def delete_instance_process( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27041,12 +26981,9 @@ def get_instance_process_dump( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27081,7 +27018,7 @@ def get_instance_process_dump( response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27123,12 +27060,9 @@ def list_instance_process_modules( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27181,7 +27115,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27215,12 +27149,9 @@ def get_instance_process_module( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27251,7 +27182,7 @@ def get_instance_process_module( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27292,12 +27223,9 @@ def list_instance_process_threads( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27350,7 +27278,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -28255,12 +28183,9 @@ def delete_swift_virtual_network( # pylint: disable=inconsistent-return-stateme """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -28288,7 +28213,7 @@ def delete_swift_virtual_network( # pylint: disable=inconsistent-return-stateme response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -28469,12 +28394,9 @@ def list_network_features( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -28503,7 +28425,7 @@ def list_network_features( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30456,12 +30378,9 @@ def list_processes(self, resource_group_name: str, name: str, **kwargs: Any) -> error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30512,7 +30431,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30539,12 +30458,9 @@ def get_process(self, resource_group_name: str, name: str, process_id: str, **kw """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30573,7 +30489,7 @@ def get_process(self, resource_group_name: str, name: str, process_id: str, **kw response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30606,12 +30522,9 @@ def delete_process( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30640,7 +30553,7 @@ def delete_process( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30666,12 +30579,9 @@ def get_process_dump(self, resource_group_name: str, name: str, process_id: str, """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30705,7 +30615,7 @@ def get_process_dump(self, resource_group_name: str, name: str, process_id: str, response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30744,12 +30654,9 @@ def list_process_modules( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30801,7 +30708,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30832,12 +30739,9 @@ def get_process_module( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30867,7 +30771,7 @@ def get_process_module( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30905,12 +30809,9 @@ def list_process_threads( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30962,7 +30863,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32177,12 +32078,9 @@ def list_site_extensions( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32233,7 +32131,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32261,12 +32159,9 @@ def get_site_extension( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32295,7 +32190,7 @@ def get_site_extension( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32314,10 +32209,6 @@ def _install_site_extension_initial( 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 429: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32446,12 +32337,9 @@ def delete_site_extension( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32480,7 +32368,7 @@ def delete_site_extension( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32589,12 +32477,9 @@ def get_slot(self, resource_group_name: str, name: str, slot: str, **kwargs: Any """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32623,7 +32508,7 @@ def get_slot(self, resource_group_name: str, name: str, slot: str, **kwargs: Any response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32883,12 +32768,9 @@ def delete_slot( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -32919,7 +32801,7 @@ def delete_slot( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -33618,12 +33500,9 @@ def delete_backup_slot( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -33653,7 +33532,7 @@ def delete_backup_slot( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -37920,12 +37799,9 @@ def get_continuous_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -37955,7 +37831,7 @@ def get_continuous_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -38051,12 +37927,9 @@ def start_continuous_web_job_slot( # pylint: disable=inconsistent-return-statem """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38086,7 +37959,7 @@ def start_continuous_web_job_slot( # pylint: disable=inconsistent-return-statem response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -38116,12 +37989,9 @@ def stop_continuous_web_job_slot( # pylint: disable=inconsistent-return-stateme """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38151,7 +38021,7 @@ def stop_continuous_web_job_slot( # pylint: disable=inconsistent-return-stateme response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -39579,11 +39449,8 @@ def _create_ms_deploy_operation_slot_initial( error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -39629,7 +39496,7 @@ def _create_ms_deploy_operation_slot_initial( response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -39803,12 +39670,9 @@ def get_ms_deploy_log_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -39837,7 +39701,7 @@ def get_ms_deploy_log_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -39874,12 +39738,9 @@ def list_instance_functions_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -39931,7 +39792,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -40022,12 +39883,9 @@ def get_instance_function_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -40057,7 +39915,7 @@ def get_instance_function_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -40310,12 +40168,9 @@ def delete_instance_function_slot( # pylint: disable=inconsistent-return-statem """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -40345,7 +40200,7 @@ def delete_instance_function_slot( # pylint: disable=inconsistent-return-statem response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -40540,12 +40395,9 @@ def delete_function_secret_slot( # pylint: disable=inconsistent-return-statemen """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -40576,7 +40428,7 @@ def delete_function_secret_slot( # pylint: disable=inconsistent-return-statemen response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -41077,12 +40929,9 @@ def delete_host_secret_slot( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -41113,7 +40962,7 @@ def delete_host_secret_slot( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -41752,12 +41601,9 @@ def delete_hybrid_connection_slot( # pylint: disable=inconsistent-return-statem """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -41788,7 +41634,7 @@ def delete_hybrid_connection_slot( # pylint: disable=inconsistent-return-statem response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -42335,12 +42181,9 @@ def delete_relay_service_connection_slot( # pylint: disable=inconsistent-return """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -42370,7 +42213,7 @@ def delete_relay_service_connection_slot( # pylint: disable=inconsistent-return response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -42772,11 +42615,8 @@ def _create_instance_ms_deploy_operation_slot_initial( # pylint: disable=name-t error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -42823,7 +42663,7 @@ def _create_instance_ms_deploy_operation_slot_initial( # pylint: disable=name-t response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43009,12 +42849,9 @@ def get_instance_ms_deploy_log_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43044,7 +42881,7 @@ def get_instance_ms_deploy_log_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43087,12 +42924,9 @@ def list_instance_processes_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43145,7 +42979,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43180,12 +43014,9 @@ def get_instance_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43216,7 +43047,7 @@ def get_instance_process_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43255,12 +43086,9 @@ def delete_instance_process_slot( # pylint: disable=inconsistent-return-stateme """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43291,7 +43119,7 @@ def delete_instance_process_slot( # pylint: disable=inconsistent-return-stateme response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43325,12 +43153,9 @@ def get_instance_process_dump_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43366,7 +43191,7 @@ def get_instance_process_dump_slot( response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43411,12 +43236,9 @@ def list_instance_process_modules_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43470,7 +43292,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43514,12 +43336,9 @@ def get_instance_process_module_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43551,7 +43370,7 @@ def get_instance_process_module_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43595,12 +43414,9 @@ def list_instance_process_threads_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43654,7 +43470,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -44191,12 +44007,9 @@ def delete_swift_virtual_network_slot( # pylint: disable=inconsistent-return-st """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -44225,7 +44038,7 @@ def delete_swift_virtual_network_slot( # pylint: disable=inconsistent-return-st response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -44422,12 +44235,9 @@ def list_network_features_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -44457,7 +44267,7 @@ def list_network_features_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -46540,12 +46350,9 @@ def list_processes_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -46597,7 +46404,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -46629,12 +46436,9 @@ def get_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -46664,7 +46468,7 @@ def get_process_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -46700,12 +46504,9 @@ def delete_process_slot( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -46735,7 +46536,7 @@ def delete_process_slot( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -46766,12 +46567,9 @@ def get_process_dump_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -46806,7 +46604,7 @@ def get_process_dump_slot( response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -46848,12 +46646,9 @@ def list_process_modules_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -46906,7 +46701,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -46940,12 +46735,9 @@ def get_process_module_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -46976,7 +46768,7 @@ def get_process_module_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -47017,12 +46809,9 @@ def list_process_threads_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -47075,7 +46864,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -48393,12 +48182,9 @@ def list_site_extensions_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -48450,7 +48236,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -48481,12 +48267,9 @@ def get_site_extension_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -48516,7 +48299,7 @@ def get_site_extension_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -48535,10 +48318,6 @@ def _install_site_extension_slot_initial( 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 429: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -48675,12 +48454,9 @@ def delete_site_extension_slot( # pylint: disable=inconsistent-return-statement """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -48710,7 +48486,7 @@ def delete_site_extension_slot( # pylint: disable=inconsistent-return-statement response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -49568,12 +49344,9 @@ def delete_source_control_slot( # pylint: disable=inconsistent-return-statement """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -49603,7 +49376,7 @@ def delete_source_control_slot( # pylint: disable=inconsistent-return-statement response = pipeline_response.http_response if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -50306,12 +50079,9 @@ def get_triggered_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -50341,7 +50111,7 @@ def get_triggered_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -50443,12 +50213,9 @@ def list_triggered_web_job_history_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -50501,7 +50268,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -50535,12 +50302,9 @@ def get_triggered_web_job_history_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -50571,7 +50335,7 @@ def get_triggered_web_job_history_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -50605,12 +50369,9 @@ def run_triggered_web_job_slot( # pylint: disable=inconsistent-return-statement """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -50640,7 +50401,7 @@ def run_triggered_web_job_slot( # pylint: disable=inconsistent-return-statement response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -51060,12 +50821,9 @@ def delete_vnet_connection_slot( # pylint: disable=inconsistent-return-statemen """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -51095,7 +50853,7 @@ def delete_vnet_connection_slot( # pylint: disable=inconsistent-return-statemen response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -51293,12 +51051,9 @@ def get_vnet_connection_gateway_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -51329,7 +51084,7 @@ def get_vnet_connection_gateway_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -52626,12 +52381,9 @@ def delete_source_control( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -52660,7 +52412,7 @@ def delete_source_control( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -53319,12 +53071,9 @@ def get_triggered_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -53353,7 +53102,7 @@ def get_triggered_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -53448,12 +53197,9 @@ def list_triggered_web_job_history( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -53505,7 +53251,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -53536,12 +53282,9 @@ def get_triggered_web_job_history( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -53571,7 +53314,7 @@ def get_triggered_web_job_history( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -53602,12 +53345,9 @@ def run_triggered_web_job( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -53636,7 +53376,7 @@ def run_triggered_web_job( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -54028,12 +53768,9 @@ def delete_vnet_connection( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -54062,7 +53799,7 @@ def delete_vnet_connection( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -54244,12 +53981,9 @@ def get_vnet_connection_gateway( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -54279,7 +54013,7 @@ def get_vnet_connection_gateway( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -55137,12 +54871,9 @@ def get_instance_workflow_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -55172,7 +54903,7 @@ def get_instance_workflow_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -55350,12 +55081,9 @@ def get_workflow( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -55384,7 +55112,7 @@ def get_workflow( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/_version.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/_version.py index 9bd4c9b55137..5c14e0d8303d 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/_version.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "0.0.0" +VERSION = "0.42.0" diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_app_service_plans_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_app_service_plans_operations.py index 93e8187ef64a..6b8130582799 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_app_service_plans_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_app_service_plans_operations.py @@ -8,21 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import ( - Any, - AsyncIterable, - AsyncIterator, - Callable, - Dict, - IO, - List, - Optional, - Type, - TypeVar, - Union, - cast, - overload, -) +from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -287,12 +273,9 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -320,7 +303,7 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -1589,12 +1572,9 @@ async def get_vnet_from_server_farm( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -1623,7 +1603,7 @@ async def get_vnet_from_server_farm( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -1938,12 +1918,9 @@ async def get_route_for_vnet( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -1973,7 +1950,7 @@ async def get_route_for_vnet( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -2083,16 +2060,9 @@ async def create_or_update_vnet_route( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -2134,7 +2104,7 @@ async def create_or_update_vnet_route( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -2167,12 +2137,9 @@ async def delete_vnet_route( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -2202,7 +2169,7 @@ async def delete_vnet_route( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -2308,16 +2275,9 @@ async def update_vnet_route( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -2359,7 +2319,7 @@ async def update_vnet_route( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_container_apps_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_container_apps_operations.py index e4d035925685..d8eae789a963 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_container_apps_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_container_apps_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -243,12 +243,9 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -276,7 +273,7 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_domains_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_domains_operations.py index 8a4ed4945aae..eb6b30056f25 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_domains_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_domains_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -1552,10 +1552,6 @@ async def transfer_out(self, resource_group_name: str, domain_name: str, **kwarg 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_web_apps_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_web_apps_operations.py index 6904566f03d2..cf1e73f5c728 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_web_apps_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/aio/operations/_web_apps_operations.py @@ -8,21 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import ( - Any, - AsyncIterable, - AsyncIterator, - Callable, - Dict, - IO, - List, - Optional, - Type, - TypeVar, - Union, - cast, - overload, -) +from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -674,12 +660,9 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -707,7 +690,7 @@ async def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _mode response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -940,12 +923,9 @@ async def delete( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -975,7 +955,7 @@ async def delete( response = pipeline_response.http_response if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -1612,12 +1592,9 @@ async def delete_backup(self, resource_group_name: str, name: str, backup_id: st """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -1646,7 +1623,7 @@ async def delete_backup(self, resource_group_name: str, name: str, backup_id: st response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -5803,12 +5780,9 @@ async def get_continuous_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -5837,7 +5811,7 @@ async def get_continuous_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -5926,12 +5900,9 @@ async def start_continuous_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -5960,7 +5931,7 @@ async def start_continuous_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -5987,12 +5958,9 @@ async def stop_continuous_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -6021,7 +5989,7 @@ async def stop_continuous_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -7343,11 +7311,8 @@ async def _create_ms_deploy_operation_initial( error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -7392,7 +7357,7 @@ async def _create_ms_deploy_operation_initial( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -7544,12 +7509,9 @@ async def get_ms_deploy_log(self, resource_group_name: str, name: str, **kwargs: """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -7577,7 +7539,7 @@ async def get_ms_deploy_log(self, resource_group_name: str, name: str, **kwargs: response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -7728,12 +7690,9 @@ def list_functions( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -7784,7 +7743,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -7869,12 +7828,9 @@ async def get_function( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -7903,7 +7859,7 @@ async def get_function( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -8140,12 +8096,9 @@ async def delete_function(self, resource_group_name: str, name: str, function_na """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -8174,7 +8127,7 @@ async def delete_function(self, resource_group_name: str, name: str, function_na response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -8357,12 +8310,9 @@ async def delete_function_secret( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -8392,7 +8342,7 @@ async def delete_function_secret( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -8862,12 +8812,9 @@ async def delete_host_secret( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -8897,7 +8844,7 @@ async def delete_host_secret( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -9497,12 +9444,9 @@ async def delete_hybrid_connection( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -9532,7 +9476,7 @@ async def delete_hybrid_connection( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10042,12 +9986,9 @@ async def delete_relay_service_connection( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10076,7 +10017,7 @@ async def delete_relay_service_connection( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10453,11 +10394,8 @@ async def _create_instance_ms_deploy_operation_initial( # pylint: disable=name- error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10503,7 +10441,7 @@ async def _create_instance_ms_deploy_operation_initial( # pylint: disable=name- await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10673,12 +10611,9 @@ async def get_instance_ms_deploy_log( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10707,7 +10642,7 @@ async def get_instance_ms_deploy_log( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10747,12 +10682,9 @@ def list_instance_processes( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10804,7 +10736,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10836,12 +10768,9 @@ async def get_instance_process( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10871,7 +10800,7 @@ async def get_instance_process( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10907,12 +10836,9 @@ async def delete_instance_process( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -10942,7 +10868,7 @@ async def delete_instance_process( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -10973,12 +10899,9 @@ async def get_instance_process_dump( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -11013,7 +10936,7 @@ async def get_instance_process_dump( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -11056,12 +10979,9 @@ def list_instance_process_modules( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -11114,7 +11034,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -11148,12 +11068,9 @@ async def get_instance_process_module( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -11184,7 +11101,7 @@ async def get_instance_process_module( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -11226,12 +11143,9 @@ def list_instance_process_threads( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -11284,7 +11198,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -12249,12 +12163,9 @@ async def delete_swift_virtual_network(self, resource_group_name: str, name: str """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -12282,7 +12193,7 @@ async def delete_swift_virtual_network(self, resource_group_name: str, name: str response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -12463,12 +12374,9 @@ async def list_network_features( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -12497,7 +12405,7 @@ async def list_network_features( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14454,12 +14362,9 @@ def list_processes( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14510,7 +14415,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14539,12 +14444,9 @@ async def get_process( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14573,7 +14475,7 @@ async def get_process( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14604,12 +14506,9 @@ async def delete_process(self, resource_group_name: str, name: str, process_id: """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14638,7 +14537,7 @@ async def delete_process(self, resource_group_name: str, name: str, process_id: response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14666,12 +14565,9 @@ async def get_process_dump( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14705,7 +14601,7 @@ async def get_process_dump( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14745,12 +14641,9 @@ def list_process_modules( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14802,7 +14695,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14833,12 +14726,9 @@ async def get_process_module( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14868,7 +14758,7 @@ async def get_process_module( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -14907,12 +14797,9 @@ def list_process_threads( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -14964,7 +14851,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -16528,12 +16415,9 @@ def list_site_extensions( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16584,7 +16468,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -16612,12 +16496,9 @@ async def get_site_extension( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16646,7 +16527,7 @@ async def get_site_extension( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -16665,10 +16546,6 @@ async def _install_site_extension_initial( 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 429: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16798,12 +16675,9 @@ async def delete_site_extension( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16832,7 +16706,7 @@ async def delete_site_extension( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -16941,12 +16815,9 @@ async def get_slot(self, resource_group_name: str, name: str, slot: str, **kwarg """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -16975,7 +16846,7 @@ async def get_slot(self, resource_group_name: str, name: str, slot: str, **kwarg response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -17235,12 +17106,9 @@ async def delete_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -17271,7 +17139,7 @@ async def delete_slot( response = pipeline_response.http_response if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -17970,12 +17838,9 @@ async def delete_backup_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -18005,7 +17870,7 @@ async def delete_backup_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22277,12 +22142,9 @@ async def get_continuous_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -22312,7 +22174,7 @@ async def get_continuous_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22408,12 +22270,9 @@ async def start_continuous_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -22443,7 +22302,7 @@ async def start_continuous_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22473,12 +22332,9 @@ async def stop_continuous_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -22508,7 +22364,7 @@ async def stop_continuous_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23938,11 +23794,8 @@ async def _create_ms_deploy_operation_slot_initial( error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23988,7 +23841,7 @@ async def _create_ms_deploy_operation_slot_initial( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24162,12 +24015,9 @@ async def get_ms_deploy_log_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24196,7 +24046,7 @@ async def get_ms_deploy_log_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24234,12 +24084,9 @@ def list_instance_functions_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24291,7 +24138,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24384,12 +24231,9 @@ async def get_instance_function_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24419,7 +24263,7 @@ async def get_instance_function_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24672,12 +24516,9 @@ async def delete_instance_function_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24707,7 +24548,7 @@ async def delete_instance_function_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24902,12 +24743,9 @@ async def delete_function_secret_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24938,7 +24776,7 @@ async def delete_function_secret_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -25437,12 +25275,9 @@ async def delete_host_secret_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -25473,7 +25308,7 @@ async def delete_host_secret_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26113,12 +25948,9 @@ async def delete_hybrid_connection_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26149,7 +25981,7 @@ async def delete_hybrid_connection_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26696,12 +26528,9 @@ async def delete_relay_service_connection_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26731,7 +26560,7 @@ async def delete_relay_service_connection_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27134,11 +26963,8 @@ async def _create_instance_ms_deploy_operation_slot_initial( # pylint: disable= error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27185,7 +27011,7 @@ async def _create_instance_ms_deploy_operation_slot_initial( # pylint: disable= await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27371,12 +27197,9 @@ async def get_instance_ms_deploy_log_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27406,7 +27229,7 @@ async def get_instance_ms_deploy_log_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27449,12 +27272,9 @@ def list_instance_processes_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27507,7 +27327,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27542,12 +27362,9 @@ async def get_instance_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27578,7 +27395,7 @@ async def get_instance_process_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27617,12 +27434,9 @@ async def delete_instance_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27653,7 +27467,7 @@ async def delete_instance_process_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27687,12 +27501,9 @@ async def get_instance_process_dump_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27728,7 +27539,7 @@ async def get_instance_process_dump_slot( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27774,12 +27585,9 @@ def list_instance_process_modules_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27833,7 +27641,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27877,12 +27685,9 @@ async def get_instance_process_module_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27914,7 +27719,7 @@ async def get_instance_process_module_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27959,12 +27764,9 @@ def list_instance_process_threads_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -28018,7 +27820,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -28555,12 +28357,9 @@ async def delete_swift_virtual_network_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -28589,7 +28388,7 @@ async def delete_swift_virtual_network_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -28786,12 +28585,9 @@ async def list_network_features_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -28821,7 +28617,7 @@ async def list_network_features_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30910,12 +30706,9 @@ def list_processes_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30967,7 +30760,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30999,12 +30792,9 @@ async def get_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -31034,7 +30824,7 @@ async def get_process_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -31070,12 +30860,9 @@ async def delete_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -31105,7 +30892,7 @@ async def delete_process_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -31136,12 +30923,9 @@ async def get_process_dump_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -31176,7 +30960,7 @@ async def get_process_dump_slot( await response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -31219,12 +31003,9 @@ def list_process_modules_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -31277,7 +31058,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -31311,12 +31092,9 @@ async def get_process_module_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -31347,7 +31125,7 @@ async def get_process_module_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -31389,12 +31167,9 @@ def list_process_threads_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -31447,7 +31222,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -33141,12 +32916,9 @@ def list_site_extensions_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -33198,7 +32970,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -33229,12 +33001,9 @@ async def get_site_extension_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -33264,7 +33033,7 @@ async def get_site_extension_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -33283,10 +33052,6 @@ async def _install_site_extension_slot_initial( 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 429: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -33424,12 +33189,9 @@ async def delete_site_extension_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -33459,7 +33221,7 @@ async def delete_site_extension_slot( response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34323,12 +34085,9 @@ async def delete_source_control_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -34358,7 +34117,7 @@ async def delete_source_control_slot( response = pipeline_response.http_response if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -35053,12 +34812,9 @@ async def get_triggered_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -35088,7 +34844,7 @@ async def get_triggered_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -35191,12 +34947,9 @@ def list_triggered_web_job_history_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -35249,7 +35002,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -35283,12 +35036,9 @@ async def get_triggered_web_job_history_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -35319,7 +35069,7 @@ async def get_triggered_web_job_history_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -35353,12 +35103,9 @@ async def run_triggered_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -35388,7 +35135,7 @@ async def run_triggered_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -35809,12 +35556,9 @@ async def delete_vnet_connection_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -35844,7 +35588,7 @@ async def delete_vnet_connection_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -36042,12 +35786,9 @@ async def get_vnet_connection_gateway_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -36078,7 +35819,7 @@ async def get_vnet_connection_gateway_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -37381,12 +37122,9 @@ async def delete_source_control( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -37415,7 +37153,7 @@ async def delete_source_control( response = pipeline_response.http_response if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -38066,12 +37804,9 @@ async def get_triggered_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38100,7 +37835,7 @@ async def get_triggered_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -38196,12 +37931,9 @@ def list_triggered_web_job_history( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38253,7 +37985,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -38284,12 +38016,9 @@ async def get_triggered_web_job_history( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38319,7 +38048,7 @@ async def get_triggered_web_job_history( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -38350,12 +38079,9 @@ async def run_triggered_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38384,7 +38110,7 @@ async def run_triggered_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -38775,12 +38501,9 @@ async def delete_vnet_connection(self, resource_group_name: str, name: str, vnet """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38809,7 +38532,7 @@ async def delete_vnet_connection(self, resource_group_name: str, name: str, vnet response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -38991,12 +38714,9 @@ async def get_vnet_connection_gateway( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -39026,7 +38746,7 @@ async def get_vnet_connection_gateway( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -39887,12 +39607,9 @@ async def get_instance_workflow_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -39922,7 +39639,7 @@ async def get_instance_workflow_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -40101,12 +39818,9 @@ async def get_workflow( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -40135,7 +39849,7 @@ async def get_workflow( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/models/_models_py3.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/models/_models_py3.py index f2f3806becf4..f1d6a2918459 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/models/_models_py3.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/models/_models_py3.py @@ -11441,8 +11441,8 @@ class FunctionsDeploymentStorage(_serialization.Model): "blobContainer" :vartype type: str or ~azure.mgmt.web.v2024_04_01.models.FunctionsDeploymentStorageType :ivar value: Property to set the URL for the selected Azure Storage type. Example: For - blobContainer, the value could be - https://:code:``.blob.core.windows.net/:code:``. + blobContainer, the value could be https://\\ + :code:``.blob.core.windows.net/\\ :code:``. :vartype value: str :ivar authentication: Authentication method to access the storage account for deployment. :vartype authentication: @@ -11468,8 +11468,8 @@ def __init__( "blobContainer" :paramtype type: str or ~azure.mgmt.web.v2024_04_01.models.FunctionsDeploymentStorageType :keyword value: Property to set the URL for the selected Azure Storage type. Example: For - blobContainer, the value could be - https://:code:``.blob.core.windows.net/:code:``. + blobContainer, the value could be https://\\ + :code:``.blob.core.windows.net/\\ :code:``. :paramtype value: str :keyword authentication: Authentication method to access the storage account for deployment. :paramtype authentication: @@ -17380,8 +17380,8 @@ class RampUpRule(_serialization.Model): :code:`ActionHostName`. :vartype reroute_percentage: float :ivar change_step: In auto ramp up scenario this is the step to add/remove from - :code:`ReroutePercentage` until it reaches - \\n:code:`MinReroutePercentage` or + :code:`ReroutePercentage` until it reaches \\n\\ + :code:`MinReroutePercentage` or :code:`MaxReroutePercentage`. Site metrics are checked every N minutes specified in :code:`ChangeIntervalInMinutes`.\\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in @@ -17436,8 +17436,8 @@ def __init__( :code:`ActionHostName`. :paramtype reroute_percentage: float :keyword change_step: In auto ramp up scenario this is the step to add/remove from - :code:`ReroutePercentage` until it reaches - \\n:code:`MinReroutePercentage` or + :code:`ReroutePercentage` until it reaches \\n\\ + :code:`MinReroutePercentage` or :code:`MaxReroutePercentage`. Site metrics are checked every N minutes specified in :code:`ChangeIntervalInMinutes`.\\nCustom decision algorithm can be provided in TiPCallback site extension which URL can be specified in diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_app_service_plans_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_app_service_plans_operations.py index 98742360b1bc..2191bee2c6a2 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_app_service_plans_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_app_service_plans_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( @@ -1301,12 +1301,9 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.App """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -1334,7 +1331,7 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.App response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -2603,12 +2600,9 @@ def get_vnet_from_server_farm( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -2637,7 +2631,7 @@ def get_vnet_from_server_farm( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -2952,12 +2946,9 @@ def get_route_for_vnet( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -2987,7 +2978,7 @@ def get_route_for_vnet( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -3097,16 +3088,9 @@ def create_or_update_vnet_route( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -3148,7 +3132,7 @@ def create_or_update_vnet_route( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -3181,12 +3165,9 @@ def delete_vnet_route( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -3216,7 +3197,7 @@ def delete_vnet_route( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -3322,16 +3303,9 @@ def update_vnet_route( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -3373,7 +3347,7 @@ def update_vnet_route( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_container_apps_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_container_apps_operations.py index b3a0308cfdee..6da7e00ab4f8 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_container_apps_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_container_apps_operations.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( @@ -435,12 +435,9 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.Con """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -468,7 +465,7 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.Con response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_domains_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_domains_operations.py index 594f0db00053..d5ed7066ccdd 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_domains_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_domains_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, Callable, Dict, IO, Iterable, Iterator, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( @@ -2118,10 +2118,6 @@ def transfer_out(self, resource_group_name: str, domain_name: str, **kwargs: Any 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 400: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) diff --git a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_web_apps_operations.py b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_web_apps_operations.py index c884c2b1107d..22a3d802f53d 100644 --- a/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_web_apps_operations.py +++ b/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2024_04_01/operations/_web_apps_operations.py @@ -8,7 +8,7 @@ # -------------------------------------------------------------------------- from io import IOBase import sys -from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, Type, TypeVar, Union, cast, overload +from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( @@ -17124,12 +17124,9 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.Sit """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -17157,7 +17154,7 @@ def get(self, resource_group_name: str, name: str, **kwargs: Any) -> _models.Sit response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -17390,12 +17387,9 @@ def delete( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -17425,7 +17419,7 @@ def delete( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -18064,12 +18058,9 @@ def delete_backup( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -18098,7 +18089,7 @@ def delete_backup( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22244,12 +22235,9 @@ def get_continuous_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -22278,7 +22266,7 @@ def get_continuous_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22367,12 +22355,9 @@ def start_continuous_web_job( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -22401,7 +22386,7 @@ def start_continuous_web_job( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -22428,12 +22413,9 @@ def stop_continuous_web_job( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -22462,7 +22444,7 @@ def stop_continuous_web_job( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23780,11 +23762,8 @@ def _create_ms_deploy_operation_initial( error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -23829,7 +23808,7 @@ def _create_ms_deploy_operation_initial( response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -23981,12 +23960,9 @@ def get_ms_deploy_log(self, resource_group_name: str, name: str, **kwargs: Any) """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24014,7 +23990,7 @@ def get_ms_deploy_log(self, resource_group_name: str, name: str, **kwargs: Any) response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24164,12 +24140,9 @@ def list_functions( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24220,7 +24193,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24305,12 +24278,9 @@ def get_function( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24339,7 +24309,7 @@ def get_function( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24578,12 +24548,9 @@ def delete_function( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24612,7 +24579,7 @@ def delete_function( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -24795,12 +24762,9 @@ def delete_function_secret( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -24830,7 +24794,7 @@ def delete_function_secret( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -25304,12 +25268,9 @@ def delete_host_secret( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -25339,7 +25300,7 @@ def delete_host_secret( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -25938,12 +25899,9 @@ def delete_hybrid_connection( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -25973,7 +25931,7 @@ def delete_hybrid_connection( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26481,12 +26439,9 @@ def delete_relay_service_connection( # pylint: disable=inconsistent-return-stat """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26515,7 +26470,7 @@ def delete_relay_service_connection( # pylint: disable=inconsistent-return-stat response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -26891,11 +26846,8 @@ def _create_instance_ms_deploy_operation_initial( # pylint: disable=name-too-lo error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -26941,7 +26893,7 @@ def _create_instance_ms_deploy_operation_initial( # pylint: disable=name-too-lo response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27111,12 +27063,9 @@ def get_instance_ms_deploy_log( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27145,7 +27094,7 @@ def get_instance_ms_deploy_log( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27185,12 +27134,9 @@ def list_instance_processes( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27242,7 +27188,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27274,12 +27220,9 @@ def get_instance_process( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27309,7 +27252,7 @@ def get_instance_process( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27345,12 +27288,9 @@ def delete_instance_process( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27380,7 +27320,7 @@ def delete_instance_process( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27411,12 +27351,9 @@ def get_instance_process_dump( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27451,7 +27388,7 @@ def get_instance_process_dump( response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27493,12 +27430,9 @@ def list_instance_process_modules( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27551,7 +27485,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27585,12 +27519,9 @@ def get_instance_process_module( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27621,7 +27552,7 @@ def get_instance_process_module( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -27662,12 +27593,9 @@ def list_instance_process_threads( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -27720,7 +27648,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -28682,12 +28610,9 @@ def delete_swift_virtual_network( # pylint: disable=inconsistent-return-stateme """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -28715,7 +28640,7 @@ def delete_swift_virtual_network( # pylint: disable=inconsistent-return-stateme response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -28896,12 +28821,9 @@ def list_network_features( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -28930,7 +28852,7 @@ def list_network_features( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30883,12 +30805,9 @@ def list_processes(self, resource_group_name: str, name: str, **kwargs: Any) -> error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -30939,7 +30858,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -30966,12 +30885,9 @@ def get_process(self, resource_group_name: str, name: str, process_id: str, **kw """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -31000,7 +30916,7 @@ def get_process(self, resource_group_name: str, name: str, process_id: str, **kw response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -31033,12 +30949,9 @@ def delete_process( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -31067,7 +30980,7 @@ def delete_process( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -31093,12 +31006,9 @@ def get_process_dump(self, resource_group_name: str, name: str, process_id: str, """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -31132,7 +31042,7 @@ def get_process_dump(self, resource_group_name: str, name: str, process_id: str, response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -31171,12 +31081,9 @@ def list_process_modules( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -31228,7 +31135,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -31259,12 +31166,9 @@ def get_process_module( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -31294,7 +31198,7 @@ def get_process_module( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -31332,12 +31236,9 @@ def list_process_threads( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -31389,7 +31290,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -32952,12 +32853,9 @@ def list_site_extensions( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -33008,7 +32906,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -33036,12 +32934,9 @@ def get_site_extension( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -33070,7 +32965,7 @@ def get_site_extension( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -33089,10 +32984,6 @@ def _install_site_extension_initial( 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 429: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -33221,12 +33112,9 @@ def delete_site_extension( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -33255,7 +33143,7 @@ def delete_site_extension( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -33364,12 +33252,9 @@ def get_slot(self, resource_group_name: str, name: str, slot: str, **kwargs: Any """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -33398,7 +33283,7 @@ def get_slot(self, resource_group_name: str, name: str, slot: str, **kwargs: Any response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -33658,12 +33543,9 @@ def delete_slot( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -33694,7 +33576,7 @@ def delete_slot( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200, 204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -34393,12 +34275,9 @@ def delete_backup_slot( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -34428,7 +34307,7 @@ def delete_backup_slot( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -38695,12 +38574,9 @@ def get_continuous_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38730,7 +38606,7 @@ def get_continuous_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -38826,12 +38702,9 @@ def start_continuous_web_job_slot( # pylint: disable=inconsistent-return-statem """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38861,7 +38734,7 @@ def start_continuous_web_job_slot( # pylint: disable=inconsistent-return-statem response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -38891,12 +38764,9 @@ def stop_continuous_web_job_slot( # pylint: disable=inconsistent-return-stateme """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -38926,7 +38796,7 @@ def stop_continuous_web_job_slot( # pylint: disable=inconsistent-return-stateme response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -40354,11 +40224,8 @@ def _create_ms_deploy_operation_slot_initial( error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -40404,7 +40271,7 @@ def _create_ms_deploy_operation_slot_initial( response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -40578,12 +40445,9 @@ def get_ms_deploy_log_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -40612,7 +40476,7 @@ def get_ms_deploy_log_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -40649,12 +40513,9 @@ def list_instance_functions_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -40706,7 +40567,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -40797,12 +40658,9 @@ def get_instance_function_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -40832,7 +40690,7 @@ def get_instance_function_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -41085,12 +40943,9 @@ def delete_instance_function_slot( # pylint: disable=inconsistent-return-statem """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -41120,7 +40975,7 @@ def delete_instance_function_slot( # pylint: disable=inconsistent-return-statem response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -41315,12 +41170,9 @@ def delete_function_secret_slot( # pylint: disable=inconsistent-return-statemen """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -41351,7 +41203,7 @@ def delete_function_secret_slot( # pylint: disable=inconsistent-return-statemen response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -41852,12 +41704,9 @@ def delete_host_secret_slot( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -41888,7 +41737,7 @@ def delete_host_secret_slot( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -42527,12 +42376,9 @@ def delete_hybrid_connection_slot( # pylint: disable=inconsistent-return-statem """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -42563,7 +42409,7 @@ def delete_hybrid_connection_slot( # pylint: disable=inconsistent-return-statem response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43110,12 +42956,9 @@ def delete_relay_service_connection_slot( # pylint: disable=inconsistent-return """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43145,7 +42988,7 @@ def delete_relay_service_connection_slot( # pylint: disable=inconsistent-return response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43547,11 +43390,8 @@ def _create_instance_ms_deploy_operation_slot_initial( # pylint: disable=name-t error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, + 409: ResourceExistsError, 304: ResourceNotModifiedError, - 409: cast( - Type[HttpResponseError], - lambda response: ResourceExistsError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43598,7 +43438,7 @@ def _create_instance_ms_deploy_operation_slot_initial( # pylint: disable=name-t response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43784,12 +43624,9 @@ def get_instance_ms_deploy_log_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43819,7 +43656,7 @@ def get_instance_ms_deploy_log_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43862,12 +43699,9 @@ def list_instance_processes_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43920,7 +43754,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -43955,12 +43789,9 @@ def get_instance_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -43991,7 +43822,7 @@ def get_instance_process_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -44030,12 +43861,9 @@ def delete_instance_process_slot( # pylint: disable=inconsistent-return-stateme """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -44066,7 +43894,7 @@ def delete_instance_process_slot( # pylint: disable=inconsistent-return-stateme response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -44100,12 +43928,9 @@ def get_instance_process_dump_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -44141,7 +43966,7 @@ def get_instance_process_dump_slot( response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -44186,12 +44011,9 @@ def list_instance_process_modules_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -44245,7 +44067,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -44289,12 +44111,9 @@ def get_instance_process_module_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -44326,7 +44145,7 @@ def get_instance_process_module_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -44370,12 +44189,9 @@ def list_instance_process_threads_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -44429,7 +44245,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -44966,12 +44782,9 @@ def delete_swift_virtual_network_slot( # pylint: disable=inconsistent-return-st """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -45000,7 +44813,7 @@ def delete_swift_virtual_network_slot( # pylint: disable=inconsistent-return-st response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -45197,12 +45010,9 @@ def list_network_features_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -45232,7 +45042,7 @@ def list_network_features_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -47315,12 +47125,9 @@ def list_processes_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -47372,7 +47179,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -47404,12 +47211,9 @@ def get_process_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -47439,7 +47243,7 @@ def get_process_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -47475,12 +47279,9 @@ def delete_process_slot( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -47510,7 +47311,7 @@ def delete_process_slot( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -47541,12 +47342,9 @@ def get_process_dump_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -47581,7 +47379,7 @@ def get_process_dump_slot( response.read() # Load the body in memory and close the socket except (StreamConsumedError, StreamClosedError): pass - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -47623,12 +47421,9 @@ def list_process_modules_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -47681,7 +47476,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -47715,12 +47510,9 @@ def get_process_module_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -47751,7 +47543,7 @@ def get_process_module_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -47792,12 +47584,9 @@ def list_process_threads_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -47850,7 +47639,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -49541,12 +49330,9 @@ def list_site_extensions_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -49598,7 +49384,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -49629,12 +49415,9 @@ def get_site_extension_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -49664,7 +49447,7 @@ def get_site_extension_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -49683,10 +49466,6 @@ def _install_site_extension_slot_initial( 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 429: cast( - Type[HttpResponseError], - lambda response: HttpResponseError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -49823,12 +49602,9 @@ def delete_site_extension_slot( # pylint: disable=inconsistent-return-statement """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -49858,7 +49634,7 @@ def delete_site_extension_slot( # pylint: disable=inconsistent-return-statement response = pipeline_response.http_response if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -50716,12 +50492,9 @@ def delete_source_control_slot( # pylint: disable=inconsistent-return-statement """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -50751,7 +50524,7 @@ def delete_source_control_slot( # pylint: disable=inconsistent-return-statement response = pipeline_response.http_response if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -51454,12 +51227,9 @@ def get_triggered_web_job_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -51489,7 +51259,7 @@ def get_triggered_web_job_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -51591,12 +51361,9 @@ def list_triggered_web_job_history_slot( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -51649,7 +51416,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -51683,12 +51450,9 @@ def get_triggered_web_job_history_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -51719,7 +51483,7 @@ def get_triggered_web_job_history_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -51753,12 +51517,9 @@ def run_triggered_web_job_slot( # pylint: disable=inconsistent-return-statement """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -51788,7 +51549,7 @@ def run_triggered_web_job_slot( # pylint: disable=inconsistent-return-statement response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -52208,12 +51969,9 @@ def delete_vnet_connection_slot( # pylint: disable=inconsistent-return-statemen """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -52243,7 +52001,7 @@ def delete_vnet_connection_slot( # pylint: disable=inconsistent-return-statemen response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -52441,12 +52199,9 @@ def get_vnet_connection_gateway_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -52477,7 +52232,7 @@ def get_vnet_connection_gateway_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -53774,12 +53529,9 @@ def delete_source_control( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -53808,7 +53560,7 @@ def delete_source_control( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -54467,12 +54219,9 @@ def get_triggered_web_job( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -54501,7 +54250,7 @@ def get_triggered_web_job( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -54596,12 +54345,9 @@ def list_triggered_web_job_history( error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -54653,7 +54399,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -54684,12 +54430,9 @@ def get_triggered_web_job_history( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -54719,7 +54462,7 @@ def get_triggered_web_job_history( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -54750,12 +54493,9 @@ def run_triggered_web_job( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -54784,7 +54524,7 @@ def run_triggered_web_job( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -55176,12 +54916,9 @@ def delete_vnet_connection( # pylint: disable=inconsistent-return-statements """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -55210,7 +54947,7 @@ def delete_vnet_connection( # pylint: disable=inconsistent-return-statements response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -55392,12 +55129,9 @@ def get_vnet_connection_gateway( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -55427,7 +55161,7 @@ def get_vnet_connection_gateway( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -56285,12 +56019,9 @@ def get_instance_workflow_slot( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -56320,7 +56051,7 @@ def get_instance_workflow_slot( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -56498,12 +56229,9 @@ def get_workflow( """ error_map: MutableMapping = { 401: ClientAuthenticationError, + 404: ResourceNotFoundError, 409: ResourceExistsError, 304: ResourceNotModifiedError, - 404: cast( - Type[HttpResponseError], - lambda response: ResourceNotFoundError(response=response, error_format=ARMErrorFormat), - ), } error_map.update(kwargs.pop("error_map", {}) or {}) @@ -56532,7 +56260,7 @@ def get_workflow( response = pipeline_response.http_response if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore + map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.DefaultErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appservice/azure-mgmt-web/generated_samples/app_service_environments_create_or_update_multi_role_pool.py b/sdk/appservice/azure-mgmt-web/generated_samples/app_service_environments_create_or_update_multi_role_pool.py index b4e2363eb264..5faefece4165 100644 --- a/sdk/appservice/azure-mgmt-web/generated_samples/app_service_environments_create_or_update_multi_role_pool.py +++ b/sdk/appservice/azure-mgmt-web/generated_samples/app_service_environments_create_or_update_multi_role_pool.py @@ -9,7 +9,6 @@ from azure.identity import DefaultAzureCredential from azure.mgmt.web import WebSiteManagementClient - """ # PREREQUISITES pip install azure-identity @@ -22,22 +21,21 @@ AZURE_CLIENT_SECRET. For more info about how to get the value, please see: https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal """ - - def main(): client = WebSiteManagementClient( credential=DefaultAzureCredential(), subscription_id="34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", ) - response = client.app_service_environments.begin_create_or_update_multi_role_pool( - resource_group_name="test-rg", - name="test-ase", - multi_role_pool_envelope={"properties": {"workerCount": 3, "workerSize": "Medium"}}, - ).result() + response = client.app_service_environments.update_multi_role_pool( + resource_group_name='test-rg', + name='test-ase', + multi_role_pool_envelope={'properties': {'workerCount': 3, 'workerSize': 'Medium'}}, + ) print(response) - # x-ms-original-file: specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/AppServiceEnvironments_CreateOrUpdateMultiRolePool.json if __name__ == "__main__": main() += "__main__": + main()