%PDF- %PDF-
Direktori : /lib/python3/dist-packages/uaclient/__pycache__/ |
Current File : //lib/python3/dist-packages/uaclient/__pycache__/contract.cpython-312.pyc |
� �Hcf�{ � �v � d dl Z d dlZd dlZd dlmZ d dlmZmZmZm Z m Z d dlmZm Z mZmZmZmZmZmZmZ d dlmZ d dlmZ d dlmZ d dlmZ d d lmZmZ d d l m!Z! d dl"m#Z# dZ$d Z%d Z&dZ'dZ(dZ)dZ*dZ+dZ,dZ-dZ.ddddd�Z/ e j` � Z1 ejd ejf e4� � Z5 edddg� Z6 G d� de!jn � Z8de9fd�Z: d<d ed!ee;ef d"ee;ef d#e<d$e<d%dfd&�Z= d=d ed'ee;ef d(ee;ef d#e<d$e<d%e ee<f fd)�Z>d*ej~ d%ej� fd+�ZAd,� ZBd ed%ee fd-�ZCd ed.e;d%ee;ef fd/�ZDd ed%e<fd0�ZEd1ee;e;f d2ee;e;f d%eFfd3�ZG d>d4ee;ef d5e;d6e;de e; d%eeFee;ef f f d7�ZH d?d'ee;ef d8e e; de e; d%dfd9�ZId ed:ee;ef d%ee6 fd;�ZJy)@� N)� namedtuple)�Any�Dict�List�Optional�Tuple) �clouds�event_logger� exceptions�http�messages�secret_manager�system�util�version)�_enabled_services)�_is_attached)�UAConfig)�ATTACH_FAIL_DATE_FORMAT)�attachment_data_file�machine_id_file)� serviceclient)�get_user_or_root_log_file_pathz/v1/context/machines/tokenz3/v1/contracts/{contract}/context/machines/{machine}z /v1/resourcesz3/v1/resources/{resource}/context/machines/{machine}z/v1/clouds/{cloud_type}/tokenz3/v1/contracts/{contract}/machine-activity/{machine}z/v1/contractz/v1/magic-attach� � � � )�series_overrides�series�cloud�variant�EnableByDefaultService�namer! c � � e Zd ZdZ ej ej g d��� dd�� Zde e ef fd�Zde de e ef fd �Z ej ej g d��� d ej fd�� Z dde d e dee de e ef fd�Zd� Zde de e ef fd�Zde e ef fd�Zde fd�Z dde de dee de e ef fd�Z dde de dee de fd�Zd� Zy)�UAContractClient�contract_url)r r r )�retry_sleepsNc �< � |st j | j � }| j � }|j ddj |� i� | j � }|j � |d<