Skip to content

Commit cfbab2e

Browse files
yoshi-automationsofisl
authored andcommitted
feat(batch): update the API
#### batch:v1 The following keys were added: - schemas.AgentTaskLoggingOption.description - schemas.AgentTaskLoggingOption.id - schemas.AgentTaskLoggingOption.properties.labels.additionalProperties.type - schemas.AgentTaskLoggingOption.properties.labels.description - schemas.AgentTaskLoggingOption.properties.labels.type - schemas.AgentTaskLoggingOption.type - schemas.AgentTaskSpec.properties.loggingOption.$ref - schemas.AgentTaskSpec.properties.loggingOption.description
1 parent 42a7442 commit cfbab2e

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

discovery/batch-v1.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@
561561
}
562562
}
563563
},
564-
"revision": "20240813",
564+
"revision": "20240821",
565565
"rootUrl": "https://batch.googleapis.com/",
566566
"schemas": {
567567
"Accelerator": {
@@ -866,6 +866,20 @@
866866
},
867867
"type": "object"
868868
},
869+
"AgentTaskLoggingOption": {
870+
"description": "AgentTaskLoggingOption contains the options for the logging of the task.",
871+
"id": "AgentTaskLoggingOption",
872+
"properties": {
873+
"labels": {
874+
"additionalProperties": {
875+
"type": "string"
876+
},
877+
"description": "Labels to be added to the log entry. Now only cloud logging is supported.",
878+
"type": "object"
879+
}
880+
},
881+
"type": "object"
882+
},
869883
"AgentTaskRunnable": {
870884
"description": "AgentTaskRunnable is the Runnable representation between Agent and CLH communication.",
871885
"id": "AgentTaskRunnable",
@@ -910,6 +924,10 @@
910924
"$ref": "AgentEnvironment",
911925
"description": "Environment variables to set before running the Task."
912926
},
927+
"loggingOption": {
928+
"$ref": "AgentTaskLoggingOption",
929+
"description": "Logging option for the task."
930+
},
913931
"maxRunDuration": {
914932
"description": "Maximum duration the task should run before being automatically retried (if enabled) or automatically failed. Format the value of this field as a time limit in seconds followed by `s`—for example, `3600s` for 1 hour. The field accepts any value between 0 and the maximum listed for the `Duration` field type at https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however, the actual maximum run time for a job will be limited to the maximum run time for a job listed at https://cloud.google.com/batch/quotas#max-job-duration.",
915933
"format": "google-duration",

src/apis/batch/v1.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,15 @@ export namespace batch_v1 {
342342
*/
343343
taskStatus?: Schema$TaskStatus;
344344
}
345+
/**
346+
* AgentTaskLoggingOption contains the options for the logging of the task.
347+
*/
348+
export interface Schema$AgentTaskLoggingOption {
349+
/**
350+
* Labels to be added to the log entry. Now only cloud logging is supported.
351+
*/
352+
labels?: {[key: string]: string} | null;
353+
}
345354
/**
346355
* AgentTaskRunnable is the Runnable representation between Agent and CLH communication.
347356
*/
@@ -383,6 +392,10 @@ export namespace batch_v1 {
383392
* Environment variables to set before running the Task.
384393
*/
385394
environment?: Schema$AgentEnvironment;
395+
/**
396+
* Logging option for the task.
397+
*/
398+
loggingOption?: Schema$AgentTaskLoggingOption;
386399
/**
387400
* Maximum duration the task should run before being automatically retried (if enabled) or automatically failed. Format the value of this field as a time limit in seconds followed by `s`—for example, `3600s` for 1 hour. The field accepts any value between 0 and the maximum listed for the `Duration` field type at https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however, the actual maximum run time for a job will be limited to the maximum run time for a job listed at https://cloud.google.com/batch/quotas#max-job-duration.
388401
*/

0 commit comments

Comments
 (0)