@@ -92,6 +92,12 @@ class SchedulingPolicy(proto.Enum):
9292 r"""The order that TaskGroups are scheduled relative to each
9393 other.
9494 Not yet implemented.
95+
96+ Values:
97+ SCHEDULING_POLICY_UNSPECIFIED (0):
98+ Unspecified.
99+ AS_SOON_AS_POSSIBLE (1):
100+ Run all TaskGroups as soon as possible.
95101 """
96102 SCHEDULING_POLICY_UNSPECIFIED = 0
97103 AS_SOON_AS_POSSIBLE = 1
@@ -181,7 +187,16 @@ class LogsPolicy(proto.Message):
181187 """
182188
183189 class Destination (proto .Enum ):
184- r"""The destination (if any) for logs."""
190+ r"""The destination (if any) for logs.
191+
192+ Values:
193+ DESTINATION_UNSPECIFIED (0):
194+ Logs are not preserved.
195+ CLOUD_LOGGING (1):
196+ Logs are streamed to Cloud Logging.
197+ PATH (2):
198+ Logs are saved to a file path.
199+ """
185200 DESTINATION_UNSPECIFIED = 0
186201 CLOUD_LOGGING = 1
187202 PATH = 2
@@ -214,7 +229,18 @@ class JobDependency(proto.Message):
214229 """
215230
216231 class Type (proto .Enum ):
217- r"""Dependency type."""
232+ r"""Dependency type.
233+
234+ Values:
235+ TYPE_UNSPECIFIED (0):
236+ Unspecified.
237+ SUCCEEDED (1):
238+ The dependent Job has succeeded.
239+ FAILED (2):
240+ The dependent Job has failed.
241+ FINISHED (3):
242+ SUCCEEDED or FAILED.
243+ """
218244 TYPE_UNSPECIFIED = 0
219245 SUCCEEDED = 1
220246 FAILED = 2
@@ -245,7 +271,32 @@ class JobStatus(proto.Message):
245271 """
246272
247273 class State (proto .Enum ):
248- r"""Valid Job states."""
274+ r"""Valid Job states.
275+
276+ Values:
277+ STATE_UNSPECIFIED (0):
278+
279+ QUEUED (1):
280+ Job is admitted (validated and persisted) and
281+ waiting for resources.
282+ SCHEDULED (2):
283+ Job is scheduled to run as soon as resource
284+ allocation is ready. The resource allocation may
285+ happen at a later time but with a high chance to
286+ succeed.
287+ RUNNING (3):
288+ Resource allocation has been successful. At
289+ least one Task in the Job is RUNNING.
290+ SUCCEEDED (4):
291+ All Tasks in the Job have finished
292+ successfully.
293+ FAILED (5):
294+ At least one Task in the Job has failed.
295+ DELETION_IN_PROGRESS (6):
296+ The Job will be deleted, but has not been
297+ deleted yet. Typically this is because resources
298+ used by the Job are still being cleaned up.
299+ """
249300 STATE_UNSPECIFIED = 0
250301 QUEUED = 1
251302 SCHEDULED = 2
@@ -344,7 +395,16 @@ class JobNotification(proto.Message):
344395 """
345396
346397 class Type (proto .Enum ):
347- r"""The message type."""
398+ r"""The message type.
399+
400+ Values:
401+ TYPE_UNSPECIFIED (0):
402+ Unspecified.
403+ JOB_STATE_CHANGED (1):
404+ Notify users that the job state has changed.
405+ TASK_STATE_CHANGED (2):
406+ Notify users that the task state has changed.
407+ """
348408 TYPE_UNSPECIFIED = 0
349409 JOB_STATE_CHANGED = 1
350410 TASK_STATE_CHANGED = 2
@@ -426,7 +486,24 @@ class AllocationPolicy(proto.Message):
426486 """
427487
428488 class ProvisioningModel (proto .Enum ):
429- r"""Compute Engine VM instance provisioning model."""
489+ r"""Compute Engine VM instance provisioning model.
490+
491+ Values:
492+ PROVISIONING_MODEL_UNSPECIFIED (0):
493+ Unspecified.
494+ STANDARD (1):
495+ Standard VM.
496+ SPOT (2):
497+ SPOT VM.
498+ PREEMPTIBLE (3):
499+ Preemptible VM (PVM).
500+ Above SPOT VM is the preferable model for
501+ preemptible VM instances: the old preemptible VM
502+ model (indicated by this field) is the older
503+ model, and has been migrated to use the SPOT
504+ model as the underlying technology. This old
505+ model will still be supported.
506+ """
430507 PROVISIONING_MODEL_UNSPECIFIED = 0
431508 STANDARD = 1
432509 SPOT = 2
@@ -881,6 +958,12 @@ class TaskGroup(proto.Message):
881958 class SchedulingPolicy (proto .Enum ):
882959 r"""How Tasks in the TaskGroup should be scheduled relative to
883960 each other.
961+
962+ Values:
963+ SCHEDULING_POLICY_UNSPECIFIED (0):
964+ Unspecified.
965+ AS_SOON_AS_POSSIBLE (1):
966+ Run Tasks as soon as resources are available.
884967 """
885968 SCHEDULING_POLICY_UNSPECIFIED = 0
886969 AS_SOON_AS_POSSIBLE = 1
0 commit comments