| Server IP : 198.244.165.102 / Your IP : 216.73.216.218 [ Web Server : nginx/1.24.0 System : Linux modovh-ub-01 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : colleary ( 1011) PHP Version : 8.3.23 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /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'