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__/translate.cpython-36.opt-1.pyc
3

�T_+
�@sPddlZddlmZmZdZdd�Zdd�ZGdd	�d	e�ZGd
d�de�ZdS)�N)�CustomArgument�CLIArgumentzT<p>The path to the file of the code you are uploading. Example: fileb://data.csv</p>cCs|jdt�dS)Nz4building-argument-table.translate.import-terminology)�register�_hoist_file_parameter)Zcli�r�/usr/lib/python3.6/translate.py�%register_translate_import_terminologysrcKsTtdtddd�|d<|d}tj|j�}|jd=td||jd|jd�d	d
�|d<dS)Nz	data-fileZblobT)Z	help_textZ
cli_type_nameZrequiredzterminology-data�FileF�
event_emitter�TerminologyData)�name�argument_modelZoperation_modelZis_requiredr
Zserialized_name)	�FileArgument�FILE_DOCSTRING�copy�deepcopyr
�members�TerminologyDataArgumentZ_operation_modelZ
get_component)ZsessionZargument_table�kwargsZ
file_argumentZ
file_modelrrrrsrc@seZdZdd�ZdS)rcCs:|dkrdSd|i}|jd�r.|dj|�n||d<dS)Nr	r)�get�update)�self�
parameters�valueZ
file_paramrrr�
add_to_params,s
zFileArgument.add_to_paramsN)�__name__�
__module__�__qualname__rrrrrr+src@seZdZdd�ZdS)rcCsL|dkrdS|j|�}d|kr&td��|jd�r@|dj|�n||d<dS)Nr	z�File cannot be provided as part of the '--terminology-data' argument. Please use the '--data-file' option instead to specify a file.r)Z_unpack_argument�
ValueErrorrr)rrrZunpackedrrrr7s

z%TerminologyDataArgument.add_to_paramsN)rrrrrrrrr6sr)	rZawscli.argumentsrrrrrrrrrrr�<module>
s