Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/libcloud/common/__pycache__/durabledns.cpython-39.pyc
Ðазад
a q�h�) � @ s d dl mZ d dl mZ d dlZd dlmZ d dlmZ d dlm Z dZ dd � Zd ddd gd�ddg d�d�ddg d�d�ddg d�d�ddg d�d�ddg d�d�ddg d�d�dd g d!�d�d"d#g d�d�d$d%g d&�d�d'� ZG d(d)� d)e �ZG d*d+� d+e �ZG d,d-� d-e�ZdS ).� )�List)�DictN)�ElementTree)�ConnectionUserAndKey)�XmlResponsezdurabledns.comc C sJ t �ddd| i�}t �|d| |f �}|D ]}t �|d| |f � q,|S )aB Return a xml schema used to do an API request. :param urn_nid: API urn namespace id. :type urn_nid: type: ``str`` :param method: API method. :type method: type: ``str`` :param attributes: List of attributes to include. :type attributes: ``list`` of ``str`` rtype: :class:`Element` z soap:Bodyzxmlns:mz&https://durabledns.com/services/dns/%sz urn:%s:%s)�ETZElementZ SubElement)�urn_nid�method� attributes�soap�urn� attribute� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/libcloud/common/durabledns.py�_schema_builder s �r Z listZoneswsdlZ listZones�apiuser�apikey)r r r ZlistRecordswsdlZlistRecords)r r �zonenameZgetZonewsdlZgetZoneZ getRecordwsdlZ getRecord)r r r ZrecordidZcreateZonewsdlZ createZone)r r r �nsZmbox�refresh�retry�expire�minimum�ttlZxferZ update_aclZcreateRecordwsdlZcreateRecord) r r r �name�type�data�auxr �ddns_enabledZupdateZonewsdlZ updateZoneZupdateRecordwsdlZupdateRecord) r r r �idr r r r r ZdeleteZonewsdlZ deleteZoneZdeleteRecordwsdlZdeleteRecord)r r r r ) Z list_zonesZlist_recordsZget_zoneZ get_recordZcreate_zoneZ create_recordZupdate_zoneZ update_recordZdelete_zoneZ delete_recordc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�DurableDNSExceptionc C s || _ || _||f| _d S �N)�code�message�args)�selfr"