Debian Codegraph @

neutron_lib/api/definitions/floatingip_pools.py

raw
1 # Licensed under the Apache License, Version 2.0 (the "License"); you may
2 # not use this file except in compliance with the License. You may obtain
3 # 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, WITHOUT
9 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 # License for the specific language governing permissions and limitations
11 # under the License.
12
13 from neutron_lib.api.definitions import l3
14 from neutron_lib.db import constants as db_const
15
16
17 FLOATINGIP_POOLS = 'floatingip_pools'
18
19 ALIAS = 'floatingip-pools'
20 IS_SHIM_EXTENSION = False
21 IS_STANDARD_ATTR_EXTENSION = False
22 NAME = 'Floating IP Pools Extension'
23 API_PREFIX = '/floatingip_pools'
24 DESCRIPTION = 'Provides a floating IP pools API.'
25 UPDATED_TIMESTAMP = '2018-03-21T10:00:00-00:00'
26 COLLECTION_NAME = FLOATINGIP_POOLS
27 RESOURCE_ATTRIBUTE_MAP = {
28 COLLECTION_NAME: {
29 'subnet_id': {'allow_post': False, 'allow_put': False,
30 'validate': {'type:uuid': None},
31 'is_visible': True},
32 'subnet_name': {'allow_post': False, 'allow_put': False,
33 'validate': {'type:string': db_const.NAME_FIELD_SIZE},
34 'is_visible': True},
35 'network_id': {'allow_post': False, 'allow_put': False,
36 'validate': {'type:uuid': None},
37 'is_visible': True},
38 'cidr': {'allow_post': False, 'allow_put': False,
39 'validate': {'type:subnet_or_none': None},
40 'is_visible': True},
41 'project_id': {'allow_post': False, 'allow_put': False,
42 'validate': {
43 'type:string': db_const.PROJECT_ID_FIELD_SIZE},
44 'is_visible': True},
45 },
46 }
47 SUB_RESOURCE_ATTRIBUTE_MAP = {}
48 ACTION_MAP = {}
49 REQUIRED_EXTENSIONS = [l3.ALIAS]
50 OPTIONAL_EXTENSIONS = []
51 ACTION_STATUS = {}