"Fossies" - the Fresh Open Source Software Archive

Member "openstack-heat-13.0.0/heat/engine/resources/openstack/designate/record.py" (16 Oct 2019, 1532 Bytes) of package /linux/misc/openstack/openstack-heat-13.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "record.py" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 12.0.0_vs_13.0.0.

    1 #
    2 #    Licensed under the Apache License, Version 2.0 (the "License"); you may
    3 #    not use this file except in compliance with the License. You may obtain
    4 #    a copy of the License at
    5 #
    6 #         http://www.apache.org/licenses/LICENSE-2.0
    7 #
    8 #    Unless required by applicable law or agreed to in writing, software
    9 #    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
   10 #    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
   11 #    License for the specific language governing permissions and limitations
   12 #    under the License.
   13 
   14 from heat.common.i18n import _
   15 from heat.engine.resources.openstack.heat import none_resource
   16 from heat.engine import support
   17 
   18 
   19 class DesignateRecord(none_resource.NoneResource):
   20     """Heat Template Resource for Designate Record.
   21 
   22     Designate provides DNS-as-a-Service services for OpenStack. Record is
   23     storage unit in DNS. So, DNS name server is a server that stores the DNS
   24     records for a domain. Each record has a type and type-specific data.
   25     """
   26 
   27     support_status = support.SupportStatus(
   28         status=support.HIDDEN,
   29         version='10.0.0',
   30         message=_('This resource has been removed, use '
   31                   'OS::Designate::RecordSet instead.'),
   32         previous_status=support.SupportStatus(
   33             status=support.DEPRECATED,
   34             version='8.0.0',
   35             previous_status=support.SupportStatus(version='5.0.0')))
   36 
   37 
   38 def resource_mapping():
   39     return {
   40         'OS::Designate::Record': DesignateRecord
   41     }