Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2579)

Unified Diff: appengine/swarming/swarming_rpcs.py

Issue 2272193004: Add endpoint for permissions (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@migrate-botlist
Patch Set: Consolidate permissions Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/swarming_rpcs.py
diff --git a/appengine/swarming/swarming_rpcs.py b/appengine/swarming/swarming_rpcs.py
index 6c290eabf170b66a50fa05f919ff28f70da9a78c..13d1adae3e96090fc8c756cb18ec99adfe87ee95 100644
--- a/appengine/swarming/swarming_rpcs.py
+++ b/appengine/swarming/swarming_rpcs.py
@@ -71,6 +71,16 @@ class ServerDetails(messages.Message):
server_version = messages.StringField(1)
+class ServerPermissions(messages.Message):
+ """Reports the server version."""
M-A Ruel 2016/08/25 19:49:47 version? :)
kjlubick 2016/08/25 20:21:03 Fixed.
+ can_delete_bot = messages.BooleanField(1)
+ can_terminate_bot = messages.BooleanField(2)
+ can_get_configs = messages.BooleanField(3)
+ can_put_configs = messages.BooleanField(4)
+ can_cancel_task = messages.BooleanField(5)
+ can_get_bootstrap_token = messages.BooleanField(6)
+
+
class FileContentRequest(messages.Message):
"""Content of a file."""
content = messages.StringField(1)
« appengine/swarming/handlers_endpoints.py ('K') | « appengine/swarming/handlers_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698