@@ -33,8 +33,6 @@ class ComputeFleetMgmtClient: # pylint: disable=client-accepts-api-version-keyw
3333 :vartype fleets: azure.mgmt.computefleet.operations.FleetsOperations
3434 :param credential: Credential used to authenticate requests to the service. Required.
3535 :type credential: ~azure.core.credentials.TokenCredential
36- :param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
37- :type subscription_id: str
3836 :param base_url: Service host. Default value is "https://management.azure.com".
3937 :type base_url: str
4038 :keyword api_version: The API version to use for this operation. Default value is
@@ -46,15 +44,10 @@ class ComputeFleetMgmtClient: # pylint: disable=client-accepts-api-version-keyw
4644 """
4745
4846 def __init__ (
49- self ,
50- credential : "TokenCredential" ,
51- subscription_id : str ,
52- base_url : str = "https://management.azure.com" ,
53- ** kwargs : Any
47+ self , credential : "TokenCredential" , base_url : str = "https://management.azure.com" , ** kwargs : Any
5448 ) -> None :
55- self ._config = ComputeFleetMgmtClientConfiguration (
56- credential = credential , subscription_id = subscription_id , ** kwargs
57- )
49+ _endpoint = "{endpoint}"
50+ self ._config = ComputeFleetMgmtClientConfiguration (credential = credential , base_url = base_url , ** kwargs )
5851 _policies = kwargs .pop ("policies" , None )
5952 if _policies is None :
6053 _policies = [
@@ -73,7 +66,7 @@ def __init__(
7366 policies .SensitiveHeaderCleanupPolicy (** kwargs ) if self ._config .redirect_policy else None ,
7467 self ._config .http_logging_policy ,
7568 ]
76- self ._client : ARMPipelineClient = ARMPipelineClient (base_url = base_url , policies = _policies , ** kwargs )
69+ self ._client : ARMPipelineClient = ARMPipelineClient (base_url = _endpoint , policies = _policies , ** kwargs )
7770
7871 self ._serialize = Serializer ()
7972 self ._deserialize = Deserializer ()
@@ -100,7 +93,11 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
10093 """
10194
10295 request_copy = deepcopy (request )
103- request_copy .url = self ._client .format_url (request_copy .url )
96+ path_format_arguments = {
97+ "endpoint" : self ._serialize .url ("self._config.base_url" , self ._config .base_url , "str" , skip_quote = True ),
98+ }
99+
100+ request_copy .url = self ._client .format_url (request_copy .url , ** path_format_arguments )
104101 return self ._client .send_request (request_copy , stream = stream , ** kwargs ) # type: ignore
105102
106103 def close (self ) -> None :
0 commit comments