
    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 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	 	 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 )SmsCommandInstancec                       e Zd ZdZdZy)SmsCommandInstance.Directionto_simfrom_simN)__name__
__module____qualname__TO_SIMFROM_SIM     a/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/supersim/v1/sms_command.py	Directionr      s    r   r!   c                        e Zd ZdZdZdZdZdZy)SmsCommandInstance.Statusqueuedsent	deliveredreceivedfailedN)r   r   r   QUEUEDSENT	DELIVEREDRECEIVEDFAILEDr   r   r    Statusr#       s    	r   r.   versionpayloadsidc                 8   t         |   |       |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 )
Nr1   account_sidsim_sidr0   status	directiondate_createddate_updatedurl)super__init__getr1   r3   r4   r0   r5   r6   r   iso8601_datetimer7   r8   r9   	_solution_context)selfr/   r0   r1   	__class__s       r    r;   zSmsCommandInstance.__init__3   s     	!")++e"4*1++m*D&-kk)&<&-kk)&<=D[[=RCJ;;D
 1<0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 6: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: SmsCommandContext for this SmsCommandInstance
        r1   r1   )r?   SmsCommandContext_versionr>   r@   s    r    _proxyzSmsCommandInstance._proxyM   s9     == -NN5)DM }}r   c                 6    | j                   j                         S )a
        Fetch the SmsCommandInstance


        :returns: The fetched SmsCommandInstance
        )rH   fetchrG   s    r    rK   zSmsCommandInstance.fetch\   s     {{  ""r   c                 R   K   | j                   j                          d{   S 7 w){
        Asynchronous coroutine to fetch the SmsCommandInstance


        :returns: The fetched SmsCommandInstance
        N)rH   fetch_asyncrG   s    r    rN   zSmsCommandInstance.fetch_asynce   s!      [[,,....   '%'c                 6    | j                   j                         S )z
        Fetch the SmsCommandInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )rH   fetch_with_http_inforG   s    r    rQ   z'SmsCommandInstance.fetch_with_http_infon   s     {{//11r   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the SmsCommandInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)rH   fetch_with_http_info_asyncrG   s    r    rS   z-SmsCommandInstance.fetch_with_http_info_asyncw   s!      [[;;====rO   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.SmsCommandInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z*<Twilio.Supersim.V1.SmsCommandInstance {}>joinr>   itemsrZ   r@   contexts     r    __repr__zSmsCommandInstance.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr   )N)rB   rE   )rB   r   )r   r   r   objectr!   r.   r   r   strr   r   r;   propertyrH   rK   rN   r   rQ   rS   rg   __classcell__rA   s   @r    r   r      s    F  
 OS::)-c3h:>Fsm:4  #/2k 2>+ >L# L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 )rE   r/   r1   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the SmsCommandContext

        :param version: Version that contains the resource
        :param sid: The SID of the SMS Command resource to fetch.
        r1   z/SmsCommands/{sid}Nr   )r:   r;   r>   rZ   _uri)r@   r/   r1   rA   s      r    r;   zSmsCommandContext.__init__   s@     	! 3
 0(//A$..A	r   rB   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   ofrF   fetch_with_response_inforo   r@   rw   s     r    _fetchzSmsCommandContext._fetch   sB     ))B-.}}55dii 6 
 	
r   c                 t    | j                         \  }}}t        | j                  || j                  d         S )rJ   r1   rD   )r{   r   rF   r>   r@   r0   _s      r    rK   zSmsCommandContext.fetch   s8     A!MMu%
 	
r   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the SmsCommandInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r1   rD   datastatus_coderw   )r{   r   rF   r>   r   r@   r0   r   rw   instances        r    rQ   z&SmsCommandContext.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)
        rq   rr   rs   rt   N)r   rx   rF   fetch_with_response_info_asyncro   rz   s     r    _fetch_asynczSmsCommandContext._fetch_async   sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)rM   Nr1   rD   )r   r   rF   r>   r}   s      r    rN   zSmsCommandContext.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 SmsCommandInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr1   rD   r   )r   r   rF   r>   r   r   s        r    rS   z,SmsCommandContext.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 )rU   rV   c              3   F   K   | ]  \  }}d j                  ||        ywrX   rY   r[   s      r    r_   z-SmsCommandContext.__repr__.<locals>.<genexpr>   r`   ra   z)<Twilio.Supersim.V1.SmsCommandContext {}>rb   re   s     r    rg   zSmsCommandContext.__repr__   s6     ((SDNN<P<P<RSS:AA'JJr   )r   r   r   r   ri   r;   tupler{   r   rK   r   rQ   r   rN   rS   rg   rk   rl   s   @r    rE   rE      su    B Bc B
 
 
) 
Tk T
E 
 
#5 
T+ TK# Kr   rE   c                   2    e Zd Zdeeef   defdZdefdZy)SmsCommandPager0   rB   c                 .    t        | j                  |      S )zp
        Build an instance of SmsCommandInstance

        :param payload: Payload response from the API
        )r   rF   )r@   r0   s     r    get_instancezSmsCommandPage.get_instance  s     "$--99r   c                      y)rU   z#<Twilio.Supersim.V1.SmsCommandPage>r   rG   s    r    rg   zSmsCommandPage.__repr__	       5r   N)	r   r   r   r   ri   r   r   r   rg   r   r   r    r   r      s*    :DcN :7I :5# 5r   r   c                   
    e Zd Zdef fdZej                  ej                  fdededeee	f   deee	f   de
f
dZej                  ej                  fdededeee	f   deee	f   def
d	Zej                  ej                  fdededeee	f   deee	f   def
d
Zej                  ej                  fdededeee	f   deee	f   de
f
dZej                  ej                  fdededeee	f   deee	f   def
dZej                  ej                  fdede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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                  dd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                  dd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                  dd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                  dd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                  dd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                  dd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                  dd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                  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                  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                  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                  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 )*SmsCommandListr/   c                 2    t         |   |       d| _        y)zl
        Initialize the SmsCommandList

        :param version: Version that contains the resource

        z/SmsCommandsN)r:   r;   ro   )r@   r/   rA   s     r    r;   zSmsCommandList.__init__  s     	!"	r   simr0   callback_methodcallback_urlrB   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CallbackMethodCallbackUrlContent-Type!application/x-www-form-urlencodedrq   rr   POSTru   rv   r   rw   )r   rx   rF   create_with_response_inforo   r@   r   r0   r   r   r   rw   s          r    _createzSmsCommandList._create  sv     yy""1+	
 ))^-PQR"E.}}66tyytW 7 
 	
r   c                 `    | j                  ||||      \  }}}t        | j                  |      S )a)  
        Create the SmsCommandInstance

        :param sim: The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the SMS Command to.
        :param payload: The message body of the SMS Command.
        :param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST.
        :param callback_url: The URL we should call using the `callback_method` after we have sent the command.

        :returns: The created SmsCommandInstance
        r   r0   r   r   )r   r   rF   r@   r   r0   r   r   r~   s         r    createzSmsCommandList.create?  s<    " +%	 % 
A "$--99r   c                 |    | j                  ||||      \  }}}t        | j                  |      }t        |||      S )a[  
        Create the SmsCommandInstance and return response metadata

        :param sim: The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the SMS Command to.
        :param payload: The message body of the SMS Command.
        :param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST.
        :param callback_url: The URL we should call using the `callback_method` after we have sent the command.

        :returns: ApiResponse with instance, status code, and headers
        r   r   )r   r   rF   r   r@   r   r0   r   r   r   rw   r   s           r    create_with_http_infoz$SmsCommandList.create_with_http_infoX  sK    " )-+%	 )5 )
%g &dmmW=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   rq   rr   r   r   N)r   rx   rF   create_with_response_info_asyncro   r   s          r    _create_asynczSmsCommandList._create_asyncr  s      yy""1+	
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A(A1*A/+A1c                 |   K   | j                  ||||       d{   \  }}}t        | j                  |      S 7 w)a8  
        Asynchronously create the SmsCommandInstance

        :param sim: The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the SMS Command to.
        :param payload: The message body of the SMS Command.
        :param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST.
        :param callback_url: The URL we should call using the `callback_method` after we have sent the command.

        :returns: The created SmsCommandInstance
        r   N)r   r   rF   r   s         r    create_asynczSmsCommandList.create_async  sL     " #00+%	 1 
 
A "$--99
s   <:<c                    K   | j                  ||||       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)aj  
        Asynchronously create the SmsCommandInstance and return response metadata

        :param sim: The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/iot/supersim/api/sim-resource) to send the SMS Command to.
        :param payload: The message body of the SMS Command.
        :param callback_method: The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST.
        :param callback_url: The URL we should call using the `callback_method` after we have sent the command.

        :returns: ApiResponse with instance, status code, and headers
        r   Nr   )r   r   rF   r   r   s           r    create_with_http_info_asyncz*SmsCommandList.create_with_http_info_async  s\     " /3.@.@+%	 /A /
 )
%g &dmmW=k7SS)
s   A
A-A
Nr5   r#   r6   r   limit	page_sizec                     | j                   j                  ||      }| j                  ||||d         }| j                   j                  ||d         S )a  
        Streams SmsCommandInstance 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 SMS Command was sent to or from.
        :param &quot;SmsCommandInstance.Status&quot; status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
        :param &quot;SmsCommandInstance.Direction&quot; direction: The direction of the SMS 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   r5   r6   r   r   )rF   read_limitspagestreamr@   r   r5   r6   r   r   limitsr   s           r    r   zSmsCommandList.stream  sX    4 **5)<yyFi6+CV  
 }}##D&/::r   c                    K   | j                   j                  ||      }| j                  ||||d          d{   }| j                   j                  ||d         S 7 #w)a  
        Asynchronously streams SmsCommandInstance 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 SMS Command was sent to or from.
        :param &quot;SmsCommandInstance.Status&quot; status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
        :param &quot;SmsCommandInstance.Direction&quot; direction: The direction of the SMS 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   )rF   r   
page_asyncstream_asyncr   s           r    r   zSmsCommandList.stream_async  sf     4 **5)<__Fi6+CV % 
 
 }}))$w@@	
s   8A A$A c                     | j                   j                  ||      }| j                  ||||d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )aR  
        Streams SmsCommandInstance and returns headers from first page


        :param str sim: The SID or unique name of the Sim resource that SMS Command was sent to or from.
        :param &quot;SmsCommandInstance.Status&quot; status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
        :param &quot;SmsCommandInstance.Direction&quot; direction: The direction of the SMS 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   )rF   r   page_with_http_infor   r   r   rw   	r@   r   r5   r6   r   r   r   page_response	generators	            r    stream_with_http_infoz$SmsCommandList.stream_with_http_info  sx    0 **5)<00Fi6+CV 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)aa  
        Asynchronously streams SmsCommandInstance and returns headers from first page


        :param str sim: The SID or unique name of the Sim resource that SMS Command was sent to or from.
        :param &quot;SmsCommandInstance.Status&quot; status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
        :param &quot;SmsCommandInstance.Direction&quot; direction: The direction of the SMS 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   )rF   r   page_with_http_info_asyncr   r   r   rw   r   s	            r    stream_with_http_info_asyncz*SmsCommandList.stream_with_http_info_async'  s     0 **5)<"<<Fi6+CV = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   8BBABc           	      @    t        | j                  |||||            S )a  
        Lists SmsCommandInstance 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 SMS Command was sent to or from.
        :param &quot;SmsCommandInstance.Status&quot; status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
        :param &quot;SmsCommandInstance.Direction&quot; direction: The direction of the SMS 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   r5   r6   r   r   )listr   )r@   r   r5   r6   r   r   s         r    r   zSmsCommandList.listG  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 SmsCommandInstance 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 SMS Command was sent to or from.
        :param &quot;SmsCommandInstance.Status&quot; status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
        :param &quot;SmsCommandInstance.Direction&quot; direction: The direction of the SMS 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   )r@   r   r5   r6   r   r   records          r    
list_asynczSmsCommandList.list_asyncj  s]     6 '+&7&7## '8 ' !	
 	
 !	
 	
 		
 	
s0   >1>953
59>59>c                 h    | j                  |||||      \  }}}t        |      }	t        |	||      S )a=  
        Lists SmsCommandInstance and returns headers from first page


        :param str sim: The SID or unique name of the Sim resource that SMS Command was sent to or from.
        :param &quot;SmsCommandInstance.Status&quot; status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
        :param &quot;SmsCommandInstance.Direction&quot; direction: The direction of the SMS 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   )
r@   r   r5   r6   r   r   r   r   rw   rd   s
             r    list_with_http_infoz"SmsCommandList.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)aL  
        Asynchronously lists SmsCommandInstance and returns headers from first page


        :param str sim: The SID or unique name of the Sim resource that SMS Command was sent to or from.
        :param &quot;SmsCommandInstance.Status&quot; status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
        :param &quot;SmsCommandInstance.Direction&quot; direction: The direction of the SMS 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   )r@   r   r5   r6   r   r   r   r   rw   r   rd   s              r    list_with_http_info_asyncz(SmsCommandList.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 SmsCommandInstance records from the API.
        Request is executed immediately

        :param sim: The SID or unique name of the Sim resource that SMS Command was sent to or from.
        :param status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
        :param direction: The direction of the SMS 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 SmsCommandInstance
        r   r.   r!   	PageTokenr   PageSizer   r   rq   rr   rs   ru   rv   paramsrw   )r   rx   rF   r   ro   r   
r@   r   r5   r6   r   r   r   r   rw   responses
             r    r   zSmsCommandList.page  s    , yy &'#%	
 ))^-PQR.==%%diig & 
 dmmX66r   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 SmsCommandInstance records from the API.
        Request is executed immediately

        :param sim: The SID or unique name of the Sim resource that SMS Command was sent to or from.
        :param status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
        :param direction: The direction of the SMS 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 SmsCommandInstance
        r   r   r   rq   rr   rs   r   N)r   rx   rF   r   ro   r   r   s
             r    r   zSmsCommandList.page_async  s     , yy &'#%	
 ))^-PQR.11diig 2 
 
 dmmX66
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 SMS Command was sent to or from.
        :param status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
        :param direction: The direction of the SMS 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 SmsCommandPage, status code, and headers
        r   r   r   rq   rr   rs   r   r   )r   rx   rF   page_with_response_inforo   r   r   r@   r   r5   r6   r   r   r   r   rw   r   r   response_headersr   s                r    r   z"SmsCommandList.page_with_http_info&  s    , yy &'#%	
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ dmmX6+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 sim: The SID or unique name of the Sim resource that SMS Command was sent to or from.
        :param status: The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each.
        :param direction: The direction of the SMS 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 SmsCommandPage, status code, and headers
        r   r   r   rq   rr   rs   r   Nr   )r   rx   rF   page_with_response_info_asyncro   r   r   r   s                r    r   z(SmsCommandList.page_with_http_info_asyncQ  s     , yy &'#%	
 ))^-PQR. --==$))D' >   	0+/
 dmmX6+GWXXs   A%B'B(-B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )z
        Retrieve a specific page of SmsCommandInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SmsCommandInstance
        rs   )rF   domaintwiliorequestr   r@   r   r   s      r    get_pagezSmsCommandList.get_page~  s7     ==''..66ujIdmmX66r   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        Asynchronously retrieve a specific page of SmsCommandInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SmsCommandInstance
        rs   N)rF   r   r   request_asyncr   r   s      r    get_page_asynczSmsCommandList.get_page_async  sD      --44BB5*UUdmmX66 Vs   4AAAr1   c                 0    t        | j                  |      S zs
        Constructs a SmsCommandContext

        :param sid: The SID of the SMS Command resource to fetch.
        rD   rE   rF   r@   r1   s     r    r<   zSmsCommandList.get       !C88r   c                 0    t        | j                  |      S r   r   r   s     r    __call__zSmsCommandList.__call__  r   r   c                      y)rU   z#<Twilio.Supersim.V1.SmsCommandList>r   rG   s    r    rg   zSmsCommandList.__repr__  r   r   ),r   r   r   r   r;   r   unsetri   r   rh   r   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   rE   r<   r   rg   rk   rl   s   @r    r   r     s	   	# 	# /5ll+1<<

 
 sF{+	

 CK(
 

H /5ll+1<<:: : sF{+	:
 CK(: 
:: /5ll+1<<TT T sF{+	T
 CK(T 
T< /5ll+1<<

 
 sF{+	

 CK(
 

H /5ll+1<<:: : sF{+	:
 CK(: 
:: /5ll+1<<TT T sF{+	T
 CK(T 
T8 #),,=C\\CI<<##';3;; 169:; 7?@	;
 }; C=; 
$	%;F #),,=C\\CI<<##'A3;A 169:A 7?@	A
 }A C=A 
)	*AF #),,=C\\CI<<##'M3;M 169:M 7?@	M
 }M C=M 
MD #),,=C\\CI<<##'M3;M 169:M 7?@	M
 }M C=M 
MD #),,=C\\CI<<##'!
3;!
 169:!
 7?@	!

 }!
 C=!
 
 	!!
J #),,=C\\CI<<##'"
3;"
 169:"
 7?@	"

 }"
 C="
 
 	!"
L #),,=C\\CI<<##' Q3; Q 169: Q 7?@	 Q
 } Q C= Q 
 QH #),,=C\\CI<<##' Q3; Q 169: Q 7?@	 Q
 } Q C= Q 
 QH #),,=C\\CI<<)/*0,,(.(73;(7 169:(7 7?@	(7
 #v+&(7 3;'(7 f%(7 
(7X #),,=C\\CI<<)/*0,,(.(73;(7 169:(7 7?@	(7
 #v+&(7 3;'(7 f%(7 
(7X #),,=C\\CI<<)/*0,,(.)Y3;)Y 169:)Y 7?@	)Y
 #v+&)Y 3;')Y f%)Y 
)YZ #),,=C\\CI<<)/*0,,(.+Y3;+Y 169:+Y 7?@	+Y
 #v+&+Y 3;'+Y f%+Y 
+YZ
73 
7> 
7
7s 
7~ 
79s 90 99C 9$5 95# 5r   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   rE   r   r   r   r   r    <module>r     sj     L L L + 0 8 : 2 ' !mL) mL`rK rKj5T 5&Z
5\ Z
5r   