Debian Codegraph @

neutron_lib/api/definitions/servicetype.py

raw
1 # Copyright 2013 OpenStack Foundation.
2 # All Rights Reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License"); you may
5 # not use this file except in compliance with the License. You may obtain
6 # a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 # License for the specific language governing permissions and limitations
14 # under the License.
15
16 SERVICE_ATTR = 'service_type'
17 PLUGIN_ATTR = 'plugin'
18 DRIVER_ATTR = 'driver'
19
20 ALIAS = 'service-type'
21 IS_SHIM_EXTENSION = False
22 IS_STANDARD_ATTR_EXTENSION = False
23 NAME = 'Neutron Service Type Management'
24 API_PREFIX = ''
25 DESCRIPTION = ("API for retrieving service providers for "
26 "Neutron advanced services")
27 UPDATED_TIMESTAMP = '2013-01-20T00:00:00-00:00'
28 RESOURCE_NAME = 'service_provider'
29 COLLECTION_NAME = RESOURCE_NAME + 's'
30 RESOURCE_ATTRIBUTE_MAP = {
31 COLLECTION_NAME: {
32 SERVICE_ATTR: {
33 'allow_post': False,
34 'allow_put': False,
35 'is_visible': True
36 },
37 'name': {
38 'allow_post': False,
39 'allow_put': False,
40 'is_visible': True
41 },
42 'default': {
43 'allow_post': False,
44 'allow_put': False,
45 'is_visible': True
46 }
47 }
48 }
49 SUB_RESOURCE_ATTRIBUTE_MAP = {}
50 ACTION_MAP = {}
51 REQUIRED_EXTENSIONS = []
52 OPTIONAL_EXTENSIONS = []
53 ACTION_STATUS = {}