@@ -235,7 +235,7 @@ async def update_sip_inbound_trunk_fields(
235235 metadata = metadata ,
236236 )
237237
238- async def create_outbound_trunk (
238+ async def create_outbound_trunk_config (
239239 self , create : CreateSIPOutboundTrunkRequest
240240 ) -> SIPOutboundTrunkInfo :
241241 """Create a new SIP outbound trunk.
@@ -254,13 +254,13 @@ async def create_outbound_trunk(
254254 SIPOutboundTrunkInfo ,
255255 )
256256
257- async def create_sip_outbound_trunk (
257+ async def create_sip_outbound_trunk_config (
258258 self , create : CreateSIPOutboundTrunkRequest
259259 ) -> SIPOutboundTrunkInfo :
260260 """Create a new SIP outbound trunk.
261261
262262 .. deprecated::
263- Use :meth:`create_outbound_trunk ` instead.
263+ Use :meth:`create_outbound_trunk_config ` instead.
264264
265265 Args:
266266 create: Request containing trunk details
@@ -269,13 +269,13 @@ async def create_sip_outbound_trunk(
269269 Created SIP outbound trunk
270270 """
271271 warnings .warn (
272- "create_sip_outbound_trunk is deprecated, use create_outbound_trunk instead" ,
272+ "create_sip_outbound_trunk_config is deprecated, use create_outbound_trunk_config instead" ,
273273 DeprecationWarning ,
274274 stacklevel = 2 ,
275275 )
276- return await self .create_outbound_trunk (create )
276+ return await self .create_outbound_trunk_config (create )
277277
278- async def update_outbound_trunk (
278+ async def update_outbound_trunk_config (
279279 self ,
280280 trunk_id : str ,
281281 trunk : SIPOutboundTrunkInfo ,
@@ -300,15 +300,15 @@ async def update_outbound_trunk(
300300 SIPOutboundTrunkInfo ,
301301 )
302302
303- async def update_sip_outbound_trunk (
303+ async def update_sip_outbound_trunk_config (
304304 self ,
305305 trunk_id : str ,
306306 trunk : SIPOutboundTrunkInfo ,
307307 ) -> SIPOutboundTrunkInfo :
308308 """Updates an existing SIP outbound trunk by replacing it entirely.
309309
310310 .. deprecated::
311- Use :meth:`update_outbound_trunk ` instead.
311+ Use :meth:`update_outbound_trunk_config ` instead.
312312
313313 Args:
314314 trunk_id: ID of the SIP outbound trunk to update
@@ -318,13 +318,13 @@ async def update_sip_outbound_trunk(
318318 Updated SIP outbound trunk
319319 """
320320 warnings .warn (
321- "update_sip_outbound_trunk is deprecated, use update_outbound_trunk instead" ,
321+ "update_sip_outbound_trunk_config is deprecated, use update_outbound_trunk_config instead" ,
322322 DeprecationWarning ,
323323 stacklevel = 2 ,
324324 )
325- return await self .update_outbound_trunk (trunk_id , trunk )
325+ return await self .update_outbound_trunk_config (trunk_id , trunk )
326326
327- async def update_outbound_trunk_fields (
327+ async def update_outbound_trunk_config_fields (
328328 self ,
329329 trunk_id : str ,
330330 * ,
@@ -367,7 +367,7 @@ async def update_outbound_trunk_fields(
367367 SIPOutboundTrunkInfo ,
368368 )
369369
370- async def update_sip_outbound_trunk_fields (
370+ async def update_sip_outbound_trunk_config_fields (
371371 self ,
372372 trunk_id : str ,
373373 * ,
@@ -382,16 +382,16 @@ async def update_sip_outbound_trunk_fields(
382382 """Updates specific fields of an existing SIP outbound trunk.
383383
384384 .. deprecated::
385- Use :meth:`update_outbound_trunk_fields ` instead.
385+ Use :meth:`update_outbound_trunk_config_fields ` instead.
386386
387387 Only provided fields will be updated.
388388 """
389389 warnings .warn (
390- "update_sip_outbound_trunk_fields is deprecated, use update_outbound_trunk_fields instead" ,
390+ "update_sip_outbound_trunk_config_fields is deprecated, use update_outbound_trunk_config_fields instead" ,
391391 DeprecationWarning ,
392392 stacklevel = 2 ,
393393 )
394- return await self .update_outbound_trunk_fields (
394+ return await self .update_outbound_trunk_config_fields (
395395 trunk_id ,
396396 address = address ,
397397 transport = transport ,
@@ -442,7 +442,7 @@ async def list_sip_inbound_trunk(
442442 )
443443 return await self .list_inbound_trunk (list )
444444
445- async def list_outbound_trunk (
445+ async def list_outbound_trunk_config (
446446 self , list : ListSIPOutboundTrunkRequest
447447 ) -> ListSIPOutboundTrunkResponse :
448448 """List SIP outbound trunks with optional filtering.
@@ -461,13 +461,13 @@ async def list_outbound_trunk(
461461 ListSIPOutboundTrunkResponse ,
462462 )
463463
464- async def list_sip_outbound_trunk (
464+ async def list_sip_outbound_trunk_config (
465465 self , list : ListSIPOutboundTrunkRequest
466466 ) -> ListSIPOutboundTrunkResponse :
467467 """List SIP outbound trunks with optional filtering.
468468
469469 .. deprecated::
470- Use :meth:`list_outbound_trunk ` instead.
470+ Use :meth:`list_outbound_trunk_config ` instead.
471471
472472 Args:
473473 list: Request with optional filtering parameters
@@ -476,11 +476,11 @@ async def list_sip_outbound_trunk(
476476 Response containing list of SIP outbound trunks
477477 """
478478 warnings .warn (
479- "list_sip_outbound_trunk is deprecated, use list_outbound_trunk instead" ,
479+ "list_sip_outbound_trunk_config is deprecated, use list_outbound_trunk_config instead" ,
480480 DeprecationWarning ,
481481 stacklevel = 2 ,
482482 )
483- return await self .list_outbound_trunk (list )
483+ return await self .list_outbound_trunk_config (list )
484484
485485 async def delete_trunk (self , delete : DeleteSIPTrunkRequest ) -> SIPTrunkInfo :
486486 """Delete a SIP trunk.
@@ -757,15 +757,15 @@ async def create_sip_participant(
757757 * ,
758758 timeout : Optional [float ] = None ,
759759 trunk_id : Optional [str ] = None ,
760- outbound_trunk : Optional [SIPOutboundConfig ] = None ,
760+ outbound_trunk_config : Optional [SIPOutboundConfig ] = None ,
761761 ) -> SIPParticipantInfo :
762762 """Create a new SIP participant.
763763
764764 Args:
765765 create: Request containing participant details
766766 timeout: Optional request timeout in seconds
767767 trunk_id: Optional SIP trunk ID to use for the participant
768- outbound_trunk : Optional outbound trunk configuration for the participant
768+ outbound_trunk_config : Optional outbound trunk configuration for the participant
769769
770770 Returns:
771771 Created SIP participant
@@ -789,8 +789,8 @@ async def create_sip_participant(
789789 if trunk_id :
790790 create .sip_trunk_id = trunk_id
791791
792- if outbound_trunk :
793- create .trunk = outbound_trunk
792+ if outbound_trunk_config :
793+ create .trunk = outbound_trunk_config
794794
795795 return await self ._client .request (
796796 SVC ,
0 commit comments