blob: 6f361ef8278b36636e5c1f6e6d916439a79b2690 [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': {
Andrew Laski8d356792014-11-25 14:39:48 -050025 'id': {'type': ['integer', 'string'],
26 'pattern': '^[a-zA-Z!]*@[0-9]+$'},
Chris Yeohc266b282014-03-13 18:19:00 +103027 'zone': {'type': 'string'},
28 'host': {'type': 'string'},
29 'state': {'type': 'string'},
30 'binary': {'type': 'string'},
31 'status': {'type': 'string'},
Andrey Pavlovd2f2bb92014-10-31 11:15:15 +030032 'updated_at': {'type': ['string', 'null']},
Chris Yeohc266b282014-03-13 18:19:00 +103033 'disabled_reason': {'type': ['string', 'null']}
34 },
35 'required': ['id', 'zone', 'host', 'state', 'binary',
36 'status', 'updated_at', 'disabled_reason']
37 }
38 }
39 },
40 'required': ['services']
41 }
42}
Ken'ichi Ohmichi26bcee62014-03-19 14:30:38 +090043
44enable_service = {
45 'status_code': [200],
46 'response_body': {
47 'type': 'object',
48 'properties': {
49 'service': {
50 'type': 'object',
51 'properties': {
52 'status': {'type': 'string'},
53 'binary': {'type': 'string'},
54 'host': {'type': 'string'}
55 },
56 'required': ['status', 'binary', 'host']
57 }
58 },
59 'required': ['service']
60 }
61}