Skip to content

Commit 0bd5491

Browse files
Azure CLI BotSDKAuto
andauthored
[AutoRelease] t2-healthcareapis-2021-08-26-27542 (Azure#20422)
* CodeGen from PR 15381 in Azure/azure-rest-api-specs Update readme.md (Azure#15381) * version,CHANGELOG Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
1 parent d4f5703 commit 0bd5491

36 files changed

+8515
-292
lines changed

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

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

3+
## 1.1.0b1 (2021-08-26)
4+
5+
**Features**
6+
7+
- Added operation group IotConnectorFhirDestinationOperations
8+
- Added operation group WorkspacesOperations
9+
- Added operation group FhirDestinationsOperations
10+
- Added operation group DicomServicesOperations
11+
- Added operation group FhirServicesOperations
12+
- Added operation group IotConnectorsOperations
13+
314
## 1.0.0 (2021-04-12)
415

516
**Features**
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"autorest": "3.0.6369",
3-
"use": "@autorest/[email protected]",
4-
"commit": "273cebe601c137222c802504425047845d4be409",
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "84d82e9a8f422a930f4e0ffbe037ae9dce5fce3f",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"autorest_command": "autorest specification/healthcareapis/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.2 --version=3.0.6369",
9+
"autorest_command": "autorest specification/healthcareapis/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/[email protected].2 --version=3.4.5",
710
"readme": "specification/healthcareapis/resource-manager/readme.md"
811
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2021-01-11"
51+
self.api_version = "2021-06-01-preview"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-healthcareapis/{}'.format(VERSION))
5454
self._configure(**kwargs)

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

Lines changed: 59 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,20 @@
1616
from typing import Any, Optional
1717

1818
from azure.core.credentials import TokenCredential
19+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
1920

2021
from ._configuration import HealthcareApisManagementClientConfiguration
2122
from .operations import ServicesOperations
22-
from .operations import Operations
23-
from .operations import OperationResultsOperations
2423
from .operations import PrivateEndpointConnectionsOperations
2524
from .operations import PrivateLinkResourcesOperations
25+
from .operations import WorkspacesOperations
26+
from .operations import DicomServicesOperations
27+
from .operations import IotConnectorsOperations
28+
from .operations import FhirDestinationsOperations
29+
from .operations import IotConnectorFhirDestinationOperations
30+
from .operations import FhirServicesOperations
31+
from .operations import Operations
32+
from .operations import OperationResultsOperations
2633
from . import models
2734

2835

@@ -31,14 +38,26 @@ class HealthcareApisManagementClient(object):
3138
3239
:ivar services: ServicesOperations operations
3340
:vartype services: azure.mgmt.healthcareapis.operations.ServicesOperations
34-
:ivar operations: Operations operations
35-
:vartype operations: azure.mgmt.healthcareapis.operations.Operations
36-
:ivar operation_results: OperationResultsOperations operations
37-
:vartype operation_results: azure.mgmt.healthcareapis.operations.OperationResultsOperations
3841
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
3942
:vartype private_endpoint_connections: azure.mgmt.healthcareapis.operations.PrivateEndpointConnectionsOperations
4043
:ivar private_link_resources: PrivateLinkResourcesOperations operations
4144
:vartype private_link_resources: azure.mgmt.healthcareapis.operations.PrivateLinkResourcesOperations
45+
:ivar workspaces: WorkspacesOperations operations
46+
:vartype workspaces: azure.mgmt.healthcareapis.operations.WorkspacesOperations
47+
:ivar dicom_services: DicomServicesOperations operations
48+
:vartype dicom_services: azure.mgmt.healthcareapis.operations.DicomServicesOperations
49+
:ivar iot_connectors: IotConnectorsOperations operations
50+
:vartype iot_connectors: azure.mgmt.healthcareapis.operations.IotConnectorsOperations
51+
:ivar fhir_destinations: FhirDestinationsOperations operations
52+
:vartype fhir_destinations: azure.mgmt.healthcareapis.operations.FhirDestinationsOperations
53+
:ivar iot_connector_fhir_destination: IotConnectorFhirDestinationOperations operations
54+
:vartype iot_connector_fhir_destination: azure.mgmt.healthcareapis.operations.IotConnectorFhirDestinationOperations
55+
:ivar fhir_services: FhirServicesOperations operations
56+
:vartype fhir_services: azure.mgmt.healthcareapis.operations.FhirServicesOperations
57+
:ivar operations: Operations operations
58+
:vartype operations: azure.mgmt.healthcareapis.operations.Operations
59+
:ivar operation_results: OperationResultsOperations operations
60+
:vartype operation_results: azure.mgmt.healthcareapis.operations.OperationResultsOperations
4261
:param credential: Credential needed for the client to connect to Azure.
4362
:type credential: ~azure.core.credentials.TokenCredential
4463
:param subscription_id: The subscription identifier.
@@ -67,14 +86,44 @@ def __init__(
6786

6887
self.services = ServicesOperations(
6988
self._client, self._config, self._serialize, self._deserialize)
70-
self.operations = Operations(
71-
self._client, self._config, self._serialize, self._deserialize)
72-
self.operation_results = OperationResultsOperations(
73-
self._client, self._config, self._serialize, self._deserialize)
7489
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
7590
self._client, self._config, self._serialize, self._deserialize)
7691
self.private_link_resources = PrivateLinkResourcesOperations(
7792
self._client, self._config, self._serialize, self._deserialize)
93+
self.workspaces = WorkspacesOperations(
94+
self._client, self._config, self._serialize, self._deserialize)
95+
self.dicom_services = DicomServicesOperations(
96+
self._client, self._config, self._serialize, self._deserialize)
97+
self.iot_connectors = IotConnectorsOperations(
98+
self._client, self._config, self._serialize, self._deserialize)
99+
self.fhir_destinations = FhirDestinationsOperations(
100+
self._client, self._config, self._serialize, self._deserialize)
101+
self.iot_connector_fhir_destination = IotConnectorFhirDestinationOperations(
102+
self._client, self._config, self._serialize, self._deserialize)
103+
self.fhir_services = FhirServicesOperations(
104+
self._client, self._config, self._serialize, self._deserialize)
105+
self.operations = Operations(
106+
self._client, self._config, self._serialize, self._deserialize)
107+
self.operation_results = OperationResultsOperations(
108+
self._client, self._config, self._serialize, self._deserialize)
109+
110+
def _send_request(self, http_request, **kwargs):
111+
# type: (HttpRequest, Any) -> HttpResponse
112+
"""Runs the network request through the client's chained policies.
113+
114+
:param http_request: The network request you want to make. Required.
115+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
116+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
117+
:return: The response of your network call. Does not do error handling on your response.
118+
:rtype: ~azure.core.pipeline.transport.HttpResponse
119+
"""
120+
path_format_arguments = {
121+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
122+
}
123+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
124+
stream = kwargs.pop("stream", True)
125+
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
126+
return pipeline_response.http_response
78127

79128
def close(self):
80129
# type: () -> None

sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/_metadata.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2021-01-11",
3-
"total_api_version_list": ["2021-01-11"],
2+
"chosen_version": "2021-06-01-preview",
3+
"total_api_version_list": ["2021-06-01-preview"],
44
"client": {
55
"name": "HealthcareApisManagementClient",
66
"filename": "_healthcare_apis_management_client",
@@ -10,8 +10,8 @@
1010
"azure_arm": true,
1111
"has_lro_operations": true,
1212
"client_side_validation": false,
13-
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"HealthcareApisManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
14-
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"HealthcareApisManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
13+
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"HealthcareApisManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"HealthcareApisManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
1515
},
1616
"global_parameters": {
1717
"sync": {
@@ -99,15 +99,15 @@
9999
},
100100
"operation_groups": {
101101
"services": "ServicesOperations",
102-
"operations": "Operations",
103-
"operation_results": "OperationResultsOperations",
104102
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
105-
"private_link_resources": "PrivateLinkResourcesOperations"
106-
},
107-
"operation_mixins": {
108-
"sync_imports": "None",
109-
"async_imports": "None",
110-
"operations": {
111-
}
103+
"private_link_resources": "PrivateLinkResourcesOperations",
104+
"workspaces": "WorkspacesOperations",
105+
"dicom_services": "DicomServicesOperations",
106+
"iot_connectors": "IotConnectorsOperations",
107+
"fhir_destinations": "FhirDestinationsOperations",
108+
"iot_connector_fhir_destination": "IotConnectorFhirDestinationOperations",
109+
"fhir_services": "FhirServicesOperations",
110+
"operations": "Operations",
111+
"operation_results": "OperationResultsOperations"
112112
}
113113
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0"
9+
VERSION = "1.1.0b1"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2021-01-11"
48+
self.api_version = "2021-06-01-preview"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-healthcareapis/{}'.format(VERSION))
5151
self._configure(**kwargs)

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

Lines changed: 58 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from typing import Any, Optional, TYPE_CHECKING
1010

11+
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1112
from azure.mgmt.core import AsyncARMPipelineClient
1213
from msrest import Deserializer, Serializer
1314

@@ -17,10 +18,16 @@
1718

1819
from ._configuration import HealthcareApisManagementClientConfiguration
1920
from .operations import ServicesOperations
20-
from .operations import Operations
21-
from .operations import OperationResultsOperations
2221
from .operations import PrivateEndpointConnectionsOperations
2322
from .operations import PrivateLinkResourcesOperations
23+
from .operations import WorkspacesOperations
24+
from .operations import DicomServicesOperations
25+
from .operations import IotConnectorsOperations
26+
from .operations import FhirDestinationsOperations
27+
from .operations import IotConnectorFhirDestinationOperations
28+
from .operations import FhirServicesOperations
29+
from .operations import Operations
30+
from .operations import OperationResultsOperations
2431
from .. import models
2532

2633

@@ -29,14 +36,26 @@ class HealthcareApisManagementClient(object):
2936
3037
:ivar services: ServicesOperations operations
3138
:vartype services: azure.mgmt.healthcareapis.aio.operations.ServicesOperations
32-
:ivar operations: Operations operations
33-
:vartype operations: azure.mgmt.healthcareapis.aio.operations.Operations
34-
:ivar operation_results: OperationResultsOperations operations
35-
:vartype operation_results: azure.mgmt.healthcareapis.aio.operations.OperationResultsOperations
3639
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
3740
:vartype private_endpoint_connections: azure.mgmt.healthcareapis.aio.operations.PrivateEndpointConnectionsOperations
3841
:ivar private_link_resources: PrivateLinkResourcesOperations operations
3942
:vartype private_link_resources: azure.mgmt.healthcareapis.aio.operations.PrivateLinkResourcesOperations
43+
:ivar workspaces: WorkspacesOperations operations
44+
:vartype workspaces: azure.mgmt.healthcareapis.aio.operations.WorkspacesOperations
45+
:ivar dicom_services: DicomServicesOperations operations
46+
:vartype dicom_services: azure.mgmt.healthcareapis.aio.operations.DicomServicesOperations
47+
:ivar iot_connectors: IotConnectorsOperations operations
48+
:vartype iot_connectors: azure.mgmt.healthcareapis.aio.operations.IotConnectorsOperations
49+
:ivar fhir_destinations: FhirDestinationsOperations operations
50+
:vartype fhir_destinations: azure.mgmt.healthcareapis.aio.operations.FhirDestinationsOperations
51+
:ivar iot_connector_fhir_destination: IotConnectorFhirDestinationOperations operations
52+
:vartype iot_connector_fhir_destination: azure.mgmt.healthcareapis.aio.operations.IotConnectorFhirDestinationOperations
53+
:ivar fhir_services: FhirServicesOperations operations
54+
:vartype fhir_services: azure.mgmt.healthcareapis.aio.operations.FhirServicesOperations
55+
:ivar operations: Operations operations
56+
:vartype operations: azure.mgmt.healthcareapis.aio.operations.Operations
57+
:ivar operation_results: OperationResultsOperations operations
58+
:vartype operation_results: azure.mgmt.healthcareapis.aio.operations.OperationResultsOperations
4059
:param credential: Credential needed for the client to connect to Azure.
4160
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
4261
:param subscription_id: The subscription identifier.
@@ -64,14 +83,43 @@ def __init__(
6483

6584
self.services = ServicesOperations(
6685
self._client, self._config, self._serialize, self._deserialize)
67-
self.operations = Operations(
68-
self._client, self._config, self._serialize, self._deserialize)
69-
self.operation_results = OperationResultsOperations(
70-
self._client, self._config, self._serialize, self._deserialize)
7186
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
7287
self._client, self._config, self._serialize, self._deserialize)
7388
self.private_link_resources = PrivateLinkResourcesOperations(
7489
self._client, self._config, self._serialize, self._deserialize)
90+
self.workspaces = WorkspacesOperations(
91+
self._client, self._config, self._serialize, self._deserialize)
92+
self.dicom_services = DicomServicesOperations(
93+
self._client, self._config, self._serialize, self._deserialize)
94+
self.iot_connectors = IotConnectorsOperations(
95+
self._client, self._config, self._serialize, self._deserialize)
96+
self.fhir_destinations = FhirDestinationsOperations(
97+
self._client, self._config, self._serialize, self._deserialize)
98+
self.iot_connector_fhir_destination = IotConnectorFhirDestinationOperations(
99+
self._client, self._config, self._serialize, self._deserialize)
100+
self.fhir_services = FhirServicesOperations(
101+
self._client, self._config, self._serialize, self._deserialize)
102+
self.operations = Operations(
103+
self._client, self._config, self._serialize, self._deserialize)
104+
self.operation_results = OperationResultsOperations(
105+
self._client, self._config, self._serialize, self._deserialize)
106+
107+
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
108+
"""Runs the network request through the client's chained policies.
109+
110+
:param http_request: The network request you want to make. Required.
111+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
112+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
113+
:return: The response of your network call. Does not do error handling on your response.
114+
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
115+
"""
116+
path_format_arguments = {
117+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
118+
}
119+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
120+
stream = kwargs.pop("stream", True)
121+
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
122+
return pipeline_response.http_response
75123

76124
async def close(self) -> None:
77125
await self._client.close()

sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/aio/operations/__init__.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,27 @@
77
# --------------------------------------------------------------------------
88

99
from ._services_operations import ServicesOperations
10-
from ._operations import Operations
11-
from ._operation_results_operations import OperationResultsOperations
1210
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
1311
from ._private_link_resources_operations import PrivateLinkResourcesOperations
12+
from ._workspaces_operations import WorkspacesOperations
13+
from ._dicom_services_operations import DicomServicesOperations
14+
from ._iot_connectors_operations import IotConnectorsOperations
15+
from ._fhir_destinations_operations import FhirDestinationsOperations
16+
from ._iot_connector_fhir_destination_operations import IotConnectorFhirDestinationOperations
17+
from ._fhir_services_operations import FhirServicesOperations
18+
from ._operations import Operations
19+
from ._operation_results_operations import OperationResultsOperations
1420

1521
__all__ = [
1622
'ServicesOperations',
17-
'Operations',
18-
'OperationResultsOperations',
1923
'PrivateEndpointConnectionsOperations',
2024
'PrivateLinkResourcesOperations',
25+
'WorkspacesOperations',
26+
'DicomServicesOperations',
27+
'IotConnectorsOperations',
28+
'FhirDestinationsOperations',
29+
'IotConnectorFhirDestinationOperations',
30+
'FhirServicesOperations',
31+
'Operations',
32+
'OperationResultsOperations',
2133
]

0 commit comments

Comments
 (0)