Ë
    [üàgÃ  ã                   ó�   — d Z ddlmZ ddl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  G d„ d	e«      Z G d
„ de«      Zy)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                   óB   ‡ — e Zd ZdZdedeeef   fˆ fd„Zdefd„Z	ˆ xZ
S )ÚExternalCampaignInstanceaj  
    :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         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        t        j                  |j                  d«      «      | _	        y )NÚsidÚaccount_sidÚcampaign_idÚmessaging_service_sidÚdate_created)
ÚsuperÚ__init__Úgetr   r   r   r   r   Úiso8601_datetimer   )Úselfr   r   Ú	__class__s      €úh/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/messaging/v1/external_campaign.pyr   z!ExternalCampaignInstance.__init__!   ss   ø€ Ü‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ*1¯+©+°mÓ*DˆÔØ*1¯+©+°mÓ*DˆÔØ4;·K±KÐ@WÓ4XˆÔ"Ü0;×0LÑ0LØ�K‰K˜Ó'ó1
ˆÕó    Úreturnc                  ó   — y)úf
        Provide a friendly representation

        :returns: Machine friendly representation
        z.<Twilio.Messaging.V1.ExternalCampaignInstance>© ©r   s    r   Ú__repr__z!ExternalCampaignInstance.__repr__,   s   € ð @r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   r%   Ú__classcell__©r   s   @r   r   r      s1   ø„ ñð	
 ð 	
°$°s¸C°x±.õ 	
ð@˜#÷ @r   r   c            	       ó¤   ‡ — e Zd Zdefˆ fd„Zej                  fdededee	e
f   defd„Zej                  fdededee	e
f   defd„Zdefd	„Zˆ xZS )
ÚExternalCampaignListr   c                 ó2   •— t         ‰| �  |«       d| _        y)zr
        Initialize the ExternalCampaignList

        :param version: Version that contains the resource

        z/Services/PreregisteredUsa2pN)r   r   Ú_uri)r   r   r   s     €r   r   zExternalCampaignList.__init__8   s   ø€ ô 	‰Ñ˜Ô!à2ˆ�	r   r   r   Úcnp_migrationr    c                 ó  — t        j                  ||t        j                  |«      dœ«      }t        j                  ddi«      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  |«      S )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Úcreater0   r   ©r   r   r   r1   r?   r@   r   s          r   rD   zExternalCampaignList.createC   sŽ   € ô  �y‰yà)Ø'<Ü )× ;Ñ ;¸MÓ Jñó
ˆô —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�Ñà—-‘-×&Ñ&Ø˜tŸy™y¨t¸Wð 'ó 
ˆô (¨¯©°wÓ?Ð?r   c              ƒ   ó6  K  — t        j                  ||t        j                  |«      dœ«      }t        j                  ddi«      }d|d<   d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  |«      S 7 Œ­w)	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
        r3   r7   r8   r9   r:   r;   r<   N)r
   rA   r	   rB   rC   Úcreate_asyncr0   r   rE   s          r   rG   z!ExternalCampaignList.create_asyncf   sœ   è ø€ ô  �y‰yà)Ø'<Ü )× ;Ñ ;¸MÓ Jñó
ˆô —)‘)˜^Ð-PÐQÓRˆà"Eˆ�Ñà.ˆ�ÑàŸ™×2Ñ2Ø˜tŸy™y¨t¸Wð 3ó 
÷ 
ˆô (¨¯©°wÓ?Ð?ð	
ús   ‚A:BÁ<BÁ=Bc                  ó   — y)r"   z*<Twilio.Messaging.V1.ExternalCampaignList>r#   r$   s    r   r%   zExternalCampaignList.__repr__‰   s   € ð <r   )r&   r'   r(   r   r   r
   Úunsetr*   r   ÚboolÚobjectr   rD   rG   r%   r+   r,   s   @r   r.   r.   6   s¡   ø„ ð	3 õ 	3ð .4¯\©\ñ	!@àð!@ð  #ð!@ð ˜T 6˜\Ñ*ð	!@ð
 
"ó!@ðN .4¯\©\ñ	!@àð!@ð  #ð!@ð ˜T 6˜\Ñ*ð	!@ð
 
"ó!@ðF<˜#÷ <r   r.   N)r)   r   Útypingr   r   r   r   Útwilio.baser   r	   r
   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   r   r.   r#   r   r   ú<module>rQ      sA   ðñõ ß -Ó -ß 6Ñ 6å :Ý 2Ý 'ô@Ð/ô @ô<Y<˜<õ Y<r   