
    i?1iE                         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  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 - Microvisor
    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)InstanceContext)InstanceResource)ListResource)Version)Pagec                        e Zd ZdZ	 ddedeeef   dee   f fdZ	e
dd       ZdefdZdefd	Zdd
ZddZdedd fdZdedd fdZdefdZ xZS )AccountConfigInstancez
    :ivar key: The config key; up to 100 characters.
    :ivar date_updated:
    :ivar value: The config value; up to 4096 characters.
    :ivar url: The absolute URL of the Config.
    versionpayloadkeyc                 6   t         |   |       |j                  d      | _        t	        j
                  |j                  d            | _        |j                  d      | _        |j                  d      | _        d|xs | j                  i| _	        d | _
        y )Nr   date_updatedvalueurl)super__init__getr   r   iso8601_datetimer   r   r   	_solution_context)selfr   r   r   	__class__s       r/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/twilio/rest/microvisor/v1/account_config.pyr   zAccountConfigInstance.__init__#   s     	!")++e"40;0L0LKK'1
 %,KK$8
")++e"4 3?$((
 9=    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: AccountConfigContext for this AccountConfigInstance
        r   r   )r    AccountConfigContext_versionr   r!   s    r#   _proxyzAccountConfigInstance._proxy4   s9     == 0NN5)DM }}r$   c                 6    | j                   j                         S )p
        Deletes the AccountConfigInstance


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


        :returns: True if delete succeeds, False otherwise
        N)r+   delete_asyncr*   s    r#   r1   z"AccountConfigInstance.delete_asyncL   s!      [[--////   '%'c                 6    | j                   j                         S )g
        Fetch the AccountConfigInstance


        :returns: The fetched AccountConfigInstance
        )r+   fetchr*   s    r#   r5   zAccountConfigInstance.fetchU   s     {{  ""r$   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to fetch the AccountConfigInstance


        :returns: The fetched AccountConfigInstance
        N)r+   fetch_asyncr*   s    r#   r8   z!AccountConfigInstance.fetch_async^   s!      [[,,....r2   r   c                 :    | j                   j                  |      S )
        Update the AccountConfigInstance

        :param value: The config value; up to 4096 characters.

        :returns: The updated AccountConfigInstance
        r   )r+   updater!   r   s     r#   r<   zAccountConfigInstance.updateg   s#     {{!! " 
 	
r$   c                 V   K   | j                   j                  |       d{   S 7 w)
        Asynchronous coroutine to update the AccountConfigInstance

        :param value: The config value; up to 4096 characters.

        :returns: The updated AccountConfigInstance
        r;   N)r+   update_asyncr=   s     r#   r@   z"AccountConfigInstance.update_asyncs   s1      [[-- . 
 
 	
 
s    )')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>z1AccountConfigInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z/<Twilio.Microvisor.V1.AccountConfigInstance {}>joinr   itemsrG   r!   contexts     r#   __repr__zAccountConfigInstance.__repr__   s6     ((SDNN<P<P<RSS@GGPPr$   )N)r%   r(   )r%   r   )__name__
__module____qualname____doc__r   r   strr   r   r   propertyr+   boolr.   r1   r5   r8   r<   r@   rT   __classcell__r"   s   @r#   r   r      s     OS==)-c3h=>Fsm="  $ $0D 0#/

C 

$; 



 

0G 

Q# Qr$   r   c                        e Zd Z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de	fd
Zd	ede	fdZdefdZ xZS )r(   r   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the AccountConfigContext

        :param version: Version that contains the resource
        :param key: The config key; up to 100 characters.
        r   z/Configs/{key}N )r   r   r   rG   _uri)r!   r   r   r"   s      r#   r   zAccountConfigContext.__init__   s@     	! 3
 ,$++=dnn=	r$   r%   c                 P    | j                   j                  d| j                        S )r-   DELETEmethoduri)r)   r.   ra   r*   s    r#   r.   zAccountConfigContext.delete   s*     }}##		 $ 
 	
r$   c                 l   K   | j                   j                  d| j                         d{   S 7 w)r0   rc   rd   N)r)   r1   ra   r*   s    r#   r1   z!AccountConfigContext.delete_async   s8      ]]//		 0 
 
 	
 
s   +424c                     | j                   j                  d| j                        }t        | j                   || j                  d         S )r4   GETrd   r   r'   )r)   r5   ra   r   r   r!   r   s     r#   r5   zAccountConfigContext.fetch   sL     --%%		 & 

 %MMu%
 	
r$   c                    K   | j                   j                  d| j                         d{   }t        | j                   || j                  d         S 7 )w)r7   ri   rd   Nr   r'   )r)   r8   ra   r   r   rj   s     r#   r8   z AccountConfigContext.fetch_async   sZ      11		 2 
 

 %MMu%
 	

s   +AA*Ar   c                     t        j                  d|i      }| j                  j                  d| j                  |      }t        | j                  || j                  d         S )r:   ValuePOSTre   rf   datar   r'   )r   ofr)   r<   ra   r   r   r!   r   rp   r   s       r#   r<   zAccountConfigContext.update   sc     yy
 --&&		 ' 
 %T]]GPUAVWWr$   c                    K   t        j                  d|i      }| j                  j                  d| j                  |       d{   }t        | j                  || j                  d         S 7 )w)r?   rm   rn   ro   Nr   r'   )r   rq   r)   r@   ra   r   r   rr   s       r#   r@   z!AccountConfigContext.update_async   sq      yy
 22		 3 
 
 %T]]GPUAVWW
s   AA1A/*A1c                     dj                  d | j                  j                         D              }dj                  |      S )rB   rC   c              3   F   K   | ]  \  }}d j                  ||        ywrE   rF   rH   s      r#   rL   z0AccountConfigContext.__repr__.<locals>.<genexpr>	  rM   rN   z.<Twilio.Microvisor.V1.AccountConfigContext {}>rO   rR   s     r#   rT   zAccountConfigContext.__repr__  s6     ((SDNN<P<P<RSS?FFwOOr$   )rU   rV   rW   r   rY   r   r[   r.   r1   r   r5   r8   r<   r@   rT   r\   r]   s   @r#   r(   r(      s    > >c >

 



D 


, 
&
#8 
&XC X$9 X,X X0E X,P# Pr$   r(   c                   2    e Zd Zdeeef   defdZdefdZy)AccountConfigPager   r%   c                 .    t        | j                  |      S )zs
        Build an instance of AccountConfigInstance

        :param payload: Payload response from the API
        )r   r)   rj   s     r#   get_instancezAccountConfigPage.get_instance  s     %T]]G<<r$   c                      y)rB   z(<Twilio.Microvisor.V1.AccountConfigPage>r`   r*   s    r#   rT   zAccountConfigPage.__repr__       :r$   N)	rU   rV   rW   r   rY   r   r   ry   rT   r`   r$   r#   rw   rw     s*    =DcN =7L =:# :r$   rw   c            	       <    e Zd Z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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e   fdZ	 	 dde	e
   d	e	e
   de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 )AccountConfigListr   c                 2    t         |   |       d| _        y)zo
        Initialize the AccountConfigList

        :param version: Version that contains the resource

        z/ConfigsN)r   r   ra   )r!   r   r"   s     r#   r   zAccountConfigList.__init__   s     	!	r$   r   r   r%   c                     t        j                  ||d      }| j                  j                  d| j                  |      }t        | j                  |      S )z
        Create the AccountConfigInstance

        :param key: The config key; up to 100 characters.
        :param value: The config value; up to 4096 characters.

        :returns: The created AccountConfigInstance
        Keyrm   rn   ro   )r   rq   r)   createra   r   r!   r   r   rp   r   s        r#   r   zAccountConfigList.create+  sX     yy
 --&&		 ' 
 %T]]G<<r$   c                    K   t        j                  ||d      }| j                  j                  d| j                  |       d{   }t        | j                  |      S 7 w)z
        Asynchronously create the AccountConfigInstance

        :param key: The config key; up to 100 characters.
        :param value: The config value; up to 4096 characters.

        :returns: The created AccountConfigInstance
        r   rn   ro   N)r   rq   r)   create_asyncra   r   r   s        r#   r   zAccountConfigList.create_asyncC  sf      yy
 22		 3 
 
 %T]]G<<
s   AA#A!A#limit	page_sizec                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )ac  
        Streams AccountConfigInstance 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AccountConfigList.stream[  sJ    ( **5)<yy6+#6y7}}##D&/::r$   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)ar  
        Asynchronously streams AccountConfigInstance 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AccountConfigList.stream_asynct  sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5AA$Ac                 :    t        | j                  ||            S )a   
        Lists AccountConfigInstance 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AccountConfigList.list  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 AccountConfigInstance 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AccountConfigList.list_async  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;
page_tokenpage_numberc                     t        j                  |||d      }| j                  j                  d| j                  |      }t        | j                  |      S )a  
        Retrieve a single page of AccountConfigInstance 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 AccountConfigInstance
        	PageTokenr   PageSizeri   re   rf   params)r   rq   r)   r   ra   rw   r!   r   r   r   rp   responses         r#   r   zAccountConfigList.page  sR      yy'#%
 ==%%U		$%O 99r$   c                    K   t        j                  |||d      }| j                  j                  d| j                  |       d{   }t        | j                  |      S 7 w)a  
        Asynchronously retrieve a single page of AccountConfigInstance 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 AccountConfigInstance
        r   ri   r   N)r   rq   r)   r   ra   rw   r   s         r#   r   zAccountConfigList.page_async  sg       yy'#%
 11dii 2 
 
 !99
s   AA$A"A$
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )z
        Retrieve a specific page of AccountConfigInstance records from the API.
        Request is executed immediately

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

        :returns: Page of AccountConfigInstance
        ri   )r)   domaintwiliorequestrw   r!   r   r   s      r#   get_pagezAccountConfigList.get_page  s7     ==''..66ujI 99r$   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        Asynchronously retrieve a specific page of AccountConfigInstance records from the API.
        Request is executed immediately

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

        :returns: Page of AccountConfigInstance
        ri   N)r)   r   r   request_asyncrw   r   s      r#   get_page_asyncz AccountConfigList.get_page_async  sD      --44BB5*UU 99 Vs   4AAAc                 0    t        | j                  |      S zn
        Constructs a AccountConfigContext

        :param key: The config key; up to 100 characters.
        r'   r(   r)   r!   r   s     r#   r   zAccountConfigList.get       $DMMs;;r$   c                 0    t        | j                  |      S r   r   r   s     r#   __call__zAccountConfigList.__call__  r   r$   c                      y)rB   z(<Twilio.Microvisor.V1.AccountConfigList>r`   r*   s    r#   rT   zAccountConfigList.__repr__"  r{   r$   )NN) rU   rV   rW   r   r   rY   r   r   r   r   intr	   r   r
   r   r   r   r   r   unsetr   objectrw   r   r   r   r   r(   r   r   rT   r\   r]   s   @r#   r}   r}     s;   	 	=# =c =.C =0=c =# =:O =4  $#';}; C=; 
'	(	;6  $#'A}A C=A 
,	-	A6  $#'
}
 C=
 
#	$	
8  $#'
}
 C=
 
#	$	
: *0*0,,(.	:#v+&: 3;': f%	:
 
:: *0*0,,(.	:#v+&: 3;': f%	:
 
::
:3 
:+< 
:
:s 
:7H 
:<s <3 <<C <$8 <:# :r$   r}   N)rX   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r(   rw   r}   r`   r$   r#   <module>r      sg     L L L + 8 : 2 ' !lQ, lQ^AP? APH: :$I: I:r$   