22# --------------------------------------------------------------------------
33# Copyright (c) Microsoft Corporation. All rights reserved.
44# Licensed under the MIT License. See License.txt in the project root for license information.
5- # Code generated by Microsoft (R) Python Code Generator.
5+ # Code generated by Microsoft (R) AutoRest Code Generator.
66# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77# --------------------------------------------------------------------------
88
1515from azure .mgmt .core import ARMPipelineClient
1616from azure .mgmt .core .policies import ARMAutoResourceProviderRegistrationPolicy
1717
18- from ._configuration import HealthDataAIServicesMgmtClientConfiguration
18+ from . import models as _models
19+ from ._configuration import MicrosoftHealthDataAIServicesConfiguration
1920from ._serialization import Deserializer , Serializer
2021from .operations import DeidServicesOperations , Operations , PrivateEndpointConnectionsOperations , PrivateLinksOperations
2122
2223if TYPE_CHECKING :
2324 from azure .core .credentials import TokenCredential
2425
2526
26- class HealthDataAIServicesMgmtClient :
27- """HealthDataAIServicesMgmtClient .
27+ class MicrosoftHealthDataAIServices :
28+ """MicrosoftHealthDataAIServices .
2829
2930 :ivar operations: Operations operations
3031 :vartype operations: azure.mgmt.healthdataaiservices.operations.Operations
@@ -35,14 +36,14 @@ class HealthDataAIServicesMgmtClient:
3536 azure.mgmt.healthdataaiservices.operations.PrivateEndpointConnectionsOperations
3637 :ivar private_links: PrivateLinksOperations operations
3738 :vartype private_links: azure.mgmt.healthdataaiservices.operations.PrivateLinksOperations
38- :param credential: Credential used to authenticate requests to the service . Required.
39+ :param credential: Credential needed for the client to connect to Azure . Required.
3940 :type credential: ~azure.core.credentials.TokenCredential
4041 :param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
4142 :type subscription_id: str
42- :param base_url: Service host . Default value is "https://management.azure.com".
43+ :param base_url: Service URL . Default value is "https://management.azure.com".
4344 :type base_url: str
44- :keyword api_version: The API version to use for this operation . Default value is "2024-09-20".
45- Note that overriding this default value may result in unsupported behavior.
45+ :keyword api_version: Api Version . Default value is "2024-09-20". Note that overriding this
46+ default value may result in unsupported behavior.
4647 :paramtype api_version: str
4748 :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4849 Retry-After header is present.
@@ -55,9 +56,8 @@ def __init__(
5556 base_url : str = "https://management.azure.com" ,
5657 ** kwargs : Any
5758 ) -> None :
58- _endpoint = "{endpoint}"
59- self ._config = HealthDataAIServicesMgmtClientConfiguration (
60- credential = credential , subscription_id = subscription_id , base_url = base_url , ** kwargs
59+ self ._config = MicrosoftHealthDataAIServicesConfiguration (
60+ credential = credential , subscription_id = subscription_id , ** kwargs
6161 )
6262 _policies = kwargs .pop ("policies" , None )
6363 if _policies is None :
@@ -77,10 +77,11 @@ def __init__(
7777 policies .SensitiveHeaderCleanupPolicy (** kwargs ) if self ._config .redirect_policy else None ,
7878 self ._config .http_logging_policy ,
7979 ]
80- self ._client : ARMPipelineClient = ARMPipelineClient (base_url = _endpoint , policies = _policies , ** kwargs )
80+ self ._client : ARMPipelineClient = ARMPipelineClient (base_url = base_url , policies = _policies , ** kwargs )
8181
82- self ._serialize = Serializer ()
83- self ._deserialize = Deserializer ()
82+ client_models = {k : v for k , v in _models .__dict__ .items () if isinstance (v , type )}
83+ self ._serialize = Serializer (client_models )
84+ self ._deserialize = Deserializer (client_models )
8485 self ._serialize .client_side_validation = False
8586 self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
8687 self .deid_services = DeidServicesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
@@ -89,13 +90,13 @@ def __init__(
8990 )
9091 self .private_links = PrivateLinksOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
9192
92- def send_request (self , request : HttpRequest , * , stream : bool = False , ** kwargs : Any ) -> HttpResponse :
93+ def _send_request (self , request : HttpRequest , * , stream : bool = False , ** kwargs : Any ) -> HttpResponse :
9394 """Runs the network request through the client's chained policies.
9495
9596 >>> from azure.core.rest import HttpRequest
9697 >>> request = HttpRequest("GET", "https://www.example.org/")
9798 <HttpRequest [GET], url: 'https://www.example.org/'>
98- >>> response = client.send_request (request)
99+ >>> response = client._send_request (request)
99100 <HttpResponse: 200 OK>
100101
101102 For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
@@ -108,11 +109,7 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
108109 """
109110
110111 request_copy = deepcopy (request )
111- path_format_arguments = {
112- "endpoint" : self ._serialize .url ("self._config.base_url" , self ._config .base_url , "str" , skip_quote = True ),
113- }
114-
115- request_copy .url = self ._client .format_url (request_copy .url , ** path_format_arguments )
112+ request_copy .url = self ._client .format_url (request_copy .url )
116113 return self ._client .send_request (request_copy , stream = stream , ** kwargs ) # type: ignore
117114
118115 def close (self ) -> None :
0 commit comments