Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/openstack/dns/v2/__pycache__/_proxy.cpython-39.pyc
Ðазад
a u�h�S � @ sj d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z d dlmZ d dlm Z G dd � d ej�Zd S )� )�proxy)� recordset)�zone)�zone_import)�zone_export)� zone_transfer)�floating_ipc @ s> e Zd Zdd� Zdd� Zdd� ZdLdd �Zd d� ZdMdd �Zdd� Z dd� Z dNdd�Zdd� Zdd� Z dd� ZdOdd�ZdPdd�Zdd � Zd!d"� Zd#d$� ZdQd%d&�Zd'd(� Zd)d*� Zd+d,� Zd-d.� ZdRd/d0�Zd1d2� Zd3d4� Zd5d6� Zd7d8� Zd9d:� Zd;d<� Zd=d>� Z dSd?d@�Z!dAdB� Z"dCdD� Z#dEdF� Z$dGdH� Z%dTdJdK�Z&dS )U�Proxyc K s | j tjfi |��S )a Retrieve a generator of zones :param dict query: Optional query parameters to be sent to limit the resources being returned. * `name`: Zone Name field. * `type`: Zone Type field. * `email`: Zone email field. * `status`: Status of the zone. * `ttl`: TTL field filter.abs * `description`: Zone description field filter. :returns: A generator of zone :class:`~openstack.dns.v2.zone.Zone` instances. )�_list�_zone�Zone��self�query� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/openstack/dns/v2/_proxy.py�zones s zProxy.zonesc K s | j tjfddi|��S )aI Create a new zone from attributes :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.dns.v2.zone.Zone`, comprised of the properties on the Zone class. :returns: The results of zone creation. :rtype: :class:`~openstack.dns.v2.zone.Zone` �prepend_keyF)�_creater r �r �attrsr r r �create_zone* s zProxy.create_zonec C s | � tj|�S )z�Get a zone :param zone: The value can be the ID of a zone or a :class:`~openstack.dns.v2.zone.Zone` instance. :returns: Zone instance. :rtype: :class:`~openstack.dns.v2.zone.Zone` )�_getr r )r r r r r �get_zone5 s zProxy.get_zoneTc C s | j tj||d�S )a Delete a zone :param zone: The value can be the ID of a zone or a :class:`~openstack.dns.v2.zone.Zone` instance. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the zone does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent zone. :returns: Zone been deleted :rtype: :class:`~openstack.dns.v2.zone.Zone` ��ignore_missing)�_deleter r )r r r r r r �delete_zone? s zProxy.delete_zonec K s | j tj|fi |��S )a Update zone attributes :param zone: The id or an instance of :class:`~openstack.dns.v2.zone.Zone`. :param dict attrs: attributes for update on :class:`~openstack.dns.v2.zone.Zone`. :rtype: :class:`~openstack.dns.v2.zone.Zone` )�_updater r �r r r r r r �update_zoneO s zProxy.update_zonec K s | j tj||d�S )a� Find a single zone :param name_or_id: The name or ID of a zone :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the zone does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent zone. :returns: :class:`~openstack.dns.v2.zone.Zone` r )�_findr r )r � name_or_idr r r r r � find_zone[ s �zProxy.find_zonec K s | � tj|�}|�| �S )z�Abandon Zone :param zone: The value can be the ID of a zone to be abandoned or a :class:`~openstack.dns.v2.zone_export.ZoneExport` instance. :returns: None )� _get_resourcer r Zabandonr r r r �abandon_zonej s zProxy.abandon_zonec K s | � tj|�}|�| �S )z�Trigger update of secondary Zone :param zone: The value can be the ID of a zone to be abandoned or a :class:`~openstack.dns.v2.zone_export.ZoneExport` instance. :returns: None )r$ r r Zxfrr r r r �xfr_zonev s zProxy.xfr_zoneNc K sD d}|sd}n| � tj|�}|�d|ji� | jtjfd|i|��S )a� Retrieve a generator of recordsets :param zone: The optional value can be the ID of a zone or a :class:`~openstack.dns.v2.zone.Zone` instance. If it is not given all recordsets for all zones of the tenant would be retrieved :param dict query: Optional query parameters to be sent to limit the resources being returned. * `name`: Recordset Name field. * `type`: Type field. * `status`: Status of the recordset. * `ttl`: TTL field filter. * `description`: Recordset description field filter. :returns: A generator of zone (:class:`~openstack.dns.v2.recordset.Recordset`) instances Nz/recordsets�zone_id� base_path)r$ r r �update�idr �_rs� Recordset)r r r r( r r r � recordsets� s zProxy.recordsetsc K s6 | � tj|�}|�d|ji� | jtjfddi|��S )a� Create a new recordset in the zone :param zone: The value can be the ID of a zone or a :class:`~openstack.dns.v2.zone.Zone` instance. :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.dns.v2.recordset.Recordset`, comprised of the properties on the Recordset class. :returns: The results of zone creation :rtype: :class:`~openstack.dns.v2.recordset.Recordset` r'