| 1 |
# All rights reserved. |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 |
# not use this file except in compliance with the License. You may obtain |
| 5 |
# a copy of the License at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 |
# License for the specific language governing permissions and limitations |
| 13 |
# under the License. |
| 14 |
|
| 15 |
from neutron_lib.api.definitions import dns |
| 16 |
|
| 17 |
# The alias of the extension. |
| 18 |
ALIAS = 'dns-integration-domain-keywords' |
| 19 |
|
| 20 |
# Whether or not this extension is simply signaling behavior to the user |
| 21 |
# or it actively modifies the attribute map (mandatory). |
| 22 |
IS_SHIM_EXTENSION = True |
| 23 |
|
| 24 |
# Whether the extension is marking the adoption of standardattr model for |
| 25 |
# legacy resources, or introducing new standardattr attributes. False or |
| 26 |
# None if the standardattr model is adopted since the introduction of |
| 27 |
# resource extension (mandatory). |
| 28 |
# If this is True, the alias for the extension should be prefixed with |
| 29 |
# 'standard-attr-'. |
| 30 |
IS_STANDARD_ATTR_EXTENSION = False |
| 31 |
|
| 32 |
# The name of the extension (mandatory). |
| 33 |
NAME = 'DNS domain names with keywords allowed' |
| 34 |
|
| 35 |
# A prefix for API resources. An empty prefix means that the API is going |
| 36 |
# to be exposed at the v2/ level as any other core resource (mandatory). |
| 37 |
API_PREFIX = '' |
| 38 |
|
| 39 |
# The description of the extension (mandatory). |
| 40 |
DESCRIPTION = ("Allows to use keywords like <project_id>, <project_name>, " |
| 41 |
"<user_id> and <user_name> as DNS domain name") |
| 42 |
|
| 43 |
# A timestamp of when the extension was introduced (mandatory). |
| 44 |
UPDATED_TIMESTAMP = "2020-06-15T18:00:00-00:00" |
| 45 |
|
| 46 |
# The resource attribute map for the extension. It is effectively the |
| 47 |
# bulk of the API contract alongside ACTION_MAP (mandatory). |
| 48 |
RESOURCE_ATTRIBUTE_MAP = {} |
| 49 |
|
| 50 |
# The subresource attribute map for the extension. It adds child resources |
| 51 |
# to main extension's resource. The subresource map must have a parent and |
| 52 |
# a parameters entry. If an extension does not need such a map, None can |
| 53 |
# be specified (mandatory). For example: |
| 54 |
SUB_RESOURCE_ATTRIBUTE_MAP = {} |
| 55 |
|
| 56 |
# The action map: it associates verbs with methods to be performed on |
| 57 |
# the API resource (mandatory). |
| 58 |
ACTION_MAP = {} |
| 59 |
|
| 60 |
# The action status: it associates response statuses with methods to be |
| 61 |
# performed on the API resource (mandatory). |
| 62 |
ACTION_STATUS = {} |
| 63 |
|
| 64 |
# The list of required extensions (mandatory). |
| 65 |
REQUIRED_EXTENSIONS = [dns.ALIAS] |
| 66 |
|
| 67 |
# The list of optional extensions (mandatory). |
| 68 |
OPTIONAL_EXTENSIONS = [] |