| Server IP : 138.197.176.125 / Your IP : 216.73.217.55 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/uaclient/clouds/__pycache__/ |
Upload File : |
U
��g � @ sV d dl Z d dlmZmZ d dlmZmZ G dd� de jd�ZG dd� dee jd�Z dS ) � N)�Any�Dict)�config�contractc @ sf e Zd Zeejed�dd���Zejej e
d�dd��Zejed�dd��Zejeed �d
d��Z
dS )
�AutoAttachInstance��returnc C s 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 s zAutoAttachInstance.is_viable��cfgr c C s dS )�{
Cloud-specific implementation of acquiring the pro token using whatever
method suits the platform
Nr )r r r r r �acquire_pro_token s z$AutoAttachInstance.acquire_pro_tokenc C s dS )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 s z.AutoAttachInstance.should_poll_for_pro_license)�wait_for_changer c C s dS )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 @ sV e Zd Zeejeeef d�dd���Z eejed�dd���Z
ejed�dd�Z
d S )
�PublicCloudAutoAttachInstancer c C s dS )z=Return the identity document representing this cloud instanceNr r
r r r �identity_doc'