%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/uaclient/api/u/pro/version/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/uaclient/api/u/pro/version/__pycache__/v1.cpython-312.pyc

�

�(�f7����ddlmZddlmZddlmZddlmZddlm	Z	ddl
mZmZm
Z
ddlmZGd�d	e�ZGd
�dee�Zdefd
�Zde	defd�Zedded��Zdddeedfgddd�Zy)�)�messages)�APIEndpoint)�AdditionalInfo)�APIError)�UAConfig)�
DataObject�Field�StringDataValue)�get_versionc�$�eZdZejZy)�VersionErrorN)�__name__�
__module__�__qualname__r�E_API_VERSION_ERROR�_formatted_msg���?/usr/lib/python3/dist-packages/uaclient/api/u/pro/version/v1.pyr
r

s
���1�1�Nrr
c�0�eZdZeded��gZdefd�Zy)�
VersionResult�installed_versionzThe current installed version)�docc��||_y�N�r)�selfrs  r�__init__zVersionResult.__init__s
��!2��rN)rrrr	r
�fields�strrrrrrrs&��
���/�	
��F�3�S�3rr�returnc�(�tt��Sr)�_versionrrrr�versionr$s���H�J��r�cfgc�|�	t�}t	|��S#t$r}tt|����d}~wwxYw)z?
    This endpoint shows the installed Pro Client version.
    )�	error_msgNr)r�	Exceptionr
r r)r%r$�es   rr#r#s<��-��-���7�3�3���-��S��V�,�,��-�s�
�	;�6�;�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_typesrr	r
�uaclient.versionrr
rr$r#�endpoint�_docrrr�<module>r?s����(�2�(�$�B�B�(�2�8�2�
3�J��
3� �� �4�(�4�}�4���	���	�����
"�	�K�L��.���r

Zerion Mini Shell 1.0