@maxim_mazurok/gapi.client.dataproc-v1 0.0.20230103 → 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 +31 -21
  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: 20230103
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. */
@@ -462,8 +467,8 @@ declare namespace gapi.client {
462
467
  /**
463
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
464
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
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
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
467
472
  */
468
473
  networkUri?: string;
469
474
  /** Optional. Node Group Affinity for sole-tenant clusters. */
@@ -489,15 +494,15 @@ declare namespace gapi.client {
489
494
  shieldedInstanceConfig?: ShieldedInstanceConfig;
490
495
  /**
491
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:
492
- * 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
493
498
  */
494
499
  subnetworkUri?: string;
495
500
  /** The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)). */
496
501
  tags?: string[];
497
502
  /**
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
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]
501
506
  */
502
507
  zoneUri?: string;
503
508
  }
@@ -682,8 +687,8 @@ declare namespace gapi.client {
682
687
  diskConfig?: DiskConfig;
683
688
  /**
684
689
  * 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]
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]
687
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.
688
693
  */
689
694
  imageUri?: string;
@@ -695,10 +700,9 @@ declare namespace gapi.client {
695
700
  isPreemptible?: boolean;
696
701
  /**
697
702
  * 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.
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.
702
706
  */
703
707
  machineTypeUri?: string;
704
708
  /** Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups. */
@@ -738,6 +742,12 @@ declare namespace gapi.client {
738
742
  */
739
743
  version?: number;
740
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
+ }
741
751
  interface Job {
742
752
  /**
743
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
@@ -1041,8 +1051,8 @@ declare namespace gapi.client {
1041
1051
  interface NodeGroupAffinity {
1042
1052
  /**
1043
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
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
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
1046
1056
  */
1047
1057
  nodeGroupUri?: string;
1048
1058
  }
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.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: 20230103
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({