Debian Codegraph @

neutron_lib/api/definitions/stateful_security_group.py

raw
1 # Copyright 2018 NOKIA
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may
4 # not use this file except in compliance with the License. You may obtain
5 # a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
13 # under the License.
14
15
16 from neutron_lib.api import converters
17
18
19 # The alias of the extension.
20 ALIAS = 'stateful-security-group'
21
22 IS_SHIM_EXTENSION = False
23
24 IS_STANDARD_ATTR_EXTENSION = False
25
26 # The name of the extension.
27 NAME = 'Stateful security group'
28
29 # The description of the extension.
30 DESCRIPTION = "Indicates if the security group is stateful or not"
31
32 # A timestamp of when the extension was introduced.
33 UPDATED_TIMESTAMP = "2019-11-26T09:00:00-00:00"
34
35 # The resource attribute map for the extension.
36 RESOURCE_ATTRIBUTE_MAP = {
37 'security_groups': {
38 'stateful': {'allow_post': True, 'allow_put': True,
39 'is_visible': True, 'default': True,
40 'convert_to': converters.convert_to_boolean}
41 }
42 }
43
44 # The subresource attribute map for the extension.
45 SUB_RESOURCE_ATTRIBUTE_MAP = {
46 }
47
48 # The action map.
49 ACTION_MAP = {
50 }
51
52 # The action status.
53 ACTION_STATUS = {
54 }
55
56 # The list of required extensions.
57 REQUIRED_EXTENSIONS = ['security-group']
58
59 # The list of optional extensions.
60 OPTIONAL_EXTENSIONS = [
61 ]