Current File : //usr/lib/python3/dist-packages/uaclient/api/u/pro/packages/summary/__pycache__/v1.cpython-312.pyc |
�
��Jh� � � � d dl mZ d dlmZ d dlmZ d dlmZmZm Z d dl
mZ G d� de� Z G d� d ee� Z
d
e
fd�Zded
e
fd
�Z edded�� Zddde
g ddd�Zy)� )�APIEndpoint)�AdditionalInfo)�UAConfig)�
DataObject�Field�IntDataValue)� get_installed_packages_by_originc �� � e Zd Z eded�� eded�� eded�� eded �� ed
ed�� eded
�� eded�� eded�� eded�� g Zdedededed
ededededefd�Zy)�PackageSummary�num_installed_packagesz!Total count of installed packages��doc�num_esm_apps_packagesz-Count of packages installed from ``esm-apps``�num_esm_infra_packagesz.Count of packages installed from ``esm-infra``�num_main_packagesz)Count of packages installed from ``main``�num_multiverse_packagesz/Count of packages installed from ``multiverse``�num_restricted_packagesz/Count of packages installed from ``restricted``�num_third_party_packagesz4Count of packages installed from third party sources�num_universe_packagesz-Count of packages installed from ``universe``�num_unknown_packagesz0Count of packages installed from unknown sourcesc
� � || _ || _ || _ || _ || _ || _ || _ || _ | | _ y �N� r r r r r r r r r )
�selfr r r r r r r r r s
�H/usr/lib/python3/dist-packages/uaclient/api/u/pro/packages/summary/v1.py�__init__zPackageSummary.__init__9 sL � � '=��#�%:��"�&<��#�!2���'>��$�'>��$�(@��%�%:��"�$8��!� N)�__name__�
__module__�__qualname__r r �fields�intr � r r r r s � �
�$��3�
�
�#��?�
�
�$��@�
�
���;�
�
�%��A�
�
�%��A�
�
�&��F�
�
�#��?�
�
�"��B�
�S.�F�`9� #�9� #�9� !$� 9�
�9� "%�
9� "%�9� #&�9� #�9� "�9r r c �* � e Zd Z eded�� gZd� Zy)�PackageSummaryResult�summaryz!Summary of all installed packagesr
c � � || _ y r �r&