From 8af9accdf4f2ec868484b0c56a446195d0e59855 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 18 Jan 2024 17:44:36 +0000 Subject: [PATCH] CodeGen from PR 27403 in Azure/azure-rest-api-specs Merge d78477f35bae6351605281ebaf3a432016160c01 into 922913c1cb2f30be7660333fff75dc808c3634fb --- sdk/network/azure-mgmt-network/README.md | 4 ++-- sdk/network/azure-mgmt-network/_meta.json | 6 +++--- .../azure/mgmt/network/v2023_05_01/_version.py | 2 +- .../mgmt/network/v2023_05_01/aio/operations/_operations.py | 6 +++++- .../mgmt/network/v2023_05_01/operations/_operations.py | 6 +++++- sdk/network/azure-mgmt-network/setup.py | 5 ++--- 6 files changed, 18 insertions(+), 11 deletions(-) diff --git a/sdk/network/azure-mgmt-network/README.md b/sdk/network/azure-mgmt-network/README.md index 41a1a4c77465..fac00af2da20 100644 --- a/sdk/network/azure-mgmt-network/README.md +++ b/sdk/network/azure-mgmt-network/README.md @@ -1,7 +1,7 @@ # Microsoft Azure SDK for Python This is the Microsoft Azure Network Management Client Library. -This package has been tested with Python 3.7+. +This package has been tested with Python 3.8+. For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all). ## _Disclaimer_ @@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For ### Prerequisites -- Python 3.7+ is required to use this package. +- Python 3.8+ is required to use this package. - [Azure subscription](https://azure.microsoft.com/free/) ### Install the package diff --git a/sdk/network/azure-mgmt-network/_meta.json b/sdk/network/azure-mgmt-network/_meta.json index ed94baa2f9f6..60ea164c7111 100644 --- a/sdk/network/azure-mgmt-network/_meta.json +++ b/sdk/network/azure-mgmt-network/_meta.json @@ -1,12 +1,12 @@ { - "commit": "1ca8b90e85a54ad3de34aae95e319fe33b60a94b", + "commit": "53bcba18deaa5a3b69b8206147902c57a39e870c", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.9.7", "use": [ "@autorest/python@6.7.1", "@autorest/modelerfour@4.26.2" ], - "autorest_command": "autorest specification/network/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False", + "autorest_command": "autorest specification/network/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False", "readme": "specification/network/resource-manager/readme.md", "package-2023-02": "2023-11-08 10:08:29 -0800 4b55e2d0e29fb2e829985485c9150f46157c3b80 Microsoft.Network/stable/2023-02-01/virtualWan.json", "package-2021-02": "2021-09-14 19:30:27 -0700 54f1c87938269d4706629dc04c26ee1f3634585a Microsoft.Network/stable/2021-02-01/privateLinkService.json", @@ -32,6 +32,6 @@ "package-2017-10": "2019-06-13 02:23:37 +0300 e19543a6a361096e5ca11a42424a39025fd008fa Microsoft.Network/stable/2017-10-01/applicationGateway.json", "package-2015-06split": "2019-06-13 02:17:06 +0300 f0f79bfa8191ac30cfb0f87665411769bd2063a6 Microsoft.Network/stable/2015-06-15/virtualNetworkGateway.json", "package-2023-04": "2023-11-08 10:08:29 -0800 4b55e2d0e29fb2e829985485c9150f46157c3b80 Microsoft.Network/stable/2023-04-01/virtualWan.json", - "package-2023-05": "2023-11-08 10:08:29 -0800 4b55e2d0e29fb2e829985485c9150f46157c3b80 Microsoft.Network/stable/2023-05-01/virtualWan.json", + "package-2023-05": "2024-01-16 18:23:26 -0700 d78477f35bae6351605281ebaf3a432016160c01 Microsoft.Network/stable/2023-05-01/azureFirewall.json", "package-2023-06": "2023-11-08 10:08:29 -0800 4b55e2d0e29fb2e829985485c9150f46157c3b80 Microsoft.Network/stable/2023-06-01/webapplicationfirewall.json" } \ No newline at end of file diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/v2023_05_01/_version.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/v2023_05_01/_version.py index 05e4b2ec08fb..e5754a47ce68 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/v2023_05_01/_version.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/v2023_05_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "25.2.0" +VERSION = "1.0.0b1" diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/v2023_05_01/aio/operations/_operations.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/v2023_05_01/aio/operations/_operations.py index 854034bf89b0..555bf5dd62b1 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/v2023_05_01/aio/operations/_operations.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/v2023_05_01/aio/operations/_operations.py @@ -4347,8 +4347,12 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = { "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}" diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/v2023_05_01/operations/_operations.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/v2023_05_01/operations/_operations.py index f5d73c190f85..038183ea23fc 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/v2023_05_01/operations/_operations.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/v2023_05_01/operations/_operations.py @@ -24067,8 +24067,12 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, error_format=ARMErrorFormat) + response_headers = {} + if response.status_code == 202: + response_headers["Location"] = self._deserialize("str", response.headers.get("Location")) + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, None, response_headers) _delete_initial.metadata = { "url": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}" diff --git a/sdk/network/azure-mgmt-network/setup.py b/sdk/network/azure-mgmt-network/setup.py index 75c734e120a7..c873b4a9249a 100644 --- a/sdk/network/azure-mgmt-network/setup.py +++ b/sdk/network/azure-mgmt-network/setup.py @@ -53,11 +53,11 @@ "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "License :: OSI Approved :: MIT License", ], zip_safe=False, @@ -78,7 +78,6 @@ "isodate<1.0.0,>=0.6.1", "azure-common~=1.1", "azure-mgmt-core>=1.3.2,<2.0.0", - "typing-extensions>=4.3.0; python_version<'3.8.0'", ], - python_requires=">=3.7", + python_requires=">=3.8", )