| 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 """Administration API accessible only by service admins. | 5 """Administration API accessible only by service admins. |
| 6 | 6 |
| 7 Defined as Endpoints API mostly to abuse API Explorer UI and not to write our | 7 Defined as Endpoints API mostly to abuse API Explorer UI and not to write our |
| 8 own admin UI. Note that all methods are publicly visible (though the source code | 8 own admin UI. Note that all methods are publicly visible (though the source code |
| 9 itself is also publicly visible, so not a big deal). | 9 itself is also publicly visible, so not a big deal). |
| 10 | 10 |
| 11 Callers have to be in 'administrators' group. | 11 Callers have to be in 'administrators' group. |
| 12 """ | 12 """ |
| 13 | 13 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 changed = conf.modify( | 66 changed = conf.modify( |
| 67 services_config_storage_type=request.services_config_storage_type, | 67 services_config_storage_type=request.services_config_storage_type, |
| 68 services_config_location=request.services_config_location) | 68 services_config_location=request.services_config_location) |
| 69 | 69 |
| 70 if changed: | 70 if changed: |
| 71 logging.warning('Updated global configuration') | 71 logging.warning('Updated global configuration') |
| 72 | 72 |
| 73 return GlobalConfigMessage( | 73 return GlobalConfigMessage( |
| 74 services_config_location=conf.services_config_location, | 74 services_config_location=conf.services_config_location, |
| 75 services_config_storage_type=conf.services_config_storage_type) | 75 services_config_storage_type=conf.services_config_storage_type) |
| OLD | NEW |