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

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

Issue 1939343002: swarming: change meaning of inputs_ref (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: nit Created 4 years, 7 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 by the Apache v2.0 license that can be 2 # Use of this source code is governed by the Apache v2.0 license that can be
3 # found in the LICENSE file. 3 # 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 84
85 class CipdPackage(messages.Message): 85 class CipdPackage(messages.Message):
86 """A CIPD package to install in $CIPD_PATH and $PATH before task execution.""" 86 """A CIPD package to install in $CIPD_PATH and $PATH before task execution."""
87 # Full CIPD package name, e.g. "infra/tools/authutil/linux-amd64" 87 # Full CIPD package name, e.g. "infra/tools/authutil/linux-amd64"
88 package_name = messages.StringField(1) 88 package_name = messages.StringField(1)
89 # Instance ID, tag or ref, e.g. "latest". 89 # Instance ID, tag or ref, e.g. "latest".
90 version = messages.StringField(2) 90 version = messages.StringField(2)
91 91
92 92
93 class IsolatedOutputsTarget(messages.Message):
94 """Defines a target of isolated outputs."""
95 # The hostname of the isolated server to use.
96 isolatedserver = messages.StringField(2)
97 # Namespace on the isolate server.
98 namespace = messages.StringField(3)
99
100
93 class TaskProperties(messages.Message): 101 class TaskProperties(messages.Message):
94 """Important metadata about a particular task.""" 102 """Important metadata about a particular task."""
95 command = messages.StringField(1, repeated=True) 103 command = messages.StringField(1, repeated=True)
96 dimensions = messages.MessageField(StringPair, 2, repeated=True) 104 dimensions = messages.MessageField(StringPair, 2, repeated=True)
97 env = messages.MessageField(StringPair, 3, repeated=True) 105 env = messages.MessageField(StringPair, 3, repeated=True)
98 execution_timeout_secs = messages.IntegerField(4) 106 execution_timeout_secs = messages.IntegerField(4)
99 extra_args = messages.StringField(5, repeated=True) 107 extra_args = messages.StringField(5, repeated=True)
100 grace_period_secs = messages.IntegerField(6) 108 grace_period_secs = messages.IntegerField(6)
101 idempotent = messages.BooleanField(7) 109 idempotent = messages.BooleanField(7)
102 inputs_ref = messages.MessageField(FilesRef, 8) 110 inputs_ref = messages.MessageField(FilesRef, 8)
103 io_timeout_secs = messages.IntegerField(9) 111 io_timeout_secs = messages.IntegerField(9)
112 outputs_target = messages.MessageField(IsolatedOutputsTarget, 11)
104 packages = messages.MessageField(CipdPackage, 10, repeated=True) 113 packages = messages.MessageField(CipdPackage, 10, repeated=True)
105 114
106 115
107 class NewTaskRequest(messages.Message): 116 class NewTaskRequest(messages.Message):
108 """Description of a new task request as described by the client.""" 117 """Description of a new task request as described by the client."""
109 expiration_secs = messages.IntegerField(1) 118 expiration_secs = messages.IntegerField(1)
110 name = messages.StringField(2) 119 name = messages.StringField(2)
111 parent_task_id = messages.StringField(3) 120 parent_task_id = messages.StringField(3)
112 priority = messages.IntegerField(4) 121 priority = messages.IntegerField(4)
113 properties = messages.MessageField(TaskProperties, 5) 122 properties = messages.MessageField(TaskProperties, 5)
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 388
380 389
381 class DeletedResponse(messages.Message): 390 class DeletedResponse(messages.Message):
382 """Indicates whether a bot was deleted.""" 391 """Indicates whether a bot was deleted."""
383 deleted = messages.BooleanField(1) 392 deleted = messages.BooleanField(1)
384 393
385 394
386 class TerminateResponse(messages.Message): 395 class TerminateResponse(messages.Message):
387 """Returns the pseudo taskid to wait for the bot to shut down.""" 396 """Returns the pseudo taskid to wait for the bot to shut down."""
388 task_id = messages.StringField(1) 397 task_id = messages.StringField(1)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698