Chris Yeoh | c266b28 | 2014-03-13 18:19:00 +1030 | [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_services = { |
| 16 | 'status_code': [200], |
| 17 | 'response_body': { |
| 18 | 'type': 'object', |
| 19 | 'properties': { |
| 20 | 'services': { |
| 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'}, |
Chris Yeoh | c266b28 | 2014-03-13 18:19:00 +1030 | [diff] [blame] | 26 | 'zone': {'type': 'string'}, |
| 27 | 'host': {'type': 'string'}, |
| 28 | 'state': {'type': 'string'}, |
| 29 | 'binary': {'type': 'string'}, |
| 30 | 'status': {'type': 'string'}, |
| 31 | 'updated_at': {'type': 'string'}, |
| 32 | 'disabled_reason': {'type': ['string', 'null']} |
| 33 | }, |
| 34 | 'required': ['id', 'zone', 'host', 'state', 'binary', |
| 35 | 'status', 'updated_at', 'disabled_reason'] |
| 36 | } |
| 37 | } |
| 38 | }, |
| 39 | 'required': ['services'] |
| 40 | } |
| 41 | } |
Ken'ichi Ohmichi | 26bcee6 | 2014-03-19 14:30:38 +0900 | [diff] [blame] | 42 | |
| 43 | enable_service = { |
| 44 | 'status_code': [200], |
| 45 | 'response_body': { |
| 46 | 'type': 'object', |
| 47 | 'properties': { |
| 48 | 'service': { |
| 49 | 'type': 'object', |
| 50 | 'properties': { |
| 51 | 'status': {'type': 'string'}, |
| 52 | 'binary': {'type': 'string'}, |
| 53 | 'host': {'type': 'string'} |
| 54 | }, |
| 55 | 'required': ['status', 'binary', 'host'] |
| 56 | } |
| 57 | }, |
| 58 | 'required': ['service'] |
| 59 | } |
| 60 | } |