%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/uaclient/api/u/pro/attach/magic/revoke/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/uaclient/api/u/pro/attach/magic/revoke/__pycache__/v1.cpython-312.pyc

�

�(�fR
�
�T�ddlmZddlmZddlmZddlmZddlm	Z	ddl
mZmZm
Z
Gd�de�ZGd	�d
ee�Zdedefd
�Zdededefd�Zeddee��Zdddeej&dfej(dfej*dfej,dfej.dfgddd�Zy)�)�
exceptions)�APIEndpoint)�AdditionalInfo)�UAConfig)�UAContractClient)�
DataObject�Field�StringDataValuec�*�eZdZeded��gZd�Zy)�MagicAttachRevokeOptions�magic_tokenz,The Token provided by the initiate endpoint.)�docc��||_y�N)r
)�selfr
s  �K/usr/lib/python3/dist-packages/uaclient/api/u/pro/attach/magic/revoke/v1.py�__init__z!MagicAttachRevokeOptions.__init__s
��&���N)�__name__�
__module__�__qualname__r	r
�fieldsr�rrrr	s��
���>�	
��F�'rrc��eZdZy)�MagicAttachRevokeResultN)rrrrrrrrs��rr�options�returnc�*�t|t��Sr)�_revoker)rs r�revoker s���7�H�J�'�'r�cfgc�b�t|�}|j|j�t�S)z5
    This endpoint revokes a Magic Attach Token.
    )r�revoke_magic_attach_tokenr
r)rr!�contracts   rrrs+�� ��$�H��&�&�w�':�':�;�"�$�$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_typesrr	r
rrr r�endpoint�ConnectivityError�ContractAPIError� MagicAttachTokenAlreadyActivated�MagicAttachTokenError�MagicAttachUnavailable�_docrrr�<module>r>s��#�(�2�$�.�B�B�
'�z�
'�	�j�.�	�(�,�(�1H�(�	%�
%�	%�,4�	%��	%���	��(�	�����,�
�(�(��	
�
�'�'�(�	
�
�7�7�-�	
�
�,�,�;�	
�

�-�-��	
�5!�DU��[0�r

Zerion Mini Shell 1.0