PHP WebShell

Текущая директория: /usr/lib/python3/dist-packages/uaclient/api/u/pro/attach/magic/revoke/__pycache__

Просмотр файла: v1.cpython-310.pyc

o

UٵgR
�
@s�ddlmZddlmZddlmZddlmZddlm	Z	ddl
mZmZm
Z
Gdd�de�ZGd	d
�d
ee�Zdedefd
d�Zdededefdd�Zeddeed�Zdddeejdfejdfejdfejdfejdfgddd�Zd S)!�)�
exceptions)�APIEndpoint)�AdditionalInfo)�UAConfig)�UAContractClient)�
DataObject�Field�StringDataValuec@s$eZdZededd�gZdd�ZdS)�MagicAttachRevokeOptions�magic_tokenz,The Token provided by the initiate endpoint.)�doccCs
||_dS�N)r)�selfr�r�K/usr/lib/python3/dist-packages/uaclient/api/u/pro/attach/magic/revoke/v1.py�__init__s
z!MagicAttachRevokeOptions.__init__N)�__name__�
__module__�__qualname__rr	�fieldsrrrrrr
	s��r
c@seZdZdS)�MagicAttachRevokeResultN)rrrrrrrrsr�options�returncCst|t��Sr
)�_revoker)rrrr�revokesr�cfgcCst|�}|�|j�t�S)z5
    This endpoint revokes a Magic Attach Token.
    )r�revoke_magic_attach_tokenrr)rr�contractrrrrsr�v1�MagicAttachRevoke)�version�name�fn�options_clsz27.11Tz�
from uaclient.api.u.pro.attach.magic.revoke.v1 import MagicAttachRevokeOptions, revoke

options = MagicAttachWaitOptions(magic_token="<magic_token>")
result = revoke(options)
zARaised if it is not possible to connect to the contracts service.zLRaised if there is an unexpected error in the contracts service interaction.zPRaised when trying to revoke a Token which was already activated through the UI.z-Raised when an invalid/expired Token is sent.zHRaised if the Magic Attach service is busy or unavailable at the moment.z?pro api u.pro.attach.magic.revoke.v1 --args magic_token=<token>z
{}
)�
introduced_in�requires_network�example_python�result_classr�example_cli�example_jsonN)�uaclient.apir�uaclient.api.apir�uaclient.api.data_typesr�uaclient.configr�uaclient.contractr�uaclient.data_typesrrr	r
rrr�endpoint�ConnectivityError�ContractAPIError� MagicAttachTokenAlreadyActivated�MagicAttachTokenError�MagicAttachUnavailable�_docrrrr�<module>sZ
��
��������"
�

Выполнить команду


Для локальной разработки. Не используйте в интернете!