@maxim_mazurok/gapi.client.batch-v1 0.0.20230621 → 0.0.20230705

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 +23 -12
  2. package/package.json +1 -1
  3. package/tests.ts +3 -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: 20230621
12
+ // Revision: 20230705
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -26,6 +26,12 @@ declare namespace gapi.client {
26
26
  /** The number of accelerators of this type. */
27
27
  count?:
28
28
  string;
29
+ /**
30
+ * Optional. The NVIDIA GPU driver version that should be installed for this type. You can define the specific driver version such as "470.103.01", following the driver version
31
+ * requirements in https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver. Batch will install the specific accelerator driver if qualified.
32
+ */
33
+ driverVersion?:
34
+ string;
29
35
  /** Deprecated: please use instances[0].install_gpu_drivers instead. */
30
36
  installGpuDrivers?:
31
37
  boolean;
@@ -70,7 +76,7 @@ declare namespace gapi.client {
70
76
  { [P in string]: string };
71
77
  }
72
78
  interface AgentInfo {
73
- /** The assigned Job ID */
79
+ /** Optional. The assigned Job ID */
74
80
  jobId?:
75
81
  string;
76
82
  /** When the AgentInfo is generated. */
@@ -322,10 +328,10 @@ declare namespace gapi.client {
322
328
  diskInterface?:
323
329
  string;
324
330
  /**
325
- * 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:
326
- * 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
327
- * 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
328
- * Container-Optimized images. * "batch-hpc-centos": use Batch HPC CentOS images.
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.
329
335
  */
330
336
  image?:
331
337
  string;
@@ -388,7 +394,9 @@ declare namespace gapi.client {
388
394
  interface InstancePolicyOrTemplate {
389
395
  /**
390
396
  * 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
391
- * behalf. Default is false.
397
+ * behalf. Default is false. For Container-Optimized Image cases, Batch will install the accelerator driver following milestones of
398
+ * https://cloud.google.com/container-optimized-os/docs/release-notes. For non Container-Optimized Image cases, following
399
+ * https://github.com/GoogleCloudPlatform/compute-gpu-installation/blob/main/linux/install_gpu_driver.py.
392
400
  */
393
401
  installGpuDrivers?:
394
402
  boolean;
@@ -588,8 +596,8 @@ declare namespace gapi.client {
588
596
  }
589
597
  interface NetworkInterface {
590
598
  /**
591
- * 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: *
592
- * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network} * projects/{project}/global/networks/{network} * global/networks/{network}
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
593
601
  */
594
602
  network?:
595
603
  string;
@@ -601,9 +609,9 @@ declare namespace gapi.client {
601
609
  noExternalIpAddress?:
602
610
  boolean;
603
611
  /**
604
- * 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: *
605
- * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork} * projects/{project}/regions/{region}/subnetworks/{subnetwork} *
606
- * regions/{region}/subnetworks/{subnetwork}
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
607
615
  */
608
616
  subnetwork?:
609
617
  string;
@@ -1248,6 +1256,9 @@ declare namespace gapi.client {
1248
1256
  /** OAuth 2.0 token for the current user. */
1249
1257
  oauth_token?:
1250
1258
  string;
1259
+ /** Optional. Sort results. Supported are "name", "name desc", "create_time", and "create_time desc". */
1260
+ orderBy?:
1261
+ string;
1251
1262
  /** Page size. */
1252
1263
  pageSize?:
1253
1264
  number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.batch-v1",
3
- "version": "0.0.20230621",
3
+ "version": "0.0.20230705",
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: 20230621
6
+ // Revision: 20230705
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -55,6 +55,7 @@ gapi.load('client', async () => {
55
55
  accelerators: [
56
56
  {
57
57
  count: "Test string",
58
+ driverVersion: "Test string",
58
59
  installGpuDrivers: true,
59
60
  type: "Test string",
60
61
  }
@@ -304,6 +305,7 @@ gapi.load('client', async () => {
304
305
  /** List all Jobs for a project within a region. */
305
306
  await gapi.client.batch.projects.locations.jobs.list({
306
307
  filter: "Test string",
308
+ orderBy: "Test string",
307
309
  pageSize: 42,
308
310
  pageToken: "Test string",
309
311
  parent: "Test string",