Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/libcloud/compute/drivers/__pycache__/gridspot.cpython-39.pyc
Ðазад
a q�h� � @ s� d dl mZmZ d dl mZ d dlmZmZ d dlmZ d dl m Z G dd� de�ZG dd � d e�Z G d d� de�ZG dd � d e�ZdS )� )� NodeDriver�Node)� NodeState)� ConnectionKey�JsonResponse)�Provider��InvalidCredsErrorc @ s e Zd Zdd� Zdd� ZdS )�GridspotAPIExceptionc C s | j d S )Nr ��args��self� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/libcloud/compute/drivers/gridspot.py�__str__ s zGridspotAPIException.__str__c C s d| j d S )Nz<GridspotAPIException '%s'>r r r r r r �__repr__ s zGridspotAPIException.__repr__N)�__name__� __module__�__qualname__r r r r r r r s r c s( e Zd ZdZ� fdd�Zdd� Z� ZS )�GridspotResponsez% Response class for Gridspot c s. t t| ��� }d|v r*|d r*t|d ��|S )N�exception_name)�superr � parse_bodyr )r �body�� __class__r r r % s zGridspotResponse.parse_bodyc C s t d��d S )NzInvalid api key/instance_idr r r r r �parse_error- s zGridspotResponse.parse_error)r r r �__doc__r r � __classcell__r r r r r ! s r c @ s e Zd ZdZdZeZdd� ZdS )�GridspotConnectionz? Connection class to connect to Gridspot's API servers zgridspot.comc C s | j |d<