Debian Codegraph @

neutron_lib/api/definitions/agent_sort_key.py

raw
1 # Copyright (c) 2013 OpenStack Foundation.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain 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,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12 # implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 from neutron_lib.api.definitions import agent
17
18 ALIAS = 'agent_sort_key'
19 IS_SHIM_EXTENSION = False
20 IS_STANDARD_ATTR_EXTENSION = False
21 NAME = 'Agents Sort Key'
22 API_PREFIX = ''
23 DESCRIPTION = 'Enabling the keyword sort_key for sorting in agents.'
24 UPDATED_TIMESTAMP = '2013-02-03T10:00:00-00:00'
25 is_sort_key = {'is_sort_key': True}
26 agents_collection = agent.RESOURCE_ATTRIBUTE_MAP[agent.COLLECTION_NAME]
27 RESOURCE_ATTRIBUTE_MAP = {
28 agent.COLLECTION_NAME: {
29 k: {**v, **is_sort_key}
30 for k, v in agents_collection.items()
31 if k != "configurations"
32 }
33 }
34 SUB_RESOURCE_ATTRIBUTE_MAP = {}
35 ACTION_MAP = {}
36 REQUIRED_EXTENSIONS = []
37 OPTIONAL_EXTENSIONS = []
38 ACTION_STATUS = {}