
    gf8                         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KJr   " S	 S
\5      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)InstanceContext)InstanceResource)ListResource)Versionc                     ^  \ rS rSrSr SS\S\\\4   S\	\   4U 4S jjjr
\SS j5       rSS	 jrSS
 jr\R                   \R                   \R                   \R                   4S\\\4   S\\\4   S\\\4   S\\\4   SS 4
S jjr\R                   \R                   \R                   \R                   4S\\\4   S\\\4   S\\\4   S\\\4   SS 4
S jjrS\4S jrSrU =r$ )DomainConfigInstance   a^  
:ivar domain_sid: The unique string that we created to identify the Domain resource.
:ivar config_sid: The unique string that we created to identify the Domain config (prefix ZK).
:ivar fallback_url: Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
:ivar callback_url: URL to receive click events to your webhook whenever the recipients click on the shortened links.
:ivar continue_on_failure: Boolean field to set customer delivery preference when there is a failure in linkShortening service
:ivar date_created: Date this Domain Config was created.
:ivar date_updated: Date that this Domain Config was last updated.
:ivar url:
:ivar disable_https: Customer's choice to send links with/without "https://" attached to shortened url. If true, messages will not be sent with https:// at the beginning of the url. If false, messages will be sent with https:// at the beginning of the url. False is the default behavior if it is not specified.
versionpayload
domain_sidc                 F  > [         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        UR                  S5      U l        [        R                  " UR                  S5      5      U l
        [        R                  " UR                  S5      5      U l        UR                  S5      U l        UR                  S	5      U l        SU=(       d    U R                  0U l        S U l        g )
Nr   
config_sidfallback_urlcallback_urlcontinue_on_failuredate_createddate_updatedurldisable_https)super__init__getr   r   r   r   r   r   iso8601_datetimer   r   r   r   	_solution_context)selfr   r   r   	__class__s       n/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/messaging/v1/domain_config.pyr   DomainConfigInstance.__init__%   s     	!)0\)B)0\)B+2;;~+F+2;;~+F3:;;?T3U 0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4-4[[-I *7
 8<    returnc                     U R                   c&  [        U R                  U R                  S   S9U l         U R                   $ )z
Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context

:returns: DomainConfigContext for this DomainConfigInstance
r   r   )r#   DomainConfigContext_versionr"   r$   s    r&   _proxyDomainConfigInstance._proxy@   s9     == />>,7DM }}r(   c                 6    U R                   R                  5       $ )M
Fetch the DomainConfigInstance


:returns: The fetched DomainConfigInstance
)r/   fetchr.   s    r&   r3   DomainConfigInstance.fetchO   s     {{  ""r(   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)g
Asynchronous coroutine to fetch the DomainConfigInstance


:returns: The fetched DomainConfigInstance
N)r/   fetch_asyncr.   s    r&   r7    DomainConfigInstance.fetch_asyncX   s       [[,,....s   '%'r   r   r   r   c                 :    U R                   R                  UUUUS9$ )u  
Update the DomainConfigInstance

:param fallback_url: Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
:param callback_url: URL to receive click events to your webhook whenever the recipients click on the shortened links
:param continue_on_failure: Boolean field to set customer delivery preference when there is a failure in linkShortening service
:param disable_https: Customer's choice to send links with/without \"https://\" attached to shortened url. If true, messages will not be sent with https:// at the beginning of the url. If false, messages will be sent with https:// at the beginning of the url. False is the default behavior if it is not specified.

:returns: The updated DomainConfigInstance
r   r   r   r   )r/   updater$   r   r   r   r   s        r&   r<   DomainConfigInstance.updatea   s,    " {{!!%% 3'	 " 
 	
r(   c                 V   #    U R                   R                  UUUUS9I Sh  vN $  N7f)  
Asynchronous coroutine to update the DomainConfigInstance

:param fallback_url: Any requests we receive to this domain that do not match an existing shortened message will be redirected to the fallback url. These will likely be either expired messages, random misdirected traffic, or intentional scraping.
:param callback_url: URL to receive click events to your webhook whenever the recipients click on the shortened links
:param continue_on_failure: Boolean field to set customer delivery preference when there is a failure in linkShortening service
:param disable_https: Customer's choice to send links with/without \"https://\" attached to shortened url. If true, messages will not be sent with https:// at the beginning of the url. If false, messages will be sent with https:// at the beginning of the url. False is the default behavior if it is not specified.

:returns: The updated DomainConfigInstance
r;   N)r/   update_asyncr=   s        r&   rA   !DomainConfigInstance.update_asyncy   s9     " [[--%% 3'	 . 
 
 	
 
s    )')c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r&   	<genexpr>0DomainConfigInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z-<Twilio.Messaging.V1.DomainConfigInstance {}>joinr"   itemsrI   r$   contexts     r&   __repr__DomainConfigInstance.__repr__   s6     ((SDNN<P<P<RSS>EEgNNr(   )r#   r"   r   r   r   r   r   r   r   r   r   )N)r)   r,   )r)   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr/   r3   r7   r
   unsetr   objectboolr<   rA   rW   __static_attributes____classcell__r%   s   @r&   r   r      s_   
  %)	<< c3h< SM	< <6  #/ ,2<<+1<<39<<-3\\
CK(
 CK(
 #4<0	

 T6\*
 
 
4 ,2<<+1<<39<<-3\\
CK(
 CK(
 #4<0	

 T6\*
 
 
0O# O Or(   r   c                     ^  \ rS rSrS\S\4U 4S jjrS\4S jrS\4S jr	\
R                  \
R                  \
R                  \
R                  4S\\\4   S	\\\4   S
\\\4   S\\\4   S\4
S jjr\
R                  \
R                  \
R                  \
R                  4S\\\4   S	\\\4   S
\\\4   S\\\4   S\4
S jjrS\4S jrSrU =r$ )r,      r   r   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)z
Initialize the DomainConfigContext

:param version: Version that contains the resource
:param domain_sid: Unique string used to identify the domain that this config should be associated with.
r   z+/LinkShortening/Domains/{domain_sid}/ConfigN )r   r   r"   rI   _uri)r$   r   r   r%   s      r&   r   DomainConfigContext.__init__   sC     	! *
 BHH 
nn
	r(   r)   c                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   S9$ )r2   application/jsonAcceptGETmethoduriheadersr   r+   )r
   ofr-   r3   rj   r   r"   r$   rs   r   s      r&   r3   DomainConfigContext.fetch   s]     ))B-.--%%U		7%S#MM~~l3
 	
r(   c                    #    [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   S9$  N&7f)r6   rm   rn   ro   rp   Nr   r+   )r
   rt   r-   r7   rj   r   r"   ru   s      r&   r7   DomainConfigContext.fetch_async   sq      ))B-.11dii 2 
 
 $MM~~l3
 	
	
s   AA/A-'A/r   r   r   r   c                 T   [         R                  " UU[        R                  " U5      [        R                  " U5      S.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XVS9n[        U R                  XpR                  S   S	9$ )
r:   FallbackUrlCallbackUrlContinueOnFailureDisableHttps!application/x-www-form-urlencodedContent-Typerm   rn   POSTrq   rr   datars   r   r+   )	r
   rt   r	   boolean_to_stringr-   r<   rj   r   r"   r$   r   r   r   r   r   rs   r   s           r&   r<   DomainConfigContext.update   s    $ yy++%.%@%@AT%U ) ; ;M J	
 ))B-"E.--&&tyyt ' 
 $MM7~~l/K
 	
r(   c                 p  #    [         R                  " UU[        R                  " U5      [        R                  " U5      S.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  XVS9I Sh  vN n[        U R                  XpR                  S	   S
9$  N%7f)r@   rz   r   r   rm   rn   r   r   Nr   r+   )	r
   rt   r	   r   r-   rA   rj   r   r"   r   s           r&   rA    DomainConfigContext.update_async   s     $ yy++%.%@%@AT%U ) ; ;M J	
 ))B-"E.22tyyt 3 
 
 $MM7~~l/K
 	
	
s   BB6B4&B6c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rD   rE   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frG   rH   rJ   s      r&   rN   /DomainConfigContext.__repr__.<locals>.<genexpr>.  rP   rQ   z,<Twilio.Messaging.V1.DomainConfigContext {}>rR   rU   s     r&   rW   DomainConfigContext.__repr__(  s6     ((SDNN<P<P<RSS=DDWMMr(   )r"   rj   )rY   rZ   r[   r\   r   r^   r   r   r3   r7   r
   r`   r   ra   rb   r<   rA   rW   rc   rd   re   s   @r&   r,   r,      s4   
 
S 
"
+ 
(
#7 
0 ,2<<+1<<39<<-3\\&
CK(&
 CK(&
 #4<0	&

 T6\*&
 
&
T ,2<<+1<<39<<-3\\&
CK(&
 CK(&
 #4<0	&

 T6\*&
 
&
PN# N Nr(   r,   c                   b   ^  \ rS rSrS\4U 4S jjrS\S\4S jrS\S\4S jr	S\4S jr
S	rU =r$ )
DomainConfigListi2  r   c                 $   > [         TU ]  U5        g)zV
Initialize the DomainConfigList

:param version: Version that contains the resource

N)r   r   )r$   r   r%   s     r&   r   DomainConfigList.__init__4  s     	!r(   r   r)   c                 *    [        U R                  US9$ z
Constructs a DomainConfigContext

:param domain_sid: Unique string used to identify the domain that this config should be associated with.
r+   r,   r-   r$   r   s     r&   r    DomainConfigList.get=       #4==ZHHr(   c                 *    [        U R                  US9$ r   r   r   s     r&   __call__DomainConfigList.__call__E  r   r(   c                     g)rD   z&<Twilio.Messaging.V1.DomainConfigList>ri   r.   s    r&   rW   DomainConfigList.__repr__M  s     8r(   ri   )rY   rZ   r[   r\   r   r   r^   r,   r    r   rW   rc   rd   re   s   @r&   r   r   2  sN    " "Ic I&9 II3 I+> I8# 8 8r(   r   N)r]   r   typingr   r   r   r   twilio.baser   r	   r
   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r,   r   ri   r(   r&   <module>r      sV     - - 6 6 8 : 2 '@O+ @OFTN/ TNn!8| !8r(   