HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/uaclient/api/u/pro/version/__pycache__/v1.cpython-310.pyc
o

��Jh7�@s�ddlmZddlmZddlmZddlmZddlm	Z	ddl
mZmZm
Z
ddlmZGdd	�d	e�ZGd
d�dee�Zdefd
d�Zde	defdd�Zeddedd�Zdddeedfgddd�ZdS)�)�messages)�APIEndpoint)�AdditionalInfo)�APIError)�UAConfig)�
DataObject�Field�StringDataValue)�get_versionc@seZdZejZdS)�VersionErrorN)�__name__�
__module__�__qualname__r�E_API_VERSION_ERROR�_formatted_msg�rr�?/usr/lib/python3/dist-packages/uaclient/api/u/pro/version/v1.pyr
s
rc@s*eZdZededd�gZdefdd�ZdS)�
VersionResult�installed_versionzThe current installed version)�doccCs
||_dS�N�r)�selfrrrr�__init__�
zVersionResult.__init__N)rr
rrr	�fields�strrrrrrrs��r�returncCs
tt��Sr)�_versionrrrrr�versionrr�cfgc
Cs<zt�}Wnty}ztt|�d��d}~wwt|d�S)z?
    This endpoint shows the installed Pro Client version.
    )�	error_msgNr)r
�	Exceptionrrr)r r�errrrs
��
r�v1�VersionN)r�name�fn�options_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"
}
)�
introduced_in�requires_network�example_python�result_class�
exceptions�example_cli�example_json)�uaclientr�uaclient.api.apir�uaclient.api.data_typesr�uaclient.api.errorsr�uaclient.configr�uaclient.data_typesrrr	�uaclient.versionr
rrrr�endpoint�_docrrrr�<module>s4
��
�