| Current Path : /usr/lib/python3/dist-packages/uaclient/entitlements/__pycache__/ |
| Current File : //usr/lib/python3/dist-packages/uaclient/entitlements/__pycache__/entitlement_status.cpython-38.pyc |
U
8�-d � @ s d dl Z d dlmZ d dlmZ e jG dd� de j��Ze jG dd� de j��Ze jG dd � d e j��Z e jG d
d� de j��Z
e jG dd
� d
e j��Ze jG dd� de j��Ze jG dd� de j��Z
G dd� d�Ze jG dd� de j��ZG dd� d�ZdS )� N)�Optional)�messagesc @ s e Zd ZdZe� Ze� ZdS )�ApplicationStatuszO
An enum to represent the current application status of an entitlement
N)�__name__�
__module__�__qualname__�__doc__�objectZENABLEDZDISABLED� r
r
�J/usr/lib/python3/dist-packages/uaclient/entitlements/entitlement_status.pyr s r c @ s e Zd ZdZdZdZdS )�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)r r r r ZENTITLEDZ
UNENTITLEDr
r
r
r r s r c @ s e Zd ZdZe� Ze� ZdS )�ApplicabilityStatuszQ
An enum to represent whether an entitlement could apply to this machine
N)r r r r r Z
APPLICABLE�INAPPLICABLEr
r
r
r r s r c @ s e Zd ZdZdZdZdS )�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.
r
r N)r r r r Z AVAILABLE�UNAVAILABLEr
r
r
r r ( s r c @ s e Zd ZdZdZdZdZdS )�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)r r r r �INACTIVE�ACTIVEZREBOOTREQUIREDr
r
r
r r 9 s r c @ s$ e Zd ZdZdZdZdZdZdZdS )�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) r r r r r r r r ZWARNINGr
r
r
r r F s r c @ s: e Zd ZdZe� Ze� Ze� Ze� Ze� Z e� Z
e� ZdS )�CanEnableFailureReasonzK
An enum representing the reasons an entitlement can't be enabled.
N)r r r r r ZNOT_ENTITLEDZALREADY_ENABLEDr ZIS_BETAZINCOMPATIBLE_SERVICEZINACTIVE_REQUIRED_SERVICESZACCESS_ONLY_NOT_SUPPORTEDr
r
r
r r V s r c @ s&