Ken'ichi Ohmichi | 067027c | 2014-03-13 14:45:21 +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 | # NOTE: This is the detail information for "get az detail" API. |
| 16 | # The information is the same between v2 and v3 APIs. |
| 17 | detail = { |
| 18 | 'type': 'object', |
| 19 | 'patternProperties': { |
| 20 | # NOTE: Here is for a hostname |
| 21 | '^[a-zA-Z0-9-_.]+$': { |
| 22 | 'type': 'object', |
| 23 | 'patternProperties': { |
| 24 | # NOTE: Here is for a service name |
| 25 | '^.*$': { |
| 26 | 'type': 'object', |
| 27 | 'properties': { |
| 28 | 'available': {'type': 'boolean'}, |
| 29 | 'active': {'type': 'boolean'}, |
| 30 | 'updated_at': {'type': 'string'} |
| 31 | }, |
| 32 | 'required': ['available', 'active', 'updated_at'] |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | } |