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

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

Issue 2836463002: Include Machine Provider machine_type in swarming_rpcs.BotInfo (Closed)
Patch Set: Created 3 years, 8 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') | no next file » | 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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 last_seen_ts = message_types.DateTimeField(7) 500 last_seen_ts = message_types.DateTimeField(7)
501 quarantined = messages.BooleanField(8) 501 quarantined = messages.BooleanField(8)
502 task_id = messages.StringField(9) 502 task_id = messages.StringField(9)
503 task_name = messages.StringField(10) 503 task_name = messages.StringField(10)
504 version = messages.StringField(11) 504 version = messages.StringField(11)
505 # Encoded as json since it's an arbitrary dict. 505 # Encoded as json since it's an arbitrary dict.
506 state = messages.StringField(12) 506 state = messages.StringField(12)
507 lease_id = messages.StringField(13) 507 lease_id = messages.StringField(13)
508 lease_expiration_ts = message_types.DateTimeField(14) 508 lease_expiration_ts = message_types.DateTimeField(14)
509 deleted = messages.BooleanField(15) 509 deleted = messages.BooleanField(15)
510 machine_type = messages.StringField(16)
510 511
511 512
512 class BotList(messages.Message): 513 class BotList(messages.Message):
513 """Wraps a list of BotInfo.""" 514 """Wraps a list of BotInfo."""
514 cursor = messages.StringField(1) 515 cursor = messages.StringField(1)
515 items = messages.MessageField(BotInfo, 2, repeated=True) 516 items = messages.MessageField(BotInfo, 2, repeated=True)
516 now = message_types.DateTimeField(3) 517 now = message_types.DateTimeField(3)
517 death_timeout = messages.IntegerField(4) 518 death_timeout = messages.IntegerField(4)
518 519
519 520
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 570
570 571
571 class DeletedResponse(messages.Message): 572 class DeletedResponse(messages.Message):
572 """Indicates whether a bot was deleted.""" 573 """Indicates whether a bot was deleted."""
573 deleted = messages.BooleanField(1) 574 deleted = messages.BooleanField(1)
574 575
575 576
576 class TerminateResponse(messages.Message): 577 class TerminateResponse(messages.Message):
577 """Returns the pseudo taskid to wait for the bot to shut down.""" 578 """Returns the pseudo taskid to wait for the bot to shut down."""
578 task_id = messages.StringField(1) 579 task_id = messages.StringField(1)
OLDNEW
« no previous file with comments | « appengine/swarming/message_conversion.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698