| 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 import converters |
| 14 |
|
| 15 |
|
| 16 |
ALIAS = 'security-groups-rules-belongs-to-default-sg' |
| 17 |
IS_SHIM_EXTENSION = False |
| 18 |
IS_STANDARD_ATTR_EXTENSION = False |
| 19 |
NAME = "Security group rule belongs to the project's default security group" |
| 20 |
DESCRIPTION = ("Flag to determine if the security group rule belongs to the " |
| 21 |
"project's default security group") |
| 22 |
UPDATED_TIMESTAMP = '2023-05-23T10:00:00-00:00' |
| 23 |
BELONGS_TO_DEFAULT_SG = 'belongs_to_default_sg' |
| 24 |
|
| 25 |
RESOURCE_ATTRIBUTE_MAP = { |
| 26 |
'security_group_rules': { |
| 27 |
BELONGS_TO_DEFAULT_SG: { |
| 28 |
'allow_post': False, |
| 29 |
'allow_put': False, |
| 30 |
'convert_to': converters.convert_to_boolean_if_not_none, |
| 31 |
'is_visible': True, |
| 32 |
'is_filter': True, |
| 33 |
'is_sort_key': False, |
| 34 |
}, |
| 35 |
} |
| 36 |
} |
| 37 |
|
| 38 |
SUB_RESOURCE_ATTRIBUTE_MAP = { |
| 39 |
} |
| 40 |
|
| 41 |
ACTION_MAP = { |
| 42 |
} |
| 43 |
|
| 44 |
ACTION_STATUS = { |
| 45 |
} |
| 46 |
|
| 47 |
REQUIRED_EXTENSIONS = [ |
| 48 |
'security-group' |
| 49 |
] |
| 50 |
|
| 51 |
OPTIONAL_EXTENSIONS = [ |
| 52 |
] |