blob: a70b3561ece47d8201cd96af364e7fa807f3999d [file] [log] [blame]
Haiwei Xu88173c82014-03-20 03:15:13 +09001# Copyright 2014 NEC Corporation. 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
Haiwei Xu7e40d022014-03-25 22:42:13 +090015aggregate = {
16 'type': 'object',
17 'properties:': {
18 'availability_zone': {'type': ['string', 'null']},
19 'created_at': {'type': 'string'},
20 'deleted': {'type': 'boolean'},
21 'deleted_at': {'type': ['string', 'null']},
22 'hosts': {'type': 'array'},
23 'id': {'type': 'integer'},
24 'metadata': {'type': 'object'},
25 'name': {'type': 'string'},
26 'updated_at': {'type': ['string', 'null']}
27 },
28 'required': ['availability_zone', 'created_at', 'deleted',
29 'deleted_at', 'hosts', 'id', 'metadata',
30 'name', 'updated_at']
31}
32
Haiwei Xu88173c82014-03-20 03:15:13 +090033list_aggregates = {
34 'status_code': [200],
35 'response_body': {
36 'type': 'object',
37 'properties': {
38 'aggregates': {
39 'type': 'array',
Haiwei Xu7e40d022014-03-25 22:42:13 +090040 'items': aggregate
Haiwei Xu88173c82014-03-20 03:15:13 +090041 }
42 },
43 'required': ['aggregates']
44 }
45}
Haiwei Xu7e40d022014-03-25 22:42:13 +090046
47get_aggregate = {
48 'status_code': [200],
49 'response_body': {
50 'type': 'object',
51 'properties': {
52 'aggregate': aggregate
53 },
54 'required': ['aggregate']
55 }
56}
Haiwei Xuddd3cda2014-04-03 23:39:48 +090057
58aggregate_set_metadata = get_aggregate