@@ -37,9 +37,8 @@ class ComputeFleetMgmtClient: # pylint: disable=client-accepts-api-version-keyw
3737 :type subscription_id: str
3838 :param base_url: Service host. Default value is "https://management.azure.com".
3939 :type base_url: str
40- :keyword api_version: The API version to use for this operation. Default value is
41- "2024-05-01-preview". Note that overriding this default value may result in unsupported
42- behavior.
40+ :keyword api_version: The API version to use for this operation. Default value is "2024-11-01".
41+ Note that overriding this default value may result in unsupported behavior.
4342 :paramtype api_version: str
4443 :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4544 Retry-After header is present.
@@ -52,8 +51,9 @@ def __init__(
5251 base_url : str = "https://management.azure.com" ,
5352 ** kwargs : Any
5453 ) -> None :
54+ _endpoint = "{endpoint}"
5555 self ._config = ComputeFleetMgmtClientConfiguration (
56- credential = credential , subscription_id = subscription_id , ** kwargs
56+ credential = credential , subscription_id = subscription_id , base_url = base_url , ** kwargs
5757 )
5858 _policies = kwargs .pop ("policies" , None )
5959 if _policies is None :
@@ -73,7 +73,7 @@ def __init__(
7373 policies .SensitiveHeaderCleanupPolicy (** kwargs ) if self ._config .redirect_policy else None ,
7474 self ._config .http_logging_policy ,
7575 ]
76- self ._client : ARMPipelineClient = ARMPipelineClient (base_url = base_url , policies = _policies , ** kwargs )
76+ self ._client : ARMPipelineClient = ARMPipelineClient (base_url = _endpoint , policies = _policies , ** kwargs )
7777
7878 self ._serialize = Serializer ()
7979 self ._deserialize = Deserializer ()
@@ -100,7 +100,11 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
100100 """
101101
102102 request_copy = deepcopy (request )
103- request_copy .url = self ._client .format_url (request_copy .url )
103+ path_format_arguments = {
104+ "endpoint" : self ._serialize .url ("self._config.base_url" , self ._config .base_url , "str" , skip_quote = True ),
105+ }
106+
107+ request_copy .url = self ._client .format_url (request_copy .url , ** path_format_arguments )
104108 return self ._client .send_request (request_copy , stream = stream , ** kwargs ) # type: ignore
105109
106110 def close (self ) -> None :
0 commit comments