@maxim_mazurok/gapi.client.batch-v1 0.0.20230213 → 0.0.20230301

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 (3) hide show
  1. package/index.d.ts +16 -13
  2. package/package.json +1 -1
  3. package/tests.ts +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: 20230213
12
+ // Revision: 20230301
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -138,7 +138,10 @@ declare namespace gapi.client {
138
138
  memoryMib?: string;
139
139
  }
140
140
  interface Container {
141
- /** If set to true, external network access to and from container will be blocked. The container will use the default internal network 'goog-internal'. */
141
+ /**
142
+ * If set to true, external network access to and from container will be blocked, containers that are with block_external_network as true can still communicate with each other, network
143
+ * cannot be specified in the `container.options` field.
144
+ */
142
145
  blockExternalNetwork?: boolean;
143
146
  /**
144
147
  * 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
@@ -162,9 +165,9 @@ declare namespace gapi.client {
162
165
  /** Local SSDs are available through both "SCSI" and "NVMe" interfaces. If not indicated, "NVMe" will be the default one for local ssds. We only support "SCSI" for persistent disks now. */
163
166
  diskInterface?: string;
164
167
  /**
165
- * Name of a public or custom image used as the data source. For example, the following are all valid URLs: (1) Specify the image by its family name:
166
- * projects/{project}/global/images/family/{image_family} (2) Specify the image version: projects/{project}/global/images/{image_version} You can also use Batch customized image in
167
- * short names. The following image values are supported for a boot disk: "batch-debian": use Batch Debian images. "batch-centos": use Batch CentOS images. "batch-cos": use Batch
168
+ * Name of a public or custom image used as the data source. For example, the following are all valid URLs: * Specify the image by its family name:
169
+ * projects/{project}/global/images/family/{image_family} * Specify the image version: projects/{project}/global/images/{image_version} You can also use Batch customized image in short
170
+ * names. The following image values are supported for a boot disk: * "batch-debian": use Batch Debian images. * "batch-centos": use Batch CentOS images. * "batch-cos": use Batch
168
171
  * Container-Optimized images.
169
172
  */
170
173
  image?: string;
@@ -174,7 +177,7 @@ declare namespace gapi.client {
174
177
  * If both this field and the boot_disk_mib field in task spec's compute_resource are defined, Batch will only honor this field.
175
178
  */
176
179
  sizeGb?: string;
177
- /** Name of a snapshot used as the data source. */
180
+ /** Name of a snapshot used as the data source. Snapshot is not supported as boot disk now. */
178
181
  snapshot?: string;
179
182
  /**
180
183
  * Disk type as shown in `gcloud compute disk-types list`. For example, local SSD uses type "local-ssd". Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" or
@@ -200,13 +203,13 @@ declare namespace gapi.client {
200
203
  interface InstancePolicy {
201
204
  /** The accelerators attached to each VM instance. */
202
205
  accelerators?: Accelerator[];
203
- /** Book disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. */
206
+ /** Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image. */
204
207
  bootDisk?: Disk;
205
208
  /** Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. */
206
209
  disks?: AttachedDisk[];
207
210
  /** The Compute Engine machine type. */
208
211
  machineType?: string;
209
- /** The minimum CPU platform. See `https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform`. Not yet implemented. */
212
+ /** The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. Not yet implemented. */
210
213
  minCpuPlatform?: string;
211
214
  /** The provisioning model. */
212
215
  provisioningModel?: string;
@@ -365,8 +368,8 @@ declare namespace gapi.client {
365
368
  }
366
369
  interface NetworkInterface {
367
370
  /**
368
- * The URL of an existing network resource. You can specify the network as a full or partial URL. For example, the following are all valid URLs:
369
- * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} projects/{project}/global/networks/{network} global/networks/{network}
371
+ * The URL of an existing network resource. You can specify the network as a full or partial URL. For example, the following are all valid URLs: *
372
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} * projects/{project}/global/networks/{network} * global/networks/{network}
370
373
  */
371
374
  network?: string;
372
375
  /**
@@ -376,8 +379,8 @@ declare namespace gapi.client {
376
379
  */
377
380
  noExternalIpAddress?: boolean;
378
381
  /**
379
- * The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs:
380
- * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} projects/{project}/regions/{region}/subnetworks/{subnetwork}
382
+ * The URL of an existing subnetwork resource in the network. You can specify the subnetwork as a full or partial URL. For example, the following are all valid URLs: *
383
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} * projects/{project}/regions/{region}/subnetworks/{subnetwork} *
381
384
  * regions/{region}/subnetworks/{subnetwork}
382
385
  */
383
386
  subnetwork?: string;
@@ -538,7 +541,7 @@ declare namespace gapi.client {
538
541
  permissiveSsh?: boolean;
539
542
  /** 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. */
540
543
  requireHostsFile?: boolean;
541
- /** Number of Tasks in the TaskGroup. default is 1 */
544
+ /** Number of Tasks in the TaskGroup. Default is 1. */
542
545
  taskCount?: string;
543
546
  /** Max number of tasks that can be run on a VM at the same time. If not specified, the system will decide a value based on available compute resources on a VM and task requirements. */
544
547
  taskCountPerNode?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.batch-v1",
3
- "version": "0.0.20230213",
3
+ "version": "0.0.20230301",
4
4
  "description": "TypeScript typings for Batch API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230213
6
+ // Revision: 20230301
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */