@@ -119,9 +119,7 @@ def _url(
119119 # Convert to public URL if requested
120120 if public :
121121 if not url .startswith (self ._base_url ):
122- raise ValueError (
123- f'Cannot convert to public URL: { url } does not start with base URL { self ._base_url } '
124- )
122+ raise ValueError (f'Cannot convert to public URL: { url } does not start with base URL { self ._base_url } ' )
125123 url = url .replace (self ._base_url , self ._public_base_url , 1 )
126124
127125 # Append query parameters if provided
@@ -153,9 +151,6 @@ def _build_params(self, **kwargs: Any) -> dict:
153151 merged = {** self ._default_params , ** kwargs }
154152 return {k : v for k , v in merged .items () if v is not None }
155153
156- # Backwards compatibility alias
157- _params = _build_params
158-
159154 def _nested_client_config (self , ** kwargs : Any ) -> NestedClientConfig :
160155 """Build configuration dict for initializing a nested resource client.
161156
@@ -180,10 +175,14 @@ def _nested_client_config(self, **kwargs: Any) -> NestedClientConfig:
180175 }
181176 return {** options , ** kwargs }
182177
183- # Backwards compatibility alias
184- _sub_resource_init_options = _nested_client_config
185-
186- def _create_sibling_client (self , client_class : type , * , resource_id : str , resource_path : str | None = None , ** kwargs : Any ) -> Any :
178+ def _create_sibling_client (
179+ self ,
180+ client_class : type ,
181+ * ,
182+ resource_id : str ,
183+ resource_path : str | None = None ,
184+ ** kwargs : Any ,
185+ ) -> Any :
187186 """Create a sibling resource client (e.g., RunClient from ActorClient).
188187
189188 This is used when a resource client needs to create another resource client
@@ -310,9 +309,7 @@ def _url(
310309 # Convert to public URL if requested
311310 if public :
312311 if not url .startswith (self ._base_url ):
313- raise ValueError (
314- f'Cannot convert to public URL: { url } does not start with base URL { self ._base_url } '
315- )
312+ raise ValueError (f'Cannot convert to public URL: { url } does not start with base URL { self ._base_url } ' )
316313 url = url .replace (self ._base_url , self ._public_base_url , 1 )
317314
318315 # Append query parameters if provided
@@ -344,9 +341,6 @@ def _build_params(self, **kwargs: Any) -> dict:
344341 merged = {** self ._default_params , ** kwargs }
345342 return {k : v for k , v in merged .items () if v is not None }
346343
347- # Backwards compatibility alias
348- _params = _build_params
349-
350344 def _nested_client_config (self , ** kwargs : Any ) -> NestedClientConfig :
351345 """Build configuration dict for initializing a nested resource client.
352346
@@ -371,10 +365,14 @@ def _nested_client_config(self, **kwargs: Any) -> NestedClientConfig:
371365 }
372366 return {** options , ** kwargs }
373367
374- # Backwards compatibility alias
375- _sub_resource_init_options = _nested_client_config
376-
377- def _create_sibling_client (self , client_class : type , * , resource_id : str , resource_path : str | None = None , ** kwargs : Any ) -> Any :
368+ def _create_sibling_client (
369+ self ,
370+ client_class : type ,
371+ * ,
372+ resource_id : str ,
373+ resource_path : str | None = None ,
374+ ** kwargs : Any ,
375+ ) -> Any :
378376 """Create a sibling resource client (e.g., RunClientAsync from ActorClientAsync).
379377
380378 This is used when a resource client needs to create another resource client
0 commit comments