Debian Codegraph @

neutron_lib/api/definitions/network_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_def
15 from neutron_lib.api.definitions import network
16
17 ALIAS = 'network_availability_zone'
18 IS_SHIM_EXTENSION = False
19 IS_STANDARD_ATTR_EXTENSION = False
20 NAME = 'Network Availability Zone'
21 API_PREFIX = ''
22 DESCRIPTION = 'Availability zone support for network.'
23 UPDATED_TIMESTAMP = '2015-01-01T10:00:00-00:00'
24 RESOURCE_NAME = network.RESOURCE_NAME
25 COLLECTION_NAME = network.COLLECTION_NAME
26 RESOURCE_ATTRIBUTE_MAP = {
27 COLLECTION_NAME: {
28 az_def.COLLECTION_NAME: {
29 'allow_post': False, 'allow_put': False,
30 'is_visible': True
31 },
32 az_def.AZ_HINTS: {
33 'allow_post': True, 'allow_put': False, 'is_visible': True,
34 'is_sort_key': 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 = [az_def.ALIAS]
43 OPTIONAL_EXTENSIONS = []
44 ACTION_STATUS = {}