@maxim_mazurok/gapi.client.dataproc-v1 0.0.20230103 → 0.0.20230202

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 +64 -28
  2. package/package.json +1 -1
  3. package/tests.ts +11 -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://dataproc.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230103
12
+ // Revision: 20230202
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -27,9 +27,9 @@ declare namespace gapi.client {
27
27
  acceleratorCount?: number;
28
28
  /**
29
29
  * Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes
30
- * (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
31
- * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
32
- * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement
30
+ * (https://cloud.google.com/compute/docs/reference/v1/acceleratorTypes).Examples:
31
+ * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-k80 projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-k80
32
+ * nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement
33
33
  * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for
34
34
  * example, nvidia-tesla-k80.
35
35
  */
@@ -191,13 +191,14 @@ declare namespace gapi.client {
191
191
  * example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com.
192
192
  * serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account
193
193
  * (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email
194
- * address that represents a Google group. For example, admins@example.com. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that
195
- * has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains
196
- * the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted.
197
- * For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the
198
- * undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has
199
- * been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains
200
- * the role in the binding. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
194
+ * address that represents a Google group. For example, admins@example.com. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example,
195
+ * google.com or example.com. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example,
196
+ * alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding.
197
+ * deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example,
198
+ * my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service
199
+ * account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently
200
+ * deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the
201
+ * binding.
201
202
  */
202
203
  members?: string[];
203
204
  /** Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner. */
@@ -235,8 +236,8 @@ declare namespace gapi.client {
235
236
  statusHistory?: ClusterStatus[];
236
237
  /**
237
238
  * Optional. The virtual cluster config is used when creating a Dataproc cluster that does not directly control the underlying compute resources, for example, when creating a
238
- * Dataproc-on-GKE cluster (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke). Dataproc may set default values, and values may change when clusters are updated. Exactly
239
- * one of config or virtual_cluster_config must be specified.
239
+ * Dataproc-on-GKE cluster (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview). Dataproc may set default values, and values may change when clusters are
240
+ * updated. Exactly one of config or virtual_cluster_config must be specified.
240
241
  */
241
242
  virtualClusterConfig?: VirtualClusterConfig;
242
243
  }
@@ -365,8 +366,13 @@ declare namespace gapi.client {
365
366
  /** Required. Metrics sources to enable. */
366
367
  metrics?: Metric[];
367
368
  }
368
- // tslint:disable-next-line:no-empty-interface
369
369
  interface DiagnoseClusterRequest {
370
+ /** Optional. Time interval in which diagnosis should be carried out on the cluster. */
371
+ diagnosisInterval?: Interval;
372
+ /** Optional. DEPRECATED Specifies the job on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job} */
373
+ job?: string;
374
+ /** Optional. DEPRECATED Specifies the yarn application on which diagnosis is to be performed. */
375
+ yarnApplicationId?: string;
370
376
  }
371
377
  interface DiagnoseClusterResults {
372
378
  /** Output only. The Cloud Storage URI of the diagnostic output. The output report is a plain text file with a summary of collected diagnostics. */
@@ -432,8 +438,21 @@ declare namespace gapi.client {
432
438
  networkUri?: string;
433
439
  /** Optional. Service account that used to execute workload. */
434
440
  serviceAccount?: string;
441
+ /**
442
+ * Optional. A Cloud Storage bucket used to stage workload dependencies, config files, and store workload output and other ephemeral data, such as Spark history files. If you do not
443
+ * specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location according to the region where your workload is running, and then create and manage project-level,
444
+ * per-location staging and temporary buckets. This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.
445
+ */
446
+ stagingBucket?: string;
435
447
  /** Optional. Subnetwork URI to connect workload to. */
436
448
  subnetworkUri?: string;
449
+ /**
450
+ * 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.
451
+ * 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
452
+ * 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.
453
+ * If ttl is not specified for a session, it defaults to 24h.
454
+ */
455
+ ttl?: string;
437
456
  }
438
457
  interface Expr {
439
458
  /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
@@ -462,8 +481,8 @@ declare namespace gapi.client {
462
481
  /**
463
482
  * Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the
464
483
  * "default" network of the project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more
465
- * information).A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default
466
- * projects/[project_id]/regions/global/default default
484
+ * information).A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/[region]/default
485
+ * projects/[project_id]/regions/[region]/default default
467
486
  */
468
487
  networkUri?: string;
469
488
  /** Optional. Node Group Affinity for sole-tenant clusters. */
@@ -489,15 +508,15 @@ declare namespace gapi.client {
489
508
  shieldedInstanceConfig?: ShieldedInstanceConfig;
490
509
  /**
491
510
  * Optional. The Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri.A full URL, partial URI, or short name are valid. Examples:
492
- * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0 projects/[project_id]/regions/us-east1/subnetworks/sub0 sub0
511
+ * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/[region]/subnetworks/sub0 projects/[project_id]/regions/[region]/subnetworks/sub0 sub0
493
512
  */
494
513
  subnetworkUri?: string;
495
514
  /** The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)). */
496
515
  tags?: string[];
497
516
  /**
498
- * Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the "global" region. If omitted in a non-global Dataproc region, the
499
- * service will pick a zone in the corresponding Compute Engine region. On a get request, zone will always be present.A full URL, partial URI, or short name are valid. Examples:
500
- * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] projects/[project_id]/zones/[zone] us-central1-f
517
+ * Optional. The Compute Engine zone where the Dataproc cluster will be located. If omitted, the service will pick a zone in the cluster's Compute Engine region. On a get request, zone
518
+ * will always be present.A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
519
+ * projects/[project_id]/zones/[zone] [zone]
501
520
  */
502
521
  zoneUri?: string;
503
522
  }
@@ -682,8 +701,8 @@ declare namespace gapi.client {
682
701
  diskConfig?: DiskConfig;
683
702
  /**
684
703
  * Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
685
- * https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id] projects/[project_id]/global/images/[image-id] image-idImage family examples. Dataproc will
686
- * use the most recent image from the family: https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
704
+ * https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/[image-id] projects/[project_id]/global/images/[image-id] image-idImage family examples. Dataproc will use
705
+ * the most recent image from the family: https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name]
687
706
  * projects/[project_id]/global/images/family/[custom-image-family-name]If the URI is unspecified, it will be inferred from SoftwareConfig.image_version or the system default.
688
707
  */
689
708
  imageUri?: string;
@@ -695,10 +714,9 @@ declare namespace gapi.client {
695
714
  isPreemptible?: boolean;
696
715
  /**
697
716
  * Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
698
- * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
699
- * n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement
700
- * (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the machine type resource, for
701
- * example, n1-standard-2.
717
+ * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 projects/[project_id]/zones/[zone]/machineTypes/n1-standard-2 n1-standard-2Auto
718
+ * Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature,
719
+ * you must use the short name of the machine type resource, for example, n1-standard-2.
702
720
  */
703
721
  machineTypeUri?: string;
704
722
  /** Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups. */
@@ -738,6 +756,12 @@ declare namespace gapi.client {
738
756
  */
739
757
  version?: number;
740
758
  }
759
+ interface Interval {
760
+ /** Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end. */
761
+ endTime?: string;
762
+ /** Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start. */
763
+ startTime?: string;
764
+ }
741
765
  interface Job {
742
766
  /**
743
767
  * Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it
@@ -1041,8 +1065,8 @@ declare namespace gapi.client {
1041
1065
  interface NodeGroupAffinity {
1042
1066
  /**
1043
1067
  * Required. The URI of a sole-tenant node group resource (https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups) that the cluster will be created on.A full URL, partial
1044
- * URI, or node group name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1
1045
- * projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1 node-group-1
1068
+ * URI, or node group name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/nodeGroups/node-group-1
1069
+ * projects/[project_id]/zones/[zone]/nodeGroups/node-group-1 node-group-1
1046
1070
  */
1047
1071
  nodeGroupUri?: string;
1048
1072
  }
@@ -2234,10 +2258,22 @@ declare namespace gapi.client {
2234
2258
  callback?: string;
2235
2259
  /** Selector specifying which fields to include in a partial response. */
2236
2260
  fields?: string;
2261
+ /**
2262
+ * Optional. A filter for the batches to return in the response.A filter is a logical expression constraining the values of various fields in each batch resource. Filters are case
2263
+ * sensitive, and may contain multiple clauses combined with logical operators (AND/OR). Supported fields are batch_id, batch_uuid, state, and create_time.e.g. state = RUNNING and
2264
+ * create_time < "2023-01-01T00:00:00Z" filters for batches in state RUNNING that were created before 2023-01-01See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a
2265
+ * detailed description of the filter syntax and a list of supported comparisons.
2266
+ */
2267
+ filter?: string;
2237
2268
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2238
2269
  key?: string;
2239
2270
  /** OAuth 2.0 token for the current user. */
2240
2271
  oauth_token?: string;
2272
+ /**
2273
+ * Optional. Field(s) on which to sort the list of batches.Currently the only supported sort orders are unspecified (empty) and create_time desc to sort by most recently created
2274
+ * batches first.See https://google.aip.dev/132#ordering for more details.
2275
+ */
2276
+ orderBy?: string;
2241
2277
  /** Optional. The maximum number of batches to return in each response. The service may return fewer than this value. The default page size is 20; the maximum page size is 1000. */
2242
2278
  pageSize?: number;
2243
2279
  /** Optional. A page token received from a previous ListBatches call. Provide this token to retrieve the subsequent page. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dataproc-v1",
3
- "version": "0.0.20230103",
3
+ "version": "0.0.20230202",
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: 20230103
6
+ // Revision: 20230202
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -176,7 +176,9 @@ gapi.load('client', async () => {
176
176
  ],
177
177
  networkUri: "Test string",
178
178
  serviceAccount: "Test string",
179
+ stagingBucket: "Test string",
179
180
  subnetworkUri: "Test string",
181
+ ttl: "Test string",
180
182
  },
181
183
  peripheralsConfig: {
182
184
  metastoreService: "Test string",
@@ -290,6 +292,8 @@ gapi.load('client', async () => {
290
292
  });
291
293
  /** Lists batch workloads. */
292
294
  await gapi.client.dataproc.projects.locations.batches.list({
295
+ filter: "Test string",
296
+ orderBy: "Test string",
293
297
  pageSize: 42,
294
298
  pageToken: "Test string",
295
299
  parent: "Test string",
@@ -2654,6 +2658,12 @@ gapi.load('client', async () => {
2654
2658
  projectId: "Test string",
2655
2659
  region: "Test string",
2656
2660
  }, {
2661
+ diagnosisInterval: {
2662
+ endTime: "Test string",
2663
+ startTime: "Test string",
2664
+ },
2665
+ job: "Test string",
2666
+ yarnApplicationId: "Test string",
2657
2667
  });
2658
2668
  /** Gets the resource representation for a cluster in a project. */
2659
2669
  await gapi.client.dataproc.projects.regions.clusters.get({