
    d{i7                         d Z ddlmZ ddl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 dd	lmZ  G d
 de      Z G d de      Z G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Verify
    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)deserializevalues)ApiResponse)InstanceContext)InstanceResource)ListResource)Versionc                        e Zd Z G d de      Z	 dedeeef   def fdZ	e
dd       Zd	edd fd
Zd	edd 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 )NewChallengeInstancec                   ,    e Zd ZdZdeeef   fdZd Zy)3NewChallengeInstance.CreatePasskeysChallengeRequest;
        :ivar identity:
        :ivar factor_sid:
        payloadc                 \    |j                  d      | _        |j                  d      | _        y Nidentity
factor_sidgetr   r   selfr   s     i/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/verify/v2/service/new_challenge.py__init__z<NewChallengeInstance.CreatePasskeysChallengeRequest.__init__!   "    +2;;z+BDM-4[[-FDO    c                 4    | j                   | j                  dS Nr   r   r"   r   s    r   to_dictz;NewChallengeInstance.CreatePasskeysChallengeRequest.to_dict&        MM"oo r   N	__name__
__module____qualname____doc__r   strr   r   r$    r   r   CreatePasskeysChallengeRequestr      "    	
	GDcN 	G
	r   r-   versionr   service_sidc                     t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        t        j                  |j                  d            | _        t        j                  |j                  d	            | _        t        j                  |j                  d
            | _        t        j                  |j                  d            | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        d|i| _        d | _        y )Noptionssidaccount_sidr0   
entity_sidr   r   date_createddate_updateddate_respondedexpiration_datestatusresponded_reasondetailshidden_detailsmetadatafactor_typeurllinks)superr   r   r2   r3   r4   r0   r5   r   r   r   iso8601_datetimer6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   	_solution_context)r   r/   r   r0   	__class__s       r   r   zNewChallengeInstance.__init__B   s   !4;KK	4J")++e"4*1++m*D*1++m*D)0\)B'.{{:'>)0\)B0;0L0LKK'1
 1<0L0LKK'1
 3>2N2NKK()3
 4?3O3OKK)*4
 &-[[%:/6{{;M/N4;KK	4J;B;;GW;X5<[[5L*1++m*D")++e"429++g2F
 ;
 8<r   returnc                     | 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: NewChallengeContext for this NewChallengeInstance
        r0   r0   )rE   NewChallengeContext_versionrD   r#   s    r   _proxyzNewChallengeInstance._proxyf   s9     == / NN=9DM }}r   !create_passkeys_challenge_requestc                 8    | j                   j                  |      S )
        Create the NewChallengeInstance

        :param create_passkeys_challenge_request:

        :returns: The created NewChallengeInstance
        )rL   creater   rM   s     r   rP   zNewChallengeInstance.createu   s     {{!!-
 	
r   c                 T   K   | j                   j                  |       d{   S 7 w)
        Asynchronous coroutine to create the NewChallengeInstance

        :param create_passkeys_challenge_request:

        :returns: The created NewChallengeInstance
        N)rL   create_asyncrQ   s     r   rT   z!NewChallengeInstance.create_async   s,      [[---
 
 	
 
   (&(c                 8    | j                   j                  |      S )z
        Create the NewChallengeInstance with HTTP info

        :param create_passkeys_challenge_request:

        :returns: ApiResponse with instance, status code, and headers
        )rL   create_with_http_inforQ   s     r   rW   z*NewChallengeInstance.create_with_http_info   s     {{00-
 	
r   c                 T   K   | j                   j                  |       d{   S 7 w)z
        Asynchronous coroutine to create the NewChallengeInstance with HTTP info

        :param create_passkeys_challenge_request:

        :returns: ApiResponse with instance, status code, and headers
        N)rL   create_with_http_info_asyncrQ   s     r   rY   z0NewChallengeInstance.create_with_http_info_async   s,      [[<<-
 
 	
 
rU   c                     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>z0NewChallengeInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z*<Twilio.Verify.V2.NewChallengeInstance {}>joinrD   itemsr`   r   contexts     r   __repr__zNewChallengeInstance.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr   )rG   rJ   )r'   r(   r)   objectr-   r   r   r+   r   r   propertyrL   rP   rT   r	   rW   rY   rm   __classcell__rF   s   @r   r   r      s     ","< "<$sCx. "<s "<H  
1O
	

1O
	

1O
	

1O
	
L# Lr   r   c                        e Zd Z G d de      Zdedef fdZdedefdZ	dede
fd	Zdedefd
Zdede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 )rJ   c                   ,    e Zd ZdZdeeef   fdZd Zy)2NewChallengeContext.CreatePasskeysChallengeRequestr   r   c                 \    |j                  d      | _        |j                  d      | _        y r   r   r   s     r   r   z;NewChallengeContext.CreatePasskeysChallengeRequest.__init__   r   r   c                 4    | j                   | j                  dS r!   r"   r#   s    r   r$   z:NewChallengeContext.CreatePasskeysChallengeRequest.to_dict   r%   r   Nr&   r,   r   r   r-   rt      r.   r   r-   r/   r0   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the NewChallengeContext

        :param version: Version that contains the resource
        :param service_sid: The unique SID identifier of the Service.
        r0   z+/Services/{service_sid}/Passkeys/ChallengesNr,   )rB   r   rD   r`   _urir   r/   r0   rF   s      r   r   zNewChallengeContext.__init__   sF     	! ;
 IAHH 
nn
	r   rM   rG   c                     |j                         }t        j                  i       }d|d<   d|d<   | j                  j	                  d| j
                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonContent-TypeAcceptPOSTmethoduridataheaders)r$   r   ofrK   create_with_response_inforx   r   rM   r   r   s       r   _createzNewChallengeContext._create   s\     188:))B-"4.}}66tyytW 7 
 	
r   c                 x    | j                  |      \  }}}t        | j                  || j                  d         S )rO   rM   r0   rI   )r   r   rK   rD   r   rM   r   _s       r   rP   zNewChallengeContext.create   sC     .O % 
A $MM7}0M
 	
r   c                     | j                  |      \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Create the NewChallengeInstance and return response metadata

        :param create_passkeys_challenge_request:

        :returns: ApiResponse with instance, status code, and headers
        r   r0   rI   r   status_coder   )r   r   rK   rD   r	   r   rM   r   r   r   instances         r   rW   z)NewChallengeContext.create_with_http_info  sR     )-.O )5 )
%g (MM7}0M
 k7SSr   c                    K   |j                         }t        j                  i       }d|d<   d|d<   | j                  j	                  d| j
                  ||       d{   S 7 w)z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r{   r|   r}   r~   r   N)r$   r   r   rK   create_with_response_info_asyncrx   r   s       r   _create_asyncz!NewChallengeContext._create_async  sk      188:))B-"4.]]BBtyytW C 
 
 	
 
s   AA%A#A%c                    K   | j                  |       d{   \  }}}t        | j                  || j                  d         S 7 -w)rS   r   Nr0   rI   )r   r   rK   rD   r   s       r   rT   z NewChallengeContext.create_async(  sS      #00.O 1 
 
A $MM7}0M
 	

s   AA.Ac                    K   | j                  |       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronous coroutine to create the NewChallengeInstance and return response metadata

        :param create_passkeys_challenge_request:

        :returns: ApiResponse with instance, status code, and headers
        r   Nr0   rI   r   )r   r   rK   rD   r	   r   s         r   rY   z/NewChallengeContext.create_with_http_info_async9  sc      /3.@.@.O /A /
 )
%g (MM7}0M
 k7SS)
s   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )r[   r\   c              3   F   K   | ]  \  }}d j                  ||        ywr^   r_   ra   s      r   re   z/NewChallengeContext.__repr__.<locals>.<genexpr>Q  rf   rg   z)<Twilio.Verify.V2.NewChallengeContext {}>rh   rk   s     r   rm   zNewChallengeContext.__repr__K  s6     ((SDNN<P<P<RSS:AA'JJr   )r'   r(   r)   rn   r-   r   r+   r   tupler   r   rP   r	   rW   r   rT   rY   rm   rp   rq   s   @r   rJ   rJ      s     "
 
c 
"
1O
	
*
1O
	
"T1OT	T$
1O
	
*
1O
	
"T1OT	T$K# Kr   rJ   c                   b     e Zd Z G d de      Zdedef fdZdefdZ	defdZ
defd	Z xZS )
NewChallengeListc                   ,    e Zd ZdZdeeef   fdZd Zy)/NewChallengeList.CreatePasskeysChallengeRequestr   r   c                 \    |j                  d      | _        |j                  d      | _        y r   r   r   s     r   r   z8NewChallengeList.CreatePasskeysChallengeRequest.__init__]  r   r   c                 4    | j                   | j                  dS r!   r"   r#   s    r   r$   z7NewChallengeList.CreatePasskeysChallengeRequest.to_dictb  r%   r   Nr&   r,   r   r   r-   r   W  r.   r   r-   r/   r0   c                 6    t         |   |       d|i| _        y)z
        Initialize the NewChallengeList

        :param version: Version that contains the resource
        :param service_sid: The unique SID identifier of the Service.

        r0   N)rB   r   rD   ry   s      r   r   zNewChallengeList.__init__h  s"     	! ;
r   rG   c                 J    t        | j                  | j                  d         S z3
        Constructs a NewChallengeContext

        r0   rI   rJ   rK   rD   r#   s    r   r   zNewChallengeList.getw  #    
 #MMt~~m'D
 	
r   c                 J    t        | j                  | j                  d         S r   r   r#   s    r   __call__zNewChallengeList.__call__  r   r   c                      y)r[   z#<Twilio.Verify.V2.NewChallengeList>r,   r#   s    r   rm   zNewChallengeList.__repr__  s     5r   )r'   r(   r)   rn   r-   r   r+   r   rJ   r   r   rm   rp   rq   s   @r   r   r   U  sH     "
 
c 

( 

- 
5# 5r   r   N)r*   r   typingr   r   r   twilio.baser   r   twilio.base.api_responser	   twilio.base.instance_contextr
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   rJ   r   r,   r   r   <module>r      sV     & & + 0 8 : 2 '[L+ [L|[K/ [K|:5| :5r   