@maxim_mazurok/gapi.client.batch-v1 0.0.20240807 → 0.0.20240821
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +9 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://batch.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240821
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -128,6 +128,10 @@ declare namespace gapi.client {
|
|
|
128
128
|
/** The status of the Task. If we need agent specific fields we should fork the public TaskStatus into an agent specific one. Or add them below. */
|
|
129
129
|
taskStatus?: TaskStatus;
|
|
130
130
|
}
|
|
131
|
+
interface AgentTaskLoggingOption {
|
|
132
|
+
/** Labels to be added to the log entry. Now only cloud logging is supported. */
|
|
133
|
+
labels?: {[P in string]: string};
|
|
134
|
+
}
|
|
131
135
|
interface AgentTaskRunnable {
|
|
132
136
|
/** By default, after a Runnable fails, no further Runnable are executed. This flag indicates that this Runnable must be run even if the Task has already failed. This is useful for Runnables that copy output files off of the VM or for debugging. The always_run flag does not override the Task's overall max_run_duration. If the max_run_duration has expired then no further Runnables will execute, not even always_run Runnables. */
|
|
133
137
|
alwaysRun?: boolean;
|
|
@@ -147,6 +151,8 @@ declare namespace gapi.client {
|
|
|
147
151
|
interface AgentTaskSpec {
|
|
148
152
|
/** Environment variables to set before running the Task. */
|
|
149
153
|
environment?: AgentEnvironment;
|
|
154
|
+
/** Logging option for the task. */
|
|
155
|
+
loggingOption?: AgentTaskLoggingOption;
|
|
150
156
|
/** 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. */
|
|
151
157
|
maxRunDuration?: string;
|
|
152
158
|
/** AgentTaskRunnable is runanbles that will be executed on the agent. */
|
|
@@ -270,6 +276,8 @@ declare namespace gapi.client {
|
|
|
270
276
|
reservation?: string;
|
|
271
277
|
}
|
|
272
278
|
interface InstancePolicyOrTemplate {
|
|
279
|
+
/** Optional. Set this field to `true` if you want Batch to block project-level SSH keys from accessing this job's VMs. Alternatively, you can configure the job to specify a VM instance template that blocks project-level SSH keys. In either case, Batch blocks project-level SSH keys while creating the VMs for this job. Batch allows project-level SSH keys for a job's VMs only if all the following are true: + This field is undefined or set to `false`. + The job's VM instance template (if any) doesn't block project-level SSH keys. Notably, you can override this behavior by manually updating a VM to block or allow project-level SSH keys. For more information about blocking project-level SSH keys, see the Compute Engine documentation: https://cloud.google.com/compute/docs/connect/restrict-ssh-keys#block-keys */
|
|
280
|
+
blockProjectSshKeys?: boolean;
|
|
273
281
|
/** Set this field true if you want Batch to help fetch drivers from a third party location and install them for GPUs specified in `policy.accelerators` or `instance_template` on your behalf. Default is false. For Container-Optimized Image cases, Batch will install the accelerator driver following milestones of https://cloud.google.com/container-optimized-os/docs/release-notes. For non Container-Optimized Image cases, following https://github.com/GoogleCloudPlatform/compute-gpu-installation/blob/main/linux/install_gpu_driver.py. */
|
|
274
282
|
installGpuDrivers?: boolean;
|
|
275
283
|
/** Optional. Set this field true if you want Batch to install Ops Agent on your behalf. Default is false. */
|