Skip to content
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
751eac1
Regenerated for stable API version
Nov 7, 2024
d7bed4a
Custom methods
Nov 8, 2024
f04a4d1
Customization WIP
Nov 8, 2024
e525196
Add client methods
Nov 8, 2024
eb370ea
Overrides for async client
Nov 8, 2024
d3cfa69
Update tests for new API spec
Nov 8, 2024
a8fc006
AttributeError: 'DeidentificationClient' object has no attribute 'beg…
Nov 8, 2024
7d97948
Merge branch 'main' of https://github.com/alexathomases/azure-sdk-for…
Nov 8, 2024
eedbd1a
Internal operations!
Nov 8, 2024
9208417
Still missing client method
Nov 8, 2024
f6aa621
Update tests for job refactor
Nov 8, 2024
68ed6f1
Inheritance for customizations
Nov 9, 2024
1c0e9b7
Model imports
Nov 9, 2024
b39a426
Add kwargs for maxpagesize
Nov 9, 2024
a502da5
Add @distributed_trace
Nov 9, 2024
1f2a357
Fix pylint-next errors/warnings
Nov 10, 2024
a7cc69e
Update configuration files
Nov 11, 2024
d3936e1
Changelog update
Nov 11, 2024
e081272
Updating tests for new API version
Nov 12, 2024
b268504
Pagination test, fixes for urls
Nov 15, 2024
9d78e4a
work in progress test sanitizing
Dec 12, 2024
3c49ca2
Regenerated for stable API version
Nov 7, 2024
973debc
Custom methods
Nov 8, 2024
66be3e8
Customization WIP
Nov 8, 2024
7ab9e05
Add client methods
Nov 8, 2024
8572d18
Overrides for async client
Nov 8, 2024
258adb9
Update tests for new API spec
Nov 8, 2024
36aa6e4
AttributeError: 'DeidentificationClient' object has no attribute 'beg…
Nov 8, 2024
96f4d3a
Internal operations!
Nov 8, 2024
97f7359
Still missing client method
Nov 8, 2024
aacbebc
Update tests for job refactor
Nov 8, 2024
b2f743b
Inheritance for customizations
Nov 9, 2024
4f29b8f
Model imports
Nov 9, 2024
9f31f62
Add kwargs for maxpagesize
Nov 9, 2024
b7dcc03
Add @distributed_trace
Nov 9, 2024
b0cf1ce
Fix pylint-next errors/warnings
Nov 10, 2024
6976f32
Update configuration files
Nov 11, 2024
da929e1
Changelog update
Nov 11, 2024
1564fe9
Updating tests for new API version
Nov 12, 2024
ca151be
Pagination test, fixes for urls
Nov 15, 2024
3af8307
work in progress test sanitizing
Dec 12, 2024
1783cba
Merge branch 'main' of https://github.com/alexathomases/azure-sdk-for…
josiahvinson Apr 28, 2025
37d6e74
Tests running against latest TypeSpec
josiahvinson Apr 30, 2025
57fc9bb
Update TypeSpec before customizations
josiahvinson Apr 30, 2025
ee7f0f9
Pull in SDK client name updates
josiahvinson May 1, 2025
0d75537
Update changelog and samples
josiahvinson May 2, 2025
5e5992e
update changelog to unreleased
josiahvinson May 2, 2025
a0fbb2f
remove unreleased beta version from changelog
josiahvinson May 2, 2025
438e711
Updating version to 1.0.0
josiahvinson May 2, 2025
6419709
Update README, samples
josiahvinson May 6, 2025
72de0ca
Update spelling
josiahvinson May 6, 2025
6d0a372
Separate samples for each operation
josiahvinson May 6, 2025
d1a5ffd
adding black formatting
josiahvinson May 7, 2025
864866b
update snippets after black formatting
josiahvinson May 7, 2025
45970af
Update generated code
josiahvinson May 13, 2025
55dcb03
Updating TypeSpec commit
josiahvinson May 19, 2025
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,6 +1,8 @@
# Release History

## 1.0.0b2 (Unreleased)
## 1.0.0b2 (2024-11-15)

- Stable release of Azure Health Deidentification client library

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ include azure/health/deidentification/py.typed
recursive-include tests *.py
recursive-include samples *.py *.md
include azure/__init__.py
include azure/health/__init__.py
include azure/health/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"CrossLanguagePackageId": "HealthDataAIServices.DeidServices",
"CrossLanguageDefinitionId": {
"azure.health.deidentification.models.DeidentificationContent": "HealthDataAIServices.DeidServices.DeidentificationContent",
"azure.health.deidentification.models.DeidentificationCustomizationOptions": "HealthDataAIServices.DeidServices.DeidentificationCustomizationOptions",
"azure.health.deidentification.models.DeidentificationDocumentDetails": "HealthDataAIServices.DeidServices.DeidentificationDocumentDetails",
"azure.health.deidentification.models.DeidentificationDocumentLocation": "HealthDataAIServices.DeidServices.DeidentificationDocumentLocation",
"azure.health.deidentification.models.DeidentificationJob": "HealthDataAIServices.DeidServices.DeidentificationJob",
"azure.health.deidentification.models.DeidentificationJobCustomizationOptions": "HealthDataAIServices.DeidServices.DeidentificationJobCustomizationOptions",
"azure.health.deidentification.models.DeidentificationJobSummary": "HealthDataAIServices.DeidServices.DeidentificationJobSummary",
"azure.health.deidentification.models.DeidentificationResult": "HealthDataAIServices.DeidServices.DeidentificationResult",
"azure.health.deidentification.models.PhiEntity": "HealthDataAIServices.DeidServices.PhiEntity",
"azure.health.deidentification.models.PhiTaggerResult": "HealthDataAIServices.DeidServices.PhiTaggerResult",
"azure.health.deidentification.models.SourceStorageLocation": "HealthDataAIServices.DeidServices.SourceStorageLocation",
"azure.health.deidentification.models.StringIndex": "HealthDataAIServices.DeidServices.StringIndex",
"azure.health.deidentification.models.TargetStorageLocation": "HealthDataAIServices.DeidServices.TargetStorageLocation",
"azure.health.deidentification.models.DeidentificationOperationType": "HealthDataAIServices.DeidServices.DeidentificationOperationType",
"azure.health.deidentification.models.OperationStatus": "Azure.Core.Foundations.OperationState",
"azure.health.deidentification.models.PhiCategory": "HealthDataAIServices.DeidServices.PhiCategory",
"azure.health.deidentification.DeidentificationClient.get_job": "HealthDataAIServices.DeidServices.getJob",
"azure.health.deidentification.DeidentificationClient.begin_deidentify_documents": "HealthDataAIServices.DeidServices.deidentifyDocuments",
"azure.health.deidentification.DeidentificationClient.cancel_job": "HealthDataAIServices.DeidServices.cancelJob",
"azure.health.deidentification.DeidentificationClient.delete_job": "HealthDataAIServices.DeidServices.deleteJob",
"azure.health.deidentification.DeidentificationClient.deidentify_text": "HealthDataAIServices.DeidServices.deidentifyText"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "python",
"TagPrefix": "python/healthdataaiservices/azure-health-deidentification",
"Tag": "python/healthdataaiservices/azure-health-deidentification_a8eed6d322"
"Tag": "python/healthdataaiservices/azure-health-deidentification_a9eda6ed27"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._client import DeidentificationClient
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._client import DeidentificationClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"DeidentificationClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,27 @@
from ._serialization import Deserializer, Serializer

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


class DeidentificationClient(
DeidentificationClientOperationsMixin
): # pylint: disable=client-accepts-api-version-keyword
class DeidentificationClient(DeidentificationClientOperationsMixin):
"""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
"2024-07-12-preview". Note that overriding this default value may result in unsupported
behavior.
:keyword api_version: The API version to use for this operation. Default value is "2024-11-15".
Note that overriding this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
"""

def __init__(self, endpoint: str, credential: "TokenCredential", **kwargs: Any) -> None:
_endpoint = "https://{endpoint}"
_endpoint = "{endpoint}"
self._config = DeidentificationClientConfiguration(endpoint=endpoint, credential=credential, **kwargs)

_policies = kwargs.pop("policies", None)
if _policies is None:
_policies = [
Expand Down Expand Up @@ -86,7 +83,7 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:

request_copy = deepcopy(request)
path_format_arguments = {
"endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str"),
"endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True),
}

request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@
from ._version import VERSION

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


class DeidentificationClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class DeidentificationClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for DeidentificationClient.

Note that all parameters used to create this instance are saved as instance
Expand All @@ -27,14 +26,13 @@ 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
"2024-07-12-preview". Note that overriding this default value may result in unsupported
behavior.
:keyword api_version: The API version to use for this operation. Default value is "2024-11-15".
Note that overriding this default value may result in unsupported behavior.
:paramtype api_version: str
"""

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

if endpoint is None:
raise ValueError("Parameter 'endpoint' must not be None.")
Expand Down
Loading
Loading