77# --------------------------------------------------------------------------
88
99from copy import deepcopy
10- from typing import Any , Optional , TYPE_CHECKING
10+ from typing import Any , TYPE_CHECKING
1111
1212from azure .core .rest import HttpRequest , HttpResponse
1313from azure .mgmt .core import ARMPipelineClient
14- from msrest import Deserializer , Serializer
1514
16- from . import models
15+ from . import models as _models
1716from ._configuration import HealthcareApisManagementClientConfiguration
18- from .operations import DicomServicesOperations , FhirDestinationsOperations , FhirServicesOperations , IotConnectorFhirDestinationOperations , IotConnectorsOperations , OperationResultsOperations , Operations , PrivateEndpointConnectionsOperations , PrivateLinkResourcesOperations , ServicesOperations , WorkspacePrivateEndpointConnectionsOperations , WorkspacePrivateLinkResourcesOperations , WorkspacesOperations
17+ from ._serialization import Deserializer , Serializer
18+ from .operations import (
19+ DicomServicesOperations ,
20+ FhirDestinationsOperations ,
21+ FhirServicesOperations ,
22+ IotConnectorFhirDestinationOperations ,
23+ IotConnectorsOperations ,
24+ OperationResultsOperations ,
25+ Operations ,
26+ PrivateEndpointConnectionsOperations ,
27+ PrivateLinkResourcesOperations ,
28+ ServicesOperations ,
29+ WorkspacePrivateEndpointConnectionsOperations ,
30+ WorkspacePrivateLinkResourcesOperations ,
31+ WorkspacesOperations ,
32+ )
1933
2034if TYPE_CHECKING :
2135 # pylint: disable=unused-import,ungrouped-imports
2236 from azure .core .credentials import TokenCredential
2337
24- class HealthcareApisManagementClient :
38+
39+ class HealthcareApisManagementClient : # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
2540 """Azure Healthcare APIs Client.
2641
2742 :ivar services: ServicesOperations operations
@@ -56,12 +71,15 @@ class HealthcareApisManagementClient:
5671 :vartype operations: azure.mgmt.healthcareapis.operations.Operations
5772 :ivar operation_results: OperationResultsOperations operations
5873 :vartype operation_results: azure.mgmt.healthcareapis.operations.OperationResultsOperations
59- :param credential: Credential needed for the client to connect to Azure.
74+ :param credential: Credential needed for the client to connect to Azure. Required.
6075 :type credential: ~azure.core.credentials.TokenCredential
61- :param subscription_id: The subscription identifier.
76+ :param subscription_id: The subscription identifier. Required.
6277 :type subscription_id: str
63- :param base_url: Service URL. Default value is ' https://management.azure.com' .
78+ :param base_url: Service URL. Default value is " https://management.azure.com" .
6479 :type base_url: str
80+ :keyword api_version: Api Version. Default value is "2022-06-01". Note that overriding this
81+ default value may result in unsupported behavior.
82+ :paramtype api_version: str
6583 :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
6684 Retry-After header is present.
6785 """
@@ -73,33 +91,44 @@ def __init__(
7391 base_url : str = "https://management.azure.com" ,
7492 ** kwargs : Any
7593 ) -> None :
76- self ._config = HealthcareApisManagementClientConfiguration (credential = credential , subscription_id = subscription_id , ** kwargs )
94+ self ._config = HealthcareApisManagementClientConfiguration (
95+ credential = credential , subscription_id = subscription_id , ** kwargs
96+ )
7797 self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
7898
79- client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
99+ client_models = {k : v for k , v in _models .__dict__ .items () if isinstance (v , type )}
80100 self ._serialize = Serializer (client_models )
81101 self ._deserialize = Deserializer (client_models )
82102 self ._serialize .client_side_validation = False
83103 self .services = ServicesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
84- self .private_endpoint_connections = PrivateEndpointConnectionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
85- self .private_link_resources = PrivateLinkResourcesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
104+ self .private_endpoint_connections = PrivateEndpointConnectionsOperations (
105+ self ._client , self ._config , self ._serialize , self ._deserialize
106+ )
107+ self .private_link_resources = PrivateLinkResourcesOperations (
108+ self ._client , self ._config , self ._serialize , self ._deserialize
109+ )
86110 self .workspaces = WorkspacesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
87111 self .dicom_services = DicomServicesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
88112 self .iot_connectors = IotConnectorsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
89- self .fhir_destinations = FhirDestinationsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
90- self .iot_connector_fhir_destination = IotConnectorFhirDestinationOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
113+ self .fhir_destinations = FhirDestinationsOperations (
114+ self ._client , self ._config , self ._serialize , self ._deserialize
115+ )
116+ self .iot_connector_fhir_destination = IotConnectorFhirDestinationOperations (
117+ self ._client , self ._config , self ._serialize , self ._deserialize
118+ )
91119 self .fhir_services = FhirServicesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
92- self .workspace_private_endpoint_connections = WorkspacePrivateEndpointConnectionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
93- self .workspace_private_link_resources = WorkspacePrivateLinkResourcesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
120+ self .workspace_private_endpoint_connections = WorkspacePrivateEndpointConnectionsOperations (
121+ self ._client , self ._config , self ._serialize , self ._deserialize
122+ )
123+ self .workspace_private_link_resources = WorkspacePrivateLinkResourcesOperations (
124+ self ._client , self ._config , self ._serialize , self ._deserialize
125+ )
94126 self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
95- self .operation_results = OperationResultsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
96-
127+ self .operation_results = OperationResultsOperations (
128+ self ._client , self ._config , self ._serialize , self ._deserialize
129+ )
97130
98- def _send_request (
99- self ,
100- request , # type: HttpRequest
101- ** kwargs : Any
102- ) -> HttpResponse :
131+ def _send_request (self , request : HttpRequest , ** kwargs : Any ) -> HttpResponse :
103132 """Runs the network request through the client's chained policies.
104133
105134 >>> from azure.core.rest import HttpRequest
@@ -108,7 +137,7 @@ def _send_request(
108137 >>> response = client._send_request(request)
109138 <HttpResponse: 200 OK>
110139
111- For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart
140+ For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/ python/send_request
112141
113142 :param request: The network request you want to make. Required.
114143 :type request: ~azure.core.rest.HttpRequest
@@ -121,15 +150,12 @@ def _send_request(
121150 request_copy .url = self ._client .format_url (request_copy .url )
122151 return self ._client .send_request (request_copy , ** kwargs )
123152
124- def close (self ):
125- # type: () -> None
153+ def close (self ) -> None :
126154 self ._client .close ()
127155
128- def __enter__ (self ):
129- # type: () -> HealthcareApisManagementClient
156+ def __enter__ (self ) -> "HealthcareApisManagementClient" :
130157 self ._client .__enter__ ()
131158 return self
132159
133- def __exit__ (self , * exc_details ):
134- # type: (Any) -> None
160+ def __exit__ (self , * exc_details ) -> None :
135161 self ._client .__exit__ (* exc_details )
0 commit comments