
    !+h@%                         d Z ddlmZ ddlmZmZmZmZ ddlmZm	Z	 ddl
mZ ddlmZ ddlmZ ddlmZ  G d	 d
e          Z G d de          Z G d de          ZdS )a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Routes
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )datetime)AnyDictOptionalUnion)deserializevalues)InstanceContext)InstanceResource)ListResource)Versionc                        e Zd ZdZ	 ddedeeef         dee         f fdZ	e
dd	            Zdd
ZddZej        ej        fdeeef         deeef         dd fdZej        ej        fdeeef         deeef         dd fdZdefdZ xZS )TrunkInstancea  
    :ivar sip_trunk_domain: The absolute URL of the SIP Trunk
    :ivar url: The absolute URL of the resource.
    :ivar sid: A 34 character string that uniquely identifies the Inbound Processing Region assignments for this SIP Trunk.
    :ivar account_sid: The unique SID identifier of the Account.
    :ivar friendly_name: A human readable description of the Inbound Processing Region assignments for this SIP Trunk, up to 64 characters.
    :ivar voice_region: The Inbound Processing Region used for this SIP Trunk for voice.
    :ivar date_created: The date that this SIP Trunk was assigned an Inbound Processing Region, given in ISO 8601 format.
    :ivar date_updated: The date that the Inbound Processing Region was updated for this SIP Trunk, given in ISO 8601 format.
    Nversionpayloadsip_trunk_domainc                 `   t                                          |           |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _        t          j
        |                    d                    | _        t          j
        |                    d                    | _        d|p| j        i| _        d | _        d S )	Nr   urlsidaccount_sidfriendly_namevoice_regiondate_createddate_updated)super__init__getr   r   r   r   r   r   r   iso8601_datetimer   r   	_solution_context)selfr   r   r   	__class__s       _/var/www/html/e360mart/e360mart_env/lib/python3.11/site-packages/twilio/rest/routes/v2/trunk.pyr   zTrunkInstance.__init__$   s    	!!!/6{{;M/N/N")++e"4"4")++e"4"4*1++m*D*D,3KK,H,H+2;;~+F+F0;0LKK''1
 1
 1<0LKK''1
 1

  0 ID4I
 15    returnTrunkContextc                 j    | j         &t          | j        | j        d                   | _         | j         S )z
        Generate an instance context for the instance, the context is capable of
        performing various actions. All instance actions are proxied to the context

        :returns: TrunkContext for this TrunkInstance
        Nr   r   )r    r&   _versionr   r!   s    r#   _proxyzTrunkInstance._proxy>   s<     = (!%0B!C  DM }r$   c                 4    | j                                         S )W
        Fetch the TrunkInstance


        :returns: The fetched TrunkInstance
        )r+   fetchr*   s    r#   r.   zTrunkInstance.fetchM   s     {  """r$   c                 D   K   | j                                          d{V S )q
        Asynchronous coroutine to fetch the TrunkInstance


        :returns: The fetched TrunkInstance
        N)r+   fetch_asyncr*   s    r#   r1   zTrunkInstance.fetch_asyncV   s.       [,,.........r$   r   r   c                 :    | j                             ||          S )  
        Update the TrunkInstance

        :param voice_region: The Inbound Processing Region used for this SIP Trunk for voice
        :param friendly_name: A human readable description of this resource, up to 64 characters.

        :returns: The updated TrunkInstance
        r   r   )r+   updater!   r   r   s      r#   r5   zTrunkInstance.update_   s)     {!!%' " 
 
 	
r$   c                 J   K   | j                             ||           d{V S )1  
        Asynchronous coroutine to update the TrunkInstance

        :param voice_region: The Inbound Processing Region used for this SIP Trunk for voice
        :param friendly_name: A human readable description of this resource, up to 64 characters.

        :returns: The updated TrunkInstance
        r4   N)r+   update_asyncr6   s      r#   r9   zTrunkInstance.update_asyncq   sK       [--%' . 
 
 
 
 
 
 
 
 	
r$   c                     d                     d | j                                        D                       }d                    |          S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   H   K   | ]\  }}d                      ||          V  dS z{}={}Nformat.0kvs      r#   	<genexpr>z)TrunkInstance.__repr__.<locals>.<genexpr>   4      SSDAq7>>!Q//SSSSSSr$   z#<Twilio.Routes.V2.TrunkInstance {}>joinr   itemsr@   r!   contexts     r#   __repr__zTrunkInstance.__repr__   sF     ((SSDN<P<P<R<RSSSSS4;;GDDDr$   )N)r%   r&   )r%   r   )__name__
__module____qualname____doc__r   r   strr   r   r   propertyr+   r.   r1   r	   unsetr   objectr5   r9   rL   __classcell__r"   s   @r#   r   r      s       	 	 +/	5 55 c3h5 #3-	5 5 5 5 5 54    X# # # #/ / / / ,2<,2L
 
CK(
 S&[)
 
	
 
 
 
( ,2<,2L
 
CK(
 S&[)
 
	
 
 
 
$E# E E E E E E E Er$   r   c                        e Zd Zdedef fdZdefdZdefdZe	j
        e	j
        fdeeef         deeef         defd	Ze	j
        e	j
        fdeeef         deeef         defd
ZdefdZ xZS )r&   r   r   c                     t                                          |           d|i| _         dj        di | j        | _        dS )z
        Initialize the TrunkContext

        :param version: Version that contains the resource
        :param sip_trunk_domain: The absolute URL of the SIP Trunk
        r   z/Trunks/{sip_trunk_domain}N )r   r   r   r@   _uri)r!   r   r   r"   s      r#   r   zTrunkContext.__init__   sQ     	!!!  0
 807II$.II			r$   r%   c                     | j                             d| j                  }t          | j         || j        d                   S )r-   GETmethodurir   r(   )r)   r.   rZ   r   r   r!   r   s     r#   r.   zTrunkContext.fetch   sT     -%%	 & 
 

 M!^,>?
 
 
 	
r$   c                    K   | j                             d| j                   d{V }t          | j         || j        d                   S )r0   r\   r]   Nr   r(   )r)   r1   rZ   r   r   r`   s     r#   r1   zTrunkContext.fetch_async   sv       11	 2 
 
 
 
 
 
 
 

 M!^,>?
 
 
 	
r$   r   r   c                     t          j        ||d          }| j                            d| j        |          }t          | j        || j        d                   S )r3   VoiceRegionFriendlyNamePOSTr^   r_   datar   r(   )r	   ofr)   r5   rZ   r   r   r!   r   r   rh   r   s        r#   r5   zTrunkContext.update   sx     y+ - 
 
 -&&	 ' 
 
 M7T^DV5W
 
 
 	
r$   c                    K   t          j        ||d          }| j                            d| j        |           d{V }t          | j        || j        d                   S )r8   rc   rf   rg   Nr   r(   )r	   ri   r)   r9   rZ   r   r   rj   s        r#   r9   zTrunkContext.update_async   s       y+ - 
 
 22	 3 
 
 
 
 
 
 
 
 M7T^DV5W
 
 
 	
r$   c                     d                     d | j                                        D                       }d                    |          S )r;   r<   c              3   H   K   | ]\  }}d                      ||          V  dS r>   r?   rA   s      r#   rE   z(TrunkContext.__repr__.<locals>.<genexpr>  rF   r$   z"<Twilio.Routes.V2.TrunkContext {}>rG   rJ   s     r#   rL   zTrunkContext.__repr__   sF     ((SSDN<P<P<R<RSSSSS3::7CCCr$   )rM   rN   rO   r   rQ   r   r   r.   r1   r	   rS   r   rT   r5   r9   rL   rU   rV   s   @r#   r&   r&      sT       J J3 J J J J J J
} 
 
 
 
&
= 
 
 
 
* ,2<,2L
 
CK(
 S&[)
 
	
 
 
 
@ ,2<,2L
 
CK(
 S&[)
 
	
 
 
 
<D# D D D D D D D Dr$   r&   c                   P     e Zd Zdef fdZdedefdZdedefdZdefdZ	 xZ
S )	TrunkListr   c                 J    t                                          |           dS )zg
        Initialize the TrunkList

        :param version: Version that contains the resource

        N)r   r   )r!   r   r"   s     r#   r   zTrunkList.__init__  s#     	!!!!!r$   r   r%   c                 .    t          | j        |          S zo
        Constructs a TrunkContext

        :param sip_trunk_domain: The absolute URL of the SIP Trunk
        r(   r&   r)   r!   r   s     r#   r   zTrunkList.get       DM<LMMMMr$   c                 .    t          | j        |          S rr   rs   rt   s     r#   __call__zTrunkList.__call__  ru   r$   c                     dS )r;   z<Twilio.Routes.V2.TrunkList>rY   r*   s    r#   rL   zTrunkList.__repr__%  s
     .-r$   )rM   rN   rO   r   r   rQ   r&   r   rw   rL   rU   rV   s   @r#   ro   ro   
  s        " " " " " " "NC NL N N N NN N N N N N.# . . . . . . . .r$   ro   N)rP   r   typingr   r   r   r   twilio.baser   r	   twilio.base.instance_contextr
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r&   ro   rY   r$   r#   <module>r      sR          - - - - - - - - - - - - + + + + + + + + 8 8 8 8 8 8 : : : : : : 2 2 2 2 2 2 ' ' ' ' ' 'rE rE rE rE rE$ rE rE rEjzD zD zD zD zD? zD zD zDz!. !. !. !. !. !. !. !. !. !.r$   