Skip to content

Commit 19bac3b

Browse files
azure-sdkmsyyc
andauthored
[AutoRelease] t2-resource-2024-05-08-53659(can only be merged by SDK owner) (#35533)
* code and test * test --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: msyyc <[email protected]>
1 parent dfb3c4f commit 19bac3b

File tree

187 files changed

+4179
-3974
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+4179
-3974
lines changed

sdk/resources/azure-mgmt-resource/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 23.1.1 (2024-05-08)
4+
5+
### Other Changes
6+
7+
- Remove `2023-04-01` for PolicyClient to avoid breaking change caused by wrong swagger.
8+
39
## 23.1.0 (2024-05-06)
410

511
### Features Added

sdk/resources/azure-mgmt-resource/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"commit": "3940cd77b8d74b58d4a8b3a80388ff890052be67",
2+
"commit": "0f21c214f0f5b4180ec71655b36b8fbd40fd1ceb",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.7",
4+
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/[email protected].7",
6+
"@autorest/[email protected].16",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/resources/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/[email protected].7 --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
9+
"autorest_command": "autorest specification/resources/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/[email protected].16 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/resources/resource-manager/readme.md",
1111
"package-privatelinks-2020-05": "2022-03-18 16:14:07 -0700 2c68b6f0c9566d97d9d590a31b0d46997622eef7 Microsoft.Authorization/stable/2020-05-01/privateLinks.json",
1212
"package-features-2021-07": "2022-03-06 17:36:42 -0800 6a57e9cedc87cafd2dc9e4f3e8af62b5725e3d22 Microsoft.Features/stable/2021-07-01/features.json",

sdk/resources/azure-mgmt-resource/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/resources/azure-mgmt-resource",
5-
"Tag": "python/resources/azure-mgmt-resource_249d166aa1"
5+
"Tag": "python/resources/azure-mgmt-resource_890b062016"
66
}

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "23.1.0"
8+
VERSION = "23.1.1"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "23.1.0"
8+
VERSION = "23.1.1"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/v2022_05_01/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "23.1.0"
9+
VERSION = "23.1.1"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/v2022_05_01/aio/operations/_operations.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9-
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
9+
import sys
10+
from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
1011
import urllib.parse
1112

1213
from azure.core.async_paging import AsyncItemPaged, AsyncList
@@ -30,6 +31,10 @@
3031
from ..._vendor import _convert_request
3132
from ...operations._operations import build_changes_get_request, build_changes_list_request
3233

34+
if sys.version_info >= (3, 9):
35+
from collections.abc import MutableMapping
36+
else:
37+
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
3338
T = TypeVar("T")
3439
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
3540

@@ -91,7 +96,7 @@ def list(
9196
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
9297
cls: ClsType[_models.ChangeResourceListResult] = kwargs.pop("cls", None)
9398

94-
error_map = {
99+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
95100
401: ClientAuthenticationError,
96101
404: ResourceNotFoundError,
97102
409: ResourceExistsError,
@@ -186,7 +191,7 @@ async def get(
186191
:rtype: ~azure.mgmt.resource.changes.v2022_05_01.models.ChangeResourceResult
187192
:raises ~azure.core.exceptions.HttpResponseError:
188193
"""
189-
error_map = {
194+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
190195
401: ClientAuthenticationError,
191196
404: ResourceNotFoundError,
192197
409: ResourceExistsError,

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/v2022_05_01/operations/_operations.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9-
from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
9+
import sys
10+
from typing import Any, Callable, Dict, Iterable, Optional, Type, TypeVar
1011
import urllib.parse
1112

1213
from azure.core.exceptions import (
@@ -29,6 +30,10 @@
2930
from ..._serialization import Serializer
3031
from .._vendor import _convert_request
3132

33+
if sys.version_info >= (3, 9):
34+
from collections.abc import MutableMapping
35+
else:
36+
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
3237
T = TypeVar("T")
3338
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
3439

@@ -178,7 +183,7 @@ def list(
178183
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2022-05-01"))
179184
cls: ClsType[_models.ChangeResourceListResult] = kwargs.pop("cls", None)
180185

181-
error_map = {
186+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
182187
401: ClientAuthenticationError,
183188
404: ResourceNotFoundError,
184189
409: ResourceExistsError,
@@ -273,7 +278,7 @@ def get(
273278
:rtype: ~azure.mgmt.resource.changes.v2022_05_01.models.ChangeResourceResult
274279
:raises ~azure.core.exceptions.HttpResponseError:
275280
"""
276-
error_map = {
281+
error_map: MutableMapping[int, Type[HttpResponseError]] = {
277282
401: ClientAuthenticationError,
278283
404: ResourceNotFoundError,
279284
409: ResourceExistsError,

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "23.1.0"
8+
VERSION = "23.1.1"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "23.1.0"
9+
VERSION = "23.1.1"

0 commit comments

Comments
 (0)