
    d{iT                         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 - Preview
    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d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 )CommandInstancez
    :ivar sid:
    :ivar account_sid:
    :ivar device_sid:
    :ivar sim_sid:
    :ivar command:
    :ivar command_mode:
    :ivar status:
    :ivar direction:
    :ivar date_created:
    :ivar date_updated:
    :ivar url:
    versionpayloadsidc                    t         |   |       |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
device_sidsim_sidcommandcommand_modestatus	directiondate_createddate_updatedurl)super__init__getr   r   r   r   r   r   r   r   r   iso8601_datetimer    r!   r"   	_solution_context)selfr   r   r   	__class__s       b/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/preview/wireless/command.pyr$   zCommandInstance.__init__)   s    	!")++e"4*1++m*D)0\)B&-kk)&<&-kk)&<+2;;~+F%,[[%:(/K(@0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 37    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: CommandContext for this CommandInstance
        r   r   )r(   CommandContext_versionr'   r)   s    r+   _proxyzCommandInstance._proxyC   s9     == *NN5)DM }}r,   c                 6    | j                   j                         S )[
        Fetch the CommandInstance


        :returns: The fetched CommandInstance
        )r3   fetchr2   s    r+   r6   zCommandInstance.fetchR   s     {{  ""r,   c                 R   K   | j                   j                          d{   S 7 w)u
        Asynchronous coroutine to fetch the CommandInstance


        :returns: The fetched CommandInstance
        N)r3   fetch_asyncr2   s    r+   r9   zCommandInstance.fetch_async[   s!      [[,,....   '%'c                 6    | j                   j                         S )z
        Fetch the CommandInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r3   fetch_with_http_infor2   s    r+   r<   z$CommandInstance.fetch_with_http_infod   s     {{//11r,   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the CommandInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r3   fetch_with_http_info_asyncr2   s    r+   r>   z*CommandInstance.fetch_with_http_info_asyncm   s!      [[;;====r:   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+CommandInstance.__repr__.<locals>.<genexpr>|        SDAq7>>!Q/S   !z,<Twilio.Preview.Wireless.CommandInstance {}>joinr'   itemsrE   r)   contexts     r+   __repr__zCommandInstance.__repr__v   s6     ((SDNN<P<P<RSS=DDWMMr,   )N)r-   r0   )r-   r   )__name__
__module____qualname____doc__r   r   strr   r   r$   propertyr3   r6   r9   r   r<   r>   rR   __classcell__r*   s   @r+   r   r      s|     OS77)-c3h7>Fsm74  #/2k 2>+ >N# N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 )r0   r   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the CommandContext

        :param version: Version that contains the resource
        :param sid:
        r   z/Commands/{sid}N )r#   r$   r'   rE   _uri)r)   r   r   r*   s      r+   r$   zCommandContext.__init__   s@     	! 3
 -%,,>t~~>	r,   r-   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   ofr1   fetch_with_response_infor^   r)   rf   s     r+   _fetchzCommandContext._fetch   sB     ))B-.}}55dii 6 
 	
r,   c                 t    | j                         \  }}}t        | j                  || j                  d         S )r5   r   r/   )rj   r   r1   r'   r)   r   _s      r+   r6   zCommandContext.fetch   s8     AMMu%
 	
r,   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the CommandInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r/   datastatus_coderf   )rj   r   r1   r'   r   r)   r   rq   rf   instances        r+   r<   z#CommandContext.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`   ra   rb   rc   N)r   rg   r1   fetch_with_response_info_asyncr^   ri   s     r+   _fetch_asynczCommandContext._fetch_async   sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)r8   Nr   r/   )rv   r   r1   r'   rl   s      r+   r9   zCommandContext.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 CommandInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r/   ro   )rv   r   r1   r'   r   rr   s        r+   r>   z)CommandContext.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@   rA   c              3   F   K   | ]  \  }}d j                  ||        ywrC   rD   rF   s      r+   rJ   z*CommandContext.__repr__.<locals>.<genexpr>   rK   rL   z+<Twilio.Preview.Wireless.CommandContext {}>rM   rP   s     r+   rR   zCommandContext.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr,   )rS   rT   rU   r   rW   r$   tuplerj   r   r6   r   r<   rv   r9   r>   rR   rY   rZ   s   @r+   r0   r0      sp    ? ?c ?
 
 
 
Tk T
E 
 
? 
T+ TM# Mr,   r0   c                   2    e Zd Zdeeef   defdZdefdZy)CommandPager   r-   c                 .    t        | j                  |      S )zm
        Build an instance of CommandInstance

        :param payload: Payload response from the API
        )r   r1   )r)   r   s     r+   get_instancezCommandPage.get_instance   s     t}}g66r,   c                      y)r@   z%<Twilio.Preview.Wireless.CommandPage>r]   r2   s    r+   rR   zCommandPage.__repr__        7r,   N)	rS   rT   rU   r   rW   r   r   r   rR   r]   r,   r+   r}   r}      s)    7DcN 7 77# 7r,   r}   c                       e Zd Zdef fdZej                  ej                  ej                  ej                  ej                  ej                  fdedeee	f   deee	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                  ej                  ej                  fdedeee	f   deee	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                  ej                  ej                  fdedeee	f   deee	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                  ej                  ej                  fdedeee	f   deee	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                  ej                  ej                  fdedeee	f   deee	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                  ej                  ej                  fdedeee	f   deee	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                  ddfdeee	f   deee	f   deee	f   dee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ee	f   dee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ee	f   dee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ee	f   dee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ee	f   dee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ee	f   dee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ee	f   dee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ee	f   dee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ee	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                  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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ee	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                  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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 )+CommandListr   c                 2    t         |   |       d| _        y)zi
        Initialize the CommandList

        :param version: Version that contains the resource

        z	/CommandsN)r#   r$   r^   )r)   r   r*   s     r+   r$   zCommandList.__init__
  s     	!	r,   r   devicesimcallback_methodcallback_urlr   include_sidr-   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)
        CommandDeviceSimCallbackMethodCallbackUrlCommandMode
IncludeSidContent-Type!application/x-www-form-urlencodedr`   ra   POSTrd   re   rp   rf   )r   rg   r1   create_with_response_infor^   
r)   r   r   r   r   r   r   r   rp   rf   s
             r+   _createzCommandList._create  s    " yy" "1++)

 ))^-PQR"E.}}66tyytW 7 
 	
r,   c           	      f    | j                  |||||||      \  }}	}	t        | j                  |      S )a  
        Create the CommandInstance

        :param command:
        :param device:
        :param sim:
        :param callback_method:
        :param callback_url:
        :param command_mode:
        :param include_sid:

        :returns: The created CommandInstance
        r   r   r   r   r   r   r   )r   r   r1   
r)   r   r   r   r   r   r   r   r   rm   s
             r+   createzCommandList.create;  sE    . +%%# % 
A t}}g66r,   c           	          | j                  |||||||      \  }}	}
t        | j                  |      }t        ||	|
      S )aJ  
        Create the CommandInstance and return response metadata

        :param command:
        :param device:
        :param sim:
        :param callback_method:
        :param callback_url:
        :param command_mode:
        :param include_sid:

        :returns: ApiResponse with instance, status code, and headers
        r   ro   )r   r   r1   r   r)   r   r   r   r   r   r   r   r   rq   rf   rs   s               r+   create_with_http_infoz!CommandList.create_with_http_info]  sT    . )-+%%# )5 )
%g #4==':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`   ra   r   r   N)r   rg   r1   create_with_response_info_asyncr^   r   s
             r+   _create_asynczCommandList._create_async  s     " yy" "1++)

 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A+A4-A2.A4c           	         K   | j                  |||||||       d{   \  }}	}	t        | j                  |      S 7 w)a$  
        Asynchronously create the CommandInstance

        :param command:
        :param device:
        :param sim:
        :param callback_method:
        :param callback_url:
        :param command_mode:
        :param include_sid:

        :returns: The created CommandInstance
        r   N)r   r   r1   r   s
             r+   create_asynczCommandList.create_async  sU     . #00+%%# 1 
 
A t}}g66
s   ?=?c           	         K   | j                  |||||||       d{   \  }}	}
t        | j                  |      }t        ||	|
      S 7 ,w)aY  
        Asynchronously create the CommandInstance and return response metadata

        :param command:
        :param device:
        :param sim:
        :param callback_method:
        :param callback_url:
        :param command_mode:
        :param include_sid:

        :returns: ApiResponse with instance, status code, and headers
        r   Nro   )r   r   r1   r   r   s               r+   create_with_http_info_asyncz'CommandList.create_with_http_info_async  se     . /3.@.@+%%# /A /
 )
%g #4==':k7SS)
s   AA-ANr   r   limit	page_sizec                     | j                   j                  ||      }| j                  |||||d         }| j                   j                  ||d         S )a  
        Streams CommandInstance 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 device:
        :param str sim:
        :param str status:
        :param str direction:
        :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   )r1   read_limitspagestream	r)   r   r   r   r   r   r   limitsr   s	            r+   r   zCommandList.stream  s^    8 **5)<yy[)  
 }}##D&/::r,   c                    K   | j                   j                  ||      }| j                  |||||d          d{   }| j                   j                  ||d         S 7 #w)a  
        Asynchronously streams CommandInstance 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 device:
        :param str sim:
        :param str status:
        :param str direction:
        :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   )r1   r   
page_asyncstream_asyncr   s	            r+   r   zCommandList.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 CommandInstance and returns headers from first page


        :param str device:
        :param str sim:
        :param str status:
        :param str direction:
        :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   )r1   r   page_with_http_infor   rp   rq   rf   
r)   r   r   r   r   r   r   r   page_response	generators
             r+   stream_with_http_infoz!CommandList.stream_with_http_info9  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 CommandInstance and returns headers from first page


        :param str device:
        :param str sim:
        :param str status:
        :param str direction:
        :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   )r1   r   page_with_http_info_asyncr   rp   rq   rf   r   s
             r+   stream_with_http_info_asyncz'CommandList.stream_with_http_info_async_  s     4 **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   9BBABc           
      B    t        | j                  ||||||            S )af  
        Lists CommandInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str device:
        :param str sim:
        :param str status:
        :param str direction:
        :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   )r)   r   r   r   r   r   r   s          r+   r   zCommandList.list  s4    6 KK##  	
 		
r,   c                    K   | j                  ||||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)au  
        Asynchronously lists CommandInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str device:
        :param str sim:
        :param str status:
        :param str direction:
        :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   r   r   r   r   r   records           r+   
list_asynczCommandList.list_async  s`     : '+&7&7## '8 ' !

 

 !

 

 
	
 

s0   ?2?:64
6:?6:?c                 j    | j                  ||||||      \  }}}	t        |      }
t        |
||	      S )a  
        Lists CommandInstance and returns headers from first page


        :param str device:
        :param str sim:
        :param str status:
        :param str direction:
        :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   ro   )r   r   r   )r)   r   r   r   r   r   r   r   rq   rf   rO   s              r+   list_with_http_infozCommandList.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 CommandInstance and returns headers from first page


        :param str device:
        :param str sim:
        :param str status:
        :param str direction:
        :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   Nro   )r   r   )r)   r   r   r   r   r   r   r   rq   rf   r   rO   s               r+   list_with_http_info_asyncz%CommandList.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 CommandInstance records from the API.
        Request is executed immediately

        :param device:
        :param sim:
        :param status:
        :param direction:
        :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 CommandInstance
        r   r   Status	Direction	PageTokenr   PageSizer   r   r`   ra   rb   rd   re   paramsrf   )r   rg   r1   r   r^   r}   r)   r   r   r   r   r   r   r   rp   rf   responses              r+   r   zCommandList.page  s    0 yy  &'#%

 ))^-PQR.==%%diig & 
 4==(33r,   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 CommandInstance records from the API.
        Request is executed immediately

        :param device:
        :param sim:
        :param status:
        :param direction:
        :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 CommandInstance
        r   r   r   r`   ra   rb   r   N)r   rg   r1   r   r^   r}   r   s              r+   r   zCommandList.page_asyncI  s     0 yy  &'#%

 ))^-PQR.11diig 2 
 
 4==(33
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 device:
        :param sim:
        :param status:
        :param direction:
        :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 CommandPage, status code, and headers
        r   r   r   r`   ra   rb   r   ro   )r   rg   r1   page_with_response_infor^   r}   r   r)   r   r   r   r   r   r   r   rp   rf   r   rq   response_headersr   s                 r+   r   zCommandList.page_with_http_infov  s    0 yy  &'#%

 ))^-PQR.26--2W2Wdiig 3X 3
/+/ 4==(3+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 device:
        :param sim:
        :param status:
        :param direction:
        :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 CommandPage, status code, and headers
        r   r   r   r`   ra   rb   r   Nro   )r   rg   r1   page_with_response_info_asyncr^   r}   r   r   s                 r+   r   z%CommandList.page_with_http_info_async  s     0 yy  &'#%

 ))^-PQR. --==$))D' >   	0+/
 4==(3+GWXXs   A&B(B)-B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )z
        Retrieve a specific page of CommandInstance records from the API.
        Request is executed immediately

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

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

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

        :returns: Page of CommandInstance
        rb   N)r1   r   r   request_asyncr}   r   s      r+   get_page_asynczCommandList.get_page_async  sD      --44BB5*UU4==(33 Vs   4AAAr   c                 0    t        | j                  |      S zB
        Constructs a CommandContext

        :param sid:
        r/   r0   r1   r)   r   s     r+   r%   zCommandList.get       dmm55r,   c                 0    t        | j                  |      S r   r   r   s     r+   __call__zCommandList.__call__  r   r,   c                      y)r@   z%<Twilio.Preview.Wireless.CommandList>r]   r2   s    r+   rR   zCommandList.__repr__  r   r,   ),rS   rT   rU   r   r$   r   unsetrW   r   objectr{   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   r0   r%   r   rR   rY   rZ   s   @r+   r   r     s   	  	  &,\\"(,,.4ll+1<<+1<<*0,,$
$
 c6k"$
 3;	$

 sF{+$
 CK($
 CK($
 3;'$
 
$
R &,\\"(,,.4ll+1<<+1<<*0,, 7 7 c6k" 7 3;	 7
 sF{+ 7 CK( 7 CK( 7 3;' 7 
 7J &,\\"(,,.4ll+1<<+1<<*0,,!T!T c6k"!T 3;	!T
 sF{+!T CK(!T CK(!T 3;'!T 
!TL &,\\"(,,.4ll+1<<+1<<*0,,$
$
 c6k"$
 3;	$

 sF{+$
 CK($
 CK($
 3;'$
 
$
R &,\\"(,,.4ll+1<<+1<<*0,, 7 7 c6k" 7 3;	 7
 sF{+ 7 CK( 7 CK( 7 3;' 7 
 7J &,\\"(,,.4ll+1<<+1<<*0,,!T!T c6k"!T 3;	!T
 sF{+!T CK(!T CK(!T 3;'!T 
!TJ &,\\"(,,%+\\(.##'%;c6k"%; 3;%; c6k"	%;
 f%%; }%; C=%; 
/	"%;R &,\\"(,,%+\\(.##'%Ac6k"%A 3;%A c6k"	%A
 f%%A }%A C=%A 
	'%AR &,\\"(,,%+\\(.##'$Mc6k"$M 3;$M c6k"	$M
 f%$M }$M C=$M 
$MP &,\\"(,,%+\\(.##'$Mc6k"$M 3;$M c6k"	$M
 f%$M }$M C=$M 
$MP &,\\"(,,%+\\(.##'$
c6k"$
 3;$
 c6k"	$

 f%$
 }$
 C=$
 
o	$
P &,\\"(,,%+\\(.##'%
c6k"%
 3;%
 c6k"	%

 f%%
 }%
 C=%
 
o	%
R &,\\"(,,%+\\(.##'#Qc6k"#Q 3;#Q c6k"	#Q
 f%#Q }#Q C=#Q 
#QN &,\\"(,,%+\\(.##'#Qc6k"#Q 3;#Q c6k"	#Q
 f%#Q }#Q C=#Q 
#QN &,\\"(,,%+\\(.)/*0,,(.+4c6k"+4 3;+4 c6k"	+4
 f%+4 #v+&+4 3;'+4 f%+4 
+4^ &,\\"(,,%+\\(.)/*0,,(.+4c6k"+4 3;+4 c6k"	+4
 f%+4 #v+&+4 3;'+4 f%+4 
+4^ &,\\"(,,%+\\(.)/*0,,(.,Yc6k",Y 3;,Y c6k"	,Y
 f%,Y #v+&,Y 3;',Y f%,Y 
,Y` &,\\"(,,%+\\(.)/*0,,(..Yc6k".Y 3;.Y c6k"	.Y
 f%.Y #v+&.Y 3;'.Y f%.Y 
.Y`
43 
4; 
4
4s 
4{ 
46s 6~ 66C 6N 67# 7r,   r   N)rV   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   r0   r}   r   r]   r,   r+   <module>r      sj     L L L + 0 8 : 2 ' !cN& cNLrM_ rMj7$ 7&z7, z7r,   