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

    Twilio - Supersim
    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)InstanceResource)ListResource)Version)Pagec                   V     e Zd Z G d de      Z	 dedeeef   f fdZ	defdZ
 xZS )SettingsUpdateInstancec                       e Zd ZdZdZdZdZy)SettingsUpdateInstance.Status	scheduledzin-progress
successfulfailedN)__name__
__module____qualname__	SCHEDULEDIN_PROGRESS
SUCCESSFULFAILED     k/var/www/html/DP/alpha_backend/venv/lib/python3.12/site-packages/twilio/rest/supersim/v1/settings_update.pyStatusr      s    	#!
r    r"   versionpayloadc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _
        t        j                  |j                  d            | _        t        j                  |j                  d            | _        y )	Nsidiccidsim_sidstatuspackagesdate_completeddate_createddate_updated)super__init__getr&   r'   r(   r)   r*   r   iso8601_datetimer+   r,   r-   )selfr#   r$   	__class__s      r!   r/   zSettingsUpdateInstance.__init__,   s    !")++e"4$+KK$8
&-kk)&<AHXAV;B;;z;R2=2N2NKK()3
 1<0L0LKK'1
 1<0L0LKK'1
r    returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z+<Twilio.Supersim.V1.SettingsUpdateInstance>r   r2   s    r!   __repr__zSettingsUpdateInstance.__repr__>   s     =r    )r   r   r   objectr"   r   r   strr   r/   r8   __classcell__r3   s   @r!   r   r      s;     	
 
$sCx. 
$=# =r    r   c                   2    e Zd Zdeeef   defdZdefdZy)SettingsUpdatePager$   r4   c                 .    t        | j                  |      S )zt
        Build an instance of SettingsUpdateInstance

        :param payload: Payload response from the API
        )r   _version)r2   r$   s     r!   get_instancezSettingsUpdatePage.get_instanceJ   s     &dmmW==r    c                      y)r6   z'<Twilio.Supersim.V1.SettingsUpdatePage>r   r7   s    r!   r8   zSettingsUpdatePage.__repr__R        9r    N)	r   r   r   r   r:   r   r   rA   r8   r   r    r!   r>   r>   H   s*    >DcN >7M >9# 9r    r>   c                       e Zd Zdef fdZej                  ej                  ddfdeee	f   dede	f   de
e   de
e   d	ee   f
d
Zej                  ej                  ddfdeee	f   dede	f   de
e   de
e   d	ee   f
dZej                  ej                  ddfdeee	f   dede	f   de
e   de
e   d	ee   f
dZej                  ej                  ddfdeee	f   dede	f   de
e   de
e   d	ee   f
dZej                  ej                  ej                  ej                  ej                  fdeee	f   dede	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                  ej                  ej                  fdeee	f   dede	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fdZ xZS )SettingsUpdateListr#   c                 2    t         |   |       d| _        y)zp
        Initialize the SettingsUpdateList

        :param version: Version that contains the resource

        z/SettingsUpdatesN)r.   r/   _uri)r2   r#   r3   s     r!   r/   zSettingsUpdateList.__init__]   s     	!&	r    Nsimr)   r   limit	page_sizer4   c                     | j                   j                  ||      }| j                  |||d         }| j                   j                  ||d         S )ab  
        Streams SettingsUpdateInstance 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 sim: Filter the Settings Updates by a Super SIM's SID or UniqueName.
        :param &quot;SettingsUpdateInstance.Status&quot; status: Filter the Settings Updates by status. Can be `scheduled`, `in-progress`, `successful`, or `failed`.
        :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
        rJ   rH   r)   rJ   rI   )r@   read_limitspagestreamr2   rH   r)   rI   rJ   limitsrN   s          r!   rO   zSettingsUpdateList.streamh   sN    0 **5)<yyS6+;NyO}}##D&/::r    c                    K   | j                   j                  ||      }| j                  |||d          d{   }| j                   j                  ||d         S 7 #w)aq  
        Asynchronously streams SettingsUpdateInstance 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 sim: Filter the Settings Updates by a Super SIM's SID or UniqueName.
        :param &quot;SettingsUpdateInstance.Status&quot; status: Filter the Settings Updates by status. Can be `scheduled`, `in-progress`, `successful`, or `failed`.
        :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
        rJ   rL   NrI   )r@   rM   
page_asyncstream_asyncrP   s          r!   rT   zSettingsUpdateList.stream_async   sd     0 **5)<__Ff[.A % 
 
 }}))$w@@	
s   7AA$Ac                 >    t        | j                  ||||            S )a  
        Lists SettingsUpdateInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str sim: Filter the Settings Updates by a Super SIM's SID or UniqueName.
        :param &quot;SettingsUpdateInstance.Status&quot; status: Filter the Settings Updates by status. Can be `scheduled`, `in-progress`, `successful`, or `failed`.
        :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
        rH   r)   rI   rJ   )listrO   )r2   rH   r)   rI   rJ   s        r!   rW   zSettingsUpdateList.list   s.    . KK#	  
 	
r    c                 ~   K   | j                  ||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists SettingsUpdateInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str sim: Filter the Settings Updates by a Super SIM's SID or UniqueName.
        :param &quot;SettingsUpdateInstance.Status&quot; status: Filter the Settings Updates by status. Can be `scheduled`, `in-progress`, `successful`, or `failed`.
        :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
        rV   N)rT   )r2   rH   r)   rI   rJ   records         r!   
list_asynczSettingsUpdateList.list_async   s_     2 '+&7&7#	 '8 ' ! !
 
 !
 
 	
 
s0   =0=842
48=48=
page_tokenpage_numberc                     t        j                  |||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )aQ  
        Retrieve a single page of SettingsUpdateInstance records from the API.
        Request is executed immediately

        :param sim: Filter the Settings Updates by a Super SIM's SID or UniqueName.
        :param status: Filter the Settings Updates by status. Can be `scheduled`, `in-progress`, `successful`, or `failed`.
        :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 SettingsUpdateInstance
        Simr"   	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsheaders)r   ofr@   rN   rG   r>   	r2   rH   r)   r[   r\   rJ   datark   responses	            r!   rN   zSettingsUpdateList.page   s    ( yy '#%
 ))^-PQR.==%%diig & 
 "$--::r    c                 
  K   t        j                  |||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	a`  
        Asynchronously retrieve a single page of SettingsUpdateInstance records from the API.
        Request is executed immediately

        :param sim: Filter the Settings Updates by a Super SIM's SID or UniqueName.
        :param status: Filter the Settings Updates by status. Can be `scheduled`, `in-progress`, `successful`, or `failed`.
        :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 SettingsUpdateInstance
        r^   rb   rc   rd   re   rf   rg   N)r   rl   r@   rS   rG   r>   rm   s	            r!   rS   zSettingsUpdateList.page_async  s     ( yy '#%
 ))^-PQR.11diig 2 
 
 "$--::
s   A$B&B'B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )a  
        Retrieve a specific page of SettingsUpdateInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SettingsUpdateInstance
        rf   )r@   domaintwiliorequestr>   r2   rq   ro   s      r!   get_pagezSettingsUpdateList.get_page3  s7     ==''..66ujI!$--::r    c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        Asynchronously retrieve a specific page of SettingsUpdateInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SettingsUpdateInstance
        rf   N)r@   rs   rt   request_asyncr>   rv   s      r!   get_page_asyncz!SettingsUpdateList.get_page_async?  sD      --44BB5*UU!$--:: Vs   4AAAc                      y)r6   z'<Twilio.Supersim.V1.SettingsUpdateList>r   r7   s    r!   r8   zSettingsUpdateList.__repr__K  rC   r    )r   r   r   r   r/   r   unsetr   r:   r9   r   intr	   r   rO   r
   rT   r   rW   rZ   r>   rN   rS   rw   rz   r8   r;   r<   s   @r!   rE   rE   [   s(   	' 	' #),,AG##';3;; 5v=>; }	;
 C=; 
(	);> #),,AG##'A3;A 5v=>A }	A
 C=A 
-	.AB #),,AG##'
3;
 5v=>
 }	

 C=
 
$	%
D #),,AG##'
3;
 5v=>
 }	

 C=
 
$	%
F #),,AG)/*0,,(.%;3;%; 5v=>%; #v+&	%;
 3;'%; f%%; 
%;R #),,AG)/*0,,(.%;3;%; 5v=>%; #v+&	%;
 3;'%; f%%; 
%;N
;3 
;+= 
;
;s 
;7I 
;9# 9r    rE   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r>   rE   r   r    r!   <module>r      sO     L L L + : 2 ' !,=- ,=^9 9&v9 v9r    