@@ -37,9 +37,8 @@ class ComputeFleetMgmtClient: # pylint: disable=client-accepts-api-version-keyw
37
37
:type subscription_id: str
38
38
:param base_url: Service host. Default value is "https://management.azure.com".
39
39
: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.
43
42
:paramtype api_version: str
44
43
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
45
44
Retry-After header is present.
@@ -52,8 +51,9 @@ def __init__(
52
51
base_url : str = "https://management.azure.com" ,
53
52
** kwargs : Any
54
53
) -> None :
54
+ _endpoint = "{endpoint}"
55
55
self ._config = ComputeFleetMgmtClientConfiguration (
56
- credential = credential , subscription_id = subscription_id , ** kwargs
56
+ credential = credential , subscription_id = subscription_id , base_url = base_url , ** kwargs
57
57
)
58
58
_policies = kwargs .pop ("policies" , None )
59
59
if _policies is None :
@@ -73,7 +73,7 @@ def __init__(
73
73
policies .SensitiveHeaderCleanupPolicy (** kwargs ) if self ._config .redirect_policy else None ,
74
74
self ._config .http_logging_policy ,
75
75
]
76
- self ._client : ARMPipelineClient = ARMPipelineClient (base_url = base_url , policies = _policies , ** kwargs )
76
+ self ._client : ARMPipelineClient = ARMPipelineClient (base_url = _endpoint , policies = _policies , ** kwargs )
77
77
78
78
self ._serialize = Serializer ()
79
79
self ._deserialize = Deserializer ()
@@ -100,7 +100,11 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
100
100
"""
101
101
102
102
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 )
104
108
return self ._client .send_request (request_copy , stream = stream , ** kwargs ) # type: ignore
105
109
106
110
def close (self ) -> None :
0 commit comments