
    d{i^                         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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)ApiResponse)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     e/home/sas/my/fyp/ringai/.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"   r0   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    r3   s    r"   __repr__zSettingsUpdateInstance.__repr__?   s     =r!   )r   r   r   objectr#   r   r   strr   r0   r9   __classcell__r4   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%   r5   c                 .    t        | j                  |      S )zt
        Build an instance of SettingsUpdateInstance

        :param payload: Payload response from the API
        )r   _version)r3   r%   s     r"   get_instancezSettingsUpdatePage.get_instanceK   s     &dmmW==r!   c                      y)r7   z'<Twilio.Supersim.V1.SettingsUpdatePage>r    r8   s    r"   r9   zSettingsUpdatePage.__repr__S        9r!   N)	r   r   r   r   r;   r   r   rB   r9   r    r!   r"   r?   r?   I   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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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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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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/   r0   _uri)r3   r$   r4   s     r"   r0   zSettingsUpdateList.__init__^   s     	!&	r!   Nsimr*   r   limit	page_sizer5   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
        rK   rI   r*   rK   rJ   )rA   read_limitspagestreamr3   rI   r*   rJ   rK   limitsrO   s          r"   rP   zSettingsUpdateList.streami   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
        rK   rM   NrJ   )rA   rN   
page_asyncstream_asyncrQ   s          r"   rU   zSettingsUpdateList.stream_async   sd     0 **5)<__Ff[.A % 
 
 }}))$w@@	
s   7AA$Ac                     | j                   j                  ||      }| j                  |||d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams SettingsUpdateInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        rK   rM   rJ   )rA   rN   page_with_http_inforP   datastatus_codeheadersr3   rI   r*   rJ   rK   rR   page_response	generators           r"   stream_with_http_infoz(SettingsUpdateList.stream_with_http_info   sv    , **5)<00Ff[.A 1 
 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 SettingsUpdateInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        rK   rM   NrJ   )rA   rN   page_with_http_info_asyncrU   rX   rY   rZ   r[   s           r"   stream_with_http_info_asyncz.SettingsUpdateList.stream_with_http_info_async   s     , **5)<"<<Ff[.A = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   7BB AB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
        rI   r*   rJ   rK   )listrP   )r3   rI   r*   rJ   rK   s        r"   rd   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
        rc   N)rU   )r3   rI   r*   rJ   rK   records         r"   
list_asynczSettingsUpdateList.list_async  sZ     2 '+&7&7#	 '8 ' !
 
 !
 
 	
 
s0   =0=842
48=48=c                 f    | j                  ||||      \  }}}t        |      }t        |||      S )a  
        Lists SettingsUpdateInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        rc   rX   rY   rZ   )r^   rd   r   )	r3   rI   r*   rJ   rK   r]   rY   rZ   itemss	            r"   list_with_http_infoz&SettingsUpdateList.list_with_http_info"  sG    , +/*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 SettingsUpdateInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        rc   Nri   )ra   r   )
r3   rI   r*   rJ   rK   r]   rY   rZ   rf   rj   s
             r"   list_with_http_info_asyncz,SettingsUpdateList.list_with_http_info_asyncA  sl     , 150P0P	 1Q 1
 +
'	; -666&+
 7666;PPs4   A6A<:8
:<A:<A
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paramsrZ   )r   ofrA   rO   rH   r?   	r3   rI   r*   rn   ro   rK   rX   rZ   responses	            r"   rO   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
        rq   ru   rv   rw   rx   ry   rz   N)r   r~   rA   rT   rH   r?   r   s	            r"   rT   zSettingsUpdateList.page_async  s     ( yy '#%
 ))^-PQR.11diig 2 
 
 "$--::
s   A$B&B'Bc                    t        j                  |||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}	}
t        | j                  |      }t        ||	|
      S )	a0  
        Retrieve a single page with response metadata


        :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: ApiResponse with SettingsUpdatePage, status code, and headers
        rq   ru   rv   rw   rx   ry   rz   ri   )r   r~   rA   page_with_response_inforH   r?   r   r3   rI   r*   rn   ro   rK   rX   rZ   r   rY   response_headersrO   s               r"   rW   z&SettingsUpdateList.page_with_http_info  s    ( yy '#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ "$--:+GWXXr!   c                 .  K   t        j                  |||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}	}
t        | j                  |      }t        ||	|
	      S 7 ,w)
a?  
        Asynchronously retrieve a single page with response metadata


        :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: ApiResponse with SettingsUpdatePage, status code, and headers
        rq   ru   rv   rw   rx   ry   rz   Nri   )r   r~   rA   page_with_response_info_asyncrH   r?   r   r   s               r"   r`   z,SettingsUpdateList.page_with_http_info_async  s     ( yy '#%
 ))^-PQR. --==$))D' >   	0+/
 "$--:+GWXX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
        ry   )rA   domaintwiliorequestr?   r3   r   r   s      r"   get_pagezSettingsUpdateList.get_page   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
        ry   N)rA   r   r   request_asyncr?   r   s      r"   get_page_asyncz!SettingsUpdateList.get_page_async  sD      --44BB5*UU!$--:: Vs   4AAAc                      y)r7   z'<Twilio.Supersim.V1.SettingsUpdateList>r    r8   s    r"   r9   zSettingsUpdateList.__repr__  rD   r!   )#r   r   r   r   r0   r   unsetr   r;   r:   r   intr	   r   rP   r
   rU   tupler^   ra   r   rd   rg   r   rk   rm   r?   rO   rT   rW   r`   r   r   r9   r<   r=   s   @r"   rF   rF   \   s   	' 	' #),,AG##';3;; 5v=>; }	;
 C=; 
(	);> #),,AG##'A3;A 5v=>A }	A
 C=A 
-	.AB #),,AG##'M3;M 5v=>M }	M
 C=M 
M@ #),,AG##'M3;M 5v=>M }	M
 C=M 
M@ #),,AG##'
3;
 5v=>
 }	

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

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