blob: 132e52a676e3a9560804f9502791cb064695dfd7 [file] [log] [blame]
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001<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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<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.jobs.html">jobs</a></h1>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080076<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070078 <code><a href="#cancel">cancel(projectId, region, jobId, body=None, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070079<p class="firstline">Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list (https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) or regions/{region}/jobs.get (https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).</p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080080<p class="toc_element">
81 <code><a href="#delete">delete(projectId, region, jobId, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040082<p class="firstline">Deletes the job from the project. If the job is active, the delete fails, and the response returns FAILED_PRECONDITION.</p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080083<p class="toc_element">
84 <code><a href="#get">get(projectId, region, jobId, x__xgafv=None)</a></code></p>
85<p class="firstline">Gets the resource representation for a job in a project.</p>
86<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087 <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">
Bu Sun Kim65020912020-05-20 12:08:20 -070090 <code><a href="#list">list(projectId, region, clusterName=None, filter=None, jobStateMatcher=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080091<p class="firstline">Lists regions/{region}/jobs in a project.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#patch">patch(projectId, region, jobId, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040097<p class="firstline">Updates a job in a project.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#submit">submit(projectId, region, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800103<p class="firstline">Submits a job to a cluster.</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="#submitAsOperation">submitAsOperation(projectId, region, body=None, x__xgafv=None)</a></code></p>
106<p class="firstline">Submits job to a cluster.</p>
107<p class="toc_element">
108 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<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>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800110<h3>Method Details</h3>
111<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112 <code class="details" id="cancel">cancel(projectId, region, jobId, body=None, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 <pre>Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list (https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) or regions/{region}/jobs.get (https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800114
115Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400116 projectId: string, Required. The ID of the Google Cloud Platform project that the job belongs to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 region: string, Required. The Dataproc region in which to handle the request. (required)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400118 jobId: string, Required. The job ID. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119 body: object, The request body.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800120 The object takes the form of:
121
122{ # A request to cancel a job.
123 }
124
125 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400126 Allowed values
127 1 - v1 error format
128 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800129
130Returns:
131 An object of the form:
132
Dan O'Mearadd494642020-05-01 07:42:23 -0700133 { # A Dataproc job resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700134 &quot;driverControlFilesUri&quot;: &quot;A String&quot;, # Output only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri.
135 &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.
136 &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
137 &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.
138 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
139 &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:
140 # &quot;hiveJob&quot;: {
141 # &quot;queryList&quot;: {
142 # &quot;queries&quot;: [
143 # &quot;query1&quot;,
144 # &quot;query2&quot;,
145 # &quot;query3;query4&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400146 # ]
147 # }
148 # }
Bu Sun Kim65020912020-05-20 12:08:20 -0700149 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800150 ],
151 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
153 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
154 &quot;A String&quot;,
155 ],
156 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
157 &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;
158 &quot;a_key&quot;: &quot;A String&quot;,
159 },
160 },
161 &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
162 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800163 },
164 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
166 &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.
167 },
168 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
169 &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 },
191 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
192 &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;
193 &quot;a_key&quot;: &quot;A String&quot;,
194 },
195 },
196 &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.
197 &quot;a_key&quot;: &quot;A String&quot;,
198 },
199 },
200 &quot;jobUuid&quot;: &quot;A String&quot;, # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
201 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
202 &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.
203 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
204 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
205 &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:
206 # &quot;hiveJob&quot;: {
207 # &quot;queryList&quot;: {
208 # &quot;queries&quot;: [
209 # &quot;query1&quot;,
210 # &quot;query2&quot;,
211 # &quot;query3;query4&quot;,
212 # ]
213 # }
214 # }
215 &quot;A String&quot;,
216 ],
217 },
218 &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.
219 &quot;A String&quot;,
220 ],
221 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
222 &quot;a_key&quot;: &quot;A String&quot;,
223 },
224 &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.
225 &quot;a_key&quot;: &quot;A String&quot;,
226 },
227 },
228 &quot;labels&quot;: { # Optional. The labels to associate with this job. 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 job.
229 &quot;a_key&quot;: &quot;A String&quot;,
230 },
231 &quot;done&quot;: True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
232 &quot;driverOutputResourceUri&quot;: &quot;A String&quot;, # Output only. A URI pointing to the location of the stdout of the job&#x27;s driver program.
233 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
234 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
235 &quot;a_key&quot;: &quot;A String&quot;,
236 },
237 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
238 &quot;A String&quot;,
239 ],
240 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
241 &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;
242 &quot;a_key&quot;: &quot;A String&quot;,
243 },
244 },
245 &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.
246 &quot;a_key&quot;: &quot;A String&quot;,
247 },
248 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
249 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
250 &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:
251 # &quot;hiveJob&quot;: {
252 # &quot;queryList&quot;: {
253 # &quot;queries&quot;: [
254 # &quot;query1&quot;,
255 # &quot;query2&quot;,
256 # &quot;query3;query4&quot;,
257 # ]
258 # }
259 # }
260 &quot;A String&quot;,
261 ],
262 },
263 },
264 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
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 },
280 &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.
281 &quot;A String&quot;,
282 ],
283 &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.
284 &quot;A String&quot;,
285 ],
286 &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.
287 },
288 &quot;statusHistory&quot;: [ # Output only. The previous job status.
Dan O'Mearadd494642020-05-01 07:42:23 -0700289 { # Dataproc job status.
Bu Sun Kim65020912020-05-20 12:08:20 -0700290 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
291 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
292 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
293 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Dan O'Mearadd494642020-05-01 07:42:23 -0700294 },
295 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700296 &quot;yarnApplications&quot;: [ # Output only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Dan O'Mearadd494642020-05-01 07:42:23 -0700297 { # A YARN application created by a job. Application information is a subset of &lt;code&gt;org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto&lt;/code&gt;.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Bu Sun Kim65020912020-05-20 12:08:20 -0700298 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
299 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
300 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
301 &quot;trackingUrl&quot;: &quot;A String&quot;, # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.
Dan O'Mearadd494642020-05-01 07:42:23 -0700302 },
303 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700304 &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.
305 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
306 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700307 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700308 &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 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400312 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700313 &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.
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;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.
317 &quot;A String&quot;,
318 ],
319 &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.
320 &quot;A String&quot;,
321 ],
322 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
323 &quot;A String&quot;,
324 ],
325 &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.
326 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
327 &quot;A String&quot;,
328 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700329 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700330 &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.
331 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
332 &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;
333 &quot;a_key&quot;: &quot;A String&quot;,
334 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800335 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700336 &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.
337 &quot;a_key&quot;: &quot;A String&quot;,
338 },
339 &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.
340 &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.
341 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800342 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700343 &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.
344 &quot;A String&quot;,
345 ],
346 &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.
347 &quot;A String&quot;,
348 ],
349 },
350 &quot;reference&quot;: { # Encapsulates the full scoping used to reference a job. # Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a &lt;code&gt;job_id&lt;/code&gt;.
351 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
352 &quot;jobId&quot;: &quot;A String&quot;, # Optional. The job ID, which must be unique within the project.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters.If not specified by the caller, the job ID will be provided by the server.
353 },
354 &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.
355 &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.
356 &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.
357 &quot;A String&quot;,
358 ],
359 &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;
360 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
361 &quot;A String&quot;,
362 ],
363 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
364 &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;
365 &quot;a_key&quot;: &quot;A String&quot;,
366 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800367 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700368 &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.
369 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800370 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700371 &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.
372 &quot;A String&quot;,
373 ],
374 &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.
375 &quot;A String&quot;,
376 ],
377 },
378 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
379 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
380 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
381 },
382 &quot;status&quot;: { # Dataproc job status. # Output only. The job status. Additional application-specific status information may be contained in the &lt;code&gt;type_job&lt;/code&gt; and &lt;code&gt;yarn_applications&lt;/code&gt; fields.
383 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
384 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
385 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
386 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800387 },
388 }</pre>
389</div>
390
391<div class="method">
392 <code class="details" id="delete">delete(projectId, region, jobId, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400393 <pre>Deletes the job from the project. If the job is active, the delete fails, and the response returns FAILED_PRECONDITION.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800394
395Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400396 projectId: string, Required. The ID of the Google Cloud Platform project that the job belongs to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700397 region: string, Required. The Dataproc region in which to handle the request. (required)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400398 jobId: string, Required. The job ID. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800399 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400400 Allowed values
401 1 - v1 error format
402 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800403
404Returns:
405 An object of the form:
406
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400407 { # 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:
408 # service Foo {
409 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
410 # }
411 # The JSON representation for Empty is empty JSON object {}.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800412 }</pre>
413</div>
414
415<div class="method">
416 <code class="details" id="get">get(projectId, region, jobId, x__xgafv=None)</code>
417 <pre>Gets the resource representation for a job in a project.
418
419Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400420 projectId: string, Required. The ID of the Google Cloud Platform project that the job belongs to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700421 region: string, Required. The Dataproc region in which to handle the request. (required)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400422 jobId: string, Required. The job ID. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800423 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400424 Allowed values
425 1 - v1 error format
426 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800427
428Returns:
429 An object of the form:
430
Dan O'Mearadd494642020-05-01 07:42:23 -0700431 { # A Dataproc job resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700432 &quot;driverControlFilesUri&quot;: &quot;A String&quot;, # Output only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri.
433 &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.
434 &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
435 &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.
436 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
437 &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:
438 # &quot;hiveJob&quot;: {
439 # &quot;queryList&quot;: {
440 # &quot;queries&quot;: [
441 # &quot;query1&quot;,
442 # &quot;query2&quot;,
443 # &quot;query3;query4&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400444 # ]
445 # }
446 # }
Bu Sun Kim65020912020-05-20 12:08:20 -0700447 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800448 ],
449 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700450 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
451 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
452 &quot;A String&quot;,
453 ],
454 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
455 &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;
456 &quot;a_key&quot;: &quot;A String&quot;,
457 },
458 },
459 &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
460 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800461 },
462 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700463 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
464 &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.
465 },
466 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
467 &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.
468 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
469 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
470 &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:
471 # &quot;hiveJob&quot;: {
472 # &quot;queryList&quot;: {
473 # &quot;queries&quot;: [
474 # &quot;query1&quot;,
475 # &quot;query2&quot;,
476 # &quot;query3;query4&quot;,
477 # ]
478 # }
479 # }
480 &quot;A String&quot;,
481 ],
482 },
483 &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.
484 &quot;A String&quot;,
485 ],
486 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
487 &quot;a_key&quot;: &quot;A String&quot;,
488 },
489 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
490 &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;
491 &quot;a_key&quot;: &quot;A String&quot;,
492 },
493 },
494 &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.
495 &quot;a_key&quot;: &quot;A String&quot;,
496 },
497 },
498 &quot;jobUuid&quot;: &quot;A String&quot;, # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
499 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
500 &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.
501 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
502 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
503 &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:
504 # &quot;hiveJob&quot;: {
505 # &quot;queryList&quot;: {
506 # &quot;queries&quot;: [
507 # &quot;query1&quot;,
508 # &quot;query2&quot;,
509 # &quot;query3;query4&quot;,
510 # ]
511 # }
512 # }
513 &quot;A String&quot;,
514 ],
515 },
516 &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.
517 &quot;A String&quot;,
518 ],
519 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
520 &quot;a_key&quot;: &quot;A String&quot;,
521 },
522 &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.
523 &quot;a_key&quot;: &quot;A String&quot;,
524 },
525 },
526 &quot;labels&quot;: { # Optional. The labels to associate with this job. 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 job.
527 &quot;a_key&quot;: &quot;A String&quot;,
528 },
529 &quot;done&quot;: True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
530 &quot;driverOutputResourceUri&quot;: &quot;A String&quot;, # Output only. A URI pointing to the location of the stdout of the job&#x27;s driver program.
531 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
532 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
533 &quot;a_key&quot;: &quot;A String&quot;,
534 },
535 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
536 &quot;A String&quot;,
537 ],
538 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
539 &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;
540 &quot;a_key&quot;: &quot;A String&quot;,
541 },
542 },
543 &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.
544 &quot;a_key&quot;: &quot;A String&quot;,
545 },
546 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
547 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
548 &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:
549 # &quot;hiveJob&quot;: {
550 # &quot;queryList&quot;: {
551 # &quot;queries&quot;: [
552 # &quot;query1&quot;,
553 # &quot;query2&quot;,
554 # &quot;query3;query4&quot;,
555 # ]
556 # }
557 # }
558 &quot;A String&quot;,
559 ],
560 },
561 },
562 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
563 &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.
564 &quot;A String&quot;,
565 ],
566 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
567 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
568 &quot;A String&quot;,
569 ],
570 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
571 &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;
572 &quot;a_key&quot;: &quot;A String&quot;,
573 },
574 },
575 &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.
576 &quot;a_key&quot;: &quot;A String&quot;,
577 },
578 &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.
579 &quot;A String&quot;,
580 ],
581 &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.
582 &quot;A String&quot;,
583 ],
584 &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.
585 },
586 &quot;statusHistory&quot;: [ # Output only. The previous job status.
Dan O'Mearadd494642020-05-01 07:42:23 -0700587 { # Dataproc job status.
Bu Sun Kim65020912020-05-20 12:08:20 -0700588 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
589 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
590 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
591 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Dan O'Mearadd494642020-05-01 07:42:23 -0700592 },
593 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700594 &quot;yarnApplications&quot;: [ # Output only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Dan O'Mearadd494642020-05-01 07:42:23 -0700595 { # A YARN application created by a job. Application information is a subset of &lt;code&gt;org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto&lt;/code&gt;.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Bu Sun Kim65020912020-05-20 12:08:20 -0700596 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
597 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
598 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
599 &quot;trackingUrl&quot;: &quot;A String&quot;, # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.
Dan O'Mearadd494642020-05-01 07:42:23 -0700600 },
601 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700602 &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.
603 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
604 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700605 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700606 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
607 &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;
608 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700609 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400610 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700611 &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.
612 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700613 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700614 &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.
615 &quot;A String&quot;,
616 ],
617 &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.
618 &quot;A String&quot;,
619 ],
620 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
621 &quot;A String&quot;,
622 ],
623 &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.
624 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
625 &quot;A String&quot;,
626 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700627 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700628 &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.
629 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
630 &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;
631 &quot;a_key&quot;: &quot;A String&quot;,
632 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800633 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700634 &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.
635 &quot;a_key&quot;: &quot;A String&quot;,
636 },
637 &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.
638 &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.
639 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800640 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700641 &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.
642 &quot;A String&quot;,
643 ],
644 &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.
645 &quot;A String&quot;,
646 ],
647 },
648 &quot;reference&quot;: { # Encapsulates the full scoping used to reference a job. # Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a &lt;code&gt;job_id&lt;/code&gt;.
649 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
650 &quot;jobId&quot;: &quot;A String&quot;, # Optional. The job ID, which must be unique within the project.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters.If not specified by the caller, the job ID will be provided by the server.
651 },
652 &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.
653 &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.
654 &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.
655 &quot;A String&quot;,
656 ],
657 &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;
658 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
659 &quot;A String&quot;,
660 ],
661 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
662 &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;
663 &quot;a_key&quot;: &quot;A String&quot;,
664 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800665 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700666 &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.
667 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800668 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700669 &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.
670 &quot;A String&quot;,
671 ],
672 &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.
673 &quot;A String&quot;,
674 ],
675 },
676 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
677 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
678 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
679 },
680 &quot;status&quot;: { # Dataproc job status. # Output only. The job status. Additional application-specific status information may be contained in the &lt;code&gt;type_job&lt;/code&gt; and &lt;code&gt;yarn_applications&lt;/code&gt; fields.
681 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
682 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
683 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
684 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800685 },
686 }</pre>
687</div>
688
689<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700690 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
691 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
692
693Args:
694 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
695 body: object, The request body.
696 The object takes the form of:
697
698{ # Request message for GetIamPolicy method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700699 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A GetPolicyOptions object for specifying options to GetIamPolicy. This field is only used by Cloud IAM.
700 &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.
Dan O'Mearadd494642020-05-01 07:42:23 -0700701 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700702 }
703
704 x__xgafv: string, V1 error format.
705 Allowed values
706 1 - v1 error format
707 2 - v2 error format
708
709Returns:
710 An object of the form:
711
Dan O'Mearadd494642020-05-01 07:42:23 -0700712 { # 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.Optionally, a binding can 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.JSON example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700713 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700714 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700715 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700716 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
717 # &quot;members&quot;: [
718 # &quot;user:mike@example.com&quot;,
719 # &quot;group:admins@example.com&quot;,
720 # &quot;domain:google.com&quot;,
721 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700722 # ]
723 # },
724 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700725 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
726 # &quot;members&quot;: [&quot;user:eve@example.com&quot;],
727 # &quot;condition&quot;: {
728 # &quot;title&quot;: &quot;expirable access&quot;,
729 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
730 # &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 -0700731 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700732 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700733 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700734 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
735 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700736 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700737 # YAML example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700738 # bindings:
739 # - members:
740 # - user:mike@example.com
741 # - group:admins@example.com
742 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700743 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
744 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700745 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700746 # - user:eve@example.com
747 # role: roles/resourcemanager.organizationViewer
748 # condition:
749 # title: expirable access
750 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700751 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700752 # - etag: BwWWja0YfJA=
753 # - version: 3
754 # For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700755 &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 -0700756 { # Associates members with a role.
Bu Sun Kim65020912020-05-20 12:08:20 -0700757 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
758 &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. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
759 # title: &quot;Summary size limit&quot;
760 # description: &quot;Determines if a summary is less than 100 chars&quot;
761 # expression: &quot;document.summary.size() &lt; 100&quot;
762 # Example (Equality):
763 # title: &quot;Requestor is owner&quot;
764 # description: &quot;Determines if requestor is the document owner&quot;
765 # expression: &quot;document.owner == request.auth.claims.email&quot;
766 # Example (Logic):
767 # title: &quot;Public documents&quot;
768 # description: &quot;Determine whether the document should be publicly visible&quot;
769 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
770 # Example (Data Manipulation):
771 # title: &quot;Notification string&quot;
772 # description: &quot;Create a notification string with a timestamp.&quot;
773 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
774 # 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.
775 &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.
776 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
777 &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.
778 &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.
779 },
780 &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 -0700781 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
782 # 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 -0700783 # user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700784 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
785 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
Dan O'Mearadd494642020-05-01 07:42:23 -0700786 # 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.
787 # 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.
788 # 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 -0700789 # 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 -0700790 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700791 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700792 },
793 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700794 &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.
795 &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:
Dan O'Mearadd494642020-05-01 07:42:23 -0700796 # Getting a policy that includes a conditional role binding
797 # Adding a conditional role binding to a policy
798 # Changing a conditional role binding in a policy
799 # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700800 }</pre>
801</div>
802
803<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700804 <code class="details" id="list">list(projectId, region, clusterName=None, filter=None, jobStateMatcher=None, pageToken=None, pageSize=None, x__xgafv=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800805 <pre>Lists regions/{region}/jobs in a project.
806
807Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400808 projectId: string, Required. The ID of the Google Cloud Platform project that the job belongs to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700809 region: string, Required. The Dataproc region in which to handle the request. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700810 clusterName: string, Optional. If set, the returned jobs list includes only jobs that were submitted to the named cluster.
811 filter: string, Optional. A filter constraining the jobs to list. Filters are case-sensitive and have the following syntax:field = value AND field = value ...where field is status.state or labels.[KEY], and [KEY] is a label key. value can be * to match all values. status.state can be either ACTIVE or NON_ACTIVE. Only the logical AND operator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env = staging AND labels.starred = *
812 jobStateMatcher: string, Optional. Specifies enumerated categories of jobs to list. (default = match ALL jobs).If filter is provided, jobStateMatcher will be ignored.
813 pageToken: string, Optional. The page token, returned by a previous call, to request the next page of results.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400814 pageSize: integer, Optional. The number of results to return in each response.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800815 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400816 Allowed values
817 1 - v1 error format
818 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800819
820Returns:
821 An object of the form:
822
823 { # A list of jobs in a project.
Bu Sun Kim65020912020-05-20 12:08:20 -0700824 &quot;jobs&quot;: [ # Output only. Jobs list.
Dan O'Mearadd494642020-05-01 07:42:23 -0700825 { # A Dataproc job resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700826 &quot;driverControlFilesUri&quot;: &quot;A String&quot;, # Output only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri.
827 &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.
828 &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
829 &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.
830 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
831 &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:
832 # &quot;hiveJob&quot;: {
833 # &quot;queryList&quot;: {
834 # &quot;queries&quot;: [
835 # &quot;query1&quot;,
836 # &quot;query2&quot;,
837 # &quot;query3;query4&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400838 # ]
839 # }
840 # }
Bu Sun Kim65020912020-05-20 12:08:20 -0700841 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800842 ],
843 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700844 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
845 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
846 &quot;A String&quot;,
847 ],
848 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
849 &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;
850 &quot;a_key&quot;: &quot;A String&quot;,
851 },
852 },
853 &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
854 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800855 },
856 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700857 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
858 &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.
859 },
860 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
861 &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.
862 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
863 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
864 &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:
865 # &quot;hiveJob&quot;: {
866 # &quot;queryList&quot;: {
867 # &quot;queries&quot;: [
868 # &quot;query1&quot;,
869 # &quot;query2&quot;,
870 # &quot;query3;query4&quot;,
871 # ]
872 # }
873 # }
874 &quot;A String&quot;,
875 ],
876 },
877 &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.
878 &quot;A String&quot;,
879 ],
880 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
881 &quot;a_key&quot;: &quot;A String&quot;,
882 },
883 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
884 &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;
885 &quot;a_key&quot;: &quot;A String&quot;,
886 },
887 },
888 &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.
889 &quot;a_key&quot;: &quot;A String&quot;,
890 },
891 },
892 &quot;jobUuid&quot;: &quot;A String&quot;, # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
893 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
894 &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.
895 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
896 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
897 &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:
898 # &quot;hiveJob&quot;: {
899 # &quot;queryList&quot;: {
900 # &quot;queries&quot;: [
901 # &quot;query1&quot;,
902 # &quot;query2&quot;,
903 # &quot;query3;query4&quot;,
904 # ]
905 # }
906 # }
907 &quot;A String&quot;,
908 ],
909 },
910 &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.
911 &quot;A String&quot;,
912 ],
913 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
914 &quot;a_key&quot;: &quot;A String&quot;,
915 },
916 &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.
917 &quot;a_key&quot;: &quot;A String&quot;,
918 },
919 },
920 &quot;labels&quot;: { # Optional. The labels to associate with this job. 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 job.
921 &quot;a_key&quot;: &quot;A String&quot;,
922 },
923 &quot;done&quot;: True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
924 &quot;driverOutputResourceUri&quot;: &quot;A String&quot;, # Output only. A URI pointing to the location of the stdout of the job&#x27;s driver program.
925 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
926 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
927 &quot;a_key&quot;: &quot;A String&quot;,
928 },
929 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
930 &quot;A String&quot;,
931 ],
932 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
933 &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;
934 &quot;a_key&quot;: &quot;A String&quot;,
935 },
936 },
937 &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.
938 &quot;a_key&quot;: &quot;A String&quot;,
939 },
940 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
941 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
942 &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:
943 # &quot;hiveJob&quot;: {
944 # &quot;queryList&quot;: {
945 # &quot;queries&quot;: [
946 # &quot;query1&quot;,
947 # &quot;query2&quot;,
948 # &quot;query3;query4&quot;,
949 # ]
950 # }
951 # }
952 &quot;A String&quot;,
953 ],
954 },
955 },
956 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
957 &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.
958 &quot;A String&quot;,
959 ],
960 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
961 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
962 &quot;A String&quot;,
963 ],
964 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
965 &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;
966 &quot;a_key&quot;: &quot;A String&quot;,
967 },
968 },
969 &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.
970 &quot;a_key&quot;: &quot;A String&quot;,
971 },
972 &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.
973 &quot;A String&quot;,
974 ],
975 &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.
976 &quot;A String&quot;,
977 ],
978 &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.
979 },
980 &quot;statusHistory&quot;: [ # Output only. The previous job status.
Dan O'Mearadd494642020-05-01 07:42:23 -0700981 { # Dataproc job status.
Bu Sun Kim65020912020-05-20 12:08:20 -0700982 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
983 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
984 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
985 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Dan O'Mearadd494642020-05-01 07:42:23 -0700986 },
987 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700988 &quot;yarnApplications&quot;: [ # Output only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Dan O'Mearadd494642020-05-01 07:42:23 -0700989 { # A YARN application created by a job. Application information is a subset of &lt;code&gt;org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto&lt;/code&gt;.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Bu Sun Kim65020912020-05-20 12:08:20 -0700990 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
991 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
992 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
993 &quot;trackingUrl&quot;: &quot;A String&quot;, # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.
Dan O'Mearadd494642020-05-01 07:42:23 -0700994 },
995 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700996 &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.
997 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
998 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700999 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001000 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1001 &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;
1002 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001003 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001004 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001005 &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.
1006 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001007 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001008 &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.
1009 &quot;A String&quot;,
1010 ],
1011 &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.
1012 &quot;A String&quot;,
1013 ],
1014 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
1015 &quot;A String&quot;,
1016 ],
1017 &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.
1018 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
1019 &quot;A String&quot;,
1020 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001021 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001022 &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.
1023 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1024 &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;
1025 &quot;a_key&quot;: &quot;A String&quot;,
1026 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001027 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001028 &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.
1029 &quot;a_key&quot;: &quot;A String&quot;,
1030 },
1031 &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.
1032 &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.
1033 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001034 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001035 &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.
1036 &quot;A String&quot;,
1037 ],
1038 &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.
1039 &quot;A String&quot;,
1040 ],
1041 },
1042 &quot;reference&quot;: { # Encapsulates the full scoping used to reference a job. # Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a &lt;code&gt;job_id&lt;/code&gt;.
1043 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
1044 &quot;jobId&quot;: &quot;A String&quot;, # Optional. The job ID, which must be unique within the project.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters.If not specified by the caller, the job ID will be provided by the server.
1045 },
1046 &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.
1047 &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.
1048 &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.
1049 &quot;A String&quot;,
1050 ],
1051 &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;
1052 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
1053 &quot;A String&quot;,
1054 ],
1055 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1056 &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;
1057 &quot;a_key&quot;: &quot;A String&quot;,
1058 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001059 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001060 &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.
1061 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001062 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001063 &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.
1064 &quot;A String&quot;,
1065 ],
1066 &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.
1067 &quot;A String&quot;,
1068 ],
1069 },
1070 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
1071 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
1072 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
1073 },
1074 &quot;status&quot;: { # Dataproc job status. # Output only. The job status. Additional application-specific status information may be contained in the &lt;code&gt;type_job&lt;/code&gt; and &lt;code&gt;yarn_applications&lt;/code&gt; fields.
1075 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
1076 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
1077 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
1078 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001079 },
1080 },
1081 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001082 &quot;nextPageToken&quot;: &quot;A String&quot;, # Optional. 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;ListJobsRequest&lt;/code&gt;.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001083 }</pre>
1084</div>
1085
1086<div class="method">
1087 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1088 <pre>Retrieves the next page of results.
1089
1090Args:
1091 previous_request: The request for the previous page. (required)
1092 previous_response: The response from the request for the previous page. (required)
1093
1094Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001095 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001096 page. Returns None if there are no more items in the collection.
1097 </pre>
1098</div>
1099
1100<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001101 <code class="details" id="patch">patch(projectId, region, jobId, body=None, updateMask=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001102 <pre>Updates a job in a project.
1103
1104Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001105 projectId: string, Required. The ID of the Google Cloud Platform project that the job belongs to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001106 region: string, Required. The Dataproc region in which to handle the request. (required)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001107 jobId: string, Required. The job ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001108 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001109 The object takes the form of:
1110
Dan O'Mearadd494642020-05-01 07:42:23 -07001111{ # A Dataproc job resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001112 &quot;driverControlFilesUri&quot;: &quot;A String&quot;, # Output only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri.
1113 &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.
1114 &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
1115 &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.
1116 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1117 &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:
1118 # &quot;hiveJob&quot;: {
1119 # &quot;queryList&quot;: {
1120 # &quot;queries&quot;: [
1121 # &quot;query1&quot;,
1122 # &quot;query2&quot;,
1123 # &quot;query3;query4&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001124 # ]
1125 # }
1126 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07001127 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001128 ],
1129 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001130 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
1131 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
1132 &quot;A String&quot;,
1133 ],
1134 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1135 &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;
1136 &quot;a_key&quot;: &quot;A String&quot;,
1137 },
1138 },
1139 &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
1140 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001141 },
1142 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001143 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
1144 &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.
1145 },
1146 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
1147 &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.
1148 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
1149 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1150 &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:
1151 # &quot;hiveJob&quot;: {
1152 # &quot;queryList&quot;: {
1153 # &quot;queries&quot;: [
1154 # &quot;query1&quot;,
1155 # &quot;query2&quot;,
1156 # &quot;query3;query4&quot;,
1157 # ]
1158 # }
1159 # }
1160 &quot;A String&quot;,
1161 ],
1162 },
1163 &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.
1164 &quot;A String&quot;,
1165 ],
1166 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
1167 &quot;a_key&quot;: &quot;A String&quot;,
1168 },
1169 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1170 &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;
1171 &quot;a_key&quot;: &quot;A String&quot;,
1172 },
1173 },
1174 &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.
1175 &quot;a_key&quot;: &quot;A String&quot;,
1176 },
1177 },
1178 &quot;jobUuid&quot;: &quot;A String&quot;, # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
1179 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
1180 &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.
1181 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
1182 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1183 &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:
1184 # &quot;hiveJob&quot;: {
1185 # &quot;queryList&quot;: {
1186 # &quot;queries&quot;: [
1187 # &quot;query1&quot;,
1188 # &quot;query2&quot;,
1189 # &quot;query3;query4&quot;,
1190 # ]
1191 # }
1192 # }
1193 &quot;A String&quot;,
1194 ],
1195 },
1196 &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.
1197 &quot;A String&quot;,
1198 ],
1199 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
1200 &quot;a_key&quot;: &quot;A String&quot;,
1201 },
1202 &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.
1203 &quot;a_key&quot;: &quot;A String&quot;,
1204 },
1205 },
1206 &quot;labels&quot;: { # Optional. The labels to associate with this job. 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 job.
1207 &quot;a_key&quot;: &quot;A String&quot;,
1208 },
1209 &quot;done&quot;: True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
1210 &quot;driverOutputResourceUri&quot;: &quot;A String&quot;, # Output only. A URI pointing to the location of the stdout of the job&#x27;s driver program.
1211 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
1212 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
1213 &quot;a_key&quot;: &quot;A String&quot;,
1214 },
1215 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
1216 &quot;A String&quot;,
1217 ],
1218 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1219 &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;
1220 &quot;a_key&quot;: &quot;A String&quot;,
1221 },
1222 },
1223 &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.
1224 &quot;a_key&quot;: &quot;A String&quot;,
1225 },
1226 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
1227 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1228 &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:
1229 # &quot;hiveJob&quot;: {
1230 # &quot;queryList&quot;: {
1231 # &quot;queries&quot;: [
1232 # &quot;query1&quot;,
1233 # &quot;query2&quot;,
1234 # &quot;query3;query4&quot;,
1235 # ]
1236 # }
1237 # }
1238 &quot;A String&quot;,
1239 ],
1240 },
1241 },
1242 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
1243 &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.
1244 &quot;A String&quot;,
1245 ],
1246 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
1247 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
1248 &quot;A String&quot;,
1249 ],
1250 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1251 &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;
1252 &quot;a_key&quot;: &quot;A String&quot;,
1253 },
1254 },
1255 &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.
1256 &quot;a_key&quot;: &quot;A String&quot;,
1257 },
1258 &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.
1259 &quot;A String&quot;,
1260 ],
1261 &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.
1262 &quot;A String&quot;,
1263 ],
1264 &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.
1265 },
1266 &quot;statusHistory&quot;: [ # Output only. The previous job status.
Dan O'Mearadd494642020-05-01 07:42:23 -07001267 { # Dataproc job status.
Bu Sun Kim65020912020-05-20 12:08:20 -07001268 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
1269 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
1270 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
1271 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Dan O'Mearadd494642020-05-01 07:42:23 -07001272 },
1273 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001274 &quot;yarnApplications&quot;: [ # Output only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Dan O'Mearadd494642020-05-01 07:42:23 -07001275 { # A YARN application created by a job. Application information is a subset of &lt;code&gt;org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto&lt;/code&gt;.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Bu Sun Kim65020912020-05-20 12:08:20 -07001276 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
1277 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
1278 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
1279 &quot;trackingUrl&quot;: &quot;A String&quot;, # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.
Dan O'Mearadd494642020-05-01 07:42:23 -07001280 },
1281 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001282 &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.
1283 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
1284 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001285 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001286 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1287 &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;
1288 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001289 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001290 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001291 &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.
1292 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001293 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001294 &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.
1295 &quot;A String&quot;,
1296 ],
1297 &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.
1298 &quot;A String&quot;,
1299 ],
1300 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
1301 &quot;A String&quot;,
1302 ],
1303 &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.
1304 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
1305 &quot;A String&quot;,
1306 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001307 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001308 &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.
1309 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1310 &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;
1311 &quot;a_key&quot;: &quot;A String&quot;,
1312 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001313 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001314 &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.
1315 &quot;a_key&quot;: &quot;A String&quot;,
1316 },
1317 &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.
1318 &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.
1319 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001320 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001321 &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.
1322 &quot;A String&quot;,
1323 ],
1324 &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.
1325 &quot;A String&quot;,
1326 ],
1327 },
1328 &quot;reference&quot;: { # Encapsulates the full scoping used to reference a job. # Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a &lt;code&gt;job_id&lt;/code&gt;.
1329 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
1330 &quot;jobId&quot;: &quot;A String&quot;, # Optional. The job ID, which must be unique within the project.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters.If not specified by the caller, the job ID will be provided by the server.
1331 },
1332 &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.
1333 &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.
1334 &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.
1335 &quot;A String&quot;,
1336 ],
1337 &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;
1338 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
1339 &quot;A String&quot;,
1340 ],
1341 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1342 &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;
1343 &quot;a_key&quot;: &quot;A String&quot;,
1344 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001345 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001346 &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.
1347 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001348 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001349 &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.
1350 &quot;A String&quot;,
1351 ],
1352 &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.
1353 &quot;A String&quot;,
1354 ],
1355 },
1356 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
1357 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
1358 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
1359 },
1360 &quot;status&quot;: { # Dataproc job status. # Output only. The job status. Additional application-specific status information may be contained in the &lt;code&gt;type_job&lt;/code&gt; and &lt;code&gt;yarn_applications&lt;/code&gt; fields.
1361 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
1362 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
1363 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
1364 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001365 },
1366}
1367
Dan O'Mearadd494642020-05-01 07:42:23 -07001368 updateMask: string, Required. Specifies the path, relative to &lt;code&gt;Job&lt;/code&gt;, of the field to update. For example, to update the labels of a Job the &lt;code&gt;update_mask&lt;/code&gt; parameter would be specified as &lt;code&gt;labels&lt;/code&gt;, and the PATCH request body would specify the new value. &lt;strong&gt;Note:&lt;/strong&gt; Currently, &lt;code&gt;labels&lt;/code&gt; is the only field that can be updated.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001369 x__xgafv: string, V1 error format.
1370 Allowed values
1371 1 - v1 error format
1372 2 - v2 error format
1373
1374Returns:
1375 An object of the form:
1376
Dan O'Mearadd494642020-05-01 07:42:23 -07001377 { # A Dataproc job resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001378 &quot;driverControlFilesUri&quot;: &quot;A String&quot;, # Output only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri.
1379 &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.
1380 &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
1381 &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.
1382 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1383 &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:
1384 # &quot;hiveJob&quot;: {
1385 # &quot;queryList&quot;: {
1386 # &quot;queries&quot;: [
1387 # &quot;query1&quot;,
1388 # &quot;query2&quot;,
1389 # &quot;query3;query4&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001390 # ]
1391 # }
1392 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07001393 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001394 ],
1395 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001396 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
1397 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
1398 &quot;A String&quot;,
1399 ],
1400 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1401 &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;
1402 &quot;a_key&quot;: &quot;A String&quot;,
1403 },
1404 },
1405 &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
1406 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001407 },
1408 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001409 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
1410 &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.
1411 },
1412 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
1413 &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.
1414 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
1415 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1416 &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:
1417 # &quot;hiveJob&quot;: {
1418 # &quot;queryList&quot;: {
1419 # &quot;queries&quot;: [
1420 # &quot;query1&quot;,
1421 # &quot;query2&quot;,
1422 # &quot;query3;query4&quot;,
1423 # ]
1424 # }
1425 # }
1426 &quot;A String&quot;,
1427 ],
1428 },
1429 &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.
1430 &quot;A String&quot;,
1431 ],
1432 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
1433 &quot;a_key&quot;: &quot;A String&quot;,
1434 },
1435 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1436 &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;
1437 &quot;a_key&quot;: &quot;A String&quot;,
1438 },
1439 },
1440 &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.
1441 &quot;a_key&quot;: &quot;A String&quot;,
1442 },
1443 },
1444 &quot;jobUuid&quot;: &quot;A String&quot;, # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
1445 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
1446 &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.
1447 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
1448 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1449 &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:
1450 # &quot;hiveJob&quot;: {
1451 # &quot;queryList&quot;: {
1452 # &quot;queries&quot;: [
1453 # &quot;query1&quot;,
1454 # &quot;query2&quot;,
1455 # &quot;query3;query4&quot;,
1456 # ]
1457 # }
1458 # }
1459 &quot;A String&quot;,
1460 ],
1461 },
1462 &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.
1463 &quot;A String&quot;,
1464 ],
1465 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
1466 &quot;a_key&quot;: &quot;A String&quot;,
1467 },
1468 &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.
1469 &quot;a_key&quot;: &quot;A String&quot;,
1470 },
1471 },
1472 &quot;labels&quot;: { # Optional. The labels to associate with this job. 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 job.
1473 &quot;a_key&quot;: &quot;A String&quot;,
1474 },
1475 &quot;done&quot;: True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
1476 &quot;driverOutputResourceUri&quot;: &quot;A String&quot;, # Output only. A URI pointing to the location of the stdout of the job&#x27;s driver program.
1477 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
1478 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
1479 &quot;a_key&quot;: &quot;A String&quot;,
1480 },
1481 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
1482 &quot;A String&quot;,
1483 ],
1484 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1485 &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;
1486 &quot;a_key&quot;: &quot;A String&quot;,
1487 },
1488 },
1489 &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.
1490 &quot;a_key&quot;: &quot;A String&quot;,
1491 },
1492 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
1493 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1494 &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:
1495 # &quot;hiveJob&quot;: {
1496 # &quot;queryList&quot;: {
1497 # &quot;queries&quot;: [
1498 # &quot;query1&quot;,
1499 # &quot;query2&quot;,
1500 # &quot;query3;query4&quot;,
1501 # ]
1502 # }
1503 # }
1504 &quot;A String&quot;,
1505 ],
1506 },
1507 },
1508 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
1509 &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.
1510 &quot;A String&quot;,
1511 ],
1512 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
1513 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
1514 &quot;A String&quot;,
1515 ],
1516 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1517 &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;
1518 &quot;a_key&quot;: &quot;A String&quot;,
1519 },
1520 },
1521 &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.
1522 &quot;a_key&quot;: &quot;A String&quot;,
1523 },
1524 &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.
1525 &quot;A String&quot;,
1526 ],
1527 &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.
1528 &quot;A String&quot;,
1529 ],
1530 &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.
1531 },
1532 &quot;statusHistory&quot;: [ # Output only. The previous job status.
Dan O'Mearadd494642020-05-01 07:42:23 -07001533 { # Dataproc job status.
Bu Sun Kim65020912020-05-20 12:08:20 -07001534 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
1535 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
1536 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
1537 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Dan O'Mearadd494642020-05-01 07:42:23 -07001538 },
1539 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001540 &quot;yarnApplications&quot;: [ # Output only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Dan O'Mearadd494642020-05-01 07:42:23 -07001541 { # A YARN application created by a job. Application information is a subset of &lt;code&gt;org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto&lt;/code&gt;.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Bu Sun Kim65020912020-05-20 12:08:20 -07001542 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
1543 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
1544 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
1545 &quot;trackingUrl&quot;: &quot;A String&quot;, # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.
Dan O'Mearadd494642020-05-01 07:42:23 -07001546 },
1547 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001548 &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.
1549 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
1550 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001551 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001552 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1553 &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;
1554 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001555 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001556 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001557 &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.
1558 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001559 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001560 &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.
1561 &quot;A String&quot;,
1562 ],
1563 &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.
1564 &quot;A String&quot;,
1565 ],
1566 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
1567 &quot;A String&quot;,
1568 ],
1569 &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.
1570 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
1571 &quot;A String&quot;,
1572 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001573 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001574 &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.
1575 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1576 &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;
1577 &quot;a_key&quot;: &quot;A String&quot;,
1578 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001579 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001580 &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.
1581 &quot;a_key&quot;: &quot;A String&quot;,
1582 },
1583 &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.
1584 &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.
1585 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001586 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001587 &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.
1588 &quot;A String&quot;,
1589 ],
1590 &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.
1591 &quot;A String&quot;,
1592 ],
1593 },
1594 &quot;reference&quot;: { # Encapsulates the full scoping used to reference a job. # Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a &lt;code&gt;job_id&lt;/code&gt;.
1595 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
1596 &quot;jobId&quot;: &quot;A String&quot;, # Optional. The job ID, which must be unique within the project.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters.If not specified by the caller, the job ID will be provided by the server.
1597 },
1598 &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.
1599 &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.
1600 &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.
1601 &quot;A String&quot;,
1602 ],
1603 &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;
1604 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
1605 &quot;A String&quot;,
1606 ],
1607 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1608 &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;
1609 &quot;a_key&quot;: &quot;A String&quot;,
1610 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001611 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001612 &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.
1613 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001614 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001615 &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.
1616 &quot;A String&quot;,
1617 ],
1618 &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.
1619 &quot;A String&quot;,
1620 ],
1621 },
1622 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
1623 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
1624 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
1625 },
1626 &quot;status&quot;: { # Dataproc job status. # Output only. The job status. Additional application-specific status information may be contained in the &lt;code&gt;type_job&lt;/code&gt; and &lt;code&gt;yarn_applications&lt;/code&gt; fields.
1627 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
1628 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
1629 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
1630 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001631 },
1632 }</pre>
1633</div>
1634
1635<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001636 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
1637 <pre>Sets the access control policy on the specified resource. Replaces any existing policy.Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001638
1639Args:
1640 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 -07001641 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001642 The object takes the form of:
1643
1644{ # Request message for SetIamPolicy method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001645 &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.Optionally, a binding can 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.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 -07001646 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001647 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001648 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001649 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1650 # &quot;members&quot;: [
1651 # &quot;user:mike@example.com&quot;,
1652 # &quot;group:admins@example.com&quot;,
1653 # &quot;domain:google.com&quot;,
1654 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001655 # ]
1656 # },
1657 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001658 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1659 # &quot;members&quot;: [&quot;user:eve@example.com&quot;],
1660 # &quot;condition&quot;: {
1661 # &quot;title&quot;: &quot;expirable access&quot;,
1662 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1663 # &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 -07001664 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001665 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001666 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001667 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1668 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001669 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001670 # YAML example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001671 # bindings:
1672 # - members:
1673 # - user:mike@example.com
1674 # - group:admins@example.com
1675 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001676 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1677 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001678 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001679 # - user:eve@example.com
1680 # role: roles/resourcemanager.organizationViewer
1681 # condition:
1682 # title: expirable access
1683 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001684 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001685 # - etag: BwWWja0YfJA=
1686 # - version: 3
1687 # For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001688 &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 -07001689 { # Associates members with a role.
Bu Sun Kim65020912020-05-20 12:08:20 -07001690 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
1691 &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. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
1692 # title: &quot;Summary size limit&quot;
1693 # description: &quot;Determines if a summary is less than 100 chars&quot;
1694 # expression: &quot;document.summary.size() &lt; 100&quot;
1695 # Example (Equality):
1696 # title: &quot;Requestor is owner&quot;
1697 # description: &quot;Determines if requestor is the document owner&quot;
1698 # expression: &quot;document.owner == request.auth.claims.email&quot;
1699 # Example (Logic):
1700 # title: &quot;Public documents&quot;
1701 # description: &quot;Determine whether the document should be publicly visible&quot;
1702 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1703 # Example (Data Manipulation):
1704 # title: &quot;Notification string&quot;
1705 # description: &quot;Create a notification string with a timestamp.&quot;
1706 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1707 # 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.
1708 &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.
1709 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1710 &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.
1711 &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.
1712 },
1713 &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 -07001714 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
1715 # 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 -07001716 # user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001717 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
1718 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
Dan O'Mearadd494642020-05-01 07:42:23 -07001719 # 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.
1720 # 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.
1721 # 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 -07001722 # 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 -07001723 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001724 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001725 },
1726 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001727 &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.
1728 &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:
Dan O'Mearadd494642020-05-01 07:42:23 -07001729 # Getting a policy that includes a conditional role binding
1730 # Adding a conditional role binding to a policy
1731 # Changing a conditional role binding in a policy
1732 # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001733 },
1734 }
1735
1736 x__xgafv: string, V1 error format.
1737 Allowed values
1738 1 - v1 error format
1739 2 - v2 error format
1740
1741Returns:
1742 An object of the form:
1743
Dan O'Mearadd494642020-05-01 07:42:23 -07001744 { # 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.Optionally, a binding can 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.JSON example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001745 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001746 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001747 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001748 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1749 # &quot;members&quot;: [
1750 # &quot;user:mike@example.com&quot;,
1751 # &quot;group:admins@example.com&quot;,
1752 # &quot;domain:google.com&quot;,
1753 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001754 # ]
1755 # },
1756 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001757 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1758 # &quot;members&quot;: [&quot;user:eve@example.com&quot;],
1759 # &quot;condition&quot;: {
1760 # &quot;title&quot;: &quot;expirable access&quot;,
1761 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1762 # &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 -07001763 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001764 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001765 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001766 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1767 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001768 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001769 # YAML example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001770 # bindings:
1771 # - members:
1772 # - user:mike@example.com
1773 # - group:admins@example.com
1774 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001775 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1776 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001777 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001778 # - user:eve@example.com
1779 # role: roles/resourcemanager.organizationViewer
1780 # condition:
1781 # title: expirable access
1782 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001783 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001784 # - etag: BwWWja0YfJA=
1785 # - version: 3
1786 # For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001787 &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 -07001788 { # Associates members with a role.
Bu Sun Kim65020912020-05-20 12:08:20 -07001789 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
1790 &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. NOTE: An unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
1791 # title: &quot;Summary size limit&quot;
1792 # description: &quot;Determines if a summary is less than 100 chars&quot;
1793 # expression: &quot;document.summary.size() &lt; 100&quot;
1794 # Example (Equality):
1795 # title: &quot;Requestor is owner&quot;
1796 # description: &quot;Determines if requestor is the document owner&quot;
1797 # expression: &quot;document.owner == request.auth.claims.email&quot;
1798 # Example (Logic):
1799 # title: &quot;Public documents&quot;
1800 # description: &quot;Determine whether the document should be publicly visible&quot;
1801 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1802 # Example (Data Manipulation):
1803 # title: &quot;Notification string&quot;
1804 # description: &quot;Create a notification string with a timestamp.&quot;
1805 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1806 # 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.
1807 &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.
1808 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1809 &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.
1810 &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.
1811 },
1812 &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 -07001813 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
1814 # 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 -07001815 # user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001816 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
1817 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
Dan O'Mearadd494642020-05-01 07:42:23 -07001818 # 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.
1819 # 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.
1820 # 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 -07001821 # 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 -07001822 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001823 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001824 },
1825 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001826 &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.
1827 &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:
Dan O'Mearadd494642020-05-01 07:42:23 -07001828 # Getting a policy that includes a conditional role binding
1829 # Adding a conditional role binding to a policy
1830 # Changing a conditional role binding in a policy
1831 # 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001832 }</pre>
1833</div>
1834
1835<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001836 <code class="details" id="submit">submit(projectId, region, body=None, x__xgafv=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001837 <pre>Submits a job to a cluster.
1838
1839Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001840 projectId: string, Required. The ID of the Google Cloud Platform project that the job belongs to. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001841 region: string, Required. The Dataproc region in which to handle the request. (required)
1842 body: object, The request body.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001843 The object takes the form of:
1844
1845{ # A request to submit a job.
Bu Sun Kim65020912020-05-20 12:08:20 -07001846 &quot;job&quot;: { # A Dataproc job resource. # Required. The job resource.
1847 &quot;driverControlFilesUri&quot;: &quot;A String&quot;, # Output only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri.
1848 &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.
1849 &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
1850 &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.
1851 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1852 &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:
1853 # &quot;hiveJob&quot;: {
1854 # &quot;queryList&quot;: {
1855 # &quot;queries&quot;: [
1856 # &quot;query1&quot;,
1857 # &quot;query2&quot;,
1858 # &quot;query3;query4&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001859 # ]
1860 # }
1861 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07001862 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001863 ],
1864 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001865 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
1866 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
1867 &quot;A String&quot;,
1868 ],
1869 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1870 &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;
1871 &quot;a_key&quot;: &quot;A String&quot;,
1872 },
1873 },
1874 &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
1875 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001876 },
1877 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001878 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
1879 &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.
1880 },
1881 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
1882 &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.
1883 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
1884 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1885 &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:
1886 # &quot;hiveJob&quot;: {
1887 # &quot;queryList&quot;: {
1888 # &quot;queries&quot;: [
1889 # &quot;query1&quot;,
1890 # &quot;query2&quot;,
1891 # &quot;query3;query4&quot;,
1892 # ]
1893 # }
1894 # }
1895 &quot;A String&quot;,
1896 ],
1897 },
1898 &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.
1899 &quot;A String&quot;,
1900 ],
1901 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
1902 &quot;a_key&quot;: &quot;A String&quot;,
1903 },
1904 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1905 &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;
1906 &quot;a_key&quot;: &quot;A String&quot;,
1907 },
1908 },
1909 &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.
1910 &quot;a_key&quot;: &quot;A String&quot;,
1911 },
1912 },
1913 &quot;jobUuid&quot;: &quot;A String&quot;, # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
1914 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
1915 &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.
1916 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
1917 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1918 &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:
1919 # &quot;hiveJob&quot;: {
1920 # &quot;queryList&quot;: {
1921 # &quot;queries&quot;: [
1922 # &quot;query1&quot;,
1923 # &quot;query2&quot;,
1924 # &quot;query3;query4&quot;,
1925 # ]
1926 # }
1927 # }
1928 &quot;A String&quot;,
1929 ],
1930 },
1931 &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.
1932 &quot;A String&quot;,
1933 ],
1934 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
1935 &quot;a_key&quot;: &quot;A String&quot;,
1936 },
1937 &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.
1938 &quot;a_key&quot;: &quot;A String&quot;,
1939 },
1940 },
1941 &quot;labels&quot;: { # Optional. The labels to associate with this job. 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 job.
1942 &quot;a_key&quot;: &quot;A String&quot;,
1943 },
1944 &quot;done&quot;: True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
1945 &quot;driverOutputResourceUri&quot;: &quot;A String&quot;, # Output only. A URI pointing to the location of the stdout of the job&#x27;s driver program.
1946 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
1947 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
1948 &quot;a_key&quot;: &quot;A String&quot;,
1949 },
1950 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
1951 &quot;A String&quot;,
1952 ],
1953 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1954 &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;
1955 &quot;a_key&quot;: &quot;A String&quot;,
1956 },
1957 },
1958 &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.
1959 &quot;a_key&quot;: &quot;A String&quot;,
1960 },
1961 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
1962 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1963 &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:
1964 # &quot;hiveJob&quot;: {
1965 # &quot;queryList&quot;: {
1966 # &quot;queries&quot;: [
1967 # &quot;query1&quot;,
1968 # &quot;query2&quot;,
1969 # &quot;query3;query4&quot;,
1970 # ]
1971 # }
1972 # }
1973 &quot;A String&quot;,
1974 ],
1975 },
1976 },
1977 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
1978 &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.
1979 &quot;A String&quot;,
1980 ],
1981 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
1982 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
1983 &quot;A String&quot;,
1984 ],
1985 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1986 &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;
1987 &quot;a_key&quot;: &quot;A String&quot;,
1988 },
1989 },
1990 &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.
1991 &quot;a_key&quot;: &quot;A String&quot;,
1992 },
1993 &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.
1994 &quot;A String&quot;,
1995 ],
1996 &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.
1997 &quot;A String&quot;,
1998 ],
1999 &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.
2000 },
2001 &quot;statusHistory&quot;: [ # Output only. The previous job status.
Dan O'Mearadd494642020-05-01 07:42:23 -07002002 { # Dataproc job status.
Bu Sun Kim65020912020-05-20 12:08:20 -07002003 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
2004 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
2005 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
2006 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Dan O'Mearadd494642020-05-01 07:42:23 -07002007 },
2008 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002009 &quot;yarnApplications&quot;: [ # Output only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Dan O'Mearadd494642020-05-01 07:42:23 -07002010 { # A YARN application created by a job. Application information is a subset of &lt;code&gt;org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto&lt;/code&gt;.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Bu Sun Kim65020912020-05-20 12:08:20 -07002011 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
2012 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
2013 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
2014 &quot;trackingUrl&quot;: &quot;A String&quot;, # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.
Dan O'Mearadd494642020-05-01 07:42:23 -07002015 },
2016 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002017 &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.
2018 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
2019 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002020 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002021 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2022 &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;
2023 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002024 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002025 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002026 &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.
2027 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002028 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002029 &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.
2030 &quot;A String&quot;,
2031 ],
2032 &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.
2033 &quot;A String&quot;,
2034 ],
2035 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
2036 &quot;A String&quot;,
2037 ],
2038 &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.
2039 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
2040 &quot;A String&quot;,
2041 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07002042 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002043 &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.
2044 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2045 &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;
2046 &quot;a_key&quot;: &quot;A String&quot;,
2047 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002048 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002049 &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.
2050 &quot;a_key&quot;: &quot;A String&quot;,
2051 },
2052 &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.
2053 &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.
2054 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002055 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002056 &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.
2057 &quot;A String&quot;,
2058 ],
2059 &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.
2060 &quot;A String&quot;,
2061 ],
2062 },
2063 &quot;reference&quot;: { # Encapsulates the full scoping used to reference a job. # Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a &lt;code&gt;job_id&lt;/code&gt;.
2064 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
2065 &quot;jobId&quot;: &quot;A String&quot;, # Optional. The job ID, which must be unique within the project.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters.If not specified by the caller, the job ID will be provided by the server.
2066 },
2067 &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.
2068 &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.
2069 &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.
2070 &quot;A String&quot;,
2071 ],
2072 &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;
2073 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
2074 &quot;A String&quot;,
2075 ],
2076 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2077 &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;
2078 &quot;a_key&quot;: &quot;A String&quot;,
2079 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002080 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002081 &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.
2082 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002083 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002084 &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.
2085 &quot;A String&quot;,
2086 ],
2087 &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.
2088 &quot;A String&quot;,
2089 ],
2090 },
2091 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
2092 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
2093 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
2094 },
2095 &quot;status&quot;: { # Dataproc job status. # Output only. The job status. Additional application-specific status information may be contained in the &lt;code&gt;type_job&lt;/code&gt; and &lt;code&gt;yarn_applications&lt;/code&gt; fields.
2096 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
2097 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
2098 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
2099 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002100 },
2101 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002102 &quot;requestId&quot;: &quot;A String&quot;, # Optional. A unique id used to identify the request. If the server receives two SubmitJobRequest requests with the same id, then the second request will be ignored and the first Job created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002103 }
2104
2105 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002106 Allowed values
2107 1 - v1 error format
2108 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002109
2110Returns:
2111 An object of the form:
2112
Dan O'Mearadd494642020-05-01 07:42:23 -07002113 { # A Dataproc job resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07002114 &quot;driverControlFilesUri&quot;: &quot;A String&quot;, # Output only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri.
2115 &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.
2116 &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
2117 &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.
2118 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2119 &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:
2120 # &quot;hiveJob&quot;: {
2121 # &quot;queryList&quot;: {
2122 # &quot;queries&quot;: [
2123 # &quot;query1&quot;,
2124 # &quot;query2&quot;,
2125 # &quot;query3;query4&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002126 # ]
2127 # }
2128 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07002129 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002130 ],
2131 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002132 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
2133 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
2134 &quot;A String&quot;,
2135 ],
2136 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2137 &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;
2138 &quot;a_key&quot;: &quot;A String&quot;,
2139 },
2140 },
2141 &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
2142 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002143 },
2144 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002145 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
2146 &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.
2147 },
2148 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
2149 &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.
2150 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
2151 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2152 &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:
2153 # &quot;hiveJob&quot;: {
2154 # &quot;queryList&quot;: {
2155 # &quot;queries&quot;: [
2156 # &quot;query1&quot;,
2157 # &quot;query2&quot;,
2158 # &quot;query3;query4&quot;,
2159 # ]
2160 # }
2161 # }
2162 &quot;A String&quot;,
2163 ],
2164 },
2165 &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.
2166 &quot;A String&quot;,
2167 ],
2168 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
2169 &quot;a_key&quot;: &quot;A String&quot;,
2170 },
2171 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2172 &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;
2173 &quot;a_key&quot;: &quot;A String&quot;,
2174 },
2175 },
2176 &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.
2177 &quot;a_key&quot;: &quot;A String&quot;,
2178 },
2179 },
2180 &quot;jobUuid&quot;: &quot;A String&quot;, # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
2181 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
2182 &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.
2183 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
2184 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2185 &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:
2186 # &quot;hiveJob&quot;: {
2187 # &quot;queryList&quot;: {
2188 # &quot;queries&quot;: [
2189 # &quot;query1&quot;,
2190 # &quot;query2&quot;,
2191 # &quot;query3;query4&quot;,
2192 # ]
2193 # }
2194 # }
2195 &quot;A String&quot;,
2196 ],
2197 },
2198 &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.
2199 &quot;A String&quot;,
2200 ],
2201 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
2202 &quot;a_key&quot;: &quot;A String&quot;,
2203 },
2204 &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.
2205 &quot;a_key&quot;: &quot;A String&quot;,
2206 },
2207 },
2208 &quot;labels&quot;: { # Optional. The labels to associate with this job. 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 job.
2209 &quot;a_key&quot;: &quot;A String&quot;,
2210 },
2211 &quot;done&quot;: True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
2212 &quot;driverOutputResourceUri&quot;: &quot;A String&quot;, # Output only. A URI pointing to the location of the stdout of the job&#x27;s driver program.
2213 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
2214 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
2215 &quot;a_key&quot;: &quot;A String&quot;,
2216 },
2217 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
2218 &quot;A String&quot;,
2219 ],
2220 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2221 &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;
2222 &quot;a_key&quot;: &quot;A String&quot;,
2223 },
2224 },
2225 &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.
2226 &quot;a_key&quot;: &quot;A String&quot;,
2227 },
2228 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
2229 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2230 &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:
2231 # &quot;hiveJob&quot;: {
2232 # &quot;queryList&quot;: {
2233 # &quot;queries&quot;: [
2234 # &quot;query1&quot;,
2235 # &quot;query2&quot;,
2236 # &quot;query3;query4&quot;,
2237 # ]
2238 # }
2239 # }
2240 &quot;A String&quot;,
2241 ],
2242 },
2243 },
2244 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
2245 &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.
2246 &quot;A String&quot;,
2247 ],
2248 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
2249 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
2250 &quot;A String&quot;,
2251 ],
2252 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2253 &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;
2254 &quot;a_key&quot;: &quot;A String&quot;,
2255 },
2256 },
2257 &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.
2258 &quot;a_key&quot;: &quot;A String&quot;,
2259 },
2260 &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.
2261 &quot;A String&quot;,
2262 ],
2263 &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.
2264 &quot;A String&quot;,
2265 ],
2266 &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.
2267 },
2268 &quot;statusHistory&quot;: [ # Output only. The previous job status.
Dan O'Mearadd494642020-05-01 07:42:23 -07002269 { # Dataproc job status.
Bu Sun Kim65020912020-05-20 12:08:20 -07002270 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
2271 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
2272 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
2273 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Dan O'Mearadd494642020-05-01 07:42:23 -07002274 },
2275 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002276 &quot;yarnApplications&quot;: [ # Output only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Dan O'Mearadd494642020-05-01 07:42:23 -07002277 { # A YARN application created by a job. Application information is a subset of &lt;code&gt;org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto&lt;/code&gt;.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Bu Sun Kim65020912020-05-20 12:08:20 -07002278 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
2279 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
2280 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
2281 &quot;trackingUrl&quot;: &quot;A String&quot;, # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.
Dan O'Mearadd494642020-05-01 07:42:23 -07002282 },
2283 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002284 &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.
2285 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
2286 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002287 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002288 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2289 &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;
2290 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002291 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002292 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002293 &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.
2294 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002295 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002296 &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.
2297 &quot;A String&quot;,
2298 ],
2299 &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.
2300 &quot;A String&quot;,
2301 ],
2302 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
2303 &quot;A String&quot;,
2304 ],
2305 &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.
2306 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
2307 &quot;A String&quot;,
2308 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07002309 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002310 &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.
2311 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2312 &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;
2313 &quot;a_key&quot;: &quot;A String&quot;,
2314 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002315 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002316 &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.
2317 &quot;a_key&quot;: &quot;A String&quot;,
2318 },
2319 &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.
2320 &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.
2321 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002322 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002323 &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.
2324 &quot;A String&quot;,
2325 ],
2326 &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.
2327 &quot;A String&quot;,
2328 ],
2329 },
2330 &quot;reference&quot;: { # Encapsulates the full scoping used to reference a job. # Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a &lt;code&gt;job_id&lt;/code&gt;.
2331 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
2332 &quot;jobId&quot;: &quot;A String&quot;, # Optional. The job ID, which must be unique within the project.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters.If not specified by the caller, the job ID will be provided by the server.
2333 },
2334 &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.
2335 &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.
2336 &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.
2337 &quot;A String&quot;,
2338 ],
2339 &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;
2340 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
2341 &quot;A String&quot;,
2342 ],
2343 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2344 &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;
2345 &quot;a_key&quot;: &quot;A String&quot;,
2346 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002347 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002348 &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.
2349 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002350 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002351 &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.
2352 &quot;A String&quot;,
2353 ],
2354 &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.
2355 &quot;A String&quot;,
2356 ],
2357 },
2358 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
2359 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
2360 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
2361 },
2362 &quot;status&quot;: { # Dataproc job status. # Output only. The job status. Additional application-specific status information may be contained in the &lt;code&gt;type_job&lt;/code&gt; and &lt;code&gt;yarn_applications&lt;/code&gt; fields.
2363 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
2364 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
2365 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
2366 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002367 },
2368 }</pre>
2369</div>
2370
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002371<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002372 <code class="details" id="submitAsOperation">submitAsOperation(projectId, region, body=None, x__xgafv=None)</code>
2373 <pre>Submits job to a cluster.
2374
2375Args:
2376 projectId: string, Required. The ID of the Google Cloud Platform project that the job belongs to. (required)
2377 region: string, Required. The Dataproc region in which to handle the request. (required)
2378 body: object, The request body.
2379 The object takes the form of:
2380
2381{ # A request to submit a job.
Bu Sun Kim65020912020-05-20 12:08:20 -07002382 &quot;job&quot;: { # A Dataproc job resource. # Required. The job resource.
2383 &quot;driverControlFilesUri&quot;: &quot;A String&quot;, # Output only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_uri.
2384 &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.
2385 &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
2386 &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.
2387 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2388 &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:
2389 # &quot;hiveJob&quot;: {
2390 # &quot;queryList&quot;: {
2391 # &quot;queries&quot;: [
2392 # &quot;query1&quot;,
2393 # &quot;query2&quot;,
2394 # &quot;query3;query4&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002395 # ]
2396 # }
2397 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07002398 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002399 ],
2400 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002401 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
2402 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
2403 &quot;A String&quot;,
2404 ],
2405 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2406 &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;
2407 &quot;a_key&quot;: &quot;A String&quot;,
2408 },
2409 },
2410 &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
2411 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002412 },
2413 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002414 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
2415 &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.
2416 },
2417 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
2418 &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.
2419 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
2420 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2421 &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:
2422 # &quot;hiveJob&quot;: {
2423 # &quot;queryList&quot;: {
2424 # &quot;queries&quot;: [
2425 # &quot;query1&quot;,
2426 # &quot;query2&quot;,
2427 # &quot;query3;query4&quot;,
2428 # ]
2429 # }
2430 # }
2431 &quot;A String&quot;,
2432 ],
2433 },
2434 &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.
2435 &quot;A String&quot;,
2436 ],
2437 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
2438 &quot;a_key&quot;: &quot;A String&quot;,
2439 },
2440 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2441 &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;
2442 &quot;a_key&quot;: &quot;A String&quot;,
2443 },
2444 },
2445 &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.
2446 &quot;a_key&quot;: &quot;A String&quot;,
2447 },
2448 },
2449 &quot;jobUuid&quot;: &quot;A String&quot;, # Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that may be reused over time.
2450 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
2451 &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.
2452 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
2453 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2454 &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:
2455 # &quot;hiveJob&quot;: {
2456 # &quot;queryList&quot;: {
2457 # &quot;queries&quot;: [
2458 # &quot;query1&quot;,
2459 # &quot;query2&quot;,
2460 # &quot;query3;query4&quot;,
2461 # ]
2462 # }
2463 # }
2464 &quot;A String&quot;,
2465 ],
2466 },
2467 &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.
2468 &quot;A String&quot;,
2469 ],
2470 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
2471 &quot;a_key&quot;: &quot;A String&quot;,
2472 },
2473 &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.
2474 &quot;a_key&quot;: &quot;A String&quot;,
2475 },
2476 },
2477 &quot;labels&quot;: { # Optional. The labels to associate with this job. 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 job.
2478 &quot;a_key&quot;: &quot;A String&quot;,
2479 },
2480 &quot;done&quot;: True or False, # Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.
2481 &quot;driverOutputResourceUri&quot;: &quot;A String&quot;, # Output only. A URI pointing to the location of the stdout of the job&#x27;s driver program.
2482 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
2483 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
2484 &quot;a_key&quot;: &quot;A String&quot;,
2485 },
2486 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
2487 &quot;A String&quot;,
2488 ],
2489 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2490 &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;
2491 &quot;a_key&quot;: &quot;A String&quot;,
2492 },
2493 },
2494 &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.
2495 &quot;a_key&quot;: &quot;A String&quot;,
2496 },
2497 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
2498 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2499 &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:
2500 # &quot;hiveJob&quot;: {
2501 # &quot;queryList&quot;: {
2502 # &quot;queries&quot;: [
2503 # &quot;query1&quot;,
2504 # &quot;query2&quot;,
2505 # &quot;query3;query4&quot;,
2506 # ]
2507 # }
2508 # }
2509 &quot;A String&quot;,
2510 ],
2511 },
2512 },
2513 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
2514 &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.
2515 &quot;A String&quot;,
2516 ],
2517 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
2518 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
2519 &quot;A String&quot;,
2520 ],
2521 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2522 &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;
2523 &quot;a_key&quot;: &quot;A String&quot;,
2524 },
2525 },
2526 &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.
2527 &quot;a_key&quot;: &quot;A String&quot;,
2528 },
2529 &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.
2530 &quot;A String&quot;,
2531 ],
2532 &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.
2533 &quot;A String&quot;,
2534 ],
2535 &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.
2536 },
2537 &quot;statusHistory&quot;: [ # Output only. The previous job status.
Dan O'Mearadd494642020-05-01 07:42:23 -07002538 { # Dataproc job status.
Bu Sun Kim65020912020-05-20 12:08:20 -07002539 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
2540 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
2541 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
2542 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Dan O'Mearadd494642020-05-01 07:42:23 -07002543 },
2544 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002545 &quot;yarnApplications&quot;: [ # Output only. The collection of YARN applications spun up by this job.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Dan O'Mearadd494642020-05-01 07:42:23 -07002546 { # A YARN application created by a job. Application information is a subset of &lt;code&gt;org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto&lt;/code&gt;.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Bu Sun Kim65020912020-05-20 12:08:20 -07002547 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
2548 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
2549 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
2550 &quot;trackingUrl&quot;: &quot;A String&quot;, # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.
Dan O'Mearadd494642020-05-01 07:42:23 -07002551 },
2552 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002553 &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.
2554 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
2555 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002556 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002557 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2558 &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;
2559 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002560 },
2561 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002562 &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.
2563 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002564 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002565 &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.
2566 &quot;A String&quot;,
2567 ],
2568 &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.
2569 &quot;A String&quot;,
2570 ],
2571 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
2572 &quot;A String&quot;,
2573 ],
2574 &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.
2575 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
2576 &quot;A String&quot;,
2577 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07002578 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002579 &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.
2580 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2581 &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;
2582 &quot;a_key&quot;: &quot;A String&quot;,
2583 },
Dan O'Mearadd494642020-05-01 07:42:23 -07002584 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002585 &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.
2586 &quot;a_key&quot;: &quot;A String&quot;,
2587 },
2588 &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.
2589 &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.
2590 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002591 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002592 &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.
2593 &quot;A String&quot;,
2594 ],
2595 &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.
2596 &quot;A String&quot;,
2597 ],
2598 },
2599 &quot;reference&quot;: { # Encapsulates the full scoping used to reference a job. # Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a &lt;code&gt;job_id&lt;/code&gt;.
2600 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
2601 &quot;jobId&quot;: &quot;A String&quot;, # Optional. The job ID, which must be unique within the project.The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters.If not specified by the caller, the job ID will be provided by the server.
2602 },
2603 &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.
2604 &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.
2605 &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.
2606 &quot;A String&quot;,
2607 ],
2608 &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;
2609 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
2610 &quot;A String&quot;,
2611 ],
2612 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2613 &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;
2614 &quot;a_key&quot;: &quot;A String&quot;,
2615 },
Dan O'Mearadd494642020-05-01 07:42:23 -07002616 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002617 &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.
2618 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002619 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002620 &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.
2621 &quot;A String&quot;,
2622 ],
2623 &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.
2624 &quot;A String&quot;,
2625 ],
2626 },
2627 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
2628 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
2629 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
2630 },
2631 &quot;status&quot;: { # Dataproc job status. # Output only. The job status. Additional application-specific status information may be contained in the &lt;code&gt;type_job&lt;/code&gt; and &lt;code&gt;yarn_applications&lt;/code&gt; fields.
2632 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
2633 &quot;details&quot;: &quot;A String&quot;, # Optional. Output only. Job state details, such as an error description if the state is &lt;code&gt;ERROR&lt;/code&gt;.
2634 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
2635 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
Dan O'Mearadd494642020-05-01 07:42:23 -07002636 },
2637 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002638 &quot;requestId&quot;: &quot;A String&quot;, # Optional. A unique id used to identify the request. If the server receives two SubmitJobRequest requests with the same id, then the second request will be ignored and the first Job created and stored in the backend is returned.It is recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
Dan O'Mearadd494642020-05-01 07:42:23 -07002639 }
2640
2641 x__xgafv: string, V1 error format.
2642 Allowed values
2643 1 - v1 error format
2644 2 - v2 error format
2645
2646Returns:
2647 An object of the form:
2648
2649 { # This resource represents a long-running operation that is the result of a network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07002650 &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.
2651 &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.
2652 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07002653 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002654 &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}.
2655 &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.
2656 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2657 &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.
2658 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Dan O'Mearadd494642020-05-01 07:42:23 -07002659 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002660 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07002661 },
2662 ],
2663 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002664 &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.
2665 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07002666 },
Dan O'Mearadd494642020-05-01 07:42:23 -07002667 }</pre>
2668</div>
2669
2670<div class="method">
2671 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -07002672 <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 -07002673
2674Args:
2675 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 -07002676 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002677 The object takes the form of:
2678
2679{ # Request message for TestIamPermissions method.
Bu Sun Kim65020912020-05-20 12:08:20 -07002680 &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).
2681 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002682 ],
2683 }
2684
2685 x__xgafv: string, V1 error format.
2686 Allowed values
2687 1 - v1 error format
2688 2 - v2 error format
2689
2690Returns:
2691 An object of the form:
2692
2693 { # Response message for TestIamPermissions method.
Bu Sun Kim65020912020-05-20 12:08:20 -07002694 &quot;permissions&quot;: [ # A subset of TestPermissionsRequest.permissions that the caller is allowed.
2695 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002696 ],
2697 }</pre>
2698</div>
2699
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002700</body></html>