Skip to content

Commit 8235ef6

Browse files
feat: expose display_name to batch v1 API (googleapis#11834)
BEGIN_COMMIT_OVERRIDE feat: expose display_name to batch v1 API END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. PiperOrigin-RevId: 573914933 Source-Link: googleapis/googleapis@ab87375 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0eabaacbf7ffa1de6a8518c904acc3a1c3bc75be Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiIwZWFiYWFjYmY3ZmZhMWRlNmE4NTE4YzkwNGFjYzNhMWMzYmM3NWJlIn0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: ohmayr <omairnaveed@ymail.com>
1 parent 4b08c99 commit 8235ef6

3 files changed

Lines changed: 224 additions & 401 deletions

File tree

‎packages/google-cloud-batch/google/cloud/batch_v1/types/task.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,13 @@ class Runnable(proto.Message):
241241
Barrier runnable.
242242
243243
This field is a member of `oneof`_ ``executable``.
244+
display_name (str):
245+
Optional. DisplayName is an optional field
246+
that can be provided by the caller. If provided,
247+
it will be used in logs and other outputs to
248+
identify the script, making it easier for users
249+
to understand the logs. If not provided the
250+
index of the runnable will be used for outputs.
244251
ignore_exit_status (bool):
245252
Normally, a non-zero exit status causes the
246253
Task to fail. This flag allows execution of
@@ -436,6 +443,10 @@ class Barrier(proto.Message):
436443
oneof="executable",
437444
message=Barrier,
438445
)
446+
display_name: str = proto.Field(
447+
proto.STRING,
448+
number=10,
449+
)
439450
ignore_exit_status: bool = proto.Field(
440451
proto.BOOL,
441452
number=3,

0 commit comments

Comments
 (0)