blob: 6723869b6d322bb10e7a8e4d6cfd831852744b81 [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': {
25 # NOTE: Now the type of 'id' is integer, but here
26 # allows 'string' also because we will be able to
27 # change it to 'uuid' in the future.
28 'id': {'type': ['integer', 'string']},
29 'status': {'type': 'string'},
30 'instance_uuid': {'type': 'string'},
31 'source_node': {'type': 'string'},
32 'source_compute': {'type': 'string'},
33 'dest_node': {'type': 'string'},
34 'dest_compute': {'type': 'string'},
35 'dest_host': {'type': 'string'},
36 'old_instance_type_id': {
37 'type': ['integer', 'string']
38 },
39 'new_instance_type_id': {
40 'type': ['integer', 'string']
41 },
42 'created_at': {'type': 'string'},
43 'updated_at': {'type': ['string', 'null']}
44 },
45 'required': [
46 'id', 'status', 'instance_uuid', 'source_node',
47 'source_compute', 'dest_node', 'dest_compute',
48 'dest_host', 'old_instance_type_id',
49 'new_instance_type_id', 'created_at', 'updated_at'
50 ]
51 }
52 }
53 },
54 'required': ['migrations']
55 }
56}