
    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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 - 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	serializevalues)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec                        e Zd Z G d de      Z	 	 ddedeeef   de	e   f fdZ
edd       Zdd	Zdd
ZdefdZdefdZdefdZ xZS )EsimProfileInstancec                   $    e Zd ZdZdZdZdZdZdZy)EsimProfileInstance.Statusnew	reserving	available
downloaded	installedfailedN)	__name__
__module____qualname__NEW	RESERVING	AVAILABLE
DOWNLOADED	INSTALLEDFAILED     b/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/supersim/v1/esim_profile.pyStatusr      s     		!
	r(   r*   versionpayloadsidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        |j                  d      | _
        |j                  d	      | _        |j                  d
      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _        |j                  d      | _        d|xs | j                  i| _        d | _        y )Nr-   account_sidiccidsim_sidstatuseidsmdp_plus_addressmatching_idactivation_code
error_codeerror_messagedate_createddate_updatedurl)super__init__getr-   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r   iso8601_datetimer9   r:   r;   	_solution_context)selfr+   r,   r-   	__class__s       r)   r=   zEsimProfileInstance.__init__5   s<    	!")++e"4*1++m*D$+KK$8
&-kk)&<>Ekk(>S")++e"407<O0P*1++m*D.5kk:K.L)0\)B,3KK,H0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 7;r(   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: EsimProfileContext for this EsimProfileInstance
        r-   r-   )rA   EsimProfileContext_versionr@   rB   s    r)   _proxyzEsimProfileInstance._proxyR   s9     == .NN5)DM }}r(   c                 6    | j                   j                         S )c
        Fetch the EsimProfileInstance


        :returns: The fetched EsimProfileInstance
        )rJ   fetchrI   s    r)   rM   zEsimProfileInstance.fetcha   s     {{  ""r(   c                 R   K   | j                   j                          d{   S 7 w)}
        Asynchronous coroutine to fetch the EsimProfileInstance


        :returns: The fetched EsimProfileInstance
        N)rJ   fetch_asyncrI   s    r)   rP   zEsimProfileInstance.fetch_asyncj   s!      [[,,....   '%'c                 6    | j                   j                         S )z
        Fetch the EsimProfileInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )rJ   fetch_with_http_inforI   s    r)   rS   z(EsimProfileInstance.fetch_with_http_infos   s     {{//11r(   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the EsimProfileInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)rJ   fetch_with_http_info_asyncrI   s    r)   rU   z.EsimProfileInstance.fetch_with_http_info_async|   s!      [[;;====rQ   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/EsimProfileInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z+<Twilio.Supersim.V1.EsimProfileInstance {}>joinr@   itemsr\   rB   contexts     r)   __repr__zEsimProfileInstance.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr(   )N)rD   rG   )rD   r   )r   r   r    objectr*   r   r   strr   r   r=   propertyrJ   rM   rP   r   rS   rU   ri   __classcell__rC   s   @r)   r   r      s     $ OS;;)-c3h;>Fsm;:  #/2k 2>+ >M# M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fd	Zde
fd
ZdefdZ xZS )rG   r+   r-   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the EsimProfileContext

        :param version: Version that contains the resource
        :param sid: The SID of the eSIM Profile resource to fetch.
        r-   z/ESimProfiles/{sid}Nr'   )r<   r=   r@   r\   _uri)rB   r+   r-   rC   s      r)   r=   zEsimProfileContext.__init__   s@     	! 3
 1)00B4>>B	r(   rD   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GETmethoduriheaders)r   ofrH   fetch_with_response_inforq   rB   ry   s     r)   _fetchzEsimProfileContext._fetch   sB     ))B-.}}55dii 6 
 	
r(   c                 t    | j                         \  }}}t        | j                  || j                  d         S )rL   r-   rF   )r}   r   rH   r@   rB   r,   _s      r)   rM   zEsimProfileContext.fetch   s8     A"MMu%
 	
r(   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the EsimProfileInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r-   rF   datastatus_codery   )r}   r   rH   r@   r   rB   r,   r   ry   instances        r)   rS   z'EsimProfileContext.fetch_with_http_info   sG     )-%g&MM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)
        rs   rt   ru   rv   N)r   rz   rH   fetch_with_response_info_asyncrq   r|   s     r)   _fetch_asynczEsimProfileContext._fetch_async   sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)rO   Nr-   rF   )r   r   rH   r@   r   s      r)   rP   zEsimProfileContext.fetch_async   sG      #//11A"MMu%
 	
 2s   AA.Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronous coroutine to fetch the EsimProfileInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr-   rF   r   )r   r   rH   r@   r   r   s        r)   rU   z-EsimProfileContext.fetch_with_http_info_async   sW      /3.?.?.A(A%g&MMu%

 k7SS )Bs   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )rW   rX   c              3   F   K   | ]  \  }}d j                  ||        ywrZ   r[   r]   s      r)   ra   z.EsimProfileContext.__repr__.<locals>.<genexpr>   rb   rc   z*<Twilio.Supersim.V1.EsimProfileContext {}>rd   rg   s     r)   ri   zEsimProfileContext.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr(   )r   r   r    r   rk   r=   tupler}   r   rM   r   rS   r   rP   rU   ri   rm   rn   s   @r)   rG   rG      su    C Cc C
 
 
* 
Tk T
E 
 
#6 
T+ TL# Lr(   rG   c                   2    e Zd Zdeeef   defdZdefdZy)EsimProfilePager,   rD   c                 .    t        | j                  |      S )zq
        Build an instance of EsimProfileInstance

        :param payload: Payload response from the API
        )r   rH   )rB   r,   s     r)   get_instancezEsimProfilePage.get_instance  s     #4=='::r(   c                      y)rW   z$<Twilio.Supersim.V1.EsimProfilePage>r'   rI   s    r)   ri   zEsimProfilePage.__repr__       6r(   N)	r   r   r    r   rk   r   r   r   ri   r'   r(   r)   r   r     s*    ;DcN ;7J ;6# 6r(   r   c                   d    e Zd Zdef fdZej                  ej                  ej                  ej                  fdee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                  fdee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                  fdee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                  fdee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                  fdee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                  fdee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                  ddfdeee	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                  ddfdeee	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                  ddfdeee	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                  ddfdeee	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                  ddfdeee	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                  ddfdeee	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                  ddfdeee	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                  ddfdeee	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                  ej                  fdeee	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                  ej                  fdeee	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                  ej                  fdeee	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                  ej                  fdeee	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de(fd&Z)d%ede(fd'Z*defd(Z+ xZ,S ))EsimProfileListr+   c                 2    t         |   |       d| _        y)zm
        Initialize the EsimProfileList

        :param version: Version that contains the resource

        z/ESimProfilesN)r<   r=   rq   )rB   r+   rC   s     r)   r=   zEsimProfileList.__init__  s     	!#	r(   callback_urlcallback_methodgenerate_matching_idr3   rD   c                     t        j                  ||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)
        CallbackUrlCallbackMethodGenerateMatchingIdEidContent-Type!application/x-www-form-urlencodedrs   rt   POSTrw   rx   r   ry   )r   rz   r   boolean_to_stringrH   create_with_response_inforq   rB   r   r   r   r3   r   ry   s          r)   _createzEsimProfileList._create$  s     yy+"1&/&A&ABV&W	
 ))^-PQR"E.}}66tyytW 7 
 	
r(   c                 `    | j                  ||||      \  }}}t        | j                  |      S )a  
        Create the EsimProfileInstance

        :param callback_url: The URL we should call using the `callback_method` when the status of the eSIM Profile changes. At this stage of the eSIM Profile pilot, the a request to the URL will only be called when the ESimProfile resource changes from `reserving` to `available`.
        :param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST.
        :param generate_matching_id: When set to `true`, a value for `Eid` does not need to be provided. Instead, when the eSIM profile is reserved, a matching ID will be generated and returned via the `matching_id` property. This identifies the specific eSIM profile that can be used by any capable device to claim and download the profile.
        :param eid: Identifier of the eUICC that will claim the eSIM Profile.

        :returns: The created EsimProfileInstance
        r   r   r   r3   )r   r   rH   rB   r   r   r   r3   r,   r   s          r)   createzEsimProfileList.createD  s<    " %+!5	 % 
A #4=='::r(   c                 |    | j                  ||||      \  }}}t        | j                  |      }t        |||      S )a  
        Create the EsimProfileInstance and return response metadata

        :param callback_url: The URL we should call using the `callback_method` when the status of the eSIM Profile changes. At this stage of the eSIM Profile pilot, the a request to the URL will only be called when the ESimProfile resource changes from `reserving` to `available`.
        :param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST.
        :param generate_matching_id: When set to `true`, a value for `Eid` does not need to be provided. Instead, when the eSIM profile is reserved, a matching ID will be generated and returned via the `matching_id` property. This identifies the specific eSIM profile that can be used by any capable device to claim and download the profile.
        :param eid: Identifier of the eUICC that will claim the eSIM Profile.

        :returns: ApiResponse with instance, status code, and headers
        r   r   )r   r   rH   r   	rB   r   r   r   r3   r,   r   ry   r   s	            r)   create_with_http_infoz%EsimProfileList.create_with_http_info]  sK    " )-%+!5	 )5 )
%g 't}}g>k7SSr(   c                   K   t        j                  ||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   rs   rt   r   r   N)r   rz   r   r   rH   create_with_response_info_asyncrq   r   s          r)   _create_asynczEsimProfileList._create_asyncw  s      yy+"1&/&A&ABV&W	
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A;B=B>Bc                 |   K   | j                  ||||       d{   \  }}}t        | j                  |      S 7 w)a  
        Asynchronously create the EsimProfileInstance

        :param callback_url: The URL we should call using the `callback_method` when the status of the eSIM Profile changes. At this stage of the eSIM Profile pilot, the a request to the URL will only be called when the ESimProfile resource changes from `reserving` to `available`.
        :param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST.
        :param generate_matching_id: When set to `true`, a value for `Eid` does not need to be provided. Instead, when the eSIM profile is reserved, a matching ID will be generated and returned via the `matching_id` property. This identifies the specific eSIM profile that can be used by any capable device to claim and download the profile.
        :param eid: Identifier of the eUICC that will claim the eSIM Profile.

        :returns: The created EsimProfileInstance
        r   N)r   r   rH   r   s          r)   create_asynczEsimProfileList.create_async  sL     " #00%+!5	 1 
 
A #4=='::
s   <:<c                    K   | j                  ||||       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)a  
        Asynchronously create the EsimProfileInstance and return response metadata

        :param callback_url: The URL we should call using the `callback_method` when the status of the eSIM Profile changes. At this stage of the eSIM Profile pilot, the a request to the URL will only be called when the ESimProfile resource changes from `reserving` to `available`.
        :param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST.
        :param generate_matching_id: When set to `true`, a value for `Eid` does not need to be provided. Instead, when the eSIM profile is reserved, a matching ID will be generated and returned via the `matching_id` property. This identifies the specific eSIM profile that can be used by any capable device to claim and download the profile.
        :param eid: Identifier of the eUICC that will claim the eSIM Profile.

        :returns: ApiResponse with instance, status code, and headers
        r   Nr   )r   r   rH   r   r   s	            r)   create_with_http_info_asyncz+EsimProfileList.create_with_http_info_async  s\     " /3.@.@%+!5	 /A /
 )
%g 't}}g>k7SS)
s   A
A-A
Nr1   r2   r   limit	page_sizec                     | j                   j                  ||      }| j                  ||||d         }| j                   j                  ||d         S )a  
        Streams EsimProfileInstance 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 eid: List the eSIM Profiles that have been associated with an EId.
        :param str sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
        :param &quot;EsimProfileInstance.Status&quot; status: List the eSIM Profiles that are in a given status.
        :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   r3   r1   r2   r   r   )rH   read_limitspagestreamrB   r3   r1   r2   r   r   limitsr   s           r)   r   zEsimProfileList.stream  sX    4 **5)<yyWVvk?R  
 }}##D&/::r(   c                    K   | j                   j                  ||      }| j                  ||||d          d{   }| j                   j                  ||d         S 7 #w)a  
        Asynchronously streams EsimProfileInstance 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 eid: List the eSIM Profiles that have been associated with an EId.
        :param str sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
        :param &quot;EsimProfileInstance.Status&quot; status: List the eSIM Profiles that are in a given status.
        :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   )rH   r   
page_asyncstream_asyncr   s           r)   r   zEsimProfileList.stream_async  sf     4 **5)<__WVvk?R % 
 
 }}))$w@@	
s   8A A$A c                     | j                   j                  ||      }| j                  ||||d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a`  
        Streams EsimProfileInstance and returns headers from first page


        :param str eid: List the eSIM Profiles that have been associated with an EId.
        :param str sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
        :param &quot;EsimProfileInstance.Status&quot; status: List the eSIM Profiles that are in a given status.
        :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   )rH   r   page_with_http_infor   r   r   ry   	rB   r3   r1   r2   r   r   r   page_response	generators	            r)   stream_with_http_infoz%EsimProfileList.stream_with_http_info  sx    0 **5)<00WVvk?R 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)ao  
        Asynchronously streams EsimProfileInstance and returns headers from first page


        :param str eid: List the eSIM Profiles that have been associated with an EId.
        :param str sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
        :param &quot;EsimProfileInstance.Status&quot; status: List the eSIM Profiles that are in a given status.
        :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   )rH   r   page_with_http_info_asyncr   r   r   ry   r   s	            r)   stream_with_http_info_asyncz+EsimProfileList.stream_with_http_info_async,  s     0 **5)<"<<WVvk?R = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   8BBABc           	      @    t        | j                  |||||            S )a  
        Lists EsimProfileInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str eid: List the eSIM Profiles that have been associated with an EId.
        :param str sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
        :param &quot;EsimProfileInstance.Status&quot; status: List the eSIM Profiles that are in a given status.
        :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
        r3   r1   r2   r   r   )listr   )rB   r3   r1   r2   r   r   s         r)   r   zEsimProfileList.listL  s1    2 KK#  
 	
r(   c                    K   | j                  |||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists EsimProfileInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str eid: List the eSIM Profiles that have been associated with an EId.
        :param str sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
        :param &quot;EsimProfileInstance.Status&quot; status: List the eSIM Profiles that are in a given status.
        :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   )rB   r3   r1   r2   r   r   records          r)   
list_asynczEsimProfileList.list_asynco  s]     6 '+&7&7# '8 ' !	
 	
 !	
 	
 		
 	
s0   >1>953
59>59>c                 h    | j                  |||||      \  }}}t        |      }	t        |	||      S )aK  
        Lists EsimProfileInstance and returns headers from first page


        :param str eid: List the eSIM Profiles that have been associated with an EId.
        :param str sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
        :param &quot;EsimProfileInstance.Status&quot; status: List the eSIM Profiles that are in a given status.
        :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   )
rB   r3   r1   r2   r   r   r   r   ry   rf   s
             r)   list_with_http_infoz#EsimProfileList.list_with_http_info  sJ    0 +/*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)aZ  
        Asynchronously lists EsimProfileInstance and returns headers from first page


        :param str eid: List the eSIM Profiles that have been associated with an EId.
        :param str sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
        :param &quot;EsimProfileInstance.Status&quot; status: List the eSIM Profiles that are in a given status.
        :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   )rB   r3   r1   r2   r   r   r   r   ry   r   rf   s              r)   list_with_http_info_asyncz)EsimProfileList.list_with_http_info_async  so     0 150P0P 1Q 1
 +
'	; -666&+
 7666;PPs4   A7A=;9
;=A;=A
page_tokenpage_numberc           	          t        j                  ||||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }	t        | j                  |	      S )a  
        Retrieve a single page of EsimProfileInstance records from the API.
        Request is executed immediately

        :param eid: List the eSIM Profiles that have been associated with an EId.
        :param sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
        :param status: List the eSIM Profiles that are in a given status.
        :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 EsimProfileInstance
        r   SimSidr*   	PageTokenr   PageSizer   r   rs   rt   ru   rw   rx   paramsry   )r   rz   rH   r   rq   r   
rB   r3   r1   r2   r   r   r   r   ry   responses
             r)   r   zEsimProfileList.page  s    , yy! '#%	
 ))^-PQR.==%%diig & 
 t}}h77r(   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 EsimProfileInstance records from the API.
        Request is executed immediately

        :param eid: List the eSIM Profiles that have been associated with an EId.
        :param sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
        :param status: List the eSIM Profiles that are in a given status.
        :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 EsimProfileInstance
        r   r   r   rs   rt   ru   r   N)r   rz   rH   r   rq   r   r   s
             r)   r   zEsimProfileList.page_async  s     , yy! '#%	
 ))^-PQR.11diig 2 
 
 t}}h77
s   A%B'B(Bc           	         t        j                  ||||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }	}
}t        | j                  |	      }t        ||
|      S )	a  
        Retrieve a single page with response metadata


        :param eid: List the eSIM Profiles that have been associated with an EId.
        :param sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
        :param status: List the eSIM Profiles that are in a given status.
        :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 EsimProfilePage, status code, and headers
        r   r   r   rs   rt   ru   r   r   )r   rz   rH   page_with_response_inforq   r   r   rB   r3   r1   r2   r   r   r   r   ry   r   r   response_headersr   s                r)   r   z#EsimProfileList.page_with_http_info+  s    , yy! '#%	
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ t}}h7+GWXXr(   c           	      0  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 eid: List the eSIM Profiles that have been associated with an EId.
        :param sim_sid: Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records.
        :param status: List the eSIM Profiles that are in a given status.
        :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 EsimProfilePage, status code, and headers
        r   r   r   rs   rt   ru   r   Nr   )r   rz   rH   page_with_response_info_asyncrq   r   r   r   s                r)   r   z)EsimProfileList.page_with_http_info_asyncV  s     , yy! '#%	
 ))^-PQR. --==$))D' >   	0+/
 t}}h7+GWXXs   A%B'B(-B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )z
        Retrieve a specific page of EsimProfileInstance records from the API.
        Request is executed immediately

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

        :returns: Page of EsimProfileInstance
        ru   )rH   domaintwiliorequestr   rB   r   r   s      r)   get_pagezEsimProfileList.get_page  s7     ==''..66ujIt}}h77r(   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a
  
        Asynchronously retrieve a specific page of EsimProfileInstance records from the API.
        Request is executed immediately

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

        :returns: Page of EsimProfileInstance
        ru   N)rH   r   r   request_asyncr   r   s      r)   get_page_asynczEsimProfileList.get_page_async  sD      --44BB5*UUt}}h77 Vs   4AAAr-   c                 0    t        | j                  |      S zu
        Constructs a EsimProfileContext

        :param sid: The SID of the eSIM Profile resource to fetch.
        rF   rG   rH   rB   r-   s     r)   r>   zEsimProfileList.get       "$--S99r(   c                 0    t        | j                  |      S r   r   r   s     r)   __call__zEsimProfileList.__call__  r   r(   c                      y)rW   z$<Twilio.Supersim.V1.EsimProfileList>r'   rI   s    r)   ri   zEsimProfileList.__repr__  r   r(   )-r   r   r    r   r=   r   unsetr   rk   rj   boolr   r   r   r   r   r   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rG   r>   r   ri   rm   rn   s   @r)   r   r     sT
   	$ 	$ ,2<<.4ll4:LL"(,,
CK(
 sF{+
 $D&L1	

 3;
 

D ,2<<.4ll4:LL"(,,;CK(; sF{+; $D&L1	;
 3;; 
;6 ,2<<.4ll4:LL"(,,TCK(T sF{+T $D&L1	T
 3;T 
T8 ,2<<.4ll4:LL"(,,
CK(
 sF{+
 $D&L1	

 3;
 

D ,2<<.4ll4:LL"(,,;CK(; sF{+; $D&L1	;
 3;; 
;6 ,2<<.4ll4:LL"(,,TCK(T sF{+T $D&L1	T
 3;T 
T8 #),,&,ll>Dll##';3;; sF{#; 2F:;	;
 }; C=; 
%	&;F #),,&,ll>Dll##'A3;A sF{#A 2F:;	A
 }A C=A 
*	+AF #),,&,ll>Dll##'M3;M sF{#M 2F:;	M
 }M C=M 
MD #),,&,ll>Dll##'M3;M sF{#M 2F:;	M
 }M C=M 
MD #),,&,ll>Dll##'!
3;!
 sF{#!
 2F:;	!

 }!
 C=!
 
!	"!
J #),,&,ll>Dll##'"
3;"
 sF{#"
 2F:;	"

 }"
 C="
 
!	""
L #),,&,ll>Dll##' Q3; Q sF{# Q 2F:;	 Q
 } Q C= Q 
 QH #),,&,ll>Dll##' Q3; Q sF{# Q 2F:;	 Q
 } Q C= Q 
 QH #),,&,ll>Dll)/*0,,(.(83;(8 sF{#(8 2F:;	(8
 #v+&(8 3;'(8 f%(8 
(8X #),,&,ll>Dll)/*0,,(.(83;(8 sF{#(8 2F:;	(8
 #v+&(8 3;'(8 f%(8 
(8X #),,&,ll>Dll)/*0,,(.)Y3;)Y sF{#)Y 2F:;	)Y
 #v+&)Y 3;')Y f%)Y 
)YZ #),,&,ll>Dll)/*0,,(.+Y3;+Y sF{#+Y 2F:;	+Y
 #v+&+Y 3;'+Y f%+Y 
+YZ
83 
8? 
8
8s 
8 
8:s :1 ::C :$6 :6# 6r(   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rG   r   r   r'   r(   r)   <module>r     sm     L L L 6 6 0 8 : 2 ' !rM* rMjrL rLj6d 6&Z
6l Z
6r(   