
    d{iG                         d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
mZmZ ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ  G d de      Z G d de      Z G d de      Z G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - 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)InstanceContext)InstanceResource)ListResource)Version)Pagec                        e Zd Z G d de      Z G d de      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 )IpCommandInstancec                       e Zd ZdZdZy)IpCommandInstance.Directionto_simfrom_simN)__name__
__module____qualname__TO_SIMFROM_SIM     `/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/supersim/v1/ip_command.py	Directionr      s    r   r!   c                       e Zd ZdZdZy)IpCommandInstance.PayloadTypetextbinaryN)r   r   r   TEXTBINARYr   r   r    PayloadTyper#       s    r   r(   c                       e Zd ZdZdZdZdZy)IpCommandInstance.StatusqueuedsentreceivedfailedN)r   r   r   QUEUEDSENTRECEIVEDFAILEDr   r   r    Statusr*   $   s    r   r3   versionpayloadsidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        t        j                  |j                  d            | _        |j                  d	      | _        |j                  d
      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _        |j                  d      | _        d|xs | j                  i| _        d | _        y )Nr6   account_sidsim_sid	sim_iccidstatus	direction	device_ipdevice_portpayload_typer5   date_createddate_updatedurl)super__init__getr6   r8   r9   r:   r;   r<   r=   r   integerr>   r?   r5   iso8601_datetimer@   rA   rB   	_solution_context)selfr4   r5   r6   	__class__s       r    rD   zIpCommandInstance.__init__:   sF    	!")++e"4*1++m*D&-kk)&<(/K(@<CKK<QBI++C
 )0K(@*5*=*=KK&+
 HO{{H
 '.kk)&<0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 59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: IpCommandContext for this IpCommandInstance
        r6   r6   )rI   IpCommandContext_versionrH   rJ   s    r    _proxyzIpCommandInstance._proxy\   s9     == ,NN5)DM }}r   c                 6    | j                   j                         S )_
        Fetch the IpCommandInstance


        :returns: The fetched IpCommandInstance
        )rR   fetchrQ   s    r    rU   zIpCommandInstance.fetchk   s     {{  ""r   c                 R   K   | j                   j                          d{   S 7 w)y
        Asynchronous coroutine to fetch the IpCommandInstance


        :returns: The fetched IpCommandInstance
        N)rR   fetch_asyncrQ   s    r    rX   zIpCommandInstance.fetch_asynct   s!      [[,,....   '%'c                 6    | j                   j                         S )z
        Fetch the IpCommandInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )rR   fetch_with_http_inforQ   s    r    r[   z&IpCommandInstance.fetch_with_http_info}   s     {{//11r   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the IpCommandInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)rR   fetch_with_http_info_asyncrQ   s    r    r]   z,IpCommandInstance.fetch_with_http_info_async   s!      [[;;====rY   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-IpCommandInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z)<Twilio.Supersim.V1.IpCommandInstance {}>joinrH   itemsrd   rJ   contexts     r    __repr__zIpCommandInstance.__repr__   s6     ((SDNN<P<P<RSS:AA'JJr   )N)rL   rO   )rL   r   )r   r   r   objectr!   r(   r3   r   r   strr   r   rD   propertyrR   rU   rX   r   r[   r]   rq   __classcell__rK   s   @r    r   r      s    F f  " OS 9 9)-c3h 9>Fsm 9D  #/2k 2>+ >K# K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 )rO   r4   r6   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the IpCommandContext

        :param version: Version that contains the resource
        :param sid: The SID of the IP Command resource to fetch.
        r6   z/IpCommands/{sid}Nr   )rC   rD   rH   rd   _uri)rJ   r4   r6   rK   s      r    rD   zIpCommandContext.__init__   s@     	! 3
 /'..@@	r   rL   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   ofrP   fetch_with_response_infory   rJ   r   s     r    _fetchzIpCommandContext._fetch   sB     ))B-.}}55dii 6 
 	
r   c                 t    | j                         \  }}}t        | j                  || j                  d         S )rT   r6   rN   )r   r   rP   rH   rJ   r5   _s      r    rU   zIpCommandContext.fetch   s8     A MMu%
 	
r   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the IpCommandInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r6   rN   datastatus_coder   )r   r   rP   rH   r   rJ   r5   r   r   instances        r    r[   z%IpCommandContext.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)
        r{   r|   r}   r~   N)r   r   rP   fetch_with_response_info_asyncry   r   s     r    _fetch_asynczIpCommandContext._fetch_async   sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)rW   Nr6   rN   )r   r   rP   rH   r   s      r    rX   zIpCommandContext.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 IpCommandInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr6   rN   r   )r   r   rP   rH   r   r   s        r    r]   z+IpCommandContext.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 )r_   r`   c              3   F   K   | ]  \  }}d j                  ||        ywrb   rc   re   s      r    ri   z,IpCommandContext.__repr__.<locals>.<genexpr>
  rj   rk   z(<Twilio.Supersim.V1.IpCommandContext {}>rl   ro   s     r    rq   zIpCommandContext.__repr__  s6     ((SDNN<P<P<RSS9@@IIr   )r   r   r   r   rs   rD   tupler   r   rU   r   r[   r   rX   r]   rq   ru   rv   s   @r    rO   rO      su    A Ac A
 
 
( 
Tk T
E 
 
#4 
T+ TJ# Jr   rO   c                   2    e Zd Zdeeef   defdZdefdZy)IpCommandPager5   rL   c                 .    t        | j                  |      S )zo
        Build an instance of IpCommandInstance

        :param payload: Payload response from the API
        )r   rP   )rJ   r5   s     r    get_instancezIpCommandPage.get_instance  s     !88r   c                      y)r_   z"<Twilio.Supersim.V1.IpCommandPage>r   rQ   s    r    rq   zIpCommandPage.__repr__       4r   N)	r   r   r   r   rs   r   r   r   rq   r   r   r    r   r     s*    9DcN 97H 94# 4r   r   c                       e Zd Zdef fdZej                  ej                  ej                  fdededede	d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dedede	d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dedede	d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dedede	d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dedede	d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dedede	d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                  ddfde	ee
f   de	ee
f   de	d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                  ddfde	ee
f   de	ee
f   de	d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                  ddfde	ee
f   de	ee
f   de	d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                  ddfde	ee
f   de	ee
f   de	d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                  ddfde	ee
f   de	ee
f   de	d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                  ddfde	ee
f   de	ee
f   de	d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                  ddfde	ee
f   de	ee
f   de	d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                  ddfde	ee
f   de	ee
f   de	d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                  ej                  fde	ee
f   de	ee
f   de	d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                  ej                  fde	ee
f   de	ee
f   de	d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                  ej                  fde	ee
f   de	ee
f   de	d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                  ej                  fde	ee
f   de	ee
f   de	d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 ).IpCommandListr4   c                 2    t         |   |       d| _        y)zk
        Initialize the IpCommandList

        :param version: Version that contains the resource

        z/IpCommandsN)rC   rD   ry   )rJ   r4   rK   s     r    rD   zIpCommandList.__init__#  s     	!!	r   simr5   r>   r?   r#   callback_urlcallback_methodrL   c           	          t        j                  ||||||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        SimPayload
DevicePortr(   CallbackUrlCallbackMethodContent-Type!application/x-www-form-urlencodedr{   r|   POSTr   r   r   r   )r   r   rP   create_with_response_infory   	rJ   r   r5   r>   r?   r   r   r   r   s	            r    _createzIpCommandList._create.  s|      yy")++"1	
 ))^-PQR"E.}}66tyytW 7 
 	
r   c                 d    | j                  ||||||      \  }}}t        | j                  |      S )aR  
        Create the IpCommandInstance

        :param sim: The `sid` or `unique_name` of the [Super SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the IP Command to.
        :param payload: The data that will be sent to the device. The payload cannot exceed 1300 bytes. If the PayloadType is set to text, the payload is encoded in UTF-8. If PayloadType is set to binary, the payload is encoded in Base64.
        :param device_port: The device port to which the IP Command will be sent.
        :param payload_type:
        :param callback_url: The URL we should call using the `callback_method` after we have sent the IP Command.
        :param callback_method: The HTTP method we should use to call `callback_url`. Can be `GET` or `POST`, and the default is `POST`.

        :returns: The created IpCommandInstance
        r   r5   r>   r?   r   r   )r   r   rP   rJ   r   r5   r>   r?   r   r   r   s           r    createzIpCommandList.createR  sB    * #%%+ % 
A !88r   c                     | j                  ||||||      \  }}}t        | j                  |      }	t        |	||      S )a  
        Create the IpCommandInstance and return response metadata

        :param sim: The `sid` or `unique_name` of the [Super SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the IP Command to.
        :param payload: The data that will be sent to the device. The payload cannot exceed 1300 bytes. If the PayloadType is set to text, the payload is encoded in UTF-8. If PayloadType is set to binary, the payload is encoded in Base64.
        :param device_port: The device port to which the IP Command will be sent.
        :param payload_type:
        :param callback_url: The URL we should call using the `callback_method` after we have sent the IP Command.
        :param callback_method: The HTTP method we should use to call `callback_url`. Can be `GET` or `POST`, and the default is `POST`.

        :returns: ApiResponse with instance, status code, and headers
        r   r   )r   r   rP   r   
rJ   r   r5   r>   r?   r   r   r   r   r   s
             r    create_with_http_infoz#IpCommandList.create_with_http_infoq  sQ    * )-#%%+ )5 )
%g %T]]G<k7SSr   c           	         K   t        j                  ||||||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r{   r|   r   r   N)r   r   rP   create_with_response_info_asyncry   r   s	            r    _create_asynczIpCommandList._create_async  s       yy")++"1	
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A*A3,A1-A3c                    K   | j                  ||||||       d{   \  }}}t        | j                  |      S 7 w)aa  
        Asynchronously create the IpCommandInstance

        :param sim: The `sid` or `unique_name` of the [Super SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the IP Command to.
        :param payload: The data that will be sent to the device. The payload cannot exceed 1300 bytes. If the PayloadType is set to text, the payload is encoded in UTF-8. If PayloadType is set to binary, the payload is encoded in Base64.
        :param device_port: The device port to which the IP Command will be sent.
        :param payload_type:
        :param callback_url: The URL we should call using the `callback_method` after we have sent the IP Command.
        :param callback_method: The HTTP method we should use to call `callback_url`. Can be `GET` or `POST`, and the default is `POST`.

        :returns: The created IpCommandInstance
        r   N)r   r   rP   r   s           r    create_asynczIpCommandList.create_async  sR     * #00#%%+ 1 
 
A !88
s   ><>c                    K   | j                  ||||||       d{   \  }}}t        | j                  |      }	t        |	||      S 7 ,w)a  
        Asynchronously create the IpCommandInstance and return response metadata

        :param sim: The `sid` or `unique_name` of the [Super SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the IP Command to.
        :param payload: The data that will be sent to the device. The payload cannot exceed 1300 bytes. If the PayloadType is set to text, the payload is encoded in UTF-8. If PayloadType is set to binary, the payload is encoded in Base64.
        :param device_port: The device port to which the IP Command will be sent.
        :param payload_type:
        :param callback_url: The URL we should call using the `callback_method` after we have sent the IP Command.
        :param callback_method: The HTTP method we should use to call `callback_url`. Can be `GET` or `POST`, and the default is `POST`.

        :returns: ApiResponse with instance, status code, and headers
        r   Nr   )r   r   rP   r   r   s
             r    create_with_http_info_asyncz)IpCommandList.create_with_http_info_async  sb     * /3.@.@#%%+ /A /
 )
%g %T]]G<k7SS)
s   AA
-ANr:   r;   r*   r<   r   limit	page_sizec                     | j                   j                  ||      }| j                  |||||d         }| j                   j                  ||d         S )aJ  
        Streams IpCommandInstance 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: The SID or unique name of the Sim resource that IP Command was sent to or from.
        :param str sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
        :param &quot;IpCommandInstance.Status&quot; status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
        :param &quot;IpCommandInstance.Direction&quot; direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
        :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;   r<   r   r   )rP   read_limitspagestream	rJ   r   r:   r;   r<   r   r   limitsr   s	            r    r   zIpCommandList.stream  s^    8 **5)<yy[)  
 }}##D&/::r   c                    K   | j                   j                  ||      }| j                  |||||d          d{   }| j                   j                  ||d         S 7 #w)aY  
        Asynchronously streams IpCommandInstance 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: The SID or unique name of the Sim resource that IP Command was sent to or from.
        :param str sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
        :param &quot;IpCommandInstance.Status&quot; status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
        :param &quot;IpCommandInstance.Direction&quot; direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
        :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   )rP   r   
page_asyncstream_asyncr   s	            r    r   zIpCommandList.stream_async  sl     8 **5)<__[) % 
 
 }}))$w@@
s   9A!A$A!c                     | j                   j                  ||      }| j                  |||||d         }| j                   j                  |j                  |d         }	|	|j
                  |j                  fS )a  
        Streams IpCommandInstance and returns headers from first page


        :param str sim: The SID or unique name of the Sim resource that IP Command was sent to or from.
        :param str sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
        :param &quot;IpCommandInstance.Status&quot; status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
        :param &quot;IpCommandInstance.Direction&quot; direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
        :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   )rP   r   page_with_http_infor   r   r   r   
rJ   r   r:   r;   r<   r   r   r   page_response	generators
             r    stream_with_http_infoz#IpCommandList.stream_with_http_infoB  s~    4 **5)<00[) 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 IpCommandInstance and returns headers from first page


        :param str sim: The SID or unique name of the Sim resource that IP Command was sent to or from.
        :param str sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
        :param &quot;IpCommandInstance.Status&quot; status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
        :param &quot;IpCommandInstance.Direction&quot; direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
        :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   )rP   r   page_with_http_info_asyncr   r   r   r   r   s
             r    stream_with_http_info_asyncz)IpCommandList.stream_with_http_info_asynch  s     4 **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   9BBABc           
      B    t        | j                  ||||||            S )a  
        Lists IpCommandInstance 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: The SID or unique name of the Sim resource that IP Command was sent to or from.
        :param str sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
        :param &quot;IpCommandInstance.Status&quot; status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
        :param &quot;IpCommandInstance.Direction&quot; direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
        :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:   r;   r<   r   r   )listr   )rJ   r   r:   r;   r<   r   r   s          r    r   zIpCommandList.list  s4    6 KK###  	
 		
r   c                    K   | j                  ||||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists IpCommandInstance 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: The SID or unique name of the Sim resource that IP Command was sent to or from.
        :param str sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
        :param &quot;IpCommandInstance.Status&quot; status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
        :param &quot;IpCommandInstance.Direction&quot; direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
        :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   )rJ   r   r:   r;   r<   r   r   records           r    
list_asynczIpCommandList.list_async  s`     : '+&7&7### '8 ' !

 

 !

 

 
	
 

s0   ?2?:64
6:?6:?c                 j    | j                  ||||||      \  }}}	t        |      }
t        |
||	      S )a  
        Lists IpCommandInstance and returns headers from first page


        :param str sim: The SID or unique name of the Sim resource that IP Command was sent to or from.
        :param str sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
        :param &quot;IpCommandInstance.Status&quot; status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
        :param &quot;IpCommandInstance.Direction&quot; direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
        :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   )rJ   r   r:   r;   r<   r   r   r   r   r   rn   s              r    list_with_http_infoz!IpCommandList.list_with_http_info  sM    4 +/*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 IpCommandInstance and returns headers from first page


        :param str sim: The SID or unique name of the Sim resource that IP Command was sent to or from.
        :param str sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
        :param &quot;IpCommandInstance.Status&quot; status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
        :param &quot;IpCommandInstance.Direction&quot; direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
        :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   )rJ   r   r:   r;   r<   r   r   r   r   r   r   rn   s               r    list_with_http_info_asyncz'IpCommandList.list_with_http_info_async   sr     4 150P0P 1Q 1
 +
'	; -666&+
 7666;PPs4   A8A><:
<>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 IpCommandInstance records from the API.
        Request is executed immediately

        :param sim: The SID or unique name of the Sim resource that IP Command was sent to or from.
        :param sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
        :param status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
        :param direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
        :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 IpCommandInstance
        r   SimIccidr3   r!   	PageTokenr   PageSizer   r   r{   r|   r}   r   r   paramsr   )r   r   rP   r   ry   r   rJ   r   r:   r;   r<   r   r   r   r   r   responses              r    r   zIpCommandList.page%  s    0 yy% &'#%

 ))^-PQR.==%%diig & 
 T]]H55r   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 IpCommandInstance records from the API.
        Request is executed immediately

        :param sim: The SID or unique name of the Sim resource that IP Command was sent to or from.
        :param sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
        :param status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
        :param direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
        :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 IpCommandInstance
        r   r   r   r{   r|   r}   r   N)r   r   rP   r   ry   r   r   s              r    r   zIpCommandList.page_asyncR  s     0 yy% &'#%

 ))^-PQR.11diig 2 
 
 T]]H55
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 sim: The SID or unique name of the Sim resource that IP Command was sent to or from.
        :param sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
        :param status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
        :param direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
        :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 IpCommandPage, status code, and headers
        r   r   r   r{   r|   r}   r   r   )r   r   rP   page_with_response_infory   r   r   rJ   r   r:   r;   r<   r   r   r   r   r   r   r   response_headersr   s                 r    r   z!IpCommandList.page_with_http_info  s    0 yy% &'#%

 ))^-PQR.26--2W2Wdiig 3X 3
/+/ T]]H5+GWXXr   c           
      2  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: The SID or unique name of the Sim resource that IP Command was sent to or from.
        :param sim_iccid: The ICCID of the Sim resource that IP Command was sent to or from.
        :param status: The status of the IP Command. Can be: `queued`, `sent`, `received` or `failed`. See the [IP Command Status Values](https://www.twilio.com/docs/iot/supersim/api/ipcommand-resource#status-values) for a description of each.
        :param direction: The direction of the IP Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`.
        :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 IpCommandPage, status code, and headers
        r   r   r   r{   r|   r}   r   Nr   )r   r   rP   page_with_response_info_asyncry   r   r   r   s                 r    r   z'IpCommandList.page_with_http_info_async  s     0 yy% &'#%

 ))^-PQR. --==$))D' >   	0+/
 T]]H5+GWXXs   A&B(B)-B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )z
        Retrieve a specific page of IpCommandInstance records from the API.
        Request is executed immediately

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

        :returns: Page of IpCommandInstance
        r}   )rP   domaintwiliorequestr   rJ   r   r   s      r    get_pagezIpCommandList.get_page  s7     ==''..66ujIT]]H55r   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        Asynchronously retrieve a specific page of IpCommandInstance records from the API.
        Request is executed immediately

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

        :returns: Page of IpCommandInstance
        r}   N)rP   r   r   request_asyncr   r   s      r    get_page_asynczIpCommandList.get_page_async  sD      --44BB5*UUT]]H55 Vs   4AAAr6   c                 0    t        | j                  |      S zq
        Constructs a IpCommandContext

        :param sid: The SID of the IP Command resource to fetch.
        rN   rO   rP   rJ   r6   s     r    rE   zIpCommandList.get        377r   c                 0    t        | j                  |      S r   r   r   s     r    __call__zIpCommandList.__call__  r   r   c                      y)r_   z"<Twilio.Supersim.V1.IpCommandList>r   rQ   s    r    rq   zIpCommandList.__repr__  r   r   ),r   r   r   r   rD   r   unsetrs   intr   rr   r   r   r   r   r   r   r   r   r   r   r	   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rO   rE   r   rq   ru   rv   s   @r    r   r   !  s   	" 	"  HN||+1<<.4ll"
"
 "
 	"

 ;VCD"
 CK("
 sF{+"
 
"
R HN||+1<<.4ll99 9 	9
 ;VCD9 CK(9 sF{+9 
9H HN||+1<<.4llTT T 	T
 ;VCDT CK(T sF{+T 
TJ HN||+1<<.4ll"
"
 "
 	"

 ;VCD"
 CK("
 sF{+"
 
"
R HN||+1<<.4ll99 9 	9
 ;VCD9 CK(9 sF{+9 
9H HN||+1<<.4llTT T 	T
 ;VCDT CK(T sF{+T 
TD #),,(.<BLLBH,,##'%;3;%; f%%; 0&89	%;
 6>?%; }%; C=%; 
#	$%;R #),,(.<BLLBH,,##'%A3;%A f%%A 0&89	%A
 6>?%A }%A C=%A 
(	)%AR #),,(.<BLLBH,,##'$M3;$M f%$M 0&89	$M
 6>?$M }$M C=$M 
$MP #),,(.<BLLBH,,##'$M3;$M f%$M 0&89	$M
 6>?$M }$M C=$M 
$MP #),,(.<BLLBH,,##'$
3;$
 f%$
 0&89	$

 6>?$
 }$
 C=$
 
	 $
P #),,(.<BLLBH,,##'%
3;%
 f%%
 0&89	%

 6>?%
 }%
 C=%
 
	 %
R #),,(.<BLLBH,,##'#Q3;#Q f%#Q 0&89	#Q
 6>?#Q }#Q C=#Q 
#QN #),,(.<BLLBH,,##'#Q3;#Q f%#Q 0&89	#Q
 6>?#Q }#Q C=#Q 
#QN #),,(.<BLLBH,,)/*0,,(.+63;+6 f%+6 0&89	+6
 6>?+6 #v+&+6 3;'+6 f%+6 
+6^ #),,(.<BLLBH,,)/*0,,(.+63;+6 f%+6 0&89	+6
 6>?+6 #v+&+6 3;'+6 f%+6 
+6^ #),,(.<BLLBH,,)/*0,,(.,Y3;,Y f%,Y 0&89	,Y
 6>?,Y #v+&,Y 3;',Y f%,Y 
,Y` #),,(.<BLLBH,,)/*0,,(..Y3;.Y f%.Y 0&89	.Y
 6>?.Y #v+&.Y 3;'.Y f%.Y 
.Y`
63 
6= 
6
6s 
6} 
68s 8/ 88C 8$4 84# 4r   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rO   r   r   r   r   r    <module>r     sj     L L L + 0 8 : 2 ' !|K( |K~rJ rJj4D 4&j4L j4r   