Skip to content

Commit 1ec81fd

Browse files
author
SDKAuto
committed
CodeGen from PR 34270 in Azure/azure-rest-api-specs
Merge c5c31b0506df39bc9e78f53a9678914719c1964d into a19648565889eaae019e531c15f3045d1244c7ce
1 parent 6c30600 commit 1ec81fd

Some content is hidden

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

52 files changed

+1868
-2122
lines changed

sdk/healthdataaiservices/azure-health-deidentification/MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ include azure/health/deidentification/py.typed
44
recursive-include tests *.py
55
recursive-include samples *.py *.md
66
include azure/__init__.py
7-
include azure/health/__init__.py
7+
include azure/health/__init__.py
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"commit": "079f70d6f2b754db6b736e117196104efd2dd496",
3+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4+
"typespec_src": "specification/healthdataaiservices/HealthDataAIServices.DeidServices",
5+
"@azure-tools/typespec-python": "0.44.2"
6+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"CrossLanguagePackageId": "HealthDataAIServices.DeidServices",
3+
"CrossLanguageDefinitionId": {
4+
"azure.health.deidentification.models.DeidentificationContent": "HealthDataAIServices.DeidServices.DeidentificationContent",
5+
"azure.health.deidentification.models.DeidentificationCustomizationOptions": "HealthDataAIServices.DeidServices.DeidentificationCustomizationOptions",
6+
"azure.health.deidentification.models.DeidentificationDocumentDetails": "HealthDataAIServices.DeidServices.DeidentificationDocumentDetails",
7+
"azure.health.deidentification.models.DeidentificationDocumentLocation": "HealthDataAIServices.DeidServices.DeidentificationDocumentLocation",
8+
"azure.health.deidentification.models.DeidentificationJob": "HealthDataAIServices.DeidServices.DeidentificationJob",
9+
"azure.health.deidentification.models.DeidentificationJobCustomizationOptions": "HealthDataAIServices.DeidServices.DeidentificationJobCustomizationOptions",
10+
"azure.health.deidentification.models.DeidentificationJobSummary": "HealthDataAIServices.DeidServices.DeidentificationJobSummary",
11+
"azure.health.deidentification.models.DeidentificationResult": "HealthDataAIServices.DeidServices.DeidentificationResult",
12+
"azure.health.deidentification.models.PhiEntity": "HealthDataAIServices.DeidServices.PhiEntity",
13+
"azure.health.deidentification.models.PhiTaggerResult": "HealthDataAIServices.DeidServices.PhiTaggerResult",
14+
"azure.health.deidentification.models.SourceStorageLocation": "HealthDataAIServices.DeidServices.SourceStorageLocation",
15+
"azure.health.deidentification.models.StringIndex": "HealthDataAIServices.DeidServices.StringIndex",
16+
"azure.health.deidentification.models.TargetStorageLocation": "HealthDataAIServices.DeidServices.TargetStorageLocation",
17+
"azure.health.deidentification.models.DeidentificationOperationType": "HealthDataAIServices.DeidServices.DeidentificationOperationType",
18+
"azure.health.deidentification.models.OperationState": "Azure.Core.Foundations.OperationState",
19+
"azure.health.deidentification.models.PhiCategory": "HealthDataAIServices.DeidServices.PhiCategory",
20+
"azure.health.deidentification.DeidentificationClient.get_job": "HealthDataAIServices.DeidServices.getJob",
21+
"azure.health.deidentification.aio.DeidentificationClient.get_job": "HealthDataAIServices.DeidServices.getJob",
22+
"azure.health.deidentification.DeidentificationClient.begin_deidentify_documents": "HealthDataAIServices.DeidServices.deidentifyDocuments",
23+
"azure.health.deidentification.aio.DeidentificationClient.begin_deidentify_documents": "HealthDataAIServices.DeidServices.deidentifyDocuments",
24+
"azure.health.deidentification.DeidentificationClient.cancel_job": "HealthDataAIServices.DeidServices.cancelJob",
25+
"azure.health.deidentification.aio.DeidentificationClient.cancel_job": "HealthDataAIServices.DeidServices.cancelJob",
26+
"azure.health.deidentification.DeidentificationClient.delete_job": "HealthDataAIServices.DeidServices.deleteJob",
27+
"azure.health.deidentification.aio.DeidentificationClient.delete_job": "HealthDataAIServices.DeidServices.deleteJob",
28+
"azure.health.deidentification.DeidentificationClient.deidentify_text": "HealthDataAIServices.DeidServices.deidentifyText",
29+
"azure.health.deidentification.aio.DeidentificationClient.deidentify_text": "HealthDataAIServices.DeidServices.deidentifyText"
30+
}
31+
}

sdk/healthdataaiservices/azure-health-deidentification/azure/health/deidentification/__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) Python 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 ._client import DeidentificationClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._client import DeidentificationClient # 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
"DeidentificationClient",
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/healthdataaiservices/azure-health-deidentification/azure/health/deidentification/_client.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,30 @@
1616

1717
from ._configuration import DeidentificationClientConfiguration
1818
from ._operations import DeidentificationClientOperationsMixin
19-
from ._serialization import Deserializer, Serializer
19+
from ._utils.serialization import Deserializer, Serializer
2020

2121
if TYPE_CHECKING:
22-
# pylint: disable=unused-import,ungrouped-imports
2322
from azure.core.credentials import TokenCredential
2423

2524

26-
class DeidentificationClient(
27-
DeidentificationClientOperationsMixin
28-
): # pylint: disable=client-accepts-api-version-keyword
25+
class DeidentificationClient(DeidentificationClientOperationsMixin):
2926
"""DeidentificationClient.
3027
3128
:param endpoint: Url of your De-identification Service. Required.
3229
:type endpoint: str
3330
:param credential: Credential used to authenticate requests to the service. Required.
3431
:type credential: ~azure.core.credentials.TokenCredential
35-
:keyword api_version: The API version to use for this operation. Default value is
36-
"2024-07-12-preview". Note that overriding this default value may result in unsupported
37-
behavior.
32+
:keyword api_version: The API version to use for this operation. Default value is "2024-11-15".
33+
Note that overriding this default value may result in unsupported behavior.
3834
:paramtype api_version: str
3935
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4036
Retry-After header is present.
4137
"""
4238

4339
def __init__(self, endpoint: str, credential: "TokenCredential", **kwargs: Any) -> None:
44-
_endpoint = "https://{endpoint}"
40+
_endpoint = "{endpoint}"
4541
self._config = DeidentificationClientConfiguration(endpoint=endpoint, credential=credential, **kwargs)
42+
4643
_policies = kwargs.pop("policies", None)
4744
if _policies is None:
4845
_policies = [
@@ -86,7 +83,7 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
8683

8784
request_copy = deepcopy(request)
8885
path_format_arguments = {
89-
"endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str"),
86+
"endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True),
9087
}
9188

9289
request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments)

sdk/healthdataaiservices/azure-health-deidentification/azure/health/deidentification/_configuration.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
from ._version import VERSION
1414

1515
if TYPE_CHECKING:
16-
# pylint: disable=unused-import,ungrouped-imports
1716
from azure.core.credentials import TokenCredential
1817

1918

20-
class DeidentificationClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
19+
class DeidentificationClientConfiguration: # pylint: disable=too-many-instance-attributes
2120
"""Configuration for DeidentificationClient.
2221
2322
Note that all parameters used to create this instance are saved as instance
@@ -27,14 +26,13 @@ class DeidentificationClientConfiguration: # pylint: disable=too-many-instance-
2726
:type endpoint: str
2827
:param credential: Credential used to authenticate requests to the service. Required.
2928
:type credential: ~azure.core.credentials.TokenCredential
30-
:keyword api_version: The API version to use for this operation. Default value is
31-
"2024-07-12-preview". Note that overriding this default value may result in unsupported
32-
behavior.
29+
:keyword api_version: The API version to use for this operation. Default value is "2024-11-15".
30+
Note that overriding this default value may result in unsupported behavior.
3331
:paramtype api_version: str
3432
"""
3533

3634
def __init__(self, endpoint: str, credential: "TokenCredential", **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2024-07-12-preview")
35+
api_version: str = kwargs.pop("api_version", "2024-11-15")
3836

3937
if endpoint is None:
4038
raise ValueError("Parameter 'endpoint' must not be None.")

sdk/healthdataaiservices/azure-health-deidentification/azure/health/deidentification/_operations/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@
55
# Code generated by Microsoft (R) Python 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 ._operations import DeidentificationClientOperationsMixin
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._operations import DeidentificationClientOperationsMixin # type: ignore
1016

1117
from ._patch import __all__ as _patch_all
12-
from ._patch import * # pylint: disable=unused-wildcard-import
18+
from ._patch import *
1319
from ._patch import patch_sdk as _patch_sdk
1420

1521
__all__ = [
1622
"DeidentificationClientOperationsMixin",
1723
]
18-
__all__.extend([p for p in _patch_all if p not in __all__])
24+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
1925
_patch_sdk()

0 commit comments

Comments
 (0)