@maxim_mazurok/gapi.client.batch-v1 0.0.20240428 → 0.0.20240517

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.
Files changed (2) hide show
  1. package/index.d.ts +7 -5
  2. 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: 20240428
12
+ // Revision: 20240517
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -89,6 +89,8 @@ declare namespace gapi.client {
89
89
  instanceId?: string;
90
90
  /** If the GCP instance has received preemption notice. */
91
91
  instancePreemptionNoticeReceived?: boolean;
92
+ /** Optional. machine type of the VM */
93
+ machineType?: string;
92
94
  /** parsed contents of /etc/os-release */
93
95
  osRelease?: {[P in string]: string};
94
96
  /** agent binary version running on VM */
@@ -145,7 +147,7 @@ declare namespace gapi.client {
145
147
  interface AgentTaskSpec {
146
148
  /** Environment variables to set before running the Task. */
147
149
  environment?: AgentEnvironment;
148
- /** Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit. The valid value range for max_run_duration in seconds is [0, 315576000000.999999999], */
150
+ /** 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. */
149
151
  maxRunDuration?: string;
150
152
  /** AgentTaskRunnable is runanbles that will be executed on the agent. */
151
153
  runnables?: AgentTaskRunnable[];
@@ -268,7 +270,7 @@ declare namespace gapi.client {
268
270
  reservation?: string;
269
271
  }
270
272
  interface InstancePolicyOrTemplate {
271
- /** Set this field true if users want Batch to help fetch drivers from a third party location and install them for GPUs specified in policy.accelerators or instance_template on their 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. */
273
+ /** 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. */
272
274
  installGpuDrivers?: boolean;
273
275
  /** Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid c++ keyword conflict. */
274
276
  instanceTemplate?: string;
@@ -528,7 +530,7 @@ declare namespace gapi.client {
528
530
  status?: TaskStatus;
529
531
  }
530
532
  interface TaskExecution {
531
- /** The exit code of a finished task. If the task succeeded, the exit code will be 0. If the task failed but not due to the following reasons, the exit code will be 50000. Otherwise, it can be from different sources: - Batch known failures as https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes. - Batch runnable execution failures: You can rely on Batch logs for further diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. If there are multiple runnables failures, Batch only exposes the first error caught for now. */
533
+ /** The exit code of a finished task. If the task succeeded, the exit code will be 0. If the task failed but not due to the following reasons, the exit code will be 50000. Otherwise, it can be from different sources: * Batch known failures: https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes. * Batch runnable execution failures; you can rely on Batch logs to further diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. If there are multiple runnables failures, Batch only exposes the first error. */
532
534
  exitCode?: number;
533
535
  }
534
536
  interface TaskGroup {
@@ -570,7 +572,7 @@ declare namespace gapi.client {
570
572
  lifecyclePolicies?: LifecyclePolicy[];
571
573
  /** Maximum number of retries on failures. The default, 0, which means never retry. The valid value range is [0, 10]. */
572
574
  maxRetryCount?: number;
573
- /** Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit. The valid value range for max_run_duration in seconds is [0, 315576000000.999999999], */
575
+ /** 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. */
574
576
  maxRunDuration?: string;
575
577
  /** The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. Background runnables are killed automatically (if they have not already exited) a short time after all foreground runnables have completed. Even though this is likely to result in a non-zero exit status for the background runnable, these automatic kills are not treated as Task failures. */
576
578
  runnables?: Runnable[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.batch-v1",
3
- "version": "0.0.20240428",
3
+ "version": "0.0.20240517",
4
4
  "description": "TypeScript typings for Batch API v1",
5
5
  "repository": {
6
6
  "type": "git",