
    g2                         S r SSKJr  SSKJrJrJrJrJrJrJ	r	  SSK
JrJr  SSKJr  SSKJr  SSKJr  SSKJr   " S	 S
\5      r " S S\5      r " S S\5      rg)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - Assistants
 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)InstanceResource)ListResource)Version)Pagec                   P   ^  \ rS rSrSrS\S\\\4   4U 4S jjr	S\4S jr
SrU =r$ )	PolicyInstance   a  
:ivar id: The Policy ID.
:ivar name: The name of the policy.
:ivar description: The description of the policy.
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Policy resource.
:ivar user_sid: The SID of the User that created the Policy resource.
:ivar type: The type of the policy.
:ivar policy_details: The details of the policy based on the type.
:ivar date_created: The date and time in GMT when the Policy was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar date_updated: The date and time in GMT when the Policy was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
versionpayloadc                    > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l	        [        R                  " UR                  S5      5      U l        [        R                  " UR                  S	5      5      U l        g )
Nidnamedescriptionaccount_siduser_sidtypepolicy_detailsdate_createddate_updated)super__init__getr   r   r   r   r   r   r   r   iso8601_datetimer   r   )selfr   r   	__class__s      h/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/assistants/v1/policy.pyr!   PolicyInstance.__init__&   s    !!(T!2#*;;v#6	*1++m*D*1++m*D'.{{:'>#*;;v#6	;B;;GW;X0;0L0LKK'1
 1<0L0LKK'1
    returnc                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z%<Twilio.Assistants.V1.PolicyInstance> r$   s    r&   __repr__PolicyInstance.__repr__7   s     7r(   )	r   r   r   r   r   r   r   r   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r!   r.   __static_attributes____classcell__r%   s   @r&   r   r      s4    

 
$sCx. 
"7# 7 7r(   r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)
PolicyPageA   r   r)   c                 .    [        U R                  U5      $ )zT
Build an instance of PolicyInstance

:param payload: Payload response from the API
)r   _version)r$   r   s     r&   get_instancePolicyPage.get_instanceC   s     dmmW55r(   c                     g)r+   z!<Twilio.Assistants.V1.PolicyPage>r,   r-   s    r&   r.   PolicyPage.__repr__K        3r(   r,   N)r0   r1   r2   r3   r   r5   r   r   r>   r.   r6   r,   r(   r&   r:   r:   A   s)    6DcN 6~ 63# 3r(   r:   c                     ^  \ rS rSrS\4U 4S jjr\R                  \R                  SS4S\\	\
4   S\\	\
4   S\\   S\\   S	\\   4
S
 jjr\R                  \R                  SS4S\\	\
4   S\\	\
4   S\\   S\\   S	\\   4
S jjr\R                  \R                  SS4S\\	\
4   S\\	\
4   S\\   S\\   S	\\   4
S jjr\R                  \R                  SS4S\\	\
4   S\\	\
4   S\\   S\\   S	\\   4
S jjr\R                  \R                  \R                  \R                  \R                  4S\\	\
4   S\\	\
4   S\\	\
4   S\\\
4   S\\\
4   S	\4S jjr\R                  \R                  \R                  \R                  \R                  4S\\	\
4   S\\	\
4   S\\	\
4   S\\\
4   S\\\
4   S	\4S jjrS\	S	\4S jrS\	S	\4S jrS	\	4S jrSrU =r$ )
PolicyListT   r   c                 2   > [         TU ]  U5        SU l        g)zP
Initialize the PolicyList

:param version: Version that contains the resource

z	/PoliciesN)r    r!   _uri)r$   r   r%   s     r&   r!   PolicyList.__init__V   s     	!	r(   Ntool_idknowledge_idlimit	page_sizer)   c                     U R                   R                  X45      nU R                  XUS   S9nU R                   R                  XeS   5      $ )aH  
Streams PolicyInstance 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 tool_id: The tool ID.
:param str knowledge_id: The knowledge ID.
: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
rL   rI   rJ   rL   rK   )r=   read_limitspagestreamr$   rI   rJ   rK   rL   limitsrP   s          r&   rQ   PolicyList.streama   sP    0 **5<yy&BU  
 }}##D/::r(   c                    #    U R                   R                  X45      nU R                  XUS   S9I Sh  vN nU R                   R                  XeS   5      $  N"7f)aW  
Asynchronously streams PolicyInstance 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 tool_id: The tool ID.
:param str knowledge_id: The knowledge ID.
: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
rL   rN   NrK   )r=   rO   
page_asyncstream_asyncrR   s          r&   rW   PolicyList.stream_async   s]     0 **5<__&BU % 
 
 }}))$w@@	
s   2AA#Ac           	      8    [        U R                  UUUUS95      $ )a  
Lists PolicyInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str tool_id: The tool ID.
:param str knowledge_id: The knowledge ID.
: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
rI   rJ   rK   rL   )listrQ   )r$   rI   rJ   rK   rL   s        r&   r[   PolicyList.list   s.    . KK)#	  
 	
r(   c                 z   #    U R                  UUUUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

 sn$ s  snf 7f)a  
Asynchronously lists PolicyInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str tool_id: The tool ID.
:param str knowledge_id: The knowledge ID.
: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
rZ   N)rW   )r$   rI   rJ   rK   rL   records         r&   
list_asyncPolicyList.list_async   sW     2 '+&7&7)#	 '8 ' ! !
 
 !
 	
 
s0   ;.;620
26;26;
page_tokenpage_numberc                     [         R                  " UUUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XgS9n[        U R                  U5      $ )a}  
Retrieve a single page of PolicyInstance records from the API.
Request is executed immediately

:param tool_id: The tool ID.
:param knowledge_id: The knowledge ID.
: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 PolicyInstance
ToolIdKnowledgeId	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsheaders)r   ofr=   rP   rG   r:   	r$   rI   rJ   ra   rb   rL   datarr   responses	            r&   rP   PolicyList.page   s}    ( yy!+'#%
 ))^-PQR.==%%dii & 
 $--22r(   c                   #    [         R                  " UUUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XgS9I Sh  vN n[        U R                  U5      $  N7f)	a  
Asynchronously retrieve a single page of PolicyInstance records from the API.
Request is executed immediately

:param tool_id: The tool ID.
:param knowledge_id: The knowledge ID.
: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 PolicyInstance
rd   ri   rj   rk   rl   rm   rn   N)r   rs   r=   rV   rG   r:   rt   s	            r&   rV   PolicyList.page_async  s     ( yy!+'#%
 ))^-PQR.11dii 2 
 
 $--22
s   A"B$A?%B
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )z
Retrieve a specific page of PolicyInstance records from the API.
Request is executed immediately

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

:returns: Page of PolicyInstance
rm   )r=   domaintwiliorequestr:   r$   rz   rv   s      r&   get_pagePolicyList.get_page.  s7     ==''..66ujI$--22r(   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   U5      $  N7f)z
Asynchronously retrieve a specific page of PolicyInstance records from the API.
Request is executed immediately

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

:returns: Page of PolicyInstance
rm   N)r=   r|   r}   request_asyncr:   r   s      r&   get_page_asyncPolicyList.get_page_async:  sC      --44BB5*UU$--22 Vs   4AAAc                     g)r+   z!<Twilio.Assistants.V1.PolicyList>r,   r-   s    r&   r.   PolicyList.__repr__F  rB   r(   )rG   )r0   r1   r2   r3   r   r!   r   unsetr   r5   objectr   intr	   r   rQ   r
   rW   r   r[   r_   r:   rP   rV   r   r   r.   r6   r7   r8   s   @r&   rD   rD   T   s   	  	  '-ll+1<<##';sF{#; CK(; }	;
 C=; 
.	!;B '-ll+1<<##'AsF{#A CK(A }	A
 C=A 
~	&AB '-ll+1<<##'
sF{#
 CK(
 }	

 C=
 
n	
D '-ll+1<<##'
sF{#
 CK(
 }	

 C=
 
n	
F '-ll+1<<)/*0,,(.%3sF{#%3 CK(%3 #v+&	%3
 3;'%3 f%%3 
%3R '-ll+1<<)/*0,,(.%3sF{#%3 CK(%3 #v+&	%3
 3;'%3 f%%3 
%3N
33 
3: 
3
3s 
3z 
33# 3 3r(   rD   N)r4   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r:   rD   r,   r(   r&   <module>r      sO     L L L + : 2 ' !%7% %7P3 3&x3 x3r(   