HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/uaclient/entitlements/__pycache__/entitlement_status.cpython-38.pyc
U

��Jh
�@sddlZddlmZddlmZejGdd�dej��ZejGdd�dej��ZejGdd	�d	ej��Z	ejGd
d�dej��Z
ejGdd
�d
ej��ZejGdd�dej��ZejGdd�dej��Z
Gdd�d�ZejGdd�dej��ZGdd�d�ZdS)�N)�Optional)�messagesc@s"eZdZdZe�Ze�Ze�ZdS)�ApplicationStatuszO
    An enum to represent the current application status of an entitlement
    N)�__name__�
__module__�__qualname__�__doc__�objectZENABLEDZDISABLED�WARNING�rr�J/usr/lib/python3/dist-packages/uaclient/entitlements/entitlement_status.pyrsrc@seZdZdZdZdZdS)�ContractStatusz�
    An enum to represent whether a user is entitled to an entitlement

    (The value of each member is the string that will be used in status
    output.)
    �yes�noN)rrrrZENTITLEDZ
UNENTITLEDrrrrr
sr
c@seZdZdZe�Ze�ZdS)�ApplicabilityStatuszQ
    An enum to represent whether an entitlement could apply to this machine
    N)rrrrr	Z
APPLICABLE�INAPPLICABLErrrrrsrc@seZdZdZdZdZdS)�UserFacingAvailabilitya�
    An enum representing whether a service could be available for a machine.

    'Availability' means whether a service is available to machines with this
    architecture, series and kernel. Whether a contract is entitled to use
    the specific service is determined by the contract level.

    This enum should only be used in display code, it should not be used in
    business logic.
    rrN)rrrrZ	AVAILABLE�UNAVAILABLErrrrr)src@seZdZdZdZdZdZdS)�UserFacingConfigStatusz�
    An enum representing the user-visible config status of Pro system.

    This enum will be used in display code and will be written to status.json
    ZinactiveZactivezreboot-requiredN)rrrr�INACTIVE�ACTIVEZREBOOTREQUIREDrrrrr:src@s$eZdZdZdZdZdZdZdZdS)�UserFacingStatusz�
    An enum representing the states we will display in status output.

    This enum should only be used in display code, it should not be used in
    business logic.
    �enabledZdisabledzn/au—ZwarningN)	rrrrrrrrr
rrrrrGsrc@s@eZdZdZe�Ze�Ze�Ze�Ze�Z	e�Z
e�Ze�ZdS)�CanEnableFailureReasonzK
    An enum representing the reasons an entitlement can't be enabled.
    N)
rrrrr	ZNOT_ENTITLEDZALREADY_ENABLEDrZIS_BETAZINCOMPATIBLE_SERVICEZINACTIVE_REQUIRED_SERVICESZACCESS_ONLY_NOT_SUPPORTEDZONLY_ACCESS_ONLY_SUPPORTEDrrrrrWsrc@s&eZdZdeeejdd�dd�ZdS)�CanEnableFailureN��reason�message�returncCs||_||_dS�N�rr��selfrrrrr�__init__hszCanEnableFailure.__init__)N)rrrrrr�NamedMessager#rrrrrgs��rc@s4eZdZdZe�Ze�Ze�Ze�Ze�Z	e�Z
dS)�CanDisableFailureReasonzL
    An enum representing the reasons an entitlement can't be disabled.
    N)rrrrr	ZALREADY_DISABLEDZNOT_APPLICABLEZACTIVE_DEPENDENT_SERVICESZPURGE_NOT_SUPPORTEDZNOT_FOUND_DEPENDENT_SERVICEZNO_PURGE_WITHOUT_ORIGINrrrrr%qsr%c@s8eZdZdeeejdd�dd�Zee	d�dd��Z
dS)	�CanDisableFailureNrcCs||_||_dSrr r!rrrr#�szCanDisableFailure.__init__)rcCs|jr|jjSdS)N�)r�msg)r"rrr�
message_value�szCanDisableFailure.message_value)N)rrrr%rrr$r#�property�strr)rrrrr&s��r&)�enum�typingrZuaclientr�unique�Enumrr
rrrrrrr%r&rrrr�<module>s(