@maxim_mazurok/gapi.client.batch-v1 0.0.20231206 → 0.0.20240103
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 +13 -3
- 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: 20240103
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -173,12 +173,14 @@ declare namespace gapi.client {
|
|
|
173
173
|
labels?: {[P in string]: string};
|
|
174
174
|
/** Location where compute resources should be allocated for the Job. */
|
|
175
175
|
location?: LocationPolicy;
|
|
176
|
-
/** The network policy. If you define an instance template in the InstancePolicyOrTemplate field, Batch will use the network settings in the instance template instead of this field. */
|
|
176
|
+
/** The network policy. If you define an instance template in the `InstancePolicyOrTemplate` field, Batch will use the network settings in the instance template instead of this field. */
|
|
177
177
|
network?: NetworkPolicy;
|
|
178
178
|
/** The placement policy. */
|
|
179
179
|
placement?: PlacementPolicy;
|
|
180
180
|
/** Service account that VMs will run as. */
|
|
181
181
|
serviceAccount?: ServiceAccount;
|
|
182
|
+
/** Optional. Tags applied to the VM instances. The tags identify valid sources or targets for network firewalls. Each tag must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). */
|
|
183
|
+
tags?: string[];
|
|
182
184
|
}
|
|
183
185
|
interface AttachedDisk {
|
|
184
186
|
/** Device name that the guest operating system will see. It is used by Runnable.volumes field to mount disks. So please specify the device_name if you want Batch to help mount the disk, and it should match the device_name field in volumes. */
|
|
@@ -192,6 +194,10 @@ declare namespace gapi.client {
|
|
|
192
194
|
name?: string;
|
|
193
195
|
}
|
|
194
196
|
interface CancelOperationRequest {}
|
|
197
|
+
interface CloudLoggingOption {
|
|
198
|
+
/** Optional. Set this flag to true to change the [monitored resource type](https://cloud.google.com/monitoring/api/resources) for Cloud Logging logs generated by this Batch job from the [`batch.googleapis.com/Job`](https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job) type to the formerly used [`generic_task`](https://cloud.google.com/monitoring/api/resources#tag_generic_task) type. */
|
|
199
|
+
useGenericTaskMonitoredResource?: boolean;
|
|
200
|
+
}
|
|
195
201
|
interface ComputeResource {
|
|
196
202
|
/** Extra boot disk size in MiB for each task. */
|
|
197
203
|
bootDiskMib?: string;
|
|
@@ -205,7 +211,7 @@ declare namespace gapi.client {
|
|
|
205
211
|
blockExternalNetwork?: boolean;
|
|
206
212
|
/** Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the container image or with the entrypoint field below) then commands are appended as arguments to the ENTRYPOINT. */
|
|
207
213
|
commands?: string[];
|
|
208
|
-
/** Optional. If set to true, container
|
|
214
|
+
/** Optional. If set to true, this container runnable uses Image streaming. Use Image streaming to allow the runnable to initialize without waiting for the entire container image to download, which can significantly reduce startup time for large container images. When `enableImageStreaming` is set to true, the container runtime is [containerd](https://containerd.io/) instead of Docker. Additionally, this container runnable only supports the following `container` subfields: `imageUri`, `commands[]`, `entrypoint`, and `volumes[]`; any other `container` subfields are ignored. For more information about the requirements and limitations for using Image streaming with Batch, see the [`image-streaming` sample on GitHub](https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming). */
|
|
209
215
|
enableImageStreaming?: boolean;
|
|
210
216
|
/** Overrides the `ENTRYPOINT` specified in the container. */
|
|
211
217
|
entrypoint?: string;
|
|
@@ -376,6 +382,8 @@ declare namespace gapi.client {
|
|
|
376
382
|
allowedLocations?: string[];
|
|
377
383
|
}
|
|
378
384
|
interface LogsPolicy {
|
|
385
|
+
/** Optional. Additional settings for Cloud Logging. It will only take effect when the destination of `LogsPolicy` is set to `CLOUD_LOGGING`. */
|
|
386
|
+
cloudLoggingOption?: CloudLoggingOption;
|
|
379
387
|
/** Where logs should be saved. */
|
|
380
388
|
destination?: string;
|
|
381
389
|
/** The path to which logs are saved when the destination = PATH. This can be a local file path on the VM, or under the mount point of a Persistent Disk or Filestore, or a Cloud Storage path. */
|
|
@@ -532,6 +540,8 @@ declare namespace gapi.client {
|
|
|
532
540
|
permissiveSsh?: boolean;
|
|
533
541
|
/** When true, Batch will populate a file with a list of all VMs assigned to the TaskGroup and set the BATCH_HOSTS_FILE environment variable to the path of that file. Defaults to false. */
|
|
534
542
|
requireHostsFile?: boolean;
|
|
543
|
+
/** Optional. If not set or set to false, Batch will use root user to execute runnables. If set to true, Batch will make sure to run the runnables using non-root user. Currently, the non-root user Batch used is generated by OS login. Reference: https://cloud.google.com/compute/docs/oslogin */
|
|
544
|
+
runAsNonRoot?: boolean;
|
|
535
545
|
/** Scheduling policy for Tasks in the TaskGroup. The default value is AS_SOON_AS_POSSIBLE. */
|
|
536
546
|
schedulingPolicy?: string;
|
|
537
547
|
/** Number of Tasks in the TaskGroup. Default is 1. */
|