
    pi                         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 G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Video
    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)InstanceContext)InstanceResource)ListResource)Version)Pagec                   b    e Zd Z G d de      Z	 	 ddedeeef   de	e   f fdZ
edd       Zdefd	Zdefd
ZddZddZej&                  ej&                  ej&                  ej&                  ej&                  ej&                  ej&                  ej&                  ej&                  f	dedeeef   deeef   deee   ef   deee   ef   deeef   dedef   deeef   deeef   deeef   dd fdZej&                  ej&                  ej&                  ej&                  ej&                  ej&                  ej&                  ej&                  ej&                  f	dedeeef   deeef   deee   ef   deee   ef   deeef   dedef   deeef   deeef   deeef   dd fdZdefdZ xZS )CompositionHookInstancec                       e Zd ZdZdZy)CompositionHookInstance.Formatmp4webmN)__name__
__module____qualname__MP4WEBM     g/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/video/v1/composition_hook.pyFormatr      s    r   r!   versionpayloadsidc                 @   t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _	        |j                  d      | _
        |j                  d      | _        |j                  d      | _        |j                  d	      | _        |j                  d
      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        d|xs | j                  i| _        d | _        y )Naccount_sidfriendly_nameenableddate_createddate_updatedr$   audio_sourcesaudio_sources_excludedvideo_layout
resolutiontrimformatstatus_callbackstatus_callback_methodurl)super__init__getr&   r'   r(   r   iso8601_datetimer)   r*   r$   r+   r,   r-   r.   r/   r0   r1   r2   r3   	_solution_context)selfr"   r#   r$   	__class__s       r    r5   z CompositionHookInstance.__init__1   sX    	!*1++m*D,3KK,H'.{{9'=0;0L0LKK'1
 1<0L0LKK'1
 #*++e"429++o2N;B;;$<
# :A^9T)0\)B$+KK$7	BI++hBW.5kk:K.L5<[[$6
# #*++e"4 3?$((
 ;?r   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: CompositionHookContext for this CompositionHookInstance
        r$   r$   )r9   CompositionHookContext_versionr8   r:   s    r    _proxyzCompositionHookInstance._proxyS   s9     == 2NN5)DM }}r   c                 6    | j                   j                         S )r
        Deletes the CompositionHookInstance


        :returns: True if delete succeeds, False otherwise
        )rB   deleterA   s    r    rE   zCompositionHookInstance.deleteb   s     {{!!##r   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine that deletes the CompositionHookInstance


        :returns: True if delete succeeds, False otherwise
        N)rB   delete_asyncrA   s    r    rH   z$CompositionHookInstance.delete_asynck   s!      [[--////   '%'c                 6    | j                   j                         S )k
        Fetch the CompositionHookInstance


        :returns: The fetched CompositionHookInstance
        )rB   fetchrA   s    r    rL   zCompositionHookInstance.fetcht   s     {{  ""r   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to fetch the CompositionHookInstance


        :returns: The fetched CompositionHookInstance
        N)rB   fetch_asyncrA   s    r    rO   z#CompositionHookInstance.fetch_async}   s!      [[,,....rI   r'   r(   r-   r+   r,   r/   r0   r   r.   r1   r2   c                 L    | j                   j                  |||||||||	|

      S )3  
        Update the CompositionHookInstance

        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to  100 characters long and it must be unique within the account.
        :param enabled: Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook never triggers.
        :param video_layout: A JSON object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
        :param audio_sources: An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`.
        :param audio_sources_excluded: An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty.
        :param trim: Whether to clip the intervals where there is no active media in the compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
        :param format:
        :param resolution: A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`.  The string's format is `{width}x{height}` where:   * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600  Typical values are:   * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240`  Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
        :param status_callback: The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched.
        :param status_callback_method: The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`.

        :returns: The updated CompositionHookInstance
        
r'   r(   r-   r+   r,   r/   r0   r.   r1   r2   )rB   updater:   r'   r(   r-   r+   r,   r/   r0   r.   r1   r2   s              r    rS   zCompositionHookInstance.update   s>    : {{!!'%'#9!+#9 " 
 	
r   c                 h   K   | j                   j                  |||||||||	|

       d{   S 7 w)M  
        Asynchronous coroutine to update the CompositionHookInstance

        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to  100 characters long and it must be unique within the account.
        :param enabled: Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook never triggers.
        :param video_layout: A JSON object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
        :param audio_sources: An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`.
        :param audio_sources_excluded: An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty.
        :param trim: Whether to clip the intervals where there is no active media in the compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
        :param format:
        :param resolution: A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`.  The string's format is `{width}x{height}` where:   * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600  Typical values are:   * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240`  Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
        :param status_callback: The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched.
        :param status_callback_method: The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`.

        :returns: The updated CompositionHookInstance
        rR   N)rB   update_asyncrT   s              r    rW   z$CompositionHookInstance.update_async   sL     : [[--'%'#9!+#9 . 
 
 	
 
s   )202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r0   .0kvs      r    	<genexpr>z3CompositionHookInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z,<Twilio.Video.V1.CompositionHookInstance {}>joinr8   itemsr0   r:   contexts     r    __repr__z CompositionHookInstance.__repr__   s6     ((SDNN<P<P<RSS=DDWMMr   N)r<   r?   )r<   r   )r   r   r   objectr!   r   r   strr   r   r5   propertyrB   boolrE   rH   rL   rO   r   unsetr   r   rS   rW   rj   __classcell__r;   s   @r    r   r      s    & OS ? ?)-c3h ?>Fsm ?D  $ $0D 0#/ (.||.4ll28,,;A<<$*LLBH,,)/.4ll5;\\(
(
 tV|$(
 FFN+	(

 T#Y./(
 !&d3i&7 8(
 D&L!(
 6>?(
 #v+&(
 sF{+(
 !&c6k 2(
 
#(
Z (.||.4ll28,,;A<<$*LLBH,,)/.4ll5;\\(
(
 tV|$(
 FFN+	(

 T#Y./(
 !&d3i&7 8(
 D&L!(
 6>?(
 #v+&(
 sF{+(
 !&c6k 2(
 
#(
TN# Nr   r   c                   (    e Zd Zdedef fdZdefdZdefdZde	fdZ
de	fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  f	d	ed
eeef   deeef   deee   ef   deee   ef   deeef   ded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                  f	d	e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f   dedef   deeef   deeef   deeef   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 CompositionHookContext

        :param version: Version that contains the resource
        :param sid: The SID of the CompositionHook resource to update.
        r$   z/CompositionHooks/{sid}Nr   )r4   r5   r8   r0   _uri)r:   r"   r$   r;   s      r    r5   zCompositionHookContext.__init__   s@     	! 3
 5-44Ft~~F	r   r<   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )rD   DELETEmethoduriheaders)r   ofr@   rE   ru   r:   r{   s     r    rE   zCompositionHookContext.delete   s1     ))B-}}##8G#TTr   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)rG   rw   rx   N)r   r|   r@   rH   ru   r}   s     r    rH   z#CompositionHookContext.delete_async  sF      ))B-]]//G 0 
 
 	
 
s   AA
AA
c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      }t        | j                  || j                  d         S )rK   application/jsonAcceptGETrx   r$   r>   )r   r|   r@   rL   ru   r   r8   r:   r{   r#   s      r    rL   zCompositionHookContext.fetch  s]     ))B-.--%%U		7%S&MMu%
 	
r   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   }t        | j                  || j                  d         S 7 )w)rN   r   r   r   rx   Nr$   r>   )r   r|   r@   rO   ru   r   r8   r   s      r    rO   z"CompositionHookContext.fetch_async#  sr      ))B-.11dii 2 
 
 'MMu%
 	
	
s   AA4A2	*A4r'   r(   r-   r+   r,   r/   r0   r   r.   r1   r2   c                    t        j                  |t        j                  |      t        j                  |      t        j
                  |d       t        j
                  |d       t        j                  |      |||	|
d
      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||	      }t        | j                  || j                  d
         S )rQ   c                     | S rk   r   es    r    <lambda>z/CompositionHookContext.update.<locals>.<lambda>\      q r   c                     | S rk   r   r   s    r    r   z/CompositionHookContext.update.<locals>.<lambda>^      a r   
FriendlyNameEnabledVideoLayoutAudioSourcesAudioSourcesExcludedTrimr!   
ResolutionStatusCallbackStatusCallbackMethod!application/x-www-form-urlencodedContent-Typer   r   POSTry   rz   datar{   r$   r>   )r   r|   r   boolean_to_stringrl   mapr@   rS   ru   r   r8   r:   r'   r(   r-   r+   r,   r/   r0   r.   r1   r2   r   r{   r#   s                 r    rS   zCompositionHookContext.update9  s    < yy -$66w?(//= )m[ I(1*K) "33D9 ("1(>
  ))B-"E.--&&tyytW ' 
 'MM7u(=
 	
r   c                   K   t        j                  |t        j                  |      t        j                  |      t        j
                  |d       t        j
                  |d       t        j                  |      |||	|
d
      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||	       d
{   }t        | j                  || j                  d         S 7 )w)rV   c                     | S rk   r   r   s    r    r   z5CompositionHookContext.update_async.<locals>.<lambda>  r   r   c                     | S rk   r   r   s    r    r   z5CompositionHookContext.update_async.<locals>.<lambda>  r   r   r   r   r   r   r   r   r   Nr$   r>   )r   r|   r   r   rl   r   r@   rW   ru   r   r8   r   s                 r    rW   z#CompositionHookContext.update_asyncu  s     < yy -$66w?(//= )m[ I(1*K) "33D9 ("1(>
  ))B-"E.22tyytW 3 
 
 'MM7u(=
 	
	
s   CC=C;*C=c                     dj                  d | j                  j                         D              }dj                  |      S )rY   rZ   c              3   F   K   | ]  \  }}d j                  ||        ywr\   r]   r^   s      r    rb   z2CompositionHookContext.__repr__.<locals>.<genexpr>  rc   rd   z+<Twilio.Video.V1.CompositionHookContext {}>re   rh   s     r    rj   zCompositionHookContext.__repr__  s6     ((SDNN<P<P<RSS<CCGLLr   )r   r   r   r   rm   r5   ro   rE   rH   r   rL   rO   r   rp   r   rl   r   rS   rW   rj   rq   rr   s   @r    r?   r?      s{   G Gc G
U 
U
D 

. 
(
#: 
2 (.||.4ll28,,;A<<$*LLBH,,)/.4ll5;\\:
:
 tV|$:
 FFN+	:

 T#Y./:
 !&d3i&7 8:
 D&L!:
 6>?:
 #v+&:
 sF{+:
 !&c6k 2:
 
!:
~ (.||.4ll28,,;A<<$*LLBH,,)/.4ll5;\\:
:
 tV|$:
 FFN+	:

 T#Y./:
 !&d3i&7 8:
 D&L!:
 6>?:
 #v+&:
 sF{+:
 !&c6k 2:
 
!:
xM# Mr   r?   c                   2    e Zd Zdeeef   defdZdefdZy)CompositionHookPager#   r<   c                 .    t        | j                  |      S )zu
        Build an instance of CompositionHookInstance

        :param payload: Payload response from the API
        )r   r@   )r:   r#   s     r    get_instancez CompositionHookPage.get_instance  s     't}}g>>r   c                      y)rY   z%<Twilio.Video.V1.CompositionHookPage>r   rA   s    r    rj   zCompositionHookPage.__repr__       7r   N)	r   r   r   r   rm   r   r   r   rj   r   r   r    r   r     s*    ?DcN ?7N ?7# 7r   r   c                   8    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                  f	de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
f   d	ed
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                  f	de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
f   d	ed
e
f   deee
f   deee
f   dee	e
f   defdZej                  ej                  ej                  ej                  ddfdee	e
f   deee
f   deee
f   deee
f   dee   dee   dee   fdZej                  ej                  ej                  ej                  ddfdee	e
f   deee
f   deee
f   deee
f   dee   dee   dee   fdZej                  ej                  ej                  ej                  ddfdee	e
f   deee
f   deee
f   deee
f   dee   dee   dee   fdZej                  ej                  ej                  ej                  ddfdee	e
f   deee
f   deee
f   deee
f   dee   dee   dee   fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  fdee	e
f   deee
f   deee
f   deee
f   deee
f   deee
f   deee
f   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  fdee	e
f   deee
f   deee
f   deee
f   deee
f   deee
f   deee
f   defdZdedefdZdedefd Zd!edefd"Zd!edefd#Zdefd$Z  xZ!S )%CompositionHookListr"   c                 2    t         |   |       d| _        y)zq
        Initialize the CompositionHookList

        :param version: Version that contains the resource

        z/CompositionHooksN)r4   r5   ru   )r:   r"   r;   s     r    r5   zCompositionHookList.__init__  s     	!'	r   r'   r(   r-   r+   r,   r.   r0   r   r1   r2   r/   r<   c                    t        j                  |t        j                  |      t        j                  |      t        j
                  |d       t        j
                  |d       ||||	t        j                  |
      d
      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||	      }t        | j                  |      S )
a8  
        Create the CompositionHookInstance

        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to  100 characters long and it must be unique within the account.
        :param enabled: Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook will never be triggered.
        :param video_layout: An object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
        :param audio_sources: An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`.
        :param audio_sources_excluded: An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty.
        :param resolution: A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`.  The string's format is `{width}x{height}` where:   * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600  Typical values are:   * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240`  Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
        :param format:
        :param status_callback: The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched.
        :param status_callback_method: The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`.
        :param trim: Whether to clip the intervals where there is no active media in the Compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.

        :returns: The created CompositionHookInstance
        c                     | S rk   r   r   s    r    r   z,CompositionHookList.create.<locals>.<lambda>  r   r   c                     | S rk   r   r   s    r    r   z,CompositionHookList.create.<locals>.<lambda>   r   r   
r   r   r   r   r   r   r!   r   r   r   r   r   r   r   r   r   )
r   r|   r   r   rl   r   r@   createru   r   r:   r'   r(   r-   r+   r,   r.   r0   r1   r2   r/   r   r{   r#   s                 r    r   zCompositionHookList.create  s    < yy -$66w?(//= )m[ I(1*K) ) "1(>!33D9
  ))^-PQR"E.--&&tyytW ' 
 't}}g>>r   c                   K   t        j                  |t        j                  |      t        j                  |      t        j
                  |d       t        j
                  |d       ||||	t        j                  |
      d
      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||	       d
{   }t        | j                  |      S 7 w)aG  
        Asynchronously create the CompositionHookInstance

        :param friendly_name: A descriptive string that you create to describe the resource. It can be up to  100 characters long and it must be unique within the account.
        :param enabled: Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook will never be triggered.
        :param video_layout: An object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
        :param audio_sources: An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`.
        :param audio_sources_excluded: An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty.
        :param resolution: A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`.  The string's format is `{width}x{height}` where:   * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600  Typical values are:   * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240`  Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
        :param format:
        :param status_callback: The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched.
        :param status_callback_method: The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`.
        :param trim: Whether to clip the intervals where there is no active media in the Compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.

        :returns: The created CompositionHookInstance
        c                     | S rk   r   r   s    r    r   z2CompositionHookList.create_async.<locals>.<lambda>8  r   r   c                     | S rk   r   r   s    r    r   z2CompositionHookList.create_async.<locals>.<lambda>:  r   r   r   r   r   r   r   r   r   N)
r   r|   r   r   rl   r   r@   create_asyncru   r   r   s                 r    r   z CompositionHookList.create_async  s     < yy -$66w?(//= )m[ I(1*K) ) "1(>!33D9
  ))^-PQR"E.22tyytW 3 
 
 't}}g>>	
s   CC0C.C0Ndate_created_afterdate_created_beforelimit	page_sizec                     | j                   j                  ||      }| j                  |||||d         }| j                   j                  ||d         S )a  
        Streams CompositionHookInstance 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 bool enabled: Read only CompositionHook resources with an `enabled` value that matches this parameter.
        :param datetime date_created_after: Read only CompositionHook resources created on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
        :param datetime date_created_before: Read only CompositionHook resources created before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
        :param str friendly_name: Read only CompositionHook resources with friendly names that match this string. The match is not case sensitive and can include asterisk `*` characters as wildcard match.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   r(   r   r   r'   r   r   )r@   read_limitspagestream	r:   r(   r   r   r'   r   r   limitsr   s	            r    r   zCompositionHookList.streamO  s^    8 **5)<yy1 3'[)  
 }}##D&/::r   c                    K   | j                   j                  ||      }| j                  |||||d          d{   }| j                   j                  ||d         S 7 #w)a  
        Asynchronously streams CompositionHookInstance 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 bool enabled: Read only CompositionHook resources with an `enabled` value that matches this parameter.
        :param datetime date_created_after: Read only CompositionHook resources created on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
        :param datetime date_created_before: Read only CompositionHook resources created before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
        :param str friendly_name: Read only CompositionHook resources with friendly names that match this string. The match is not case sensitive and can include asterisk `*` characters as wildcard match.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   r   Nr   )r@   r   
page_asyncstream_asyncr   s	            r    r   z CompositionHookList.stream_asyncv  sl     8 **5)<__1 3'[) % 
 
 }}))$w@@
s   9A!A$A!c           
      B    t        | j                  ||||||            S )a  
        Lists CompositionHookInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param bool enabled: Read only CompositionHook resources with an `enabled` value that matches this parameter.
        :param datetime date_created_after: Read only CompositionHook resources created on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
        :param datetime date_created_before: Read only CompositionHook resources created before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
        :param str friendly_name: Read only CompositionHook resources with friendly names that match this string. The match is not case sensitive and can include asterisk `*` characters as wildcard match.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r(   r   r   r'   r   r   )listr   )r:   r(   r   r   r'   r   r   s          r    r   zCompositionHookList.list  s4    6 KK#5$7+#  	
 		
r   c                    K   | j                  ||||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists CompositionHookInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param bool enabled: Read only CompositionHook resources with an `enabled` value that matches this parameter.
        :param datetime date_created_after: Read only CompositionHook resources created on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
        :param datetime date_created_before: Read only CompositionHook resources created before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
        :param str friendly_name: Read only CompositionHook resources with friendly names that match this string. The match is not case sensitive and can include asterisk `*` characters as wildcard match.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r   N)r   )r:   r(   r   r   r'   r   r   records           r    
list_asynczCompositionHookList.list_async  s`     : '+&7&7#5$7+# '8 ' !

 

 !

 

 
	
 

s0   ?2?:64
6:?6:?
page_tokenpage_numberc           
      d   t        j                  t        j                  |      t        j                  |      t        j                  |      ||||d      }t        j                  ddi      }	d|	d<   | j
                  j                  d| j                  ||	      }
t        | j
                  |
      S )a  
        Retrieve a single page of CompositionHookInstance records from the API.
        Request is executed immediately

        :param enabled: Read only CompositionHook resources with an `enabled` value that matches this parameter.
        :param date_created_after: Read only CompositionHook resources created on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
        :param date_created_before: Read only CompositionHook resources created before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
        :param friendly_name: Read only CompositionHook resources with friendly names that match this string. The match is not case sensitive and can include asterisk `*` characters as wildcard match.
        :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 CompositionHookInstance
        r   DateCreatedAfterDateCreatedBeforer   	PageTokenr   PageSizer   r   r   r   r   ry   rz   paramsr{   )	r   r|   r   r   r7   r@   r   ru   r   r:   r(   r   r   r'   r   r   r   r   r{   responses              r    r   zCompositionHookList.page  s    0 yy$66w?$-$>$>?Q$R%.%?%?@S%T -'#%

 ))^-PQR.==%%diig & 
 #4==(;;r   c           
        K   t        j                  t        j                  |      t        j                  |      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 CompositionHookInstance records from the API.
        Request is executed immediately

        :param enabled: Read only CompositionHook resources with an `enabled` value that matches this parameter.
        :param date_created_after: Read only CompositionHook resources created on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
        :param date_created_before: Read only CompositionHook resources created before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone.
        :param friendly_name: Read only CompositionHook resources with friendly names that match this string. The match is not case sensitive and can include asterisk `*` characters as wildcard match.
        :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 CompositionHookInstance
        r   r   r   r   r   r   r   N)	r   r|   r   r   r7   r@   r   ru   r   r   s              r    r   zCompositionHookList.page_async  s     0 yy$66w?$-$>$>?Q$R%.%?%?@S%T -'#%

 ))^-PQR.11diig 2 
 
 #4==(;;
s   BB>!B<"B>
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )a  
        Retrieve a specific page of CompositionHookInstance records from the API.
        Request is executed immediately

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

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

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

        :returns: Page of CompositionHookInstance
        r   N)r@   r   r   request_asyncr   r   s      r    get_page_asyncz"CompositionHookList.get_page_asyncP  sD      --44BB5*UU"4==(;; Vs   4AAAr$   c                 0    t        | j                  |      S z}
        Constructs a CompositionHookContext

        :param sid: The SID of the CompositionHook resource to update.
        r>   r?   r@   r:   r$   s     r    r6   zCompositionHookList.get\       &dmm==r   c                 0    t        | j                  |      S r   r   r   s     r    __call__zCompositionHookList.__call__d  r   r   c                      y)rY   z%<Twilio.Video.V1.CompositionHookList>r   rA   s    r    rj   zCompositionHookList.__repr__l  r   r   )"r   r   r   r   r5   r   rp   rm   r   ro   rl   r   r   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r?   r6   r   rj   rq   rr   s   @r    r   r     s   	( 	( (.||.4ll28,,;A<<)/BH,,.4ll5;\\$*LL8?8? tV|$8? FFN+	8?
 T#Y./8? !&d3i&7 88? #v+&8? 6>?8? sF{+8? !&c6k 28? D&L!8? 
!8?z (.||.4ll28,,;A<<)/BH,,.4ll5;\\$*LL8?8? tV|$8? FFN+	8?
 T#Y./8? !&d3i&7 88? #v+&8? 6>?8? sF{+8? !&c6k 28? D&L!8? 
!8?x (.||6<ll7=||,2LL##'%;tV|$%; "(F"23%; #8V#34	%;
 S&[)%; }%; C=%; 
)	*%;R (.||6<ll7=||,2LL##'%AtV|$%A "(F"23%A #8V#34	%A
 S&[)%A }%A C=%A 
.	/%AR (.||6<ll7=||,2LL##'$
tV|$$
 "(F"23$
 #8V#34	$

 S&[)$
 }$
 C=$
 
%	&$
P (.||6<ll7=||,2LL##'%
tV|$%
 "(F"23%
 #8V#34	%

 S&[)%
 }%
 C=%
 
%	&%
R (.||6<ll7=||,2LL)/*0,,(.+<tV|$+< "(F"23+< #8V#34	+<
 S&[)+< #v+&+< 3;'+< f%+< 
+<^ (.||6<ll7=||,2LL)/*0,,(.+<tV|$+< "(F"23+< #8V#34	+<
 S&[)+< #v+&+< 3;'+< f%+< 
+<Z
<3 
<+> 
<
<s 
<7J 
<>s >5 >>C >$: >7# 7r   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r?   r   r   r   r   r    <module>r      sj     L L L 6 6 8 : 2 ' !HN. HNVTM_ TMn7$ 7&d7, d7r   