
    d{iL                         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  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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 )ContentAndApprovalsInstancea{  
    :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-api/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/v1/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.V1.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.V1.ContentAndApprovalsPage>r+   r,   s    r&   r-   z ContentAndApprovalsPage.__repr__N        =r'   N)	r.   r/   r0   r   r2   r   r   r9   r-   r+   r'   r&   r6   r6   D   s-    CDcN C7R C=# =r'   r6   c            	           e Zd Zdef fdZ	 	 ddee   dee   dee   fdZ		 	 ddee   dee   de
e   fdZ	 	 ddee   dee   defdZ	 	 ddee   dee   defd	Z	 	 ddee   dee   dee   fd
Z	 	 ddee   dee   dee   fdZ	 	 ddee   dee   defdZ	 	 ddee   dee   defdZej,                  ej,                  ej,                  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,                  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,                  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,                  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'   limit	page_sizer(   c                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )ai  
        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 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
        rA   rA   r@   )r8   read_limitspagestreamr$   r@   rA   limitsrE   s        r&   rF   zContentAndApprovalsList.streamd   sJ    ( **5)<yy6+#6y7}}##D&/::r'   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)ax  
        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 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
        rA   rC   Nr@   )r8   rD   
page_asyncstream_asyncrG   s        r&   rK   z$ContentAndApprovalsList.stream_async}   sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5A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 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
        rA   rC   r@   )r8   rD   page_with_http_inforF   datastatus_codeheadersr$   r@   rA   rH   page_response	generators         r&   stream_with_http_infoz-ContentAndApprovalsList.stream_with_http_info   sk    $ **5)<006+;N0O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 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
        rA   rC   Nr@   )r8   rD   page_with_http_info_asyncrK   rN   rO   rP   rQ   s         r&   stream_with_http_info_asyncz3ContentAndApprovalsList.stream_with_http_info_async   s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB c                 :    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 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@   rA   )listrF   )r$   r@   rA   s      r&   rZ   zContentAndApprovalsList.list   s(    & KK#  
 	
r'   c                 z   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 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
        rY   N)rK   )r$   r@   rA   records       r&   
list_asyncz"ContentAndApprovalsList.list_async   sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists ContentAndApprovalsInstance and returns headers from first page


        :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
        rY   rN   rO   rP   )rT   rZ   r   )r$   r@   rA   rS   rO   rP   itemss          r&   list_with_http_infoz+ContentAndApprovalsList.list_with_http_info   sA    $ +/*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 ContentAndApprovalsInstance and returns headers from first page


        :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
        rY   Nr_   )rW   r   )r$   r@   rA   rS   rO   rP   r\   r`   s           r&   list_with_http_info_asyncz1ContentAndApprovalsList.list_with_http_info_async  sf     $ 150P0P 1Q 1
 +
'	; -666&	+
 7666;PPs4   A4A:86
8:A8: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 ContentAndApprovalsInstance records from the API.
        Request is executed immediately

        :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
        	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsrP   )r   ofr8   rE   r?   r6   r$   rd   re   rA   rN   rP   responses          r&   rE   zContentAndApprovalsList.page/  sy      yy'#%
 ))^-PQR.==%%diig & 
 't}}h??r'   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 ContentAndApprovalsInstance records from the API.
        Request is executed immediately

        :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
        rg   rj   rk   rl   rm   rn   ro   N)r   rs   r8   rJ   r?   r6   rt   s          r&   rJ   z"ContentAndApprovalsList.page_asyncP  s       yy'#%
 ))^-PQR.11diig 2 
 
 't}}h??
s   A"B$A?%Bc                    t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | j                  |      }	t        |	||      S )	ae  
        Retrieve a single page with response metadata


        :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
        rg   rj   rk   rl   rm   rn   ro   r_   )r   rs   r8   page_with_response_infor?   r6   r   
r$   rd   re   rA   rN   rP   ru   rO   response_headersrE   s
             r&   rM   z+ContentAndApprovalsList.page_with_http_infoq  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ 't}}h?+GWXXr'   c                 *  K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}t        | j                  |      }	t        |	||	      S 7 ,w)
at  
        Asynchronously retrieve a single page with response metadata


        :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
        rg   rj   rk   rl   rm   rn   ro   Nr_   )r   rs   r8   page_with_response_info_asyncr?   r6   r   ry   s
             r&   rV   z1ContentAndApprovalsList.page_with_http_info_async  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 't}}h?+GWXXs   A"B$B%-B
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
        rn   )r8   domaintwiliorequestr6   r$   r}   ru   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
        rn   N)r8   r   r   request_asyncr6   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.V1.ContentAndApprovalsList>r+   r,   s    r&   r-   z ContentAndApprovalsList.__repr__  r;   r'   )NN)#r.   r/   r0   r   r!   r   intr	   r   rF   r
   rK   tuplerT   rW   r   rZ   r]   r   ra   rc   r   unsetr   r2   objectr6   rE   rJ   rM   rV   r   r   r-   r3   r4   s   @r&   r=   r=   W   s   	+ 	+  $#';}; C=; 
-	.	;6  $#'A}A C=A 
2	3	A6  $#'M}M C=M 
	M4  $#'M}M C=M 
	M8  $#'
}
 C=
 
)	*	
8  $#'
}
 C=
 
)	*	
:  $#'Q}Q C=Q 
	Q6  $#'Q}Q C=Q 
	Q6 *0*0,,(.	@#v+&@ 3;'@ f%	@
 
!@F *0*0,,(.	@#v+&@ 3;'@ f%	@
 
!@F *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
@3 
@+B 
@
@s 
@7N 
@=# =r'   r=   N)r1   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.api_responser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r6   r=   r+   r'   r&   <module>r      sT     L L L + 0 : 2 ' !'A"2 'AT=d =&~=l ~=r'   