blob: 85c2a1174a098a6f4803ca12b8d11fd81f5a12dd [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dataproc_v1.html">Cloud Dataproc API</a> . <a href="dataproc_v1.projects.html">projects</a> . <a href="dataproc_v1.projects.regions.html">regions</a> . <a href="dataproc_v1.projects.regions.workflowTemplates.html">workflowTemplates</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates new workflow template.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, version=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes a workflow template. It does not cancel in-progress workflows.</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, version=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Retrieves the latest workflow template.Can retrieve previously instantiated template by specifying optional version parameter.</p>
86<p class="toc_element">
87 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#instantiate">instantiate(name, body=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Instantiates a template and begins execution.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#instantiateInline">instantiateInline(parent, body=None, requestId=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Instantiates a template and begins execution.This method is equivalent to executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070096 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Lists workflows that match the specified filter in the request.</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700103<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.</p>
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#update">update(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<p class="firstline">Updates (replaces) workflow template. The updated template must contain version that matches the current server version.</p>
110<h3>Method Details</h3>
111<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113 <pre>Creates new workflow template.
114
115Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700116 parent: string, Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.
117For projects.regions.workflowTemplates,create, the resource name of the region has the following format: projects/{project_id}/regions/{region}
118For projects.locations.workflowTemplates.create, the resource name of the location has the following format: projects/{project_id}/locations/{location} (required)
119 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700120 The object takes the form of:
121
Dan O'Mearadd494642020-05-01 07:42:23 -0700122{ # A Dataproc workflow template resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700123 &quot;id&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700124 &quot;version&quot;: 42, # Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;jobs&quot;: [ # Required. The Directed Acyclic Graph of Jobs to submit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126 { # A job executed by the workflow.
Bu Sun Kim65020912020-05-20 12:08:20 -0700127 &quot;prestoJob&quot;: { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
128 &quot;outputFormat&quot;: &quot;A String&quot;, # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
129 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700130 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700131 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
132 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
133 # &quot;hiveJob&quot;: {
134 # &quot;queryList&quot;: {
135 # &quot;queries&quot;: [
136 # &quot;query1&quot;,
137 # &quot;query2&quot;,
138 # &quot;query3;query4&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700139 # ]
140 # }
141 # }
Bu Sun Kim65020912020-05-20 12:08:20 -0700142 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700143 ],
144 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700145 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
146 &quot;A String&quot;,
147 ],
148 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
149 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
150 &quot;a_key&quot;: &quot;A String&quot;,
151 },
152 },
153 &quot;properties&quot;: { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
154 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700155 },
156 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
158 &quot;maxFailuresPerHour&quot;: 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10.
159 },
160 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700161 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
162 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
163 &quot;a_key&quot;: &quot;A String&quot;,
164 },
165 },
166 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.
167 &quot;a_key&quot;: &quot;A String&quot;,
168 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700169 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
170 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
171 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
172 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
173 # &quot;hiveJob&quot;: {
174 # &quot;queryList&quot;: {
175 # &quot;queries&quot;: [
176 # &quot;query1&quot;,
177 # &quot;query2&quot;,
178 # &quot;query3;query4&quot;,
179 # ]
180 # }
181 # }
182 &quot;A String&quot;,
183 ],
184 },
185 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
186 &quot;A String&quot;,
187 ],
188 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
189 &quot;a_key&quot;: &quot;A String&quot;,
190 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 },
192 &quot;stepId&quot;: &quot;A String&quot;, # Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.
193 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
194 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
196 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
197 # &quot;hiveJob&quot;: {
198 # &quot;queryList&quot;: {
199 # &quot;queries&quot;: [
200 # &quot;query1&quot;,
201 # &quot;query2&quot;,
202 # &quot;query3;query4&quot;,
203 # ]
204 # }
205 # }
206 &quot;A String&quot;,
207 ],
208 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700209 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700210 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
211 &quot;A String&quot;,
212 ],
213 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
214 &quot;a_key&quot;: &quot;A String&quot;,
215 },
216 &quot;properties&quot;: { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.
217 &quot;a_key&quot;: &quot;A String&quot;,
218 },
219 },
220 &quot;prerequisiteStepIds&quot;: [ # Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow.
221 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700222 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700223 &quot;labels&quot;: { # Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job.
224 &quot;a_key&quot;: &quot;A String&quot;,
225 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700226 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700227 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
228 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
229 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
230 # &quot;hiveJob&quot;: {
231 # &quot;queryList&quot;: {
232 # &quot;queries&quot;: [
233 # &quot;query1&quot;,
234 # &quot;query2&quot;,
235 # &quot;query3;query4&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700236 # ]
237 # }
238 # }
Bu Sun Kim65020912020-05-20 12:08:20 -0700239 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700240 ],
241 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700242 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
243 &quot;a_key&quot;: &quot;A String&quot;,
244 },
245 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
246 &quot;A String&quot;,
247 ],
248 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
249 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
250 &quot;a_key&quot;: &quot;A String&quot;,
251 },
252 },
253 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Spark SQL&#x27;s SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
254 &quot;a_key&quot;: &quot;A String&quot;,
255 },
256 },
257 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
258 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
259 &quot;A String&quot;,
260 ],
261 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
262 &quot;A String&quot;,
263 ],
264 &quot;mainClass&quot;: &quot;A String&quot;, # The name of the driver&#x27;s main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.
265 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
266 &quot;A String&quot;,
267 ],
268 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
269 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
270 &quot;A String&quot;,
271 ],
272 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
273 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
274 &quot;a_key&quot;: &quot;A String&quot;,
275 },
276 },
277 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
278 &quot;a_key&quot;: &quot;A String&quot;,
279 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700280 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700281 &quot;pysparkJob&quot;: { # A Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Optional. Job is a PySpark job.
282 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
283 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700284 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700285 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
286 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
287 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700288 },
289 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700290 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
291 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700292 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700293 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
294 &quot;A String&quot;,
295 ],
296 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks.
297 &quot;A String&quot;,
298 ],
299 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
300 &quot;A String&quot;,
301 ],
302 &quot;mainPythonFileUri&quot;: &quot;A String&quot;, # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file.
303 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
304 &quot;A String&quot;,
305 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700306 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 &quot;sparkRJob&quot;: { # A Dataproc job for running Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN. # Optional. Job is a SparkR job.
308 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
309 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
310 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700311 },
312 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700313 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure SparkR. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
314 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700315 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700316 &quot;mainRFileUri&quot;: &quot;A String&quot;, # Required. The HCFS URI of the main R file to use as the driver. Must be a .R file.
317 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
318 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700319 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700320 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of R drivers and distributed tasks. Useful for naively parallel tasks.
321 &quot;A String&quot;,
322 ],
323 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
324 &quot;A String&quot;,
325 ],
326 },
327 &quot;hadoopJob&quot;: { # A Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). # Optional. Job is a Hadoop job.
328 &quot;mainClass&quot;: &quot;A String&quot;, # The name of the driver&#x27;s main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris.
329 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
330 &quot;A String&quot;,
331 ],
332 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file containing the main class. Examples: &#x27;gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar&#x27; &#x27;hdfs:/tmp/test-samples/custom-wordcount.jar&#x27; &#x27;file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar&#x27;
333 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
334 &quot;A String&quot;,
335 ],
336 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
337 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
338 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700339 },
340 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700341 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
342 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700343 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700344 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
345 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700346 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700347 &quot;fileUris&quot;: [ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
348 &quot;A String&quot;,
349 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700350 },
351 },
352 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700353 &quot;labels&quot;: { # Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be associated with a template.
354 &quot;a_key&quot;: &quot;A String&quot;,
355 },
356 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time template was created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700357 &quot;placement&quot;: { # Specifies workflow execution target.Either managed_cluster or cluster_selector is required. # Required. WorkflowTemplate scheduling information.
358 &quot;clusterSelector&quot;: { # A selector that chooses target cluster for jobs based on metadata. # Optional. A selector that chooses target cluster for jobs based on metadata.The selector is evaluated at the time each job is submitted.
359 &quot;zone&quot;: &quot;A String&quot;, # Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used.
360 &quot;clusterLabels&quot;: { # Required. The cluster labels. Cluster must have all labels to match.
361 &quot;a_key&quot;: &quot;A String&quot;,
362 },
363 },
364 &quot;managedCluster&quot;: { # Cluster that is managed by the workflow. # A cluster that is managed by the workflow.
365 &quot;labels&quot;: { # Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster.
366 &quot;a_key&quot;: &quot;A String&quot;,
367 },
368 &quot;config&quot;: { # The cluster config. # Required. The cluster configuration.
369 &quot;encryptionConfig&quot;: { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster.
370 &quot;gcePdKmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster.
371 },
372 &quot;securityConfig&quot;: { # Security related configuration, including Kerberos. # Optional. Security settings for the cluster.
373 &quot;kerberosConfig&quot;: { # Specifies Kerberos related configuration. # Kerberos related configuration.
374 &quot;keyPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc.
375 &quot;keystorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc.
376 &quot;crossRealmTrustAdminServer&quot;: &quot;A String&quot;, # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
377 &quot;kdcDbKeyUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database.
378 &quot;truststorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc.
379 &quot;realm&quot;: &quot;A String&quot;, # Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm.
380 &quot;enableKerberos&quot;: True or False, # Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster.
381 &quot;truststoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
382 &quot;crossRealmTrustRealm&quot;: &quot;A String&quot;, # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust.
383 &quot;rootPrincipalPasswordUri&quot;: &quot;A String&quot;, # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password.
384 &quot;kmsKeyUri&quot;: &quot;A String&quot;, # Required. The uri of the KMS key used to encrypt various sensitive files.
385 &quot;crossRealmTrustKdc&quot;: &quot;A String&quot;, # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
386 &quot;crossRealmTrustSharedPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship.
387 &quot;tgtLifetimeHours&quot;: 42, # Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used.
388 &quot;keystoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
389 },
390 },
391 &quot;initializationActions&quot;: [ # Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node&#x27;s role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget):
392 # ROLE=$(curl -H Metadata-Flavor:Google
393 # http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
394 # if [[ &quot;${ROLE}&quot; == &#x27;Master&#x27; ]]; then
395 # ... master specific actions ...
396 # else
397 # ... worker specific actions ...
398 # fi
399 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
400 &quot;executableFile&quot;: &quot;A String&quot;, # Required. Cloud Storage URI of executable file.
401 &quot;executionTimeout&quot;: &quot;A String&quot;, # Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.
402 },
403 ],
404 &quot;lifecycleConfig&quot;: { # Specifies the cluster auto-delete schedule configuration. # Optional. Lifecycle setting for the cluster.
405 &quot;autoDeleteTtl&quot;: &quot;A String&quot;, # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).
406 &quot;idleStartTime&quot;: &quot;A String&quot;, # Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
407 &quot;autoDeleteTime&quot;: &quot;A String&quot;, # Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
408 &quot;idleDeleteTtl&quot;: &quot;A String&quot;, # Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).
409 },
410 &quot;configBucket&quot;: &quot;A String&quot;, # Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster&#x27;s staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging bucket (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
411 &quot;workerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for worker instances in a cluster.
412 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
413 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
414 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
415 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
416 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
417 },
418 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
419 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
420 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
421 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
422 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
423 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
424 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
425 # projects/[project_id]/global/images/[image-id]
426 # image-idImage family examples. Dataproc will use the most recent image from the family:
427 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
428 # 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.
429 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
430 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
431 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
432 },
433 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
434 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
435 &quot;A String&quot;,
436 ],
437 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
438 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
439 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
440 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
441 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
442 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
443 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
444 },
445 ],
446 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
447 },
448 &quot;gceClusterConfig&quot;: { # Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster. # Optional. The shared Compute Engine config settings for all instances in a cluster.
449 &quot;subnetworkUri&quot;: &quot;A String&quot;, # 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:
450 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0
451 # projects/[project_id]/regions/us-east1/subnetworks/sub0
452 # sub0
453 &quot;networkUri&quot;: &quot;A String&quot;, # 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 &quot;default&quot; network of the project is used, if it exists. Cannot be a &quot;Custom Subnet Network&quot; (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more information).A full URL, partial URI, or short name are valid. Examples:
454 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default
455 # projects/[project_id]/regions/global/default
456 # default
457 &quot;zoneUri&quot;: &quot;A String&quot;, # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the &quot;global&quot; region. If omitted in a non-global Dataproc region, the 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:
458 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
459 # projects/[project_id]/zones/[zone]
460 # us-central1-f
461 &quot;metadata&quot;: { # The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
462 &quot;a_key&quot;: &quot;A String&quot;,
463 },
464 &quot;internalIpOnly&quot;: True or False, # Optional. If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
465 &quot;reservationAffinity&quot;: { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation.
466 &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of reservation resource.
467 &quot;values&quot;: [ # Optional. Corresponds to the label values of reservation resource.
468 &quot;A String&quot;,
469 ],
470 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Optional. Type of reservation to consume
471 },
472 &quot;serviceAccountScopes&quot;: [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included:
473 # https://www.googleapis.com/auth/cloud.useraccounts.readonly
474 # https://www.googleapis.com/auth/devstorage.read_write
475 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:
476 # https://www.googleapis.com/auth/bigquery
477 # https://www.googleapis.com/auth/bigtable.admin.table
478 # https://www.googleapis.com/auth/bigtable.data
479 # https://www.googleapis.com/auth/devstorage.full_control
480 &quot;A String&quot;,
481 ],
482 &quot;tags&quot;: [ # The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
483 &quot;A String&quot;,
484 ],
485 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
486 },
487 &quot;softwareConfig&quot;: { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster.
488 &quot;optionalComponents&quot;: [ # Optional. The set of components to activate on the cluster.
489 &quot;A String&quot;,
490 ],
491 &quot;imageVersion&quot;: &quot;A String&quot;, # 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_cloud_dataproc_versions), such as &quot;1.2&quot; (including a subminor version, such as &quot;1.2.29&quot;), or the &quot;preview&quot; version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
492 &quot;properties&quot;: { # Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings:
493 # capacity-scheduler: capacity-scheduler.xml
494 # core: core-site.xml
495 # distcp: distcp-default.xml
496 # hdfs: hdfs-site.xml
497 # hive: hive-site.xml
498 # mapred: mapred-site.xml
499 # pig: pig.properties
500 # spark: spark-defaults.conf
501 # yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
502 &quot;a_key&quot;: &quot;A String&quot;,
503 },
504 },
505 &quot;autoscalingConfig&quot;: { # Autoscaling Policy config associated with the cluster. # Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
506 &quot;policyUri&quot;: &quot;A String&quot;, # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples:
507 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]
508 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Dataproc region.
509 },
510 &quot;masterConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for the master instance in a cluster.
511 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
512 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
513 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
514 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
515 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
516 },
517 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
518 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
519 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
520 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
521 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
522 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
523 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
524 # projects/[project_id]/global/images/[image-id]
525 # image-idImage family examples. Dataproc will use the most recent image from the family:
526 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
527 # 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.
528 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
529 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
530 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
531 },
532 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
533 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
534 &quot;A String&quot;,
535 ],
536 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
537 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
538 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
539 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
540 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
541 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
542 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
543 },
544 ],
545 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
546 },
547 &quot;secondaryWorkerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for additional worker instances in a cluster.
548 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
549 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
550 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
551 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
552 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
553 },
554 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
555 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
556 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
557 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
558 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
559 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
560 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
561 # projects/[project_id]/global/images/[image-id]
562 # image-idImage family examples. Dataproc will use the most recent image from the family:
563 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
564 # 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.
565 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
566 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
567 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
568 },
569 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
570 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
571 &quot;A String&quot;,
572 ],
573 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
574 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
575 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
576 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
577 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
578 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
579 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
580 },
581 ],
582 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
583 },
584 },
585 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters.
586 },
587 },
588 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time template was last updated.
589 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.
590 # For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}
591 # For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}
592 &quot;parameters&quot;: [ # Optional. emplate parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.
593 { # A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector)
594 &quot;validation&quot;: { # Configuration for parameter validation. # Optional. Validation rules to be applied to this parameter&#x27;s value.
595 &quot;values&quot;: { # Validation based on a list of allowed values. # Validation based on a list of allowed values.
596 &quot;values&quot;: [ # Required. List of allowed values for the parameter.
597 &quot;A String&quot;,
598 ],
599 },
600 &quot;regex&quot;: { # Validation based on regular expressions. # Validation based on regular expressions.
601 &quot;regexes&quot;: [ # Required. RE2 regular expressions used to validate the parameter&#x27;s value. The value must match the regex in its entirety (substring matches are not sufficient).
602 &quot;A String&quot;,
603 ],
604 },
605 },
606 &quot;fields&quot;: [ # Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter&#x27;s list of field paths.A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template&#x27;s cluster selector would be specified as placement.clusterSelector.zone.Also, field paths can reference fields using the following syntax:
607 # Values in maps can be referenced by key:
608 # labels&#x27;key&#x27;
609 # placement.clusterSelector.clusterLabels&#x27;key&#x27;
610 # placement.managedCluster.labels&#x27;key&#x27;
611 # placement.clusterSelector.clusterLabels&#x27;key&#x27;
612 # jobs&#x27;step-id&#x27;.labels&#x27;key&#x27;
613 # Jobs in the jobs list can be referenced by step-id:
614 # jobs&#x27;step-id&#x27;.hadoopJob.mainJarFileUri
615 # jobs&#x27;step-id&#x27;.hiveJob.queryFileUri
616 # jobs&#x27;step-id&#x27;.pySparkJob.mainPythonFileUri
617 # jobs&#x27;step-id&#x27;.hadoopJob.jarFileUris0
618 # jobs&#x27;step-id&#x27;.hadoopJob.archiveUris0
619 # jobs&#x27;step-id&#x27;.hadoopJob.fileUris0
620 # jobs&#x27;step-id&#x27;.pySparkJob.pythonFileUris0
621 # Items in repeated fields can be referenced by a zero-based index:
622 # jobs&#x27;step-id&#x27;.sparkJob.args0
623 # Other examples:
624 # jobs&#x27;step-id&#x27;.hadoopJob.properties&#x27;key&#x27;
625 # jobs&#x27;step-id&#x27;.hadoopJob.args0
626 # jobs&#x27;step-id&#x27;.hiveJob.scriptVariables&#x27;key&#x27;
627 # jobs&#x27;step-id&#x27;.hadoopJob.mainJarFileUri
628 # placement.clusterSelector.zoneIt may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid:
629 # placement.clusterSelector.clusterLabels
630 # jobs&#x27;step-id&#x27;.sparkJob.args
631 &quot;A String&quot;,
632 ],
633 &quot;name&quot;: &quot;A String&quot;, # Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters.
634 &quot;description&quot;: &quot;A String&quot;, # Optional. Brief description of the parameter. Must not exceed 1024 characters.
635 },
636 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700637}
638
639 x__xgafv: string, V1 error format.
640 Allowed values
641 1 - v1 error format
642 2 - v2 error format
643
644Returns:
645 An object of the form:
646
Dan O'Mearadd494642020-05-01 07:42:23 -0700647 { # A Dataproc workflow template resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700648 &quot;id&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700649 &quot;version&quot;: 42, # Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700650 &quot;jobs&quot;: [ # Required. The Directed Acyclic Graph of Jobs to submit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700651 { # A job executed by the workflow.
Bu Sun Kim65020912020-05-20 12:08:20 -0700652 &quot;prestoJob&quot;: { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
653 &quot;outputFormat&quot;: &quot;A String&quot;, # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
654 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700655 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700656 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
657 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
658 # &quot;hiveJob&quot;: {
659 # &quot;queryList&quot;: {
660 # &quot;queries&quot;: [
661 # &quot;query1&quot;,
662 # &quot;query2&quot;,
663 # &quot;query3;query4&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700664 # ]
665 # }
666 # }
Bu Sun Kim65020912020-05-20 12:08:20 -0700667 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700668 ],
669 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700670 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
671 &quot;A String&quot;,
672 ],
673 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
674 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
675 &quot;a_key&quot;: &quot;A String&quot;,
676 },
677 },
678 &quot;properties&quot;: { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
679 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700680 },
681 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700682 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
683 &quot;maxFailuresPerHour&quot;: 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10.
684 },
685 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700686 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
687 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
688 &quot;a_key&quot;: &quot;A String&quot;,
689 },
690 },
691 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.
692 &quot;a_key&quot;: &quot;A String&quot;,
693 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700694 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
695 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
696 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
697 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
698 # &quot;hiveJob&quot;: {
699 # &quot;queryList&quot;: {
700 # &quot;queries&quot;: [
701 # &quot;query1&quot;,
702 # &quot;query2&quot;,
703 # &quot;query3;query4&quot;,
704 # ]
705 # }
706 # }
707 &quot;A String&quot;,
708 ],
709 },
710 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
711 &quot;A String&quot;,
712 ],
713 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
714 &quot;a_key&quot;: &quot;A String&quot;,
715 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700716 },
717 &quot;stepId&quot;: &quot;A String&quot;, # Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.
718 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
719 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700720 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
721 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
722 # &quot;hiveJob&quot;: {
723 # &quot;queryList&quot;: {
724 # &quot;queries&quot;: [
725 # &quot;query1&quot;,
726 # &quot;query2&quot;,
727 # &quot;query3;query4&quot;,
728 # ]
729 # }
730 # }
731 &quot;A String&quot;,
732 ],
733 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700734 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700735 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
736 &quot;A String&quot;,
737 ],
738 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
739 &quot;a_key&quot;: &quot;A String&quot;,
740 },
741 &quot;properties&quot;: { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.
742 &quot;a_key&quot;: &quot;A String&quot;,
743 },
744 },
745 &quot;prerequisiteStepIds&quot;: [ # Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow.
746 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700747 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700748 &quot;labels&quot;: { # Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job.
749 &quot;a_key&quot;: &quot;A String&quot;,
750 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700751 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
Bu Sun Kim65020912020-05-20 12:08:20 -0700752 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
753 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
754 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
755 # &quot;hiveJob&quot;: {
756 # &quot;queryList&quot;: {
757 # &quot;queries&quot;: [
758 # &quot;query1&quot;,
759 # &quot;query2&quot;,
760 # &quot;query3;query4&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700761 # ]
762 # }
763 # }
Bu Sun Kim65020912020-05-20 12:08:20 -0700764 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700765 ],
766 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700767 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
768 &quot;a_key&quot;: &quot;A String&quot;,
769 },
770 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
771 &quot;A String&quot;,
772 ],
773 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
774 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
775 &quot;a_key&quot;: &quot;A String&quot;,
776 },
777 },
778 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Spark SQL&#x27;s SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
779 &quot;a_key&quot;: &quot;A String&quot;,
780 },
781 },
782 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
783 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
784 &quot;A String&quot;,
785 ],
786 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
787 &quot;A String&quot;,
788 ],
789 &quot;mainClass&quot;: &quot;A String&quot;, # The name of the driver&#x27;s main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.
790 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
791 &quot;A String&quot;,
792 ],
793 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
794 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
795 &quot;A String&quot;,
796 ],
797 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
798 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
799 &quot;a_key&quot;: &quot;A String&quot;,
800 },
801 },
802 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
803 &quot;a_key&quot;: &quot;A String&quot;,
804 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700805 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700806 &quot;pysparkJob&quot;: { # A Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Optional. Job is a PySpark job.
807 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
808 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700809 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700810 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
811 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
812 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700813 },
814 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700815 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
816 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700817 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700818 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
819 &quot;A String&quot;,
820 ],
821 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks.
822 &quot;A String&quot;,
823 ],
824 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
825 &quot;A String&quot;,
826 ],
827 &quot;mainPythonFileUri&quot;: &quot;A String&quot;, # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file.
828 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
829 &quot;A String&quot;,
830 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700831 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700832 &quot;sparkRJob&quot;: { # A Dataproc job for running Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN. # Optional. Job is a SparkR job.
833 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
834 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
835 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700836 },
837 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700838 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure SparkR. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
839 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700840 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700841 &quot;mainRFileUri&quot;: &quot;A String&quot;, # Required. The HCFS URI of the main R file to use as the driver. Must be a .R file.
842 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
843 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700844 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700845 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of R drivers and distributed tasks. Useful for naively parallel tasks.
846 &quot;A String&quot;,
847 ],
848 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
849 &quot;A String&quot;,
850 ],
851 },
852 &quot;hadoopJob&quot;: { # A Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). # Optional. Job is a Hadoop job.
853 &quot;mainClass&quot;: &quot;A String&quot;, # The name of the driver&#x27;s main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris.
854 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
855 &quot;A String&quot;,
856 ],
857 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file containing the main class. Examples: &#x27;gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar&#x27; &#x27;hdfs:/tmp/test-samples/custom-wordcount.jar&#x27; &#x27;file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar&#x27;
858 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
859 &quot;A String&quot;,
860 ],
861 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
862 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
863 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700864 },
865 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700866 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
867 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700868 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700869 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
870 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700871 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700872 &quot;fileUris&quot;: [ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
873 &quot;A String&quot;,
874 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700875 },
876 },
877 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700878 &quot;labels&quot;: { # Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be associated with a template.
879 &quot;a_key&quot;: &quot;A String&quot;,
880 },
881 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time template was created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700882 &quot;placement&quot;: { # Specifies workflow execution target.Either managed_cluster or cluster_selector is required. # Required. WorkflowTemplate scheduling information.
883 &quot;clusterSelector&quot;: { # A selector that chooses target cluster for jobs based on metadata. # Optional. A selector that chooses target cluster for jobs based on metadata.The selector is evaluated at the time each job is submitted.
884 &quot;zone&quot;: &quot;A String&quot;, # Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used.
885 &quot;clusterLabels&quot;: { # Required. The cluster labels. Cluster must have all labels to match.
886 &quot;a_key&quot;: &quot;A String&quot;,
887 },
888 },
889 &quot;managedCluster&quot;: { # Cluster that is managed by the workflow. # A cluster that is managed by the workflow.
890 &quot;labels&quot;: { # Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster.
891 &quot;a_key&quot;: &quot;A String&quot;,
892 },
893 &quot;config&quot;: { # The cluster config. # Required. The cluster configuration.
894 &quot;encryptionConfig&quot;: { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster.
895 &quot;gcePdKmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster.
896 },
897 &quot;securityConfig&quot;: { # Security related configuration, including Kerberos. # Optional. Security settings for the cluster.
898 &quot;kerberosConfig&quot;: { # Specifies Kerberos related configuration. # Kerberos related configuration.
899 &quot;keyPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc.
900 &quot;keystorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc.
901 &quot;crossRealmTrustAdminServer&quot;: &quot;A String&quot;, # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
902 &quot;kdcDbKeyUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database.
903 &quot;truststorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc.
904 &quot;realm&quot;: &quot;A String&quot;, # Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm.
905 &quot;enableKerberos&quot;: True or False, # Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster.
906 &quot;truststoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
907 &quot;crossRealmTrustRealm&quot;: &quot;A String&quot;, # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust.
908 &quot;rootPrincipalPasswordUri&quot;: &quot;A String&quot;, # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password.
909 &quot;kmsKeyUri&quot;: &quot;A String&quot;, # Required. The uri of the KMS key used to encrypt various sensitive files.
910 &quot;crossRealmTrustKdc&quot;: &quot;A String&quot;, # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
911 &quot;crossRealmTrustSharedPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship.
912 &quot;tgtLifetimeHours&quot;: 42, # Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used.
913 &quot;keystoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
914 },
915 },
916 &quot;initializationActions&quot;: [ # Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node&#x27;s role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget):
917 # ROLE=$(curl -H Metadata-Flavor:Google
918 # http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
919 # if [[ &quot;${ROLE}&quot; == &#x27;Master&#x27; ]]; then
920 # ... master specific actions ...
921 # else
922 # ... worker specific actions ...
923 # fi
924 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
925 &quot;executableFile&quot;: &quot;A String&quot;, # Required. Cloud Storage URI of executable file.
926 &quot;executionTimeout&quot;: &quot;A String&quot;, # Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.
927 },
928 ],
929 &quot;lifecycleConfig&quot;: { # Specifies the cluster auto-delete schedule configuration. # Optional. Lifecycle setting for the cluster.
930 &quot;autoDeleteTtl&quot;: &quot;A String&quot;, # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).
931 &quot;idleStartTime&quot;: &quot;A String&quot;, # Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
932 &quot;autoDeleteTime&quot;: &quot;A String&quot;, # Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
933 &quot;idleDeleteTtl&quot;: &quot;A String&quot;, # Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).
934 },
935 &quot;configBucket&quot;: &quot;A String&quot;, # Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster&#x27;s staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging bucket (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
936 &quot;workerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for worker instances in a cluster.
937 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
938 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
939 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
940 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
941 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
942 },
943 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
944 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
945 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
946 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
947 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
948 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
949 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
950 # projects/[project_id]/global/images/[image-id]
951 # image-idImage family examples. Dataproc will use the most recent image from the family:
952 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
953 # 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.
954 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
955 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
956 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
957 },
958 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
959 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
960 &quot;A String&quot;,
961 ],
962 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
963 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
964 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
965 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
966 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
967 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
968 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
969 },
970 ],
971 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
972 },
973 &quot;gceClusterConfig&quot;: { # Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster. # Optional. The shared Compute Engine config settings for all instances in a cluster.
974 &quot;subnetworkUri&quot;: &quot;A String&quot;, # 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:
975 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0
976 # projects/[project_id]/regions/us-east1/subnetworks/sub0
977 # sub0
978 &quot;networkUri&quot;: &quot;A String&quot;, # 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 &quot;default&quot; network of the project is used, if it exists. Cannot be a &quot;Custom Subnet Network&quot; (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more information).A full URL, partial URI, or short name are valid. Examples:
979 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default
980 # projects/[project_id]/regions/global/default
981 # default
982 &quot;zoneUri&quot;: &quot;A String&quot;, # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the &quot;global&quot; region. If omitted in a non-global Dataproc region, the 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:
983 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
984 # projects/[project_id]/zones/[zone]
985 # us-central1-f
986 &quot;metadata&quot;: { # The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
987 &quot;a_key&quot;: &quot;A String&quot;,
988 },
989 &quot;internalIpOnly&quot;: True or False, # Optional. If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
990 &quot;reservationAffinity&quot;: { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation.
991 &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of reservation resource.
992 &quot;values&quot;: [ # Optional. Corresponds to the label values of reservation resource.
993 &quot;A String&quot;,
994 ],
995 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Optional. Type of reservation to consume
996 },
997 &quot;serviceAccountScopes&quot;: [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included:
998 # https://www.googleapis.com/auth/cloud.useraccounts.readonly
999 # https://www.googleapis.com/auth/devstorage.read_write
1000 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:
1001 # https://www.googleapis.com/auth/bigquery
1002 # https://www.googleapis.com/auth/bigtable.admin.table
1003 # https://www.googleapis.com/auth/bigtable.data
1004 # https://www.googleapis.com/auth/devstorage.full_control
1005 &quot;A String&quot;,
1006 ],
1007 &quot;tags&quot;: [ # The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
1008 &quot;A String&quot;,
1009 ],
1010 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
1011 },
1012 &quot;softwareConfig&quot;: { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster.
1013 &quot;optionalComponents&quot;: [ # Optional. The set of components to activate on the cluster.
1014 &quot;A String&quot;,
1015 ],
1016 &quot;imageVersion&quot;: &quot;A String&quot;, # 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_cloud_dataproc_versions), such as &quot;1.2&quot; (including a subminor version, such as &quot;1.2.29&quot;), or the &quot;preview&quot; version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
1017 &quot;properties&quot;: { # Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings:
1018 # capacity-scheduler: capacity-scheduler.xml
1019 # core: core-site.xml
1020 # distcp: distcp-default.xml
1021 # hdfs: hdfs-site.xml
1022 # hive: hive-site.xml
1023 # mapred: mapred-site.xml
1024 # pig: pig.properties
1025 # spark: spark-defaults.conf
1026 # yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
1027 &quot;a_key&quot;: &quot;A String&quot;,
1028 },
1029 },
1030 &quot;autoscalingConfig&quot;: { # Autoscaling Policy config associated with the cluster. # Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
1031 &quot;policyUri&quot;: &quot;A String&quot;, # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples:
1032 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]
1033 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Dataproc region.
1034 },
1035 &quot;masterConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for the master instance in a cluster.
1036 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
1037 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
1038 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
1039 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
1040 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1041 },
1042 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
1043 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
1044 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1045 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1046 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
1047 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
1048 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
1049 # projects/[project_id]/global/images/[image-id]
1050 # image-idImage family examples. Dataproc will use the most recent image from the family:
1051 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
1052 # 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.
1053 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
1054 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
1055 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
1056 },
1057 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
1058 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
1059 &quot;A String&quot;,
1060 ],
1061 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
1062 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
1063 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
1064 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
1065 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
1066 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
1067 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
1068 },
1069 ],
1070 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
1071 },
1072 &quot;secondaryWorkerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for additional worker instances in a cluster.
1073 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
1074 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
1075 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
1076 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
1077 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1078 },
1079 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
1080 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
1081 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1082 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1083 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
1084 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
1085 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
1086 # projects/[project_id]/global/images/[image-id]
1087 # image-idImage family examples. Dataproc will use the most recent image from the family:
1088 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
1089 # 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.
1090 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
1091 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
1092 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
1093 },
1094 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
1095 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
1096 &quot;A String&quot;,
1097 ],
1098 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
1099 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
1100 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
1101 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
1102 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
1103 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
1104 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
1105 },
1106 ],
1107 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
1108 },
1109 },
1110 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters.
1111 },
1112 },
1113 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time template was last updated.
1114 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.
1115 # For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}
1116 # For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}
1117 &quot;parameters&quot;: [ # Optional. emplate parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.
1118 { # A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector)
1119 &quot;validation&quot;: { # Configuration for parameter validation. # Optional. Validation rules to be applied to this parameter&#x27;s value.
1120 &quot;values&quot;: { # Validation based on a list of allowed values. # Validation based on a list of allowed values.
1121 &quot;values&quot;: [ # Required. List of allowed values for the parameter.
1122 &quot;A String&quot;,
1123 ],
1124 },
1125 &quot;regex&quot;: { # Validation based on regular expressions. # Validation based on regular expressions.
1126 &quot;regexes&quot;: [ # Required. RE2 regular expressions used to validate the parameter&#x27;s value. The value must match the regex in its entirety (substring matches are not sufficient).
1127 &quot;A String&quot;,
1128 ],
1129 },
1130 },
1131 &quot;fields&quot;: [ # Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter&#x27;s list of field paths.A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template&#x27;s cluster selector would be specified as placement.clusterSelector.zone.Also, field paths can reference fields using the following syntax:
1132 # Values in maps can be referenced by key:
1133 # labels&#x27;key&#x27;
1134 # placement.clusterSelector.clusterLabels&#x27;key&#x27;
1135 # placement.managedCluster.labels&#x27;key&#x27;
1136 # placement.clusterSelector.clusterLabels&#x27;key&#x27;
1137 # jobs&#x27;step-id&#x27;.labels&#x27;key&#x27;
1138 # Jobs in the jobs list can be referenced by step-id:
1139 # jobs&#x27;step-id&#x27;.hadoopJob.mainJarFileUri
1140 # jobs&#x27;step-id&#x27;.hiveJob.queryFileUri
1141 # jobs&#x27;step-id&#x27;.pySparkJob.mainPythonFileUri
1142 # jobs&#x27;step-id&#x27;.hadoopJob.jarFileUris0
1143 # jobs&#x27;step-id&#x27;.hadoopJob.archiveUris0
1144 # jobs&#x27;step-id&#x27;.hadoopJob.fileUris0
1145 # jobs&#x27;step-id&#x27;.pySparkJob.pythonFileUris0
1146 # Items in repeated fields can be referenced by a zero-based index:
1147 # jobs&#x27;step-id&#x27;.sparkJob.args0
1148 # Other examples:
1149 # jobs&#x27;step-id&#x27;.hadoopJob.properties&#x27;key&#x27;
1150 # jobs&#x27;step-id&#x27;.hadoopJob.args0
1151 # jobs&#x27;step-id&#x27;.hiveJob.scriptVariables&#x27;key&#x27;
1152 # jobs&#x27;step-id&#x27;.hadoopJob.mainJarFileUri
1153 # placement.clusterSelector.zoneIt may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid:
1154 # placement.clusterSelector.clusterLabels
1155 # jobs&#x27;step-id&#x27;.sparkJob.args
1156 &quot;A String&quot;,
1157 ],
1158 &quot;name&quot;: &quot;A String&quot;, # Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters.
1159 &quot;description&quot;: &quot;A String&quot;, # Optional. Brief description of the parameter. Must not exceed 1024 characters.
1160 },
1161 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001162 }</pre>
1163</div>
1164
1165<div class="method">
1166 <code class="details" id="delete">delete(name, version=None, x__xgafv=None)</code>
1167 <pre>Deletes a workflow template. It does not cancel in-progress workflows.
1168
1169Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001170 name: string, Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.
1171For projects.regions.workflowTemplates.delete, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}
1172For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id} (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001173 version: integer, Optional. The version of workflow template to delete. If specified, will only delete the template if the current server version matches specified version.
1174 x__xgafv: string, V1 error format.
1175 Allowed values
1176 1 - v1 error format
1177 2 - v2 error format
1178
1179Returns:
1180 An object of the form:
1181
1182 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
1183 # service Foo {
1184 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1185 # }
1186 # The JSON representation for Empty is empty JSON object {}.
1187 }</pre>
1188</div>
1189
1190<div class="method">
1191 <code class="details" id="get">get(name, version=None, x__xgafv=None)</code>
1192 <pre>Retrieves the latest workflow template.Can retrieve previously instantiated template by specifying optional version parameter.
1193
1194Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001195 name: string, Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.
1196For projects.regions.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}
1197For projects.locations.workflowTemplates.get, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id} (required)
1198 version: integer, Optional. The version of workflow template to retrieve. Only previously instantiated versions can be retrieved.If unspecified, retrieves the current version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001199 x__xgafv: string, V1 error format.
1200 Allowed values
1201 1 - v1 error format
1202 2 - v2 error format
1203
1204Returns:
1205 An object of the form:
1206
Dan O'Mearadd494642020-05-01 07:42:23 -07001207 { # A Dataproc workflow template resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001208 &quot;id&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001209 &quot;version&quot;: 42, # Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request.
Bu Sun Kim65020912020-05-20 12:08:20 -07001210 &quot;jobs&quot;: [ # Required. The Directed Acyclic Graph of Jobs to submit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001211 { # A job executed by the workflow.
Bu Sun Kim65020912020-05-20 12:08:20 -07001212 &quot;prestoJob&quot;: { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
1213 &quot;outputFormat&quot;: &quot;A String&quot;, # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
1214 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001215 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07001216 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1217 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
1218 # &quot;hiveJob&quot;: {
1219 # &quot;queryList&quot;: {
1220 # &quot;queries&quot;: [
1221 # &quot;query1&quot;,
1222 # &quot;query2&quot;,
1223 # &quot;query3;query4&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001224 # ]
1225 # }
1226 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07001227 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001228 ],
1229 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001230 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
1231 &quot;A String&quot;,
1232 ],
1233 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1234 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
1235 &quot;a_key&quot;: &quot;A String&quot;,
1236 },
1237 },
1238 &quot;properties&quot;: { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
1239 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001240 },
1241 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001242 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
1243 &quot;maxFailuresPerHour&quot;: 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10.
1244 },
1245 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001246 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1247 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
1248 &quot;a_key&quot;: &quot;A String&quot;,
1249 },
1250 },
1251 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.
1252 &quot;a_key&quot;: &quot;A String&quot;,
1253 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001254 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
1255 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
1256 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1257 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
1258 # &quot;hiveJob&quot;: {
1259 # &quot;queryList&quot;: {
1260 # &quot;queries&quot;: [
1261 # &quot;query1&quot;,
1262 # &quot;query2&quot;,
1263 # &quot;query3;query4&quot;,
1264 # ]
1265 # }
1266 # }
1267 &quot;A String&quot;,
1268 ],
1269 },
1270 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
1271 &quot;A String&quot;,
1272 ],
1273 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
1274 &quot;a_key&quot;: &quot;A String&quot;,
1275 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001276 },
1277 &quot;stepId&quot;: &quot;A String&quot;, # Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.
1278 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
1279 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07001280 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1281 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
1282 # &quot;hiveJob&quot;: {
1283 # &quot;queryList&quot;: {
1284 # &quot;queries&quot;: [
1285 # &quot;query1&quot;,
1286 # &quot;query2&quot;,
1287 # &quot;query3;query4&quot;,
1288 # ]
1289 # }
1290 # }
1291 &quot;A String&quot;,
1292 ],
1293 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001294 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07001295 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
1296 &quot;A String&quot;,
1297 ],
1298 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
1299 &quot;a_key&quot;: &quot;A String&quot;,
1300 },
1301 &quot;properties&quot;: { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.
1302 &quot;a_key&quot;: &quot;A String&quot;,
1303 },
1304 },
1305 &quot;prerequisiteStepIds&quot;: [ # Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow.
1306 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001307 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001308 &quot;labels&quot;: { # Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job.
1309 &quot;a_key&quot;: &quot;A String&quot;,
1310 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001311 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
Bu Sun Kim65020912020-05-20 12:08:20 -07001312 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
1313 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1314 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
1315 # &quot;hiveJob&quot;: {
1316 # &quot;queryList&quot;: {
1317 # &quot;queries&quot;: [
1318 # &quot;query1&quot;,
1319 # &quot;query2&quot;,
1320 # &quot;query3;query4&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001321 # ]
1322 # }
1323 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07001324 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001325 ],
1326 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001327 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
1328 &quot;a_key&quot;: &quot;A String&quot;,
1329 },
1330 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
1331 &quot;A String&quot;,
1332 ],
1333 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1334 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
1335 &quot;a_key&quot;: &quot;A String&quot;,
1336 },
1337 },
1338 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Spark SQL&#x27;s SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
1339 &quot;a_key&quot;: &quot;A String&quot;,
1340 },
1341 },
1342 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
1343 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
1344 &quot;A String&quot;,
1345 ],
1346 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
1347 &quot;A String&quot;,
1348 ],
1349 &quot;mainClass&quot;: &quot;A String&quot;, # The name of the driver&#x27;s main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.
1350 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
1351 &quot;A String&quot;,
1352 ],
1353 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
1354 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
1355 &quot;A String&quot;,
1356 ],
1357 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1358 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
1359 &quot;a_key&quot;: &quot;A String&quot;,
1360 },
1361 },
1362 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
1363 &quot;a_key&quot;: &quot;A String&quot;,
1364 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001365 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001366 &quot;pysparkJob&quot;: { # A Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Optional. Job is a PySpark job.
1367 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
1368 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001369 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001370 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1371 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
1372 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001373 },
1374 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001375 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
1376 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001377 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001378 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
1379 &quot;A String&quot;,
1380 ],
1381 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks.
1382 &quot;A String&quot;,
1383 ],
1384 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
1385 &quot;A String&quot;,
1386 ],
1387 &quot;mainPythonFileUri&quot;: &quot;A String&quot;, # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file.
1388 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
1389 &quot;A String&quot;,
1390 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001391 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001392 &quot;sparkRJob&quot;: { # A Dataproc job for running Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN. # Optional. Job is a SparkR job.
1393 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1394 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
1395 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001396 },
1397 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001398 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure SparkR. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
1399 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001400 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001401 &quot;mainRFileUri&quot;: &quot;A String&quot;, # Required. The HCFS URI of the main R file to use as the driver. Must be a .R file.
1402 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
1403 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001404 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001405 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of R drivers and distributed tasks. Useful for naively parallel tasks.
1406 &quot;A String&quot;,
1407 ],
1408 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
1409 &quot;A String&quot;,
1410 ],
1411 },
1412 &quot;hadoopJob&quot;: { # A Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). # Optional. Job is a Hadoop job.
1413 &quot;mainClass&quot;: &quot;A String&quot;, # The name of the driver&#x27;s main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris.
1414 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
1415 &quot;A String&quot;,
1416 ],
1417 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file containing the main class. Examples: &#x27;gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar&#x27; &#x27;hdfs:/tmp/test-samples/custom-wordcount.jar&#x27; &#x27;file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar&#x27;
1418 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
1419 &quot;A String&quot;,
1420 ],
1421 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1422 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
1423 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001424 },
1425 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001426 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
1427 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001428 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001429 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
1430 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001431 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001432 &quot;fileUris&quot;: [ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
1433 &quot;A String&quot;,
1434 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001435 },
1436 },
1437 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001438 &quot;labels&quot;: { # Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be associated with a template.
1439 &quot;a_key&quot;: &quot;A String&quot;,
1440 },
1441 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time template was created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001442 &quot;placement&quot;: { # Specifies workflow execution target.Either managed_cluster or cluster_selector is required. # Required. WorkflowTemplate scheduling information.
1443 &quot;clusterSelector&quot;: { # A selector that chooses target cluster for jobs based on metadata. # Optional. A selector that chooses target cluster for jobs based on metadata.The selector is evaluated at the time each job is submitted.
1444 &quot;zone&quot;: &quot;A String&quot;, # Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used.
1445 &quot;clusterLabels&quot;: { # Required. The cluster labels. Cluster must have all labels to match.
1446 &quot;a_key&quot;: &quot;A String&quot;,
1447 },
1448 },
1449 &quot;managedCluster&quot;: { # Cluster that is managed by the workflow. # A cluster that is managed by the workflow.
1450 &quot;labels&quot;: { # Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster.
1451 &quot;a_key&quot;: &quot;A String&quot;,
1452 },
1453 &quot;config&quot;: { # The cluster config. # Required. The cluster configuration.
1454 &quot;encryptionConfig&quot;: { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster.
1455 &quot;gcePdKmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster.
1456 },
1457 &quot;securityConfig&quot;: { # Security related configuration, including Kerberos. # Optional. Security settings for the cluster.
1458 &quot;kerberosConfig&quot;: { # Specifies Kerberos related configuration. # Kerberos related configuration.
1459 &quot;keyPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc.
1460 &quot;keystorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc.
1461 &quot;crossRealmTrustAdminServer&quot;: &quot;A String&quot;, # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
1462 &quot;kdcDbKeyUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database.
1463 &quot;truststorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc.
1464 &quot;realm&quot;: &quot;A String&quot;, # Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm.
1465 &quot;enableKerberos&quot;: True or False, # Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster.
1466 &quot;truststoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
1467 &quot;crossRealmTrustRealm&quot;: &quot;A String&quot;, # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust.
1468 &quot;rootPrincipalPasswordUri&quot;: &quot;A String&quot;, # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password.
1469 &quot;kmsKeyUri&quot;: &quot;A String&quot;, # Required. The uri of the KMS key used to encrypt various sensitive files.
1470 &quot;crossRealmTrustKdc&quot;: &quot;A String&quot;, # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
1471 &quot;crossRealmTrustSharedPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship.
1472 &quot;tgtLifetimeHours&quot;: 42, # Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used.
1473 &quot;keystoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
1474 },
1475 },
1476 &quot;initializationActions&quot;: [ # Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node&#x27;s role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget):
1477 # ROLE=$(curl -H Metadata-Flavor:Google
1478 # http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
1479 # if [[ &quot;${ROLE}&quot; == &#x27;Master&#x27; ]]; then
1480 # ... master specific actions ...
1481 # else
1482 # ... worker specific actions ...
1483 # fi
1484 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
1485 &quot;executableFile&quot;: &quot;A String&quot;, # Required. Cloud Storage URI of executable file.
1486 &quot;executionTimeout&quot;: &quot;A String&quot;, # Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.
1487 },
1488 ],
1489 &quot;lifecycleConfig&quot;: { # Specifies the cluster auto-delete schedule configuration. # Optional. Lifecycle setting for the cluster.
1490 &quot;autoDeleteTtl&quot;: &quot;A String&quot;, # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).
1491 &quot;idleStartTime&quot;: &quot;A String&quot;, # Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
1492 &quot;autoDeleteTime&quot;: &quot;A String&quot;, # Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
1493 &quot;idleDeleteTtl&quot;: &quot;A String&quot;, # Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).
1494 },
1495 &quot;configBucket&quot;: &quot;A String&quot;, # Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster&#x27;s staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging bucket (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
1496 &quot;workerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for worker instances in a cluster.
1497 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
1498 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
1499 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
1500 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
1501 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1502 },
1503 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
1504 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
1505 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1506 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1507 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
1508 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
1509 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
1510 # projects/[project_id]/global/images/[image-id]
1511 # image-idImage family examples. Dataproc will use the most recent image from the family:
1512 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
1513 # 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.
1514 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
1515 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
1516 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
1517 },
1518 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
1519 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
1520 &quot;A String&quot;,
1521 ],
1522 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
1523 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
1524 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
1525 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
1526 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
1527 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
1528 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
1529 },
1530 ],
1531 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
1532 },
1533 &quot;gceClusterConfig&quot;: { # Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster. # Optional. The shared Compute Engine config settings for all instances in a cluster.
1534 &quot;subnetworkUri&quot;: &quot;A String&quot;, # 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:
1535 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0
1536 # projects/[project_id]/regions/us-east1/subnetworks/sub0
1537 # sub0
1538 &quot;networkUri&quot;: &quot;A String&quot;, # 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 &quot;default&quot; network of the project is used, if it exists. Cannot be a &quot;Custom Subnet Network&quot; (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more information).A full URL, partial URI, or short name are valid. Examples:
1539 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default
1540 # projects/[project_id]/regions/global/default
1541 # default
1542 &quot;zoneUri&quot;: &quot;A String&quot;, # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the &quot;global&quot; region. If omitted in a non-global Dataproc region, the 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:
1543 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
1544 # projects/[project_id]/zones/[zone]
1545 # us-central1-f
1546 &quot;metadata&quot;: { # The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
1547 &quot;a_key&quot;: &quot;A String&quot;,
1548 },
1549 &quot;internalIpOnly&quot;: True or False, # Optional. If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
1550 &quot;reservationAffinity&quot;: { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation.
1551 &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of reservation resource.
1552 &quot;values&quot;: [ # Optional. Corresponds to the label values of reservation resource.
1553 &quot;A String&quot;,
1554 ],
1555 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Optional. Type of reservation to consume
1556 },
1557 &quot;serviceAccountScopes&quot;: [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included:
1558 # https://www.googleapis.com/auth/cloud.useraccounts.readonly
1559 # https://www.googleapis.com/auth/devstorage.read_write
1560 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:
1561 # https://www.googleapis.com/auth/bigquery
1562 # https://www.googleapis.com/auth/bigtable.admin.table
1563 # https://www.googleapis.com/auth/bigtable.data
1564 # https://www.googleapis.com/auth/devstorage.full_control
1565 &quot;A String&quot;,
1566 ],
1567 &quot;tags&quot;: [ # The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
1568 &quot;A String&quot;,
1569 ],
1570 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
1571 },
1572 &quot;softwareConfig&quot;: { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster.
1573 &quot;optionalComponents&quot;: [ # Optional. The set of components to activate on the cluster.
1574 &quot;A String&quot;,
1575 ],
1576 &quot;imageVersion&quot;: &quot;A String&quot;, # 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_cloud_dataproc_versions), such as &quot;1.2&quot; (including a subminor version, such as &quot;1.2.29&quot;), or the &quot;preview&quot; version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
1577 &quot;properties&quot;: { # Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings:
1578 # capacity-scheduler: capacity-scheduler.xml
1579 # core: core-site.xml
1580 # distcp: distcp-default.xml
1581 # hdfs: hdfs-site.xml
1582 # hive: hive-site.xml
1583 # mapred: mapred-site.xml
1584 # pig: pig.properties
1585 # spark: spark-defaults.conf
1586 # yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
1587 &quot;a_key&quot;: &quot;A String&quot;,
1588 },
1589 },
1590 &quot;autoscalingConfig&quot;: { # Autoscaling Policy config associated with the cluster. # Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
1591 &quot;policyUri&quot;: &quot;A String&quot;, # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples:
1592 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]
1593 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Dataproc region.
1594 },
1595 &quot;masterConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for the master instance in a cluster.
1596 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
1597 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
1598 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
1599 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
1600 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1601 },
1602 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
1603 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
1604 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1605 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1606 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
1607 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
1608 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
1609 # projects/[project_id]/global/images/[image-id]
1610 # image-idImage family examples. Dataproc will use the most recent image from the family:
1611 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
1612 # 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.
1613 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
1614 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
1615 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
1616 },
1617 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
1618 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
1619 &quot;A String&quot;,
1620 ],
1621 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
1622 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
1623 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
1624 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
1625 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
1626 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
1627 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
1628 },
1629 ],
1630 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
1631 },
1632 &quot;secondaryWorkerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for additional worker instances in a cluster.
1633 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
1634 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
1635 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
1636 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
1637 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
1638 },
1639 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
1640 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
1641 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1642 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
1643 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
1644 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
1645 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
1646 # projects/[project_id]/global/images/[image-id]
1647 # image-idImage family examples. Dataproc will use the most recent image from the family:
1648 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
1649 # 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.
1650 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
1651 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
1652 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
1653 },
1654 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
1655 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
1656 &quot;A String&quot;,
1657 ],
1658 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
1659 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
1660 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
1661 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
1662 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
1663 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
1664 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
1665 },
1666 ],
1667 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
1668 },
1669 },
1670 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters.
1671 },
1672 },
1673 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time template was last updated.
1674 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.
1675 # For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}
1676 # For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}
1677 &quot;parameters&quot;: [ # Optional. emplate parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.
1678 { # A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector)
1679 &quot;validation&quot;: { # Configuration for parameter validation. # Optional. Validation rules to be applied to this parameter&#x27;s value.
1680 &quot;values&quot;: { # Validation based on a list of allowed values. # Validation based on a list of allowed values.
1681 &quot;values&quot;: [ # Required. List of allowed values for the parameter.
1682 &quot;A String&quot;,
1683 ],
1684 },
1685 &quot;regex&quot;: { # Validation based on regular expressions. # Validation based on regular expressions.
1686 &quot;regexes&quot;: [ # Required. RE2 regular expressions used to validate the parameter&#x27;s value. The value must match the regex in its entirety (substring matches are not sufficient).
1687 &quot;A String&quot;,
1688 ],
1689 },
1690 },
1691 &quot;fields&quot;: [ # Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter&#x27;s list of field paths.A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template&#x27;s cluster selector would be specified as placement.clusterSelector.zone.Also, field paths can reference fields using the following syntax:
1692 # Values in maps can be referenced by key:
1693 # labels&#x27;key&#x27;
1694 # placement.clusterSelector.clusterLabels&#x27;key&#x27;
1695 # placement.managedCluster.labels&#x27;key&#x27;
1696 # placement.clusterSelector.clusterLabels&#x27;key&#x27;
1697 # jobs&#x27;step-id&#x27;.labels&#x27;key&#x27;
1698 # Jobs in the jobs list can be referenced by step-id:
1699 # jobs&#x27;step-id&#x27;.hadoopJob.mainJarFileUri
1700 # jobs&#x27;step-id&#x27;.hiveJob.queryFileUri
1701 # jobs&#x27;step-id&#x27;.pySparkJob.mainPythonFileUri
1702 # jobs&#x27;step-id&#x27;.hadoopJob.jarFileUris0
1703 # jobs&#x27;step-id&#x27;.hadoopJob.archiveUris0
1704 # jobs&#x27;step-id&#x27;.hadoopJob.fileUris0
1705 # jobs&#x27;step-id&#x27;.pySparkJob.pythonFileUris0
1706 # Items in repeated fields can be referenced by a zero-based index:
1707 # jobs&#x27;step-id&#x27;.sparkJob.args0
1708 # Other examples:
1709 # jobs&#x27;step-id&#x27;.hadoopJob.properties&#x27;key&#x27;
1710 # jobs&#x27;step-id&#x27;.hadoopJob.args0
1711 # jobs&#x27;step-id&#x27;.hiveJob.scriptVariables&#x27;key&#x27;
1712 # jobs&#x27;step-id&#x27;.hadoopJob.mainJarFileUri
1713 # placement.clusterSelector.zoneIt may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid:
1714 # placement.clusterSelector.clusterLabels
1715 # jobs&#x27;step-id&#x27;.sparkJob.args
1716 &quot;A String&quot;,
1717 ],
1718 &quot;name&quot;: &quot;A String&quot;, # Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters.
1719 &quot;description&quot;: &quot;A String&quot;, # Optional. Brief description of the parameter. Must not exceed 1024 characters.
1720 },
1721 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001722 }</pre>
1723</div>
1724
1725<div class="method">
1726 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
1727 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1728
1729Args:
1730 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
1731 body: object, The request body.
1732 The object takes the form of:
1733
1734{ # Request message for GetIamPolicy method.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001735 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A GetPolicyOptions object for specifying options to GetIamPolicy.
1736 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001737 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001738 }
1739
1740 x__xgafv: string, V1 error format.
1741 Allowed values
1742 1 - v1 error format
1743 2 - v2 error format
1744
1745Returns:
1746 An object of the form:
1747
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001748 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001749 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001750 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001751 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001752 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1753 # &quot;members&quot;: [
1754 # &quot;user:mike@example.com&quot;,
1755 # &quot;group:admins@example.com&quot;,
1756 # &quot;domain:google.com&quot;,
1757 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001758 # ]
1759 # },
1760 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001761 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001762 # &quot;members&quot;: [
1763 # &quot;user:eve@example.com&quot;
1764 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001765 # &quot;condition&quot;: {
1766 # &quot;title&quot;: &quot;expirable access&quot;,
1767 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1768 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001769 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001770 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001771 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001772 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1773 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001774 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001775 # YAML example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001776 # bindings:
1777 # - members:
1778 # - user:mike@example.com
1779 # - group:admins@example.com
1780 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001781 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1782 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001783 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001784 # - user:eve@example.com
1785 # role: roles/resourcemanager.organizationViewer
1786 # condition:
1787 # title: expirable access
1788 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001789 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001790 # - etag: BwWWja0YfJA=
1791 # - version: 3
1792 # For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001793 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
1794 &quot;version&quot;: 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations:
1795 # Getting a policy that includes a conditional role binding
1796 # Adding a conditional role binding to a policy
1797 # Changing a conditional role binding in a policy
1798 # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07001799 &quot;bindings&quot;: [ # Associates a list of members to a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001800 { # Associates members with a role.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001801 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): # The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07001802 # title: &quot;Summary size limit&quot;
1803 # description: &quot;Determines if a summary is less than 100 chars&quot;
1804 # expression: &quot;document.summary.size() &lt; 100&quot;
1805 # Example (Equality):
1806 # title: &quot;Requestor is owner&quot;
1807 # description: &quot;Determines if requestor is the document owner&quot;
1808 # expression: &quot;document.owner == request.auth.claims.email&quot;
1809 # Example (Logic):
1810 # title: &quot;Public documents&quot;
1811 # description: &quot;Determine whether the document should be publicly visible&quot;
1812 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1813 # Example (Data Manipulation):
1814 # title: &quot;Notification string&quot;
1815 # description: &quot;Create a notification string with a timestamp.&quot;
1816 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1817 # The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
1818 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1819 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1820 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1821 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1822 },
1823 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. members can have the following values:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001824 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
1825 # allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account.
Dan O'Mearadd494642020-05-01 07:42:23 -07001826 # user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001827 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
1828 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
Dan O'Mearadd494642020-05-01 07:42:23 -07001829 # deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding.
1830 # deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding.
1831 # deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001832 # domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
Bu Sun Kim65020912020-05-20 12:08:20 -07001833 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001834 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001835 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001836 },
1837 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001838 }</pre>
1839</div>
1840
1841<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001842 <code class="details" id="instantiate">instantiate(name, body=None, x__xgafv=None)</code>
1843 <pre>Instantiates a template and begins execution.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001844
1845Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001846 name: string, Required. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.
1847For projects.regions.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}
1848For projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id} (required)
1849 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001850 The object takes the form of:
1851
1852{ # A request to instantiate a workflow template.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001853 &quot;requestId&quot;: &quot;A String&quot;, # Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -07001854 &quot;version&quot;: 42, # Optional. The version of workflow template to instantiate. If specified, the workflow will be instantiated only if the current version of the workflow template has the supplied version.This option cannot be used to instantiate a previous version of workflow template.
1855 &quot;parameters&quot;: { # Optional. Map from parameter names to values that should be used for those parameters. Values may not exceed 100 characters.
1856 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001857 },
1858 }
1859
1860 x__xgafv: string, V1 error format.
1861 Allowed values
1862 1 - v1 error format
1863 2 - v2 error format
1864
1865Returns:
1866 An object of the form:
1867
1868 { # This resource represents a long-running operation that is the result of a network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001869 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1870 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1871 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001872 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
1873 &quot;response&quot;: { # 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.
1874 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001875 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001876 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
1877 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1878 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1879 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1880 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001881 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001882 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001883 },
1884 ],
1885 },
1886 }</pre>
1887</div>
1888
1889<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001890 <code class="details" id="instantiateInline">instantiateInline(parent, body=None, requestId=None, x__xgafv=None)</code>
1891 <pre>Instantiates a template and begins execution.This method is equivalent to executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, DeleteWorkflowTemplate.The returned Operation can be used to track execution of workflow by polling operations.get. The Operation will complete when entire workflow is finished.The running workflow can be aborted via operations.cancel. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted.The Operation.metadata will be WorkflowMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see Using WorkflowMetadata (https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).On successful completion, Operation.response will be Empty.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001892
1893Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001894 parent: string, Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.
1895For projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format: projects/{project_id}/regions/{region}
1896For projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format: projects/{project_id}/locations/{location} (required)
1897 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001898 The object takes the form of:
1899
Dan O'Mearadd494642020-05-01 07:42:23 -07001900{ # A Dataproc workflow template resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001901 &quot;id&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001902 &quot;version&quot;: 42, # Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request.
Bu Sun Kim65020912020-05-20 12:08:20 -07001903 &quot;jobs&quot;: [ # Required. The Directed Acyclic Graph of Jobs to submit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001904 { # A job executed by the workflow.
Bu Sun Kim65020912020-05-20 12:08:20 -07001905 &quot;prestoJob&quot;: { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
1906 &quot;outputFormat&quot;: &quot;A String&quot;, # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
1907 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001908 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07001909 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1910 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
1911 # &quot;hiveJob&quot;: {
1912 # &quot;queryList&quot;: {
1913 # &quot;queries&quot;: [
1914 # &quot;query1&quot;,
1915 # &quot;query2&quot;,
1916 # &quot;query3;query4&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001917 # ]
1918 # }
1919 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07001920 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001921 ],
1922 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001923 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
1924 &quot;A String&quot;,
1925 ],
1926 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1927 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
1928 &quot;a_key&quot;: &quot;A String&quot;,
1929 },
1930 },
1931 &quot;properties&quot;: { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
1932 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001933 },
1934 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001935 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
1936 &quot;maxFailuresPerHour&quot;: 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10.
1937 },
1938 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001939 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1940 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
1941 &quot;a_key&quot;: &quot;A String&quot;,
1942 },
1943 },
1944 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.
1945 &quot;a_key&quot;: &quot;A String&quot;,
1946 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001947 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
1948 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
1949 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1950 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
1951 # &quot;hiveJob&quot;: {
1952 # &quot;queryList&quot;: {
1953 # &quot;queries&quot;: [
1954 # &quot;query1&quot;,
1955 # &quot;query2&quot;,
1956 # &quot;query3;query4&quot;,
1957 # ]
1958 # }
1959 # }
1960 &quot;A String&quot;,
1961 ],
1962 },
1963 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
1964 &quot;A String&quot;,
1965 ],
1966 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
1967 &quot;a_key&quot;: &quot;A String&quot;,
1968 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001969 },
1970 &quot;stepId&quot;: &quot;A String&quot;, # Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.
1971 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
1972 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07001973 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1974 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
1975 # &quot;hiveJob&quot;: {
1976 # &quot;queryList&quot;: {
1977 # &quot;queries&quot;: [
1978 # &quot;query1&quot;,
1979 # &quot;query2&quot;,
1980 # &quot;query3;query4&quot;,
1981 # ]
1982 # }
1983 # }
1984 &quot;A String&quot;,
1985 ],
1986 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001987 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07001988 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
1989 &quot;A String&quot;,
1990 ],
1991 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
1992 &quot;a_key&quot;: &quot;A String&quot;,
1993 },
1994 &quot;properties&quot;: { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.
1995 &quot;a_key&quot;: &quot;A String&quot;,
1996 },
1997 },
1998 &quot;prerequisiteStepIds&quot;: [ # Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow.
1999 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002000 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002001 &quot;labels&quot;: { # Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job.
2002 &quot;a_key&quot;: &quot;A String&quot;,
2003 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002004 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
Bu Sun Kim65020912020-05-20 12:08:20 -07002005 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
2006 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2007 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
2008 # &quot;hiveJob&quot;: {
2009 # &quot;queryList&quot;: {
2010 # &quot;queries&quot;: [
2011 # &quot;query1&quot;,
2012 # &quot;query2&quot;,
2013 # &quot;query3;query4&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002014 # ]
2015 # }
2016 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07002017 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002018 ],
2019 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002020 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
2021 &quot;a_key&quot;: &quot;A String&quot;,
2022 },
2023 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
2024 &quot;A String&quot;,
2025 ],
2026 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2027 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
2028 &quot;a_key&quot;: &quot;A String&quot;,
2029 },
2030 },
2031 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Spark SQL&#x27;s SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
2032 &quot;a_key&quot;: &quot;A String&quot;,
2033 },
2034 },
2035 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
2036 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
2037 &quot;A String&quot;,
2038 ],
2039 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
2040 &quot;A String&quot;,
2041 ],
2042 &quot;mainClass&quot;: &quot;A String&quot;, # The name of the driver&#x27;s main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.
2043 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
2044 &quot;A String&quot;,
2045 ],
2046 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
2047 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
2048 &quot;A String&quot;,
2049 ],
2050 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2051 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
2052 &quot;a_key&quot;: &quot;A String&quot;,
2053 },
2054 },
2055 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
2056 &quot;a_key&quot;: &quot;A String&quot;,
2057 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002058 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002059 &quot;pysparkJob&quot;: { # A Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Optional. Job is a PySpark job.
2060 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
2061 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002062 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002063 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2064 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
2065 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002066 },
2067 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002068 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
2069 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002070 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002071 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
2072 &quot;A String&quot;,
2073 ],
2074 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks.
2075 &quot;A String&quot;,
2076 ],
2077 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
2078 &quot;A String&quot;,
2079 ],
2080 &quot;mainPythonFileUri&quot;: &quot;A String&quot;, # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file.
2081 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
2082 &quot;A String&quot;,
2083 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07002084 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002085 &quot;sparkRJob&quot;: { # A Dataproc job for running Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN. # Optional. Job is a SparkR job.
2086 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2087 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
2088 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002089 },
2090 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002091 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure SparkR. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
2092 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002093 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002094 &quot;mainRFileUri&quot;: &quot;A String&quot;, # Required. The HCFS URI of the main R file to use as the driver. Must be a .R file.
2095 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
2096 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002097 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002098 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of R drivers and distributed tasks. Useful for naively parallel tasks.
2099 &quot;A String&quot;,
2100 ],
2101 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
2102 &quot;A String&quot;,
2103 ],
2104 },
2105 &quot;hadoopJob&quot;: { # A Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). # Optional. Job is a Hadoop job.
2106 &quot;mainClass&quot;: &quot;A String&quot;, # The name of the driver&#x27;s main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris.
2107 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
2108 &quot;A String&quot;,
2109 ],
2110 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file containing the main class. Examples: &#x27;gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar&#x27; &#x27;hdfs:/tmp/test-samples/custom-wordcount.jar&#x27; &#x27;file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar&#x27;
2111 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
2112 &quot;A String&quot;,
2113 ],
2114 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2115 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
2116 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002117 },
2118 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002119 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
2120 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002121 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002122 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
2123 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002124 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002125 &quot;fileUris&quot;: [ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
2126 &quot;A String&quot;,
2127 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002128 },
2129 },
2130 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002131 &quot;labels&quot;: { # Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be associated with a template.
2132 &quot;a_key&quot;: &quot;A String&quot;,
2133 },
2134 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time template was created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002135 &quot;placement&quot;: { # Specifies workflow execution target.Either managed_cluster or cluster_selector is required. # Required. WorkflowTemplate scheduling information.
2136 &quot;clusterSelector&quot;: { # A selector that chooses target cluster for jobs based on metadata. # Optional. A selector that chooses target cluster for jobs based on metadata.The selector is evaluated at the time each job is submitted.
2137 &quot;zone&quot;: &quot;A String&quot;, # Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used.
2138 &quot;clusterLabels&quot;: { # Required. The cluster labels. Cluster must have all labels to match.
2139 &quot;a_key&quot;: &quot;A String&quot;,
2140 },
2141 },
2142 &quot;managedCluster&quot;: { # Cluster that is managed by the workflow. # A cluster that is managed by the workflow.
2143 &quot;labels&quot;: { # Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster.
2144 &quot;a_key&quot;: &quot;A String&quot;,
2145 },
2146 &quot;config&quot;: { # The cluster config. # Required. The cluster configuration.
2147 &quot;encryptionConfig&quot;: { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster.
2148 &quot;gcePdKmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster.
2149 },
2150 &quot;securityConfig&quot;: { # Security related configuration, including Kerberos. # Optional. Security settings for the cluster.
2151 &quot;kerberosConfig&quot;: { # Specifies Kerberos related configuration. # Kerberos related configuration.
2152 &quot;keyPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc.
2153 &quot;keystorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc.
2154 &quot;crossRealmTrustAdminServer&quot;: &quot;A String&quot;, # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
2155 &quot;kdcDbKeyUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database.
2156 &quot;truststorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc.
2157 &quot;realm&quot;: &quot;A String&quot;, # Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm.
2158 &quot;enableKerberos&quot;: True or False, # Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster.
2159 &quot;truststoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
2160 &quot;crossRealmTrustRealm&quot;: &quot;A String&quot;, # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust.
2161 &quot;rootPrincipalPasswordUri&quot;: &quot;A String&quot;, # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password.
2162 &quot;kmsKeyUri&quot;: &quot;A String&quot;, # Required. The uri of the KMS key used to encrypt various sensitive files.
2163 &quot;crossRealmTrustKdc&quot;: &quot;A String&quot;, # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
2164 &quot;crossRealmTrustSharedPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship.
2165 &quot;tgtLifetimeHours&quot;: 42, # Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used.
2166 &quot;keystoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
2167 },
2168 },
2169 &quot;initializationActions&quot;: [ # Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node&#x27;s role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget):
2170 # ROLE=$(curl -H Metadata-Flavor:Google
2171 # http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
2172 # if [[ &quot;${ROLE}&quot; == &#x27;Master&#x27; ]]; then
2173 # ... master specific actions ...
2174 # else
2175 # ... worker specific actions ...
2176 # fi
2177 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
2178 &quot;executableFile&quot;: &quot;A String&quot;, # Required. Cloud Storage URI of executable file.
2179 &quot;executionTimeout&quot;: &quot;A String&quot;, # Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.
2180 },
2181 ],
2182 &quot;lifecycleConfig&quot;: { # Specifies the cluster auto-delete schedule configuration. # Optional. Lifecycle setting for the cluster.
2183 &quot;autoDeleteTtl&quot;: &quot;A String&quot;, # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).
2184 &quot;idleStartTime&quot;: &quot;A String&quot;, # Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
2185 &quot;autoDeleteTime&quot;: &quot;A String&quot;, # Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
2186 &quot;idleDeleteTtl&quot;: &quot;A String&quot;, # Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).
2187 },
2188 &quot;configBucket&quot;: &quot;A String&quot;, # Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster&#x27;s staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging bucket (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
2189 &quot;workerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for worker instances in a cluster.
2190 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
2191 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
2192 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
2193 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
2194 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
2195 },
2196 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
2197 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
2198 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
2199 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
2200 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
2201 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
2202 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
2203 # projects/[project_id]/global/images/[image-id]
2204 # image-idImage family examples. Dataproc will use the most recent image from the family:
2205 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
2206 # 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.
2207 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
2208 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
2209 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
2210 },
2211 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
2212 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
2213 &quot;A String&quot;,
2214 ],
2215 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
2216 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
2217 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
2218 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
2219 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
2220 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
2221 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
2222 },
2223 ],
2224 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
2225 },
2226 &quot;gceClusterConfig&quot;: { # Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster. # Optional. The shared Compute Engine config settings for all instances in a cluster.
2227 &quot;subnetworkUri&quot;: &quot;A String&quot;, # 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:
2228 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0
2229 # projects/[project_id]/regions/us-east1/subnetworks/sub0
2230 # sub0
2231 &quot;networkUri&quot;: &quot;A String&quot;, # 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 &quot;default&quot; network of the project is used, if it exists. Cannot be a &quot;Custom Subnet Network&quot; (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more information).A full URL, partial URI, or short name are valid. Examples:
2232 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default
2233 # projects/[project_id]/regions/global/default
2234 # default
2235 &quot;zoneUri&quot;: &quot;A String&quot;, # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the &quot;global&quot; region. If omitted in a non-global Dataproc region, the 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:
2236 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
2237 # projects/[project_id]/zones/[zone]
2238 # us-central1-f
2239 &quot;metadata&quot;: { # The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
2240 &quot;a_key&quot;: &quot;A String&quot;,
2241 },
2242 &quot;internalIpOnly&quot;: True or False, # Optional. If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
2243 &quot;reservationAffinity&quot;: { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation.
2244 &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of reservation resource.
2245 &quot;values&quot;: [ # Optional. Corresponds to the label values of reservation resource.
2246 &quot;A String&quot;,
2247 ],
2248 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Optional. Type of reservation to consume
2249 },
2250 &quot;serviceAccountScopes&quot;: [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included:
2251 # https://www.googleapis.com/auth/cloud.useraccounts.readonly
2252 # https://www.googleapis.com/auth/devstorage.read_write
2253 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:
2254 # https://www.googleapis.com/auth/bigquery
2255 # https://www.googleapis.com/auth/bigtable.admin.table
2256 # https://www.googleapis.com/auth/bigtable.data
2257 # https://www.googleapis.com/auth/devstorage.full_control
2258 &quot;A String&quot;,
2259 ],
2260 &quot;tags&quot;: [ # The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
2261 &quot;A String&quot;,
2262 ],
2263 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
2264 },
2265 &quot;softwareConfig&quot;: { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster.
2266 &quot;optionalComponents&quot;: [ # Optional. The set of components to activate on the cluster.
2267 &quot;A String&quot;,
2268 ],
2269 &quot;imageVersion&quot;: &quot;A String&quot;, # 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_cloud_dataproc_versions), such as &quot;1.2&quot; (including a subminor version, such as &quot;1.2.29&quot;), or the &quot;preview&quot; version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
2270 &quot;properties&quot;: { # Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings:
2271 # capacity-scheduler: capacity-scheduler.xml
2272 # core: core-site.xml
2273 # distcp: distcp-default.xml
2274 # hdfs: hdfs-site.xml
2275 # hive: hive-site.xml
2276 # mapred: mapred-site.xml
2277 # pig: pig.properties
2278 # spark: spark-defaults.conf
2279 # yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
2280 &quot;a_key&quot;: &quot;A String&quot;,
2281 },
2282 },
2283 &quot;autoscalingConfig&quot;: { # Autoscaling Policy config associated with the cluster. # Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
2284 &quot;policyUri&quot;: &quot;A String&quot;, # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples:
2285 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]
2286 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Dataproc region.
2287 },
2288 &quot;masterConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for the master instance in a cluster.
2289 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
2290 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
2291 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
2292 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
2293 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
2294 },
2295 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
2296 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
2297 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
2298 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
2299 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
2300 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
2301 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
2302 # projects/[project_id]/global/images/[image-id]
2303 # image-idImage family examples. Dataproc will use the most recent image from the family:
2304 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
2305 # 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.
2306 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
2307 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
2308 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
2309 },
2310 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
2311 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
2312 &quot;A String&quot;,
2313 ],
2314 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
2315 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
2316 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
2317 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
2318 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
2319 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
2320 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
2321 },
2322 ],
2323 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
2324 },
2325 &quot;secondaryWorkerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for additional worker instances in a cluster.
2326 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
2327 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
2328 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
2329 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
2330 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
2331 },
2332 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
2333 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
2334 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
2335 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
2336 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
2337 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
2338 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
2339 # projects/[project_id]/global/images/[image-id]
2340 # image-idImage family examples. Dataproc will use the most recent image from the family:
2341 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
2342 # 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.
2343 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
2344 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
2345 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
2346 },
2347 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
2348 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
2349 &quot;A String&quot;,
2350 ],
2351 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
2352 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
2353 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
2354 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
2355 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
2356 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
2357 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
2358 },
2359 ],
2360 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
2361 },
2362 },
2363 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters.
2364 },
2365 },
2366 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time template was last updated.
2367 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.
2368 # For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}
2369 # For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}
2370 &quot;parameters&quot;: [ # Optional. emplate parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.
2371 { # A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector)
2372 &quot;validation&quot;: { # Configuration for parameter validation. # Optional. Validation rules to be applied to this parameter&#x27;s value.
2373 &quot;values&quot;: { # Validation based on a list of allowed values. # Validation based on a list of allowed values.
2374 &quot;values&quot;: [ # Required. List of allowed values for the parameter.
2375 &quot;A String&quot;,
2376 ],
2377 },
2378 &quot;regex&quot;: { # Validation based on regular expressions. # Validation based on regular expressions.
2379 &quot;regexes&quot;: [ # Required. RE2 regular expressions used to validate the parameter&#x27;s value. The value must match the regex in its entirety (substring matches are not sufficient).
2380 &quot;A String&quot;,
2381 ],
2382 },
2383 },
2384 &quot;fields&quot;: [ # Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter&#x27;s list of field paths.A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template&#x27;s cluster selector would be specified as placement.clusterSelector.zone.Also, field paths can reference fields using the following syntax:
2385 # Values in maps can be referenced by key:
2386 # labels&#x27;key&#x27;
2387 # placement.clusterSelector.clusterLabels&#x27;key&#x27;
2388 # placement.managedCluster.labels&#x27;key&#x27;
2389 # placement.clusterSelector.clusterLabels&#x27;key&#x27;
2390 # jobs&#x27;step-id&#x27;.labels&#x27;key&#x27;
2391 # Jobs in the jobs list can be referenced by step-id:
2392 # jobs&#x27;step-id&#x27;.hadoopJob.mainJarFileUri
2393 # jobs&#x27;step-id&#x27;.hiveJob.queryFileUri
2394 # jobs&#x27;step-id&#x27;.pySparkJob.mainPythonFileUri
2395 # jobs&#x27;step-id&#x27;.hadoopJob.jarFileUris0
2396 # jobs&#x27;step-id&#x27;.hadoopJob.archiveUris0
2397 # jobs&#x27;step-id&#x27;.hadoopJob.fileUris0
2398 # jobs&#x27;step-id&#x27;.pySparkJob.pythonFileUris0
2399 # Items in repeated fields can be referenced by a zero-based index:
2400 # jobs&#x27;step-id&#x27;.sparkJob.args0
2401 # Other examples:
2402 # jobs&#x27;step-id&#x27;.hadoopJob.properties&#x27;key&#x27;
2403 # jobs&#x27;step-id&#x27;.hadoopJob.args0
2404 # jobs&#x27;step-id&#x27;.hiveJob.scriptVariables&#x27;key&#x27;
2405 # jobs&#x27;step-id&#x27;.hadoopJob.mainJarFileUri
2406 # placement.clusterSelector.zoneIt may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid:
2407 # placement.clusterSelector.clusterLabels
2408 # jobs&#x27;step-id&#x27;.sparkJob.args
2409 &quot;A String&quot;,
2410 ],
2411 &quot;name&quot;: &quot;A String&quot;, # Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters.
2412 &quot;description&quot;: &quot;A String&quot;, # Optional. Brief description of the parameter. Must not exceed 1024 characters.
2413 },
2414 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002415}
2416
2417 requestId: string, Optional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
2418 x__xgafv: string, V1 error format.
2419 Allowed values
2420 1 - v1 error format
2421 2 - v2 error format
2422
2423Returns:
2424 An object of the form:
2425
2426 { # This resource represents a long-running operation that is the result of a network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002427 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
2428 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2429 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002430 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
2431 &quot;response&quot;: { # 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.
2432 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002433 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002434 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
2435 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
2436 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2437 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2438 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002439 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002440 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002441 },
2442 ],
2443 },
2444 }</pre>
2445</div>
2446
2447<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07002448 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002449 <pre>Lists workflows that match the specified filter in the request.
2450
2451Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07002452 parent: string, Required. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.
2453For projects.regions.workflowTemplates,list, the resource name of the region has the following format: projects/{project_id}/regions/{region}
2454For projects.locations.workflowTemplates.list, the resource name of the location has the following format: projects/{project_id}/locations/{location} (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002455 pageToken: string, Optional. The page token, returned by a previous call, to request the next page of results.
Bu Sun Kim65020912020-05-20 12:08:20 -07002456 pageSize: integer, Optional. The maximum number of results to return in each response.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002457 x__xgafv: string, V1 error format.
2458 Allowed values
2459 1 - v1 error format
2460 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002461
2462Returns:
2463 An object of the form:
2464
2465 { # A response to a request to list workflow templates in a project.
Bu Sun Kim65020912020-05-20 12:08:20 -07002466 &quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent &lt;code&gt;ListWorkflowTemplatesRequest&lt;/code&gt;.
2467 &quot;templates&quot;: [ # Output only. WorkflowTemplates list.
Dan O'Mearadd494642020-05-01 07:42:23 -07002468 { # A Dataproc workflow template resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07002469 &quot;id&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002470 &quot;version&quot;: 42, # Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request.
Bu Sun Kim65020912020-05-20 12:08:20 -07002471 &quot;jobs&quot;: [ # Required. The Directed Acyclic Graph of Jobs to submit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002472 { # A job executed by the workflow.
Bu Sun Kim65020912020-05-20 12:08:20 -07002473 &quot;prestoJob&quot;: { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
2474 &quot;outputFormat&quot;: &quot;A String&quot;, # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
2475 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002476 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07002477 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2478 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
2479 # &quot;hiveJob&quot;: {
2480 # &quot;queryList&quot;: {
2481 # &quot;queries&quot;: [
2482 # &quot;query1&quot;,
2483 # &quot;query2&quot;,
2484 # &quot;query3;query4&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002485 # ]
2486 # }
2487 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07002488 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002489 ],
2490 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002491 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
2492 &quot;A String&quot;,
2493 ],
2494 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2495 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
2496 &quot;a_key&quot;: &quot;A String&quot;,
2497 },
2498 },
2499 &quot;properties&quot;: { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
2500 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002501 },
2502 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002503 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
2504 &quot;maxFailuresPerHour&quot;: 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10.
2505 },
2506 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002507 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2508 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
2509 &quot;a_key&quot;: &quot;A String&quot;,
2510 },
2511 },
2512 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.
2513 &quot;a_key&quot;: &quot;A String&quot;,
2514 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002515 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
2516 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
2517 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2518 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
2519 # &quot;hiveJob&quot;: {
2520 # &quot;queryList&quot;: {
2521 # &quot;queries&quot;: [
2522 # &quot;query1&quot;,
2523 # &quot;query2&quot;,
2524 # &quot;query3;query4&quot;,
2525 # ]
2526 # }
2527 # }
2528 &quot;A String&quot;,
2529 ],
2530 },
2531 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
2532 &quot;A String&quot;,
2533 ],
2534 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
2535 &quot;a_key&quot;: &quot;A String&quot;,
2536 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002537 },
2538 &quot;stepId&quot;: &quot;A String&quot;, # Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.
2539 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
2540 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07002541 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2542 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
2543 # &quot;hiveJob&quot;: {
2544 # &quot;queryList&quot;: {
2545 # &quot;queries&quot;: [
2546 # &quot;query1&quot;,
2547 # &quot;query2&quot;,
2548 # &quot;query3;query4&quot;,
2549 # ]
2550 # }
2551 # }
2552 &quot;A String&quot;,
2553 ],
2554 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002555 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07002556 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
2557 &quot;A String&quot;,
2558 ],
2559 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
2560 &quot;a_key&quot;: &quot;A String&quot;,
2561 },
2562 &quot;properties&quot;: { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.
2563 &quot;a_key&quot;: &quot;A String&quot;,
2564 },
2565 },
2566 &quot;prerequisiteStepIds&quot;: [ # Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow.
2567 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002568 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002569 &quot;labels&quot;: { # Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job.
2570 &quot;a_key&quot;: &quot;A String&quot;,
2571 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002572 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
Bu Sun Kim65020912020-05-20 12:08:20 -07002573 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
2574 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2575 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
2576 # &quot;hiveJob&quot;: {
2577 # &quot;queryList&quot;: {
2578 # &quot;queries&quot;: [
2579 # &quot;query1&quot;,
2580 # &quot;query2&quot;,
2581 # &quot;query3;query4&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002582 # ]
2583 # }
2584 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07002585 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002586 ],
2587 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002588 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
2589 &quot;a_key&quot;: &quot;A String&quot;,
2590 },
2591 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
2592 &quot;A String&quot;,
2593 ],
2594 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2595 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
2596 &quot;a_key&quot;: &quot;A String&quot;,
2597 },
2598 },
2599 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Spark SQL&#x27;s SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
2600 &quot;a_key&quot;: &quot;A String&quot;,
2601 },
2602 },
2603 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
2604 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
2605 &quot;A String&quot;,
2606 ],
2607 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
2608 &quot;A String&quot;,
2609 ],
2610 &quot;mainClass&quot;: &quot;A String&quot;, # The name of the driver&#x27;s main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.
2611 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
2612 &quot;A String&quot;,
2613 ],
2614 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
2615 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
2616 &quot;A String&quot;,
2617 ],
2618 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2619 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
2620 &quot;a_key&quot;: &quot;A String&quot;,
2621 },
2622 },
2623 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
2624 &quot;a_key&quot;: &quot;A String&quot;,
2625 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002626 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002627 &quot;pysparkJob&quot;: { # A Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Optional. Job is a PySpark job.
2628 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
2629 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002630 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002631 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2632 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
2633 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002634 },
2635 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002636 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
2637 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002638 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002639 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
2640 &quot;A String&quot;,
2641 ],
2642 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks.
2643 &quot;A String&quot;,
2644 ],
2645 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
2646 &quot;A String&quot;,
2647 ],
2648 &quot;mainPythonFileUri&quot;: &quot;A String&quot;, # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file.
2649 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
2650 &quot;A String&quot;,
2651 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07002652 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002653 &quot;sparkRJob&quot;: { # A Dataproc job for running Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN. # Optional. Job is a SparkR job.
2654 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2655 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
2656 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002657 },
2658 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002659 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure SparkR. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
2660 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002661 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002662 &quot;mainRFileUri&quot;: &quot;A String&quot;, # Required. The HCFS URI of the main R file to use as the driver. Must be a .R file.
2663 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
2664 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002665 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002666 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of R drivers and distributed tasks. Useful for naively parallel tasks.
2667 &quot;A String&quot;,
2668 ],
2669 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
2670 &quot;A String&quot;,
2671 ],
2672 },
2673 &quot;hadoopJob&quot;: { # A Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). # Optional. Job is a Hadoop job.
2674 &quot;mainClass&quot;: &quot;A String&quot;, # The name of the driver&#x27;s main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris.
2675 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
2676 &quot;A String&quot;,
2677 ],
2678 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file containing the main class. Examples: &#x27;gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar&#x27; &#x27;hdfs:/tmp/test-samples/custom-wordcount.jar&#x27; &#x27;file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar&#x27;
2679 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
2680 &quot;A String&quot;,
2681 ],
2682 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2683 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
2684 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002685 },
2686 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002687 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
2688 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002689 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002690 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
2691 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002692 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002693 &quot;fileUris&quot;: [ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
2694 &quot;A String&quot;,
2695 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002696 },
2697 },
2698 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002699 &quot;labels&quot;: { # Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be associated with a template.
2700 &quot;a_key&quot;: &quot;A String&quot;,
2701 },
2702 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time template was created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002703 &quot;placement&quot;: { # Specifies workflow execution target.Either managed_cluster or cluster_selector is required. # Required. WorkflowTemplate scheduling information.
2704 &quot;clusterSelector&quot;: { # A selector that chooses target cluster for jobs based on metadata. # Optional. A selector that chooses target cluster for jobs based on metadata.The selector is evaluated at the time each job is submitted.
2705 &quot;zone&quot;: &quot;A String&quot;, # Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used.
2706 &quot;clusterLabels&quot;: { # Required. The cluster labels. Cluster must have all labels to match.
2707 &quot;a_key&quot;: &quot;A String&quot;,
2708 },
2709 },
2710 &quot;managedCluster&quot;: { # Cluster that is managed by the workflow. # A cluster that is managed by the workflow.
2711 &quot;labels&quot;: { # Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster.
2712 &quot;a_key&quot;: &quot;A String&quot;,
2713 },
2714 &quot;config&quot;: { # The cluster config. # Required. The cluster configuration.
2715 &quot;encryptionConfig&quot;: { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster.
2716 &quot;gcePdKmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster.
2717 },
2718 &quot;securityConfig&quot;: { # Security related configuration, including Kerberos. # Optional. Security settings for the cluster.
2719 &quot;kerberosConfig&quot;: { # Specifies Kerberos related configuration. # Kerberos related configuration.
2720 &quot;keyPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc.
2721 &quot;keystorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc.
2722 &quot;crossRealmTrustAdminServer&quot;: &quot;A String&quot;, # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
2723 &quot;kdcDbKeyUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database.
2724 &quot;truststorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc.
2725 &quot;realm&quot;: &quot;A String&quot;, # Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm.
2726 &quot;enableKerberos&quot;: True or False, # Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster.
2727 &quot;truststoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
2728 &quot;crossRealmTrustRealm&quot;: &quot;A String&quot;, # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust.
2729 &quot;rootPrincipalPasswordUri&quot;: &quot;A String&quot;, # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password.
2730 &quot;kmsKeyUri&quot;: &quot;A String&quot;, # Required. The uri of the KMS key used to encrypt various sensitive files.
2731 &quot;crossRealmTrustKdc&quot;: &quot;A String&quot;, # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
2732 &quot;crossRealmTrustSharedPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship.
2733 &quot;tgtLifetimeHours&quot;: 42, # Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used.
2734 &quot;keystoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
2735 },
2736 },
2737 &quot;initializationActions&quot;: [ # Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node&#x27;s role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget):
2738 # ROLE=$(curl -H Metadata-Flavor:Google
2739 # http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
2740 # if [[ &quot;${ROLE}&quot; == &#x27;Master&#x27; ]]; then
2741 # ... master specific actions ...
2742 # else
2743 # ... worker specific actions ...
2744 # fi
2745 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
2746 &quot;executableFile&quot;: &quot;A String&quot;, # Required. Cloud Storage URI of executable file.
2747 &quot;executionTimeout&quot;: &quot;A String&quot;, # Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.
2748 },
2749 ],
2750 &quot;lifecycleConfig&quot;: { # Specifies the cluster auto-delete schedule configuration. # Optional. Lifecycle setting for the cluster.
2751 &quot;autoDeleteTtl&quot;: &quot;A String&quot;, # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).
2752 &quot;idleStartTime&quot;: &quot;A String&quot;, # Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
2753 &quot;autoDeleteTime&quot;: &quot;A String&quot;, # Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
2754 &quot;idleDeleteTtl&quot;: &quot;A String&quot;, # Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).
2755 },
2756 &quot;configBucket&quot;: &quot;A String&quot;, # Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster&#x27;s staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging bucket (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
2757 &quot;workerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for worker instances in a cluster.
2758 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
2759 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
2760 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
2761 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
2762 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
2763 },
2764 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
2765 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
2766 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
2767 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
2768 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
2769 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
2770 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
2771 # projects/[project_id]/global/images/[image-id]
2772 # image-idImage family examples. Dataproc will use the most recent image from the family:
2773 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
2774 # 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.
2775 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
2776 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
2777 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
2778 },
2779 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
2780 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
2781 &quot;A String&quot;,
2782 ],
2783 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
2784 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
2785 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
2786 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
2787 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
2788 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
2789 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
2790 },
2791 ],
2792 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
2793 },
2794 &quot;gceClusterConfig&quot;: { # Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster. # Optional. The shared Compute Engine config settings for all instances in a cluster.
2795 &quot;subnetworkUri&quot;: &quot;A String&quot;, # 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:
2796 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0
2797 # projects/[project_id]/regions/us-east1/subnetworks/sub0
2798 # sub0
2799 &quot;networkUri&quot;: &quot;A String&quot;, # 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 &quot;default&quot; network of the project is used, if it exists. Cannot be a &quot;Custom Subnet Network&quot; (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more information).A full URL, partial URI, or short name are valid. Examples:
2800 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default
2801 # projects/[project_id]/regions/global/default
2802 # default
2803 &quot;zoneUri&quot;: &quot;A String&quot;, # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the &quot;global&quot; region. If omitted in a non-global Dataproc region, the 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:
2804 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
2805 # projects/[project_id]/zones/[zone]
2806 # us-central1-f
2807 &quot;metadata&quot;: { # The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
2808 &quot;a_key&quot;: &quot;A String&quot;,
2809 },
2810 &quot;internalIpOnly&quot;: True or False, # Optional. If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
2811 &quot;reservationAffinity&quot;: { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation.
2812 &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of reservation resource.
2813 &quot;values&quot;: [ # Optional. Corresponds to the label values of reservation resource.
2814 &quot;A String&quot;,
2815 ],
2816 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Optional. Type of reservation to consume
2817 },
2818 &quot;serviceAccountScopes&quot;: [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included:
2819 # https://www.googleapis.com/auth/cloud.useraccounts.readonly
2820 # https://www.googleapis.com/auth/devstorage.read_write
2821 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:
2822 # https://www.googleapis.com/auth/bigquery
2823 # https://www.googleapis.com/auth/bigtable.admin.table
2824 # https://www.googleapis.com/auth/bigtable.data
2825 # https://www.googleapis.com/auth/devstorage.full_control
2826 &quot;A String&quot;,
2827 ],
2828 &quot;tags&quot;: [ # The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
2829 &quot;A String&quot;,
2830 ],
2831 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
2832 },
2833 &quot;softwareConfig&quot;: { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster.
2834 &quot;optionalComponents&quot;: [ # Optional. The set of components to activate on the cluster.
2835 &quot;A String&quot;,
2836 ],
2837 &quot;imageVersion&quot;: &quot;A String&quot;, # 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_cloud_dataproc_versions), such as &quot;1.2&quot; (including a subminor version, such as &quot;1.2.29&quot;), or the &quot;preview&quot; version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
2838 &quot;properties&quot;: { # Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings:
2839 # capacity-scheduler: capacity-scheduler.xml
2840 # core: core-site.xml
2841 # distcp: distcp-default.xml
2842 # hdfs: hdfs-site.xml
2843 # hive: hive-site.xml
2844 # mapred: mapred-site.xml
2845 # pig: pig.properties
2846 # spark: spark-defaults.conf
2847 # yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
2848 &quot;a_key&quot;: &quot;A String&quot;,
2849 },
2850 },
2851 &quot;autoscalingConfig&quot;: { # Autoscaling Policy config associated with the cluster. # Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
2852 &quot;policyUri&quot;: &quot;A String&quot;, # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples:
2853 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]
2854 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Dataproc region.
2855 },
2856 &quot;masterConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for the master instance in a cluster.
2857 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
2858 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
2859 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
2860 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
2861 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
2862 },
2863 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
2864 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
2865 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
2866 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
2867 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
2868 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
2869 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
2870 # projects/[project_id]/global/images/[image-id]
2871 # image-idImage family examples. Dataproc will use the most recent image from the family:
2872 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
2873 # 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.
2874 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
2875 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
2876 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
2877 },
2878 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
2879 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
2880 &quot;A String&quot;,
2881 ],
2882 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
2883 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
2884 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
2885 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
2886 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
2887 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
2888 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
2889 },
2890 ],
2891 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
2892 },
2893 &quot;secondaryWorkerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for additional worker instances in a cluster.
2894 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
2895 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
2896 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
2897 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
2898 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
2899 },
2900 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
2901 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
2902 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
2903 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
2904 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
2905 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
2906 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
2907 # projects/[project_id]/global/images/[image-id]
2908 # image-idImage family examples. Dataproc will use the most recent image from the family:
2909 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
2910 # 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.
2911 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
2912 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
2913 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
2914 },
2915 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
2916 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
2917 &quot;A String&quot;,
2918 ],
2919 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
2920 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
2921 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
2922 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
2923 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
2924 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
2925 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
2926 },
2927 ],
2928 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
2929 },
2930 },
2931 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters.
2932 },
2933 },
2934 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time template was last updated.
2935 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.
2936 # For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}
2937 # For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}
2938 &quot;parameters&quot;: [ # Optional. emplate parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.
2939 { # A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector)
2940 &quot;validation&quot;: { # Configuration for parameter validation. # Optional. Validation rules to be applied to this parameter&#x27;s value.
2941 &quot;values&quot;: { # Validation based on a list of allowed values. # Validation based on a list of allowed values.
2942 &quot;values&quot;: [ # Required. List of allowed values for the parameter.
2943 &quot;A String&quot;,
2944 ],
2945 },
2946 &quot;regex&quot;: { # Validation based on regular expressions. # Validation based on regular expressions.
2947 &quot;regexes&quot;: [ # Required. RE2 regular expressions used to validate the parameter&#x27;s value. The value must match the regex in its entirety (substring matches are not sufficient).
2948 &quot;A String&quot;,
2949 ],
2950 },
2951 },
2952 &quot;fields&quot;: [ # Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter&#x27;s list of field paths.A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template&#x27;s cluster selector would be specified as placement.clusterSelector.zone.Also, field paths can reference fields using the following syntax:
2953 # Values in maps can be referenced by key:
2954 # labels&#x27;key&#x27;
2955 # placement.clusterSelector.clusterLabels&#x27;key&#x27;
2956 # placement.managedCluster.labels&#x27;key&#x27;
2957 # placement.clusterSelector.clusterLabels&#x27;key&#x27;
2958 # jobs&#x27;step-id&#x27;.labels&#x27;key&#x27;
2959 # Jobs in the jobs list can be referenced by step-id:
2960 # jobs&#x27;step-id&#x27;.hadoopJob.mainJarFileUri
2961 # jobs&#x27;step-id&#x27;.hiveJob.queryFileUri
2962 # jobs&#x27;step-id&#x27;.pySparkJob.mainPythonFileUri
2963 # jobs&#x27;step-id&#x27;.hadoopJob.jarFileUris0
2964 # jobs&#x27;step-id&#x27;.hadoopJob.archiveUris0
2965 # jobs&#x27;step-id&#x27;.hadoopJob.fileUris0
2966 # jobs&#x27;step-id&#x27;.pySparkJob.pythonFileUris0
2967 # Items in repeated fields can be referenced by a zero-based index:
2968 # jobs&#x27;step-id&#x27;.sparkJob.args0
2969 # Other examples:
2970 # jobs&#x27;step-id&#x27;.hadoopJob.properties&#x27;key&#x27;
2971 # jobs&#x27;step-id&#x27;.hadoopJob.args0
2972 # jobs&#x27;step-id&#x27;.hiveJob.scriptVariables&#x27;key&#x27;
2973 # jobs&#x27;step-id&#x27;.hadoopJob.mainJarFileUri
2974 # placement.clusterSelector.zoneIt may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid:
2975 # placement.clusterSelector.clusterLabels
2976 # jobs&#x27;step-id&#x27;.sparkJob.args
2977 &quot;A String&quot;,
2978 ],
2979 &quot;name&quot;: &quot;A String&quot;, # Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters.
2980 &quot;description&quot;: &quot;A String&quot;, # Optional. Brief description of the parameter. Must not exceed 1024 characters.
2981 },
2982 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002983 },
2984 ],
2985 }</pre>
2986</div>
2987
2988<div class="method">
2989 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2990 <pre>Retrieves the next page of results.
2991
2992Args:
2993 previous_request: The request for the previous page. (required)
2994 previous_response: The response from the request for the previous page. (required)
2995
2996Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002997 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002998 page. Returns None if there are no more items in the collection.
2999 </pre>
3000</div>
3001
3002<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003003 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003004 <pre>Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003005
3006Args:
3007 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003008 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003009 The object takes the form of:
3010
3011{ # Request message for SetIamPolicy method.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003012 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example: # REQUIRED: The complete policy to be applied to the resource. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003013 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07003014 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003015 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07003016 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
3017 # &quot;members&quot;: [
3018 # &quot;user:mike@example.com&quot;,
3019 # &quot;group:admins@example.com&quot;,
3020 # &quot;domain:google.com&quot;,
3021 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003022 # ]
3023 # },
3024 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07003025 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003026 # &quot;members&quot;: [
3027 # &quot;user:eve@example.com&quot;
3028 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003029 # &quot;condition&quot;: {
3030 # &quot;title&quot;: &quot;expirable access&quot;,
3031 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
3032 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003033 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003034 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07003035 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003036 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
3037 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003038 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07003039 # YAML example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003040 # bindings:
3041 # - members:
3042 # - user:mike@example.com
3043 # - group:admins@example.com
3044 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07003045 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
3046 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003047 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07003048 # - user:eve@example.com
3049 # role: roles/resourcemanager.organizationViewer
3050 # condition:
3051 # title: expirable access
3052 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07003053 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07003054 # - etag: BwWWja0YfJA=
3055 # - version: 3
3056 # For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003057 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
3058 &quot;version&quot;: 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations:
3059 # Getting a policy that includes a conditional role binding
3060 # Adding a conditional role binding to a policy
3061 # Changing a conditional role binding in a policy
3062 # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07003063 &quot;bindings&quot;: [ # Associates a list of members to a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003064 { # Associates members with a role.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003065 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): # The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07003066 # title: &quot;Summary size limit&quot;
3067 # description: &quot;Determines if a summary is less than 100 chars&quot;
3068 # expression: &quot;document.summary.size() &lt; 100&quot;
3069 # Example (Equality):
3070 # title: &quot;Requestor is owner&quot;
3071 # description: &quot;Determines if requestor is the document owner&quot;
3072 # expression: &quot;document.owner == request.auth.claims.email&quot;
3073 # Example (Logic):
3074 # title: &quot;Public documents&quot;
3075 # description: &quot;Determine whether the document should be publicly visible&quot;
3076 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
3077 # Example (Data Manipulation):
3078 # title: &quot;Notification string&quot;
3079 # description: &quot;Create a notification string with a timestamp.&quot;
3080 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
3081 # The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
3082 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
3083 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3084 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
3085 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
3086 },
3087 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. members can have the following values:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003088 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
3089 # allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account.
Dan O'Mearadd494642020-05-01 07:42:23 -07003090 # user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003091 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
3092 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
Dan O'Mearadd494642020-05-01 07:42:23 -07003093 # deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding.
3094 # deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding.
3095 # deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003096 # domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
Bu Sun Kim65020912020-05-20 12:08:20 -07003097 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003098 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003099 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003100 },
3101 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003102 },
3103 }
3104
3105 x__xgafv: string, V1 error format.
3106 Allowed values
3107 1 - v1 error format
3108 2 - v2 error format
3109
3110Returns:
3111 An object of the form:
3112
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003113 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003114 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07003115 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003116 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07003117 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
3118 # &quot;members&quot;: [
3119 # &quot;user:mike@example.com&quot;,
3120 # &quot;group:admins@example.com&quot;,
3121 # &quot;domain:google.com&quot;,
3122 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003123 # ]
3124 # },
3125 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07003126 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003127 # &quot;members&quot;: [
3128 # &quot;user:eve@example.com&quot;
3129 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003130 # &quot;condition&quot;: {
3131 # &quot;title&quot;: &quot;expirable access&quot;,
3132 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
3133 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003134 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003135 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07003136 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003137 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
3138 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003139 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07003140 # YAML example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003141 # bindings:
3142 # - members:
3143 # - user:mike@example.com
3144 # - group:admins@example.com
3145 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07003146 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
3147 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003148 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07003149 # - user:eve@example.com
3150 # role: roles/resourcemanager.organizationViewer
3151 # condition:
3152 # title: expirable access
3153 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07003154 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07003155 # - etag: BwWWja0YfJA=
3156 # - version: 3
3157 # For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003158 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
3159 &quot;version&quot;: 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations:
3160 # Getting a policy that includes a conditional role binding
3161 # Adding a conditional role binding to a policy
3162 # Changing a conditional role binding in a policy
3163 # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07003164 &quot;bindings&quot;: [ # Associates a list of members to a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003165 { # Associates members with a role.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003166 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): # The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07003167 # title: &quot;Summary size limit&quot;
3168 # description: &quot;Determines if a summary is less than 100 chars&quot;
3169 # expression: &quot;document.summary.size() &lt; 100&quot;
3170 # Example (Equality):
3171 # title: &quot;Requestor is owner&quot;
3172 # description: &quot;Determines if requestor is the document owner&quot;
3173 # expression: &quot;document.owner == request.auth.claims.email&quot;
3174 # Example (Logic):
3175 # title: &quot;Public documents&quot;
3176 # description: &quot;Determine whether the document should be publicly visible&quot;
3177 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
3178 # Example (Data Manipulation):
3179 # title: &quot;Notification string&quot;
3180 # description: &quot;Create a notification string with a timestamp.&quot;
3181 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
3182 # The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
3183 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
3184 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3185 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
3186 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
3187 },
3188 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. members can have the following values:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003189 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
3190 # allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account.
Dan O'Mearadd494642020-05-01 07:42:23 -07003191 # user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003192 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
3193 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
Dan O'Mearadd494642020-05-01 07:42:23 -07003194 # deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding.
3195 # deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding.
3196 # deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003197 # domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
Bu Sun Kim65020912020-05-20 12:08:20 -07003198 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003199 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003200 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003201 },
3202 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003203 }</pre>
3204</div>
3205
3206<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003207 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -07003208 <pre>Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may &quot;fail open&quot; without warning.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003209
3210Args:
3211 resource: string, REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003212 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003213 The object takes the form of:
3214
3215{ # Request message for TestIamPermissions method.
Bu Sun Kim65020912020-05-20 12:08:20 -07003216 &quot;permissions&quot;: [ # The set of permissions to check for the resource. Permissions with wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more information see IAM Overview (https://cloud.google.com/iam/docs/overview#permissions).
3217 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003218 ],
3219 }
3220
3221 x__xgafv: string, V1 error format.
3222 Allowed values
3223 1 - v1 error format
3224 2 - v2 error format
3225
3226Returns:
3227 An object of the form:
3228
3229 { # Response message for TestIamPermissions method.
Bu Sun Kim65020912020-05-20 12:08:20 -07003230 &quot;permissions&quot;: [ # A subset of TestPermissionsRequest.permissions that the caller is allowed.
3231 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003232 ],
3233 }</pre>
3234</div>
3235
3236<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003237 <code class="details" id="update">update(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003238 <pre>Updates (replaces) workflow template. The updated template must contain version that matches the current server version.
3239
3240Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07003241 name: string, Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.
3242For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}
3243For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id} (required)
3244 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003245 The object takes the form of:
3246
Dan O'Mearadd494642020-05-01 07:42:23 -07003247{ # A Dataproc workflow template resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003248 &quot;id&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003249 &quot;version&quot;: 42, # Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request.
Bu Sun Kim65020912020-05-20 12:08:20 -07003250 &quot;jobs&quot;: [ # Required. The Directed Acyclic Graph of Jobs to submit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003251 { # A job executed by the workflow.
Bu Sun Kim65020912020-05-20 12:08:20 -07003252 &quot;prestoJob&quot;: { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
3253 &quot;outputFormat&quot;: &quot;A String&quot;, # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
3254 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003255 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07003256 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
3257 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
3258 # &quot;hiveJob&quot;: {
3259 # &quot;queryList&quot;: {
3260 # &quot;queries&quot;: [
3261 # &quot;query1&quot;,
3262 # &quot;query2&quot;,
3263 # &quot;query3;query4&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003264 # ]
3265 # }
3266 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07003267 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003268 ],
3269 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003270 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
3271 &quot;A String&quot;,
3272 ],
3273 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
3274 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
3275 &quot;a_key&quot;: &quot;A String&quot;,
3276 },
3277 },
3278 &quot;properties&quot;: { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
3279 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003280 },
3281 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003282 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
3283 &quot;maxFailuresPerHour&quot;: 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10.
3284 },
3285 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003286 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
3287 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
3288 &quot;a_key&quot;: &quot;A String&quot;,
3289 },
3290 },
3291 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.
3292 &quot;a_key&quot;: &quot;A String&quot;,
3293 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003294 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
3295 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
3296 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
3297 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
3298 # &quot;hiveJob&quot;: {
3299 # &quot;queryList&quot;: {
3300 # &quot;queries&quot;: [
3301 # &quot;query1&quot;,
3302 # &quot;query2&quot;,
3303 # &quot;query3;query4&quot;,
3304 # ]
3305 # }
3306 # }
3307 &quot;A String&quot;,
3308 ],
3309 },
3310 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
3311 &quot;A String&quot;,
3312 ],
3313 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
3314 &quot;a_key&quot;: &quot;A String&quot;,
3315 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003316 },
3317 &quot;stepId&quot;: &quot;A String&quot;, # Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.
3318 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
3319 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07003320 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
3321 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
3322 # &quot;hiveJob&quot;: {
3323 # &quot;queryList&quot;: {
3324 # &quot;queries&quot;: [
3325 # &quot;query1&quot;,
3326 # &quot;query2&quot;,
3327 # &quot;query3;query4&quot;,
3328 # ]
3329 # }
3330 # }
3331 &quot;A String&quot;,
3332 ],
3333 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003334 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07003335 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
3336 &quot;A String&quot;,
3337 ],
3338 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
3339 &quot;a_key&quot;: &quot;A String&quot;,
3340 },
3341 &quot;properties&quot;: { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.
3342 &quot;a_key&quot;: &quot;A String&quot;,
3343 },
3344 },
3345 &quot;prerequisiteStepIds&quot;: [ # Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow.
3346 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003347 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003348 &quot;labels&quot;: { # Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job.
3349 &quot;a_key&quot;: &quot;A String&quot;,
3350 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003351 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
Bu Sun Kim65020912020-05-20 12:08:20 -07003352 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
3353 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
3354 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
3355 # &quot;hiveJob&quot;: {
3356 # &quot;queryList&quot;: {
3357 # &quot;queries&quot;: [
3358 # &quot;query1&quot;,
3359 # &quot;query2&quot;,
3360 # &quot;query3;query4&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003361 # ]
3362 # }
3363 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07003364 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003365 ],
3366 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003367 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
3368 &quot;a_key&quot;: &quot;A String&quot;,
3369 },
3370 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
3371 &quot;A String&quot;,
3372 ],
3373 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
3374 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
3375 &quot;a_key&quot;: &quot;A String&quot;,
3376 },
3377 },
3378 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Spark SQL&#x27;s SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
3379 &quot;a_key&quot;: &quot;A String&quot;,
3380 },
3381 },
3382 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
3383 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
3384 &quot;A String&quot;,
3385 ],
3386 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
3387 &quot;A String&quot;,
3388 ],
3389 &quot;mainClass&quot;: &quot;A String&quot;, # The name of the driver&#x27;s main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.
3390 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
3391 &quot;A String&quot;,
3392 ],
3393 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
3394 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
3395 &quot;A String&quot;,
3396 ],
3397 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
3398 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
3399 &quot;a_key&quot;: &quot;A String&quot;,
3400 },
3401 },
3402 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
3403 &quot;a_key&quot;: &quot;A String&quot;,
3404 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003405 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003406 &quot;pysparkJob&quot;: { # A Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Optional. Job is a PySpark job.
3407 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
3408 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003409 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003410 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
3411 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
3412 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003413 },
3414 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003415 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
3416 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003417 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003418 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
3419 &quot;A String&quot;,
3420 ],
3421 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks.
3422 &quot;A String&quot;,
3423 ],
3424 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
3425 &quot;A String&quot;,
3426 ],
3427 &quot;mainPythonFileUri&quot;: &quot;A String&quot;, # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file.
3428 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
3429 &quot;A String&quot;,
3430 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07003431 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003432 &quot;sparkRJob&quot;: { # A Dataproc job for running Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN. # Optional. Job is a SparkR job.
3433 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
3434 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
3435 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003436 },
3437 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003438 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure SparkR. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
3439 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003440 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003441 &quot;mainRFileUri&quot;: &quot;A String&quot;, # Required. The HCFS URI of the main R file to use as the driver. Must be a .R file.
3442 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
3443 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003444 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003445 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of R drivers and distributed tasks. Useful for naively parallel tasks.
3446 &quot;A String&quot;,
3447 ],
3448 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
3449 &quot;A String&quot;,
3450 ],
3451 },
3452 &quot;hadoopJob&quot;: { # A Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). # Optional. Job is a Hadoop job.
3453 &quot;mainClass&quot;: &quot;A String&quot;, # The name of the driver&#x27;s main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris.
3454 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
3455 &quot;A String&quot;,
3456 ],
3457 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file containing the main class. Examples: &#x27;gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar&#x27; &#x27;hdfs:/tmp/test-samples/custom-wordcount.jar&#x27; &#x27;file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar&#x27;
3458 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
3459 &quot;A String&quot;,
3460 ],
3461 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
3462 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
3463 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003464 },
3465 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003466 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
3467 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003468 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003469 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
3470 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003471 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003472 &quot;fileUris&quot;: [ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
3473 &quot;A String&quot;,
3474 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003475 },
3476 },
3477 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003478 &quot;labels&quot;: { # Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be associated with a template.
3479 &quot;a_key&quot;: &quot;A String&quot;,
3480 },
3481 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time template was created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003482 &quot;placement&quot;: { # Specifies workflow execution target.Either managed_cluster or cluster_selector is required. # Required. WorkflowTemplate scheduling information.
3483 &quot;clusterSelector&quot;: { # A selector that chooses target cluster for jobs based on metadata. # Optional. A selector that chooses target cluster for jobs based on metadata.The selector is evaluated at the time each job is submitted.
3484 &quot;zone&quot;: &quot;A String&quot;, # Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used.
3485 &quot;clusterLabels&quot;: { # Required. The cluster labels. Cluster must have all labels to match.
3486 &quot;a_key&quot;: &quot;A String&quot;,
3487 },
3488 },
3489 &quot;managedCluster&quot;: { # Cluster that is managed by the workflow. # A cluster that is managed by the workflow.
3490 &quot;labels&quot;: { # Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster.
3491 &quot;a_key&quot;: &quot;A String&quot;,
3492 },
3493 &quot;config&quot;: { # The cluster config. # Required. The cluster configuration.
3494 &quot;encryptionConfig&quot;: { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster.
3495 &quot;gcePdKmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster.
3496 },
3497 &quot;securityConfig&quot;: { # Security related configuration, including Kerberos. # Optional. Security settings for the cluster.
3498 &quot;kerberosConfig&quot;: { # Specifies Kerberos related configuration. # Kerberos related configuration.
3499 &quot;keyPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc.
3500 &quot;keystorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc.
3501 &quot;crossRealmTrustAdminServer&quot;: &quot;A String&quot;, # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
3502 &quot;kdcDbKeyUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database.
3503 &quot;truststorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc.
3504 &quot;realm&quot;: &quot;A String&quot;, # Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm.
3505 &quot;enableKerberos&quot;: True or False, # Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster.
3506 &quot;truststoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
3507 &quot;crossRealmTrustRealm&quot;: &quot;A String&quot;, # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust.
3508 &quot;rootPrincipalPasswordUri&quot;: &quot;A String&quot;, # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password.
3509 &quot;kmsKeyUri&quot;: &quot;A String&quot;, # Required. The uri of the KMS key used to encrypt various sensitive files.
3510 &quot;crossRealmTrustKdc&quot;: &quot;A String&quot;, # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
3511 &quot;crossRealmTrustSharedPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship.
3512 &quot;tgtLifetimeHours&quot;: 42, # Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used.
3513 &quot;keystoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
3514 },
3515 },
3516 &quot;initializationActions&quot;: [ # Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node&#x27;s role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget):
3517 # ROLE=$(curl -H Metadata-Flavor:Google
3518 # http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
3519 # if [[ &quot;${ROLE}&quot; == &#x27;Master&#x27; ]]; then
3520 # ... master specific actions ...
3521 # else
3522 # ... worker specific actions ...
3523 # fi
3524 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
3525 &quot;executableFile&quot;: &quot;A String&quot;, # Required. Cloud Storage URI of executable file.
3526 &quot;executionTimeout&quot;: &quot;A String&quot;, # Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.
3527 },
3528 ],
3529 &quot;lifecycleConfig&quot;: { # Specifies the cluster auto-delete schedule configuration. # Optional. Lifecycle setting for the cluster.
3530 &quot;autoDeleteTtl&quot;: &quot;A String&quot;, # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).
3531 &quot;idleStartTime&quot;: &quot;A String&quot;, # Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
3532 &quot;autoDeleteTime&quot;: &quot;A String&quot;, # Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
3533 &quot;idleDeleteTtl&quot;: &quot;A String&quot;, # Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).
3534 },
3535 &quot;configBucket&quot;: &quot;A String&quot;, # Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster&#x27;s staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging bucket (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
3536 &quot;workerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for worker instances in a cluster.
3537 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
3538 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
3539 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
3540 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
3541 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
3542 },
3543 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
3544 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
3545 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
3546 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
3547 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
3548 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
3549 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
3550 # projects/[project_id]/global/images/[image-id]
3551 # image-idImage family examples. Dataproc will use the most recent image from the family:
3552 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
3553 # 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.
3554 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
3555 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
3556 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
3557 },
3558 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
3559 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
3560 &quot;A String&quot;,
3561 ],
3562 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
3563 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
3564 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
3565 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
3566 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
3567 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
3568 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
3569 },
3570 ],
3571 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
3572 },
3573 &quot;gceClusterConfig&quot;: { # Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster. # Optional. The shared Compute Engine config settings for all instances in a cluster.
3574 &quot;subnetworkUri&quot;: &quot;A String&quot;, # 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:
3575 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0
3576 # projects/[project_id]/regions/us-east1/subnetworks/sub0
3577 # sub0
3578 &quot;networkUri&quot;: &quot;A String&quot;, # 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 &quot;default&quot; network of the project is used, if it exists. Cannot be a &quot;Custom Subnet Network&quot; (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more information).A full URL, partial URI, or short name are valid. Examples:
3579 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default
3580 # projects/[project_id]/regions/global/default
3581 # default
3582 &quot;zoneUri&quot;: &quot;A String&quot;, # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the &quot;global&quot; region. If omitted in a non-global Dataproc region, the 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:
3583 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
3584 # projects/[project_id]/zones/[zone]
3585 # us-central1-f
3586 &quot;metadata&quot;: { # The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
3587 &quot;a_key&quot;: &quot;A String&quot;,
3588 },
3589 &quot;internalIpOnly&quot;: True or False, # Optional. If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
3590 &quot;reservationAffinity&quot;: { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation.
3591 &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of reservation resource.
3592 &quot;values&quot;: [ # Optional. Corresponds to the label values of reservation resource.
3593 &quot;A String&quot;,
3594 ],
3595 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Optional. Type of reservation to consume
3596 },
3597 &quot;serviceAccountScopes&quot;: [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included:
3598 # https://www.googleapis.com/auth/cloud.useraccounts.readonly
3599 # https://www.googleapis.com/auth/devstorage.read_write
3600 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:
3601 # https://www.googleapis.com/auth/bigquery
3602 # https://www.googleapis.com/auth/bigtable.admin.table
3603 # https://www.googleapis.com/auth/bigtable.data
3604 # https://www.googleapis.com/auth/devstorage.full_control
3605 &quot;A String&quot;,
3606 ],
3607 &quot;tags&quot;: [ # The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
3608 &quot;A String&quot;,
3609 ],
3610 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
3611 },
3612 &quot;softwareConfig&quot;: { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster.
3613 &quot;optionalComponents&quot;: [ # Optional. The set of components to activate on the cluster.
3614 &quot;A String&quot;,
3615 ],
3616 &quot;imageVersion&quot;: &quot;A String&quot;, # 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_cloud_dataproc_versions), such as &quot;1.2&quot; (including a subminor version, such as &quot;1.2.29&quot;), or the &quot;preview&quot; version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
3617 &quot;properties&quot;: { # Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings:
3618 # capacity-scheduler: capacity-scheduler.xml
3619 # core: core-site.xml
3620 # distcp: distcp-default.xml
3621 # hdfs: hdfs-site.xml
3622 # hive: hive-site.xml
3623 # mapred: mapred-site.xml
3624 # pig: pig.properties
3625 # spark: spark-defaults.conf
3626 # yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
3627 &quot;a_key&quot;: &quot;A String&quot;,
3628 },
3629 },
3630 &quot;autoscalingConfig&quot;: { # Autoscaling Policy config associated with the cluster. # Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
3631 &quot;policyUri&quot;: &quot;A String&quot;, # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples:
3632 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]
3633 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Dataproc region.
3634 },
3635 &quot;masterConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for the master instance in a cluster.
3636 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
3637 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
3638 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
3639 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
3640 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
3641 },
3642 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
3643 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
3644 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
3645 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
3646 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
3647 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
3648 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
3649 # projects/[project_id]/global/images/[image-id]
3650 # image-idImage family examples. Dataproc will use the most recent image from the family:
3651 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
3652 # 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.
3653 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
3654 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
3655 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
3656 },
3657 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
3658 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
3659 &quot;A String&quot;,
3660 ],
3661 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
3662 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
3663 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
3664 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
3665 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
3666 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
3667 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
3668 },
3669 ],
3670 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
3671 },
3672 &quot;secondaryWorkerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for additional worker instances in a cluster.
3673 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
3674 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
3675 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
3676 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
3677 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
3678 },
3679 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
3680 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
3681 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
3682 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
3683 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
3684 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
3685 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
3686 # projects/[project_id]/global/images/[image-id]
3687 # image-idImage family examples. Dataproc will use the most recent image from the family:
3688 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
3689 # 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.
3690 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
3691 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
3692 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
3693 },
3694 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
3695 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
3696 &quot;A String&quot;,
3697 ],
3698 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
3699 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
3700 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
3701 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
3702 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
3703 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
3704 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
3705 },
3706 ],
3707 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
3708 },
3709 },
3710 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters.
3711 },
3712 },
3713 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time template was last updated.
3714 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.
3715 # For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}
3716 # For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}
3717 &quot;parameters&quot;: [ # Optional. emplate parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.
3718 { # A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector)
3719 &quot;validation&quot;: { # Configuration for parameter validation. # Optional. Validation rules to be applied to this parameter&#x27;s value.
3720 &quot;values&quot;: { # Validation based on a list of allowed values. # Validation based on a list of allowed values.
3721 &quot;values&quot;: [ # Required. List of allowed values for the parameter.
3722 &quot;A String&quot;,
3723 ],
3724 },
3725 &quot;regex&quot;: { # Validation based on regular expressions. # Validation based on regular expressions.
3726 &quot;regexes&quot;: [ # Required. RE2 regular expressions used to validate the parameter&#x27;s value. The value must match the regex in its entirety (substring matches are not sufficient).
3727 &quot;A String&quot;,
3728 ],
3729 },
3730 },
3731 &quot;fields&quot;: [ # Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter&#x27;s list of field paths.A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template&#x27;s cluster selector would be specified as placement.clusterSelector.zone.Also, field paths can reference fields using the following syntax:
3732 # Values in maps can be referenced by key:
3733 # labels&#x27;key&#x27;
3734 # placement.clusterSelector.clusterLabels&#x27;key&#x27;
3735 # placement.managedCluster.labels&#x27;key&#x27;
3736 # placement.clusterSelector.clusterLabels&#x27;key&#x27;
3737 # jobs&#x27;step-id&#x27;.labels&#x27;key&#x27;
3738 # Jobs in the jobs list can be referenced by step-id:
3739 # jobs&#x27;step-id&#x27;.hadoopJob.mainJarFileUri
3740 # jobs&#x27;step-id&#x27;.hiveJob.queryFileUri
3741 # jobs&#x27;step-id&#x27;.pySparkJob.mainPythonFileUri
3742 # jobs&#x27;step-id&#x27;.hadoopJob.jarFileUris0
3743 # jobs&#x27;step-id&#x27;.hadoopJob.archiveUris0
3744 # jobs&#x27;step-id&#x27;.hadoopJob.fileUris0
3745 # jobs&#x27;step-id&#x27;.pySparkJob.pythonFileUris0
3746 # Items in repeated fields can be referenced by a zero-based index:
3747 # jobs&#x27;step-id&#x27;.sparkJob.args0
3748 # Other examples:
3749 # jobs&#x27;step-id&#x27;.hadoopJob.properties&#x27;key&#x27;
3750 # jobs&#x27;step-id&#x27;.hadoopJob.args0
3751 # jobs&#x27;step-id&#x27;.hiveJob.scriptVariables&#x27;key&#x27;
3752 # jobs&#x27;step-id&#x27;.hadoopJob.mainJarFileUri
3753 # placement.clusterSelector.zoneIt may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid:
3754 # placement.clusterSelector.clusterLabels
3755 # jobs&#x27;step-id&#x27;.sparkJob.args
3756 &quot;A String&quot;,
3757 ],
3758 &quot;name&quot;: &quot;A String&quot;, # Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters.
3759 &quot;description&quot;: &quot;A String&quot;, # Optional. Brief description of the parameter. Must not exceed 1024 characters.
3760 },
3761 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003762}
3763
3764 x__xgafv: string, V1 error format.
3765 Allowed values
3766 1 - v1 error format
3767 2 - v2 error format
3768
3769Returns:
3770 An object of the form:
3771
Dan O'Mearadd494642020-05-01 07:42:23 -07003772 { # A Dataproc workflow template resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07003773 &quot;id&quot;: &quot;A String&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003774 &quot;version&quot;: 42, # Optional. Used to perform a consistent read-modify-write.This field should be left blank for a CreateWorkflowTemplate request. It is required for an UpdateWorkflowTemplate request, and must match the current server version. A typical update template flow would fetch the current template with a GetWorkflowTemplate request, which will return the current template with the version field filled in with the current server version. The user updates other fields in the template, then returns it as part of the UpdateWorkflowTemplate request.
Bu Sun Kim65020912020-05-20 12:08:20 -07003775 &quot;jobs&quot;: [ # Required. The Directed Acyclic Graph of Jobs to submit.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003776 { # A job executed by the workflow.
Bu Sun Kim65020912020-05-20 12:08:20 -07003777 &quot;prestoJob&quot;: { # A Dataproc job for running Presto (https://prestosql.io/) queries. IMPORTANT: The Dataproc Presto Optional Component (https://cloud.google.com/dataproc/docs/concepts/components/presto) must be enabled when the cluster is created to submit a Presto job to the cluster. # Optional. Job is a Presto job.
3778 &quot;outputFormat&quot;: &quot;A String&quot;, # Optional. The format in which query output will be displayed. See the Presto documentation for supported output formats
3779 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003780 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07003781 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
3782 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
3783 # &quot;hiveJob&quot;: {
3784 # &quot;queryList&quot;: {
3785 # &quot;queries&quot;: [
3786 # &quot;query1&quot;,
3787 # &quot;query2&quot;,
3788 # &quot;query3;query4&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003789 # ]
3790 # }
3791 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07003792 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003793 ],
3794 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003795 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
3796 &quot;A String&quot;,
3797 ],
3798 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
3799 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
3800 &quot;a_key&quot;: &quot;A String&quot;,
3801 },
3802 },
3803 &quot;properties&quot;: { # Optional. A mapping of property names to values. Used to set Presto session properties (https://prestodb.io/docs/current/sql/set-session.html) Equivalent to using the --session flag in the Presto CLI
3804 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003805 },
3806 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003807 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
3808 &quot;maxFailuresPerHour&quot;: 42, # Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed.A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10.
3809 },
3810 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003811 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
3812 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
3813 &quot;a_key&quot;: &quot;A String&quot;,
3814 },
3815 },
3816 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.
3817 &quot;a_key&quot;: &quot;A String&quot;,
3818 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003819 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
3820 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
3821 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
3822 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
3823 # &quot;hiveJob&quot;: {
3824 # &quot;queryList&quot;: {
3825 # &quot;queries&quot;: [
3826 # &quot;query1&quot;,
3827 # &quot;query2&quot;,
3828 # &quot;query3;query4&quot;,
3829 # ]
3830 # }
3831 # }
3832 &quot;A String&quot;,
3833 ],
3834 },
3835 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
3836 &quot;A String&quot;,
3837 ],
3838 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
3839 &quot;a_key&quot;: &quot;A String&quot;,
3840 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003841 },
3842 &quot;stepId&quot;: &quot;A String&quot;, # Required. The step id. The id must be unique among all jobs within the template.The step id is used as prefix for job id, as job goog-dataproc-workflow-step-id label, and in prerequisiteStepIds field from other steps.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3 and 50 characters.
3843 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
3844 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07003845 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
3846 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
3847 # &quot;hiveJob&quot;: {
3848 # &quot;queryList&quot;: {
3849 # &quot;queries&quot;: [
3850 # &quot;query1&quot;,
3851 # &quot;query2&quot;,
3852 # &quot;query3;query4&quot;,
3853 # ]
3854 # }
3855 # }
3856 &quot;A String&quot;,
3857 ],
3858 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003859 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07003860 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
3861 &quot;A String&quot;,
3862 ],
3863 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
3864 &quot;a_key&quot;: &quot;A String&quot;,
3865 },
3866 &quot;properties&quot;: { # Optional. A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.
3867 &quot;a_key&quot;: &quot;A String&quot;,
3868 },
3869 },
3870 &quot;prerequisiteStepIds&quot;: [ # Optional. The optional list of prerequisite job step_ids. If not specified, the job will start at the beginning of workflow.
3871 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003872 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003873 &quot;labels&quot;: { # Optional. The labels to associate with this job.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given job.
3874 &quot;a_key&quot;: &quot;A String&quot;,
3875 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003876 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
Bu Sun Kim65020912020-05-20 12:08:20 -07003877 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
3878 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
3879 &quot;queries&quot;: [ # Required. The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:
3880 # &quot;hiveJob&quot;: {
3881 # &quot;queryList&quot;: {
3882 # &quot;queries&quot;: [
3883 # &quot;query1&quot;,
3884 # &quot;query2&quot;,
3885 # &quot;query3;query4&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003886 # ]
3887 # }
3888 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07003889 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003890 ],
3891 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003892 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
3893 &quot;a_key&quot;: &quot;A String&quot;,
3894 },
3895 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
3896 &quot;A String&quot;,
3897 ],
3898 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
3899 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
3900 &quot;a_key&quot;: &quot;A String&quot;,
3901 },
3902 },
3903 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Spark SQL&#x27;s SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
3904 &quot;a_key&quot;: &quot;A String&quot;,
3905 },
3906 },
3907 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
3908 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
3909 &quot;A String&quot;,
3910 ],
3911 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
3912 &quot;A String&quot;,
3913 ],
3914 &quot;mainClass&quot;: &quot;A String&quot;, # The name of the driver&#x27;s main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris.
3915 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
3916 &quot;A String&quot;,
3917 ],
3918 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
3919 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
3920 &quot;A String&quot;,
3921 ],
3922 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
3923 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
3924 &quot;a_key&quot;: &quot;A String&quot;,
3925 },
3926 },
3927 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
3928 &quot;a_key&quot;: &quot;A String&quot;,
3929 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003930 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003931 &quot;pysparkJob&quot;: { # A Dataproc job for running Apache PySpark (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on YARN. # Optional. Job is a PySpark job.
3932 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
3933 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003934 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003935 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
3936 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
3937 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003938 },
3939 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003940 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
3941 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003942 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003943 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
3944 &quot;A String&quot;,
3945 ],
3946 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks.
3947 &quot;A String&quot;,
3948 ],
3949 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
3950 &quot;A String&quot;,
3951 ],
3952 &quot;mainPythonFileUri&quot;: &quot;A String&quot;, # Required. The HCFS URI of the main Python file to use as the driver. Must be a .py file.
3953 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
3954 &quot;A String&quot;,
3955 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07003956 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003957 &quot;sparkRJob&quot;: { # A Dataproc job for running Apache SparkR (https://spark.apache.org/docs/latest/sparkr.html) applications on YARN. # Optional. Job is a SparkR job.
3958 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
3959 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
3960 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003961 },
3962 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003963 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure SparkR. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
3964 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003965 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003966 &quot;mainRFileUri&quot;: &quot;A String&quot;, # Required. The HCFS URI of the main R file to use as the driver. Must be a .R file.
3967 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as --conf, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
3968 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003969 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003970 &quot;fileUris&quot;: [ # Optional. HCFS URIs of files to be copied to the working directory of R drivers and distributed tasks. Useful for naively parallel tasks.
3971 &quot;A String&quot;,
3972 ],
3973 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
3974 &quot;A String&quot;,
3975 ],
3976 },
3977 &quot;hadoopJob&quot;: { # A Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). # Optional. Job is a Hadoop job.
3978 &quot;mainClass&quot;: &quot;A String&quot;, # The name of the driver&#x27;s main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_file_uris.
3979 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
3980 &quot;A String&quot;,
3981 ],
3982 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file containing the main class. Examples: &#x27;gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar&#x27; &#x27;hdfs:/tmp/test-samples/custom-wordcount.jar&#x27; &#x27;file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar&#x27;
3983 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
3984 &quot;A String&quot;,
3985 ],
3986 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
3987 &quot;driverLogLevels&quot;: { # The per-package log levels for the driver. This may include &quot;root&quot; package name to configure rootLogger. Examples: &#x27;com.google = FATAL&#x27;, &#x27;root = INFO&#x27;, &#x27;org.apache = DEBUG&#x27;
3988 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003989 },
3990 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003991 &quot;properties&quot;: { # Optional. A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
3992 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003993 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003994 &quot;args&quot;: [ # Optional. The arguments to pass to the driver. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
3995 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003996 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003997 &quot;fileUris&quot;: [ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
3998 &quot;A String&quot;,
3999 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004000 },
4001 },
4002 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004003 &quot;labels&quot;: { # Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be associated with a template.
4004 &quot;a_key&quot;: &quot;A String&quot;,
4005 },
4006 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time template was created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004007 &quot;placement&quot;: { # Specifies workflow execution target.Either managed_cluster or cluster_selector is required. # Required. WorkflowTemplate scheduling information.
4008 &quot;clusterSelector&quot;: { # A selector that chooses target cluster for jobs based on metadata. # Optional. A selector that chooses target cluster for jobs based on metadata.The selector is evaluated at the time each job is submitted.
4009 &quot;zone&quot;: &quot;A String&quot;, # Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used.
4010 &quot;clusterLabels&quot;: { # Required. The cluster labels. Cluster must have all labels to match.
4011 &quot;a_key&quot;: &quot;A String&quot;,
4012 },
4013 },
4014 &quot;managedCluster&quot;: { # Cluster that is managed by the workflow. # A cluster that is managed by the workflow.
4015 &quot;labels&quot;: { # Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 32 labels can be associated with a given cluster.
4016 &quot;a_key&quot;: &quot;A String&quot;,
4017 },
4018 &quot;config&quot;: { # The cluster config. # Required. The cluster configuration.
4019 &quot;encryptionConfig&quot;: { # Encryption settings for the cluster. # Optional. Encryption settings for the cluster.
4020 &quot;gcePdKmsKeyName&quot;: &quot;A String&quot;, # Optional. The Cloud KMS key name to use for PD disk encryption for all instances in the cluster.
4021 },
4022 &quot;securityConfig&quot;: { # Security related configuration, including Kerberos. # Optional. Security settings for the cluster.
4023 &quot;kerberosConfig&quot;: { # Specifies Kerberos related configuration. # Kerberos related configuration.
4024 &quot;keyPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided key. For the self-signed certificate, this password is generated by Dataproc.
4025 &quot;keystorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided keystore. For the self-signed certificate, this password is generated by Dataproc.
4026 &quot;crossRealmTrustAdminServer&quot;: &quot;A String&quot;, # Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
4027 &quot;kdcDbKeyUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the master key of the KDC database.
4028 &quot;truststorePasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the password to the user provided truststore. For the self-signed certificate, this password is generated by Dataproc.
4029 &quot;realm&quot;: &quot;A String&quot;, # Optional. The name of the on-cluster Kerberos realm. If not specified, the uppercased domain of hostnames will be the realm.
4030 &quot;enableKerberos&quot;: True or False, # Optional. Flag to indicate whether to Kerberize the cluster (default: false). Set this field to true to enable Kerberos on a cluster.
4031 &quot;truststoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the truststore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
4032 &quot;crossRealmTrustRealm&quot;: &quot;A String&quot;, # Optional. The remote realm the Dataproc on-cluster KDC will trust, should the user enable cross realm trust.
4033 &quot;rootPrincipalPasswordUri&quot;: &quot;A String&quot;, # Required. The Cloud Storage URI of a KMS encrypted file containing the root principal password.
4034 &quot;kmsKeyUri&quot;: &quot;A String&quot;, # Required. The uri of the KMS key used to encrypt various sensitive files.
4035 &quot;crossRealmTrustKdc&quot;: &quot;A String&quot;, # Optional. The KDC (IP or hostname) for the remote trusted realm in a cross realm trust relationship.
4036 &quot;crossRealmTrustSharedPasswordUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of a KMS encrypted file containing the shared password between the on-cluster Kerberos realm and the remote trusted realm, in a cross realm trust relationship.
4037 &quot;tgtLifetimeHours&quot;: 42, # Optional. The lifetime of the ticket granting ticket, in hours. If not specified, or user specifies 0, then default value 10 will be used.
4038 &quot;keystoreUri&quot;: &quot;A String&quot;, # Optional. The Cloud Storage URI of the keystore file used for SSL encryption. If not provided, Dataproc will provide a self-signed certificate.
4039 },
4040 },
4041 &quot;initializationActions&quot;: [ # Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node&#x27;s role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget):
4042 # ROLE=$(curl -H Metadata-Flavor:Google
4043 # http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
4044 # if [[ &quot;${ROLE}&quot; == &#x27;Master&#x27; ]]; then
4045 # ... master specific actions ...
4046 # else
4047 # ... worker specific actions ...
4048 # fi
4049 { # Specifies an executable to run on a fully configured node and a timeout period for executable completion.
4050 &quot;executableFile&quot;: &quot;A String&quot;, # Required. Cloud Storage URI of executable file.
4051 &quot;executionTimeout&quot;: &quot;A String&quot;, # Optional. Amount of time executable has to complete. Default is 10 minutes (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.
4052 },
4053 ],
4054 &quot;lifecycleConfig&quot;: { # Specifies the cluster auto-delete schedule configuration. # Optional. Lifecycle setting for the cluster.
4055 &quot;autoDeleteTtl&quot;: &quot;A String&quot;, # Optional. The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).
4056 &quot;idleStartTime&quot;: &quot;A String&quot;, # Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
4057 &quot;autoDeleteTime&quot;: &quot;A String&quot;, # Optional. The time when cluster will be auto-deleted (see JSON representation of Timestamp (https://developers.google.com/protocol-buffers/docs/proto3#json)).
4058 &quot;idleDeleteTtl&quot;: &quot;A String&quot;, # Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).
4059 },
4060 &quot;configBucket&quot;: &quot;A String&quot;, # Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster&#x27;s staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see Dataproc staging bucket (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
4061 &quot;workerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for worker instances in a cluster.
4062 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
4063 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
4064 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
4065 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
4066 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
4067 },
4068 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
4069 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
4070 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
4071 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
4072 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
4073 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
4074 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
4075 # projects/[project_id]/global/images/[image-id]
4076 # image-idImage family examples. Dataproc will use the most recent image from the family:
4077 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
4078 # 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.
4079 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
4080 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
4081 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
4082 },
4083 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
4084 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
4085 &quot;A String&quot;,
4086 ],
4087 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
4088 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
4089 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
4090 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
4091 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
4092 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
4093 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
4094 },
4095 ],
4096 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
4097 },
4098 &quot;gceClusterConfig&quot;: { # Common config settings for resources of Compute Engine cluster instances, applicable to all instances in the cluster. # Optional. The shared Compute Engine config settings for all instances in a cluster.
4099 &quot;subnetworkUri&quot;: &quot;A String&quot;, # 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:
4100 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0
4101 # projects/[project_id]/regions/us-east1/subnetworks/sub0
4102 # sub0
4103 &quot;networkUri&quot;: &quot;A String&quot;, # 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 &quot;default&quot; network of the project is used, if it exists. Cannot be a &quot;Custom Subnet Network&quot; (see Using Subnetworks (https://cloud.google.com/compute/docs/subnetworks) for more information).A full URL, partial URI, or short name are valid. Examples:
4104 # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default
4105 # projects/[project_id]/regions/global/default
4106 # default
4107 &quot;zoneUri&quot;: &quot;A String&quot;, # Optional. The zone where the Compute Engine cluster will be located. On a create request, it is required in the &quot;global&quot; region. If omitted in a non-global Dataproc region, the 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:
4108 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
4109 # projects/[project_id]/zones/[zone]
4110 # us-central1-f
4111 &quot;metadata&quot;: { # The Compute Engine metadata entries to add to all instances (see Project and instance metadata (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
4112 &quot;a_key&quot;: &quot;A String&quot;,
4113 },
4114 &quot;internalIpOnly&quot;: True or False, # Optional. If true, all instances in the cluster will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigned to each instance. This internal_ip_only restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without external IP addresses.
4115 &quot;reservationAffinity&quot;: { # Reservation Affinity for consuming Zonal reservation. # Optional. Reservation Affinity for consuming Zonal reservation.
4116 &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of reservation resource.
4117 &quot;values&quot;: [ # Optional. Corresponds to the label values of reservation resource.
4118 &quot;A String&quot;,
4119 ],
4120 &quot;consumeReservationType&quot;: &quot;A String&quot;, # Optional. Type of reservation to consume
4121 },
4122 &quot;serviceAccountScopes&quot;: [ # Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included:
4123 # https://www.googleapis.com/auth/cloud.useraccounts.readonly
4124 # https://www.googleapis.com/auth/devstorage.read_write
4125 # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:
4126 # https://www.googleapis.com/auth/bigquery
4127 # https://www.googleapis.com/auth/bigtable.admin.table
4128 # https://www.googleapis.com/auth/bigtable.data
4129 # https://www.googleapis.com/auth/devstorage.full_control
4130 &quot;A String&quot;,
4131 ],
4132 &quot;tags&quot;: [ # The Compute Engine tags to add to all instances (see Tagging instances (https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
4133 &quot;A String&quot;,
4134 ],
4135 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_cloud_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
4136 },
4137 &quot;softwareConfig&quot;: { # Specifies the selection and config of software inside the cluster. # Optional. The config settings for software inside the cluster.
4138 &quot;optionalComponents&quot;: [ # Optional. The set of components to activate on the cluster.
4139 &quot;A String&quot;,
4140 ],
4141 &quot;imageVersion&quot;: &quot;A String&quot;, # 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_cloud_dataproc_versions), such as &quot;1.2&quot; (including a subminor version, such as &quot;1.2.29&quot;), or the &quot;preview&quot; version (https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
4142 &quot;properties&quot;: { # Optional. The properties to set on daemon config files.Property keys are specified in prefix:property format, for example core:hadoop.tmp.dir. The following are supported prefixes and their mappings:
4143 # capacity-scheduler: capacity-scheduler.xml
4144 # core: core-site.xml
4145 # distcp: distcp-default.xml
4146 # hdfs: hdfs-site.xml
4147 # hive: hive-site.xml
4148 # mapred: mapred-site.xml
4149 # pig: pig.properties
4150 # spark: spark-defaults.conf
4151 # yarn: yarn-site.xmlFor more information, see Cluster properties (https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
4152 &quot;a_key&quot;: &quot;A String&quot;,
4153 },
4154 },
4155 &quot;autoscalingConfig&quot;: { # Autoscaling Policy config associated with the cluster. # Optional. Autoscaling config for the policy associated with the cluster. Cluster does not autoscale if this field is unset.
4156 &quot;policyUri&quot;: &quot;A String&quot;, # Optional. The autoscaling policy used by the cluster.Only resource names including projectid and location (region) are valid. Examples:
4157 # https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]
4158 # projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the policy must be in the same project and Dataproc region.
4159 },
4160 &quot;masterConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for the master instance in a cluster.
4161 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
4162 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
4163 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
4164 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
4165 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
4166 },
4167 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
4168 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
4169 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
4170 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
4171 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
4172 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
4173 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
4174 # projects/[project_id]/global/images/[image-id]
4175 # image-idImage family examples. Dataproc will use the most recent image from the family:
4176 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
4177 # 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.
4178 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
4179 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
4180 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
4181 },
4182 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
4183 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
4184 &quot;A String&quot;,
4185 ],
4186 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
4187 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
4188 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
4189 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
4190 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
4191 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
4192 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
4193 },
4194 ],
4195 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
4196 },
4197 &quot;secondaryWorkerConfig&quot;: { # The config settings for Compute Engine resources in an instance group, such as a master or worker group. # Optional. The Compute Engine config settings for additional worker instances in a cluster.
4198 &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Specifies the minimum cpu platform for the Instance Group. See Dataproc -&amp;gt; Minimum CPU Platform (https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).
4199 &quot;diskConfig&quot;: { # Specifies the config of disk options for a group of VM instances. # Optional. Disk option config settings.
4200 &quot;numLocalSsds&quot;: 42, # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
4201 &quot;bootDiskSizeGb&quot;: 42, # Optional. Size in GB of the boot disk (default is 500GB).
4202 &quot;bootDiskType&quot;: &quot;A String&quot;, # Optional. Type of the boot disk (default is &quot;pd-standard&quot;). Valid values: &quot;pd-ssd&quot; (Persistent Disk Solid State Drive) or &quot;pd-standard&quot; (Persistent Disk Hard Disk Drive).
4203 },
4204 &quot;preemptibility&quot;: &quot;A String&quot;, # Optional. Specifies the preemptibility of the instance group.The default value for master and worker groups is NON_PREEMPTIBLE. This default cannot be changed.The default value for secondary instances is PREEMPTIBLE.
4205 &quot;machineTypeUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine machine type used for cluster instances.A full URL, partial URI, or short name are valid. Examples:
4206 # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
4207 # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
4208 # n1-standard-2Auto 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, you must use the short name of the machine type resource, for example, n1-standard-2.
4209 &quot;imageUri&quot;: &quot;A String&quot;, # Optional. The Compute Engine image resource used for cluster instances.The URI can represent an image or image family.Image examples:
4210 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]
4211 # projects/[project_id]/global/images/[image-id]
4212 # image-idImage family examples. Dataproc will use the most recent image from the family:
4213 # https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]
4214 # 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.
4215 &quot;managedGroupConfig&quot;: { # Specifies the resources used to actively manage an instance group. # Output only. The config for Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
4216 &quot;instanceGroupManagerName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Group Manager for this group.
4217 &quot;instanceTemplateName&quot;: &quot;A String&quot;, # Output only. The name of the Instance Template used for the Managed Instance Group.
4218 },
4219 &quot;isPreemptible&quot;: True or False, # Output only. Specifies that this instance group contains preemptible instances.
4220 &quot;instanceNames&quot;: [ # Output only. The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group.
4221 &quot;A String&quot;,
4222 ],
4223 &quot;accelerators&quot;: [ # Optional. The Compute Engine accelerator configuration for these instances.
4224 { # Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/).
4225 &quot;acceleratorTypeUri&quot;: &quot;A String&quot;, # Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).Examples:
4226 # https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
4227 # projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
4228 # nvidia-tesla-k80Auto 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, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.
4229 &quot;acceleratorCount&quot;: 42, # The number of the accelerator cards of this type exposed to this instance.
4230 },
4231 ],
4232 &quot;numInstances&quot;: 42, # Optional. The number of VM instances in the instance group. For master instance groups, must be set to 1.
4233 },
4234 },
4235 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The cluster name prefix. A unique cluster name will be formed by appending a random suffix.The name must contain only lower-case letters (a-z), numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end with hyphen. Must consist of between 2 and 35 characters.
4236 },
4237 },
4238 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time template was last updated.
4239 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.
4240 # For projects.regions.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/regions/{region}/workflowTemplates/{template_id}
4241 # For projects.locations.workflowTemplates, the resource name of the template has the following format: projects/{project_id}/locations/{location}/workflowTemplates/{template_id}
4242 &quot;parameters&quot;: [ # Optional. emplate parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.
4243 { # A configurable parameter that replaces one or more fields in the template. Parameterizable fields: - Labels - File uris - Job properties - Job arguments - Script variables - Main class (in HadoopJob and SparkJob) - Zone (in ClusterSelector)
4244 &quot;validation&quot;: { # Configuration for parameter validation. # Optional. Validation rules to be applied to this parameter&#x27;s value.
4245 &quot;values&quot;: { # Validation based on a list of allowed values. # Validation based on a list of allowed values.
4246 &quot;values&quot;: [ # Required. List of allowed values for the parameter.
4247 &quot;A String&quot;,
4248 ],
4249 },
4250 &quot;regex&quot;: { # Validation based on regular expressions. # Validation based on regular expressions.
4251 &quot;regexes&quot;: [ # Required. RE2 regular expressions used to validate the parameter&#x27;s value. The value must match the regex in its entirety (substring matches are not sufficient).
4252 &quot;A String&quot;,
4253 ],
4254 },
4255 },
4256 &quot;fields&quot;: [ # Required. Paths to all fields that the parameter replaces. A field is allowed to appear in at most one parameter&#x27;s list of field paths.A field path is similar in syntax to a google.protobuf.FieldMask. For example, a field path that references the zone field of a workflow template&#x27;s cluster selector would be specified as placement.clusterSelector.zone.Also, field paths can reference fields using the following syntax:
4257 # Values in maps can be referenced by key:
4258 # labels&#x27;key&#x27;
4259 # placement.clusterSelector.clusterLabels&#x27;key&#x27;
4260 # placement.managedCluster.labels&#x27;key&#x27;
4261 # placement.clusterSelector.clusterLabels&#x27;key&#x27;
4262 # jobs&#x27;step-id&#x27;.labels&#x27;key&#x27;
4263 # Jobs in the jobs list can be referenced by step-id:
4264 # jobs&#x27;step-id&#x27;.hadoopJob.mainJarFileUri
4265 # jobs&#x27;step-id&#x27;.hiveJob.queryFileUri
4266 # jobs&#x27;step-id&#x27;.pySparkJob.mainPythonFileUri
4267 # jobs&#x27;step-id&#x27;.hadoopJob.jarFileUris0
4268 # jobs&#x27;step-id&#x27;.hadoopJob.archiveUris0
4269 # jobs&#x27;step-id&#x27;.hadoopJob.fileUris0
4270 # jobs&#x27;step-id&#x27;.pySparkJob.pythonFileUris0
4271 # Items in repeated fields can be referenced by a zero-based index:
4272 # jobs&#x27;step-id&#x27;.sparkJob.args0
4273 # Other examples:
4274 # jobs&#x27;step-id&#x27;.hadoopJob.properties&#x27;key&#x27;
4275 # jobs&#x27;step-id&#x27;.hadoopJob.args0
4276 # jobs&#x27;step-id&#x27;.hiveJob.scriptVariables&#x27;key&#x27;
4277 # jobs&#x27;step-id&#x27;.hadoopJob.mainJarFileUri
4278 # placement.clusterSelector.zoneIt may not be possible to parameterize maps and repeated fields in their entirety since only individual map values and individual items in repeated fields can be referenced. For example, the following field paths are invalid:
4279 # placement.clusterSelector.clusterLabels
4280 # jobs&#x27;step-id&#x27;.sparkJob.args
4281 &quot;A String&quot;,
4282 ],
4283 &quot;name&quot;: &quot;A String&quot;, # Required. Parameter name. The parameter name is used as the key, and paired with the parameter value, which are passed to the template when the template is instantiated. The name must contain only capital letters (A-Z), numbers (0-9), and underscores (_), and must not start with a number. The maximum length is 40 characters.
4284 &quot;description&quot;: &quot;A String&quot;, # Optional. Brief description of the parameter. Must not exceed 1024 characters.
4285 },
4286 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004287 }</pre>
4288</div>
4289
4290</body></html>