Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/libcloud/compute/drivers/__pycache__/elastichosts.cpython-39.pyc
Ðазад
a q�h � @ s� d Z ddlmZ ddlmZ dddd�ddd d�d ddd�d ddd�dddd�dddd�dddd�dddd�d�ZdZddddd �d!d"d#dd �d$d%d#dd �d&d'd#dd �d(d)d*d+d �d,d-d*d+d �d.d/d*d+d �d0d1d*d+d �d2d3d*d+d �d4� ZG d5d6� d6e�Z G d7d8� d8e�Z G d9d:� d:e �ZG d;d<� d<e �ZG d=d>� d>e �Z G d?d@� d@e �ZG dAdB� dBe �ZG dCdD� dDe �ZG dEdF� dFe �ZG dGdH� dHe �ZdIS )Jz ElasticHosts Driver � )�Provider)�ElasticStackBaseNodeDriverz London Peer 1zUnited Kingdomzapi-lon-p.elastichosts.com)�nameZcountry�hostzLondon BlueSquarezapi-lon-b.elastichosts.comzSan Antonio Peer 1z United Stateszapi-sat-p.elastichosts.comzLos Angeles Peer 1zapi-lax-p.elastichosts.comzSan Jose (Silicon Valley)zapi-sjc-c.elastichosts.comzToronto Peer 1ZCanadazapi-tor-p.elastichosts.comZSydneyZ Australiazapi-syd-v.elastichosts.comz Hong KongZChinazapi-hkg-e.elastichosts.com)�lon-p�lon-b�sat-p�lax-p�sjc-c�tor-p�syd-y�cn-1r �$38df0986-4d85-4b76-b502-3878ffc80161zCentOS Linux 5.5Z3GBT)�uuid�descriptionZsize_gunzippedZsupports_deployment�$980cf63c-f21e-4382-997b-6541d5809629zDebian Linux 5.0Z1GB�$aee5589a-88c3-43ef-bb0a-9cab6e64192dzUbuntu Linux 10.04�$62f512cd-82c7-498e-88d8-a09ac2ef20e7zUbuntu Linux 12.04�$b9d0eb72-d273-43f1-98e3-0d4b87d372c0zWindows Web Server 2008Z13GBF�$30824e97-05a4-410c-946e-2ba5a92b07cbzWindows Web Server 2008 R2�$9ecf810e-6ad1-40ef-b360-d606f0444671z'Windows Web Server 2008 R2 + SQL Server�$10a88d1c-6575-46e3-8d2c-7744065ea530zWindows Server 2008 Standard R2�$2567f25c-8fb8-45c7-95fc-bfe3c3d84c47z,Windows Server 2008 Standard R2 + SQL Server) r r r r r r r r r c @ s e Zd Zdd� Zdd� ZdS )�ElasticHostsExceptionc 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/elastichosts.py�__str__� s zElasticHostsException.__str__c C s d| j d S )Nz<ElasticHostsException '%s'>r r r r r r �__repr__� s zElasticHostsException.__repr__N)�__name__� __module__�__qualname__r r! r r r r r � s r c sT e Zd ZdZejZdZdZdZ ddgiZ eZdddde f� fd d � Zdd� Z� ZS ) �ElasticHostsNodeDriverz, Node Driver class for ElasticHosts ZelastichostsZElasticHostszhttp://www.elastichosts.com/Zcreate_nodeZgenerates_passwordNTc s\ t | d�rt| dd �}|tvr*td| ��|d u| _tt| �jf ||||||d�|�� d S )N�_regionzInvalid region: %s)�key�secret�securer �port�region)�hasattr�getattr� API_ENDPOINTS� ValueError�_host_argument_set�superr% �__init__)r r'