
    i?1i                          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	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)deserialize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      t/home/www/therecruiter.miabetepe.com/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;KK@W4X"0;0L0LKK'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    	
 	
$sCx. 	
@# @r   r   c                   X     e Zd Zdef fdZdededefdZdede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__9   s     	!2	r   r   r   r   c                     t        j                  ||d      }| j                  j                  d| j                  |      }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   r7   r   s        r   r:   zExternalCampaignList.createD   sX     yy)'<
 --&&		 ' 
 (w??r   c                    K   t        j                  ||d      }| j                  j                  d| j                  |       d{   }t        | j                  |      S 7 w)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
        r0   r3   r4   N)r   r8   r9   create_asyncr.   r   r;   s        r   r=   z!ExternalCampaignList.create_async^   sf      yy)'<
 22		 3 
 
 (w??
s   AA#A!A#c                      y)r    z*<Twilio.Messaging.V1.ExternalCampaignList>r!   r"   s    r   r#   zExternalCampaignList.__repr__x   s     <r   )r$   r%   r&   r   r   r(   r   r:   r=   r#   r)   r*   s   @r   r,   r,   8   s]    	3 	3@@7:@	!@4@@7:@	!@4<# <r   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   <module>rD      s>     & & + : 2 '@/ @>F<< F<r   