Debian Codegraph @

neutron_lib/api/definitions/allowedaddresspairs_atomic.py

raw
1 # Copyright 2023 EasyStack Limited. All rights reserved.
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 from neutron_lib.api.definitions import allowedaddresspairs
16 from neutron_lib.api.definitions import port
17
18
19 ALIAS = 'allowed-address-pairs-atomic'
20 IS_SHIM_EXTENSION = False
21 IS_STANDARD_ATTR_EXTENSION = False
22 NAME = 'Atomically add/remove allowed address pairs'
23 DESCRIPTION = ('Edit allowed address pairs of a port on server side by '
24 'atomically adding/removing allowed address pairs')
25 UPDATED_TIMESTAMP = '2023-04-17T00:00:00+00:00'
26 RESOURCE_ATTRIBUTE_MAP = {
27 port.COLLECTION_NAME: {}
28 }
29 SUB_RESOURCE_ATTRIBUTE_MAP = None
30 ACTION_MAP = {
31 port.RESOURCE_NAME: {
32 'add_allowed_address_pairs': 'PUT',
33 'remove_allowed_address_pairs': 'PUT',
34 }
35 }
36 REQUIRED_EXTENSIONS = [allowedaddresspairs.ALIAS]
37 OPTIONAL_EXTENSIONS = []
38 ACTION_STATUS = {}