| Server IP : 159.223.102.202 / Your IP : 216.73.217.92 Web Server : nginx/1.26.0 System : Linux Gen1-cloudpanel2ubuntu2404-1vcpu-1gb-nyc1-01 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : albasshbotta ( 1021) PHP Version : 8.2.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/uaclient/clouds/__pycache__/ |
Upload File : |
�
|f� � �H � d dl Z d dlmZmZ G d� de j �� Zy)� N)�Any�Dictc �
� e Zd Zeej
deeef fd�� � Z eej
defd�� � Z
eej
defd�� � Zej
defd�� Z
ej
dedefd�� Zy) �AutoAttachCloudInstance�returnc � � y)z=Return the identity document representing this cloud instanceN� ��selfs �:/usr/lib/python3/dist-packages/uaclient/clouds/__init__.py�identity_docz$AutoAttachCloudInstance.identity_doc � � �
� c � � y)z=Return a string of the cloud type on which this instance runsNr r
s r �
cloud_typez"AutoAttachCloudInstance.cloud_type r r c � � y)z?Return True if the machine is a viable AutoAttachCloudInstance.Nr r
s r � is_viablez!AutoAttachCloudInstance.is_viable r 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_licensez3AutoAttachCloudInstance.should_poll_for_pro_license s � �
r �wait_for_changec � � y)z1
Check for an Ubuntu Pro license
Nr )r r s r �is_pro_license_presentz.AutoAttachCloudInstance.is_pro_license_present s � �
r N)�__name__�
__module__�__qualname__�property�abc�abstractmethodr �strr r
r �boolr r r r r r r r s� � �
����
�d�3��8�n�
� � �
� ����
�C�
� � �
� ����
�4�
� � �
� ���
�T�
� �
� ���
��
�$�
� �
r r )� metaclass)r �typingr r �ABCMetar r r r �<module>r$ s ��
� �
����
r