
    i?1i6                         d Z ddl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  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.
    )AnyDictOptionalUnion)values)InstanceContext)InstanceResource)ListResource)Versionc                       e Zd ZdZdedeeef   f fdZe	dd       Z
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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                  fde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d fdZddZddZdefdZ xZS )CompositionSettingsInstanceaj  
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CompositionSettings resource.
    :ivar friendly_name: The string that you assigned to describe the resource and that will be shown in the console
    :ivar aws_credentials_sid: The SID of the stored Credential resource.
    :ivar aws_s3_url: The URL of the AWS S3 bucket where the compositions are stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the <a href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
    :ivar aws_storage_enabled: Whether all compositions are written to the `aws_s3_url`. When `false`, all compositions are stored in our cloud.
    :ivar encryption_key_sid: The SID of the Public Key resource used for encryption.
    :ivar encryption_enabled: Whether all compositions are stored in an encrypted form. The default is `false`.
    :ivar url: The absolute URL of the resource.
    versionpayloadc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        |j                  d      | _
        d | _        y )	Naccount_sidfriendly_nameaws_credentials_sid
aws_s3_urlaws_storage_enabledencryption_key_sidencryption_enabledurl)super__init__getr   r   r   r   r   r   r   r   _context)selfr   r   	__class__s      s/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/twilio/rest/video/v1/composition_settings.pyr   z$CompositionSettingsInstance.__init__%   s    !*1++m*D,3KK,H29++>S2T )0\)B3:;;?T3U 18=Q1R29++>R2S")++e"4>B    returnc                 f    | j                   t        | j                        | _         | j                   S )a  
        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
        )r   CompositionSettingsContext_versionr   s    r   _proxyz"CompositionSettingsInstance._proxy3   s-     == 6DM }}r    r   r   r   r   r   r   c                 D    | j                   j                  ||||||      S )T  
        Create the CompositionSettingsInstance

        :param friendly_name: A descriptive string that you create to describe the resource and show to the user in the console
        :param aws_credentials_sid: The SID of the stored Credential resource.
        :param encryption_key_sid: The SID of the Public Key resource to use for encryption.
        :param aws_s3_url: The URL of the AWS S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the <a href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
        :param aws_storage_enabled: Whether all compositions should be written to the `aws_s3_url`. When `false`, all compositions are stored in our cloud.
        :param encryption_enabled: Whether all compositions should be stored in an encrypted form. The default is `false`.

        :returns: The created CompositionSettingsInstance
        r   r   r   r   r   )r&   creater   r   r   r   r   r   r   s          r   r*   z"CompositionSettingsInstance.createA   s2    * {{!! 31! 31 " 
 	
r    c                 `   K   | j                   j                  ||||||       d{   S 7 w)n  
        Asynchronous coroutine to create the CompositionSettingsInstance

        :param friendly_name: A descriptive string that you create to describe the resource and show to the user in the console
        :param aws_credentials_sid: The SID of the stored Credential resource.
        :param encryption_key_sid: The SID of the Public Key resource to use for encryption.
        :param aws_s3_url: The URL of the AWS S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the <a href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
        :param aws_storage_enabled: Whether all compositions should be written to the `aws_s3_url`. When `false`, all compositions are stored in our cloud.
        :param encryption_enabled: Whether all compositions should be stored in an encrypted form. The default is `false`.

        :returns: The created CompositionSettingsInstance
        r)   N)r&   create_asyncr+   s          r   r.   z(CompositionSettingsInstance.create_async_   s@     * [[-- 31! 31 . 
 
 	
 
s   %.,.c                 6    | j                   j                         S )s
        Fetch the CompositionSettingsInstance


        :returns: The fetched CompositionSettingsInstance
        )r&   fetchr%   s    r   r1   z!CompositionSettingsInstance.fetch}   s     {{  ""r    c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to fetch the CompositionSettingsInstance


        :returns: The fetched CompositionSettingsInstance
        N)r&   fetch_asyncr%   s    r   r4   z'CompositionSettingsInstance.fetch_async   s!      [[,,....s   '%'c                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z-<Twilio.Video.V1.CompositionSettingsInstance> r%   s    r   __repr__z$CompositionSettingsInstance.__repr__   s     ?r    )r!   r#   )r!   r   )__name__
__module____qualname____doc__r   r   strr   r   propertyr&   r   unsetr   objectboolr*   r.   r1   r4   r8   __classcell__r   s   @r   r   r      s   	C C$sCx. C    39,,17)/39<<28,,

 #3;/
 "#v+.	

 #v+&
 #4<0
 "$,/
 
'
B 39,,17)/39<<28,,

 #3;/
 "#v+.	

 #v+&
 #4<0
 "$,/
 
'
<#/?# ?r    r   c                       e Zd Zdef fdZ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	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                  fde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fdZd	efdZd	efdZ xZS )r#   r   c                 2    t         |   |       d| _        y)zw
        Initialize the CompositionSettingsContext

        :param version: Version that contains the resource
        z/CompositionSettings/DefaultN)r   r   _urir   r   r   s     r   r   z#CompositionSettingsContext.__init__   s     	!2	r    r   r   r   r   r   r   r!   c           	          t        j                  ||||||d      }| j                  j                  d| j                  |      }t        | j                  |      S )r(   FriendlyNameAwsCredentialsSidEncryptionKeySidAwsS3UrlAwsStorageEnabledEncryptionEnabledPOSTmethoduridata)r   ofr$   r*   rF   r   	r   r   r   r   r   r   r   rT   r   s	            r   r*   z!CompositionSettingsContext.create   s[    * yy -%8$6&%8%7	
 --&&f$))$&O*4=='BBr    c           	         K   t        j                  ||||||d      }| j                  j                  d| j                  |       d{   }t        | j                  |      S 7 w)r-   rI   rP   rQ   N)r   rU   r$   r.   rF   r   rV   s	            r   r.   z'CompositionSettingsContext.create_async   sp     * yy -%8$6&%8%7	
 22tyyt 3 
 
 +4=='BB	
s   AA'
A%A'c                 |    | j                   j                  d| j                        }t        | j                   |      S )r0   GETrR   rS   )r$   r1   rF   r   r   r   s     r   r1   z CompositionSettingsContext.fetch   s@     --%%		 & 

 +MM
 	
r    c                    K   | j                   j                  d| j                         d{   }t        | j                   |      S 7 w)r3   rY   rZ   N)r$   r4   rF   r   r[   s     r   r4   z&CompositionSettingsContext.fetch_async   sN      11		 2 
 

 +MM
 	

s   +A
AA
c                      y)r6   z,<Twilio.Video.V1.CompositionSettingsContext>r7   r%   s    r   r8   z#CompositionSettingsContext.__repr__  s     >r    )r9   r:   r;   r   r   r   r?   r=   r   r@   rA   r   r*   r.   r1   r4   r8   rB   rC   s   @r   r#   r#      s}   3 3 39,,17)/39<<28,,"C"C #3;/"C "#v+.	"C
 #v+&"C #4<0"C "$,/"C 
%"CN 39,,17)/39<<28,,$C$C #3;/$C "#v+.	$C
 #v+&$C #4<0$C "$,/$C 
%$CL
2 
$
#> 
$># >r    r#   c                   H     e Zd Zdef fdZdefdZdefdZdefdZ	 xZ
S )CompositionSettingsListr   c                 $    t         |   |       y)zu
        Initialize the CompositionSettingsList

        :param version: Version that contains the resource

        N)r   r   rG   s     r   r   z CompositionSettingsList.__init__  s     	!r    r!   c                 ,    t        | j                        S z:
        Constructs a CompositionSettingsContext

        r#   r$   r%   s    r   r   zCompositionSettingsList.get&      
 *$--88r    c                 ,    t        | j                        S rb   rc   r%   s    r   __call__z CompositionSettingsList.__call__-  rd   r    c                      y)r6   z)<Twilio.Video.V1.CompositionSettingsList>r7   r%   s    r   r8   z CompositionSettingsList.__repr__4  s     ;r    )r9   r:   r;   r   r   r#   r   rf   r=   r8   rB   rC   s   @r   r_   r_     s5    " "9/ 994 9;# ;r    r_   N)r<   typingr   r   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r#   r_   r7   r    r   <module>rn      sL    . -  8 : 2 '~?"2 ~?B@> @>F;l ;r    