Ken'ichi Ohmichi | a7a14f1 | 2014-04-08 22:31:17 +0900 | [diff] [blame] | 1 | # 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 | |
| 15 | list_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': { |
Ghanshyam | c5b842d | 2014-06-10 17:06:05 +0900 | [diff] [blame] | 25 | 'id': {'type': 'integer'}, |
Ken'ichi Ohmichi | a7a14f1 | 2014-04-08 22:31:17 +0900 | [diff] [blame] | 26 | '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'}, |
Ghanshyam | c5b842d | 2014-06-10 17:06:05 +0900 | [diff] [blame] | 33 | 'old_instance_type_id': {'type': 'integer'}, |
| 34 | 'new_instance_type_id': {'type': 'integer'}, |
Ken'ichi Ohmichi | a7a14f1 | 2014-04-08 22:31:17 +0900 | [diff] [blame] | 35 | '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 | } |