HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/uaclient/api/u/pro/version/__pycache__/v1.cpython-38.pyc
U

��Jh7�@s�ddlmZddlmZddlmZddlmZddlm	Z	ddl
mZmZm
Z
ddlmZGdd	�d	e�ZGd
d�dee�Zed�d
d�Ze	ed�dd�Zeddedd�Zdddeedfgddd�ZdS)�)�messages)�APIEndpoint)�AdditionalInfo)�APIError)�UAConfig)�
DataObject�Field�StringDataValue)�get_versionc@seZdZejZdS)�VersionErrorN)�__name__�
__module__�__qualname__rZE_API_VERSION_ERRORZ_formatted_msg�rr�?/usr/lib/python3/dist-packages/uaclient/api/u/pro/version/v1.pyr
src@s*eZdZededd�gZed�dd�ZdS)�
VersionResult�installed_versionzThe current installed version)�doc�rcCs
||_dS�Nr)�selfrrrr�__init__szVersionResult.__init__N)rr
rrr	Zfields�strrrrrrrs��r)�returncCs
tt��Sr)�_versionrrrrr�versionsr)�cfgrc
CsFz
t�}Wn0tk
r:}ztt|�d��W5d}~XYnXt|d�S)z?
    This endpoint shows the installed Pro Client version.
    )Z	error_msgNr)r
�	Exceptionrrr)rr�errrrs

 rZv1ZVersionN)r�name�fnZoptions_clsz27.11FzG
from uaclient.api.u.pro.version.v1 import version

result = version()
z2Raised if the Client cannot determine the version.zpro api u.pro.version.v1z+
{
    "installed_version": "32.3~24.04"
}
)Z
introduced_inZrequires_networkZexample_pythonZresult_class�
exceptionsZexample_cliZexample_json)ZuaclientrZuaclient.api.apirZuaclient.api.data_typesrZuaclient.api.errorsrZuaclient.configrZuaclient.data_typesrrr	Zuaclient.versionr
rrrrZendpointZ_docrrrr�<module>s2
���