File: //usr/lib/python3/dist-packages/uaclient/clouds/__pycache__/__init__.cpython-38.pyc
U
��Jh � @ 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'