U
    ^g%i6                     @   s|   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 G dd	 d	e
ZG d
d deZdS )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)InstanceResource)ListResource)Versionc                       s\   e Zd ZG dd deZG dd deZeeee	f ed fddZ
edd	d
Z  ZS )ApproveChallengeInstancec                   @   s.   e Zd ZdZeeef dddZdd ZdS )z8ApproveChallengeInstance.ApprovePasskeysChallengeRequest  
        :ivar id: A [base64url](https://base64.guru/standards/base64url) encoded representation of `rawId`.
        :ivar raw_id: The globally unique identifier for this `PublicKeyCredential`.
        :ivar authenticator_attachment: A string that indicates the mechanism by which the WebAuthn implementation is attached to the authenticator at the time the associated `navigator.credentials.create()` or `navigator.credentials.get()` call completes.
        :ivar type: The valid credential types supported by the API. The values of this enumeration are used for versioning the `AuthenticatorAssertion` and `AuthenticatorAttestation` structures according to the type of the authenticator.
        :ivar response:
        payloadc                 C   s@   | d| _| d| _| d| _| d| _| d| _d S Nidraw_idauthenticator_attachmenttyperesponsegetr   r   r   r   r   selfr    r   n/var/www/html/api-medvista/venv/lib/python3.8/site-packages/twilio/rest/verify/v2/service/approve_challenge.py__init__#   s    zAApproveChallengeInstance.ApprovePasskeysChallengeRequest.__init__c                 C   s,   | j | j| j| j| jd k	r$| j nd dS N)r   r   r   r   r   r   r   r   r   r   to_dictr   r   r   r   r   /   s    z@ApproveChallengeInstance.ApprovePasskeysChallengeRequest.to_dictN	__name__
__module____qualname____doc__r   strr   r   r   r   r   r   r   ApprovePasskeysChallengeRequest   s   r&   c                   @   s.   e Zd ZdZeeef dddZdd ZdS )z@ApproveChallengeInstance.ApprovePasskeysChallengeRequestResponse  
        :ivar authenticator_data: The [authenticator data](https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API/Authenticator_data) structure contains information from the authenticator about the processing of a credential creation or authentication request.
        :ivar client_data_json: This property contains the JSON-compatible serialization of the data passed from the browser to the authenticator in order to generate this credential.
        :ivar signature: An assertion signature over `authenticatorData` and `clientDataJSON`. The assertion signature is created with the private key of the key pair that was created during the originating `navigator.credentials.create()` call and verified using the public key of that same key pair.
        :ivar user_handle: The user handle stored in the authenticator, specified as `user.id` in the options passed to the originating `navigator.credentials.create()` call. This property should contain a base64url-encoded entity SID.
        r   c                 C   s4   | d| _| d| _| d| _| d| _d S Nauthenticator_dataclient_data_json	signatureuser_handler   r)   r*   r+   r,   r   r   r   r   r   B   s    zIApproveChallengeInstance.ApprovePasskeysChallengeRequestResponse.__init__c                 C   s   | j | j| j| jdS Nr)   r*   r+   r,   r/   r   r   r   r   r   I   s
    zHApproveChallengeInstance.ApprovePasskeysChallengeRequestResponse.to_dictNr    r   r   r   r   'ApprovePasskeysChallengeRequestResponse:   s   r0   )versionr   service_sidc                    s  t  | |d| _|d| _|d| _|d| _|d| _|d| _|d| _	t
|d| _t
|d	| _t
|d
| _t
|d| _|d| _|d| _|d| _|d| _|d| _|d| _|d| _|d| _d|i| _d S )Noptionssidaccount_sidr2   
entity_sididentity
factor_siddate_createddate_updateddate_respondedexpiration_datestatusresponded_reasondetailshidden_detailsmetadatafactor_typeurllinks)superr   r   r3   r4   r5   r2   r6   r7   r8   r   Ziso8601_datetimer9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   	_solution)r   r1   r   r2   	__class__r   r   r   g   s>     z!ApproveChallengeInstance.__init__returnc                 C   s$   d dd | j D }d|S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c                 s   s   | ]\}}d  ||V  qdS )z{}={}N)format).0kvr   r   r   	<genexpr>   s     z4ApproveChallengeInstance.__repr__.<locals>.<genexpr>z.<Twilio.Verify.V2.ApproveChallengeInstance {}>)joinrF   itemsrM   )r   contextr   r   r   __repr__   s    z!ApproveChallengeInstance.__repr__)r!   r"   r#   objectr&   r0   r
   r   r%   r   r   rU   __classcell__r   r   rG   r   r      s    -#r   c                       sr   e Zd ZG dd deZG dd deZeed fddZee	dd	d
Z
ee	dddZedddZ  ZS )ApproveChallengeListc                   @   s.   e Zd ZdZeeef dddZdd ZdS )z4ApproveChallengeList.ApprovePasskeysChallengeRequestr   r   c                 C   s@   | d| _| d| _| d| _| d| _| d| _d S r   r   r   r   r   r   r      s    z=ApproveChallengeList.ApprovePasskeysChallengeRequest.__init__c                 C   s,   | j | j| j| j| jd k	r$| j nd dS r   r   r   r   r   r   r      s    z<ApproveChallengeList.ApprovePasskeysChallengeRequest.to_dictNr    r   r   r   r   r&      s   r&   c                   @   s.   e Zd ZdZeeef dddZdd ZdS )z<ApproveChallengeList.ApprovePasskeysChallengeRequestResponser'   r   c                 C   s4   | d| _| d| _| d| _| d| _d S r(   r-   r   r   r   r   r      s    zEApproveChallengeList.ApprovePasskeysChallengeRequestResponse.__init__c                 C   s   | j | j| j| jdS r.   r/   r   r   r   r   r      s
    zDApproveChallengeList.ApprovePasskeysChallengeRequestResponse.to_dictNr    r   r   r   r   r0      s   r0   )r1   r2   c                    s*   t  | d|i| _djf | j| _dS )z
        Initialize the ApproveChallengeList

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

        r2   z1/Services/{service_sid}/Passkeys/ApproveChallengeN)rE   r   rF   rM   _uri)r   r1   r2   rG   r   r   r      s     zApproveChallengeList.__init__)"approve_passkeys_challenge_requestrJ   c                 C   sR   |  }tddi}d|d< d|d< | jjd| j||d}t| j|| jd dS )	z
        Update the ApproveChallengeInstance

        :param approve_passkeys_challenge_request:

        :returns: The created ApproveChallengeInstance
        Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheadersr2   r2   )r   r   of_versionupdaterY   r   rF   r   rZ   rc   rd   r   r   r   r   rh      s    
     zApproveChallengeList.updatec                    sX   |  }tddi}d|d< d|d< | jjd| j||dI dH }t| j|| jd d	S )
z
        Asynchronously update the ApproveChallengeInstance

        :param approve_passkeys_challenge_request:

        :returns: The created ApproveChallengeInstance
        r[   r\   r]   r^   r_   r`   Nr2   re   )r   r   rf   rg   update_asyncrY   r   rF   ri   r   r   r   rj      s    
     z!ApproveChallengeList.update_asyncrI   c                 C   s   dS )rK   z'<Twilio.Verify.V2.ApproveChallengeList>r   r   r   r   r   rU     s    zApproveChallengeList.__repr__)r!   r"   r#   rV   r&   r0   r
   r%   r   r   rh   rj   rU   rW   r   r   rG   r   rX      s    rX   N)r$   r   typingr   r   r   Ztwilio.baser   r   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer	   Ztwilio.base.versionr
   r   rX   r   r   r   r   <module>   s   |