Skip to content

Commit be8c6d0

Browse files
authored
code and test (#33424)
Co-authored-by: azure-sdk <PythonSdkPipelines>
1 parent 67aca25 commit be8c6d0

File tree

89 files changed

+1196
-1191
lines changed

Some content is hidden

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

89 files changed

+1196
-1191
lines changed

sdk/healthcareapis/azure-mgmt-healthcareapis/CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Release History
22

3+
## 2.0.0 (2023-12-18)
4+
5+
### Features Added
6+
7+
- Model DicomService has a new parameter cors_configuration
8+
- Model DicomService has a new parameter encryption
9+
- Model DicomService has a new parameter event_state
10+
- Model FhirService has a new parameter encryption
11+
- Model FhirService has a new parameter implementation_guides_configuration
12+
- Model FhirService has a new parameter import_configuration
13+
- Model MetricSpecification has a new parameter enable_regional_mdm_account
14+
- Model MetricSpecification has a new parameter is_internal
15+
- Model MetricSpecification has a new parameter metric_filter_pattern
16+
- Model MetricSpecification has a new parameter resource_id_dimension_name_override
17+
- Model MetricSpecification has a new parameter source_mdm_account
18+
- Model ServiceCosmosDbConfigurationInfo has a new parameter cross_tenant_cmk_application_id
19+
- Model ServicesProperties has a new parameter import_configuration
20+
21+
### Breaking Changes
22+
23+
- Model FhirService no longer has parameter access_policies
24+
325
## 1.2.0b1 (2022-11-22)
426

527
### Features Added

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

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,54 @@ For a more complete view of Azure libraries, see the [azure sdk python release](
88

99
_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
1010

11-
# Usage
11+
## Getting started
1212

13+
### Prerequisites
1314

14-
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
15-
16-
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
17-
Code samples for this package can be found at [Health Care Apis Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
18-
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
15+
- Python 3.7+ is required to use this package.
16+
- [Azure subscription](https://azure.microsoft.com/free/)
1917

18+
### Install the package
2019

21-
# Provide Feedback
20+
```bash
21+
pip install azure-mgmt-healthcareapis
22+
pip install azure-identity
23+
```
24+
25+
### Authentication
26+
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
28+
29+
- `AZURE_CLIENT_ID` for Azure client ID.
30+
- `AZURE_TENANT_ID` for Azure tenant ID.
31+
- `AZURE_CLIENT_SECRET` for Azure client secret.
32+
33+
In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
34+
35+
With above configuration, client can be authenticated by following code:
36+
37+
```python
38+
from azure.identity import DefaultAzureCredential
39+
from azure.mgmt.healthcareapis import HealthcareApisManagementClient
40+
import os
41+
42+
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
43+
client = HealthcareApisManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
44+
```
45+
46+
## Examples
47+
48+
Code samples for this package can be found at:
49+
- [Search Health Care Apis Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
50+
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
51+
52+
53+
## Troubleshooting
54+
55+
## Next steps
56+
57+
## Provide Feedback
2258

2359
If you encounter any bugs or have suggestions, please file an issue in the
2460
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
2561
section of the project.
26-
27-
28-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-healthcareapis%2FREADME.png)
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "fc0c0316bf5187af413a256c484c1e2a259e18b8",
2+
"commit": "583e15ceb4cf23dc23b2300bd352f16d781e69ac",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.2",
4+
"autorest": "3.9.7",
55
"use": [
6-
"@autorest/python@6.2.7",
7-
"@autorest/modelerfour@4.24.3"
6+
"@autorest/python@6.7.1",
7+
"@autorest/modelerfour@4.26.2"
88
],
9-
"autorest_command": "autorest specification/healthcareapis/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.2.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/healthcareapis/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
1010
"readme": "specification/healthcareapis/resource-manager/readme.md"
1111
}

sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/_configuration.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
import sys
109
from typing import Any, TYPE_CHECKING
1110

1211
from azure.core.configuration import Configuration
@@ -15,11 +14,6 @@
1514

1615
from ._version import VERSION
1716

18-
if sys.version_info >= (3, 8):
19-
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
20-
else:
21-
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
22-
2317
if TYPE_CHECKING:
2418
# pylint: disable=unused-import,ungrouped-imports
2519
from azure.core.credentials import TokenCredential
@@ -33,16 +27,16 @@ class HealthcareApisManagementClientConfiguration(Configuration): # pylint: dis
3327
3428
:param credential: Credential needed for the client to connect to Azure. Required.
3529
:type credential: ~azure.core.credentials.TokenCredential
36-
:param subscription_id: The subscription identifier. Required.
30+
:param subscription_id: The ID of the target subscription. Required.
3731
:type subscription_id: str
38-
:keyword api_version: Api Version. Default value is "2022-06-01". Note that overriding this
32+
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
3933
default value may result in unsupported behavior.
4034
:paramtype api_version: str
4135
"""
4236

4337
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4438
super(HealthcareApisManagementClientConfiguration, self).__init__(**kwargs)
45-
api_version: Literal["2022-06-01"] = kwargs.pop("api_version", "2022-06-01")
39+
api_version: str = kwargs.pop("api_version", "2023-11-01")
4640

4741
if credential is None:
4842
raise ValueError("Parameter 'credential' must not be None.")

sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/_healthcare_apis_management_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ class HealthcareApisManagementClient: # pylint: disable=client-accepts-api-vers
7373
:vartype operation_results: azure.mgmt.healthcareapis.operations.OperationResultsOperations
7474
:param credential: Credential needed for the client to connect to Azure. Required.
7575
:type credential: ~azure.core.credentials.TokenCredential
76-
:param subscription_id: The subscription identifier. Required.
76+
:param subscription_id: The ID of the target subscription. Required.
7777
:type subscription_id: str
7878
:param base_url: Service URL. Default value is "https://management.azure.com".
7979
:type base_url: str
80-
:keyword api_version: Api Version. Default value is "2022-06-01". Note that overriding this
80+
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
8181
default value may result in unsupported behavior.
8282
:paramtype api_version: str
8383
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -94,7 +94,7 @@ def __init__(
9494
self._config = HealthcareApisManagementClientConfiguration(
9595
credential=credential, subscription_id=subscription_id, **kwargs
9696
)
97-
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
97+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
9898

9999
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
100100
self._serialize = Serializer(client_models)
@@ -157,5 +157,5 @@ def __enter__(self) -> "HealthcareApisManagementClient":
157157
self._client.__enter__()
158158
return self
159159

160-
def __exit__(self, *exc_details) -> None:
160+
def __exit__(self, *exc_details: Any) -> None:
161161
self._client.__exit__(*exc_details)

0 commit comments

Comments
 (0)