| OLD | NEW |
| 1 # Copyright 2015 The LUCI Authors. All rights reserved. | 1 # Copyright 2015 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """Cloud Endpoints API for configs. | 5 """Cloud Endpoints API for configs. |
| 6 | 6 |
| 7 * Reads/writes config service location. | 7 * Reads/writes config service location. |
| 8 * Validates configs. | 8 * Validates configs. |
| 9 * Provides service metadata. | 9 * Provides service metadata. |
| 10 """ | 10 """ |
| 11 | 11 |
| 12 import logging | 12 import logging |
| 13 | 13 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 url='https://{hostname}/_ah/api/{name}/{version}/{path}validate'.format( | 164 url='https://{hostname}/_ah/api/{name}/{version}/{path}validate'.format( |
| 165 hostname=http_headers['host'], | 165 hostname=http_headers['host'], |
| 166 name=self.api_info.name, | 166 name=self.api_info.name, |
| 167 version=self.api_info.version, | 167 version=self.api_info.version, |
| 168 path=self.api_info.path or '', | 168 path=self.api_info.path or '', |
| 169 ) | 169 ) |
| 170 ) | 170 ) |
| 171 for p in sorted(get_default_rule_set().patterns()): | 171 for p in sorted(get_default_rule_set().patterns()): |
| 172 meta.validation.patterns.append(ConfigPattern(**p._asdict())) | 172 meta.validation.patterns.append(ConfigPattern(**p._asdict())) |
| 173 return meta | 173 return meta |
| OLD | NEW |