Skip to content

Commit 0f222f7

Browse files
feat(dataproc): update the api
#### dataproc:v1 The following keys were added: - resources.projects.resources.regions.resources.clusters.methods.create.parameters.actionOnFailedPrimaryWorkers (Total Keys: 2)
1 parent 5e06b9f commit 0f222f7

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

docs/dyn/dataproc_v1.projects.regions.clusters.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h2>Instance Methods</h2>
7878
<code><a href="#close">close()</a></code></p>
7979
<p class="firstline">Close httplib2 connections.</p>
8080
<p class="toc_element">
81-
<code><a href="#create">create(projectId, region, body=None, requestId=None, x__xgafv=None)</a></code></p>
81+
<code><a href="#create">create(projectId, region, actionOnFailedPrimaryWorkers=None, body=None, requestId=None, x__xgafv=None)</a></code></p>
8282
<p class="firstline">Creates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).</p>
8383
<p class="toc_element">
8484
<code><a href="#delete">delete(projectId, region, clusterName, clusterUuid=None, requestId=None, x__xgafv=None)</a></code></p>
@@ -126,7 +126,7 @@ <h3>Method Details</h3>
126126
</div>
127127

128128
<div class="method">
129-
<code class="details" id="create">create(projectId, region, body=None, requestId=None, x__xgafv=None)</code>
129+
<code class="details" id="create">create(projectId, region, actionOnFailedPrimaryWorkers=None, body=None, requestId=None, x__xgafv=None)</code>
130130
<pre>Creates a cluster in a project. The returned Operation.metadata will be ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
131131

132132
Args:
@@ -373,6 +373,11 @@ <h3>Method Details</h3>
373373
],
374374
}
375375

376+
actionOnFailedPrimaryWorkers: string, Optional. Failure action when primary worker creation fails.
377+
Allowed values
378+
FAILURE_ACTION_UNSPECIFIED - When FailureAction is unspecified, failure action defaults to NO_ACTION.
379+
NO_ACTION - Take no action on failure to create a cluster resource. NO_ACTION is the default.
380+
DELETE - Delete the failed cluster resource.
376381
requestId: string, Optional. A unique ID used to identify the request. If the server receives two CreateClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s with the same id, then the second request will be ignored and the first google.longrunning.Operation created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
377382
x__xgafv: string, V1 error format.
378383
Allowed values

googleapiclient/discovery_cache/documents/dataproc.v1.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,21 @@
888888
"region"
889889
],
890890
"parameters": {
891+
"actionOnFailedPrimaryWorkers": {
892+
"description": "Optional. Failure action when primary worker creation fails.",
893+
"enum": [
894+
"FAILURE_ACTION_UNSPECIFIED",
895+
"NO_ACTION",
896+
"DELETE"
897+
],
898+
"enumDescriptions": [
899+
"When FailureAction is unspecified, failure action defaults to NO_ACTION.",
900+
"Take no action on failure to create a cluster resource. NO_ACTION is the default.",
901+
"Delete the failed cluster resource."
902+
],
903+
"location": "query",
904+
"type": "string"
905+
},
891906
"projectId": {
892907
"description": "Required. The ID of the Google Cloud Platform project that the cluster belongs to.",
893908
"location": "path",
@@ -2301,7 +2316,7 @@
23012316
}
23022317
}
23032318
},
2304-
"revision": "20210812",
2319+
"revision": "20210819",
23052320
"rootUrl": "https://dataproc.googleapis.com/",
23062321
"schemas": {
23072322
"AcceleratorConfig": {

googleapiclient/discovery_cache/documents/dataproc.v1beta2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2291,7 +2291,7 @@
22912291
}
22922292
}
22932293
},
2294-
"revision": "20210812",
2294+
"revision": "20210819",
22952295
"rootUrl": "https://dataproc.googleapis.com/",
22962296
"schemas": {
22972297
"AcceleratorConfig": {

0 commit comments

Comments
 (0)