
    g                         S r SSK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\
5      r " S	 S
\5      rg)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - Accounts
 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)	serializevalues)InstanceResource)ListResource)Versionc                   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$ )	BulkConsentsInstance   a  
:ivar items: A list of objects where each object represents the result of processing a `correlation_id`. Each object contains the following fields: `correlation_id`, a unique 32-character UUID that maps the response to the original request; `error_code`, an integer where 0 indicates success and any non-zero value represents an error; and `error_messages`, an array of strings describing specific validation errors encountered. If the request is successful, the error_messages array will be empty.
versionpayloadc                 P   > [         TU ]  U5        UR                  S5      U l        g )Nitems)super__init__getr   )selfr   r   	__class__s      m/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/accounts/v1/bulk_consents.pyr   BulkConsentsInstance.__init__   s     !29++g2F
    returnc                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z)<Twilio.Accounts.V1.BulkConsentsInstance> r   s    r   __repr__BulkConsentsInstance.__repr__!   s     ;r   )r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r    __static_attributes____classcell__r   s   @r   r   r      s7    G G$sCx. G
;# ; ;r   r   c                   n   ^  \ rS rSrS\4U 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$ )
BulkConsentsList+   r   c                 2   > [         TU ]  U5        SU l        g)zV
Initialize the BulkConsentsList

:param version: Version that contains the resource

z/Consents/BulkN)r   r   _uri)r   r   r   s     r   r   BulkConsentsList.__init__-   s     	!$	r   r   r   c                    [         R                  " S[        R                  " US 5      05      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  X#S9n[        U R                  U5      $ )	a  
Create the BulkConsentsInstance

:param items: This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`].

:returns: The created BulkConsentsInstance
Itemsc                 .    [         R                  " U 5      $ Nr   objectes    r   <lambda>)BulkConsentsList.create.<locals>.<lambda>C       	8H8H8Kr   Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r   ofr   map_versioncreater/   r   r   r   rD   rE   r   s        r   rI   BulkConsentsList.create8   s     yyu.KL

 ))^-PQR"E.--&&tyyt ' 
 $DMM7;;r   c                 4  #    [         R                  " S[        R                  " US 5      05      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  X#S9I S	h  vN n[        U R                  U5      $  N7f)
a"  
Asynchronously create the BulkConsentsInstance

:param items: This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`].

:returns: The created BulkConsentsInstance
r2   c                 .    [         R                  " U 5      $ r4   r5   r7   s    r   r9   /BulkConsentsList.create_async.<locals>.<lambda>]   r;   r   r<   r=   r>   r?   r@   rA   N)r   rF   r   rG   rH   create_asyncr/   r   rJ   s        r   rO   BulkConsentsList.create_asyncR   s      yyu.KL

 ))^-PQR"E.22tyyt 3 
 
 $DMM7;;	
s   A9B;B<Bc                     g)r   z%<Twilio.Accounts.V1.BulkConsentsList>r   r   s    r   r    BulkConsentsList.__repr__l   s     7r   )r/   )r"   r#   r$   r%   r   r   r   r6   r   rI   rO   r'   r    r(   r)   r*   s   @r   r,   r,   +   sP    	% 	%<DL <-A <4<V <9M <47# 7 7r   r,   N)r&   typingr   r   r   r   twilio.baser   r   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r,   r   r   r   <module>rX      s9    - , ) : 2 ';+ ;(G7| G7r   