HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/awscli/customizations/__pycache__/cloudsearch.cpython-36.pyc
3

�T_��@s�ddlZddlmZmZddlmZeje�Ze	e
e	e
d�Zdd�Zdded	d
d
ifdd
difg�d�id
dedd
d
ifdd
difddded�fdded�fdded�fdded�fdded�fdded�fd d!ed�fg	�d�id"�Z
d#d$�ZdS)%�N)�FlattenArguments�SEP)�OrderedDict)ZInt�DoubleZIntArrayZDoubleArraycCs�d|kri|d<d|dkr$td��|dd}djdd�|jd�D��}|dkrVd	}|jt�ddkr|tj|dd
��|�}|d|dkr�i|d|d<||d|d|jt�d<dS)z�
    Hydrate an index-field option value to construct something like::

        {
            'index_field': {
                'DoubleOptions': {
                    'DefaultValue': 0.0
                }
            }
        }
    Z
IndexField�IndexFieldTypez You must pass the --type option.�cSsg|]}|j��qS�)�
capitalize)�.0�irr�!/usr/lib/python3.6/cloudsearch.py�
<listcomp>2sz!index_hydrate.<locals>.<listcomp>�-ZLatlonZLatLon�ZDefaultValuecSs|S)Nr)�xrrr�<lambda><szindex_hydrate.<locals>.<lambda>ZOptionsN���r)�RuntimeError�join�splitr�DEFAULT_VALUE_TYPE_MAP�get)ZparamsZ	containerZcli_type�key�valueZ_typerrr�
index_hydratesrZ
expressionFZExpressionName�nameZExpressionValue)ZkeepZflattenzindex-fieldZIndexFieldNamer�typezIntOptions.DefaultValuez
default-value�string)rr�hydratezIntOptions.FacetEnabledz
facet-enabled)rrzIntOptions.SearchEnabledzsearch-enabledzIntOptions.ReturnEnabledzreturn-enabledzIntOptions.SortEnabledzsort-enabledzTextOptions.HighlightEnabledzhighlight-enabledzTextOptions.AnalysisSchemezanalysis-scheme)zdefine-expressionzdefine-index-fieldcCstdt�}|j|�dS)z9
    The entry point for CloudSearch customizations.
    ZcloudsearchN)r�FLATTEN_CONFIG�register)ZcliZ	flattenedrrr�
initializeos
r!)ZloggingZawscli.customizations.flattenrrZbotocore.compatrZ	getLogger�__name__ZLOG�int�floatrrrr!rrrr�<module>sD
*