blob: eaba129f984b06aedba6e1f80f35131d5656e97f [file] [log] [blame]
Chris Yeohc266b282014-03-13 18:19:00 +10301# 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_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': {
Ghanshyamc5b842d2014-06-10 17:06:05 +090025 'id': {'type': 'integer'},
Chris Yeohc266b282014-03-13 18:19:00 +103026 '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 Ohmichi26bcee62014-03-19 14:30:38 +090042
43enable_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}