Coverage for nova/api/openstack/compute/schemas/limits.py: 100%
5 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-04-17 15:08 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-04-17 15:08 +0000
1#
2# Licensed under the Apache License, Version 2.0 (the "License"); you may
3# not use this file except in compliance with the License. You may obtain
4# a copy of the License at
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11# License for the specific language governing permissions and limitations
12# under the License.
14import copy
16from nova.api.validation import parameter_types
19limits_query_schema = {
20 'type': 'object',
21 'properties': {
22 'tenant_id': parameter_types.common_query_param,
23 },
24 # For backward compatible changes
25 # In microversion 2.75, we have blocked the additional
26 # parameters.
27 'additionalProperties': True
28}
30limits_query_schema_275 = copy.deepcopy(limits_query_schema)
31limits_query_schema_275['additionalProperties'] = False