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

Side by Side 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: Created 4 years, 3 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 unified diff | Download patch
OLDNEW
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 under the Apache License, Version 2.0 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # that can be found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 """This module defines ProtoRPC types for the Swarming Server handlers.""" 5 """This module defines ProtoRPC types for the Swarming Server handlers."""
6 6
7 from protorpc import message_types 7 from protorpc import message_types
8 from protorpc import messages 8 from protorpc import messages
9 9
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 65
66 ### Server related. 66 ### Server related.
67 67
68 68
69 class ServerDetails(messages.Message): 69 class ServerDetails(messages.Message):
70 """Reports the server version.""" 70 """Reports the server version."""
71 server_version = messages.StringField(1) 71 server_version = messages.StringField(1)
72 72
73 73
74 class ServerPermissions(messages.Message):
75 """Reports the server version."""
76 can_delete_bot = messages.BooleanField(1)
77 can_terminate_bot = messages.BooleanField(2)
78 can_get_bootstrap_py = messages.BooleanField(3)
79 can_put_bootstrap_py = messages.BooleanField(4)
80 can_get_bot_config_py = messages.BooleanField(5)
81 can_put_bot_config_py = messages.BooleanField(6)
82 can_cancel_task = messages.BooleanField(7)
83 can_get_bootstrap_token = messages.BooleanField(8)
84
85
74 class FileContentRequest(messages.Message): 86 class FileContentRequest(messages.Message):
75 """Content of a file.""" 87 """Content of a file."""
76 content = messages.StringField(1) 88 content = messages.StringField(1)
77 89
78 90
79 class FileContent(messages.Message): 91 class FileContent(messages.Message):
80 """Content of a file.""" 92 """Content of a file."""
81 content = messages.StringField(1) 93 content = messages.StringField(1)
82 version = messages.IntegerField(2) 94 version = messages.IntegerField(2)
83 who = messages.StringField(3) 95 who = messages.StringField(3)
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 469
458 470
459 class DeletedResponse(messages.Message): 471 class DeletedResponse(messages.Message):
460 """Indicates whether a bot was deleted.""" 472 """Indicates whether a bot was deleted."""
461 deleted = messages.BooleanField(1) 473 deleted = messages.BooleanField(1)
462 474
463 475
464 class TerminateResponse(messages.Message): 476 class TerminateResponse(messages.Message):
465 """Returns the pseudo taskid to wait for the bot to shut down.""" 477 """Returns the pseudo taskid to wait for the bot to shut down."""
466 task_id = messages.StringField(1) 478 task_id = messages.StringField(1)
OLDNEW
« 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