Ë
    [üàg»6  ã                   óÌ   — d Z ddlmZmZmZmZ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 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 - Trusthub
    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.
é    )ÚAnyÚDictÚListÚOptionalÚUnionÚIteratorÚAsyncIterator)Úvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   ór   ‡ — 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ˆ xZS )ÚPoliciesInstanceao  
    :ivar sid: The unique string that identifies the Policy resource.
    :ivar friendly_name: A human-readable description that is assigned to describe the Policy resource. Examples can include Primary Customer profile policy
    :ivar requirements: The SID of an object that holds the policy information
    :ivar url: The absolute URL of the Policy resource.
    ÚversionÚpayloadÚsidc                 ó  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        d|xs | j                  i| _        d | _        y )Nr   Úfriendly_nameÚrequirementsÚurl)	ÚsuperÚ__init__Úgetr   r   r   r   Ú	_solutionÚ_context)Úselfr   r   r   Ú	__class__s       €ú^/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/trusthub/v1/policies.pyr   zPoliciesInstance.__init__    su   ø€ ô 	‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ,3¯K©K¸Ó,HˆÔØ9@¿¹À^Ó9TˆÔØ")§+¡+¨eÓ"4ˆŒð �3’?˜$Ÿ(™(ð
ˆŒð 48ˆ�ó    Ú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: PoliciesContext for this PoliciesInstance
        r   ©r   )r   ÚPoliciesContextÚ_versionr   ©r   s    r    Ú_proxyzPoliciesInstance._proxy/   s9   € ð �=‰=Ð Ü+Ø—‘Ø—N‘N 5Ñ)ôˆDŒMð �}‰}Ðr!   c                 ó6   — | j                   j                  «       S )ú]
        Fetch the PoliciesInstance


        :returns: The fetched PoliciesInstance
        )r(   Úfetchr'   s    r    r+   zPoliciesInstance.fetch>   s   € ð �{‰{× Ñ Ó"Ð"r!   c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)úw
        Asynchronous coroutine to fetch the PoliciesInstance


        :returns: The fetched PoliciesInstance
        N)r(   Úfetch_asyncr'   s    r    r.   zPoliciesInstance.fetch_asyncG   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.ús   ‚' %¡'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,PoliciesInstance.__repr__.<locals>.<genexpr>V   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z(<Twilio.Trusthub.V1.PoliciesInstance {}>©Újoinr   Úitemsr5   ©r   Úcontexts     r    Ú__repr__zPoliciesInstance.__repr__P   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ9×@Ñ@ÀÓIÐIr!   )N)r"   r%   )r"   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   r   Úpropertyr(   r+   r.   rB   Ú__classcell__©r   s   @r    r   r      sd   ø„ ñð OSñ8Øð8Ø)-¨c°3¨h©ð8Ø>FÀs¹mõ8ð òó ðó#ó/ðJ˜#÷ Jr!   r   c                   óL   ‡ — 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	ˆ xZ
S )r%   r   r   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)z·
        Initialize the PoliciesContext

        :param version: Version that contains the resource
        :param sid: The unique string that identifies the Policy resource.
        r   z/Policies/{sid}N© )r   r   r   r5   Ú_uri)r   r   r   r   s      €r    r   zPoliciesContext.__init__\   s@   ø€ ô 	‰Ñ˜Ô!ð �3ð
ˆŒð -Ð%×,Ñ,Ñ>¨t¯~©~Ñ>ˆ�	r!   r"   c                 óÐ   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   ¬«      S )r*   úapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚheadersr   r$   )r
   Úofr&   r+   rN   r   r   ©r   rV   r   s      r    r+   zPoliciesContext.fetchk   s]   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆäØ�M‰MØØ—‘˜uÑ%ô
ð 	
r!   c              ƒ   óì   K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   ¬«      S 7 Œ)­w)r-   rP   rQ   rR   rS   Nr   r$   )r
   rW   r&   r.   rN   r   r   rX   s      r    r.   zPoliciesContext.fetch_async   sr   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô  Ø�M‰MØØ—‘˜uÑ%ô
ð 	
ð	
ús   ‚AA4ÁA2Á	*A4c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )r0   r1   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wr3   r4   r6   s      r    r:   z+PoliciesContext.__repr__.<locals>.<genexpr>›   r;   r<   z'<Twilio.Trusthub.V1.PoliciesContext {}>r=   r@   s     r    rB   zPoliciesContext.__repr__•   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ8×?Ñ?ÀÓHÐHr!   )rC   rD   rE   r   rG   r   r   r+   r.   rB   rI   rJ   s   @r    r%   r%   Z   s>   ø„ ð? ð ?¨cõ ?ð
Ð'ó 
ð(
Ð#3ó 
ð,I˜#÷ Ir!   r%   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚPoliciesPager   r"   c                 ó.   — t        | j                  |«      S )zn
        Build an instance of PoliciesInstance

        :param payload: Payload response from the API
        )r   r&   )r   r   s     r    Úget_instancezPoliciesPage.get_instance¡   s   € ô   §¡¨wÓ7Ð7r!   c                  ó   — y)r0   z!<Twilio.Trusthub.V1.PoliciesPage>rM   r'   s    r    rB   zPoliciesPage.__repr__©   ó   € ð 3r!   N)	rC   rD   rE   r   rG   r   r   r_   rB   rM   r!   r    r]   r]   Ÿ   s*   „ ð8 D¨¨c¨¡Nð 8Ð7Gó 8ð3˜#ô 3r!   r]   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e   fd„Z	 	 ddee   dee   de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defd„Zdedefd„Zdefd„Zˆ xZS )ÚPoliciesListr   c                 ó2   •— t         ‰| �  |«       d| _        y)zj
        Initialize the PoliciesList

        :param version: Version that contains the resource

        z	/PoliciesN)r   r   rN   )r   r   r   s     €r    r   zPoliciesList.__init__´   s   ø€ ô 	‰Ñ˜Ô!àˆ�	r!   ÚlimitÚ	page_sizer"   c                 ó¢   — | j                   j                  ||«      }| j                  |d   ¬«      }| j                   j                  ||d   «      S )a^  
        Streams PoliciesInstance 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
        rf   ©rf   re   )r&   Úread_limitsÚpageÚstream©r   re   rf   Úlimitsrj   s        r    rk   zPoliciesList.stream¿   sJ   € ð( —‘×*Ñ*¨5°)Ó<ˆØ�y‰y 6¨+Ñ#6ˆyÓ7ˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r!   c              ƒ   ó¾   K  — | j                   j                  ||«      }| j                  |d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)am  
        Asynchronously streams PoliciesInstance 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
        rf   rh   Nre   )r&   ri   Ú
page_asyncÚstream_asyncrl   s        r    rp   zPoliciesList.stream_asyncØ   sW   è ø€ ð( —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨v°kÑ/B�_ÓC×Cˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Dús   ‚5A·A¸$Ac                 ó:   — t        | j                  ||¬«      «      S )aû  
        Lists PoliciesInstance 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
        ©re   rf   )Úlistrk   )r   re   rf   s      r    rs   zPoliciesList.listñ   s(   € ô& Ø�K‰KØØ#ð ó ó
ð 	
r!   c              ƒ   óz   K  — | j                  ||¬«      ƒ d{  –—† 2 �cg c3 d{  –—† }|‘Œ7 Œ7 Œ	6 c}S c c}w ­w)a
  
        Asynchronously lists PoliciesInstance 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
        rr   N)rp   )r   re   rf   Úrecords       r    Ú
list_asynczPoliciesList.list_async  sT   è ø€ ð* '+×&7Ñ&7ØØ#ð '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚;™.š; 6¢2¦0
§2ª6®;°2²6³;Ú
page_tokenÚpage_numberc                 óê   — t        j                  |||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  |«      S )au  
        Retrieve a single page of PoliciesInstance 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 PoliciesInstance
        ©Ú	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedrP   rQ   rR   ©rT   rU   ÚparamsrV   )r
   rW   r&   rj   rN   r]   ©r   rw   rx   rf   ÚdatarV   Úresponses          r    rj   zPoliciesList.page&  sy   € ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜DŸM™M¨8Ó4Ð4r!   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 PoliciesInstance 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 PoliciesInstance
        rz   r}   r~   rP   rQ   rR   r   N)r
   rW   r&   ro   rN   r]   r�   s          r    ro   zPoliciesList.page_asyncG  s‡   è ø€ ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜DŸM™M¨8Ó4Ð4ð
ús   ‚A"BÁ$A?Á%BÚ
target_urlc                 óŽ   — | j                   j                  j                  j                  d|«      }t	        | j                   |«      S )zõ
        Retrieve a specific page of PoliciesInstance records from the API.
        Request is executed immediately

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

        :returns: Page of PoliciesInstance
        rR   )r&   ÚdomainÚtwilioÚrequestr]   ©r   r…   rƒ   s      r    Úget_pagezPoliciesList.get_pageh  s7   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ˜DŸM™M¨8Ó4Ð4r!   c              ƒ   óª   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   |«      S 7 Œ­w)a  
        Asynchronously retrieve a specific page of PoliciesInstance records from the API.
        Request is executed immediately

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

        :returns: Page of PoliciesInstance
        rR   N)r&   r‡   rˆ   Úrequest_asyncr]   rŠ   s      r    Úget_page_asynczPoliciesList.get_page_asynct  sD   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜DŸM™M¨8Ó4Ð4ð Vús   ‚4A¶A·Ar   c                 ó0   — t        | j                  |¬«      S ©zz
        Constructs a PoliciesContext

        :param sid: The unique string that identifies the Policy resource.
        r$   ©r%   r&   ©r   r   s     r    r   zPoliciesList.get€  ó   € ô ˜tŸ}™}°#Ô6Ð6r!   c                 ó0   — t        | j                  |¬«      S r�   r‘   r’   s     r    Ú__call__zPoliciesList.__call__ˆ  r“   r!   c                  ó   — y)r0   z!<Twilio.Trusthub.V1.PoliciesList>rM   r'   s    r    rB   zPoliciesList.__repr__�  ra   r!   )NN)rC   rD   rE   r   r   r   Úintr   r   rk   r	   rp   r   rs   rv   r
   Úunsetr   rG   Úobjectr]   rj   ro   r‹   rŽ   r%   r   r•   rB   rI   rJ   s   @r    rc   rc   ²   s  ø„ ð	  õ 	 ð  $Ø#'ñ;à˜‰}ð;ð ˜C‘=ð;ð 
Ð"Ñ	#ó	;ð6  $Ø#'ñAà˜‰}ðAð ˜C‘=ðAð 
Ð'Ñ	(ó	Að6  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ÐÑ	ó	
ð8  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ÐÑ	ó	
ð: *0¯©Ø*0¯,©,Ø(.¯©ñ	5à˜#˜v˜+Ñ&ð5ð ˜3 ˜;Ñ'ð5ð ˜˜f˜Ñ%ð	5ð
 
ó5ðF *0¯©Ø*0¯,©,Ø(.¯©ñ	5à˜#˜v˜+Ñ&ð5ð ˜3 ˜;Ñ'ð5ð ˜˜f˜Ñ%ð	5ð
 
ó5ðB
5 3ð 
5¨<ó 
5ð
5¨sð 
5°|ó 
5ð7�sð 7˜ó 7ð7˜Cð 7 Oó 7ð3˜#÷ 3r!   rc   N)rF   Útypingr   r   r   r   r   r   r	   Útwilio.baser
   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   r%   r]   rc   rM   r!   r    ú<module>r¡      sc   ðñ÷ M× LÑ LÝ Ý 8Ý :Ý 2Ý 'Ý !ô?JÐ'ô ?JôDBI�oô BIôJ3�4ô 3ô&d3�<õ d3r!   