a
    !f                     @   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eeeef d fddZedddZ	  Z
S )ExternalCampaignInstanceab  
    :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/services/api) 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__ k/var/www/html/python-backend/venv/lib/python3.9/site-packages/twilio/rest/messaging/v1/external_campaign.pyr   #   s    z!ExternalCampaignInstance.__init__returnc                 C   s   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                       sT   e Zd Zed fddZeeedddZeeedddZed	d
dZ	  Z
S )ExternalCampaignList)r   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 )aO  
        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/services/api) that the resource is associated with.

        :returns: The created ExternalCampaignInstance
        Z
CampaignIdZMessagingServiceSidPOSTmethoduridata)r   of_versioncreater(   r   r   r   r   r.   r   r   r   r   r1   D   s    zExternalCampaignList.createc                    s6   t ||d}| jjd| j|dI dH }t| j|S )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/services/api) that the resource is associated with.

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