File manager - Edit - /usr/lib/python3/dist-packages/uaclient/api/u/pro/attach/magic/revoke/__pycache__/v1.cpython-310.pyc
Back
o �(�fR � @ s� d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z d dl mZmZm Z G dd� de�ZG d d � d ee�Zdedefd d�Zdededefdd�Zeddeed�Zdddeejdfejdfejdfejdfejdfgddd�Zd S )!� )� exceptions)�APIEndpoint)�AdditionalInfo)�UAConfig)�UAContractClient)� DataObject�Field�StringDataValuec @ s$ e Zd Zededd�gZdd� ZdS )�MagicAttachRevokeOptions�magic_tokenz,The Token provided by the initiate endpoint.)�docc C s || _ d S �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__r r �fieldsr r r r r r s ��r c @ s e Zd ZdS )�MagicAttachRevokeResultN)r r r r r r r r s r �options�returnc C s t | t� �S r )�_revoker )r r r r �revoke s r �cfgc C s t |�}|�| j� t� S )z5 This endpoint revokes a Magic Attach Token. )r �revoke_magic_attach_tokenr r )r r �contractr r r r s 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_typesr r r r r r r �endpoint�ConnectivityError�ContractAPIError� MagicAttachTokenAlreadyActivated�MagicAttachTokenError�MagicAttachUnavailable�_docr r r r �<module> sZ �� ��������" �
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings