%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/uaclient/entitlements/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/uaclient/entitlements/__pycache__/entitlement_status.cpython-312.pyc

�

��>f
���ddlZddlmZddlmZej
Gd�dej��Zej
Gd�dej��Zej
Gd�d	ej��Z	ej
Gd
�dej��Z
ej
Gd�d
ej��Zej
Gd�dej��Zej
Gd�dej��Z
Gd�d�Zej
Gd�dej��ZGd�d�Zy)�N)�Optional)�messagesc�:�eZdZdZe�Ze�Ze�Zy)�ApplicationStatuszO
    An enum to represent the current application status of an entitlement
    N)�__name__�
__module__�__qualname__�__doc__�object�ENABLED�DISABLED�WARNING���J/usr/lib/python3/dist-packages/uaclient/entitlements/entitlement_status.pyrrs����h�G��x�H��h�Grrc��eZdZdZdZdZy)�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)rrr	r
�ENTITLED�
UNENTITLEDrrrrrs����H��Jrrc�,�eZdZdZe�Ze�Zy)�ApplicabilityStatuszQ
    An enum to represent whether an entitlement could apply to this machine
    N)rrr	r
r�
APPLICABLE�INAPPLICABLErrrrrs�����J��8�Lrrc��eZdZdZdZdZy)�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)rrr	r
�	AVAILABLE�UNAVAILABLErrrrr)s��	��I��Krrc��eZdZdZdZdZdZy)�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
    �inactive�activezreboot-requiredN)rrr	r
�INACTIVE�ACTIVE�REBOOTREQUIREDrrrr!r!:s����H�
�F�&�Nrr!c�$�eZdZdZdZdZdZdZdZy)�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.
    �enabled�disabledzn/au—�warningN)	rrr	r
r%r$rrrrrrr(r(Gs"����F��H��L��K��Grr(c��eZdZdZe�Ze�Ze�Ze�Ze�Z	e�Z
e�Ze�Zy)�CanEnableFailureReasonzK
    An enum representing the reasons an entitlement can't be enabled.
    N)
rrr	r
r�NOT_ENTITLED�ALREADY_ENABLEDr�IS_BETA�INCOMPATIBLE_SERVICE�INACTIVE_REQUIRED_SERVICES�ACCESS_ONLY_NOT_SUPPORTED�ONLY_ACCESS_ONLY_SUPPORTEDrrrr-r-WsE����8�L��h�O��8�L��h�G�!�8��!'��� &���!'��rr-c�>�eZdZ	ddedeejddfd�Zy)�CanEnableFailureN�reason�message�returnc� �||_||_y�N�r7r8��selfr7r8s   r�__init__zCanEnableFailure.__init__h���
�����rr;)rrr	r-rr�NamedMessager?rrrr6r6gs3��48��&���(�/�/�0��
�	rr6c�d�eZdZdZe�Ze�Ze�Ze�Ze�Z	e�Z
y)�CanDisableFailureReasonzL
    An enum representing the reasons an entitlement can't be disabled.
    N)rrr	r
r�ALREADY_DISABLED�NOT_APPLICABLE�ACTIVE_DEPENDENT_SERVICES�PURGE_NOT_SUPPORTED�NOT_FOUND_DEPENDENT_SERVICE�NO_PURGE_WITHOUT_ORIGINrrrrCrCqs8����x���X�N� &��� �(��"(�(��$�h�rrCc�T�eZdZ	ddedeejddfd�Zede	fd��Z
y)�CanDisableFailureNr7r8r9c� �||_||_yr;r<r=s   rr?zCanDisableFailure.__init__�r@rc�J�|jr|jjSdS)N�)r8�msg)r>s r�
message_valuezCanDisableFailure.message_value�s��#'�<�<�t�|�|���7�R�7rr;)rrr	rCrrrAr?�property�strrPrrrrKrKsN��48��'���(�/�/�0��
�	��8�s�8��8rrK)�enum�typingr�uaclientr�unique�Enumrrrrr!r(r-r6rCrKrrr�<module>rXs:����������	�	��
�����	�T�Y�Y�	�
�	�����$�)�)��
�����
�T�Y�Y�
�
�
� ���	'�T�Y�Y�	'�
�	'�����t�y�y��
�����*�T�Y�Y�*�
�*������
'�d�i�i�
'�
�
'�8�8r

Zerion Mini Shell 1.0