
    pi6                         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  G d d	e      Z G d
 de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Api
    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)InstanceResource)ListResource)Versionc                   F     e Zd ZdZdedeeef   def fdZdefdZ	 xZ
S )NewKeyInstancea+  
    :ivar sid: The unique string that that we created to identify the NewKey resource. You will use this as the basic-auth `user` when authenticating to the API.
    :ivar friendly_name: The string that you assigned to describe the resource.
    :ivar date_created: The date and time in GMT that the API Key was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    :ivar date_updated: The date and time in GMT that the new API Key was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    :ivar secret: The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth `password`).  **Note that for security reasons, this field is ONLY returned when the API Key is first created.**
    versionpayloadaccount_sidc                 ^   t         |   |       |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _        |j                  d      | _	        d|i| _
        y )Nsidfriendly_namedate_createddate_updatedsecretr   )super__init__getr   r   r   rfc2822_datetimer   r   r   	_solution)selfr   r   r   	__class__s       g/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/new_key.pyr   zNewKeyInstance.__init__!   s    !")++e"4,3KK,H0;0L0LKK'1
 1<0L0LKK'1
 &-[[%: ;
    returnc                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        yw)z{}={}N)format).0kvs      r   	<genexpr>z*NewKeyInstance.__repr__.<locals>.<genexpr>8   s     SDAq7>>!Q/Ss   !z$<Twilio.Api.V2010.NewKeyInstance {}>)joinr   itemsr&   )r   contexts     r   __repr__zNewKeyInstance.__repr__2   s6     ((SDNN<P<P<RSS5<<WEEr    )__name__
__module____qualname____doc__r   r   strr   r   r.   __classcell__r   s   @r   r   r      s8    
 
$sCx. 
s 
"F# Fr    r   c                        e Zd Zdedef fdZej                  fdeee	f   de
fdZej                  fdeee	f   de
fdZdefdZ xZS )	
NewKeyListr   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the NewKeyList

        :param version: Version that contains the resource
        :param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource.

        r   z!/Accounts/{account_sid}/Keys.jsonN )r   r   r   r&   _uri)r   r   r   r   s      r   r   zNewKeyList.__init__>   s@     	! ;
 ?7>>PP	r    r   r!   c                    t        j                  d|i      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                  d   	      S )
z
        Create the NewKeyInstance

        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.

        :returns: The created NewKeyInstance
        FriendlyNameContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheadersr   r   )r	   of_versioncreater:   r   r   r   r   rE   rF   r   s        r   rJ   zNewKeyList.createN   s     yy

 ))^-PQR"E.--&&tyytW ' 
 MM7}0M
 	
r    c                 *  K   t        j                  d|i      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                  d	   
      S 7 )w)z
        Asynchronously create the NewKeyInstance

        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.

        :returns: The created NewKeyInstance
        r<   r=   r>   r?   r@   rA   rB   Nr   rG   )r	   rH   rI   create_asyncr:   r   r   rK   s        r   rM   zNewKeyList.create_asyncl   s      yy

 ))^-PQR"E.22tyytW 3 
 
 MM7}0M
 	
	
s   A%B'B(*Bc                      y)r#   z<Twilio.Api.V2010.NewKeyList>r9   )r   s    r   r.   zNewKeyList.__repr__   s     /r    )r/   r0   r1   r   r3   r   r	   unsetr   objectr   rJ   rM   r.   r4   r5   s   @r   r7   r7   <   ss    Q Qc Q" 39,,
"3;/
	
> 39,,
"3;/
	
</# /r    r7   N)r2   r   typingr   r   r   r   twilio.baser   r	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r7   r9   r    r   <module>rV      s?     - - + : 2 '!F% !FHT/ T/r    