| Server IP : 74.208.250.37 / Your IP : 216.73.216.114 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : miferval ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /proc/self/root/lib/python3/dist-packages/uaclient/clouds/__pycache__/ |
Upload File : |
�
GK�i � � � d dl Z d dlmZmZ d dlmZmZ G d� de j �� Z G d� dee j �� Z y) � N)�Any�Dict)�config�contractc �� � e Zd Zeej
defd�� � Zej
dej de
fd�� Zej
defd�� Zej
dedefd�� Z
y) �AutoAttachInstance�returnc � � y)z?Return True if the machine is a viable AutoAttachCloudInstance.N� ��selfs �:/usr/lib/python3/dist-packages/uaclient/clouds/__init__.py� is_viablezAutoAttachInstance.is_viable � � �
� �cfgc � � y)�{
Cloud-specific implementation of acquiring the pro token using whatever
method suits the platform
Nr )r
r s r �acquire_pro_tokenz$AutoAttachInstance.acquire_pro_token � � �
r c � � y)zw
Cloud-specific checks for whether the daemon should continously poll
for Ubuntu Pro licenses.
Nr r s r �should_poll_for_pro_licensez.AutoAttachInstance.should_poll_for_pro_license r r �wait_for_changec � � y)z1
Check for an Ubuntu Pro license
Nr )r
r s r �is_pro_license_presentz)AutoAttachInstance.is_pro_license_present s � �
r N)�__name__�
__module__�__qualname__�property�abc�abstractmethod�boolr r �UAConfig�strr r r r r r r r s� � �
����
�4�
� � �
� ���
�V�_�_�
��
� �
� ���
�T�
� �
� ���
��
�$�
� �
r r )� metaclassc � � e Zd Zeej
deeef fd�� � Z eej
defd�� � Z
dej defd�Z
y)�PublicCloudAutoAttachInstancer c � � y)z=Return the identity document representing this cloud instanceNr r s r �identity_docz*PublicCloudAutoAttachInstance.identity_doc'