| 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 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 return True | 63 return True |
| 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 details about the server.""" | 70 """Reports details about the server.""" |
| 71 server_version = messages.StringField(1) | 71 server_version = messages.StringField(1) |
| 72 bot_version = messages.StringField(2) | 72 bot_version = messages.StringField(2) |
| 73 machine_provider_prefix = messages.StringField(3) |
| 74 milo_prefix = messages.StringField(4) |
| 75 sk_revision_prefix = messages.StringField(5) |
| 73 | 76 |
| 74 | 77 |
| 75 class BootstrapToken(messages.Message): | 78 class BootstrapToken(messages.Message): |
| 76 """Returns a token to bootstrap a new bot.""" | 79 """Returns a token to bootstrap a new bot.""" |
| 77 bootstrap_token = messages.StringField(1) | 80 bootstrap_token = messages.StringField(1) |
| 78 | 81 |
| 79 | 82 |
| 80 class ClientPermissions(messages.Message): | 83 class ClientPermissions(messages.Message): |
| 81 """Reports the client's permissions.""" | 84 """Reports the client's permissions.""" |
| 82 delete_bot = messages.BooleanField(1) | 85 delete_bot = messages.BooleanField(1) |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 | 520 |
| 518 | 521 |
| 519 class DeletedResponse(messages.Message): | 522 class DeletedResponse(messages.Message): |
| 520 """Indicates whether a bot was deleted.""" | 523 """Indicates whether a bot was deleted.""" |
| 521 deleted = messages.BooleanField(1) | 524 deleted = messages.BooleanField(1) |
| 522 | 525 |
| 523 | 526 |
| 524 class TerminateResponse(messages.Message): | 527 class TerminateResponse(messages.Message): |
| 525 """Returns the pseudo taskid to wait for the bot to shut down.""" | 528 """Returns the pseudo taskid to wait for the bot to shut down.""" |
| 526 task_id = messages.StringField(1) | 529 task_id = messages.StringField(1) |
| OLD | NEW |