/usr/lib/python3/dist-packages/uaclient/api/u/pro/packages/updates/__pycache__
NameSizeModeActions
v1.cpython-310.pyc47570644editdlrm
__init__.cpython-310.pyc1710644editdlrm
Edit: /usr/lib/python3/dist-packages/uaclient/api/u/pro/packages/updates/__pycache__/v1.cpython-310.pyc (4757B)
o Ki@sddlmZddlmZddlmZddlmZddlm Z m Z m Z m Z m Z ddlmZmZmZmZGddde ZGd d d e ZGd d d e eZd efddZded efddZeddeddZdddegdddZdS))List) APIEndpoint)AdditionalInfo)UAConfig) DataObjectField IntDataValueStringDataValue data_list)create_updates_listfilter_updates get_installed_packages_by_origin get_ua_infoc @sjeZdZededdededdededdeded ded ed dgZdedededed ef d d ZdS) UpdateSummary num_updatesz Total count of available updatesdocnum_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`` pocketnum_standard_updatesz7Count of available updates from the ``-updates`` pocketcCs"||_||_||_||_||_dSNrrrrr)selfrrrrrrH/usr/lib/python3/dist-packages/uaclient/api/u/pro/packages/updates/v1.py__init__0s  zUpdateSummary.__init__N)__name__ __module__ __qualname__rrfieldsintrrrrrrsHrc @szeZdZededdededdededdeded ded ed ded ed dgZdedededed ed ef ddZ dS) UpdateInfo download_sizez%Download size for the update in bytesroriginz#Where the update is downloaded frompackagez!Name of the package to be updated provided_byz!Service which provides the updatestatusz0Whether this update is ready for download or notversionzVersion of the updatecCs(||_||_||_||_||_||_dSrr#r$r%r&r'r()rr#r$r%r&r'r(rrrr[s   zUpdateInfo.__init__N) rrrrrr r r!strrrrrrr"?sN r"c@sBeZdZededdedeeddgZdedeefddZ dS) PackageUpdatesResultsummaryz Summary of all available updatesrupdatesz&Detailed list of all available updatescCs||_||_dSrr,r-)rr,r-rrrrxs zPackageUpdatesResult.__init__N) rrrrrr r"r rrrrrrr+ls r+returncCs ttSr)_updatesrrrrrr-}s r-cfgc Cst|}t}t|d}t||}t|d}t|d}t|d}t|d}t||||||||d} dd|D} t| | d S) zx This endpoint shows available updates for packages in a system, categorized by where they can be obtained. allzesm-appsz esm-infrazstandard-securityzstandard-updatesrc Ss8g|]}t|d|d|d|d|d|ddqS)r#r$r% service_namer'r(r))r").0updaterrr s z_updates..r.)rr r r lenrr+) r1ua_infopackagesupgradable_versions update_listrrrrr,r-rrrr0s6        r0v1PackageUpdatesN)r(namefn 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": "", "package": "", "provided_by": "", "status": "", "version": "", }, ] } ) introduced_inrequires_networkexample_python result_class exceptions example_cli example_json)typingruaclient.api.apiruaclient.api.data_typesruaclient.configruaclient.data_typesrrrr r uaclient.security_statusr r r rrr"r+r-r0endpoint_docrrrrs2   *-*