@maxim_mazurok/gapi.client.dataproc-v1 0.0.20221207 → 0.0.20230117

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 +36 -25
  2. package/package.json +1 -1
  3. package/tests.ts +7 -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: 20221207
12
+ // Revision: 20230117
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
  */
@@ -235,8 +235,8 @@ declare namespace gapi.client {
235
235
  statusHistory?: ClusterStatus[];
236
236
  /**
237
237
  * 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.
238
+ * 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
239
+ * updated. Exactly one of config or virtual_cluster_config must be specified.
240
240
  */
241
241
  virtualClusterConfig?: VirtualClusterConfig;
242
242
  }
@@ -365,8 +365,13 @@ declare namespace gapi.client {
365
365
  /** Required. Metrics sources to enable. */
366
366
  metrics?: Metric[];
367
367
  }
368
- // tslint:disable-next-line:no-empty-interface
369
368
  interface DiagnoseClusterRequest {
369
+ /** Optional. Time interval in which diagnosis should be carried out on the cluster. */
370
+ diagnosisInterval?: Interval;
371
+ /** Optional. DEPRECATED Specifies the job on which diagnosis is to be performed. Format: projects/{project}/regions/{region}/jobs/{job} */
372
+ job?: string;
373
+ /** Optional. DEPRECATED Specifies the yarn application on which diagnosis is to be performed. */
374
+ yarnApplicationId?: string;
370
375
  }
371
376
  interface DiagnoseClusterResults {
372
377
  /** Output only. The Cloud Storage URI of the diagnostic output. The output report is a plain text file with a summary of collected diagnostics. */
@@ -420,7 +425,8 @@ declare namespace gapi.client {
420
425
  interface ExecutionConfig {
421
426
  /**
422
427
  * 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
423
- * days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4 hours if not set.
428
+ * 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,
429
+ * 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.
424
430
  */
425
431
  idleTtl?: string;
426
432
  /** Optional. The Cloud KMS key to use for encryption. */
@@ -461,8 +467,8 @@ declare namespace gapi.client {
461
467
  /**
462
468
  * 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
463
469
  * "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
464
- * information).A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default
465
- * projects/[project_id]/regions/global/default default
470
+ * information).A full URL, partial URI, or short name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/[region]/default
471
+ * projects/[project_id]/regions/[region]/default default
466
472
  */
467
473
  networkUri?: string;
468
474
  /** Optional. Node Group Affinity for sole-tenant clusters. */
@@ -488,15 +494,15 @@ declare namespace gapi.client {
488
494
  shieldedInstanceConfig?: ShieldedInstanceConfig;
489
495
  /**
490
496
  * 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:
491
- * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0 projects/[project_id]/regions/us-east1/subnetworks/sub0 sub0
497
+ * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/[region]/subnetworks/sub0 projects/[project_id]/regions/[region]/subnetworks/sub0 sub0
492
498
  */
493
499
  subnetworkUri?: string;
494
500
  /** The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)). */
495
501
  tags?: string[];
496
502
  /**
497
- * 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
498
- * 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:
499
- * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] projects/[project_id]/zones/[zone] us-central1-f
503
+ * 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
504
+ * 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]
505
+ * projects/[project_id]/zones/[zone] [zone]
500
506
  */
501
507
  zoneUri?: string;
502
508
  }
@@ -681,8 +687,8 @@ declare namespace gapi.client {
681
687
  diskConfig?: DiskConfig;
682
688
  /**
683
689
  * Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
684
- * 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
685
- * use the most recent image from the family: https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
690
+ * 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
691
+ * the most recent image from the family: https://www.googleapis.com/compute/v1/projects/[project_id]/global/images/family/[custom-image-family-name]
686
692
  * 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.
687
693
  */
688
694
  imageUri?: string;
@@ -694,10 +700,9 @@ declare namespace gapi.client {
694
700
  isPreemptible?: boolean;
695
701
  /**
696
702
  * Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
697
- * 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
698
- * n1-standard-2Auto Zone Exception: If you are using the Dataproc Auto Zone Placement
699
- * (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
700
- * example, n1-standard-2.
703
+ * 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
704
+ * 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,
705
+ * you must use the short name of the machine type resource, for example, n1-standard-2.
701
706
  */
702
707
  machineTypeUri?: string;
703
708
  /** Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups. */
@@ -737,6 +742,12 @@ declare namespace gapi.client {
737
742
  */
738
743
  version?: number;
739
744
  }
745
+ interface Interval {
746
+ /** Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end. */
747
+ endTime?: string;
748
+ /** Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start. */
749
+ startTime?: string;
750
+ }
740
751
  interface Job {
741
752
  /**
742
753
  * 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
@@ -1040,8 +1051,8 @@ declare namespace gapi.client {
1040
1051
  interface NodeGroupAffinity {
1041
1052
  /**
1042
1053
  * 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
1043
- * 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
1044
- * projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1 node-group-1
1054
+ * URI, or node group name are valid. Examples: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/nodeGroups/node-group-1
1055
+ * projects/[project_id]/zones/[zone]/nodeGroups/node-group-1 node-group-1
1045
1056
  */
1046
1057
  nodeGroupUri?: string;
1047
1058
  }
@@ -1274,7 +1285,7 @@ declare namespace gapi.client {
1274
1285
  /** Optional. Specifying the cluster_uuid means the RPC will fail (with error NOT_FOUND) if a cluster with the specified UUID does not exist. */
1275
1286
  clusterUuid?: string;
1276
1287
  /**
1277
- * Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning facilitates the removal of cluster nodes without interrupting jobs in progress. The timeout specifies
1288
+ * Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning facilitates the removal of cluster nodes without interrupting jobs in progress. The timeout specifies
1278
1289
  * the amount of time to wait for jobs finish before forcefully removing nodes. The default timeout is 0 for forceful decommissioning, and the maximum timeout period is 1 day. (see
1279
1290
  * JSON Mapping—Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).graceful_decommission_timeout is supported in Dataproc image versions 1.2+.
1280
1291
  */
@@ -3747,7 +3758,7 @@ declare namespace gapi.client {
3747
3758
  /** Selector specifying which fields to include in a partial response. */
3748
3759
  fields?: string;
3749
3760
  /**
3750
- * Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how
3761
+ * Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how
3751
3762
  * long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the
3752
3763
  * maximum allowed timeout is 1 day. (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only supported on Dataproc image
3753
3764
  * versions 1.2 and higher.
@@ -3803,7 +3814,7 @@ declare namespace gapi.client {
3803
3814
  /** Selector specifying which fields to include in a partial response. */
3804
3815
  fields?: string;
3805
3816
  /**
3806
- * Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how
3817
+ * Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how
3807
3818
  * long to wait for jobs in progress to finish before forcefully removing nodes (and potentially interrupting jobs). Default timeout is 0 (for forceful decommission), and the
3808
3819
  * maximum allowed timeout is 1 day. (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Only supported on Dataproc image
3809
3820
  * versions 1.2 and higher.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.dataproc-v1",
3
- "version": "0.0.20221207",
3
+ "version": "0.0.20230117",
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: 20221207
6
+ // Revision: 20230117
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -2654,6 +2654,12 @@ gapi.load('client', async () => {
2654
2654
  projectId: "Test string",
2655
2655
  region: "Test string",
2656
2656
  }, {
2657
+ diagnosisInterval: {
2658
+ endTime: "Test string",
2659
+ startTime: "Test string",
2660
+ },
2661
+ job: "Test string",
2662
+ yarnApplicationId: "Test string",
2657
2663
  });
2658
2664
  /** Gets the resource representation for a cluster in a project. */
2659
2665
  await gapi.client.dataproc.projects.regions.clusters.get({