+
    =l jè  ã                   óþ   € ^ RI Ht ^ RIHt ^ RIHt ^ RIHt ^ RIH	t	H
t
HtHtHt ^ RIHtHtHtHt  ! R R]	4      t ! R	 R
]	4      t ! R R]	]4      tR R ltR R lt]! RR]RR7      tRRRRRRR]R. RRRR /tR# )!é    )ÚList)ÚAPIEndpoint)ÚAdditionalInfo)ÚUAConfig)Ú
DataObjectÚFieldÚIntDataValueÚStringDataValueÚ	data_list)Úcreate_updates_listÚfilter_updatesÚ get_installed_packages_by_originÚget_ua_infoc            
       óš   a € ] tR t^t o ]! R]RR7      ]! R]RR7      ]! R]RR7      ]! R]R	R7      ]! R
]RR7      .tV 3R lR ltRtV t	R# )Ú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          
      ó8   <€ V ^8„  d   QhRS[ RS[ RS[ RS[ RS[ /# )é   r   r   r   r   r   )Úint)ÚformatÚ__classdict__s   "€ÚH/usr/lib/python3/dist-packages/uaclient/api/u/pro/packages/updates/v1.pyÚ__annotate__ÚUpdateSummary.__annotate__0   s=   ø€ ÷ 9ñ 9áð9ñ "ð9ñ  #ð	9ñ
 (+ð9ñ "ñ9ó    c                óB   € Wn         W n        W0n        W@n        WPn        R # ©N©r   r   r   r   r   )Úselfr   r   r   r   r   s   &&&&&&r   Ú__init__ÚUpdateSummary.__init__0   s"   € ð 'ÔØ$8Ô!Ø%:Ô"Ø-JÔ*Ø$8Ö!r!   )r   r   r   r   r   N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r	   Úfieldsr&   Ú__static_attributes__Ú__classdictcell__©r   s   @r   r   r      sr   ø‡ € áØ˜<Ð-Oô	
ñ 	Ø"ØØ>ô	
ñ
 	Ø#ØØ?ô	
ñ
 	Ø+ØØJô	
ñ
 	Ø"ØØIô	
ð'€F÷49ö 9r!   r   c                   ó®   a € ] tR t^?t o ]! R]RR7      ]! R]RR7      ]! R]RR7      ]! R]R	R7      ]! R
]RR7      ]! R]RR7      .tV 3R lR ltRt	V t
R# )Ú
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ÚversionzVersion of the updatec                ó>   <€ V ^8„  d   QhRS[ RS[RS[RS[RS[RS[/# )r   r2   r3   r4   r5   r6   r7   )r   Ústr)r   r   s   "€r   r   ÚUpdateInfo.__annotate__[   sG   ø€ ÷ ñ áðñ ðñ ð	ñ
 ðñ ðñ ñr!   c                óN   € Wn         W n        W0n        W@n        WPn        W`n        R # r#   ©r2   r3   r4   r5   r6   r7   )r%   r2   r3   r4   r5   r6   r7   s   &&&&&&&r   r&   ÚUpdateInfo.__init__[   s$   € ð +ÔØŒØŒØ&ÔØŒØŽr!   r<   N)r(   r)   r*   r+   r   r	   r
   r,   r&   r-   r.   r/   s   @r   r1   r1   ?   s�   ø‡ € áØØØ7ô	
ñ
 	ØØØ5ô	
ñ
 	Ø�Ð,Oô	
ñ 	ØØØ3ô	
ñ
 	ØØØBô	
ñ
 	ˆi˜Ð.EÔFð1€F÷6ö r!   r1   c                   ój   a € ] tR t^lt o ]! R]RR7      ]! R]! ]4      RR7      .tV 3R lR lt	Rt
V tR	# )
ÚPackageUpdatesResultÚsummaryz Summary of all available updatesr   Úupdatesz&Detailed list of all available updatesc                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# )r   r@   rA   )r   r   r1   )r   r   s   "€r   r   Ú!PackageUpdatesResult.__annotate__x   s    ø€ ÷ ñ ¡ð ¹¹ZÕ8Hñ r!   c                ó   € Wn         W n        R # r#   ©r@   rA   )r%   r@   rA   s   &&&r   r&   ÚPackageUpdatesResult.__init__x   s   € ØŒØŽr!   rE   N)r(   r)   r*   r+   r   r   r   r1   r,   r&   r-   r.   r/   s   @r   r?   r?   l   s>   ø‡ € áØ�}Ð*Lô	
ñ 	ØÙ�jÓ!Ø8ô	
ð		€F÷ö r!   r?   c                ó$   € V ^8„  d   QhR\         /# )r   Úreturn)r?   )r   s   "r   r   r   }   s   € ÷  ñ  Ô%ñ  r!   c                  ó(   € \        \        4       4      # r#   )Ú_updatesr   © r!   r   rA   rA   }   s   € Ü”H“JÓÐr!   c                ó0   € V ^8„  d   QhR\         R\        /# )r   ÚcfgrH   )r   r?   )r   s   "r   r   r   �   s   € ÷ 'Bñ 'B”(ð 'BÔ3ñ 'Br!   c                óö  € \        V 4      p\        4       p\        VR,          4      p\        W14      p\	        VR,          4      p\	        VR,          4      p\	        VR,          4      p\	        VR,          4      p\        VV,           V,           V,           VVVVR7      p	V U
u. uF>  p
\        V
R,          V
R,          V
R	,          V
R
,          V
R,          V
R,          R7      NK@  	  pp
\        W›R7      # u up
i )zl
This endpoint shows available updates for packages in a system, categorized
by where they can be obtained.
Úallzesm-appsz	esm-infrazstandard-securityzstandard-updatesr$   r2   r3   r4   Úservice_namer6   r7   r<   rE   )r   r   r   r   Úlenr   r1   r?   )rM   Úua_infoÚpackagesÚupgradable_versionsÚupdate_listr   r   r   r   r@   ÚupdaterA   s   &           r   rJ   rJ   �   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   Â$AC6Úv1ÚPackageUpdatesN)r7   ÚnameÚfnÚoptions_clsÚintroduced_inz27.12Úrequires_networkFÚexample_pythonzP
from uaclient.api.u.pro.packages.updates.v1 import updates

result = updates()
Úresult_classÚ
exceptionsÚexample_cliz!pro api u.pro.packages.updates.v1Úexample_jsonaé  
{
    "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>",
        },
    ]
}
)Útypingr   Úuaclient.api.apir   Úuaclient.api.data_typesr   Úuaclient.configr   Úuaclient.data_typesr   r   r	   r
   r   Úuaclient.security_statusr   r   r   r   r   r1   r?   rA   rJ   ÚendpointÚ_docrK   r!   r   Ú<module>rk      s§   ðÝ å (Ý 2Ý $÷õ ÷ó ô'9�Jô '9ôT*�ô *ôZ˜: ~ô õ" õ'BñT ØØ	ØØô	€ð �WØ˜Øð ð
 Ð(Ø�"ØÐ6Øð ð ‚r!   