U
    ^g%i?                     @   s   d Z ddlmZmZmZmZmZ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	 d	eZG d
d deZG dd deZdS )a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Numbers
    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.
    )AnyDictListOptionalUnionIteratorAsyncIterator)values)InstanceResource)ListResource)Version)Pagec                       s>   e Zd ZdZeeeef d fddZedddZ	  Z
S )#SigningRequestConfigurationInstanceu  
    :ivar logo_sid: The SID of the document  that includes the logo that will appear in the LOA. To upload documents follow the following guide: https://www.twilio.com/docs/phone-numbers/regulatory/getting-started/create-new-bundle-public-rest-apis#supporting-document-create
    :ivar friendly_name: This is the string that you assigned as a friendly name for describing the creation of the configuration.
    :ivar product: The product or service for which is requesting the signature.
    :ivar country: The country ISO code to apply the configuration.
    :ivar email_subject: Subject of the email that the end client will receive ex: “Twilio Hosting Request”, maximum length of 255 characters.
    :ivar email_message: Content of the email that the end client will receive ex: “This is a Hosting request from Twilio, please check the document and sign it”, maximum length of 5,000 characters.
    :ivar url_redirection: Url the end client will be redirected after signing a document.
    :ivar url:
    )versionpayloadc                    sp   t  | |d| _|d| _|d| _|d| _|d| _|d| _|d| _	|d| _
d S )	Nlogo_sidfriendly_nameproductcountryemail_subjectemail_messageurl_redirectionurl)super__init__getr   r   r   r   r   r   r   r   )selfr   r   	__class__ s/var/www/html/api-medvista/venv/lib/python3.8/site-packages/twilio/rest/numbers/v1/signing_request_configuration.pyr   $   s    z,SigningRequestConfigurationInstance.__init__returnc                 C   s   dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z7<Twilio.Numbers.V1.SigningRequestConfigurationInstance>r   r   r   r   r    __repr__0   s    z,SigningRequestConfigurationInstance.__repr__)__name__
__module____qualname____doc__r   r   strr   r   r%   __classcell__r   r   r   r    r      s   r   c                   @   s2   e Zd Zeeef edddZedddZdS )SigningRequestConfigurationPage)r   r"   c                 C   s   t | j|S )z
        Build an instance of SigningRequestConfigurationInstance

        :param payload: Payload response from the API
        )r   _version)r   r   r   r   r    get_instance<   s    z,SigningRequestConfigurationPage.get_instancer!   c                 C   s   dS )r#   z3<Twilio.Numbers.V1.SigningRequestConfigurationPage>r   r$   r   r   r    r%   F   s    z(SigningRequestConfigurationPage.__repr__N)	r&   r'   r(   r   r*   r   r   r.   r%   r   r   r   r    r,   :   s   

r,   c                       s8  e Zd Zed fddZejfeeef e	dddZ
ejfeeef e	dddZejejd	d	feeef eeef ee ee ee	 d
ddZejejd	d	feeef eeef ee ee ee	 d
ddZejejd	d	feeef eeef ee ee ee	 d
ddZejejd	d	feeef eeef ee ee ee	 d
ddZejejejejejfeeef eeef eeef eeef eeef edddZejejejejejfeeef eeef eeef eeef eeef edddZeedddZeedddZedddZ  ZS ) SigningRequestConfigurationList)r   c                    s   t  | d| _dS )z}
        Initialize the SigningRequestConfigurationList

        :param version: Version that contains the resource

        z/SigningRequest/ConfigurationN)r   r   _uri)r   r   r   r   r    r   Q   s    z(SigningRequestConfigurationList.__init__)bodyr"   c                 C   sH   |  }tddi}d|d< d|d< | jjd| j||d}t| j|S )z
        Create the SigningRequestConfigurationInstance

        :param body:

        :returns: The created SigningRequestConfigurationInstance
        Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)to_dictr	   ofr-   creater0   r   r   r1   r:   r;   r   r   r   r    r>   \   s    
   z&SigningRequestConfigurationList.createc                    sN   |  }tddi}d|d< d|d< | jjd| j||dI dH }t| j|S )z
        Asynchronously create the SigningRequestConfigurationInstance

        :param body:

        :returns: The created SigningRequestConfigurationInstance
        r2   r3   r4   r5   r6   r7   N)r<   r	   r=   r-   create_asyncr0   r   r?   r   r   r    r@   t   s    
   z,SigningRequestConfigurationList.create_asyncN)r   r   limit	page_sizer"   c                 C   s4   | j ||}| j|||d d}| j ||d S )ay  
        Streams SigningRequestConfigurationInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param str country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        rB   r   r   rB   rA   )r-   read_limitspagestreamr   r   r   rA   rB   ZlimitsrE   r   r   r    rF      s      z&SigningRequestConfigurationList.streamc                    s:   | j ||}| j|||d dI dH }| j ||d S )a  
        Asynchronously streams SigningRequestConfigurationInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param str country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        rB   rC   NrA   )r-   rD   
page_asyncstream_asyncrG   r   r   r    rI      s      z,SigningRequestConfigurationList.stream_asyncc                 C   s   t | j||||dS )a  
        Lists SigningRequestConfigurationInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r   r   rA   rB   )listrF   r   r   r   rA   rB   r   r   r    rK      s    z$SigningRequestConfigurationList.listc                    s(   dd | j ||||dI dH 2 I dH S )a%  
        Asynchronously lists SigningRequestConfigurationInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param str product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        c                    s   g | z3 d H W }|q6 S )Nr   ).0recordr   r   r    
<listcomp>  s   z>SigningRequestConfigurationList.list_async.<locals>.<listcomp>rJ   N)rI   rL   r   r   r    
list_async   s    
z*SigningRequestConfigurationList.list_async)r   r   
page_tokenpage_numberrB   r"   c           	      C   sN   t |||||d}t ddi}d|d< | jjd| j||d}t| j|S )a  
        Retrieve a single page of SigningRequestConfigurationInstance records from the API.
        Request is executed immediately

        :param country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of SigningRequestConfigurationInstance
        ZCountryZProductZ	PageTokenr   ZPageSizer2   r3   r4   r5   GETr8   r9   paramsr;   )r	   r=   r-   rE   r0   r,   	r   r   r   rQ   rR   rB   r:   r;   responser   r   r    rE     s"    
   z$SigningRequestConfigurationList.pagec           	         sT   t |||||d}t ddi}d|d< | jjd| j||dI dH }t| j|S )	a  
        Asynchronously retrieve a single page of SigningRequestConfigurationInstance records from the API.
        Request is executed immediately

        :param country: The country ISO code to apply this configuration, this is an optional field, Example: US, MX
        :param product: The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of SigningRequestConfigurationInstance
        rS   r2   r3   r4   r5   rT   rU   N)r	   r=   r-   rH   r0   r,   rW   r   r   r    rH   2  s"    
   z*SigningRequestConfigurationList.page_async)
target_urlr"   c                 C   s   | j jjd|}t| j |S )a  
        Retrieve a specific page of SigningRequestConfigurationInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of SigningRequestConfigurationInstance
        rT   )r-   domaintwiliorequestr,   r   rY   rX   r   r   r    get_pageY  s    	z(SigningRequestConfigurationList.get_pagec                    s$   | j jjd|I dH }t| j |S )a*  
        Asynchronously retrieve a specific page of SigningRequestConfigurationInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of SigningRequestConfigurationInstance
        rT   N)r-   rZ   r[   Zrequest_asyncr,   r]   r   r   r    get_page_asynce  s    	z.SigningRequestConfigurationList.get_page_asyncr!   c                 C   s   dS )r#   z3<Twilio.Numbers.V1.SigningRequestConfigurationList>r   r$   r   r   r    r%   q  s    z(SigningRequestConfigurationList.__repr__)r&   r'   r(   r   r   r	   unsetr   objectr   r>   r@   r*   r   intr   rF   r   rI   r   rK   rP   r,   rE   rH   r^   r_   r%   r+   r   r   r   r    r/   O   s   



!

!

"

#




)




'r/   N)r)   typingr   r   r   r   r   r   r   Ztwilio.baser	   Ztwilio.base.instance_resourcer
   Ztwilio.base.list_resourcer   Ztwilio.base.versionr   Ztwilio.base.pager   r   r,   r/   r   r   r   r    <module>   s   $"