|
Server : LiteSpeed System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : idnco5810 ( 1093) PHP Version : 8.2.29 Disable Function : NONE Directory : /lib/python3/dist-packages/uaclient/api/u/pro/attach/magic/wait/__pycache__/ |
Upload File : |
o
��Jh[ � @ s� d dl Z d dlmZmZ d dlmZ d dlmZ d dlm Z d dl
mZ d dlm
Z
mZmZmZ dZG d d
� d
e
�ZG dd� de
e�Zd
edefdd�Zd
ede defdd�Zeddeed�Zdddeejdfejdfejdfejdfgddd �ZdS )!� N)�
exceptions�secret_manager)�APIEndpoint)�AdditionalInfo)�UAConfig)�UAContractClient)�
DataObject�Field�IntDataValue�StringDataValue�F c @ s* e Zd Zededd�gZdefdd�ZdS )�MagicAttachWaitOptions�magic_tokenz,The Token provided by the initiate endpoint.��docc C s
|| _ d S �N�r )�selfr � r �I/usr/lib/python3/dist-packages/uaclient/api/u/pro/attach/magic/wait/v1.py�__init__ s
zMagicAttachWaitOptions.__init__N)�__name__�
__module__�__qualname__r r �fields�strr r r r r r
s ��r
c @ sz e Zd Zededd�ededd�ededd�eded d�ed
edd�eded
d�gZdedededed
edefdd�Z dS )�MagicAttachWaitResult� user_codezACode the user will see in the UI when confirming the Magic Attachr �tokenz1The same Magic Token that was sent as an argument�expiresz0Timestamp of the Magic Attach process expiration�
expires_inz/Seconds before the Magic Attach process expires�contract_idz2ID of the contract the machine will be attached to�contract_tokenz(The contract Token to attach the machinec C s( || _ || _|| _|| _|| _|| _d S r �r r r r r! r"