https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/boto/cloudsearch2/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/boto/cloudsearch2/__pycache__/layer2.cpython-310.pyc
o

ckF[��@s8ddlmZddlmZddlmZGdd�de�ZdS)�)�CloudSearchConnection)�Domain)�sixc@s8eZdZ				d
dd�Zddd�Zd	d
�Zdd�ZdS)�Layer2NTrFc
Cs\t|
tj�rddl}
|
j��D]}|j|
kr|}
nqt|||||||||	|
||d�|_dS)Nr)�aws_access_key_id�aws_secret_access_key�	is_secure�port�proxy�
proxy_port�host�debug�security_token�region�validate_certs�sign_request)	�
isinstancer�string_types�boto.cloudsearch2�cloudsearch2�regions�namer�layer1)�selfrrrr	r
rrr
�
session_tokenrrr�boto�region_info�r�:/usr/lib/python3/dist-packages/boto/cloudsearch2/layer2.py�__init__ s*
��zLayer2.__init__cs.�j�|�}|ddd}�fdd�|D�S)z�
        Return a list of objects for each domain defined in the
        current account.
        :rtype: list of :class:`boto.cloudsearch2.domain.Domain`
        �DescribeDomainsResponse�DescribeDomainsResult�DomainStatusListcsg|]}t�j|��qSr)rr)�.0�data�rrr�
<listcomp>Fsz'Layer2.list_domains.<locals>.<listcomp>)r�describe_domains)r�domain_names�domain_datarr%r�list_domains:s��zLayer2.list_domainscCs$|j�|�}t|j|ddd�S)z�
        Create a new CloudSearch domain and return the corresponding object.
        :return: Domain object, or None if the domain isn't found
        :rtype: :class:`boto.cloudsearch2.domain.Domain`
        �CreateDomainResponse�CreateDomainResult�DomainStatus)r�
create_domainr)r�domain_namer$rrrr.Hs��zLayer2.create_domaincCs&|j|gd�}t|�dkr|dSdS)a
        Lookup a single domain
        :param domain_name: The name of the domain to look up
        :type domain_name: str

        :return: Domain object, or None if the domain isn't found
        :rtype: :class:`boto.cloudsearch2.domain.Domain`
        )r(rN)r*�len)rr/�domainsrrr�lookupSs	�z
Layer2.lookup)NNTNNNNrNNTF)N)�__name__�
__module__�__qualname__rr*r.r2rrrrrs
�
rN)�boto.cloudsearch2.layer1r�boto.cloudsearch2.domainr�boto.compatr�objectrrrrr�<module>s

https://t.me/RX1948 - 2025