Coverage for manila/api/schemas/availability_zones.py: 100%
2 statements
« prev ^ index » next coverage.py v7.11.0, created at 2026-02-18 22:19 +0000
« prev ^ index » next coverage.py v7.11.0, created at 2026-02-18 22:19 +0000
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.
13index_request_query = {
14 'type': 'object',
15 'properties': {},
16 # TODO(stephenfin): Exclude additional query string parameters in a future
17 # microversion
18 'additionalProperties': True,
19}
21index_response_body = {
22 'type': 'object',
23 'properties': {
24 'availability_zones': {
25 'type': 'array',
26 'items': {
27 'type': 'object',
28 'properties': {
29 'id': {
30 'type': 'string',
31 'format': 'uuid',
32 },
33 'name': {
34 'type': 'string',
35 'minLength': 1,
36 'maxLength': 255,
37 },
38 'created_at': {
39 'type': 'string',
40 'format': 'date-time',
41 },
42 'updated_at': {
43 'type': ['string', 'null'],
44 'format': 'date-time',
45 },
46 },
47 'required': [],
48 'additionalProperties': False,
49 },
50 },
51 },
52 'required': ['availability_zones'],
53 'additionalProperties': False,
54}