Skip to content

Commit 837d4a2

Browse files
author
SDKAuto
committed
CodeGen from PR 32617 in Azure/azure-rest-api-specs
Merge 5381f88c7ab72a7de51d861c2081afd5f7dcd600 into bb0cd5fdf4d0427e8b41ffc95da404448dad22de
1 parent 750d192 commit 837d4a2

File tree

119 files changed

+3881
-1158
lines changed

Some content is hidden

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

119 files changed

+3881
-1158
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "0e1d8ac4d5ca8a76479870db0a04aebe4fc3eab0",
2+
"commit": "7a3602c519d0d44e74c823ecd6bab6f4efe6270f",
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/healthcareapis/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/healthcareapis/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/healthcareapis/resource-manager/readme.md"
1111
}

sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/__init__.py

Lines changed: 9 additions & 3 deletions
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 ._healthcare_apis_management_client import HealthcareApisManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._healthcare_apis_management_client import HealthcareApisManagementClient # 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
"HealthcareApisManagementClient",
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/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
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

@@ -28,13 +27,13 @@ class HealthcareApisManagementClientConfiguration: # pylint: disable=too-many-i
2827
:type credential: ~azure.core.credentials.TokenCredential
2928
:param subscription_id: The ID of the target subscription. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2024-03-31". Note that overriding this
32-
default value may result in unsupported behavior.
30+
:keyword api_version: Api Version. Default value is "2025-03-01-preview". Note that overriding
31+
this default value may result in unsupported behavior.
3332
:paramtype api_version: str
3433
"""
3534

3635
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2024-03-31")
36+
api_version: str = kwargs.pop("api_version", "2025-03-01-preview")
3837

3938
if credential is None:
4039
raise ValueError("Parameter 'credential' must not be None.")

sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/_healthcare_apis_management_client.py

Lines changed: 5 additions & 5 deletions
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
@@ -34,11 +35,10 @@
3435
)
3536

3637
if TYPE_CHECKING:
37-
# pylint: disable=unused-import,ungrouped-imports
3838
from azure.core.credentials import TokenCredential
3939

4040

41-
class HealthcareApisManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
41+
class HealthcareApisManagementClient: # pylint: disable=too-many-instance-attributes
4242
"""Azure Healthcare APIs Client.
4343
4444
:ivar services: ServicesOperations operations
@@ -79,8 +79,8 @@ class HealthcareApisManagementClient: # pylint: disable=client-accepts-api-vers
7979
:type subscription_id: str
8080
:param base_url: Service URL. Default value is "https://management.azure.com".
8181
:type base_url: str
82-
:keyword api_version: Api Version. Default value is "2024-03-31". Note that overriding this
83-
default value may result in unsupported behavior.
82+
:keyword api_version: Api Version. Default value is "2025-03-01-preview". Note that overriding
83+
this default value may result in unsupported behavior.
8484
:paramtype api_version: str
8585
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
8686
Retry-After header is present.
@@ -173,7 +173,7 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
173173
def close(self) -> None:
174174
self._client.close()
175175

176-
def __enter__(self) -> "HealthcareApisManagementClient":
176+
def __enter__(self) -> Self:
177177
self._client.__enter__()
178178
return self
179179

sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/_patch.py

Lines changed: 1 addition & 0 deletions
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)