Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 0.0.0 (UnReleased)

change log generation failed!!! You need to write it manually!!!

## 1.0.0 (2024-11-21)

### Breaking Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
include _meta.json
recursive-include tests *.py *.json
recursive-include samples *.py *.md
include *.md
include azure/__init__.py
include azure/mgmt/__init__.py
include LICENSE
include azure/mgmt/healthdataaiservices/py.typed
recursive-include tests *.py
recursive-include samples *.py *.md
include azure/__init__.py
include azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

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

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

### Prerequisites

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

### Install the package
Expand All @@ -24,7 +24,7 @@ pip install azure-identity

### Authentication

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

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"apiVersion": "2024-09-20",
"commit": "0410d404c68289cb1737d06bba92133bb84b515c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"repository_url": "Azure/azure-rest-api-specs",
"typespec_src": "specification/healthdataaiservices/HealthDataAIServices.Management",
"@azure-tools/typespec-python": "0.36.1"
"emitterVersion": "0.59.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"CrossLanguagePackageId": "Microsoft.HealthDataAIServices",
"CrossLanguageDefinitionId": {
"azure.mgmt.healthdataaiservices.models.DeidPropertiesUpdate": "Microsoft.HealthDataAIServices.DeidPropertiesUpdate",
"azure.mgmt.healthdataaiservices.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
"azure.mgmt.healthdataaiservices.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
"azure.mgmt.healthdataaiservices.models.DeidService": "Microsoft.HealthDataAIServices.DeidService",
"azure.mgmt.healthdataaiservices.models.DeidServiceProperties": "Microsoft.HealthDataAIServices.DeidServiceProperties",
"azure.mgmt.healthdataaiservices.models.DeidServiceSku": "Microsoft.HealthDataAIServices.DeidServiceSku",
"azure.mgmt.healthdataaiservices.models.DeidUpdate": "Microsoft.HealthDataAIServices.DeidUpdate",
"azure.mgmt.healthdataaiservices.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
"azure.mgmt.healthdataaiservices.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
"azure.mgmt.healthdataaiservices.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
"azure.mgmt.healthdataaiservices.models.ManagedServiceIdentity": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentity",
"azure.mgmt.healthdataaiservices.models.ManagedServiceIdentityUpdate": "Microsoft.HealthDataAIServices.ManagedServiceIdentityUpdate",
"azure.mgmt.healthdataaiservices.models.Operation": "Azure.ResourceManager.CommonTypes.Operation",
"azure.mgmt.healthdataaiservices.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay",
"azure.mgmt.healthdataaiservices.models.PrivateEndpoint": "Azure.ResourceManager.CommonTypes.PrivateEndpoint",
"azure.mgmt.healthdataaiservices.models.PrivateEndpointConnection": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnection",
"azure.mgmt.healthdataaiservices.models.PrivateEndpointConnectionProperties": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties",
"azure.mgmt.healthdataaiservices.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
"azure.mgmt.healthdataaiservices.models.PrivateEndpointConnectionResource": "Microsoft.HealthDataAIServices.PrivateEndpointConnectionResource",
"azure.mgmt.healthdataaiservices.models.PrivateLinkResource": "Microsoft.HealthDataAIServices.PrivateLinkResource",
"azure.mgmt.healthdataaiservices.models.PrivateLinkResourceProperties": "Azure.ResourceManager.CommonTypes.PrivateLinkResourceProperties",
"azure.mgmt.healthdataaiservices.models.PrivateLinkServiceConnectionState": "Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState",
"azure.mgmt.healthdataaiservices.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
"azure.mgmt.healthdataaiservices.models.UserAssignedIdentity": "Azure.ResourceManager.CommonTypes.UserAssignedIdentity",
"azure.mgmt.healthdataaiservices.models.Origin": "Azure.ResourceManager.CommonTypes.Origin",
"azure.mgmt.healthdataaiservices.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType",
"azure.mgmt.healthdataaiservices.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
"azure.mgmt.healthdataaiservices.models.ProvisioningState": "Microsoft.HealthDataAIServices.ProvisioningState",
"azure.mgmt.healthdataaiservices.models.PrivateEndpointServiceConnectionStatus": "Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus",
"azure.mgmt.healthdataaiservices.models.PrivateEndpointConnectionProvisioningState": "Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState",
"azure.mgmt.healthdataaiservices.models.PublicNetworkAccess": "Microsoft.HealthDataAIServices.PublicNetworkAccess",
"azure.mgmt.healthdataaiservices.models.ManagedServiceIdentityType": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType",
"azure.mgmt.healthdataaiservices.models.DeidServiceSkuName": "Microsoft.HealthDataAIServices.DeidServiceSkuName",
"azure.mgmt.healthdataaiservices.models.SkuTier": "Azure.ResourceManager.CommonTypes.SkuTier",
"azure.mgmt.healthdataaiservices.operations.Operations.list": "Azure.ResourceManager.Operations.list",
"azure.mgmt.healthdataaiservices.aio.operations.Operations.list": "Azure.ResourceManager.Operations.list",
"azure.mgmt.healthdataaiservices.operations.DeidServicesOperations.get": "Microsoft.HealthDataAIServices.DeidServices.get",
"azure.mgmt.healthdataaiservices.aio.operations.DeidServicesOperations.get": "Microsoft.HealthDataAIServices.DeidServices.get",
"azure.mgmt.healthdataaiservices.operations.DeidServicesOperations.list_by_resource_group": "Microsoft.HealthDataAIServices.DeidServices.listByResourceGroup",
"azure.mgmt.healthdataaiservices.aio.operations.DeidServicesOperations.list_by_resource_group": "Microsoft.HealthDataAIServices.DeidServices.listByResourceGroup",
"azure.mgmt.healthdataaiservices.operations.DeidServicesOperations.list_by_subscription": "Microsoft.HealthDataAIServices.DeidServices.listBySubscription",
"azure.mgmt.healthdataaiservices.aio.operations.DeidServicesOperations.list_by_subscription": "Microsoft.HealthDataAIServices.DeidServices.listBySubscription",
"azure.mgmt.healthdataaiservices.operations.DeidServicesOperations.begin_create": "Microsoft.HealthDataAIServices.DeidServices.create",
"azure.mgmt.healthdataaiservices.aio.operations.DeidServicesOperations.begin_create": "Microsoft.HealthDataAIServices.DeidServices.create",
"azure.mgmt.healthdataaiservices.operations.DeidServicesOperations.begin_update": "Microsoft.HealthDataAIServices.DeidServices.update",
"azure.mgmt.healthdataaiservices.aio.operations.DeidServicesOperations.begin_update": "Microsoft.HealthDataAIServices.DeidServices.update",
"azure.mgmt.healthdataaiservices.operations.DeidServicesOperations.begin_delete": "Microsoft.HealthDataAIServices.DeidServices.delete",
"azure.mgmt.healthdataaiservices.aio.operations.DeidServicesOperations.begin_delete": "Microsoft.HealthDataAIServices.DeidServices.delete",
"azure.mgmt.healthdataaiservices.operations.PrivateEndpointConnectionsOperations.get": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.get",
"azure.mgmt.healthdataaiservices.aio.operations.PrivateEndpointConnectionsOperations.get": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.get",
"azure.mgmt.healthdataaiservices.operations.PrivateEndpointConnectionsOperations.begin_create": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.create",
"azure.mgmt.healthdataaiservices.aio.operations.PrivateEndpointConnectionsOperations.begin_create": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.create",
"azure.mgmt.healthdataaiservices.operations.PrivateEndpointConnectionsOperations.begin_delete": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.delete",
"azure.mgmt.healthdataaiservices.aio.operations.PrivateEndpointConnectionsOperations.begin_delete": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.delete",
"azure.mgmt.healthdataaiservices.operations.PrivateEndpointConnectionsOperations.list_by_deid_service": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.listByDeidService",
"azure.mgmt.healthdataaiservices.aio.operations.PrivateEndpointConnectionsOperations.list_by_deid_service": "Microsoft.HealthDataAIServices.PrivateEndpointConnections.listByDeidService",
"azure.mgmt.healthdataaiservices.operations.PrivateLinksOperations.list_by_deid_service": "Microsoft.HealthDataAIServices.PrivateLinks.listByDeidService",
"azure.mgmt.healthdataaiservices.aio.operations.PrivateLinksOperations.list_by_deid_service": "Microsoft.HealthDataAIServices.PrivateLinks.listByDeidService"
}
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,22 @@
# --------------------------------------------------------------------------

from copy import deepcopy
from typing import Any, TYPE_CHECKING
from typing import Any, Optional, TYPE_CHECKING, cast
from typing_extensions import Self

from azure.core.pipeline import policies
from azure.core.rest import HttpRequest, HttpResponse
from azure.core.settings import settings
from azure.mgmt.core import ARMPipelineClient
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
from azure.mgmt.core.tools import get_arm_endpoints

from ._configuration import HealthDataAIServicesMgmtClientConfiguration
from ._serialization import Deserializer, Serializer
from ._utils.serialization import Deserializer, Serializer
from .operations import DeidServicesOperations, Operations, PrivateEndpointConnectionsOperations, PrivateLinksOperations

if TYPE_CHECKING:
from azure.core import AzureClouds
from azure.core.credentials import TokenCredential


Expand All @@ -39,8 +42,11 @@ class HealthDataAIServicesMgmtClient:
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:param base_url: Service host. Default value is "https://management.azure.com".
:param base_url: Service host. Default value is None.
:type base_url: str
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:paramtype cloud_setting: ~azure.core.AzureClouds
:keyword api_version: The API version to use for this operation. Default value is "2024-09-20".
Note that overriding this default value may result in unsupported behavior.
:paramtype api_version: str
Expand All @@ -52,13 +58,26 @@ def __init__(
self,
credential: "TokenCredential",
subscription_id: str,
base_url: str = "https://management.azure.com",
base_url: Optional[str] = None,
*,
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
_endpoint = "{endpoint}"
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
_endpoints = get_arm_endpoints(_cloud)
if not base_url:
base_url = _endpoints["resource_manager"]
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
self._config = HealthDataAIServicesMgmtClientConfiguration(
credential=credential, subscription_id=subscription_id, base_url=base_url, **kwargs
credential=credential,
subscription_id=subscription_id,
base_url=cast(str, base_url),
cloud_setting=cloud_setting,
credential_scopes=credential_scopes,
**kwargs
)

_policies = kwargs.pop("policies", None)
if _policies is None:
_policies = [
Expand All @@ -77,7 +96,7 @@ def __init__(
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
self._config.http_logging_policy,
]
self._client: ARMPipelineClient = ARMPipelineClient(base_url=_endpoint, policies=_policies, **kwargs)
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, _endpoint), policies=_policies, **kwargs)

self._serialize = Serializer()
self._deserialize = Deserializer()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from typing import Any, TYPE_CHECKING
from typing import Any, Optional, TYPE_CHECKING

from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy

from ._version import VERSION

if TYPE_CHECKING:
from azure.core import AzureClouds
from azure.core.credentials import TokenCredential


Expand All @@ -29,6 +30,9 @@ class HealthDataAIServicesMgmtClientConfiguration: # pylint: disable=too-many-i
:type subscription_id: str
:param base_url: Service host. Default value is "https://management.azure.com".
:type base_url: str
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:type cloud_setting: ~azure.core.AzureClouds
:keyword api_version: The API version to use for this operation. Default value is "2024-09-20".
Note that overriding this default value may result in unsupported behavior.
:paramtype api_version: str
Expand All @@ -39,6 +43,7 @@ def __init__(
credential: "TokenCredential",
subscription_id: str,
base_url: str = "https://management.azure.com",
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
api_version: str = kwargs.pop("api_version", "2024-09-20")
Expand All @@ -51,6 +56,7 @@ def __init__(
self.credential = credential
self.subscription_id = subscription_id
self.base_url = base_url
self.cloud_setting = cloud_setting
self.api_version = api_version
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
kwargs.setdefault("sdk_moniker", "mgmt-healthdataaiservices/{}".format(VERSION))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=too-many-lines
# pylint: disable=too-many-lines,line-too-long,useless-suppression
# --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
Loading
Loading