Current File : //usr/lib/python3/dist-packages/uaclient/clouds/__pycache__/__init__.cpython-312.pyc |
�
��g � � � 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'