| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 costs_usd = messages.FloatField(22, repeated=True) | 273 costs_usd = messages.FloatField(22, repeated=True) |
| 274 # Only in TaskResultSummary. | 274 # Only in TaskResultSummary. |
| 275 name = messages.StringField(23) | 275 name = messages.StringField(23) |
| 276 # Only in TaskResultSummary. | 276 # Only in TaskResultSummary. |
| 277 tags = messages.StringField(24, repeated=True) | 277 tags = messages.StringField(24, repeated=True) |
| 278 # Only in TaskResultSummary. | 278 # Only in TaskResultSummary. |
| 279 user = messages.StringField(25) | 279 user = messages.StringField(25) |
| 280 # Statistics about overhead for an isolated task. Only sent when requested. | 280 # Statistics about overhead for an isolated task. Only sent when requested. |
| 281 performance_stats = messages.MessageField(PerformanceStats, 26) | 281 performance_stats = messages.MessageField(PerformanceStats, 26) |
| 282 | 282 |
| 283 # A listing of the ACTUAL pinned CipdPackages that the task used. These can |
| 284 # vary from the input packages if the inputs included non-identity versions |
| 285 # (e.g. a ref like "latest"). |
| 286 cipd_packages = messages.MessageField(CipdPackage, 27, repeated=True) |
| 287 |
| 283 | 288 |
| 284 class TaskList(messages.Message): | 289 class TaskList(messages.Message): |
| 285 """Wraps a list of TaskResult.""" | 290 """Wraps a list of TaskResult.""" |
| 286 # TODO(maruel): Rename to TaskResults. | 291 # TODO(maruel): Rename to TaskResults. |
| 287 cursor = messages.StringField(1) | 292 cursor = messages.StringField(1) |
| 288 items = messages.MessageField(TaskResult, 2, repeated=True) | 293 items = messages.MessageField(TaskResult, 2, repeated=True) |
| 289 now = message_types.DateTimeField(3) | 294 now = message_types.DateTimeField(3) |
| 290 | 295 |
| 291 | 296 |
| 292 class TaskRequests(messages.Message): | 297 class TaskRequests(messages.Message): |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 | 462 |
| 458 | 463 |
| 459 class DeletedResponse(messages.Message): | 464 class DeletedResponse(messages.Message): |
| 460 """Indicates whether a bot was deleted.""" | 465 """Indicates whether a bot was deleted.""" |
| 461 deleted = messages.BooleanField(1) | 466 deleted = messages.BooleanField(1) |
| 462 | 467 |
| 463 | 468 |
| 464 class TerminateResponse(messages.Message): | 469 class TerminateResponse(messages.Message): |
| 465 """Returns the pseudo taskid to wait for the bot to shut down.""" | 470 """Returns the pseudo taskid to wait for the bot to shut down.""" |
| 466 task_id = messages.StringField(1) | 471 task_id = messages.StringField(1) |
| OLD | NEW |