Debian Codegraph @

neutron_lib/api/definitions/router_availability_zone.py

raw
1 # Licensed under the Apache License, Version 2.0 (the "License");
2 # you may not use this file except in compliance with the License.
3 # You may obtain a copy of the License at
4 #
5 # http://www.apache.org/licenses/LICENSE-2.0
6 #
7 # Unless required by applicable law or agreed to in writing, software
8 # distributed under the License is distributed on an "AS IS" BASIS,
9 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10 # implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 from neutron_lib.api.definitions import availability_zone as az
15 from neutron_lib.api.definitions import l3
16
17
18 ALIAS = 'router_availability_zone'
19 IS_SHIM_EXTENSION = False
20 IS_STANDARD_ATTR_EXTENSION = False
21 NAME = 'Router Availability Zone'
22 API_PREFIX = ''
23 DESCRIPTION = 'Availability zone support for router.'
24 UPDATED_TIMESTAMP = '2015-01-01T10:00:00-00:00'
25 RESOURCE_NAME = l3.ROUTER
26 COLLECTION_NAME = l3.ROUTERS
27 RESOURCE_ATTRIBUTE_MAP = {
28 COLLECTION_NAME: {
29 az.COLLECTION_NAME: {
30 'allow_post': False, 'allow_put': False,
31 'is_visible': True
32 },
33 az.AZ_HINTS: {
34 'allow_post': True, 'allow_put': False, 'is_visible': True,
35 'validate': {'type:availability_zone_hint_list': None},
36 'default': []
37 }
38 }
39 }
40 SUB_RESOURCE_ATTRIBUTE_MAP = {}
41 ACTION_MAP = {}
42 REQUIRED_EXTENSIONS = [l3.ALIAS, az.ALIAS]
43 OPTIONAL_EXTENSIONS = []
44 ACTION_STATUS = {}