403Webshell
Server IP : 159.223.102.202  /  Your IP : 216.73.216.189
Web Server : nginx/1.26.0
System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User : albasshbotta ( 1021)
PHP Version : 8.2.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/uaclient/api/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/uaclient/api/__pycache__/api.cpython-312.pyc
�

|f��
�4�ddlZddlmZddlmZmZmZmZmZddl	m
Z
ddlmZm
Z
mZddlmZddlmZddlmZmZdd	lmZgd
�Zdeedeed
eeeefeeffd�Zdedeed
eeeefeeffd�Zdedeededed
e
f
d�ZGd�d�Zy)�N)�
import_module)�Any�Callable�Dict�List�Tuple)�errors)�APIData�APIResponse�ErrorWarningObject)�UAConfig)�IncorrectFieldTypeError)�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.fix.cve.execute.v1zu.pro.security.fix.cve.plan.v1z!u.pro.security.fix.usn.execute.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�h�i}g}|D]�}	|jd�\}}|r|stj|���||vrI|j	tt
j|��jtji���|||<��||fS#t$rtj|���wxYw)N�=��arg��title�code�meta)
�split�
ValueErrorr	�APIBadArgsFormat�appendrr�format�msg�name)rr�kwargs�warnings�option�k�vs       �2/usr/lib/python3/dist-packages/uaclient/api/api.py�_process_optionsr*$s����F��H����	6��<�<��$�D�A�q����)�)�f�5�5��F�?��O�O�"�)�0�0�Q�7�;�;�(�-�-���
���q�	�%�(�8����#�	6��)�)�f�5�5�	6�s�B� B1�datac���i}g}	tj|�}|j
�D]�\}}|r|s&t	jdj||����||vrI|jttj|��jtji���|||<��||fS#tjj$rt	j
|���wxYw)N)r+z{}:{}rr)�json�loads�decoder�JSONDecodeErrorr	�APIJSONDataFormatError�itemsrr!r rrr"r#)r+rr$r%�	json_datar'r(s       r)�
_process_datar4As����F��H�7��J�J�t�$�	����!�
���1����)�)�g�n�n�Q��.B�C�C��F�?��O�O�"�)�0�0�Q�7�;�;�(�-�-���
���q�	�
��8����%�<�<�'�'�7��+�+��6�6�7�s�B3�34C'�
endpoint_path�cfgc	�H�|tvr)tjtj|���St	d|z�}|j
}g}|jr�|jjD�cgc]}|j��}}	|rt||�\}	}
n|rt||�\}	}
nig}
}	|j|
�	|jj|	�}	|j!||�}n?|s|r)tjtj$|���S	|j!|�}t'�}
|
rI|j)t+t-j.|
��j0t,j2i���t5|j6|j8|zt;|j2||j<����Scc}w#tj$r}tj|�cYd}~Sd}~wwxYw#t$r>}tjtj|j|���cYd}~Sd}~wwxYw#t"$r}tj|�cYd}~Sd}~wwxYw#t"$r}tj|�cYd}~Sd}~wwxYw)N)�endpointz
uaclient.api.)rr8)�versionr)�type�
attributesr)�_schema_versionr%r+)�VALID_ENDPOINTSr	�	error_out�APIInvalidEndpointrr8�options_clsr�keyr*r4�extend�APIError�	from_dictr�
APIMissingArg�fn�	Exception�APINoArgsForEndpointrr rrr!r"r#rr9r%r
r)r5rr+r6�moduler8�option_warnings�frr$r%�e�result�new_versions              r)�call_apirO^sR���O�+�����%�%�}�=�
�	
��?�]�:�
;�F����H��O����!)�!5�!5�!<�!<�=�A�!�%�%�=��=�		'��#3�G�V�#D� ����#0��v�#>� ���#%�r����"�"�8�,�	��*�*�4�4�V�<�G�	'��[�[��#�.�F�
�d��#�#��+�+�]�C��
�	'��[�[��%�F�(�)�K������0�7�7�'���#�/�4�4��
�	
�� �(�(����?�2�
��������
����]>�����	'��#�#�A�&�&��	'��
'�	��#�#��$�$�����G��
��	���	'��#�#�A�&�&��	'���	'��#�#�A�&�&��	'�s~�2G
�9G�H�I�I9�H�"G<�6H�<H�	I�
3I�I�I�	I6�I1�+I6�1I6�9	J!�J�J!�J!c� �eZdZdededefd�Zy)�APIEndpointr9r#rFc�<�||_||_||_||_y)N)r9r#rFr@)�selfr9r#rFr@s     r)�__init__zAPIEndpoint.__init__�s!�������	����&���N)�__name__�
__module__�__qualname__�strrrT�rUr)rQrQ�s#��
'��
'��
'�
�	
'rUrQ)r-�	importlibr�typingrrrrr�uaclient.apir	�uaclient.api.data_typesr
rr�uaclient.configr
�uaclient.data_typesr�uaclient.messagesrr�uaclient.versionrr=rYr*r4rOrQrZrUr)�<module>rcs����#�3�3��L�L�$�7�I�2���0�
�#�Y�� $�S�	��
�4��S��>�4� 2�3�3�4��:�

���C�y��
�4��S��>�4� 2�3�3�4��:E��E�!%�c��E�25�E�<D�E��E�P'�'rU

Youez - 2016 - github.com/yon3zu
LinuXploit