@maxim_mazurok/gapi.client.dataproc-v1 0.0.20230227 → 0.0.20230410

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 +18 -22
  2. package/package.json +1 -1
  3. package/tests.ts +9 -13
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://dataproc.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230227
12
+ // Revision: 20230410
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -371,8 +371,12 @@ declare namespace gapi.client {
371
371
  diagnosisInterval?: Interval;
372
372
  /** Optional. DEPRECATED Specifies the job on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job} */
373
373
  job?: string;
374
+ /** Optional. Specifies a list of jobs on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job} */
375
+ jobs?: string[];
374
376
  /** Optional. DEPRECATED Specifies the yarn application on which diagnosis is to be performed. */
375
377
  yarnApplicationId?: string;
378
+ /** Optional. Specifies a list of yarn applications on which diagnosis is to be performed. */
379
+ yarnApplicationIds?: string[];
376
380
  }
377
381
  interface DiagnoseClusterResults {
378
382
  /** Output only. The Cloud Storage URI of the diagnostic output. The output report is a plain text file with a summary of collected diagnostics. */
@@ -427,9 +431,10 @@ declare namespace gapi.client {
427
431
  }
428
432
  interface ExecutionConfig {
429
433
  /**
430
- * Optional. The duration to keep the session alive while it's idling. Passing this threshold will cause the session to be terminated. Minimum value is 10 minutes; maximum value is 14
431
- * days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4 hours if not set. If both ttl and idle_ttl are specified,
432
- * the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first.
434
+ * Optional. The duration to keep the session alive while it's idling. Exceeding this threshold causes the session to terminate. This field cannot be set on a batch workload. Minimum
435
+ * value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4 hours if not
436
+ * set. If both ttl and idle_ttl are specified, the conditions are treated as OR conditions: the workload will be terminated when it has been idle for idle_ttl or when ttl has been
437
+ * exceed, whichever occurs first.
433
438
  */
434
439
  idleTtl?: string;
435
440
  /** Optional. The Cloud KMS key to use for encryption. */
@@ -449,10 +454,11 @@ declare namespace gapi.client {
449
454
  /** Optional. Subnetwork URI to connect workload to. */
450
455
  subnetworkUri?: string;
451
456
  /**
452
- * Optional. The duration after which the workload will be terminated. When the workload passes this ttl, it will be unconditionally killed without waiting for ongoing work to finish.
453
- * Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). If both ttl and
454
- * idle_ttl are specified, the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first.
455
- * If ttl is not specified for a session, it defaults to 24h.
457
+ * Optional. The duration after which the workload will be terminated. When the workload exceeds this duration, it will be unconditionally terminated without waiting for ongoing work
458
+ * to finish. If ttl is not specified for a batch workload, the workload will be allowed to run until it exits naturally (or runs forever without exiting). If ttl is not specified for
459
+ * an interactive session, it defaults to 24h. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration
460
+ * (https://developers.google.com/protocol-buffers/docs/proto3#json)). If both ttl and idle_ttl are specified (for an interactive session), the conditions are treated as OR conditions:
461
+ * the workload will be terminated when it has been idle for idle_ttl or when ttl has been exceeded, whichever occurs first.
456
462
  */
457
463
  ttl?: string;
458
464
  }
@@ -1327,7 +1333,7 @@ declare namespace gapi.client {
1327
1333
  }
1328
1334
  interface ResizeNodeGroupRequest {
1329
1335
  /**
1330
- * Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning
1336
+ * Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning
1331
1337
  * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning) allows the removal of nodes from the Compute Engine node group
1332
1338
  * without interrupting jobs in progress. This timeout specifies how long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs).
1333
1339
  * Default timeout is 0 (for forceful decommission), and the maximum allowed timeout is 1 day. (see JSON representation of Duration
@@ -1522,7 +1528,7 @@ declare namespace gapi.client {
1522
1528
  }
1523
1529
  interface SparkStandaloneAutoscalingConfig {
1524
1530
  /**
1525
- * Required. Timeout for Spark graceful decommissioning of spark workers. Specifies the duration to wait for spark worker to complete spark decomissioning tasks before forcefully
1531
+ * Required. Timeout for Spark graceful decommissioning of spark workers. Specifies the duration to wait for spark worker to complete spark decommissioning tasks before forcefully
1526
1532
  * removing workers. Only applicable to downscaling operations.Bounds: 0s, 1d.
1527
1533
  */
1528
1534
  gracefulDecommissionTimeout?: string;
@@ -2382,12 +2388,7 @@ declare namespace gapi.client {
2382
2388
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2383
2389
  uploadType?: string;
2384
2390
  }): Request<Operation>;
2385
- /**
2386
- * 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
2387
- * 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
2388
- * "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
2389
- * ensure the name binding is the parent resource, without the operations collection id.
2390
- */
2391
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. */
2391
2392
  list(request?: {
2392
2393
  /** V1 error format. */
2393
2394
  "$.xgafv"?: string;
@@ -4728,12 +4729,7 @@ declare namespace gapi.client {
4728
4729
  uploadType?: string;
4729
4730
  },
4730
4731
  body: GetIamPolicyRequest): Request<Policy>;
4731
- /**
4732
- * 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
4733
- * 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
4734
- * "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
4735
- * ensure the name binding is the parent resource, without the operations collection id.
4736
- */
4732
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. */
4737
4733
  list(request?: {
4738
4734
  /** V1 error format. */
4739
4735
  "$.xgafv"?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dataproc-v1",
3
- "version": "0.0.20230227",
3
+ "version": "0.0.20230410",
4
4
  "description": "TypeScript typings for Cloud Dataproc 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: 20230227
6
+ // Revision: 20230410
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -318,12 +318,7 @@ gapi.load('client', async () => {
318
318
  await gapi.client.dataproc.projects.locations.operations.get({
319
319
  name: "Test string",
320
320
  });
321
- /**
322
- * 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
323
- * 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 "/v1/{name=users/*}/operations"
324
- * to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent
325
- * resource, without the operations collection id.
326
- */
321
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. */
327
322
  await gapi.client.dataproc.projects.locations.operations.list({
328
323
  filter: "Test string",
329
324
  name: "Test string",
@@ -2667,7 +2662,13 @@ gapi.load('client', async () => {
2667
2662
  startTime: "Test string",
2668
2663
  },
2669
2664
  job: "Test string",
2665
+ jobs: [
2666
+ "Test string"
2667
+ ],
2670
2668
  yarnApplicationId: "Test string",
2669
+ yarnApplicationIds: [
2670
+ "Test string"
2671
+ ],
2671
2672
  });
2672
2673
  /** Gets the resource representation for a cluster in a project. */
2673
2674
  await gapi.client.dataproc.projects.regions.clusters.get({
@@ -4114,12 +4115,7 @@ gapi.load('client', async () => {
4114
4115
  requestedPolicyVersion: 42,
4115
4116
  },
4116
4117
  });
4117
- /**
4118
- * 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
4119
- * 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 "/v1/{name=users/*}/operations"
4120
- * to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent
4121
- * resource, without the operations collection id.
4122
- */
4118
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED. */
4123
4119
  await gapi.client.dataproc.projects.regions.operations.list({
4124
4120
  filter: "Test string",
4125
4121
  name: "Test string",