Skip to content

Commit 4d1cb54

Browse files
author
SDKAuto
committed
CodeGen from PR 34270 in Azure/azure-rest-api-specs
Merge 6d6de338301c13fb6000c2fe4f6f9af98ff5cfa4 into ba0c086df0ebe03a61579485c1c10de0d17804b2
1 parent 6c30600 commit 4d1cb54

File tree

21 files changed

+511
-415
lines changed

21 files changed

+511
-415
lines changed

sdk/healthdataaiservices/azure-mgmt-healthdataaiservices/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+
## 1.1.0 (2025-05-13)
4+
5+
### Features Added
6+
7+
- Method `Operation.__init__` has a new overload `def __init__(self: None, display: Optional[_models.OperationDisplay])`
8+
39
## 1.0.0 (2024-11-21)
410

511
### Breaking Changes

sdk/healthdataaiservices/azure-mgmt-healthdataaiservices/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Healthdataaiservices Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"commit": "0410d404c68289cb1737d06bba92133bb84b515c",
2+
"commit": "091d73844b3093dd62f54ba105f6e2b4cfa7e6ce",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"typespec_src": "specification/healthdataaiservices/HealthDataAIServices.Management",
5-
"@azure-tools/typespec-python": "0.36.1"
5+
"@azure-tools/typespec-python": "0.44.2"
66
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"CrossLanguagePackageId": "Microsoft.HealthDataAIServices",
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.healthdataaiservices.models.DeidPropertiesUpdate": "Microsoft.HealthDataAIServices.DeidPropertiesUpdate",
5+
"azure.mgmt.healthdataaiservices.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
6+
"azure.mgmt.healthdataaiservices.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
7+
"azure.mgmt.healthdataaiservices.models.DeidService": "Microsoft.HealthDataAIServices.DeidService",
8+
"azure.mgmt.healthdataaiservices.models.DeidServiceProperties": "Microsoft.HealthDataAIServices.DeidServiceProperties",
9+
"azure.mgmt.healthdataaiservices.models.DeidUpdate": "Microsoft.HealthDataAIServices.DeidUpdate",
10+
"azure.mgmt.healthdataaiservices.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
11+
"azure.mgmt.healthdataaiservices.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
12+
"azure.mgmt.healthdataaiservices.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
13+
"azure.mgmt.healthdataaiservices.models.ManagedServiceIdentity": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentity",
14+
"azure.mgmt.healthdataaiservices.models.ManagedServiceIdentityUpdate": "Microsoft.HealthDataAIServices.ManagedServiceIdentityUpdate",
15+
"azure.mgmt.healthdataaiservices.models.Operation": "Azure.ResourceManager.CommonTypes.Operation",
16+
"azure.mgmt.healthdataaiservices.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay",
17+
"azure.mgmt.healthdataaiservices.models.PrivateEndpoint": "Azure.ResourceManager.CommonTypes.PrivateEndpoint",
18+
"azure.mgmt.healthdataaiservices.models.PrivateEndpointConnection": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnection",
19+
"azure.mgmt.healthdataaiservices.models.PrivateEndpointConnectionProperties": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties",
20+
"azure.mgmt.healthdataaiservices.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
21+
"azure.mgmt.healthdataaiservices.models.PrivateEndpointConnectionResource": "Microsoft.HealthDataAIServices.PrivateEndpointConnectionResource",
22+
"azure.mgmt.healthdataaiservices.models.PrivateLinkResource": "Microsoft.HealthDataAIServices.PrivateLinkResource",
23+
"azure.mgmt.healthdataaiservices.models.PrivateLinkResourceProperties": "Azure.ResourceManager.CommonTypes.PrivateLinkResourceProperties",
24+
"azure.mgmt.healthdataaiservices.models.PrivateLinkServiceConnectionState": "Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState",
25+
"azure.mgmt.healthdataaiservices.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
26+
"azure.mgmt.healthdataaiservices.models.UserAssignedIdentity": "Azure.ResourceManager.CommonTypes.UserAssignedIdentity",
27+
"azure.mgmt.healthdataaiservices.models.Origin": "Azure.ResourceManager.CommonTypes.Origin",
28+
"azure.mgmt.healthdataaiservices.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType",
29+
"azure.mgmt.healthdataaiservices.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
30+
"azure.mgmt.healthdataaiservices.models.ProvisioningState": "Microsoft.HealthDataAIServices.ProvisioningState",
31+
"azure.mgmt.healthdataaiservices.models.PrivateEndpointServiceConnectionStatus": "Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus",
32+
"azure.mgmt.healthdataaiservices.models.PrivateEndpointConnectionProvisioningState": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState",
33+
"azure.mgmt.healthdataaiservices.models.PublicNetworkAccess": "Microsoft.HealthDataAIServices.PublicNetworkAccess",
34+
"azure.mgmt.healthdataaiservices.models.ManagedServiceIdentityType": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType",
35+
"azure.mgmt.healthdataaiservices.operations.Operations.list": "Azure.ResourceManager.Operations.list",
36+
"azure.mgmt.healthdataaiservices.aio.operations.Operations.list": "Azure.ResourceManager.Operations.list",
37+
"azure.mgmt.healthdataaiservices.operations.DeidServicesOperations.get": "Microsoft.HealthDataAIServices.DeidServices.get",
38+
"azure.mgmt.healthdataaiservices.aio.operations.DeidServicesOperations.get": "Microsoft.HealthDataAIServices.DeidServices.get",
39+
"azure.mgmt.healthdataaiservices.operations.DeidServicesOperations.list_by_resource_group": "Microsoft.HealthDataAIServices.DeidServices.listByResourceGroup",
40+
"azure.mgmt.healthdataaiservices.aio.operations.DeidServicesOperations.list_by_resource_group": "Microsoft.HealthDataAIServices.DeidServices.listByResourceGroup",
41+
"azure.mgmt.healthdataaiservices.operations.DeidServicesOperations.list_by_subscription": "Microsoft.HealthDataAIServices.DeidServices.listBySubscription",
42+
"azure.mgmt.healthdataaiservices.aio.operations.DeidServicesOperations.list_by_subscription": "Microsoft.HealthDataAIServices.DeidServices.listBySubscription",
43+
"azure.mgmt.healthdataaiservices.operations.DeidServicesOperations.begin_create": "Microsoft.HealthDataAIServices.DeidServices.create",
44+
"azure.mgmt.healthdataaiservices.aio.operations.DeidServicesOperations.begin_create": "Microsoft.HealthDataAIServices.DeidServices.create",
45+
"azure.mgmt.healthdataaiservices.operations.DeidServicesOperations.begin_update": "Microsoft.HealthDataAIServices.DeidServices.update",
46+
"azure.mgmt.healthdataaiservices.aio.operations.DeidServicesOperations.begin_update": "Microsoft.HealthDataAIServices.DeidServices.update",
47+
"azure.mgmt.healthdataaiservices.operations.DeidServicesOperations.begin_delete": "Microsoft.HealthDataAIServices.DeidServices.delete",
48+
"azure.mgmt.healthdataaiservices.aio.operations.DeidServicesOperations.begin_delete": "Microsoft.HealthDataAIServices.DeidServices.delete",
49+
"azure.mgmt.healthdataaiservices.operations.PrivateEndpointConnectionsOperations.get": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.get",
50+
"azure.mgmt.healthdataaiservices.aio.operations.PrivateEndpointConnectionsOperations.get": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.get",
51+
"azure.mgmt.healthdataaiservices.operations.PrivateEndpointConnectionsOperations.begin_create": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.create",
52+
"azure.mgmt.healthdataaiservices.aio.operations.PrivateEndpointConnectionsOperations.begin_create": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.create",
53+
"azure.mgmt.healthdataaiservices.operations.PrivateEndpointConnectionsOperations.begin_delete": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.delete",
54+
"azure.mgmt.healthdataaiservices.aio.operations.PrivateEndpointConnectionsOperations.begin_delete": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.delete",
55+
"azure.mgmt.healthdataaiservices.operations.PrivateEndpointConnectionsOperations.list_by_deid_service": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.listByDeidService",
56+
"azure.mgmt.healthdataaiservices.aio.operations.PrivateEndpointConnectionsOperations.list_by_deid_service": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.listByDeidService",
57+
"azure.mgmt.healthdataaiservices.operations.PrivateLinksOperations.list_by_deid_service": "Microsoft.HealthDataAIServices.PrivateLinks.listByDeidService",
58+
"azure.mgmt.healthdataaiservices.aio.operations.PrivateLinksOperations.list_by_deid_service": "Microsoft.HealthDataAIServices.PrivateLinks.listByDeidService"
59+
}
60+
}

sdk/healthdataaiservices/azure-mgmt-healthdataaiservices/azure/mgmt/healthdataaiservices/_client.py

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, TYPE_CHECKING
10+
from typing import Any, Optional, TYPE_CHECKING, cast
1111
from typing_extensions import Self
1212

1313
from azure.core.pipeline import policies
1414
from azure.core.rest import HttpRequest, HttpResponse
15+
from azure.core.settings import settings
1516
from azure.mgmt.core import ARMPipelineClient
1617
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
18+
from azure.mgmt.core.tools import get_arm_endpoints
1719

1820
from ._configuration import HealthDataAIServicesMgmtClientConfiguration
19-
from ._serialization import Deserializer, Serializer
21+
from ._utils.serialization import Deserializer, Serializer
2022
from .operations import DeidServicesOperations, Operations, PrivateEndpointConnectionsOperations, PrivateLinksOperations
2123

2224
if TYPE_CHECKING:
@@ -39,7 +41,7 @@ class HealthDataAIServicesMgmtClient:
3941
:type credential: ~azure.core.credentials.TokenCredential
4042
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
4143
:type subscription_id: str
42-
:param base_url: Service host. Default value is "https://management.azure.com".
44+
:param base_url: Service host. Default value is None.
4345
:type base_url: str
4446
:keyword api_version: The API version to use for this operation. Default value is "2024-09-20".
4547
Note that overriding this default value may result in unsupported behavior.
@@ -49,16 +51,22 @@ class HealthDataAIServicesMgmtClient:
4951
"""
5052

5153
def __init__(
52-
self,
53-
credential: "TokenCredential",
54-
subscription_id: str,
55-
base_url: str = "https://management.azure.com",
56-
**kwargs: Any
54+
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
5755
) -> None:
5856
_endpoint = "{endpoint}"
57+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
58+
_endpoints = get_arm_endpoints(_cloud)
59+
if not base_url:
60+
base_url = _endpoints["resource_manager"]
61+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
5962
self._config = HealthDataAIServicesMgmtClientConfiguration(
60-
credential=credential, subscription_id=subscription_id, base_url=base_url, **kwargs
63+
credential=credential,
64+
subscription_id=subscription_id,
65+
base_url=cast(str, base_url),
66+
credential_scopes=credential_scopes,
67+
**kwargs
6168
)
69+
6270
_policies = kwargs.pop("policies", None)
6371
if _policies is None:
6472
_policies = [
@@ -77,7 +85,7 @@ def __init__(
7785
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
7886
self._config.http_logging_policy,
7987
]
80-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=_endpoint, policies=_policies, **kwargs)
88+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, _endpoint), policies=_policies, **kwargs)
8189

8290
self._serialize = Serializer()
8391
self._deserialize = Deserializer()

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# ------------------------------------
2-
# Copyright (c) Microsoft Corporation.
3-
# Licensed under the MIT License.
4-
# ------------------------------------
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# --------------------------------------------------------------------------
56
"""Customize generated code here.
67
78
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# Code generated by Microsoft (R) Python Code Generator.
5+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
6+
# --------------------------------------------------------------------------

0 commit comments

Comments
 (0)