Skip to content

Commit 1fc81ab

Browse files
yoshi-automationsofisl
authored andcommittedAug 15, 2023
feat(dataproc): update the API
#### dataproc:v1 The following keys were added: - resources.projects.resources.regions.resources.clusters.methods.delete.parameters.gracefulTerminationTimeout.description - resources.projects.resources.regions.resources.clusters.methods.delete.parameters.gracefulTerminationTimeout.format - resources.projects.resources.regions.resources.clusters.methods.delete.parameters.gracefulTerminationTimeout.location - resources.projects.resources.regions.resources.clusters.methods.delete.parameters.gracefulTerminationTimeout.type - schemas.InstanceGroupConfig.properties.minNumInstances.description - schemas.InstanceGroupConfig.properties.minNumInstances.format - schemas.InstanceGroupConfig.properties.minNumInstances.type The following keys were changed: - schemas.Operation.properties.response.description
1 parent 07737a9 commit 1fc81ab

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed
 

‎discovery/dataproc-v1.json

+13-2
Original file line numberDiff line numberDiff line change
@@ -1212,6 +1212,12 @@
12121212
"location": "query",
12131213
"type": "string"
12141214
},
1215+
"gracefulTerminationTimeout": {
1216+
"description": "Optional. The graceful termination timeout for the deletion of the cluster. Indicate the time the request will wait to complete the running jobs on the cluster before its forceful deletion. Default value is 0 indicating that the user has not enabled the graceful termination. Value can be between 60 second and 6 Hours, in case the graceful termination is enabled. (There is no separate flag to check the enabling or disabling of graceful termination, it can be checked by the values in the field).",
1217+
"format": "google-duration",
1218+
"location": "query",
1219+
"type": "string"
1220+
},
12151221
"projectId": {
12161222
"description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.",
12171223
"location": "path",
@@ -2671,7 +2677,7 @@
26712677
}
26722678
}
26732679
},
2674-
"revision": "20230726",
2680+
"revision": "20230804",
26752681
"rootUrl": "https://dataproc.googleapis.com/",
26762682
"schemas": {
26772683
"AcceleratorConfig": {
@@ -4115,6 +4121,11 @@
41154121
"description": "Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -> Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).",
41164122
"type": "string"
41174123
},
4124+
"minNumInstances": {
4125+
"description": "Optional. The minimum number of instances to create. If min_num_instances is set, min_num_instances is used for a criteria to decide the cluster. Cluster creation will be failed by being an error state if the total number of instances created is less than the min_num_instances. For example, given that num_instances = 5 and min_num_instances = 3, * if 4 instances are created and then registered successfully but one instance is failed, the failed VM will be deleted and the cluster will be resized to 4 instances in running state. * if 2 instances are created successfully and 3 instances are failed, the cluster will be in an error state and does not delete failed VMs for debugging. * if 2 instance are created and then registered successfully but 3 instances are failed to initialize, the cluster will be in an error state and does not delete failed VMs for debugging. NB: This can only be set for primary workers now.",
4126+
"format": "int32",
4127+
"type": "integer"
4128+
},
41184129
"numInstances": {
41194130
"description": "Optional. The number of VM instances in the instance group. For HA cluster master_config groups, must be set to 3. For standard cluster master_config groups, must be set to 1.",
41204131
"format": "int32",
@@ -5046,7 +5057,7 @@
50465057
"description": "Properties of the object. Contains field @type with type URL.",
50475058
"type": "any"
50485059
},
5049-
"description": "The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.",
5060+
"description": "The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.",
50505061
"type": "object"
50515062
}
50525063
},

‎src/apis/dataproc/v1.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,10 @@ export namespace dataproc_v1 {
11651165
* Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -\> Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
11661166
*/
11671167
minCpuPlatform?: string | null;
1168+
/**
1169+
* Optional. The minimum number of instances to create. If min_num_instances is set, min_num_instances is used for a criteria to decide the cluster. Cluster creation will be failed by being an error state if the total number of instances created is less than the min_num_instances. For example, given that num_instances = 5 and min_num_instances = 3, * if 4 instances are created and then registered successfully but one instance is failed, the failed VM will be deleted and the cluster will be resized to 4 instances in running state. * if 2 instances are created successfully and 3 instances are failed, the cluster will be in an error state and does not delete failed VMs for debugging. * if 2 instance are created and then registered successfully but 3 instances are failed to initialize, the cluster will be in an error state and does not delete failed VMs for debugging. NB: This can only be set for primary workers now.
1170+
*/
1171+
minNumInstances?: number | null;
11681172
/**
11691173
* Optional. The number of VM instances in the instance group. For HA cluster master_config groups, must be set to 3. For standard cluster master_config groups, must be set to 1.
11701174
*/
@@ -1789,7 +1793,7 @@ export namespace dataproc_v1 {
17891793
*/
17901794
name?: string | null;
17911795
/**
1792-
* The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
1796+
* The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
17931797
*/
17941798
response?: {[key: string]: any} | null;
17951799
}
@@ -7501,6 +7505,10 @@ export namespace dataproc_v1 {
75017505
* Optional. Specifying the cluster_uuid means the RPC should fail (with error NOT_FOUND) if cluster with specified UUID does not exist.
75027506
*/
75037507
clusterUuid?: string;
7508+
/**
7509+
* Optional. The graceful termination timeout for the deletion of the cluster. Indicate the time the request will wait to complete the running jobs on the cluster before its forceful deletion. Default value is 0 indicating that the user has not enabled the graceful termination. Value can be between 60 second and 6 Hours, in case the graceful termination is enabled. (There is no separate flag to check the enabling or disabling of graceful termination, it can be checked by the values in the field).
7510+
*/
7511+
gracefulTerminationTimeout?: string;
75047512
/**
75057513
* Required. The ID of the Google Cloud Platform project that the cluster belongs to.
75067514
*/

0 commit comments

Comments
 (0)
Please sign in to comment.