@maxim_mazurok/gapi.client.batch-v1 0.0.20230721 → 0.0.20230726

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 +20 -4
  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: 20230721
12
+ // Revision: 20230726
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -284,10 +284,23 @@ declare namespace gapi.client {
284
284
  /** Extra boot disk size in MiB for each task. */
285
285
  bootDiskMib?:
286
286
  string;
287
- /** The milliCPU count. */
287
+ /**
288
+ * The milliCPU count. `cpuMilli` defines the amount of CPU resources per task in milliCPU units. For example, `1000` corresponds to 1 vCPU per task. If undefined, the default value is
289
+ * `2000`. If you also define the VM's machine type using the `machineType` in
290
+ * [InstancePolicy](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicy) field or inside the `instanceTemplate` in the
291
+ * [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicyortemplate) field, make sure the CPU resources for both fields
292
+ * are compatible with each other and with how many tasks you want to allow to run on the same VM at the same time. For example, if you specify the `n2-standard-2` machine type, which
293
+ * has 2 vCPUs each, you are recommended to set `cpuMilli` no more than `2000`, or you are recommended to run two tasks on the same VM if you set `cpuMilli` to `1000` or less.
294
+ */
288
295
  cpuMilli?:
289
296
  string;
290
- /** Memory in MiB. */
297
+ /**
298
+ * Memory in MiB. `memoryMib` defines the amount of memory per task in MiB units. If undefined, the default value is `2000`. If you also define the VM's machine type using the
299
+ * `machineType` in [InstancePolicy](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicy) field or inside the `instanceTemplate` in the
300
+ * [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicyortemplate) field, make sure the memory resources for both
301
+ * fields are compatible with each other and with how many tasks you want to allow to run on the same VM at the same time. For example, if you specify the `n2-standard-2` machine type,
302
+ * which has 8 GiB each, you are recommended to set `memoryMib` to no more than `8192`, or you are recommended to run two tasks on the same VM if you set `memoryMib` to `4096` or less.
303
+ */
291
304
  memoryMib?:
292
305
  string;
293
306
  }
@@ -378,7 +391,10 @@ declare namespace gapi.client {
378
391
  /** 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. */
379
392
  bootDisk?:
380
393
  Disk;
381
- /** Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. */
394
+ /**
395
+ * Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non bootable disk is a disk that can be of a device
396
+ * with a file system or a raw storage drive that is not ready for data storage and accessing.
397
+ */
382
398
  disks?:
383
399
  AttachedDisk[];
384
400
  /** The Compute Engine machine type. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.batch-v1",
3
- "version": "0.0.20230721",
3
+ "version": "0.0.20230726",
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: 20230721
6
+ // Revision: 20230726
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */