blob: 8ab644bd48d85b830d77480cb64c630b35e10599 [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 Kim4ed7d3f2020-05-27 12:20:54 -070090 <code><a href="#list">list(projectId, region, pageToken=None, pageSize=None, clusterName=None, filter=None, jobStateMatcher=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>
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700100<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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;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.
135 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
136 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700137 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
138 &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:
139 # &quot;hiveJob&quot;: {
140 # &quot;queryList&quot;: {
141 # &quot;queries&quot;: [
142 # &quot;query1&quot;,
143 # &quot;query2&quot;,
144 # &quot;query3;query4&quot;,
145 # ]
146 # }
147 # }
148 &quot;A String&quot;,
149 ],
150 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700151 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &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.
153 &quot;A String&quot;,
154 ],
155 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
156 &quot;a_key&quot;: &quot;A String&quot;,
157 },
158 &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.
159 &quot;a_key&quot;: &quot;A String&quot;,
160 },
161 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700162 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700163 &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.
164 &quot;a_key&quot;: &quot;A String&quot;,
165 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 &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.
167 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700168 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
169 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
170 &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:
171 # &quot;hiveJob&quot;: {
172 # &quot;queryList&quot;: {
173 # &quot;queries&quot;: [
174 # &quot;query1&quot;,
175 # &quot;query2&quot;,
176 # &quot;query3;query4&quot;,
177 # ]
178 # }
179 # }
180 &quot;A String&quot;,
181 ],
182 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
184 &quot;a_key&quot;: &quot;A String&quot;,
185 },
186 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
187 &quot;A String&quot;,
188 ],
189 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
190 &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;
191 &quot;a_key&quot;: &quot;A String&quot;,
192 },
193 },
194 &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.
195 &quot;a_key&quot;: &quot;A String&quot;,
196 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700198 &quot;statusHistory&quot;: [ # Output only. The previous job status.
199 { # Dataproc job status.
200 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
201 &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;.
202 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
203 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
204 },
205 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700206 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700207 &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.
208 &quot;A String&quot;,
209 ],
210 &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.
211 &quot;A String&quot;,
212 ],
213 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700214 &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.
215 &quot;A String&quot;,
216 ],
217 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
218 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
219 &quot;A String&quot;,
220 ],
221 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
222 &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;
223 &quot;a_key&quot;: &quot;A String&quot;,
224 },
225 },
226 &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.
227 &quot;a_key&quot;: &quot;A String&quot;,
228 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 &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 -0700231 { # 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 -0700232 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
233 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
234 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
235 &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 -0700236 },
237 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 &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.
239 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
240 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700241 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700242 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
243 &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;
244 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700245 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400246 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700247 &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.
248 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700249 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 &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.
251 &quot;A String&quot;,
252 ],
253 &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.
254 &quot;A String&quot;,
255 ],
256 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
257 &quot;A String&quot;,
258 ],
259 &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.
260 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
261 &quot;A String&quot;,
262 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700263 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700264 &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.
265 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
266 &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;
267 &quot;a_key&quot;: &quot;A String&quot;,
268 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800269 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700270 &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.
271 &quot;a_key&quot;: &quot;A String&quot;,
272 },
273 &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.
274 &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.
275 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800276 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 &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.
278 &quot;A String&quot;,
279 ],
280 &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.
281 &quot;A String&quot;,
282 ],
283 },
284 &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;.
285 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
286 &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.
287 },
288 &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.
289 &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.
290 &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.
291 &quot;A String&quot;,
292 ],
293 &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;
294 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
295 &quot;A String&quot;,
296 ],
297 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
298 &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;
299 &quot;a_key&quot;: &quot;A String&quot;,
300 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800301 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700302 &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.
303 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800304 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 &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.
306 &quot;A String&quot;,
307 ],
308 &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.
309 &quot;A String&quot;,
310 ],
311 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700312 &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.
313 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
314 &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;.
315 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
316 &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 -0800317 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700318 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
319 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
320 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
321 },
322 &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.
323 &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
324 &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.
325 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
326 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
327 &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:
328 # &quot;hiveJob&quot;: {
329 # &quot;queryList&quot;: {
330 # &quot;queries&quot;: [
331 # &quot;query1&quot;,
332 # &quot;query2&quot;,
333 # &quot;query3;query4&quot;,
334 # ]
335 # }
336 # }
337 &quot;A String&quot;,
338 ],
339 },
340 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
341 &quot;A String&quot;,
342 ],
343 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
344 &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;
345 &quot;a_key&quot;: &quot;A String&quot;,
346 },
347 },
348 &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
349 &quot;a_key&quot;: &quot;A String&quot;,
350 },
351 },
352 &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.
353 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
354 &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.
355 },
356 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
357 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
358 &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;
359 &quot;a_key&quot;: &quot;A String&quot;,
360 },
361 },
362 &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.
363 &quot;a_key&quot;: &quot;A String&quot;,
364 },
365 &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.
366 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
367 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
368 &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:
369 # &quot;hiveJob&quot;: {
370 # &quot;queryList&quot;: {
371 # &quot;queries&quot;: [
372 # &quot;query1&quot;,
373 # &quot;query2&quot;,
374 # &quot;query3;query4&quot;,
375 # ]
376 # }
377 # }
378 &quot;A String&quot;,
379 ],
380 },
381 &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.
382 &quot;A String&quot;,
383 ],
384 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
385 &quot;a_key&quot;: &quot;A String&quot;,
386 },
387 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800388 }</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;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.
433 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
434 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700435 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
436 &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:
437 # &quot;hiveJob&quot;: {
438 # &quot;queryList&quot;: {
439 # &quot;queries&quot;: [
440 # &quot;query1&quot;,
441 # &quot;query2&quot;,
442 # &quot;query3;query4&quot;,
443 # ]
444 # }
445 # }
446 &quot;A String&quot;,
447 ],
448 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700449 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700450 &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.
451 &quot;A String&quot;,
452 ],
453 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
454 &quot;a_key&quot;: &quot;A String&quot;,
455 },
456 &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.
457 &quot;a_key&quot;: &quot;A String&quot;,
458 },
459 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700460 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700461 &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.
462 &quot;a_key&quot;: &quot;A String&quot;,
463 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700464 &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.
465 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700466 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
467 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
468 &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:
469 # &quot;hiveJob&quot;: {
470 # &quot;queryList&quot;: {
471 # &quot;queries&quot;: [
472 # &quot;query1&quot;,
473 # &quot;query2&quot;,
474 # &quot;query3;query4&quot;,
475 # ]
476 # }
477 # }
478 &quot;A String&quot;,
479 ],
480 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700481 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
482 &quot;a_key&quot;: &quot;A String&quot;,
483 },
484 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
485 &quot;A String&quot;,
486 ],
487 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
488 &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;
489 &quot;a_key&quot;: &quot;A String&quot;,
490 },
491 },
492 &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.
493 &quot;a_key&quot;: &quot;A String&quot;,
494 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700495 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700496 &quot;statusHistory&quot;: [ # Output only. The previous job status.
497 { # Dataproc job status.
498 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
499 &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;.
500 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
501 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
502 },
503 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700505 &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.
506 &quot;A String&quot;,
507 ],
508 &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.
509 &quot;A String&quot;,
510 ],
511 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700512 &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.
513 &quot;A String&quot;,
514 ],
515 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
516 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
517 &quot;A String&quot;,
518 ],
519 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
520 &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;
521 &quot;a_key&quot;: &quot;A String&quot;,
522 },
523 },
524 &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.
525 &quot;a_key&quot;: &quot;A String&quot;,
526 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700527 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700528 &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 -0700529 { # 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 -0700530 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
531 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
532 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
533 &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 -0700534 },
535 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700536 &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.
537 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
538 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700539 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700540 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
541 &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;
542 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700543 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400544 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700545 &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.
546 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700547 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700548 &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.
549 &quot;A String&quot;,
550 ],
551 &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.
552 &quot;A String&quot;,
553 ],
554 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
555 &quot;A String&quot;,
556 ],
557 &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.
558 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
559 &quot;A String&quot;,
560 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700561 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700562 &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.
563 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
564 &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;
565 &quot;a_key&quot;: &quot;A String&quot;,
566 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800567 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700568 &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.
569 &quot;a_key&quot;: &quot;A String&quot;,
570 },
571 &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.
572 &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.
573 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800574 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700575 &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.
576 &quot;A String&quot;,
577 ],
578 &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.
579 &quot;A String&quot;,
580 ],
581 },
582 &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;.
583 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
584 &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.
585 },
586 &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.
587 &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.
588 &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.
589 &quot;A String&quot;,
590 ],
591 &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;
592 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
593 &quot;A String&quot;,
594 ],
595 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
596 &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;
597 &quot;a_key&quot;: &quot;A String&quot;,
598 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800599 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700600 &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.
601 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800602 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700603 &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.
604 &quot;A String&quot;,
605 ],
606 &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.
607 &quot;A String&quot;,
608 ],
609 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700610 &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.
611 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
612 &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;.
613 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
614 &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 -0800615 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700616 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
617 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
618 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
619 },
620 &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.
621 &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
622 &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.
623 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
624 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
625 &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:
626 # &quot;hiveJob&quot;: {
627 # &quot;queryList&quot;: {
628 # &quot;queries&quot;: [
629 # &quot;query1&quot;,
630 # &quot;query2&quot;,
631 # &quot;query3;query4&quot;,
632 # ]
633 # }
634 # }
635 &quot;A String&quot;,
636 ],
637 },
638 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
639 &quot;A String&quot;,
640 ],
641 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
642 &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;
643 &quot;a_key&quot;: &quot;A String&quot;,
644 },
645 },
646 &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
647 &quot;a_key&quot;: &quot;A String&quot;,
648 },
649 },
650 &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.
651 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
652 &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.
653 },
654 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
655 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
656 &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;
657 &quot;a_key&quot;: &quot;A String&quot;,
658 },
659 },
660 &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.
661 &quot;a_key&quot;: &quot;A String&quot;,
662 },
663 &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.
664 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
665 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
666 &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:
667 # &quot;hiveJob&quot;: {
668 # &quot;queryList&quot;: {
669 # &quot;queries&quot;: [
670 # &quot;query1&quot;,
671 # &quot;query2&quot;,
672 # &quot;query3;query4&quot;,
673 # ]
674 # }
675 # }
676 &quot;A String&quot;,
677 ],
678 },
679 &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.
680 &quot;A String&quot;,
681 ],
682 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
683 &quot;a_key&quot;: &quot;A String&quot;,
684 },
685 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800686 }</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 Kim4ed7d3f2020-05-27 12:20:54 -0700699 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A GetPolicyOptions object for specifying options to GetIamPolicy.
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.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -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
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -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.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700726 # &quot;members&quot;: [
727 # &quot;user:eve@example.com&quot;
728 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700729 # &quot;condition&quot;: {
730 # &quot;title&quot;: &quot;expirable access&quot;,
731 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
732 # &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 -0700733 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700734 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700735 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700736 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
737 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700738 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700739 # YAML example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700740 # bindings:
741 # - members:
742 # - user:mike@example.com
743 # - group:admins@example.com
744 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700745 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
746 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700747 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700748 # - user:eve@example.com
749 # role: roles/resourcemanager.organizationViewer
750 # condition:
751 # title: expirable access
752 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700753 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700754 # - etag: BwWWja0YfJA=
755 # - version: 3
756 # For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700757 &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.
758 &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:
759 # Getting a policy that includes a conditional role binding
760 # Adding a conditional role binding to a policy
761 # Changing a conditional role binding in a policy
762 # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -0700763 &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 -0700764 { # Associates members with a role.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700765 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): # The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -0700766 # title: &quot;Summary size limit&quot;
767 # description: &quot;Determines if a summary is less than 100 chars&quot;
768 # expression: &quot;document.summary.size() &lt; 100&quot;
769 # Example (Equality):
770 # title: &quot;Requestor is owner&quot;
771 # description: &quot;Determines if requestor is the document owner&quot;
772 # expression: &quot;document.owner == request.auth.claims.email&quot;
773 # Example (Logic):
774 # title: &quot;Public documents&quot;
775 # description: &quot;Determine whether the document should be publicly visible&quot;
776 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
777 # Example (Data Manipulation):
778 # title: &quot;Notification string&quot;
779 # description: &quot;Create a notification string with a timestamp.&quot;
780 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
781 # 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.
782 &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.
783 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
784 &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.
785 &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.
786 },
787 &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 -0700788 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
789 # 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 -0700790 # user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700791 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
792 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
Dan O'Mearadd494642020-05-01 07:42:23 -0700793 # 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.
794 # 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.
795 # 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 -0700796 # 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 -0700797 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700798 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700799 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700800 },
801 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700802 }</pre>
803</div>
804
805<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700806 <code class="details" id="list">list(projectId, region, pageToken=None, pageSize=None, clusterName=None, filter=None, jobStateMatcher=None, x__xgafv=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800807 <pre>Lists regions/{region}/jobs in a project.
808
809Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400810 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 -0700811 region: string, Required. The Dataproc region in which to handle the request. (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700812 pageToken: string, Optional. The page token, returned by a previous call, to request the next page of results.
813 pageSize: integer, Optional. The number of results to return in each response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700814 clusterName: string, Optional. If set, the returned jobs list includes only jobs that were submitted to the named cluster.
815 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 = *
816 jobStateMatcher: string, Optional. Specifies enumerated categories of jobs to list. (default = match ALL jobs).If filter is provided, jobStateMatcher will be ignored.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800817 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400818 Allowed values
819 1 - v1 error format
820 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800821
822Returns:
823 An object of the form:
824
825 { # A list of jobs in a project.
Bu Sun Kim65020912020-05-20 12:08:20 -0700826 &quot;jobs&quot;: [ # Output only. Jobs list.
Dan O'Mearadd494642020-05-01 07:42:23 -0700827 { # A Dataproc job resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700828 &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.
829 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
830 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700831 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
832 &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:
833 # &quot;hiveJob&quot;: {
834 # &quot;queryList&quot;: {
835 # &quot;queries&quot;: [
836 # &quot;query1&quot;,
837 # &quot;query2&quot;,
838 # &quot;query3;query4&quot;,
839 # ]
840 # }
841 # }
842 &quot;A String&quot;,
843 ],
844 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700845 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
Bu Sun Kim65020912020-05-20 12:08:20 -0700846 &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.
847 &quot;A String&quot;,
848 ],
849 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
850 &quot;a_key&quot;: &quot;A String&quot;,
851 },
852 &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.
853 &quot;a_key&quot;: &quot;A String&quot;,
854 },
855 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700856 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700857 &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.
858 &quot;a_key&quot;: &quot;A String&quot;,
859 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700860 &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.
861 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700862 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL 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 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700877 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
878 &quot;a_key&quot;: &quot;A String&quot;,
879 },
880 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
881 &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 Spark SQL&#x27;s SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
889 &quot;a_key&quot;: &quot;A String&quot;,
890 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700891 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700892 &quot;statusHistory&quot;: [ # Output only. The previous job status.
893 { # Dataproc job status.
894 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
895 &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;.
896 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
897 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
898 },
899 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700900 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700901 &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.
902 &quot;A String&quot;,
903 ],
904 &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.
905 &quot;A String&quot;,
906 ],
907 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700908 &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.
909 &quot;A String&quot;,
910 ],
911 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
912 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
913 &quot;A String&quot;,
914 ],
915 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
916 &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;
917 &quot;a_key&quot;: &quot;A String&quot;,
918 },
919 },
920 &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.
921 &quot;a_key&quot;: &quot;A String&quot;,
922 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700923 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700924 &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 -0700925 { # 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 -0700926 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
927 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
928 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
929 &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 -0700930 },
931 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700932 &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.
933 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
934 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700935 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700936 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
937 &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;
938 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700939 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400940 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700941 &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.
942 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700943 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700944 &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.
945 &quot;A String&quot;,
946 ],
947 &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.
948 &quot;A String&quot;,
949 ],
950 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
951 &quot;A String&quot;,
952 ],
953 &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.
954 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
955 &quot;A String&quot;,
956 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700957 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700958 &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.
959 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
960 &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;
961 &quot;a_key&quot;: &quot;A String&quot;,
962 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800963 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700964 &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.
965 &quot;a_key&quot;: &quot;A String&quot;,
966 },
967 &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.
968 &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.
969 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800970 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700971 &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.
972 &quot;A String&quot;,
973 ],
974 &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.
975 &quot;A String&quot;,
976 ],
977 },
978 &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;.
979 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
980 &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.
981 },
982 &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.
983 &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.
984 &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.
985 &quot;A String&quot;,
986 ],
987 &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;
988 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
989 &quot;A String&quot;,
990 ],
991 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
992 &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;
993 &quot;a_key&quot;: &quot;A String&quot;,
994 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800995 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700996 &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.
997 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800998 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700999 &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.
1000 &quot;A String&quot;,
1001 ],
1002 &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.
1003 &quot;A String&quot;,
1004 ],
1005 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001006 &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.
1007 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
1008 &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;.
1009 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
1010 &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 -08001011 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001012 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
1013 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
1014 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
1015 },
1016 &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.
1017 &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
1018 &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.
1019 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
1020 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1021 &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:
1022 # &quot;hiveJob&quot;: {
1023 # &quot;queryList&quot;: {
1024 # &quot;queries&quot;: [
1025 # &quot;query1&quot;,
1026 # &quot;query2&quot;,
1027 # &quot;query3;query4&quot;,
1028 # ]
1029 # }
1030 # }
1031 &quot;A String&quot;,
1032 ],
1033 },
1034 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
1035 &quot;A String&quot;,
1036 ],
1037 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1038 &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;
1039 &quot;a_key&quot;: &quot;A String&quot;,
1040 },
1041 },
1042 &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
1043 &quot;a_key&quot;: &quot;A String&quot;,
1044 },
1045 },
1046 &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.
1047 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
1048 &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.
1049 },
1050 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
1051 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1052 &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;
1053 &quot;a_key&quot;: &quot;A String&quot;,
1054 },
1055 },
1056 &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.
1057 &quot;a_key&quot;: &quot;A String&quot;,
1058 },
1059 &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.
1060 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
1061 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1062 &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:
1063 # &quot;hiveJob&quot;: {
1064 # &quot;queryList&quot;: {
1065 # &quot;queries&quot;: [
1066 # &quot;query1&quot;,
1067 # &quot;query2&quot;,
1068 # &quot;query3;query4&quot;,
1069 # ]
1070 # }
1071 # }
1072 &quot;A String&quot;,
1073 ],
1074 },
1075 &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.
1076 &quot;A String&quot;,
1077 ],
1078 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
1079 &quot;a_key&quot;: &quot;A String&quot;,
1080 },
1081 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001082 },
1083 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001084 &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 -08001085 }</pre>
1086</div>
1087
1088<div class="method">
1089 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1090 <pre>Retrieves the next page of results.
1091
1092Args:
1093 previous_request: The request for the previous page. (required)
1094 previous_response: The response from the request for the previous page. (required)
1095
1096Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001097 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001098 page. Returns None if there are no more items in the collection.
1099 </pre>
1100</div>
1101
1102<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001103 <code class="details" id="patch">patch(projectId, region, jobId, body=None, updateMask=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001104 <pre>Updates a job in a project.
1105
1106Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001107 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 -07001108 region: string, Required. The Dataproc region in which to handle the request. (required)
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001109 jobId: string, Required. The job ID. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001110 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001111 The object takes the form of:
1112
Dan O'Mearadd494642020-05-01 07:42:23 -07001113{ # A Dataproc job resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001114 &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.
1115 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
1116 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07001117 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1118 &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:
1119 # &quot;hiveJob&quot;: {
1120 # &quot;queryList&quot;: {
1121 # &quot;queries&quot;: [
1122 # &quot;query1&quot;,
1123 # &quot;query2&quot;,
1124 # &quot;query3;query4&quot;,
1125 # ]
1126 # }
1127 # }
1128 &quot;A String&quot;,
1129 ],
1130 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001131 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07001132 &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.
1133 &quot;A String&quot;,
1134 ],
1135 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
1136 &quot;a_key&quot;: &quot;A String&quot;,
1137 },
1138 &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.
1139 &quot;a_key&quot;: &quot;A String&quot;,
1140 },
1141 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001142 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001143 &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.
1144 &quot;a_key&quot;: &quot;A String&quot;,
1145 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001146 &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.
1147 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001148 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL 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 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001163 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
1164 &quot;a_key&quot;: &quot;A String&quot;,
1165 },
1166 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
1167 &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 Spark SQL&#x27;s SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
1175 &quot;a_key&quot;: &quot;A String&quot;,
1176 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001177 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001178 &quot;statusHistory&quot;: [ # Output only. The previous job status.
1179 { # Dataproc job status.
1180 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
1181 &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;.
1182 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
1183 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
1184 },
1185 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001186 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001187 &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.
1188 &quot;A String&quot;,
1189 ],
1190 &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.
1191 &quot;A String&quot;,
1192 ],
1193 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001194 &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.
1195 &quot;A String&quot;,
1196 ],
1197 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
1198 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
1199 &quot;A String&quot;,
1200 ],
1201 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1202 &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;
1203 &quot;a_key&quot;: &quot;A String&quot;,
1204 },
1205 },
1206 &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.
1207 &quot;a_key&quot;: &quot;A String&quot;,
1208 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001209 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001210 &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 -07001211 { # 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 -07001212 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
1213 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
1214 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
1215 &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 -07001216 },
1217 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001218 &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.
1219 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
1220 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001221 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001222 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1223 &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;
1224 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001225 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001226 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001227 &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.
1228 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001229 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001230 &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.
1231 &quot;A String&quot;,
1232 ],
1233 &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.
1234 &quot;A String&quot;,
1235 ],
1236 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
1237 &quot;A String&quot;,
1238 ],
1239 &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.
1240 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
1241 &quot;A String&quot;,
1242 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001243 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001244 &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.
1245 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1246 &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;
1247 &quot;a_key&quot;: &quot;A String&quot;,
1248 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001249 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001250 &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.
1251 &quot;a_key&quot;: &quot;A String&quot;,
1252 },
1253 &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.
1254 &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.
1255 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001256 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001257 &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.
1258 &quot;A String&quot;,
1259 ],
1260 &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.
1261 &quot;A String&quot;,
1262 ],
1263 },
1264 &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;.
1265 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
1266 &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.
1267 },
1268 &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.
1269 &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.
1270 &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.
1271 &quot;A String&quot;,
1272 ],
1273 &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;
1274 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
1275 &quot;A String&quot;,
1276 ],
1277 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1278 &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;
1279 &quot;a_key&quot;: &quot;A String&quot;,
1280 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001281 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001282 &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.
1283 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001284 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001285 &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.
1286 &quot;A String&quot;,
1287 ],
1288 &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.
1289 &quot;A String&quot;,
1290 ],
1291 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001292 &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.
1293 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
1294 &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;.
1295 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
1296 &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 -04001297 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001298 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
1299 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
1300 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
1301 },
1302 &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.
1303 &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
1304 &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.
1305 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
1306 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1307 &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:
1308 # &quot;hiveJob&quot;: {
1309 # &quot;queryList&quot;: {
1310 # &quot;queries&quot;: [
1311 # &quot;query1&quot;,
1312 # &quot;query2&quot;,
1313 # &quot;query3;query4&quot;,
1314 # ]
1315 # }
1316 # }
1317 &quot;A String&quot;,
1318 ],
1319 },
1320 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
1321 &quot;A String&quot;,
1322 ],
1323 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1324 &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;
1325 &quot;a_key&quot;: &quot;A String&quot;,
1326 },
1327 },
1328 &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
1329 &quot;a_key&quot;: &quot;A String&quot;,
1330 },
1331 },
1332 &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.
1333 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
1334 &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.
1335 },
1336 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
1337 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1338 &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;
1339 &quot;a_key&quot;: &quot;A String&quot;,
1340 },
1341 },
1342 &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.
1343 &quot;a_key&quot;: &quot;A String&quot;,
1344 },
1345 &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.
1346 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
1347 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1348 &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:
1349 # &quot;hiveJob&quot;: {
1350 # &quot;queryList&quot;: {
1351 # &quot;queries&quot;: [
1352 # &quot;query1&quot;,
1353 # &quot;query2&quot;,
1354 # &quot;query3;query4&quot;,
1355 # ]
1356 # }
1357 # }
1358 &quot;A String&quot;,
1359 ],
1360 },
1361 &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.
1362 &quot;A String&quot;,
1363 ],
1364 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
1365 &quot;a_key&quot;: &quot;A String&quot;,
1366 },
1367 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001368}
1369
Dan O'Mearadd494642020-05-01 07:42:23 -07001370 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 -04001371 x__xgafv: string, V1 error format.
1372 Allowed values
1373 1 - v1 error format
1374 2 - v2 error format
1375
1376Returns:
1377 An object of the form:
1378
Dan O'Mearadd494642020-05-01 07:42:23 -07001379 { # A Dataproc job resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001380 &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.
1381 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
1382 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07001383 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1384 &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:
1385 # &quot;hiveJob&quot;: {
1386 # &quot;queryList&quot;: {
1387 # &quot;queries&quot;: [
1388 # &quot;query1&quot;,
1389 # &quot;query2&quot;,
1390 # &quot;query3;query4&quot;,
1391 # ]
1392 # }
1393 # }
1394 &quot;A String&quot;,
1395 ],
1396 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001397 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07001398 &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.
1399 &quot;A String&quot;,
1400 ],
1401 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
1402 &quot;a_key&quot;: &quot;A String&quot;,
1403 },
1404 &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.
1405 &quot;a_key&quot;: &quot;A String&quot;,
1406 },
1407 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001408 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001409 &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.
1410 &quot;a_key&quot;: &quot;A String&quot;,
1411 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001412 &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.
1413 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001414 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL 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 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001429 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
1430 &quot;a_key&quot;: &quot;A String&quot;,
1431 },
1432 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
1433 &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 Spark SQL&#x27;s SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
1441 &quot;a_key&quot;: &quot;A String&quot;,
1442 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001443 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001444 &quot;statusHistory&quot;: [ # Output only. The previous job status.
1445 { # Dataproc job status.
1446 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
1447 &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;.
1448 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
1449 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
1450 },
1451 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001452 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001453 &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.
1454 &quot;A String&quot;,
1455 ],
1456 &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.
1457 &quot;A String&quot;,
1458 ],
1459 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001460 &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.
1461 &quot;A String&quot;,
1462 ],
1463 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
1464 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
1465 &quot;A String&quot;,
1466 ],
1467 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1468 &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;
1469 &quot;a_key&quot;: &quot;A String&quot;,
1470 },
1471 },
1472 &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.
1473 &quot;a_key&quot;: &quot;A String&quot;,
1474 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001475 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001476 &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 -07001477 { # 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 -07001478 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
1479 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
1480 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
1481 &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 -07001482 },
1483 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001484 &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.
1485 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
1486 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001487 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001488 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1489 &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;
1490 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001491 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001492 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001493 &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.
1494 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001495 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001496 &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.
1497 &quot;A String&quot;,
1498 ],
1499 &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.
1500 &quot;A String&quot;,
1501 ],
1502 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
1503 &quot;A String&quot;,
1504 ],
1505 &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.
1506 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
1507 &quot;A String&quot;,
1508 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001509 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001510 &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.
1511 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1512 &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;
1513 &quot;a_key&quot;: &quot;A String&quot;,
1514 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001515 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001516 &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.
1517 &quot;a_key&quot;: &quot;A String&quot;,
1518 },
1519 &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.
1520 &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.
1521 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001522 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001523 &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.
1524 &quot;A String&quot;,
1525 ],
1526 &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.
1527 &quot;A String&quot;,
1528 ],
1529 },
1530 &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;.
1531 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
1532 &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.
1533 },
1534 &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.
1535 &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.
1536 &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.
1537 &quot;A String&quot;,
1538 ],
1539 &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;
1540 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
1541 &quot;A String&quot;,
1542 ],
1543 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1544 &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;
1545 &quot;a_key&quot;: &quot;A String&quot;,
1546 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001547 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001548 &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.
1549 &quot;a_key&quot;: &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001550 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001551 &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.
1552 &quot;A String&quot;,
1553 ],
1554 &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.
1555 &quot;A String&quot;,
1556 ],
1557 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001558 &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.
1559 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
1560 &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;.
1561 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
1562 &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 -04001563 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001564 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
1565 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
1566 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
1567 },
1568 &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.
1569 &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
1570 &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.
1571 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
1572 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1573 &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:
1574 # &quot;hiveJob&quot;: {
1575 # &quot;queryList&quot;: {
1576 # &quot;queries&quot;: [
1577 # &quot;query1&quot;,
1578 # &quot;query2&quot;,
1579 # &quot;query3;query4&quot;,
1580 # ]
1581 # }
1582 # }
1583 &quot;A String&quot;,
1584 ],
1585 },
1586 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
1587 &quot;A String&quot;,
1588 ],
1589 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1590 &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;
1591 &quot;a_key&quot;: &quot;A String&quot;,
1592 },
1593 },
1594 &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
1595 &quot;a_key&quot;: &quot;A String&quot;,
1596 },
1597 },
1598 &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.
1599 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
1600 &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.
1601 },
1602 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
1603 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1604 &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;
1605 &quot;a_key&quot;: &quot;A String&quot;,
1606 },
1607 },
1608 &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.
1609 &quot;a_key&quot;: &quot;A String&quot;,
1610 },
1611 &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.
1612 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
1613 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1614 &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:
1615 # &quot;hiveJob&quot;: {
1616 # &quot;queryList&quot;: {
1617 # &quot;queries&quot;: [
1618 # &quot;query1&quot;,
1619 # &quot;query2&quot;,
1620 # &quot;query3;query4&quot;,
1621 # ]
1622 # }
1623 # }
1624 &quot;A String&quot;,
1625 ],
1626 },
1627 &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.
1628 &quot;A String&quot;,
1629 ],
1630 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
1631 &quot;a_key&quot;: &quot;A String&quot;,
1632 },
1633 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001634 }</pre>
1635</div>
1636
1637<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001638 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001639 <pre>Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001640
1641Args:
1642 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 -07001643 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001644 The object takes the form of:
1645
1646{ # Request message for SetIamPolicy method.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001647 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example: # REQUIRED: The complete policy to be applied to the resource. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001648 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001649 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001650 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001651 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1652 # &quot;members&quot;: [
1653 # &quot;user:mike@example.com&quot;,
1654 # &quot;group:admins@example.com&quot;,
1655 # &quot;domain:google.com&quot;,
1656 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001657 # ]
1658 # },
1659 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001660 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001661 # &quot;members&quot;: [
1662 # &quot;user:eve@example.com&quot;
1663 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001664 # &quot;condition&quot;: {
1665 # &quot;title&quot;: &quot;expirable access&quot;,
1666 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1667 # &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 -07001668 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001669 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001670 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001671 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1672 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001673 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001674 # YAML example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001675 # bindings:
1676 # - members:
1677 # - user:mike@example.com
1678 # - group:admins@example.com
1679 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001680 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1681 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001682 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001683 # - user:eve@example.com
1684 # role: roles/resourcemanager.organizationViewer
1685 # condition:
1686 # title: expirable access
1687 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001688 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001689 # - etag: BwWWja0YfJA=
1690 # - version: 3
1691 # For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001692 &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.
1693 &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:
1694 # Getting a policy that includes a conditional role binding
1695 # Adding a conditional role binding to a policy
1696 # Changing a conditional role binding in a policy
1697 # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07001698 &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 -07001699 { # Associates members with a role.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001700 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): # The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07001701 # title: &quot;Summary size limit&quot;
1702 # description: &quot;Determines if a summary is less than 100 chars&quot;
1703 # expression: &quot;document.summary.size() &lt; 100&quot;
1704 # Example (Equality):
1705 # title: &quot;Requestor is owner&quot;
1706 # description: &quot;Determines if requestor is the document owner&quot;
1707 # expression: &quot;document.owner == request.auth.claims.email&quot;
1708 # Example (Logic):
1709 # title: &quot;Public documents&quot;
1710 # description: &quot;Determine whether the document should be publicly visible&quot;
1711 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1712 # Example (Data Manipulation):
1713 # title: &quot;Notification string&quot;
1714 # description: &quot;Create a notification string with a timestamp.&quot;
1715 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1716 # 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.
1717 &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.
1718 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1719 &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.
1720 &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.
1721 },
1722 &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 -07001723 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
1724 # 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 -07001725 # user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001726 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
1727 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
Dan O'Mearadd494642020-05-01 07:42:23 -07001728 # 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.
1729 # 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.
1730 # 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 -07001731 # 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 -07001732 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001733 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001734 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001735 },
1736 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001737 },
1738 }
1739
1740 x__xgafv: string, V1 error format.
1741 Allowed values
1742 1 - v1 error format
1743 2 - v2 error format
1744
1745Returns:
1746 An object of the form:
1747
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001748 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members to a single role. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001749 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001750 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001751 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001752 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1753 # &quot;members&quot;: [
1754 # &quot;user:mike@example.com&quot;,
1755 # &quot;group:admins@example.com&quot;,
1756 # &quot;domain:google.com&quot;,
1757 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001758 # ]
1759 # },
1760 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001761 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001762 # &quot;members&quot;: [
1763 # &quot;user:eve@example.com&quot;
1764 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001765 # &quot;condition&quot;: {
1766 # &quot;title&quot;: &quot;expirable access&quot;,
1767 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1768 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001769 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001770 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001771 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001772 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1773 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001774 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001775 # YAML example:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001776 # bindings:
1777 # - members:
1778 # - user:mike@example.com
1779 # - group:admins@example.com
1780 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001781 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1782 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001783 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001784 # - user:eve@example.com
1785 # role: roles/resourcemanager.organizationViewer
1786 # condition:
1787 # title: expirable access
1788 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001789 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001790 # - etag: BwWWja0YfJA=
1791 # - version: 3
1792 # For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001793 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
1794 &quot;version&quot;: 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations:
1795 # Getting a policy that includes a conditional role binding
1796 # Adding a conditional role binding to a policy
1797 # Changing a conditional role binding in a policy
1798 # Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07001799 &quot;bindings&quot;: [ # Associates a list of members to a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001800 { # Associates members with a role.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001801 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): # The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
Bu Sun Kim65020912020-05-20 12:08:20 -07001802 # title: &quot;Summary size limit&quot;
1803 # description: &quot;Determines if a summary is less than 100 chars&quot;
1804 # expression: &quot;document.summary.size() &lt; 100&quot;
1805 # Example (Equality):
1806 # title: &quot;Requestor is owner&quot;
1807 # description: &quot;Determines if requestor is the document owner&quot;
1808 # expression: &quot;document.owner == request.auth.claims.email&quot;
1809 # Example (Logic):
1810 # title: &quot;Public documents&quot;
1811 # description: &quot;Determine whether the document should be publicly visible&quot;
1812 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1813 # Example (Data Manipulation):
1814 # title: &quot;Notification string&quot;
1815 # description: &quot;Create a notification string with a timestamp.&quot;
1816 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1817 # The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
1818 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1819 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1820 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1821 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1822 },
1823 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. members can have the following values:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001824 # allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account.
1825 # allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account.
Dan O'Mearadd494642020-05-01 07:42:23 -07001826 # user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001827 # serviceAccount:{emailid}: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
1828 # group:{emailid}: An email address that represents a Google group. For example, admins@example.com.
Dan O'Mearadd494642020-05-01 07:42:23 -07001829 # deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding.
1830 # deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding.
1831 # deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001832 # domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com.
Bu Sun Kim65020912020-05-20 12:08:20 -07001833 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001834 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001835 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to members. For example, roles/viewer, roles/editor, or roles/owner.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001836 },
1837 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001838 }</pre>
1839</div>
1840
1841<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001842 <code class="details" id="submit">submit(projectId, region, body=None, x__xgafv=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001843 <pre>Submits a job to a cluster.
1844
1845Args:
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001846 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 -07001847 region: string, Required. The Dataproc region in which to handle the request. (required)
1848 body: object, The request body.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001849 The object takes the form of:
1850
1851{ # A request to submit a job.
Bu Sun Kim65020912020-05-20 12:08:20 -07001852 &quot;job&quot;: { # A Dataproc job resource. # Required. The job resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001853 &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.
1854 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
1855 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07001856 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1857 &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:
1858 # &quot;hiveJob&quot;: {
1859 # &quot;queryList&quot;: {
1860 # &quot;queries&quot;: [
1861 # &quot;query1&quot;,
1862 # &quot;query2&quot;,
1863 # &quot;query3;query4&quot;,
1864 # ]
1865 # }
1866 # }
1867 &quot;A String&quot;,
1868 ],
1869 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001870 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07001871 &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.
1872 &quot;A String&quot;,
1873 ],
1874 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
1875 &quot;a_key&quot;: &quot;A String&quot;,
1876 },
1877 &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.
1878 &quot;a_key&quot;: &quot;A String&quot;,
1879 },
1880 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001881 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001882 &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.
1883 &quot;a_key&quot;: &quot;A String&quot;,
1884 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001885 &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.
1886 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001887 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
1888 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
1889 &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:
1890 # &quot;hiveJob&quot;: {
1891 # &quot;queryList&quot;: {
1892 # &quot;queries&quot;: [
1893 # &quot;query1&quot;,
1894 # &quot;query2&quot;,
1895 # &quot;query3;query4&quot;,
1896 # ]
1897 # }
1898 # }
1899 &quot;A String&quot;,
1900 ],
1901 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001902 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
1903 &quot;a_key&quot;: &quot;A String&quot;,
1904 },
1905 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
1906 &quot;A String&quot;,
1907 ],
1908 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1909 &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;
1910 &quot;a_key&quot;: &quot;A String&quot;,
1911 },
1912 },
1913 &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.
1914 &quot;a_key&quot;: &quot;A String&quot;,
1915 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001916 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001917 &quot;statusHistory&quot;: [ # Output only. The previous job status.
1918 { # Dataproc job status.
1919 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
1920 &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;.
1921 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
1922 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
1923 },
1924 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001925 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001926 &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.
1927 &quot;A String&quot;,
1928 ],
1929 &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.
1930 &quot;A String&quot;,
1931 ],
1932 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001933 &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.
1934 &quot;A String&quot;,
1935 ],
1936 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
1937 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
1938 &quot;A String&quot;,
1939 ],
1940 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1941 &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;
1942 &quot;a_key&quot;: &quot;A String&quot;,
1943 },
1944 },
1945 &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.
1946 &quot;a_key&quot;: &quot;A String&quot;,
1947 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001948 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001949 &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 -07001950 { # 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 -07001951 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
1952 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
1953 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
1954 &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 -07001955 },
1956 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001957 &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.
1958 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
1959 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001960 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001961 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1962 &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;
1963 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001964 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001965 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001966 &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.
1967 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001968 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001969 &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.
1970 &quot;A String&quot;,
1971 ],
1972 &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.
1973 &quot;A String&quot;,
1974 ],
1975 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
1976 &quot;A String&quot;,
1977 ],
1978 &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.
1979 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
1980 &quot;A String&quot;,
1981 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07001982 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001983 &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.
1984 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
1985 &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;
1986 &quot;a_key&quot;: &quot;A String&quot;,
1987 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001988 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001989 &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.
1990 &quot;a_key&quot;: &quot;A String&quot;,
1991 },
1992 &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.
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;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001995 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001996 &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.
1997 &quot;A String&quot;,
1998 ],
1999 &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.
2000 &quot;A String&quot;,
2001 ],
2002 },
2003 &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;.
2004 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
2005 &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.
2006 },
2007 &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.
2008 &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.
2009 &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.
2010 &quot;A String&quot;,
2011 ],
2012 &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;
2013 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
2014 &quot;A String&quot;,
2015 ],
2016 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2017 &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;
2018 &quot;a_key&quot;: &quot;A String&quot;,
2019 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002020 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002021 &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.
2022 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002023 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002024 &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.
2025 &quot;A String&quot;,
2026 ],
2027 &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.
2028 &quot;A String&quot;,
2029 ],
2030 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002031 &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.
2032 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
2033 &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;.
2034 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
2035 &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 -08002036 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002037 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
2038 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
2039 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
2040 },
2041 &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.
2042 &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
2043 &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.
2044 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
2045 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2046 &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:
2047 # &quot;hiveJob&quot;: {
2048 # &quot;queryList&quot;: {
2049 # &quot;queries&quot;: [
2050 # &quot;query1&quot;,
2051 # &quot;query2&quot;,
2052 # &quot;query3;query4&quot;,
2053 # ]
2054 # }
2055 # }
2056 &quot;A String&quot;,
2057 ],
2058 },
2059 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
2060 &quot;A String&quot;,
2061 ],
2062 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2063 &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;
2064 &quot;a_key&quot;: &quot;A String&quot;,
2065 },
2066 },
2067 &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
2068 &quot;a_key&quot;: &quot;A String&quot;,
2069 },
2070 },
2071 &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.
2072 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
2073 &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.
2074 },
2075 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
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 },
2080 },
2081 &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.
2082 &quot;a_key&quot;: &quot;A String&quot;,
2083 },
2084 &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.
2085 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
2086 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2087 &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:
2088 # &quot;hiveJob&quot;: {
2089 # &quot;queryList&quot;: {
2090 # &quot;queries&quot;: [
2091 # &quot;query1&quot;,
2092 # &quot;query2&quot;,
2093 # &quot;query3;query4&quot;,
2094 # ]
2095 # }
2096 # }
2097 &quot;A String&quot;,
2098 ],
2099 },
2100 &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.
2101 &quot;A String&quot;,
2102 ],
2103 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
2104 &quot;a_key&quot;: &quot;A String&quot;,
2105 },
2106 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002107 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002108 &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 -08002109 }
2110
2111 x__xgafv: string, V1 error format.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002112 Allowed values
2113 1 - v1 error format
2114 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002115
2116Returns:
2117 An object of the form:
2118
Dan O'Mearadd494642020-05-01 07:42:23 -07002119 { # A Dataproc job resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07002120 &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.
2121 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
2122 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07002123 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2124 &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:
2125 # &quot;hiveJob&quot;: {
2126 # &quot;queryList&quot;: {
2127 # &quot;queries&quot;: [
2128 # &quot;query1&quot;,
2129 # &quot;query2&quot;,
2130 # &quot;query3;query4&quot;,
2131 # ]
2132 # }
2133 # }
2134 &quot;A String&quot;,
2135 ],
2136 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002137 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07002138 &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.
2139 &quot;A String&quot;,
2140 ],
2141 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
2142 &quot;a_key&quot;: &quot;A String&quot;,
2143 },
2144 &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.
2145 &quot;a_key&quot;: &quot;A String&quot;,
2146 },
2147 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002148 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07002149 &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.
2150 &quot;a_key&quot;: &quot;A String&quot;,
2151 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002152 &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.
2153 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002154 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
2155 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2156 &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:
2157 # &quot;hiveJob&quot;: {
2158 # &quot;queryList&quot;: {
2159 # &quot;queries&quot;: [
2160 # &quot;query1&quot;,
2161 # &quot;query2&quot;,
2162 # &quot;query3;query4&quot;,
2163 # ]
2164 # }
2165 # }
2166 &quot;A String&quot;,
2167 ],
2168 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002169 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
2170 &quot;a_key&quot;: &quot;A String&quot;,
2171 },
2172 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
2173 &quot;A String&quot;,
2174 ],
2175 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2176 &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;
2177 &quot;a_key&quot;: &quot;A String&quot;,
2178 },
2179 },
2180 &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.
2181 &quot;a_key&quot;: &quot;A String&quot;,
2182 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002183 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002184 &quot;statusHistory&quot;: [ # Output only. The previous job status.
2185 { # Dataproc job status.
2186 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
2187 &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;.
2188 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
2189 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
2190 },
2191 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002192 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002193 &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.
2194 &quot;A String&quot;,
2195 ],
2196 &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.
2197 &quot;A String&quot;,
2198 ],
2199 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07002200 &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.
2201 &quot;A String&quot;,
2202 ],
2203 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
2204 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
2205 &quot;A String&quot;,
2206 ],
2207 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2208 &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;
2209 &quot;a_key&quot;: &quot;A String&quot;,
2210 },
2211 },
2212 &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.
2213 &quot;a_key&quot;: &quot;A String&quot;,
2214 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002215 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002216 &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 -07002217 { # 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 -07002218 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
2219 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
2220 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
2221 &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 -07002222 },
2223 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002224 &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.
2225 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
2226 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002227 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002228 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2229 &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;
2230 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002231 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002232 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002233 &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.
2234 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002235 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002236 &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.
2237 &quot;A String&quot;,
2238 ],
2239 &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.
2240 &quot;A String&quot;,
2241 ],
2242 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
2243 &quot;A String&quot;,
2244 ],
2245 &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.
2246 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
2247 &quot;A String&quot;,
2248 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07002249 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002250 &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.
2251 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2252 &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;
2253 &quot;a_key&quot;: &quot;A String&quot;,
2254 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002255 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002256 &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.
2257 &quot;a_key&quot;: &quot;A String&quot;,
2258 },
2259 &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.
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;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002262 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002263 &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.
2264 &quot;A String&quot;,
2265 ],
2266 &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.
2267 &quot;A String&quot;,
2268 ],
2269 },
2270 &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;.
2271 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
2272 &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.
2273 },
2274 &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.
2275 &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.
2276 &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.
2277 &quot;A String&quot;,
2278 ],
2279 &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;
2280 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
2281 &quot;A String&quot;,
2282 ],
2283 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2284 &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;
2285 &quot;a_key&quot;: &quot;A String&quot;,
2286 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002287 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002288 &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.
2289 &quot;a_key&quot;: &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002290 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002291 &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.
2292 &quot;A String&quot;,
2293 ],
2294 &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.
2295 &quot;A String&quot;,
2296 ],
2297 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002298 &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.
2299 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
2300 &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;.
2301 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
2302 &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 -08002303 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002304 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
2305 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
2306 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
2307 },
2308 &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.
2309 &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
2310 &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.
2311 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
2312 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2313 &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:
2314 # &quot;hiveJob&quot;: {
2315 # &quot;queryList&quot;: {
2316 # &quot;queries&quot;: [
2317 # &quot;query1&quot;,
2318 # &quot;query2&quot;,
2319 # &quot;query3;query4&quot;,
2320 # ]
2321 # }
2322 # }
2323 &quot;A String&quot;,
2324 ],
2325 },
2326 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
2327 &quot;A String&quot;,
2328 ],
2329 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2330 &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;
2331 &quot;a_key&quot;: &quot;A String&quot;,
2332 },
2333 },
2334 &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
2335 &quot;a_key&quot;: &quot;A String&quot;,
2336 },
2337 },
2338 &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.
2339 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
2340 &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.
2341 },
2342 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
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 },
2347 },
2348 &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.
2349 &quot;a_key&quot;: &quot;A String&quot;,
2350 },
2351 &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.
2352 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
2353 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2354 &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:
2355 # &quot;hiveJob&quot;: {
2356 # &quot;queryList&quot;: {
2357 # &quot;queries&quot;: [
2358 # &quot;query1&quot;,
2359 # &quot;query2&quot;,
2360 # &quot;query3;query4&quot;,
2361 # ]
2362 # }
2363 # }
2364 &quot;A String&quot;,
2365 ],
2366 },
2367 &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.
2368 &quot;A String&quot;,
2369 ],
2370 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
2371 &quot;a_key&quot;: &quot;A String&quot;,
2372 },
2373 },
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002374 }</pre>
2375</div>
2376
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002377<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002378 <code class="details" id="submitAsOperation">submitAsOperation(projectId, region, body=None, x__xgafv=None)</code>
2379 <pre>Submits job to a cluster.
2380
2381Args:
2382 projectId: string, Required. The ID of the Google Cloud Platform project that the job belongs to. (required)
2383 region: string, Required. The Dataproc region in which to handle the request. (required)
2384 body: object, The request body.
2385 The object takes the form of:
2386
2387{ # A request to submit a job.
Bu Sun Kim65020912020-05-20 12:08:20 -07002388 &quot;job&quot;: { # A Dataproc job resource. # Required. The job resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07002389 &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.
2390 &quot;hiveJob&quot;: { # A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN. # Optional. Job is a Hive job.
2391 &quot;continueOnFailure&quot;: True or False, # Optional. Whether to continue executing queries if a query fails. The default value is false. Setting to true can be useful when executing independent parallel queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07002392 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2393 &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:
2394 # &quot;hiveJob&quot;: {
2395 # &quot;queryList&quot;: {
2396 # &quot;queries&quot;: [
2397 # &quot;query1&quot;,
2398 # &quot;query2&quot;,
2399 # &quot;query3;query4&quot;,
2400 # ]
2401 # }
2402 # }
2403 &quot;A String&quot;,
2404 ],
2405 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002406 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains Hive queries.
Bu Sun Kim65020912020-05-20 12:08:20 -07002407 &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.
2408 &quot;A String&quot;,
2409 ],
2410 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Hive command: SET name=&quot;value&quot;;).
2411 &quot;a_key&quot;: &quot;A String&quot;,
2412 },
2413 &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.
2414 &quot;a_key&quot;: &quot;A String&quot;,
2415 },
2416 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002417 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07002418 &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.
2419 &quot;a_key&quot;: &quot;A String&quot;,
2420 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002421 &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.
2422 &quot;sparkSqlJob&quot;: { # A Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/) queries. # Optional. Job is a SparkSql job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002423 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
2424 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2425 &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:
2426 # &quot;hiveJob&quot;: {
2427 # &quot;queryList&quot;: {
2428 # &quot;queries&quot;: [
2429 # &quot;query1&quot;,
2430 # &quot;query2&quot;,
2431 # &quot;query3;query4&quot;,
2432 # ]
2433 # }
2434 # }
2435 &quot;A String&quot;,
2436 ],
2437 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002438 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=&quot;value&quot;;).
2439 &quot;a_key&quot;: &quot;A String&quot;,
2440 },
2441 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
2442 &quot;A String&quot;,
2443 ],
2444 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2445 &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;
2446 &quot;a_key&quot;: &quot;A String&quot;,
2447 },
2448 },
2449 &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.
2450 &quot;a_key&quot;: &quot;A String&quot;,
2451 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002452 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002453 &quot;statusHistory&quot;: [ # Output only. The previous job status.
2454 { # Dataproc job status.
2455 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
2456 &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;.
2457 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
2458 &quot;substate&quot;: &quot;A String&quot;, # Output only. Additional state information, which includes status reported by the agent.
2459 },
2460 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002461 &quot;sparkJob&quot;: { # A Dataproc job for running Apache Spark (http://spark.apache.org/) applications on YARN. # Optional. Job is a Spark job.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002462 &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.
2463 &quot;A String&quot;,
2464 ],
2465 &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.
2466 &quot;A String&quot;,
2467 ],
2468 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07002469 &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.
2470 &quot;A String&quot;,
2471 ],
2472 &quot;mainJarFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the jar file that contains the main class.
2473 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
2474 &quot;A String&quot;,
2475 ],
2476 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2477 &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;
2478 &quot;a_key&quot;: &quot;A String&quot;,
2479 },
2480 },
2481 &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.
2482 &quot;a_key&quot;: &quot;A String&quot;,
2483 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002484 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002485 &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 -07002486 { # 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 -07002487 &quot;progress&quot;: 3.14, # Required. The numerical progress of the application, from 1 to 100.
2488 &quot;state&quot;: &quot;A String&quot;, # Required. The application state.
2489 &quot;name&quot;: &quot;A String&quot;, # Required. The application name.
2490 &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 -07002491 },
2492 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002493 &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.
2494 &quot;jarFileUris&quot;: [ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
2495 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002496 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002497 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2498 &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;
2499 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002500 },
2501 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002502 &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.
2503 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002504 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002505 &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.
2506 &quot;A String&quot;,
2507 ],
2508 &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.
2509 &quot;A String&quot;,
2510 ],
2511 &quot;pythonFileUris&quot;: [ # Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
2512 &quot;A String&quot;,
2513 ],
2514 &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.
2515 &quot;archiveUris&quot;: [ # Optional. HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
2516 &quot;A String&quot;,
2517 ],
Dan O'Mearadd494642020-05-01 07:42:23 -07002518 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002519 &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.
2520 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2521 &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;
2522 &quot;a_key&quot;: &quot;A String&quot;,
2523 },
Dan O'Mearadd494642020-05-01 07:42:23 -07002524 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002525 &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.
2526 &quot;a_key&quot;: &quot;A String&quot;,
2527 },
2528 &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.
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;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002531 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002532 &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.
2533 &quot;A String&quot;,
2534 ],
2535 &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.
2536 &quot;A String&quot;,
2537 ],
2538 },
2539 &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;.
2540 &quot;projectId&quot;: &quot;A String&quot;, # Required. The ID of the Google Cloud Platform project that the job belongs to.
2541 &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.
2542 },
2543 &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.
2544 &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.
2545 &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.
2546 &quot;A String&quot;,
2547 ],
2548 &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;
2549 &quot;jarFileUris&quot;: [ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
2550 &quot;A String&quot;,
2551 ],
2552 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2553 &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;
2554 &quot;a_key&quot;: &quot;A String&quot;,
2555 },
Dan O'Mearadd494642020-05-01 07:42:23 -07002556 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002557 &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.
2558 &quot;a_key&quot;: &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002559 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002560 &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.
2561 &quot;A String&quot;,
2562 ],
2563 &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.
2564 &quot;A String&quot;,
2565 ],
2566 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002567 &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.
2568 &quot;state&quot;: &quot;A String&quot;, # Output only. A state message specifying the overall job state.
2569 &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;.
2570 &quot;stateStartTime&quot;: &quot;A String&quot;, # Output only. The time when this state was entered.
2571 &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 -07002572 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002573 &quot;placement&quot;: { # Dataproc job config. # Required. Job information, including how, when, and where to run the job.
2574 &quot;clusterName&quot;: &quot;A String&quot;, # Required. The name of the cluster where the job will be submitted.
2575 &quot;clusterUuid&quot;: &quot;A String&quot;, # Output only. A cluster UUID generated by the Dataproc service when the job is submitted.
2576 },
2577 &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.
2578 &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
2579 &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.
2580 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains SQL queries.
2581 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2582 &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:
2583 # &quot;hiveJob&quot;: {
2584 # &quot;queryList&quot;: {
2585 # &quot;queries&quot;: [
2586 # &quot;query1&quot;,
2587 # &quot;query2&quot;,
2588 # &quot;query3;query4&quot;,
2589 # ]
2590 # }
2591 # }
2592 &quot;A String&quot;,
2593 ],
2594 },
2595 &quot;clientTags&quot;: [ # Optional. Presto client tags to attach to this query
2596 &quot;A String&quot;,
2597 ],
2598 &quot;loggingConfig&quot;: { # The runtime logging config of the job. # Optional. The runtime log config for job execution.
2599 &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;
2600 &quot;a_key&quot;: &quot;A String&quot;,
2601 },
2602 },
2603 &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
2604 &quot;a_key&quot;: &quot;A String&quot;,
2605 },
2606 },
2607 &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.
2608 &quot;scheduling&quot;: { # Job scheduling options. # Optional. Job scheduling configuration.
2609 &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.
2610 },
2611 &quot;pigJob&quot;: { # A Dataproc job for running Apache Pig (https://pig.apache.org/) queries on YARN. # Optional. Job is a Pig job.
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 },
2616 },
2617 &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.
2618 &quot;a_key&quot;: &quot;A String&quot;,
2619 },
2620 &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.
2621 &quot;queryFileUri&quot;: &quot;A String&quot;, # The HCFS URI of the script that contains the Pig queries.
2622 &quot;queryList&quot;: { # A list of queries to run on a cluster. # A list of queries.
2623 &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:
2624 # &quot;hiveJob&quot;: {
2625 # &quot;queryList&quot;: {
2626 # &quot;queries&quot;: [
2627 # &quot;query1&quot;,
2628 # &quot;query2&quot;,
2629 # &quot;query3;query4&quot;,
2630 # ]
2631 # }
2632 # }
2633 &quot;A String&quot;,
2634 ],
2635 },
2636 &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.
2637 &quot;A String&quot;,
2638 ],
2639 &quot;scriptVariables&quot;: { # Optional. Mapping of query variable names to values (equivalent to the Pig command: name=[value]).
2640 &quot;a_key&quot;: &quot;A String&quot;,
2641 },
2642 },
Dan O'Mearadd494642020-05-01 07:42:23 -07002643 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002644 &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 -07002645 }
2646
2647 x__xgafv: string, V1 error format.
2648 Allowed values
2649 1 - v1 error format
2650 2 - v2 error format
2651
2652Returns:
2653 An object of the form:
2654
2655 { # This resource represents a long-running operation that is the result of a network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002656 &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.
2657 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2658 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002659 &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.
2660 &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.
2661 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07002662 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002663 &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}.
2664 &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.
2665 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2666 &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.
2667 &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 -07002668 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002669 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07002670 },
2671 ],
2672 },
Dan O'Mearadd494642020-05-01 07:42:23 -07002673 }</pre>
2674</div>
2675
2676<div class="method">
2677 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -07002678 <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 -07002679
2680Args:
2681 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 -07002682 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002683 The object takes the form of:
2684
2685{ # Request message for TestIamPermissions method.
Bu Sun Kim65020912020-05-20 12:08:20 -07002686 &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).
2687 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002688 ],
2689 }
2690
2691 x__xgafv: string, V1 error format.
2692 Allowed values
2693 1 - v1 error format
2694 2 - v2 error format
2695
2696Returns:
2697 An object of the form:
2698
2699 { # Response message for TestIamPermissions method.
Bu Sun Kim65020912020-05-20 12:08:20 -07002700 &quot;permissions&quot;: [ # A subset of TestPermissionsRequest.permissions that the caller is allowed.
2701 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002702 ],
2703 }</pre>
2704</div>
2705
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002706</body></html>