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

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: Consolidate permissions 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."""
M-A Ruel 2016/08/25 19:49:47 version? :)
kjlubick 2016/08/25 20:21:03 Fixed.
76 can_delete_bot = messages.BooleanField(1)
77 can_terminate_bot = messages.BooleanField(2)
78 can_get_configs = messages.BooleanField(3)
79 can_put_configs = messages.BooleanField(4)
80 can_cancel_task = messages.BooleanField(5)
81 can_get_bootstrap_token = messages.BooleanField(6)
82
83
74 class FileContentRequest(messages.Message): 84 class FileContentRequest(messages.Message):
75 """Content of a file.""" 85 """Content of a file."""
76 content = messages.StringField(1) 86 content = messages.StringField(1)
77 87
78 88
79 class FileContent(messages.Message): 89 class FileContent(messages.Message):
80 """Content of a file.""" 90 """Content of a file."""
81 content = messages.StringField(1) 91 content = messages.StringField(1)
82 version = messages.IntegerField(2) 92 version = messages.IntegerField(2)
83 who = messages.StringField(3) 93 who = messages.StringField(3)
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 467
458 468
459 class DeletedResponse(messages.Message): 469 class DeletedResponse(messages.Message):
460 """Indicates whether a bot was deleted.""" 470 """Indicates whether a bot was deleted."""
461 deleted = messages.BooleanField(1) 471 deleted = messages.BooleanField(1)
462 472
463 473
464 class TerminateResponse(messages.Message): 474 class TerminateResponse(messages.Message):
465 """Returns the pseudo taskid to wait for the bot to shut down.""" 475 """Returns the pseudo taskid to wait for the bot to shut down."""
466 task_id = messages.StringField(1) 476 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