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

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 +32 -16
  2. package/package.json +2 -2
  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: 20230804
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
  }
@@ -328,10 +341,10 @@ declare namespace gapi.client {
328
341
  diskInterface?:
329
342
  string;
330
343
  /**
331
- * Name of an image used as the data source. For example, the following are all valid URLs: * Specify the image by its family name: projects/project/global/images/family/image_family *
332
- * Specify the image version: projects/project/global/images/image_version You can also use Batch customized image in short names. The following image values are supported for a boot
333
- * disk: * `batch-debian`: use Batch Debian images. * `batch-centos`: use Batch CentOS images. * `batch-cos`: use Batch Container-Optimized images. * `batch-hpc-centos`: use Batch HPC
334
- * CentOS images.
344
+ * URL for a VM image to use as the data source for this disk. For example, the following are all valid URLs: * Specify the image by its family name:
345
+ * 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
346
+ * 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
347
+ * Container-Optimized images. * `batch-hpc-centos`: use Batch HPC CentOS images.
335
348
  */
336
349
  image?:
337
350
  string;
@@ -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-boot disk is a disk that can be of a device with a
396
+ * 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. */
@@ -596,8 +612,8 @@ declare namespace gapi.client {
596
612
  }
597
613
  interface NetworkInterface {
598
614
  /**
599
- * 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:
600
- * https://www.googleapis.com/compute/v1/projects/project/global/networks/network projects/project/global/networks/network global/networks/network
615
+ * 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: *
616
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} * projects/{project}/global/networks/{network} * global/networks/{network}
601
617
  */
602
618
  network?:
603
619
  string;
@@ -609,9 +625,9 @@ declare namespace gapi.client {
609
625
  noExternalIpAddress?:
610
626
  boolean;
611
627
  /**
612
- * 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:
613
- * https://www.googleapis.com/compute/v1/projects/project/regions/region/subnetworks/subnetwork projects/project/regions/region/subnetworks/subnetwork
614
- * regions/region/subnetworks/subnetwork
628
+ * 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: *
629
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} * projects/{project}/regions/{region}/subnetworks/{subnetwork} *
630
+ * regions/{region}/subnetworks/{subnetwork}
615
631
  */
616
632
  subnetwork?:
617
633
  string;
@@ -649,9 +665,9 @@ declare namespace gapi.client {
649
665
  name?:
650
666
  string;
651
667
  /**
652
- * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
653
- * original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the
654
- * original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
668
+ * The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original
669
+ * method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original
670
+ * method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
655
671
  */
656
672
  response?:
657
673
  { [P in string]: any };
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.20230804",
4
4
  "description": "TypeScript typings for Batch API v1",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -15,6 +15,6 @@
15
15
  "types": "index.d.ts",
16
16
  "dependencies": {
17
17
  "@types/gapi.client": "*",
18
- "@types/gapi.client.discovery": "*"
18
+ "@types/gapi.client.discovery-v1": "*"
19
19
  }
20
20
  }
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: 20230804
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */