Skip to content

Commit 0ce260e

Browse files
yoshi-automationsofisl
authored andcommitted
feat(dataproc): update the API
#### dataproc:v1 The following keys were added: - schemas.Session.properties.sparkConnectSession.$ref - schemas.Session.properties.sparkConnectSession.description - schemas.SessionTemplate.properties.sparkConnectSession.$ref - schemas.SessionTemplate.properties.sparkConnectSession.description - schemas.SparkConnectConfig.description - schemas.SparkConnectConfig.id - schemas.SparkConnectConfig.type The following keys were changed: - endpoints - schemas.SoftwareConfig.properties.imageVersion.description - schemas.SoftwareConfig.properties.optionalComponents.items.enumDescriptions
1 parent 65db039 commit 0ce260e

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

‎discovery/dataproc-v1.json

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
"endpointUrl": "https://dataproc.europe-west9.rep.googleapis.com/",
2727
"location": "europe-west9"
2828
},
29+
{
30+
"description": "Regional Endpoint",
31+
"endpointUrl": "https://dataproc.us-central1.rep.googleapis.com/",
32+
"location": "us-central1"
33+
},
2934
{
3035
"description": "Regional Endpoint",
3136
"endpointUrl": "https://dataproc.me-central2.rep.googleapis.com/",
@@ -3072,7 +3077,7 @@
30723077
}
30733078
}
30743079
},
3075-
"revision": "20240617",
3080+
"revision": "20240821",
30763081
"rootUrl": "https://dataproc.googleapis.com/",
30773082
"schemas": {
30783083
"AcceleratorConfig": {
@@ -6375,6 +6380,10 @@
63756380
"description": "Optional. The session template used by the session.Only resource names, including project ID and location, are valid.Example: * https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id] * projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id]The template must be in the same project and Dataproc region as the session.",
63766381
"type": "string"
63776382
},
6383+
"sparkConnectSession": {
6384+
"$ref": "SparkConnectConfig",
6385+
"description": "Optional. Spark connect session config."
6386+
},
63786387
"state": {
63796388
"description": "Output only. A state of the session.",
63806389
"enum": [
@@ -6567,6 +6576,10 @@
65676576
"$ref": "RuntimeConfig",
65686577
"description": "Optional. Runtime configuration for session execution."
65696578
},
6579+
"sparkConnectSession": {
6580+
"$ref": "SparkConnectConfig",
6581+
"description": "Optional. Spark connect session config."
6582+
},
65706583
"updateTime": {
65716584
"description": "Output only. The time the template was last updated.",
65726585
"format": "google-datetime",
@@ -6616,7 +6629,7 @@
66166629
"id": "SoftwareConfig",
66176630
"properties": {
66186631
"imageVersion": {
6619-
"description": "Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions), such as \"1.2\" (including a subminor version, such as \"1.2.29\"), or the \"preview\" version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.",
6632+
"description": "Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported-dataproc-image-versions), such as \"1.2\" (including a subminor version, such as \"1.2.29\"), or the \"preview\" version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.",
66206633
"type": "string"
66216634
},
66226635
"optionalComponents": {
@@ -6641,7 +6654,7 @@
66416654
],
66426655
"enumDescriptions": [
66436656
"Unspecified component. Specifying this will cause Cluster creation to fail.",
6644-
"The Anaconda python distribution. The Anaconda component is not supported in the Dataproc 2.0 image. The 2.0 image is pre-installed with Miniconda.",
6657+
"The Anaconda component is no longer supported or applicable to supported Dataproc on Compute Engine image versions (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-version-clusters#supported-dataproc-image-versions). It cannot be activated on clusters created with supported Dataproc on Compute Engine image versions.",
66456658
"Docker",
66466659
"The Druid query engine. (alpha)",
66476660
"Flink",
@@ -6713,6 +6726,12 @@
67136726
},
67146727
"type": "object"
67156728
},
6729+
"SparkConnectConfig": {
6730+
"description": "Spark connect configuration for an interactive session.",
6731+
"id": "SparkConnectConfig",
6732+
"properties": {},
6733+
"type": "object"
6734+
},
67166735
"SparkHistoryServerConfig": {
67176736
"description": "Spark History Server configuration for the workload.",
67186737
"id": "SparkHistoryServerConfig",

‎src/apis/dataproc/v1.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2435,6 +2435,10 @@ export namespace dataproc_v1 {
24352435
* Optional. The session template used by the session.Only resource names, including project ID and location, are valid.Example: * https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id] * projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id]The template must be in the same project and Dataproc region as the session.
24362436
*/
24372437
sessionTemplate?: string | null;
2438+
/**
2439+
* Optional. Spark connect session config.
2440+
*/
2441+
sparkConnectSession?: Schema$SparkConnectConfig;
24382442
/**
24392443
* Output only. A state of the session.
24402444
*/
@@ -2550,6 +2554,10 @@ export namespace dataproc_v1 {
25502554
* Optional. Runtime configuration for session execution.
25512555
*/
25522556
runtimeConfig?: Schema$RuntimeConfig;
2557+
/**
2558+
* Optional. Spark connect session config.
2559+
*/
2560+
sparkConnectSession?: Schema$SparkConnectConfig;
25532561
/**
25542562
* Output only. The time the template was last updated.
25552563
*/
@@ -2590,7 +2598,7 @@ export namespace dataproc_v1 {
25902598
*/
25912599
export interface Schema$SoftwareConfig {
25922600
/**
2593-
* Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions), such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
2601+
* Optional. The version of software inside the cluster. It must be one of the supported Dataproc Versions (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported-dataproc-image-versions), such as "1.2" (including a subminor version, such as "1.2.29"), or the "preview" version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
25942602
*/
25952603
imageVersion?: string | null;
25962604
/**
@@ -2631,6 +2639,10 @@ export namespace dataproc_v1 {
26312639
*/
26322640
mainJarFileUri?: string | null;
26332641
}
2642+
/**
2643+
* Spark connect configuration for an interactive session.
2644+
*/
2645+
export interface Schema$SparkConnectConfig {}
26342646
/**
26352647
* Spark History Server configuration for the workload.
26362648
*/

0 commit comments

Comments
 (0)