o
    /i                      @   s|   d Z ddlmZ ddlmZmZmZ ddlmZ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dS )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)deserializevalues)InstanceResource)ListResource)Versionc                       s@   e Zd ZdZdedeeef f fddZdefddZ	  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                    sR   t  | |d| _|d| _|d| _|d| _t|d| _	d S )Nsidaccount_sidcampaign_idmessaging_service_siddate_created)
super__init__getr   r   r   r   r   iso8601_datetimer   )selfr   r   	__class__ e/var/www/html/philips/venv/lib/python3.10/site-packages/twilio/rest/messaging/v1/external_campaign.pyr   #   s   
z!ExternalCampaignInstance.__init__returnc                 C      dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z.<Twilio.Messaging.V1.ExternalCampaignInstance>r   r   r   r   r   __repr__.   s   z!ExternalCampaignInstance.__repr__)__name__
__module____qualname____doc__r
   r   strr   r   r    __classcell__r   r   r   r   r      s    r   c                       s\   e Zd Zdef fddZdededefddZdededefd	d
ZdefddZ	  Z
S )ExternalCampaignListr   c                    s   t  | d| _dS )zr
        Initialize the ExternalCampaignList

        :param version: Version that contains the resource

        z/Services/PreregisteredUsa2pN)r   r   _uri)r   r   r   r   r   r   9   s   
zExternalCampaignList.__init__r   r   r   c                 C   s0   t ||d}| jjd| j|d}t| j|S )aW  
        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.

        :returns: The created ExternalCampaignInstance
        
CampaignIdMessagingServiceSidPOSTmethoduridata)r   of_versioncreater(   r   r   r   r   r0   r   r   r   r   r3   D   s   zExternalCampaignList.createc                    s8   t ||d}| jjd| j|dI dH }t| j|S )af  
        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.

        :returns: The created ExternalCampaignInstance
        r)   r,   r-   N)r   r1   r2   create_asyncr(   r   r4   r   r   r   r5   ^   s   z!ExternalCampaignList.create_asyncc                 C   r   )r   z*<Twilio.Messaging.V1.ExternalCampaignList>r   r   r   r   r   r    x   s   zExternalCampaignList.__repr__)r!   r"   r#   r
   r   r%   r   r3   r5   r    r&   r   r   r   r   r'   8   s"    

r'   N)r$   r   typingr   r   r   twilio.baser   r   twilio.base.instance_resourcer   twilio.base.list_resourcer	   twilio.base.versionr
   r   r'   r   r   r   r   <module>   s    