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

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: Address comments 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
« no previous file with comments | « appengine/swarming/handlers_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/swarming_rpcs.py
diff --git a/appengine/swarming/swarming_rpcs.py b/appengine/swarming/swarming_rpcs.py
index 6c290eabf170b66a50fa05f919ff28f70da9a78c..61e1cc33df76e7d0333d927ef44ca0c99b1f2403 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 ClientPermissions(messages.Message):
+ """Reports the client's permissions."""
+ delete_bot = messages.BooleanField(1)
+ terminate_bot = messages.BooleanField(2)
+ get_configs = messages.BooleanField(3)
+ put_configs = messages.BooleanField(4)
+ cancel_task = messages.BooleanField(5)
+ get_bootstrap_token = messages.BooleanField(6)
+
+
class FileContentRequest(messages.Message):
"""Content of a file."""
content = messages.StringField(1)
« no previous file with comments | « appengine/swarming/handlers_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698