403Webshell
Server IP : 104.21.4.30  /  Your IP : 104.23.197.229
Web Server : Apache
System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64
User : simottodesign.com_2tntp341vs7 ( 10011)
PHP Version : 8.3.31
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/uaclient/api/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/uaclient/api/__pycache__/api.cpython-38.pyc
U

2�d��@sHddlZddlmZddlmZmZmZmZmZddl	m
Z
mZmZddl
mZmZddlmZddlmZddlmZmZmZmZmZmZmZdd	lmZd
ddd
ddddddddddddddgZeeeeeeeefeefd�dd�Z eeeeeeefeefd�d d!�Z!eeeeeed"�d#d$�Z"Gd%d&�d&�Z#dS)'�N)�
import_module)�Any�Callable�Dict�List�Tuple)�APIData�APIResponse�ErrorWarningObject)�APIError�	error_out)�UAConfig)�IncorrectFieldTypeError)�API_BAD_ARGS_FORMAT�API_INVALID_ENDPOINT�API_JSON_DATA_FORMAT_ERROR�API_MISSING_ARG�API_NO_ARG_FOR_ENDPOINT�API_UNKNOWN_ARG�WARN_NEW_VERSION_AVAILABLE)�check_for_new_versionz,u.pro.attach.auto.configure_retry_service.v1z%u.pro.attach.auto.full_auto_attach.v1z'u.pro.attach.auto.should_auto_attach.v1zu.pro.attach.magic.initiate.v1zu.pro.attach.magic.revoke.v1zu.pro.attach.magic.wait.v1zu.pro.packages.summary.v1zu.pro.packages.updates.v1zu.pro.security.fix.cve.plan.v1zu.pro.security.fix.usn.plan.v1z'u.pro.security.status.livepatch_cves.v1z(u.pro.security.status.reboot_required.v1z u.pro.status.enabled_services.v1zu.pro.status.is_attached.v1zu.pro.version.v1zu.security.package_manifest.v1zu.unattended_upgrades.status.v1zu.apt_news.current_news.v1)�options�fields�returnc	Cs�i}g}|D]�}z|�d�\}}Wn,tk
rNttj|d�jtjd��YnX|rX|spttj|d�jtjd��||kr�|�tt	j|d�jt	jid��|||<q||fS)N�=��arg��msgZmsg_code��title�code�meta)
�split�
ValueErrorrr�formatr�name�appendr
r)rr�kwargs�warningsZoption�k�v�r,�2/usr/lib/python3/dist-packages/uaclient/api/api.py�_process_options*s2����
r.)�datarrcCs�i}g}zt�|�}Wn4tjjk
rJtj|d�}t|j|jd��YnX|�	�D]`\}}|rd|s�tt
jd�||�d�jt
jd��||kr�|�tt
j|d�jt
jid��|||<qT||fS)N)r/rz{}:{}rr)�json�loads�decoderZJSONDecodeErrorrr%rrr&�itemsrr'r
r)r/rr(r)Z	json_datarr*r+r,r,r-�
_process_dataMs.���
r4)�
endpoint_pathrr/�cfgrc

Cs|tkr$tttj|d�jtjd��Std|�}|j}g}|j	�rbdd�|j	j
D�}z@|rjt||�\}}	n|r~t||�\}}	n
ig}}	|�
|	�Wn.tk
r�}
zt|
�WY�Sd}
~
XYnXz|j	�|�}WnHtk
�r}
z(tttj|
j|d�jtjd��WY�Sd}
~
XYnXz|�||�}Wn0tk
�r^}
zt|
�WY�Sd}
~
XYnXnh|�sn|�r�tttj|d�jtjd��Sz|�|�}Wn0tk
�r�}
zt|
�WY�Sd}
~
XYnXt�}|�r�|�ttj|d�jtjid��t|j|j|t|j||jd	�d
�S)N)�endpointrz
uaclient.api.cSsg|]
}|j�qSr,)�key)�.0�fr,r,r-�
<listcomp>�szcall_api.<locals>.<listcomp>)rr7)�versionr)�typeZ
attributesr")Z_schema_versionr)r/)�VALID_ENDPOINTSrrrr%rr&rr7�options_clsrr.r4�extendZ	from_dictrrr8�fn�	Exceptionrrr'r
rr	r<r)rr")
r5rr/r6�moduler7Zoption_warningsrr(r)�e�resultZnew_versionr,r,r-�call_apins���
���	 ������
��rFc@seZdZeeed�dd�ZdS)�APIEndpoint)r<r&rAcCs||_||_||_||_dS)N)r<r&rAr?)�selfr<r&rAr?r,r,r-�__init__�szAPIEndpoint.__init__N)�__name__�
__module__�__qualname__�strrrIr,r,r,r-rG�s�rG)$r0�	importlibr�typingrrrrrZuaclient.api.data_typesrr	r
Zuaclient.api.errorsrrZuaclient.configr
Zuaclient.data_typesrZuaclient.messagesrrrrrrrZuaclient.versionrr>rMr.r4rFrGr,r,r,r-�<module>sT$	��$�"�U

Youez - 2016 - github.com/yon3zu
LinuXploit