88
99from typing import Any , Optional , TYPE_CHECKING
1010
11+ from azure .core .pipeline .transport import AsyncHttpResponse , HttpRequest
1112from azure .mgmt .core import AsyncARMPipelineClient
1213from msrest import Deserializer , Serializer
1314
1718
1819from ._configuration import HealthcareApisManagementClientConfiguration
1920from .operations import ServicesOperations
20- from .operations import Operations
21- from .operations import OperationResultsOperations
2221from .operations import PrivateEndpointConnectionsOperations
2322from .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
2431from .. 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 ()
0 commit comments