Файловый менеджер - Редактировать - /usr/lib/python3/dist-packages/uaclient/clouds/__pycache__/__init__.cpython-310.pyc
Ðазад
o ��g � @ 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'