
    d{is                         d 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
 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 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.
    )AnyDictOptional)values)ApiResponse)InstanceContext)InstanceResource)ListResource)Versionc                        e Zd ZdZ	 ddedeeef   dee   f fdZ	e
dd       ZddZdd	Zdefd
ZdefdZdefdZ xZS )DomainValidateDnInstancez
    :ivar domain_sid: The unique string that we created to identify the Domain resource.
    :ivar is_valid:
    :ivar reason:
    :ivar url:
    versionpayload
domain_sidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        d|xs | j                  i| _        d | _        y )Nr   is_validreasonurl)	super__init__getr   r   r   r   	_solution_context)selfr   r   r   	__class__s       i/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/messaging/v1/domain_validate_dn.pyr   z!DomainValidateDnInstance.__init__    su     	!)0\)B(/J(?%,[[%:")++e"4 *7
 <@    returnc                     | j                   )t        | j                  | j                  d         | _         | j                   S )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: DomainValidateDnContext for this DomainValidateDnInstance
        r   r   )r   DomainValidateDnContext_versionr   r   s    r   _proxyzDomainValidateDnInstance._proxy2   s9     == 3>>,7DM }}r   c                 6    | j                   j                         S )m
        Fetch the DomainValidateDnInstance


        :returns: The fetched DomainValidateDnInstance
        )r$   fetchr#   s    r   r'   zDomainValidateDnInstance.fetchA   s     {{  ""r   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to fetch the DomainValidateDnInstance


        :returns: The fetched DomainValidateDnInstance
        N)r$   fetch_asyncr#   s    r   r*   z$DomainValidateDnInstance.fetch_asyncJ   s!      [[,,....   '%'c                 6    | j                   j                         S )z
        Fetch the DomainValidateDnInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r$   fetch_with_http_infor#   s    r   r-   z-DomainValidateDnInstance.fetch_with_http_infoS   s     {{//11r   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the DomainValidateDnInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r$   fetch_with_http_info_asyncr#   s    r   r/   z3DomainValidateDnInstance.fetch_with_http_info_async\   s!      [[;;====r+   c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r   	<genexpr>z4DomainValidateDnInstance.__repr__.<locals>.<genexpr>k        SDAq7>>!Q/S   !z1<Twilio.Messaging.V1.DomainValidateDnInstance {}>joinr   itemsr6   r   contexts     r   __repr__z!DomainValidateDnInstance.__repr__e   s6     ((SDNN<P<P<RSSBII'RRr   )N)r   r!   )r   r   )__name__
__module____qualname____doc__r   r   strr   r   r   propertyr$   r'   r*   r   r-   r/   rC   __classcell__r   s   @r   r   r      s     %)	@@ c3h@ SM	@$  #/2k 2>+ >S# Sr   r   c                   |     e Zd Zdedef fdZdefdZdefdZ	de
fdZdefdZdefd	Zde
fd
ZdefdZ xZS )r!   r   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the DomainValidateDnContext

        :param version: Version that contains the resource
        :param domain_sid: Unique string used to identify the domain.
        r   z0/LinkShortening/Domains/{domain_sid}/ValidateDnsN )r   r   r   r6   _uri)r   r   r   r   s      r   r   z DomainValidateDnContext.__init__q   sF     	! *
 NFMM 
nn
	r   r   c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETmethoduriheaders)r   ofr"   fetch_with_response_inforO   r   rW   s     r   _fetchzDomainValidateDnContext._fetch   sB     ))B-.}}55dii 6 
 	
r   c                 t    | j                         \  }}}t        | j                  || j                  d         S )r&   r   r    )r[   r   r"   r   r   r   _s      r   r'   zDomainValidateDnContext.fetch   s8     A'MM~~l3
 	
r   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the DomainValidateDnInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r    datastatus_coderW   )r[   r   r"   r   r   r   r   rb   rW   instances        r   r-   z,DomainValidateDnContext.fetch_with_http_info   sG     )-%g+MM~~l3

 k7SSr   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        rQ   rR   rS   rT   N)r   rX   r"   fetch_with_response_info_asyncrO   rZ   s     r   _fetch_asyncz$DomainValidateDnContext._fetch_async   sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)r)   Nr   r    )rg   r   r"   r   r]   s      r   r*   z#DomainValidateDnContext.fetch_async   sG      #//11A'MM~~l3
 	
 2s   AA.Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronous coroutine to fetch the DomainValidateDnInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r    r`   )rg   r   r"   r   r   rc   s        r   r/   z2DomainValidateDnContext.fetch_with_http_info_async   sW      /3.?.?.A(A%g+MM~~l3

 k7SS )Bs   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )r1   r2   c              3   F   K   | ]  \  }}d j                  ||        ywr4   r5   r7   s      r   r;   z3DomainValidateDnContext.__repr__.<locals>.<genexpr>   r<   r=   z0<Twilio.Messaging.V1.DomainValidateDnContext {}>r>   rA   s     r   rC   z DomainValidateDnContext.__repr__   s6     ((SDNN<P<P<RSSAHHQQr   )rD   rE   rF   r   rH   r   tupler[   r   r'   r   r-   rg   r*   r/   rC   rJ   rK   s   @r   r!   r!   o   sr    
 
S 
"
 
 
/ 
Tk T
E 
 
#; 
T+ TR# Rr   r!   c                   P     e Zd Zdef fdZdedefdZdedefdZdefdZ	 xZ
S )DomainValidateDnListr   c                 $    t         |   |       y)zr
        Initialize the DomainValidateDnList

        :param version: Version that contains the resource

        N)r   r   )r   r   r   s     r   r   zDomainValidateDnList.__init__   s     	!r   r   r   c                 0    t        | j                  |      S z}
        Constructs a DomainValidateDnContext

        :param domain_sid: Unique string used to identify the domain.
        r    r!   r"   r   r   s     r   r   zDomainValidateDnList.get        't}}LLr   c                 0    t        | j                  |      S rq   rr   rs   s     r   __call__zDomainValidateDnList.__call__   rt   r   c                      y)r1   z*<Twilio.Messaging.V1.DomainValidateDnList>rN   r#   s    r   rC   zDomainValidateDnList.__repr__  s     <r   )rD   rE   rF   r   r   rH   r!   r   rv   rC   rJ   rK   s   @r   rn   rn      sI    " "Mc M&= MM3 M+B M<# <r   rn   N)rG   typingr   r   r   twilio.baser   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r!   rn   rN   r   r   <module>r      sS    ' &  0 8 : 2 'TS/ TSntRo tRn!<< !<r   