o
    �¨ÊhÈ1  ã                   @   s„   d 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„ deƒZG d	d
„ d
e
ƒZG dd„ deƒZG dd„ deƒZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
é    )Úvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚPagec                       s8   e Zd ZdZ‡ fdd„Zdd„ Zdd„ Zdd	„ Z‡  ZS )
ÚCompositionSettingsListúÉ PLEASE NOTE that this class contains preview products that are subject
    to change. Use them with caution. If you currently do not have developer
    preview access, please contact help@twilio.com. c                    s   t t| ƒ |¡ i | _dS )a#  
        Initialize the CompositionSettingsList

        :param Version version: Version that contains the resource

        :returns: twilio.rest.video.v1.composition_settings.CompositionSettingsList
        :rtype: twilio.rest.video.v1.composition_settings.CompositionSettingsList
        N)Úsuperr   Ú__init__Ú	_solution©ÚselfÚversion©Ú	__class__© ú[/var/www/html/env/lib/python3.10/site-packages/twilio/rest/video/v1/composition_settings.pyr
      s   	
z CompositionSettingsList.__init__c                 C   ó
   t | jƒS ©zæ
        Constructs a CompositionSettingsContext

        :returns: twilio.rest.video.v1.composition_settings.CompositionSettingsContext
        :rtype: twilio.rest.video.v1.composition_settings.CompositionSettingsContext
        ©ÚCompositionSettingsContextÚ_version©r   r   r   r   Úget#   ó   
zCompositionSettingsList.getc                 C   r   r   r   r   r   r   r   Ú__call__,   r   z CompositionSettingsList.__call__c                 C   ó   dS )úz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z)<Twilio.Video.V1.CompositionSettingsList>r   r   r   r   r   Ú__repr__5   ó   z CompositionSettingsList.__repr__)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   r   r   Ú__classcell__r   r   r   r   r      s    		r   c                       s0   e Zd ZdZ‡ fdd„Zdd„ Zdd„ Z‡  ZS )ÚCompositionSettingsPager   c                    s   t t| ƒ ||¡ || _dS )a[  
        Initialize the CompositionSettingsPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API

        :returns: twilio.rest.video.v1.composition_settings.CompositionSettingsPage
        :rtype: twilio.rest.video.v1.composition_settings.CompositionSettingsPage
        N)r	   r%   r
   r   )r   r   ÚresponseÚsolutionr   r   r   r
   D   s   

z CompositionSettingsPage.__init__c                 C   s   t | j|ƒS )a-  
        Build an instance of CompositionSettingsInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.video.v1.composition_settings.CompositionSettingsInstance
        :rtype: twilio.rest.video.v1.composition_settings.CompositionSettingsInstance
        )ÚCompositionSettingsInstancer   )r   Úpayloadr   r   r   Úget_instanceS   s   	z$CompositionSettingsPage.get_instancec                 C   r   )r   z)<Twilio.Video.V1.CompositionSettingsPage>r   r   r   r   r   r   ^   r   z CompositionSettingsPage.__repr__)r    r!   r"   r#   r
   r*   r   r$   r   r   r   r   r%   ?   s
    r%   c                       sN   e Zd ZdZ‡ fdd„Zdd„ Zejejejejejfdd„Zdd	„ Z	‡  Z
S )
r   r   c                    s.   t t| ƒ |¡ i | _djdi | j¤Ž| _dS )a,  
        Initialize the CompositionSettingsContext

        :param Version version: Version that contains the resource

        :returns: twilio.rest.video.v1.composition_settings.CompositionSettingsContext
        :rtype: twilio.rest.video.v1.composition_settings.CompositionSettingsContext
        z/CompositionSettings/DefaultNr   )r	   r   r
   r   ÚformatÚ_urir   r   r   r   r
   m   s   	z#CompositionSettingsContext.__init__c                 C   s*   t  i ¡}| jjd| j|d�}t| j|ƒS )úÂ
        Fetch a CompositionSettingsInstance

        :returns: Fetched CompositionSettingsInstance
        :rtype: twilio.rest.video.v1.composition_settings.CompositionSettingsInstance
        ÚGET)Úparams)r   Úofr   Úfetchr,   r(   )r   r/   r)   r   r   r   r1   |   s   
ýz CompositionSettingsContext.fetchc           	   	   C   s8   t  ||||||dœ¡}| jjd| j|d�}t| j|ƒS )á4  
        Create a new CompositionSettingsInstance

        :param unicode friendly_name: Friendly name of the configuration to be shown in the console
        :param unicode aws_credentials_sid: SID of the Stored Credential resource CRxx
        :param unicode encryption_key_sid: SID of the Public Key resource CRxx
        :param unicode aws_s3_url: Identity of the external location where the compositions should be stored. We only support DNS-compliant URLs like http://<my-bucket>.s3-<aws-region>.amazonaws.com/compositions, where compositions is the path where you want compositions to be stored.
        :param bool aws_storage_enabled: true|false When set to true, all Compositions will be written to the AwsS3Url specified above. When set to false, all Compositions will be stored in Twilio's cloud.
        :param bool encryption_enabled: true|false When set to true, all Compositions will be stored encrypted.

        :returns: Newly created CompositionSettingsInstance
        :rtype: twilio.rest.video.v1.composition_settings.CompositionSettingsInstance
        )ÚFriendlyNameÚAwsCredentialsSidÚEncryptionKeySidÚAwsS3UrlÚAwsStorageEnabledÚEncryptionEnabledÚPOST)Údata)r   r0   r   Úcreater,   r(   )	r   Úfriendly_nameÚaws_credentials_sidÚencryption_key_sidÚ
aws_s3_urlÚaws_storage_enabledÚencryption_enabledr:   r)   r   r   r   r;   �   s   ú	ýz!CompositionSettingsContext.createc                 C   ó$   d  dd„ | j ¡ D ƒ¡}d |¡S )r   ú c                 s   ó    � | ]\}}d   ||¡V  qdS ©z{}={}N©r+   ©Ú.0ÚkÚvr   r   r   Ú	<genexpr>µ   ó   € z6CompositionSettingsContext.__repr__.<locals>.<genexpr>z/<Twilio.Video.V1.CompositionSettingsContext {}>©Újoinr   Úitemsr+   ©r   Úcontextr   r   r   r   ®   ó   
z#CompositionSettingsContext.__repr__)r    r!   r"   r#   r
   r1   r   Úunsetr;   r   r$   r   r   r   r   r   h   s    
þ!r   c                       sº   e Zd ZdZ‡ fdd„Zedd„ ƒZedd„ ƒZedd	„ ƒZed
d„ ƒZ	edd„ ƒZ
edd„ ƒZedd„ ƒZedd„ ƒZedd„ ƒZdd„ Zejejejejejfdd„Zdd„ Z‡  ZS )r(   r   c              	      sX   t t| ƒ |¡ |d |d |d |d |d |d |d |d d	œ| _d
| _i | _d
S )zë
        Initialize the CompositionSettingsInstance

        :returns: twilio.rest.video.v1.composition_settings.CompositionSettingsInstance
        :rtype: twilio.rest.video.v1.composition_settings.CompositionSettingsInstance
        Úaccount_sidr<   r=   r?   r@   r>   rA   Úurl)rT   r<   r=   r?   r@   r>   rA   rU   N)r	   r(   r
   Ú_propertiesÚ_contextr   )r   r   r)   r   r   r   r
   ¾   s   ø
z$CompositionSettingsInstance.__init__c                 C   s   | j du rt| jƒ| _ | j S )aW  
        Generate an instance context for the instance, the context is capable of
        performing various actions.  All instance actions are proxied to the context

        :returns: CompositionSettingsContext for this CompositionSettingsInstance
        :rtype: twilio.rest.video.v1.composition_settings.CompositionSettingsContext
        N)rW   r   r   r   r   r   r   Ú_proxy×   s   
	z"CompositionSettingsInstance._proxyc                 C   ó
   | j d S )zd
        :returns: The Twilio Account SID associated with this item
        :rtype: unicode
        rT   ©rV   r   r   r   r   rT   ä   ó   
z'CompositionSettingsInstance.account_sidc                 C   rY   )zq
        :returns: Friendly name of the configuration to be shown in the console
        :rtype: unicode
        r<   rZ   r   r   r   r   r<   ì   r[   z)CompositionSettingsInstance.friendly_namec                 C   rY   )z^
        :returns: SID of the Stored Credential resource CRxx
        :rtype: unicode
        r=   rZ   r   r   r   r   r=   ô   r[   z/CompositionSettingsInstance.aws_credentials_sidc                 C   rY   )a!  
        :returns: URL of the S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like http://<my-bucket>.s3-<aws-region>.amazonaws.com/compositions, where compositions is the path where you want compositions to be stored.
        :rtype: unicode
        r?   rZ   r   r   r   r   r?   ü   r[   z&CompositionSettingsInstance.aws_s3_urlc                 C   rY   )zÕ
        :returns: true|false When set to true, all Compositions will be written to the AwsS3Url specified above. When set to false, all Compositions will be stored in Twilio's cloud.
        :rtype: bool
        r@   rZ   r   r   r   r   r@     r[   z/CompositionSettingsInstance.aws_storage_enabledc                 C   rY   )zW
        :returns: SID of the Public Key resource CRxx
        :rtype: unicode
        r>   rZ   r   r   r   r   r>     r[   z.CompositionSettingsInstance.encryption_key_sidc                 C   rY   )zx
        :returns: true|false When set to true, all Compositions will be stored encrypted.
        :rtype: bool
        rA   rZ   r   r   r   r   rA     r[   z.CompositionSettingsInstance.encryption_enabledc                 C   rY   )z;
        :returns: The url
        :rtype: unicode
        rU   rZ   r   r   r   r   rU     r[   zCompositionSettingsInstance.urlc                 C   s
   | j  ¡ S )r-   )rX   r1   r   r   r   r   r1   $  r   z!CompositionSettingsInstance.fetchc                 C   s   | j j||||||d�S )r2   )r=   r>   r?   r@   rA   )rX   r;   )r   r<   r=   r>   r?   r@   rA   r   r   r   r;   -  s   úz"CompositionSettingsInstance.createc                 C   rB   )r   rC   c                 s   rD   rE   rF   rG   r   r   r   rK   M  rL   z7CompositionSettingsInstance.__repr__.<locals>.<genexpr>z0<Twilio.Video.V1.CompositionSettingsInstance {}>rM   rP   r   r   r   r   F  rR   z$CompositionSettingsInstance.__repr__)r    r!   r"   r#   r
   ÚpropertyrX   rT   r<   r=   r?   r@   r>   rA   rU   r1   r   rS   r;   r   r$   r   r   r   r   r(   ¹   s6    








	
þr(   N)r#   Útwilio.baser   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.pager   r   r%   r   r(   r   r   r   r   Ú<module>   s   /)Q