021946e386
* Creates /v2/zones/tasks/imports, which allows users to view imports as resources * Creates new database table zone_tasks for asynchronous tasks related to zones, along with the associated objects/adapters * Imports are done by passing over the request body, creating an async record in the db, and spawning a thread to do the import * Adds a config option to enable zone import Implements: async-import-export APIImpact: Adds /zones/tasks/imports and removes import from admin api Change-Id: Ib23810bf8b25d962b9d2d75e042bb097f3c12f7a
60 lines
3.5 KiB
Python
60 lines
3.5 KiB
Python
# Copyright (c) 2014 Rackspace Hosting
|
|
# All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
|
|
from designate.objects.base import DesignateObject # noqa
|
|
from designate.objects.base import DictObjectMixin # noqa
|
|
from designate.objects.base import ListObjectMixin # noqa
|
|
from designate.objects.base import PagedListObjectMixin # noqa
|
|
from designate.objects.blacklist import Blacklist, BlacklistList # noqa
|
|
from designate.objects.domain import Domain, DomainList # noqa
|
|
from designate.objects.domain_attribute import DomainAttribute, DomainAttributeList # noqa
|
|
from designate.objects.floating_ip import FloatingIP, FloatingIPList # noqa
|
|
from designate.objects.pool_manager_status import PoolManagerStatus, PoolManagerStatusList # noqa
|
|
from designate.objects.pool import Pool, PoolList # noqa
|
|
from designate.objects.pool_also_notifies import PoolAlsoNotifies, PoolAlsoNotifiesList # noqa
|
|
from designate.objects.pool_attribute import PoolAttribute, PoolAttributeList # noqa
|
|
from designate.objects.pool_ns_record import PoolNsRecord, PoolNsRecordList # noqa
|
|
from designate.objects.pool_nameserver import PoolNameserver, PoolNameserverList # noqa
|
|
from designate.objects.pool_target import PoolTarget, PoolTargetList # noqa
|
|
from designate.objects.pool_target_master import PoolTargetMaster, PoolTargetMasterList # noqa
|
|
from designate.objects.pool_target_option import PoolTargetOption, PoolTargetOptionList # noqa
|
|
from designate.objects.quota import Quota, QuotaList # noqa
|
|
from designate.objects.record import Record, RecordList # noqa
|
|
from designate.objects.recordset import RecordSet, RecordSetList # noqa
|
|
from designate.objects.server import Server, ServerList # noqa
|
|
from designate.objects.tenant import Tenant, TenantList # noqa
|
|
from designate.objects.tld import Tld, TldList # noqa
|
|
from designate.objects.tsigkey import TsigKey, TsigKeyList # noqa
|
|
from designate.objects.validation_error import ValidationError # noqa
|
|
from designate.objects.validation_error import ValidationErrorList # noqa
|
|
from designate.objects.zone_transfer_request import ZoneTransferRequest, ZoneTransferRequestList # noqa
|
|
from designate.objects.zone_transfer_accept import ZoneTransferAccept, ZoneTransferAcceptList # noqa
|
|
from designate.objects.zone_task import ZoneTask, ZoneTaskList # noqa
|
|
|
|
# Record Types
|
|
|
|
from designate.objects.rrdata_a import A, AList # noqa
|
|
from designate.objects.rrdata_aaaa import AAAA, AAAAList # noqa
|
|
from designate.objects.rrdata_cname import CNAME, CNAMEList # noqa
|
|
from designate.objects.rrdata_mx import MX, MXList # noqa
|
|
from designate.objects.rrdata_ns import NS, NSList # noqa
|
|
from designate.objects.rrdata_ptr import PTR, PTRList # noqa
|
|
from designate.objects.rrdata_soa import SOA, SOAList # noqa
|
|
from designate.objects.rrdata_spf import SPF, SPFList # noqa
|
|
from designate.objects.rrdata_srv import SRV, SRVList # noqa
|
|
from designate.objects.rrdata_sshfp import SSHFP, SSHFPList # noqa
|
|
from designate.objects.rrdata_txt import TXT, TXTList # noqa
|