Skip to content
Merged
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,21 @@
# Release History

## 1.1.0b2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

- List, dict, and set fields on models now consistently reflect in-place mutations, whether the value was obtained through dictionary access (`model["field"]`) or property access (`model.field`).

### Other Changes

- Regenerated the client with the latest TypeSpec emitter and removed stale generated files.
- Dropped support for Python 3.9. The minimum supported Python version is now 3.10.
- The minimum required `azure-core` version is now 1.37.0.

## 1.1.0b1 (2025-08-05)

### Features Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Use the client library for the de-identification service to:

### Prequisites

- Python 3.9 or later is required to use this package.
- Python 3.10 or later is required to use this package.
- Install [pip][pip].
- You need an [Azure subscription][azure_sub] to use this package.
- [Deploy the de-identification service][deid_quickstart].
Expand Down Expand Up @@ -152,6 +152,7 @@ The client exposes a `begin_deidentify_documents` method that returns a [LROPoll
<!-- SNIPPET: deidentify_documents.sample -->

```python
from azure.core.exceptions import HttpResponseError
from azure.health.deidentification import DeidentificationClient
from azure.health.deidentification.models import (
DeidentificationJob,
Expand Down Expand Up @@ -183,7 +184,17 @@ job = DeidentificationJob(
target_location=TargetStorageLocation(location=storage_location, prefix=outputPrefix, overwrite=True),
)

finished_job: DeidentificationJob = client.begin_deidentify_documents(jobname, job).result(timeout=120)
try:
finished_job: DeidentificationJob = client.begin_deidentify_documents(jobname, job).result(timeout=120)
except HttpResponseError:
# A failed or canceled job surfaces as a generic polling error; the job's own error explains why.
# The lookup is best-effort so the original error is always re-raised.
try:
failed_job = client.get_job(jobname)
print(f"Job {jobname} ended with status {failed_job.status}: {failed_job.error}")
except Exception as lookup_error:
print(f"Could not retrieve job {jobname} for diagnostics: {lookup_error}")
raise

print(f"Job Name: {finished_job.job_name}")
print(f"Job Status: {finished_job.status}")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"apiVersion": "2025-07-15-preview"
"apiVersion": "2025-07-15-preview",
"apiVersions": {
"HealthDataAIServices.DeidServices": "2025-07-15-preview"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
"azure.health.deidentification.aio.DeidentificationClient.delete_job": "HealthDataAIServices.DeidServices.deleteJob",
"azure.health.deidentification.DeidentificationClient.deidentify_text": "HealthDataAIServices.DeidServices.deidentifyText",
"azure.health.deidentification.aio.DeidentificationClient.deidentify_text": "HealthDataAIServices.DeidServices.deidentifyText"
}
},
"CrossLanguageVersion": "8ab7039f42a1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# --------------------------------------------------------------------------

from copy import deepcopy
import sys
from typing import Any, TYPE_CHECKING
from typing_extensions import Self

from azure.core import PipelineClient
from azure.core.pipeline import policies
Expand All @@ -18,19 +18,27 @@
from ._operations import _DeidentificationClientOperationsMixin
from ._utils.serialization import Deserializer, Serializer

if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self # type: ignore

if TYPE_CHECKING:
from azure.core.credentials import TokenCredential


class DeidentificationClient(_DeidentificationClientOperationsMixin):
class DeidentificationClient(
_DeidentificationClientOperationsMixin
): # pylint: disable=docstring-keyword-should-match-keyword-only
"""DeidentificationClient.

:param endpoint: Url of your De-identification Service. Required.
:type endpoint: str
:param credential: Credential used to authenticate requests to the service. Required.
:type credential: ~azure.core.credentials.TokenCredential
:keyword api_version: The API version to use for this operation. Default value is
"2025-07-15-preview". Note that overriding this default value may result in unsupported
:keyword api_version: The API version to use for this operation. Known values are
"2025-07-15-preview" and None. Default value is None. If not set, the operation's default API
version will be used. Note that overriding this default value may result in unsupported
Comment thread
Copilot marked this conversation as resolved.
Resolved
behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint: disable=line-too-long,useless-suppression
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand All @@ -16,7 +17,7 @@
from azure.core.credentials import TokenCredential


class DeidentificationClientConfiguration: # pylint: disable=too-many-instance-attributes
class DeidentificationClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only
"""Configuration for DeidentificationClient.

Note that all parameters used to create this instance are saved as instance
Expand All @@ -26,8 +27,9 @@ class DeidentificationClientConfiguration: # pylint: disable=too-many-instance-
:type endpoint: str
:param credential: Credential used to authenticate requests to the service. Required.
:type credential: ~azure.core.credentials.TokenCredential
:keyword api_version: The API version to use for this operation. Default value is
"2025-07-15-preview". Note that overriding this default value may result in unsupported
:keyword api_version: The API version to use for this operation. Known values are
"2025-07-15-preview" and None. Default value is None. If not set, the operation's default API
version will be used. Note that overriding this default value may result in unsupported
behavior.
:paramtype api_version: str
"""
Expand Down
Loading
Loading