%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/uaclient/api/u/pro/packages/updates/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/uaclient/api/u/pro/packages/updates/__pycache__/v1.cpython-312.pyc |
� �(�f� � �� � d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z m Z mZmZm Z d dlmZmZmZmZ G d� de � Z G d � d e � Z G d� de e� Zd efd�Zded efd�Z edded�� Zdddeg ddd�Zy)� )�List)�APIEndpoint)�AdditionalInfo)�UAConfig)� DataObject�Field�IntDataValue�StringDataValue� data_list)�create_updates_list�filter_updates� get_installed_packages_by_origin�get_ua_infoc � � e Zd Z eded�� eded�� eded�� eded �� ed ed�� gZdedededed ef d�Zy )� 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 �J � || _ || _ || _ || _ || _ y �N�r r r r r )�selfr r r r r s �H/usr/lib/python3/dist-packages/uaclient/api/u/pro/packages/updates/v1.py�__init__zUpdateSummary.__init__0 s, � � '���$8��!�%:��"�-J��*�$8��!� N)�__name__� __module__�__qualname__r r �fields�intr � r r r r s� � � ��<�-O� � �"��>� � �#��?� � �+��J� � �"��I� �'�F�49��9� "�9� #� 9� (+�9� "� 9r r c � � e Zd Z eded�� eded�� eded�� eded �� ed ed�� eded �� gZdedededed edefd�Z y)� 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 �X � || _ || _ || _ || _ || _ || _ y r �r( r) r* r+ r, r- )r r( r) r* r+ r, r- s r r zUpdateInfo.__init__[ s0 � � +���������&��������r N) r r! r"