
    g                         S r SSKJr  SSKJrJrJrJr  SSKJr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 - Messaging
 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OptionalUnion)deserialize	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$ )	ExternalCampaignInstance   aR  
:ivar sid: The unique string that identifies a US A2P Compliance resource `QE2c6890da8086d771620e9b13fadeba0b`.
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the Campaign belongs to.
:ivar campaign_id: ID of the preregistered campaign.
:ivar messaging_service_sid: The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with.
:ivar date_created: The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
versionpayloadc                 (  > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        [        R                  " UR                  S5      5      U l	        g )Nsidaccount_sidcampaign_idmessaging_service_siddate_created)
super__init__getr   r   r   r   r   iso8601_datetimer   )selfr   r   	__class__s      r/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/messaging/v1/external_campaign.pyr   !ExternalCampaignInstance.__init__!   ss    !")++e"4*1++m*D*1++m*D4;KK@W4X"0;0L0LKK'1
    returnc                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z.<Twilio.Messaging.V1.ExternalCampaignInstance> r   s    r   __repr__!ExternalCampaignInstance.__repr__,   s     @r!   )r   r   r   r   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r'   __static_attributes____classcell__r   s   @r   r   r      s7    	
 	
$sCx. 	
@# @ @r!   r   c            	          ^  \ rS rSrS\4U 4S jjr\R                  4S\S\S\	\
\4   S\4S jjr\R                  4S\S\S\	\
\4   S\4S	 jjrS\4S
 jrSrU =r$ )ExternalCampaignList6   r   c                 2   > [         TU ]  U5        SU l        g)zZ
Initialize the ExternalCampaignList

:param version: Version that contains the resource

z/Services/PreregisteredUsa2pN)r   r   _uri)r   r   r   s     r   r   ExternalCampaignList.__init__8   s     	!2	r!   r   r   cnp_migrationr"   c                    [         R                  " UU[        R                  " U5      S.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XES9n[        U R                  U5      $ )a  
Create the ExternalCampaignInstance

:param campaign_id: ID of the preregistered campaign.
:param messaging_service_sid: The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with.
:param cnp_migration: Customers should use this flag during the ERC registration process to indicate to Twilio that the campaign being registered is undergoing CNP migration. It is important for the user to first trigger the CNP migration process for said campaign in their CSP portal and have Twilio accept the sharing request, before making this api call.

:returns: The created ExternalCampaignInstance

CampaignIdMessagingServiceSidCnpMigrationContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r
   ofr	   boolean_to_string_versioncreater6   r   r   r   r   r8   rF   rG   r   s          r   rK   ExternalCampaignList.createC   s      yy)'< ) ; ;M J
 ))^-PQR"E.--&&tyyt ' 
 (w??r!   c                 4  #    [         R                  " UU[        R                  " U5      S.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  U5      $  N7f)	a  
Asynchronously create the ExternalCampaignInstance

:param campaign_id: ID of the preregistered campaign.
:param messaging_service_sid: The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with.
:param cnp_migration: Customers should use this flag during the ERC registration process to indicate to Twilio that the campaign being registered is undergoing CNP migration. It is important for the user to first trigger the CNP migration process for said campaign in their CSP portal and have Twilio accept the sharing request, before making this api call.

:returns: The created ExternalCampaignInstance
r:   r>   r?   r@   rA   rB   rC   N)r
   rH   r	   rI   rJ   create_asyncr6   r   rL   s          r   rO   !ExternalCampaignList.create_asyncf   s       yy)'< ) ; ;M J
 ))^-PQR"E.22tyyt 3 
 
 (w??	
s   A9B;B<Bc                     g)r$   z*<Twilio.Messaging.V1.ExternalCampaignList>r%   r&   s    r   r'   ExternalCampaignList.__repr__   s     <r!   )r6   )r)   r*   r+   r,   r   r   r
   unsetr.   r   boolobjectr   rK   rO   r'   r/   r0   r1   s   @r   r3   r3   6   s    	3 	3 .4\\	!@!@  #!@ T6\*	!@
 
"!@N .4\\	!@!@  #!@ T6\*	!@
 
"!@F<# < <r!   r3   N)r-   r   typingr   r   r   r   twilio.baser   r	   r
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r3   r%   r!   r   <module>r[      sA     - - 6 6 : 2 '@/ @<Y<< Y<r!   