AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/uaclient/api/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/uaclient/api/__pycache__/api.cpython-310.pyc
o

F��c��@s�ddlmZddlmZmZddlmZmZmZddl	m
Z
mZddlm
Z
ddlmZddlmZmZmZmZmZmZddlmZgd	�Zd
edeede
d
efdd�ZGdd�d�ZdS)�)�
import_module)�Callable�List)�APIData�APIResponse�ErrorWarningObject)�APIError�	error_out)�UAConfig)�IncorrectFieldTypeError)�API_BAD_ARGS_FORMAT�API_INVALID_ENDPOINT�API_MISSING_ARG�API_NO_ARG_FOR_ENDPOINT�API_UNKNOWN_ARG�WARN_NEW_VERSION_AVAILABLE)�check_for_new_version)z,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.v1z'u.pro.security.status.livepatch_cves.v1z(u.pro.security.status.reboot_required.v1zu.pro.version.v1zu.security.package_manifest.v1�
endpoint_path�options�cfg�returnc
Cs>|tvrtttj|d�jtjd��Std|�}|j}g}|j	r�i}dd�|j	j
D�}|D]Q}z	|�d�\}	}
WntyQttt
j|d�jt
jd��YSw|	rV|
sfttt
j|d�jt
jd��S|	|vrz|�ttj|	d�jtjid��|
||	<q-z|j	�|�}Wn"ty�}ztttj|j|d	�jtjd��WYd}~Sd}~wwz|�||�}WnDty�}z
t|�WYd}~Sd}~ww|r�tttj|d�jtjd��Sz|�|�}Wnty�}z
t|�WYd}~Sd}~wwt�}
|
�r
|�ttj|
d
�jtjid��t|j|j|t|j||jd�d�S)
N)�endpoint)�msg�msg_codez
uaclient.api.cSsg|]}|j�qS�)�key)�.0�frr�2/usr/lib/python3/dist-packages/uaclient/api/api.py�
<listcomp>4szcall_api.<locals>.<listcomp>�=)�arg)�title�code�meta)r!r)�version)�type�
attributesr$)�_schema_version�warnings�data)�VALID_ENDPOINTSr	rr
�formatr�namerr�options_cls�fields�split�
ValueErrorr�appendrr�	from_dictrrr�fn�	Exceptionrrrrr%r)rr$)rrr�moduler�option_warnings�kwargsr/�option�k�v�e�result�new_versionrrr�call_api"s����������
�����
����������
��r?c@s"eZdZdededefdd�ZdS)�APIEndpointr%r-r4cCs||_||_||_||_dS)N)r%r-r4r.)�selfr%r-r4r.rrr�__init__�s
zAPIEndpoint.__init__N)�__name__�
__module__�__qualname__�strrrBrrrrr@�s���r@N)�	importlibr�typingrr�uaclient.api.data_typesrrr�uaclient.api.errorsrr	�uaclient.configr
�uaclient.data_typesr�uaclient.messagesrr
rrrr�uaclient.versionrr+rFr?r@rrrr�<module>s& ���
�i

Anon7 - 2022
AnonSec Team