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

Side by Side Diff: appengine/swarming/swarming_rpcs.py

Issue 2661173004: Make deleted bots still show up when searched for by id (Closed)
Patch Set: Address comments Created 3 years, 10 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
« no previous file with comments | « appengine/swarming/message_conversion.py ('k') | appengine/swarming/ui/build/elements.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 is_dead = messages.BooleanField(6) 487 is_dead = messages.BooleanField(6)
488 last_seen_ts = message_types.DateTimeField(7) 488 last_seen_ts = message_types.DateTimeField(7)
489 quarantined = messages.BooleanField(8) 489 quarantined = messages.BooleanField(8)
490 task_id = messages.StringField(9) 490 task_id = messages.StringField(9)
491 task_name = messages.StringField(10) 491 task_name = messages.StringField(10)
492 version = messages.StringField(11) 492 version = messages.StringField(11)
493 # Encoded as json since it's an arbitrary dict. 493 # Encoded as json since it's an arbitrary dict.
494 state = messages.StringField(12) 494 state = messages.StringField(12)
495 lease_id = messages.StringField(13) 495 lease_id = messages.StringField(13)
496 lease_expiration_ts = message_types.DateTimeField(14) 496 lease_expiration_ts = message_types.DateTimeField(14)
497 deleted = messages.BooleanField(15)
497 498
498 499
499 class BotList(messages.Message): 500 class BotList(messages.Message):
500 """Wraps a list of BotInfo.""" 501 """Wraps a list of BotInfo."""
501 cursor = messages.StringField(1) 502 cursor = messages.StringField(1)
502 items = messages.MessageField(BotInfo, 2, repeated=True) 503 items = messages.MessageField(BotInfo, 2, repeated=True)
503 now = message_types.DateTimeField(3) 504 now = message_types.DateTimeField(3)
504 death_timeout = messages.IntegerField(4) 505 death_timeout = messages.IntegerField(4)
505 506
506 507
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 557
557 558
558 class DeletedResponse(messages.Message): 559 class DeletedResponse(messages.Message):
559 """Indicates whether a bot was deleted.""" 560 """Indicates whether a bot was deleted."""
560 deleted = messages.BooleanField(1) 561 deleted = messages.BooleanField(1)
561 562
562 563
563 class TerminateResponse(messages.Message): 564 class TerminateResponse(messages.Message):
564 """Returns the pseudo taskid to wait for the bot to shut down.""" 565 """Returns the pseudo taskid to wait for the bot to shut down."""
565 task_id = messages.StringField(1) 566 task_id = messages.StringField(1)
OLDNEW
« no previous file with comments | « appengine/swarming/message_conversion.py ('k') | appengine/swarming/ui/build/elements.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698