blob: 6549272befd829f139b518e900f538e8fa51ede9 [file] [log] [blame]
Ken'ichi Ohmichia7a14f12014-04-08 22:31:17 +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
15list_migrations = {
16 'status_code': [200],
17 'response_body': {
18 'type': 'object',
19 'properties': {
20 'migrations': {
21 'type': 'array',
22 'items': {
23 'type': 'object',
24 'properties': {
Ghanshyamc5b842d2014-06-10 17:06:05 +090025 'id': {'type': 'integer'},
Ken'ichi Ohmichia7a14f12014-04-08 22:31:17 +090026 'status': {'type': 'string'},
27 'instance_uuid': {'type': 'string'},
28 'source_node': {'type': 'string'},
29 'source_compute': {'type': 'string'},
30 'dest_node': {'type': 'string'},
31 'dest_compute': {'type': 'string'},
32 'dest_host': {'type': 'string'},
Ghanshyamc5b842d2014-06-10 17:06:05 +090033 'old_instance_type_id': {'type': 'integer'},
34 'new_instance_type_id': {'type': 'integer'},
Ken'ichi Ohmichia7a14f12014-04-08 22:31:17 +090035 'created_at': {'type': 'string'},
36 'updated_at': {'type': ['string', 'null']}
37 },
38 'required': [
39 'id', 'status', 'instance_uuid', 'source_node',
40 'source_compute', 'dest_node', 'dest_compute',
41 'dest_host', 'old_instance_type_id',
42 'new_instance_type_id', 'created_at', 'updated_at'
43 ]
44 }
45 }
46 },
47 'required': ['migrations']
48 }
49}