Debian Codegraph @

neutron_lib/api/definitions/auto_allocated_topology.py

raw
1 # Copyright 2015-2016 Hewlett Packard Enterprise Development Company, LP
2 #
3 # All Rights Reserved.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may
6 # not use this file except in compliance with the License. You may obtain
7 # a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 # License for the specific language governing permissions and limitations
15 # under the License.
16
17 from neutron_lib.api import converters
18 from neutron_lib.api.definitions import constants
19 from neutron_lib.api.definitions import l3
20 from neutron_lib.api.definitions import network
21
22 ALIAS = 'auto-allocated-topology'
23 IS_SHIM_EXTENSION = False
24 IS_STANDARD_ATTR_EXTENSION = False
25 NAME = 'Auto Allocated Topology Services'
26 API_PREFIX = ''
27 DESCRIPTION = 'Auto Allocated Topology Services.'
28 UPDATED_TIMESTAMP = '2016-01-01T00:00:00-00:00'
29 RESOURCE_NAME = 'auto_allocated_topology'
30 COLLECTION_NAME = 'auto_allocated_topologies'
31 RESOURCE_ATTRIBUTE_MAP = {
32 COLLECTION_NAME: {
33 'id': {'allow_post': False, 'allow_put': False,
34 'validate': {'type:uuid': None},
35 'is_visible': True},
36 'tenant_id': {'allow_post': False, 'allow_put': False,
37 'validate': {'type:uuid': None},
38 'is_visible': True},
39 },
40 network.COLLECTION_NAME: {
41 constants.IS_DEFAULT: {
42 'allow_post': True,
43 'allow_put': True,
44 'default': False,
45 'is_filter': True,
46 'is_visible': True,
47 'convert_to': converters.convert_to_boolean,
48 'enforce_policy': True,
49 'required_by_policy': True}},
50 }
51 SUB_RESOURCE_ATTRIBUTE_MAP = {}
52 ACTION_MAP = {}
53 REQUIRED_EXTENSIONS = [l3.ALIAS, 'subnet_allocation', 'external-net']
54 OPTIONAL_EXTENSIONS = []
55 ACTION_STATUS = {}