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

    Twilio - Serverless
    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ListOptionalUnionIteratorAsyncIterator)deserializevalues)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec                       e Zd ZdZ	 ddedeeef   dededee   f
 fdZ	e
dd	       Zdefd
ZdefdZdefdZdefdZddZd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d f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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 )VariableInstancea  
    :ivar sid: The unique string that we created to identify the Variable resource.
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Variable resource.
    :ivar service_sid: The SID of the Service that the Variable resource is associated with.
    :ivar environment_sid: The SID of the Environment in which the Variable exists.
    :ivar key: A string by which the Variable resource can be referenced.
    :ivar value: A string that contains the actual value of the Variable.
    :ivar date_created: The date and time in GMT when the Variable resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar date_updated: The date and time in GMT when the Variable resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar url: The absolute URL of the Variable resource.
    versionpayloadservice_sidenvironment_sidsidc                 <   t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _        |j                  d	      | _        |||xs | j                  d
| _        d | _        y )Nr   account_sidr   r   keyvaluedate_createddate_updatedurlr   r   r   )super__init__getr   r   r   r   r   r   r   iso8601_datetimer   r   r    	_solution_context)selfr   r   r   r   r   	__class__s         t/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/serverless/v1/service/environment/variable.pyr#   zVariableInstance.__init__'   s     	!")++e"4*1++m*D*1++m*D.5kk:K.L")++e"4$+KK$8
0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 '.?$((

 48    returnc                     | j                   Et        | j                  | j                  d   | j                  d   | 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: VariableContext for this VariableInstance
        r   r   r   r!   )r'   VariableContext_versionr&   r(   s    r*   _proxyzVariableInstance._proxyF   sR     == + NN=9 $/@ ANN5)	DM }}r+   c                 6    | j                   j                         S zk
        Deletes the VariableInstance


        :returns: True if delete succeeds, False otherwise
        )r1   deleter0   s    r*   r4   zVariableInstance.deleteW   s     {{!!##r+   c                 R   K   | j                   j                          d{   S 7 wz
        Asynchronous coroutine that deletes the VariableInstance


        :returns: True if delete succeeds, False otherwise
        N)r1   delete_asyncr0   s    r*   r7   zVariableInstance.delete_async`   s!      [[--////   '%'c                 6    | j                   j                         S )z
        Deletes the VariableInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        )r1   delete_with_http_infor0   s    r*   r:   z&VariableInstance.delete_with_http_infoi   s     {{0022r+   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the VariableInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)r1   delete_with_http_info_asyncr0   s    r*   r<   z,VariableInstance.delete_with_http_info_asyncr   s!      [[<<>>>>r8   c                 6    | j                   j                         S )]
        Fetch the VariableInstance


        :returns: The fetched VariableInstance
        )r1   fetchr0   s    r*   r?   zVariableInstance.fetch{   s     {{  ""r+   c                 R   K   | j                   j                          d{   S 7 w)w
        Asynchronous coroutine to fetch the VariableInstance


        :returns: The fetched VariableInstance
        N)r1   fetch_asyncr0   s    r*   rB   zVariableInstance.fetch_async   s!      [[,,....r8   c                 6    | j                   j                         S )z
        Fetch the VariableInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r1   fetch_with_http_infor0   s    r*   rD   z%VariableInstance.fetch_with_http_info   s     {{//11r+   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the VariableInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r1   fetch_with_http_info_asyncr0   s    r*   rF   z+VariableInstance.fetch_with_http_info_async   s!      [[;;====r8   r   r   c                 <    | j                   j                  ||      S )M  
        Update the VariableInstance

        :param key: A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.
        :param value: A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.

        :returns: The updated VariableInstance
        r   r   )r1   updater(   r   r   s      r*   rJ   zVariableInstance.update   s&     {{!! " 
 	
r+   c                 X   K   | j                   j                  ||       d{   S 7 w)g  
        Asynchronous coroutine to update the VariableInstance

        :param key: A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.
        :param value: A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.

        :returns: The updated VariableInstance
        rI   N)r1   update_asyncrK   s      r*   rN   zVariableInstance.update_async   s4      [[-- . 
 
 	
 
   !*(*c                 <    | j                   j                  ||      S )as  
        Update the VariableInstance with HTTP info

        :param key: A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.
        :param value: A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.

        :returns: ApiResponse with instance, status code, and headers
        rI   )r1   update_with_http_inforK   s      r*   rQ   z&VariableInstance.update_with_http_info   s&     {{00 1 
 	
r+   c                 X   K   | j                   j                  ||       d{   S 7 w)a  
        Asynchronous coroutine to update the VariableInstance with HTTP info

        :param key: A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.
        :param value: A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.

        :returns: ApiResponse with instance, status code, and headers
        rI   N)r1   update_with_http_info_asyncrK   s      r*   rS   z,VariableInstance.update_with_http_info_async   s4      [[<< = 
 
 	
 
rO   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>z,VariableInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z*<Twilio.Serverless.V1.VariableInstance {}>joinr&   itemsrZ   r(   contexts     r*   __repr__zVariableInstance.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr+   )N)r,   r.   )r,   r   ) __name__
__module____qualname____doc__r   r   strr   r   r#   propertyr1   boolr4   r7   r   r:   r<   r?   rB   rD   rF   r   unsetr   objectrJ   rN   rQ   rS   rg   __classcell__r)   s   @r*   r   r      s   
$ "88 c3h8 	8
 8 c]8>   $ $0D 03{ 3?; ?#/2k 2>+ > #),,$*LL
3;
 S&[!
 
	
( #),,$*LL
3;
 S&[!
 
	
( #),,$*LL
3;
 S&[!
 
	
( #),,$*LL
3;
 S&[!
 
	
$L# Lr+   r   c                       e Zd Zdedededef fdZdefdZdefdZ	de
fd	Zdefd
ZdefdZde
fdZdefdZdefdZde
fdZde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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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   r   r   c                 |    t         |   |       |||d| _         dj                  di | j                  | _        y)ag  
        Initialize the VariableContext

        :param version: Version that contains the resource
        :param service_sid: The SID of the Service to update the Variable resource under.
        :param environment_sid: The SID of the Environment with the Variable resource to update.
        :param sid: The SID of the Variable resource to update.
        r!   zF/Services/{service_sid}/Environments/{environment_sid}/Variables/{sid}N r"   r#   r&   rZ   _uri)r(   r   r   r   r   r)   s        r*   r#   zVariableContext.__init__   sJ     	! '.

 d\cc 
nn
	r+   r,   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )z
        Internal helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        DELETEmethoduriheaders)r   ofr/   delete_with_response_inforw   r(   r}   s     r*   _deletezVariableContext._delete
  s8     ))B-}}66G 7 
 	
r+   c                 .    | j                         \  }}}|S r3   )r   r(   success_s      r*   r4   zVariableContext.delete  s     Ar+   c                 F    | j                         \  }}}t        |||      S )z
        Deletes the VariableInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_coder}   )r   r   r(   r   r   r}   s       r*   r:   z%VariableContext.delete_with_http_info"  s%     )-%g['RRr+   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        ry   rz   N)r   r~   r/   delete_with_response_info_asyncrw   r   s     r*   _delete_asynczVariableContext._delete_async,  sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wr6   )r   r   s      r*   r7   zVariableContext.delete_async:  s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the VariableInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr   )r   r   r   s       r*   r<   z+VariableContext.delete_with_http_info_asyncD  s5      /3.@.@.B(B%g['RR )Cs   /-/c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETrz   )r   r~   r/   fetch_with_response_inforw   r   s     r*   _fetchzVariableContext._fetchN  sB     ))B-.}}55dii 6 
 	
r+   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d   | j                  d         S )r>   r   r   r   r!   )r   r   r/   r&   r(   r   r   s      r*   r?   zVariableContext.fetch^  sQ     AMM}5 NN+<=u%
 	
r+   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d   | j                  d         }t	        |||      S )z
        Fetch the VariableInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r   r   r!   r   )r   r   r/   r&   r   r(   r   r   r}   instances        r*   rD   z$VariableContext.fetch_with_http_infon  s`     )-%g#MM}5 NN+<=u%
 k7SSr+   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   rz   N)r   r~   r/   fetch_with_response_info_asyncrw   r   s     r*   _fetch_asynczVariableContext._fetch_async  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d   | j                  d         S 7 Iw)rA   Nr   r   r   r!   )r   r   r/   r&   r   s      r*   rB   zVariableContext.fetch_async  s`      #//11AMM}5 NN+<=u%
 	
 2s   A"A A
A"c                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d   | j                  d         }t	        |||      S 7 Ww)z
        Asynchronous coroutine to fetch the VariableInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r   r   r!   r   )r   r   r/   r&   r   r   s        r*   rF   z*VariableContext.fetch_with_http_info_async  sp      /3.?.?.A(A%g#MM}5 NN+<=u%
 k7SS )Bs   A0A.AA0r   r   c                     t        j                  ||d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        KeyValue!application/x-www-form-urlencodedContent-Typer   r   POSTr{   r|   r   r}   )r   r~   r/   update_with_response_inforw   r(   r   r   r   r}   s        r*   _updatezVariableContext._update  si     yy
 ))B-"E.}}66tyytW 7 
 	
r+   c                     | j                  ||      \  }}}t        | j                  || j                  d   | j                  d   | j                  d         S )rH   rI   r   r   r   r!   )r   r   r/   r&   r(   r   r   r   r   s        r*   rJ   zVariableContext.update  sX     E:AMM}5 NN+<=u%
 	
r+   c                     | j                  ||      \  }}}t        | j                  || j                  d   | j                  d   | j                  d         }t	        |||      S )a  
        Update the VariableInstance and return response metadata

        :param key: A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.
        :param value: A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.

        :returns: ApiResponse with instance, status code, and headers
        rI   r   r   r   r!   r   )r   r   r/   r&   r   r(   r   r   r   r   r}   r   s          r*   rQ   z%VariableContext.update_with_http_info  sg     )-E(J%g#MM}5 NN+<=u%
 k7SSr+   c                    K   t        j                  ||d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   r~   r/   update_with_response_info_asyncrw   r   s        r*   _update_asynczVariableContext._update_async  sx      yy
 ))B-"E.]]BBtyytW C 
 
 	
 
s   A$A-&A+'A-c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d   | j                  d   | j                  d         S 7 Iw)rM   rI   Nr   r   r   r!   )r   r   r/   r&   r   s        r*   rN   zVariableContext.update_async  sh      #00S0FFAMM}5 NN+<=u%
 	
 G   A%A#A
A%c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d   | j                  d   | j                  d         }t	        |||      S 7 Ww)a  
        Asynchronous coroutine to update the VariableInstance and return response metadata

        :param key: A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.
        :param value: A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.

        :returns: ApiResponse with instance, status code, and headers
        rI   Nr   r   r   r!   r   )r   r   r/   r&   r   r   s          r*   rS   z+VariableContext.update_with_http_info_async+  sx      /3.@.@SPU.@.V(V%g#MM}5 NN+<=u%
 k7SS )Ws   A3A1AA3c                     dj                  d | j                  j                         D              }dj                  |      S )rU   rV   c              3   F   K   | ]  \  }}d j                  ||        ywrX   rY   r[   s      r*   r_   z+VariableContext.__repr__.<locals>.<genexpr>H  r`   ra   z)<Twilio.Serverless.V1.VariableContext {}>rb   re   s     r*   rg   zVariableContext.__repr__B  s6     ((SDNN<P<P<RSS:AA'JJr+   )"rh   ri   rj   r   rl   r#   tupler   rn   r4   r   r:   r   r7   r<   r   r   r?   rD   r   rB   rF   r   ro   r   rp   r   rJ   rQ   r   rN   rS   rg   rq   rr   s   @r*   r.   r.      sj   

-0
CF
MP
.
 
 S{ S
U 
D S; S
 
 
' 
 Tk T"
E 
 
#3 
 T+ T& #),,$*LL
3;
 S&[!
 
	
< #),,$*LL
3;
 S&[!
 
	
0 #),,$*LLT3;T S&[!T 
	T2 #),,$*LL
3;
 S&[!
 
	
< #),,$*LL
3;
 S&[!
 
	
0 #),,$*LLT3;T S&[!T 
	T.K# Kr+   r.   c                   2    e Zd Zdeeef   defdZdefdZy)VariablePager   r,   c                 h    t        | j                  || j                  d   | j                  d         S )zn
        Build an instance of VariableInstance

        :param payload: Payload response from the API
        r   r   r   r   )r   r/   r&   )r(   r   s     r*   get_instancezVariablePage.get_instanceN  s4      MM}5 NN+<=	
 	
r+   c                      y)rU   z#<Twilio.Serverless.V1.VariablePage>ru   r0   s    r*   rg   zVariablePage.__repr__[       5r+   N)	rh   ri   rj   r   rl   r   r   r   rg   ru   r+   r*   r   r   L  s*    
DcN 
7G 
5# 5r+   r   c            	            e Zd Zdededef fdZdededefdZdededefd	Z	dedede
fd
ZdededefdZdededefdZdedede
fdZ	 	 d%dee   dee   dee   fdZ	 	 d%dee   dee   dee   fdZ	 	 d%dee   dee   defdZ	 	 d%dee   dee   defdZ	 	 d%dee   dee   dee   fdZ	 	 d%dee   dee   dee   fdZ	 	 d%dee   dee   de
fdZ	 	 d%dee   dee   de
fdZej:                  ej:                  ej:                  fdeeef   deeef   deeef   de fdZ!ej:                  ej:                  ej:                  fdeeef   deeef   deeef   de fdZ"ej:                  ej:                  ej:                  fdeeef   deeef   deeef   de
fdZ#ej:                  ej:                  ej:                  fdeeef   deeef   deeef   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 )&VariableListr   r   r   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)a"  
        Initialize the VariableList

        :param version: Version that contains the resource
        :param service_sid: The SID of the Service to read the Variable resources from.
        :param environment_sid: The SID of the Environment with the Variable resources to read.

        r   z@/Services/{service_sid}/Environments/{environment_sid}/VariablesNru   rv   )r(   r   r   r   r)   s       r*   r#   zVariableList.__init__f  sJ     	! '.

 VNUU .. 		r+   r   r   r,   c                     t        j                  ||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   )r   r~   r/   create_with_response_inforw   r   s        r*   _createzVariableList._create|  sp     yy
 ))^-PQR"E.}}66tyytW 7 
 	
r+   c                     | j                  ||      \  }}}t        | j                  || j                  d   | j                  d         S )aM  
        Create the VariableInstance

        :param key: A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.
        :param value: A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.

        :returns: The created VariableInstance
        rI   r   r   r   )r   r   r/   r&   r   s        r*   createzVariableList.create  sL     E:AMM}5 NN+<=	
 	
r+   c                     | j                  ||      \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S )a  
        Create the VariableInstance and return response metadata

        :param key: A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.
        :param value: A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.

        :returns: ApiResponse with instance, status code, and headers
        rI   r   r   r   r   )r   r   r/   r&   r   r   s          r*   create_with_http_infoz"VariableList.create_with_http_info  s[     )-E(J%g#MM}5 NN+<=	
 k7SSr+   c                    K   t        j                  ||d      }t        j                  dd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   r   r   N)r   r~   r/   create_with_response_info_asyncrw   r   s        r*   _create_asynczVariableList._create_async  s      yy
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A&A/(A-)A/c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)a\  
        Asynchronously create the VariableInstance

        :param key: A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.
        :param value: A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.

        :returns: The created VariableInstance
        rI   Nr   r   r   )r   r   r/   r&   r   s        r*   create_asynczVariableList.create_async  s\      #00S0FFAMM}5 NN+<=	
 	
 Gs   AA<Ac                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S 7 Iw)a  
        Asynchronously create the VariableInstance and return response metadata

        :param key: A string by which the Variable resource can be referenced. It can be a maximum of 128 characters.
        :param value: A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size.

        :returns: ApiResponse with instance, status code, and headers
        rI   Nr   r   r   r   )r   r   r/   r&   r   r   s          r*   create_with_http_info_asyncz(VariableList.create_with_http_info_async  sl      /3.@.@SPU.@.V(V%g#MM}5 NN+<=	
 k7SS )Wr   limit	page_sizec                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )a^  
        Streams VariableInstance 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 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
        r   r   r   )r/   read_limitspagestreamr(   r   r   limitsr   s        r*   r   zVariableList.stream  sJ    ( **5)<yy6+#6y7}}##D&/::r+   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)am  
        Asynchronously streams VariableInstance 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 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
        r   r   Nr   )r/   r   
page_asyncstream_asyncr   s        r*   r   zVariableList.stream_async  sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5AA$Ac                     | j                   j                  ||      }| j                  |d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams VariableInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   r   )r/   r   page_with_http_infor   r   r   r}   r(   r   r   r   page_response	generators         r*   stream_with_http_infoz"VariableList.stream_with_http_info$  sk    $ **5)<006+;N0OMM((););VG_M	=44m6K6KLLr+   c                   K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)a  
        Asynchronously streams VariableInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   Nr   )r/   r   page_with_http_info_asyncr   r   r   r}   r   s         r*   stream_with_http_info_asyncz(VariableList.stream_with_http_info_async<  s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB c                 :    t        | j                  ||            S )a  
        Lists VariableInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :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   )listr   )r(   r   r   s      r*   r   zVariableList.listV  s(    & KK#  
 	
r+   c                 z   K   | j                  ||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a
  
        Asynchronously lists VariableInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :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   N)r   )r(   r   r   records       r*   
list_asynczVariableList.list_asyncp  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists VariableInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        r   r   )r   r   r   )r(   r   r   r   r   r}   rd   s          r*   list_with_http_infoz VariableList.list_with_http_info  sA    $ +/*D*D +E +
'	; Y;PPr+   c                    K   | j                  ||       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }}t        |||      S w)a  
        Asynchronously lists VariableInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        r   Nr   )r   r   )r(   r   r   r   r   r}   r   rd   s           r*   list_with_http_info_asyncz&VariableList.list_with_http_info_async  sf     $ 150P0P 1Q 1
 +
'	; -666&	+
 7666;PPs4   A4A:86
8:A8:A
page_tokenpage_numberc                     t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                        S )au  
        Retrieve a single page of VariableInstance records from the API.
        Request is executed immediately

        :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 VariableInstance
        	PageTokenr   PageSizer   r   r   r   r   r{   r|   paramsr}   )r   r~   r/   r   rw   r   r&   r(   r   r   r   r   r}   responses          r*   r   zVariableList.page  s      yy'#%
 ))^-PQR.==%%diig & 
 DMM8T^^DDr+   c                   K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                        S 7 %w)	a  
        Asynchronously retrieve a single page of VariableInstance records from the API.
        Request is executed immediately

        :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 VariableInstance
        r   r   r   r   r   r   r   N)r   r~   r/   r   rw   r   r&   r   s          r*   r   zVariableList.page_async  s       yy'#%
 ))^-PQR.11diig 2 
 
 DMM8T^^DD
s   A"B$B
%&Bc                 $   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | j                  || j                        }	t        |	||      S )	aZ  
        Retrieve a single page with response metadata


        :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: ApiResponse with VariablePage, status code, and headers
        r   r   r   r   r   r   r   r   )r   r~   r/   page_with_response_inforw   r   r&   r   
r(   r   r   r   r   r}   r   r   response_headersr   s
             r*   r   z VariableList.page_with_http_info  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ DMM8T^^D+GWXXr+   c                 @  K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}t        | j                  || j                        }	t        |	||	      S 7 7w)
ai  
        Asynchronously retrieve a single page with response metadata


        :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: ApiResponse with VariablePage, status code, and headers
        r   r   r   r   r   r   r   Nr   )r   r~   r/   page_with_response_info_asyncrw   r   r&   r   r   s
             r*   r   z&VariableList.page_with_http_info_async!  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 DMM8T^^D+GWXXs   A"B$B%8B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   || j
                        S )z
        Retrieve a specific page of VariableInstance records from the API.
        Request is executed immediately

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

        :returns: Page of VariableInstance
        r   )r/   domaintwiliorequestr   r&   r(   r   r   s      r*   get_pagezVariableList.get_pageE  s=     ==''..66ujIDMM8T^^DDr+   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   || j
                        S 7 %w)a  
        Asynchronously retrieve a specific page of VariableInstance records from the API.
        Request is executed immediately

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

        :returns: Page of VariableInstance
        r   N)r/   r  r  request_asyncr   r&   r  s      r*   get_page_asynczVariableList.get_page_asyncQ  sJ      --44BB5*UUDMM8T^^DD Vs   4AA&Ar   c                 h    t        | j                  | j                  d   | j                  d   |      S zo
        Constructs a VariableContext

        :param sid: The SID of the Variable resource to update.
        r   r   r!   r.   r/   r&   r(   r   s     r*   r$   zVariableList.get]  4     MM}5 NN+<=	
 	
r+   c                 h    t        | j                  | j                  d   | j                  d   |      S r  r  r  s     r*   __call__zVariableList.__call__j  r  r+   c                      y)rU   z#<Twilio.Serverless.V1.VariableList>ru   r0   s    r*   rg   zVariableList.__repr__w  r   r+   )NN),rh   ri   rj   r   rl   r#   r   r   r   r   r   r   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   ro   r   rp   r   r   r   r   r   r  r	  r.   r$   r  rg   rq   rr   s   @r*   r   r   d  sa   
 
c 
C 
,
3 
s 
u 
0
# 
c 
.> 
"T TS T[ T$
s 
3 
5 
0
c 
# 
:J 
"TS T T T(  $#';}; C=; 
"	#	;6  $#'A}A C=A 
'	(	A6  $#'M}M C=M 
	M4  $#'M}M C=M 
	M8  $#'
}
 C=
 
		
8  $#'
}
 C=
 
		
:  $#'Q}Q C=Q 
	Q6  $#'Q}Q C=Q 
	Q6 *0*0,,(.	E#v+&E 3;'E f%	E
 
EF *0*0,,(.	E#v+&E 3;'E f%	E
 
EF *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
E3 
E< 
E
Es 
E| 
E
s 
 

C 
O 
5# 5r+   r   N)rk   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r.   r   r   ru   r+   r*   <module>r     sj     L L L + 0 8 : 2 ' !TL' TLnXKo XKv
54 50Y5< Y5r+   