Skip to content

Commit 771605f

Browse files
author
SDKAuto
committed
CodeGen from PR 33305 in Azure/azure-rest-api-specs
Merge 8c63eb58911ea9d3e254a83616524563347829d0 into 7a5a8d753713d3db02d262128749427e98289887
1 parent 23163bc commit 771605f

File tree

83 files changed

+3278
-1003
lines changed

Some content is hidden

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

83 files changed

+3278
-1003
lines changed
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "b54ffc9278eff071455b1dbb4ad2e772afce885d",
2+
"commit": "2b69cf10827e9a6b9d70ed3ef12fc465500f676c",
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/python@6.13.7",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/frontdoor/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.13.7 --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
9+
"autorest_command": "autorest specification/frontdoor/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/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/frontdoor/resource-manager/readme.md"
1111
}

sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/__init__.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._front_door_management_client import FrontDoorManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._front_door_management_client import FrontDoorManagementClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"FrontDoorManagementClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_configuration.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials import TokenCredential
1918

2019

21-
class FrontDoorManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class FrontDoorManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for FrontDoorManagementClient.
2322
2423
Note that all parameters used to create this instance are saved as instance

sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_front_door_management_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from copy import deepcopy
1010
from typing import Any, TYPE_CHECKING
11+
from typing_extensions import Self
1112

1213
from azure.core.pipeline import policies
1314
from azure.core.rest import HttpRequest, HttpResponse
@@ -33,7 +34,6 @@
3334
)
3435

3536
if TYPE_CHECKING:
36-
# pylint: disable=unused-import,ungrouped-imports
3737
from azure.core.credentials import TokenCredential
3838

3939

@@ -164,7 +164,7 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
164164
def close(self) -> None:
165165
self._client.close()
166166

167-
def __enter__(self) -> "FrontDoorManagementClient":
167+
def __enter__(self) -> Self:
168168
self._client.__enter__()
169169
return self
170170

sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/_patch.py

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#
2626
# --------------------------------------------------------------------------
2727

28+
2829
# This file is used for handwritten extensions to the generated code. Example:
2930
# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
3031
def patch_sdk():

0 commit comments

Comments
 (0)