HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/uaclient/api/u/pro/version/__pycache__/v1.cpython-310.pyc
o

0xvc��@s�ddlmZddlmZddlmZddlmZddlm	Z	m
Z
mZddlm
Z
Gdd�de�ZGd	d
�d
e	e�Zdefdd
�Zdedefdd�Zeddedd�ZdS)�)�APIEndpoint)�AdditionalInfo)�APIError)�UAConfig)�
DataObject�Field�StringDataValue)�get_versionc@seZdZdS)�VersionErrorN)�__name__�
__module__�__qualname__�rr�?/usr/lib/python3/dist-packages/uaclient/api/u/pro/version/v1.pyr
	sr
c@s&eZdZede�gZdefdd�ZdS)�
VersionResult�installed_versioncCs
||_dS�N�r)�selfrrrr�__init__�
zVersionResult.__init__N)rrr
rr�fields�strrrrrrr
s�r�returncCs
tt��Sr)�_versionrrrrr�versionrr�cfgc
Cs>zt�}Wnty}ztt|�dd��d}~wwt|d�S)Nzunable-to-determine-version)�msg�msg_coder)r	�	Exceptionr
rr)rr�errrrs
��
r�v1�VersionN)r�name�fn�options_cls)�uaclient.api.apir�uaclient.api.data_typesr�uaclient.api.errorsr�uaclient.configr�uaclient.data_typesrrr�uaclient.versionr	r
rrr�endpointrrrr�<module>s 	
�