@maxim_mazurok/gapi.client.batch-v1 0.0.20230226 → 0.0.20230308

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 +5 -10
  2. package/package.json +1 -1
  3. package/tests.ts +2 -7
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: 20230226
12
+ // Revision: 20230308
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -177,7 +177,7 @@ declare namespace gapi.client {
177
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.
178
178
  */
179
179
  sizeGb?: string;
180
- /** 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. */
181
181
  snapshot?: string;
182
182
  /**
183
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
@@ -203,7 +203,7 @@ declare namespace gapi.client {
203
203
  interface InstancePolicy {
204
204
  /** The accelerators attached to each VM instance. */
205
205
  accelerators?: Accelerator[];
206
- /** Boot 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. */
207
207
  bootDisk?: Disk;
208
208
  /** Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. */
209
209
  disks?: AttachedDisk[];
@@ -535,7 +535,7 @@ declare namespace gapi.client {
535
535
  interface TaskGroup {
536
536
  /** Output only. TaskGroup name. The system generates this field based on parent Job name. For example: "projects/123456/locations/us-west1/jobs/job01/taskGroups/group01". */
537
537
  name?: string;
538
- /** Max number of tasks that can run in parallel. Default to min(task_count, 1000). */
538
+ /** Max number of tasks that can run in parallel. Default to min(task_count, 1000). Field parallelism must be 1 if the scheduling_policy is IN_ORDER. */
539
539
  parallelism?: string;
540
540
  /** When true, Batch will configure SSH to allow passwordless login between VMs running the Batch tasks in the same TaskGroup. */
541
541
  permissiveSsh?: boolean;
@@ -982,12 +982,7 @@ declare namespace gapi.client {
982
982
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
983
983
  uploadType?: string;
984
984
  }): Request<Operation>;
985
- /**
986
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
987
- * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
988
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
989
- * ensure the name binding is the parent resource, without the operations collection id.
990
- */
985
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
991
986
  list(request?: {
992
987
  /** V1 error format. */
993
988
  "$.xgafv"?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.batch-v1",
3
- "version": "0.0.20230226",
3
+ "version": "0.0.20230308",
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: 20230226
6
+ // Revision: 20230308
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -332,12 +332,7 @@ gapi.load('client', async () => {
332
332
  await gapi.client.batch.projects.locations.operations.get({
333
333
  name: "Test string",
334
334
  });
335
- /**
336
- * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
337
- * override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
338
- * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
339
- * ensure the name binding is the parent resource, without the operations collection id.
340
- */
335
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
341
336
  await gapi.client.batch.projects.locations.operations.list({
342
337
  filter: "Test string",
343
338
  name: "Test string",