Skip to content

Commit

Permalink
fix(dataproc): update the API
Browse files Browse the repository at this point in the history
#### dataproc:v1

The following keys were changed:
- resources.projects.resources.regions.resources.clusters.methods.patch.parameters.gracefulDecommissionTimeout.description
- schemas.ExecutionConfig.properties.idleTtl.description
- schemas.Metric.properties.metricSource.enum
- schemas.Metric.properties.metricSource.enumDescriptions
- schemas.RepairClusterRequest.properties.gracefulDecommissionTimeout.description
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 2, 2023
1 parent f984c3b commit 19c4726
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
14 changes: 8 additions & 6 deletions discovery/dataproc-v1.json
Expand Up @@ -1444,7 +1444,7 @@
"type": "string"
},
"gracefulDecommissionTimeout": {
"description": "Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how 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 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 versions 1.2 and higher.",
"description": "Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how 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 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 versions 1.2 and higher.",
"format": "google-duration",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -2661,7 +2661,7 @@
}
}
},
"revision": "20221207",
"revision": "20230103",
"rootUrl": "https://dataproc.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -3507,7 +3507,7 @@
"id": "ExecutionConfig",
"properties": {
"idleTtl": {
"description": "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 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4 hours if not set.",
"description": "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 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, 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.",
"format": "google-duration",
"type": "string"
},
Expand Down Expand Up @@ -4698,7 +4698,8 @@
"SPARK",
"YARN",
"SPARK_HISTORY_SERVER",
"HIVESERVER2"
"HIVESERVER2",
"HIVEMETASTORE"
],
"enumDescriptions": [
"Required unspecified metric source.",
Expand All @@ -4707,7 +4708,8 @@
"Spark metric source.",
"YARN metric source.",
"Spark History Server metric source.",
"Hiveserver2 metric source."
"Hiveserver2 metric source.",
"hivemetastore metric source"
],
"type": "string"
}
Expand Down Expand Up @@ -5271,7 +5273,7 @@
"type": "string"
},
"gracefulDecommissionTimeout": {
"description": "Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning facilitates the removal of cluster nodes without interrupting jobs in progress. The timeout specifies 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 JSON Mapping—Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).graceful_decommission_timeout is supported in Dataproc image versions 1.2+.",
"description": "Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning facilitates the removal of cluster nodes without interrupting jobs in progress. The timeout specifies 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 JSON Mapping—Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).graceful_decommission_timeout is supported in Dataproc image versions 1.2+.",
"format": "google-duration",
"type": "string"
},
Expand Down
8 changes: 4 additions & 4 deletions src/apis/dataproc/v1.ts
Expand Up @@ -720,7 +720,7 @@ export namespace dataproc_v1 {
*/
export interface Schema$ExecutionConfig {
/**
* 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 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4 hours if not set.
* 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 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, 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.
*/
idleTtl?: string | null;
/**
Expand Down Expand Up @@ -1969,7 +1969,7 @@ export namespace dataproc_v1 {
*/
clusterUuid?: string | null;
/**
* Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning facilitates the removal of cluster nodes without interrupting jobs in progress. The timeout specifies 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 JSON Mapping—Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).graceful_decommission_timeout is supported in Dataproc image versions 1.2+.
* Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning facilitates the removal of cluster nodes without interrupting jobs in progress. The timeout specifies 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 JSON Mapping—Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).graceful_decommission_timeout is supported in Dataproc image versions 1.2+.
*/
gracefulDecommissionTimeout?: string | null;
/**
Expand Down Expand Up @@ -9038,7 +9038,7 @@ export namespace dataproc_v1 {
* const res = await dataproc.projects.regions.clusters.patch({
* // Required. The cluster name.
* clusterName: 'placeholder-value',
* // Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how 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 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 versions 1.2 and higher.
* // Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how 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 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 versions 1.2 and higher.
* gracefulDecommissionTimeout: 'placeholder-value',
* // Required. The ID of the Google Cloud Platform project the cluster belongs to.
* projectId: 'placeholder-value',
Expand Down Expand Up @@ -10038,7 +10038,7 @@ export namespace dataproc_v1 {
*/
clusterName?: string;
/**
* Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how 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 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 versions 1.2 and higher.
* Optional. Timeout for graceful YARN decommissioning. Graceful decommissioning allows removing nodes from the cluster without interrupting jobs in progress. Timeout specifies how 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 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 versions 1.2 and higher.
*/
gracefulDecommissionTimeout?: string;
/**
Expand Down

0 comments on commit 19c4726

Please sign in to comment.