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

    Twilio - Content
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )datetime)AnyDictListOptionalUnionIteratorAsyncIterator)deserialize	serializevalues)ApiResponse)InstanceResource)ListResource)Version)Pagec                   B     e Zd ZdZdedeeef   f fdZdefdZ	 xZ
S )ContentAndApprovalsInstanceaw  
    :ivar date_created: The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    :ivar date_updated: The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    :ivar sid: The unique string that that we created to identify the Content resource.
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource.
    :ivar friendly_name: A string name used to describe the Content resource. Not visible to the end recipient.
    :ivar language: Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in.
    :ivar variables: Defines the default placeholder values for variables included in the Content resource. e.g. {"1": "Customer_Name"}.
    :ivar types: The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
    :ivar approval_requests: The submitted information and approval request status of the Content resource.
    versionpayloadc                    t         |   |       t        j                  |j	                  d            | _        t        j                  |j	                  d            | _        |j	                  d      | _        |j	                  d      | _        |j	                  d      | _	        |j	                  d      | _
        |j	                  d      | _        |j	                  d      | _        |j	                  d	      | _        y )
Ndate_createddate_updatedsidaccount_sidfriendly_namelanguage	variablestypesapproval_requests)super__init__r   iso8601_datetimegetr   r   r   r   r   r   r   r   r    )selfr   r   	__class__s      j/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/content/v2/content_and_approvals.pyr"   z$ContentAndApprovalsInstance.__init__'   s    !0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4*1++m*D,3KK,H'.{{:'>6=kk+6N29++g2F
>Ekk?
    returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z/<Twilio.Content.V2.ContentAndApprovalsInstance> r%   s    r'   __repr__z$ContentAndApprovalsInstance.__repr__:   s     Ar(   )__name__
__module____qualname____doc__r   r   strr   r"   r.   __classcell__r&   s   @r'   r   r      s1    

 
$sCx. 
&A# Ar(   r   c                   2    e Zd Zdeeef   defdZdefdZy)ContentAndApprovalsPager   r)   c                 .    t        | j                  |      S )zy
        Build an instance of ContentAndApprovalsInstance

        :param payload: Payload response from the API
        )r   _version)r%   r   s     r'   get_instancez$ContentAndApprovalsPage.get_instanceF   s     +4=='BBr(   c                      y)r+   z+<Twilio.Content.V2.ContentAndApprovalsPage>r,   r-   s    r'   r.   z ContentAndApprovalsPage.__repr__N        =r(   N)	r/   r0   r1   r   r3   r   r   r:   r.   r,   r(   r'   r7   r7   D   s-    CDcN C7R C=# =r(   r7   c                       e Zd Zdef fdZej                  ej                  ej                  ej                  ej                  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e	f   d	eee	f   d
eee   e	f   deee   e	f   deee   e	f   dee   dee   dee   fdZej                  ej                  ej                  ej                  ej                  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e	f   d	eee	f   d
eee   e	f   deee   e	f   deee   e	f   dee   dee   dee   fdZej                  ej                  ej                  ej                  ej                  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e	f   d	eee	f   d
eee   e	f   deee   e	f   de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                  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e	f   d	eee	f   d
eee   e	f   deee   e	f   de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                  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e	f   d	eee	f   d
eee   e	f   deee   e	f   deee   e	f   dee   dee   dee   fdZej                  ej                  ej                  ej                  ej                  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e	f   d	eee	f   d
eee   e	f   deee   e	f   deee   e	f   dee   dee   dee   fdZej                  ej                  ej                  ej                  ej                  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e	f   d	eee	f   d
eee   e	f   deee   e	f   de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                  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e	f   d	eee	f   d
eee   e	f   deee   e	f   de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                  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   e	f   deee   e	f   de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                  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   e	f   deee   e	f   de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                  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   e	f   deee   e	f   de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                  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   e	f   deee   e	f   de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fd!Z" xZ#S )"ContentAndApprovalsListr   c                 2    t         |   |       d| _        y)zu
        Initialize the ContentAndApprovalsList

        :param version: Version that contains the resource

        z/ContentAndApprovalsN)r!   r"   _uri)r%   r   r&   s     r'   r"   z ContentAndApprovalsList.__init__Y   s     	!*	r(   Nsort_by_datesort_by_content_namedate_created_afterdate_created_beforecontent_namecontentr   content_typechannel_eligibilitylimit	page_sizer)   c                     | j                   j                  |
|      }| j                  |||||||||	|d   
      }| j                   j                  ||d         S )aR  
        Streams ContentAndApprovalsInstance 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 sort_by_date: Whether to sort by ascending or descending date updated
        :param str sort_by_content_name: Whether to sort by ascending or descending content name
        :param datetime date_created_after: Filter by >=[date-time]
        :param datetime date_created_before: Filter by <=[date-time]
        :param str content_name: Filter by Regex Pattern in content name
        :param str content: Filter by Regex Pattern in template content
        :param List[str] language: Filter by array of valid language(s)
        :param List[str] content_type: Filter by array of contentType(s)
        :param List[str] channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        rJ   
rA   rB   rC   rD   rE   rF   r   rG   rH   rJ   rI   )r9   read_limitspagestreamr%   rA   rB   rC   rD   rE   rF   r   rG   rH   rI   rJ   limitsrN   s                 r'   rO   zContentAndApprovalsList.streamd   sn    L **5)<yy%!51 3%% 3[)  
 }}##D&/::r(   c                    K   | j                   j                  |
|      }| j                  |||||||||	|d   
       d{   }| j                   j                  ||d         S 7 #w)aa  
        Asynchronously streams ContentAndApprovalsInstance 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 sort_by_date: Whether to sort by ascending or descending date updated
        :param str sort_by_content_name: Whether to sort by ascending or descending content name
        :param datetime date_created_after: Filter by >=[date-time]
        :param datetime date_created_before: Filter by <=[date-time]
        :param str content_name: Filter by Regex Pattern in content name
        :param str content: Filter by Regex Pattern in template content
        :param List[str] language: Filter by array of valid language(s)
        :param List[str] content_type: Filter by array of contentType(s)
        :param List[str] channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        rJ   rL   NrI   )r9   rM   
page_asyncstream_asyncrP   s                 r'   rT   z$ContentAndApprovalsList.stream_async   s|     L **5)<__%!51 3%% 3[) % 
 
 }}))$w@@
s   >A& A$$A&c                     | j                   j                  |
|      }| j                  |||||||||	|d   
      }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams ContentAndApprovalsInstance and returns headers from first page


        :param str sort_by_date: Whether to sort by ascending or descending date updated
        :param str sort_by_content_name: Whether to sort by ascending or descending content name
        :param datetime date_created_after: Filter by >=[date-time]
        :param datetime date_created_before: Filter by <=[date-time]
        :param str content_name: Filter by Regex Pattern in content name
        :param str content: Filter by Regex Pattern in template content
        :param List[str] language: Filter by array of valid language(s)
        :param List[str] content_type: Filter by array of contentType(s)
        :param List[str] channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: tuple of (generator, status_code, headers) where generator yields instances
        rJ   rL   rI   )r9   rM   page_with_http_inforO   datastatus_codeheadersr%   rA   rB   rC   rD   rE   rF   r   rG   rH   rI   rJ   rQ   page_response	generators                  r'   stream_with_http_infoz-ContentAndApprovalsList.stream_with_http_info   s    H **5)<00%!51 3%% 3[) 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 ContentAndApprovalsInstance and returns headers from first page


        :param str sort_by_date: Whether to sort by ascending or descending date updated
        :param str sort_by_content_name: Whether to sort by ascending or descending content name
        :param datetime date_created_after: Filter by >=[date-time]
        :param datetime date_created_before: Filter by <=[date-time]
        :param str content_name: Filter by Regex Pattern in content name
        :param str content: Filter by Regex Pattern in template content
        :param List[str] language: Filter by array of valid language(s)
        :param List[str] content_type: Filter by array of contentType(s)
        :param List[str] channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: tuple of (generator, status_code, headers) where generator yields instances
        rJ   rL   NrI   )r9   rM   page_with_http_info_asyncrT   rW   rX   rY   rZ   s                  r'   stream_with_http_info_asyncz3ContentAndApprovalsList.stream_with_http_info_async  s     H **5)<"<<%!51 3%% 3[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   >B	 BAB	c                 L    t        | j                  |||||||||	|
|            S )a  
        Lists ContentAndApprovalsInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str sort_by_date: Whether to sort by ascending or descending date updated
        :param str sort_by_content_name: Whether to sort by ascending or descending content name
        :param datetime date_created_after: Filter by >=[date-time]
        :param datetime date_created_before: Filter by <=[date-time]
        :param str content_name: Filter by Regex Pattern in content name
        :param str content: Filter by Regex Pattern in template content
        :param List[str] language: Filter by array of valid language(s)
        :param List[str] content_type: Filter by array of contentType(s)
        :param List[str] channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        rA   rB   rC   rD   rE   rF   r   rG   rH   rI   rJ   )listrO   )r%   rA   rB   rC   rD   rE   rF   r   rG   rH   rI   rJ   s               r'   rc   zContentAndApprovalsList.list:  sD    J KK)%9#5$7)!)$7#  
 	
r(   c                    K   | j                  |||||||||	|
|       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists ContentAndApprovalsInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str sort_by_date: Whether to sort by ascending or descending date updated
        :param str sort_by_content_name: Whether to sort by ascending or descending content name
        :param datetime date_created_after: Filter by >=[date-time]
        :param datetime date_created_before: Filter by <=[date-time]
        :param str content_name: Filter by Regex Pattern in content name
        :param str content: Filter by Regex Pattern in template content
        :param List[str] language: Filter by array of valid language(s)
        :param List[str] content_type: Filter by array of contentType(s)
        :param List[str] channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        rb   N)rT   )r%   rA   rB   rC   rD   rE   rF   r   rG   rH   rI   rJ   records                r'   
list_asyncz"ContentAndApprovalsList.list_asynco  sp     N '+&7&7)%9#5$7)!)$7# '8 ' !
 
 !
 
 	
 
s4    A7A?;9
;?A;?Ac                 t    | j                  |||||||||	|
|      \  }}}t        |      }t        |||      S )a  
        Lists ContentAndApprovalsInstance and returns headers from first page


        :param str sort_by_date: Whether to sort by ascending or descending date updated
        :param str sort_by_content_name: Whether to sort by ascending or descending content name
        :param datetime date_created_after: Filter by >=[date-time]
        :param datetime date_created_before: Filter by <=[date-time]
        :param str content_name: Filter by Regex Pattern in content name
        :param str content: Filter by Regex Pattern in template content
        :param List[str] language: Filter by array of valid language(s)
        :param List[str] content_type: Filter by array of contentType(s)
        :param List[str] channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: ApiResponse with list of instances, status code, and headers
        rb   rW   rX   rY   )r]   rc   r   )r%   rA   rB   rC   rD   rE   rF   r   rG   rH   rI   rJ   r\   rX   rY   itemss                   r'   list_with_http_infoz+ContentAndApprovalsList.list_with_http_info  s]    H +/*D*D%!51 3%% 3 +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 ContentAndApprovalsInstance and returns headers from first page


        :param str sort_by_date: Whether to sort by ascending or descending date updated
        :param str sort_by_content_name: Whether to sort by ascending or descending content name
        :param datetime date_created_after: Filter by >=[date-time]
        :param datetime date_created_before: Filter by <=[date-time]
        :param str content_name: Filter by Regex Pattern in content name
        :param str content: Filter by Regex Pattern in template content
        :param List[str] language: Filter by array of valid language(s)
        :param List[str] content_type: Filter by array of contentType(s)
        :param List[str] channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: ApiResponse with list of instances, status code, and headers
        rb   Nrh   )r`   r   )r%   rA   rB   rC   rD   rE   rF   r   rG   rH   rI   rJ   r\   rX   rY   re   ri   s                    r'   list_with_http_info_asyncz1ContentAndApprovalsList.list_with_http_info_async  s     H 150P0P%!51 3%% 3 1Q 1
 +
'	; -666&+
 7666;PPs<    A=AAA?
AAAAAA
page_tokenpage_numberc                    t        j                  ||t        j                  |      t        j                  |      ||t        j                  |d       t        j                  |d       t        j                  |	d       |
||d      }t        j                  ddi      }d|d<   | j
                  j                  d	| j                  ||
      }t        | j
                  |      S )a4  
        Retrieve a single page of ContentAndApprovalsInstance records from the API.
        Request is executed immediately

        :param sort_by_date: Whether to sort by ascending or descending date updated
        :param sort_by_content_name: Whether to sort by ascending or descending content name
        :param date_created_after: Filter by >=[date-time]
        :param date_created_before: Filter by <=[date-time]
        :param content_name: Filter by Regex Pattern in content name
        :param content: Filter by Regex Pattern in template content
        :param language: Filter by array of valid language(s)
        :param content_type: Filter by array of contentType(s)
        :param channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of ContentAndApprovalsInstance
        c                     | S Nr,   es    r'   <lambda>z.ContentAndApprovalsList.page.<locals>.<lambda>7      a r(   c                     | S rq   r,   rr   s    r'   rt   z.ContentAndApprovalsList.page.<locals>.<lambda>8      Q r(   c                     | S rq   r,   rr   s    r'   rt   z.ContentAndApprovalsList.page.<locals>.<lambda>9      ST r(   
SortByDateSortByContentNameDateCreatedAfterDateCreatedBeforeContentNameContentLanguageContentTypeChannelEligibility	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsrY   )	r   ofr   r#   mapr9   rN   r@   r7   r%   rA   rB   rC   rD   rE   rF   r   rG   rH   rm   rn   rJ   rW   rY   responses                   r'   rN   zContentAndApprovalsList.page  s    D yy*%9$-$>$>?Q$R%.%?%?@S%T+"%MM(K@(}}\;G&/mm4G&U'#%
" ))^-PQR.==%%diig & 
 't}}h??r(   c                   K   t        j                  ||t        j                  |      t        j                  |      ||t        j                  |d       t        j                  |d       t        j                  |	d       |
||d      }t        j                  ddi      }d|d<   | j
                  j                  d	| j                  ||
       d{   }t        | j
                  |      S 7 w)aC  
        Asynchronously retrieve a single page of ContentAndApprovalsInstance records from the API.
        Request is executed immediately

        :param sort_by_date: Whether to sort by ascending or descending date updated
        :param sort_by_content_name: Whether to sort by ascending or descending content name
        :param date_created_after: Filter by >=[date-time]
        :param date_created_before: Filter by <=[date-time]
        :param content_name: Filter by Regex Pattern in content name
        :param content: Filter by Regex Pattern in template content
        :param language: Filter by array of valid language(s)
        :param content_type: Filter by array of contentType(s)
        :param channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of ContentAndApprovalsInstance
        c                     | S rq   r,   rr   s    r'   rt   z4ContentAndApprovalsList.page_async.<locals>.<lambda>s  ru   r(   c                     | S rq   r,   rr   s    r'   rt   z4ContentAndApprovalsList.page_async.<locals>.<lambda>t  rw   r(   c                     | S rq   r,   rr   s    r'   rt   z4ContentAndApprovalsList.page_async.<locals>.<lambda>u  ry   r(   rz   r   r   r   r   r   r   N)	r   r   r   r#   r   r9   rS   r@   r7   r   s                   r'   rS   z"ContentAndApprovalsList.page_asyncI  s     D yy*%9$-$>$>?Q$R%.%?%?@S%T+"%MM(K@(}}\;G&/mm4G&U'#%
" ))^-PQR.11diig 2 
 
 't}}h??
s   CC/C-C/c                    t        j                  ||t        j                  |      t        j                  |      ||t        j                  |d       t        j                  |d       t        j                  |	d       |
||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 sort_by_date: Whether to sort by ascending or descending date updated
        :param sort_by_content_name: Whether to sort by ascending or descending content name
        :param date_created_after: Filter by >=[date-time]
        :param date_created_before: Filter by <=[date-time]
        :param content_name: Filter by Regex Pattern in content name
        :param content: Filter by Regex Pattern in template content
        :param language: Filter by array of valid language(s)
        :param content_type: Filter by array of contentType(s)
        :param channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: ApiResponse with ContentAndApprovalsPage, status code, and headers
        c                     | S rq   r,   rr   s    r'   rt   z=ContentAndApprovalsList.page_with_http_info.<locals>.<lambda>  ru   r(   c                     | S rq   r,   rr   s    r'   rt   z=ContentAndApprovalsList.page_with_http_info.<locals>.<lambda>  rw   r(   c                     | S rq   r,   rr   s    r'   rt   z=ContentAndApprovalsList.page_with_http_info.<locals>.<lambda>  ry   r(   rz   r   r   r   r   r   r   rh   )
r   r   r   r#   r   r9   page_with_response_infor@   r7   r   r%   rA   rB   rC   rD   rE   rF   r   rG   rH   rm   rn   rJ   rW   rY   r   rX   response_headersrN   s                      r'   rV   z+ContentAndApprovalsList.page_with_http_info  s    D yy*%9$-$>$>?Q$R%.%?%?@S%T+"%MM(K@(}}\;G&/mm4G&U'#%
" ))^-PQR.26--2W2Wdiig 3X 3
/+/ 't}}h?+GWXXr(   c                   K   t        j                  ||t        j                  |      t        j                  |      ||t        j                  |d       t        j                  |d       t        j                  |	d       |
||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 sort_by_date: Whether to sort by ascending or descending date updated
        :param sort_by_content_name: Whether to sort by ascending or descending content name
        :param date_created_after: Filter by >=[date-time]
        :param date_created_before: Filter by <=[date-time]
        :param content_name: Filter by Regex Pattern in content name
        :param content: Filter by Regex Pattern in template content
        :param language: Filter by array of valid language(s)
        :param content_type: Filter by array of contentType(s)
        :param channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: ApiResponse with ContentAndApprovalsPage, status code, and headers
        c                     | S rq   r,   rr   s    r'   rt   zCContentAndApprovalsList.page_with_http_info_async.<locals>.<lambda>  ru   r(   c                     | S rq   r,   rr   s    r'   rt   zCContentAndApprovalsList.page_with_http_info_async.<locals>.<lambda>  rw   r(   c                     | S rq   r,   rr   s    r'   rt   zCContentAndApprovalsList.page_with_http_info_async.<locals>.<lambda>  ry   r(   rz   r   r   r   r   r   r   Nrh   )
r   r   r   r#   r   r9   page_with_response_info_asyncr@   r7   r   r   s                      r'   r_   z1ContentAndApprovalsList.page_with_http_info_async  s     D yy*%9$-$>$>?Q$R%.%?%?@S%T+"%MM(K@(}}\;G&/mm4G&U'#%
" ))^-PQR. --==$))D' >   	0+/
 't}}h?+GWXXs   CDC?-D
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )a  
        Retrieve a specific page of ContentAndApprovalsInstance records from the API.
        Request is executed immediately

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

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

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

        :returns: Page of ContentAndApprovalsInstance
        r   N)r9   r   r   request_asyncr7   r   s      r'   get_page_asyncz&ContentAndApprovalsList.get_page_async  sD      --44BB5*UU&t}}h?? Vs   4AAAc                      y)r+   z+<Twilio.Content.V2.ContentAndApprovalsList>r,   r-   s    r'   r.   z ContentAndApprovalsList.__repr__  r<   r(   )$r/   r0   r1   r   r"   r   unsetr   r3   objectr   r   r   intr	   r   rO   r
   rT   tupler]   r`   rc   rf   r   rj   rl   r7   rN   rS   rV   r_   r   r   r.   r4   r5   s   @r'   r>   r>   W   s   	+ 	+ ,2<<39<<6<ll7=||+1<<&,ll-3\\178>##'4;CK(4; $CK04; "(F"23	4;
 #8V#344; CK(4; sF{#4; S	6)*4; DIv-.4; #49f#454; }4; C=4; 
-	.4;p ,2<<39<<6<ll7=||+1<<&,ll-3\\178>##'4ACK(4A $CK04A "(F"23	4A
 #8V#344A CK(4A sF{#4A S	6)*4A DIv-.4A #49f#454A }4A C=4A 
2	34Ap ,2<<39<<6<ll7=||+1<<&,ll-3\\178>##'3MCK(3M $CK03M "(F"23	3M
 #8V#343M CK(3M sF{#3M S	6)*3M DIv-.3M #49f#453M }3M C=3M 
3Mn ,2<<39<<6<ll7=||+1<<&,ll-3\\178>##'3MCK(3M $CK03M "(F"23	3M
 #8V#343M CK(3M sF{#3M S	6)*3M DIv-.3M #49f#453M }3M C=3M 
3Mn ,2<<39<<6<ll7=||+1<<&,ll-3\\178>##'3
CK(3
 $CK03
 "(F"23	3

 #8V#343
 CK(3
 sF{#3
 S	6)*3
 DIv-.3
 #49f#453
 }3
 C=3
 
)	*3
n ,2<<39<<6<ll7=||+1<<&,ll-3\\178>##'4
CK(4
 $CK04
 "(F"23	4

 #8V#344
 CK(4
 sF{#4
 S	6)*4
 DIv-.4
 #49f#454
 }4
 C=4
 
)	*4
p ,2<<39<<6<ll7=||+1<<&,ll-3\\178>##'2QCK(2Q $CK02Q "(F"23	2Q
 #8V#342Q CK(2Q sF{#2Q S	6)*2Q DIv-.2Q #49f#452Q }2Q C=2Q 
2Ql ,2<<39<<6<ll7=||+1<<&,ll-3\\178>##'2QCK(2Q $CK02Q "(F"23	2Q
 #8V#342Q CK(2Q sF{#2Q S	6)*2Q DIv-.2Q #49f#452Q }2Q C=2Q 
2Ql ,2<<39<<6<ll7=||+1<<&,ll-3\\178>)/*0,,(.:@CK(:@ $CK0:@ "(F"23	:@
 #8V#34:@ CK(:@ sF{#:@ S	6)*:@ DIv-.:@ #49f#45:@ #v+&:@ 3;':@ f%:@ 
!:@| ,2<<39<<6<ll7=||+1<<&,ll-3\\178>)/*0,,(.:@CK(:@ $CK0:@ "(F"23	:@
 #8V#34:@ CK(:@ sF{#:@ S	6)*:@ DIv-.:@ #49f#45:@ #v+&:@ 3;':@ f%:@ 
!:@| ,2<<39<<6<ll7=||+1<<&,ll-3\\178>)/*0,,(.;YCK(;Y $CK0;Y "(F"23	;Y
 #8V#34;Y CK(;Y sF{#;Y S	6)*;Y DIv-.;Y #49f#45;Y #v+&;Y 3;';Y f%;Y 
;Y~ ,2<<39<<6<ll7=||+1<<&,ll-3\\178>)/*0,,(.=YCK(=Y $CK0=Y "(F"23	=Y
 #8V#34=Y CK(=Y sF{#=Y S	6)*=Y DIv-.=Y #49f#45=Y #v+&=Y 3;'=Y f%=Y 
=Y~
@3 
@+B 
@
@s 
@7N 
@=# =r(   r>   N)r2   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.api_responser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r7   r>   r,   r(   r'   <module>r      sW     L L L 6 6 0 : 2 ' !'A"2 'AT=d =&H=l H=r(   