| Server IP : 209.205.66.10 / Your IP : 216.73.216.173 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : ( 1006) PHP Version : 8.5.8 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/uaclient/clouds/__pycache__/ |
Upload File : |
o
�K�i � @ sV d dl Z d dlmZmZ d dlmZmZ G dd� de jd�ZG dd� dee jd�Z dS ) � N)�Any�Dict)�config�contractc @ sj e Zd Zeejdefdd���Zejdej de
fdd��Zejdefdd��Zejd edefd
d��Z
dS )
�AutoAttachInstance�returnc C � dS )z?Return True if the machine is a viable AutoAttachCloudInstance.N� ��selfr r �:/usr/lib/python3/dist-packages/uaclient/clouds/__init__.py� is_viable � zAutoAttachInstance.is_viable�cfgc C r )�{
Cloud-specific implementation of acquiring the pro token using whatever
method suits the platform
Nr )r r r r r �acquire_pro_token � z$AutoAttachInstance.acquire_pro_tokenc C r )zw
Cloud-specific checks for whether the daemon should continously poll
for Ubuntu Pro licenses.
Nr r
r r r �should_poll_for_pro_license r z.AutoAttachInstance.should_poll_for_pro_license�wait_for_changec C r )z1
Check for an Ubuntu Pro license
Nr )r r r r r �is_pro_license_present s z)AutoAttachInstance.is_pro_license_presentN)�__name__�
__module__�__qualname__�property�abc�abstractmethod�boolr
r �UAConfig�strr r r r r r r r s r )� metaclassc @ sX e Zd Zeejdeeef fdd���Z eejdefdd���Z
dejdefdd�Z
d S )
�PublicCloudAutoAttachInstancer c C r )z=Return the identity document representing this cloud instanceNr r
r r r �identity_doc'