Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: discovery/googleapis_beta/dataproc__v1beta1.json

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": { 5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services" 6 "description": "View and manage your data across Google Clou d Platform services"
7 } 7 }
8 } 8 }
9 } 9 }
10 }, 10 },
11 "basePath": "", 11 "basePath": "",
12 "baseUrl": "https://dataproc.googleapis.com/", 12 "baseUrl": "https://dataproc.googleapis.com/",
13 "batchPath": "batch", 13 "batchPath": "batch",
14 "description": "An API for managing Hadoop-based clusters and jobs on Google Cloud Platform.", 14 "description": "Manages Hadoop-based clusters and jobs on Google Cloud Platf orm.",
15 "discoveryVersion": "v1", 15 "discoveryVersion": "v1",
16 "documentationLink": "https://cloud.google.com/dataproc/", 16 "documentationLink": "https://cloud.google.com/dataproc/",
17 "etag": "\"tbys6C40o18GZwyMen5GMkdK-3s/cZQ-6vqHhMM0YELMHYWsiSzNXAM\"",
18 "icons": { 17 "icons": {
19 "x16": "http://www.google.com/images/icons/product/search-16.gif", 18 "x16": "http://www.google.com/images/icons/product/search-16.gif",
20 "x32": "http://www.google.com/images/icons/product/search-32.gif" 19 "x32": "http://www.google.com/images/icons/product/search-32.gif"
21 }, 20 },
22 "id": "dataproc:v1beta1", 21 "id": "dataproc:v1beta1",
23 "kind": "discovery#restDescription", 22 "kind": "discovery#restDescription",
24 "name": "dataproc", 23 "name": "dataproc",
25 "ownerDomain": "google.com", 24 "ownerDomain": "google.com",
26 "ownerName": "Google", 25 "ownerName": "Google",
27 "parameters": { 26 "parameters": {
28 "access_token": { 27 "pp": {
29 "description": "OAuth access token.", 28 "default": "true",
29 "description": "Pretty-print response.",
30 "location": "query", 30 "location": "query",
31 "type": "string" 31 "type": "boolean"
32 },
33 "alt": {
34 "default": "json",
35 "description": "Data format for response.",
36 "enumDescriptions": [
37 "Responses with Content-Type of application/json",
38 "Media download with context-dependent Content-Type",
39 "Responses with Content-Type of application/x-protobuf"
40 ],
41 "location": "query",
42 "type": "string"
43 }, 32 },
44 "bearer_token": { 33 "bearer_token": {
45 "description": "OAuth bearer token.", 34 "description": "OAuth bearer token.",
46 "location": "query", 35 "location": "query",
47 "type": "string" 36 "type": "string"
48 }, 37 },
49 "callback": {
50 "description": "JSONP",
51 "location": "query",
52 "type": "string"
53 },
54 "fields": {
55 "description": "Selector specifying which fields to include in a par tial response.",
56 "location": "query",
57 "type": "string"
58 },
59 "key": {
60 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
61 "location": "query",
62 "type": "string"
63 },
64 "oauth_token": { 38 "oauth_token": {
65 "description": "OAuth 2.0 token for the current user.", 39 "description": "OAuth 2.0 token for the current user.",
66 "location": "query", 40 "location": "query",
67 "type": "string" 41 "type": "string"
68 }, 42 },
69 "pp": { 43 "upload_protocol": {
70 "default": "true", 44 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
71 "description": "Pretty-print response.",
72 "location": "query", 45 "location": "query",
73 "type": "boolean" 46 "type": "string"
74 }, 47 },
75 "prettyPrint": { 48 "prettyPrint": {
76 "default": "true", 49 "default": "true",
77 "description": "Returns response with indentations and line breaks." , 50 "description": "Returns response with indentations and line breaks." ,
78 "location": "query", 51 "location": "query",
79 "type": "boolean" 52 "type": "boolean"
80 }, 53 },
81 "quotaUser": {
82 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.",
83 "location": "query",
84 "type": "string"
85 },
86 "upload_protocol": {
87 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
88 "location": "query",
89 "type": "string"
90 },
91 "uploadType": { 54 "uploadType": {
92 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").", 55 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
93 "location": "query", 56 "location": "query",
94 "type": "string" 57 "type": "string"
95 }, 58 },
59 "fields": {
60 "description": "Selector specifying which fields to include in a par tial response.",
61 "location": "query",
62 "type": "string"
63 },
64 "callback": {
65 "description": "JSONP",
66 "location": "query",
67 "type": "string"
68 },
96 "$.xgafv": { 69 "$.xgafv": {
97 "description": "V1 error format.", 70 "description": "V1 error format.",
71 "enum": [
72 "1",
73 "2"
74 ],
98 "enumDescriptions": [ 75 "enumDescriptions": [
99 "v1 error format", 76 "v1 error format",
100 "v2 error format" 77 "v2 error format"
101 ], 78 ],
102 "location": "query", 79 "location": "query",
103 "type": "string" 80 "type": "string"
81 },
82 "alt": {
83 "default": "json",
84 "description": "Data format for response.",
85 "enum": [
86 "json",
87 "media",
88 "proto"
89 ],
90 "enumDescriptions": [
91 "Responses with Content-Type of application/json",
92 "Media download with context-dependent Content-Type",
93 "Responses with Content-Type of application/x-protobuf"
94 ],
95 "location": "query",
96 "type": "string"
97 },
98 "access_token": {
99 "description": "OAuth access token.",
100 "location": "query",
101 "type": "string"
102 },
103 "key": {
104 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
105 "location": "query",
106 "type": "string"
107 },
108 "quotaUser": {
109 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.",
110 "location": "query",
111 "type": "string"
104 } 112 }
105 }, 113 },
106 "protocol": "rest", 114 "protocol": "rest",
107 "resources": { 115 "resources": {
116 "operations": {
117 "methods": {
118 "cancel": {
119 "description": "Starts asynchronous cancellation on a long-r unning operation. The server makes a best effort to cancel the operation, but su ccess is not guaranteed. If the server doesn't support this method, it returns g oogle.rpc.Code.UNIMPLEMENTED. Clients can use operations.get or other methods to check whether the cancellation succeeded or whether the operation completed des pite cancellation.",
120 "httpMethod": "POST",
121 "id": "dataproc.operations.cancel",
122 "parameterOrder": [
123 "name"
124 ],
125 "parameters": {
126 "name": {
127 "description": "The name of the operation resource t o be cancelled.",
128 "location": "path",
129 "pattern": "^operations/.+$",
130 "required": true,
131 "type": "string"
132 }
133 },
134 "path": "v1beta1/{+name}:cancel",
135 "request": {
136 "$ref": "CancelOperationRequest"
137 },
138 "response": {
139 "$ref": "Empty"
140 },
141 "scopes": [
142 "https://www.googleapis.com/auth/cloud-platform"
143 ]
144 },
145 "delete": {
146 "description": "Deletes a long-running operation. This metho d indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it ret urns google.rpc.Code.UNIMPLEMENTED.",
147 "httpMethod": "DELETE",
148 "id": "dataproc.operations.delete",
149 "parameterOrder": [
150 "name"
151 ],
152 "parameters": {
153 "name": {
154 "description": "The name of the operation resource t o be deleted.",
155 "location": "path",
156 "pattern": "^operations/.+$",
157 "required": true,
158 "type": "string"
159 }
160 },
161 "path": "v1beta1/{+name}",
162 "response": {
163 "$ref": "Empty"
164 },
165 "scopes": [
166 "https://www.googleapis.com/auth/cloud-platform"
167 ]
168 },
169 "get": {
170 "description": "Gets the latest state of a long-running oper ation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
171 "httpMethod": "GET",
172 "id": "dataproc.operations.get",
173 "parameterOrder": [
174 "name"
175 ],
176 "parameters": {
177 "name": {
178 "description": "The name of the operation resource." ,
179 "location": "path",
180 "pattern": "^operations/.+$",
181 "required": true,
182 "type": "string"
183 }
184 },
185 "path": "v1beta1/{+name}",
186 "response": {
187 "$ref": "Operation"
188 },
189 "scopes": [
190 "https://www.googleapis.com/auth/cloud-platform"
191 ]
192 },
193 "list": {
194 "description": "Lists operations that match the specified fi lter in the request. If the server doesn't support this method, it returns UNIMP LEMENTED.NOTE: the name binding below allows API services to override the bindin g to use different resource name schemes, such as users/*/operations.",
195 "httpMethod": "GET",
196 "id": "dataproc.operations.list",
197 "parameterOrder": [
198 "name"
199 ],
200 "parameters": {
201 "name": {
202 "description": "The name of the operation collection .",
203 "location": "path",
204 "pattern": "^operations$",
205 "required": true,
206 "type": "string"
207 },
208 "pageToken": {
209 "description": "The standard list page token.",
210 "location": "query",
211 "type": "string"
212 },
213 "pageSize": {
214 "description": "The standard list page size.",
215 "format": "int32",
216 "location": "query",
217 "type": "integer"
218 },
219 "filter": {
220 "description": "The standard list filter.",
221 "location": "query",
222 "type": "string"
223 }
224 },
225 "path": "v1beta1/{+name}",
226 "response": {
227 "$ref": "ListOperationsResponse"
228 },
229 "scopes": [
230 "https://www.googleapis.com/auth/cloud-platform"
231 ]
232 }
233 }
234 },
108 "projects": { 235 "projects": {
109 "resources": { 236 "resources": {
110 "clusters": { 237 "clusters": {
111 "methods": { 238 "methods": {
112 "create": { 239 "create": {
113 "description": "Creates a cluster in a project.", 240 "description": "Creates a cluster in a project.",
114 "httpMethod": "POST", 241 "httpMethod": "POST",
115 "id": "dataproc.projects.clusters.create", 242 "id": "dataproc.projects.clusters.create",
116 "parameterOrder": [ 243 "parameterOrder": [
117 "projectId" 244 "projectId"
118 ], 245 ],
119 "parameters": { 246 "parameters": {
120 "projectId": { 247 "projectId": {
121 "description": "[Required] The ID of the Goo gle Cloud Platform project that the cluster belongs to.", 248 "description": "Required The ID of the Googl e Cloud Platform project that the cluster belongs to.",
122 "location": "path", 249 "location": "path",
123 "required": true, 250 "required": true,
124 "type": "string" 251 "type": "string"
125 } 252 }
126 }, 253 },
127 "path": "v1beta1/projects/{projectId}/clusters", 254 "path": "v1beta1/projects/{projectId}/clusters",
128 "request": { 255 "request": {
129 "$ref": "Cluster" 256 "$ref": "Cluster"
130 }, 257 },
131 "response": { 258 "response": {
132 "$ref": "Operation" 259 "$ref": "Operation"
133 }, 260 },
134 "scopes": [ 261 "scopes": [
135 "https://www.googleapis.com/auth/cloud-platform" 262 "https://www.googleapis.com/auth/cloud-platform"
136 ] 263 ]
137 }, 264 },
138 "patch": { 265 "patch": {
139 "description": "Updates a cluster in a project.", 266 "description": "Updates a cluster in a project.",
140 "httpMethod": "PATCH", 267 "httpMethod": "PATCH",
141 "id": "dataproc.projects.clusters.patch", 268 "id": "dataproc.projects.clusters.patch",
142 "parameterOrder": [ 269 "parameterOrder": [
143 "projectId", 270 "projectId",
144 "clusterName" 271 "clusterName"
145 ], 272 ],
146 "parameters": { 273 "parameters": {
147 "projectId": { 274 "clusterName": {
148 "description": "[Required] The ID of the Goo gle Cloud Platform project the cluster belongs to.", 275 "description": "Required The cluster name.",
149 "location": "path", 276 "location": "path",
150 "required": true, 277 "required": true,
151 "type": "string" 278 "type": "string"
152 }, 279 },
153 "clusterName": { 280 "projectId": {
154 "description": "[Required] The cluster name. ", 281 "description": "Required The ID of the Googl e Cloud Platform project the cluster belongs to.",
155 "location": "path", 282 "location": "path",
156 "required": true, 283 "required": true,
157 "type": "string" 284 "type": "string"
158 }, 285 },
159 "updateMask": { 286 "updateMask": {
160 "description": "[Required] Specifies the pat h, relative to Cluster, of the field to update. For example, to change the numbe r of workers in a cluster to 5, the update_mask parameter would be specified as configuration.worker_configuration.num_instances, and the `PATCH` request body w ould specify the new value, as follows: { \"configuration\":{ \"workerConfigurat ion\":{ \"numInstances\":\"5\" } } } Similarly, to change the number of preempti ble workers in a cluster to 5, the update_mask parameter would be config.seconda ry_worker_config.num_instances, and the `PATCH` request body would be set as fol lows: { \"config\":{ \"secondaryWorkerConfig\":{ \"numInstances\":\"5\" } } } No te: Currently, config.worker_config.num_instances and config.secondary_worker_co nfig.num_instances are the only fields that can be updated.", 287 "description": "Required Specifies the path, relative to <code>Cluster</code>, of the field to update. For example, to chang e the number of workers in a cluster to 5, the <code>update_mask</code> paramete r would be specified as <code>configuration.worker_configuration.num_instances</ code>, and the PATCH request body would specify the new value, as follows:\n{\n \"configuration\":{\n \"workerConfiguration\":{\n \"numInstances\":\"5\ "\n }\n }\n}\nSimilarly, to change the number of preemptible workers in a cl uster to 5, the <code>update_mask</code> parameter would be <code>config.seconda ry_worker_config.num_instances</code>, and the PATCH request body would be set a s follows:\n{\n \"config\":{\n \"secondaryWorkerConfig\":{\n \"numInsta nces\":\"5\"\n }\n }\n}\n<strong>Note:</strong> Currently, <code>config.work er_config.num_instances</code> and <code>config.secondary_worker_config.num_inst ances</code> are the only fields that can be updated.",
288 "format": "google-fieldmask",
161 "location": "query", 289 "location": "query",
162 "type": "string" 290 "type": "string"
163 } 291 }
164 }, 292 },
165 "path": "v1beta1/projects/{projectId}/clusters/{clus terName}", 293 "path": "v1beta1/projects/{projectId}/clusters/{clus terName}",
166 "request": { 294 "request": {
167 "$ref": "Cluster" 295 "$ref": "Cluster"
168 }, 296 },
169 "response": { 297 "response": {
170 "$ref": "Operation" 298 "$ref": "Operation"
171 }, 299 },
172 "scopes": [ 300 "scopes": [
173 "https://www.googleapis.com/auth/cloud-platform" 301 "https://www.googleapis.com/auth/cloud-platform"
174 ] 302 ]
175 }, 303 },
304 "get": {
305 "description": "Gets the resource representation for a cluster in a project.",
306 "httpMethod": "GET",
307 "id": "dataproc.projects.clusters.get",
308 "parameterOrder": [
309 "projectId",
310 "clusterName"
311 ],
312 "parameters": {
313 "clusterName": {
314 "description": "Required The cluster name.",
315 "location": "path",
316 "required": true,
317 "type": "string"
318 },
319 "projectId": {
320 "description": "Required The ID of the Googl e Cloud Platform project that the cluster belongs to.",
321 "location": "path",
322 "required": true,
323 "type": "string"
324 }
325 },
326 "path": "v1beta1/projects/{projectId}/clusters/{clus terName}",
327 "response": {
328 "$ref": "Cluster"
329 },
330 "scopes": [
331 "https://www.googleapis.com/auth/cloud-platform"
332 ]
333 },
176 "delete": { 334 "delete": {
177 "description": "Deletes a cluster in a project.", 335 "description": "Deletes a cluster in a project.",
178 "httpMethod": "DELETE", 336 "httpMethod": "DELETE",
179 "id": "dataproc.projects.clusters.delete", 337 "id": "dataproc.projects.clusters.delete",
180 "parameterOrder": [ 338 "parameterOrder": [
181 "projectId", 339 "projectId",
182 "clusterName" 340 "clusterName"
183 ], 341 ],
184 "parameters": { 342 "parameters": {
185 "projectId": { 343 "clusterName": {
186 "description": "[Required] The ID of the Goo gle Cloud Platform project that the cluster belongs to.", 344 "description": "Required The cluster name.",
187 "location": "path", 345 "location": "path",
188 "required": true, 346 "required": true,
189 "type": "string" 347 "type": "string"
190 }, 348 },
191 "clusterName": { 349 "projectId": {
192 "description": "[Required] The cluster name. ", 350 "description": "Required The ID of the Googl e Cloud Platform project that the cluster belongs to.",
193 "location": "path", 351 "location": "path",
194 "required": true, 352 "required": true,
195 "type": "string" 353 "type": "string"
196 } 354 }
197 }, 355 },
198 "path": "v1beta1/projects/{projectId}/clusters/{clus terName}", 356 "path": "v1beta1/projects/{projectId}/clusters/{clus terName}",
199 "response": { 357 "response": {
200 "$ref": "Operation" 358 "$ref": "Operation"
201 }, 359 },
202 "scopes": [ 360 "scopes": [
203 "https://www.googleapis.com/auth/cloud-platform" 361 "https://www.googleapis.com/auth/cloud-platform"
204 ] 362 ]
205 }, 363 },
206 "get": { 364 "diagnose": {
207 "description": "Gets the resource representation for a cluster in a project.", 365 "description": "Gets cluster diagnostic information. After the operation completes, the Operation.response field contains DiagnoseCl usterOutputLocation.",
208 "httpMethod": "GET", 366 "httpMethod": "POST",
209 "id": "dataproc.projects.clusters.get", 367 "id": "dataproc.projects.clusters.diagnose",
210 "parameterOrder": [ 368 "parameterOrder": [
211 "projectId", 369 "projectId",
212 "clusterName" 370 "clusterName"
213 ], 371 ],
214 "parameters": { 372 "parameters": {
215 "projectId": { 373 "clusterName": {
216 "description": "[Required] The ID of the Goo gle Cloud Platform project that the cluster belongs to.", 374 "description": "Required The cluster name.",
217 "location": "path", 375 "location": "path",
218 "required": true, 376 "required": true,
219 "type": "string" 377 "type": "string"
220 }, 378 },
221 "clusterName": { 379 "projectId": {
222 "description": "[Required] The cluster name. ", 380 "description": "Required The ID of the Googl e Cloud Platform project that the cluster belongs to.",
223 "location": "path", 381 "location": "path",
224 "required": true, 382 "required": true,
225 "type": "string" 383 "type": "string"
226 } 384 }
227 }, 385 },
228 "path": "v1beta1/projects/{projectId}/clusters/{clus terName}", 386 "path": "v1beta1/projects/{projectId}/clusters/{clus terName}:diagnose",
387 "request": {
388 "$ref": "DiagnoseClusterRequest"
389 },
229 "response": { 390 "response": {
230 "$ref": "Cluster" 391 "$ref": "Operation"
231 }, 392 },
232 "scopes": [ 393 "scopes": [
233 "https://www.googleapis.com/auth/cloud-platform" 394 "https://www.googleapis.com/auth/cloud-platform"
234 ] 395 ]
235 }, 396 },
236 "list": { 397 "list": {
237 "description": "Lists all clusters in a project.", 398 "description": "Lists all clusters in a project.",
238 "httpMethod": "GET", 399 "httpMethod": "GET",
239 "id": "dataproc.projects.clusters.list", 400 "id": "dataproc.projects.clusters.list",
240 "parameterOrder": [ 401 "parameterOrder": [
241 "projectId" 402 "projectId"
242 ], 403 ],
243 "parameters": { 404 "parameters": {
244 "projectId": { 405 "filter": {
245 "description": "[Required] The ID of the Goo gle Cloud Platform project that the cluster belongs to.", 406 "description": "Optional A filter constraini ng which clusters to list. Valid filters contain label terms such as: labels.key 1 = val1 AND (-labels.k2 = val2 OR labels.k3 = val3)",
246 "location": "path", 407 "location": "query",
247 "required": true,
248 "type": "string" 408 "type": "string"
249 }, 409 },
250 "filter": { 410 "pageToken": {
251 "description": "[Optional] A filter constrai ning which clusters to list. Valid filters contain label terms such as: labels.k ey1 = val1 AND (-labels.k2 = val2 OR labels.k3 = val3)", 411 "description": "The standard List page token .",
252 "location": "query", 412 "location": "query",
253 "type": "string" 413 "type": "string"
254 }, 414 },
255 "pageSize": { 415 "pageSize": {
256 "description": "The standard List page size. ", 416 "description": "The standard List page size. ",
257 "format": "int32", 417 "format": "int32",
258 "location": "query", 418 "location": "query",
259 "type": "integer" 419 "type": "integer"
260 }, 420 },
261 "pageToken": { 421 "projectId": {
262 "description": "The standard List page token .", 422 "description": "Required The ID of the Googl e Cloud Platform project that the cluster belongs to.",
263 "location": "query", 423 "location": "path",
424 "required": true,
264 "type": "string" 425 "type": "string"
265 } 426 }
266 }, 427 },
267 "path": "v1beta1/projects/{projectId}/clusters", 428 "path": "v1beta1/projects/{projectId}/clusters",
268 "response": { 429 "response": {
269 "$ref": "ListClustersResponse" 430 "$ref": "ListClustersResponse"
270 }, 431 },
271 "scopes": [ 432 "scopes": [
272 "https://www.googleapis.com/auth/cloud-platform" 433 "https://www.googleapis.com/auth/cloud-platform"
273 ] 434 ]
274 },
275 "diagnose": {
276 "description": "Gets cluster diagnostic information. After the operation completes, the Operation.response field contains `DiagnoseC lusterOutputLocation`.",
277 "httpMethod": "POST",
278 "id": "dataproc.projects.clusters.diagnose",
279 "parameterOrder": [
280 "projectId",
281 "clusterName"
282 ],
283 "parameters": {
284 "projectId": {
285 "description": "[Required] The ID of the Goo gle Cloud Platform project that the cluster belongs to.",
286 "location": "path",
287 "required": true,
288 "type": "string"
289 },
290 "clusterName": {
291 "description": "[Required] The cluster name. ",
292 "location": "path",
293 "required": true,
294 "type": "string"
295 }
296 },
297 "path": "v1beta1/projects/{projectId}/clusters/{clus terName}:diagnose",
298 "request": {
299 "$ref": "DiagnoseClusterRequest"
300 },
301 "response": {
302 "$ref": "Operation"
303 },
304 "scopes": [
305 "https://www.googleapis.com/auth/cloud-platform"
306 ]
307 } 435 }
308 } 436 }
309 }, 437 },
310 "jobs": { 438 "jobs": {
311 "methods": { 439 "methods": {
440 "get": {
441 "description": "Gets the resource representation for a job in a project.",
442 "httpMethod": "GET",
443 "id": "dataproc.projects.jobs.get",
444 "parameterOrder": [
445 "projectId",
446 "jobId"
447 ],
448 "parameters": {
449 "projectId": {
450 "description": "Required The ID of the Googl e Cloud Platform project that the job belongs to.",
451 "location": "path",
452 "required": true,
453 "type": "string"
454 },
455 "jobId": {
456 "description": "Required The job ID.",
457 "location": "path",
458 "required": true,
459 "type": "string"
460 }
461 },
462 "path": "v1beta1/projects/{projectId}/jobs/{jobId}",
463 "response": {
464 "$ref": "Job"
465 },
466 "scopes": [
467 "https://www.googleapis.com/auth/cloud-platform"
468 ]
469 },
470 "patch": {
471 "description": "Updates a job in a project.",
472 "httpMethod": "PATCH",
473 "id": "dataproc.projects.jobs.patch",
474 "parameterOrder": [
475 "projectId",
476 "jobId"
477 ],
478 "parameters": {
479 "updateMask": {
480 "description": "Required Specifies the path, relative to <code>Job</code>, of the field to update. For example, to update th e labels of a Job the <code>update_mask</code> parameter would be specified as < code>labels</code>, and the PATCH request body would specify the new value. <str ong>Note:</strong> Currently, <code>labels</code> is the only field that can be updated.",
481 "format": "google-fieldmask",
482 "location": "query",
483 "type": "string"
484 },
485 "projectId": {
486 "description": "Required The ID of the Googl e Cloud Platform project that the job belongs to.",
487 "location": "path",
488 "required": true,
489 "type": "string"
490 },
491 "jobId": {
492 "description": "Required The job ID.",
493 "location": "path",
494 "required": true,
495 "type": "string"
496 }
497 },
498 "path": "v1beta1/projects/{projectId}/jobs/{jobId}",
499 "request": {
500 "$ref": "Job"
501 },
502 "response": {
503 "$ref": "Job"
504 },
505 "scopes": [
506 "https://www.googleapis.com/auth/cloud-platform"
507 ]
508 },
312 "submit": { 509 "submit": {
313 "description": "Submits a job to a cluster.", 510 "description": "Submits a job to a cluster.",
314 "httpMethod": "POST", 511 "httpMethod": "POST",
315 "id": "dataproc.projects.jobs.submit", 512 "id": "dataproc.projects.jobs.submit",
316 "parameterOrder": [ 513 "parameterOrder": [
317 "projectId" 514 "projectId"
318 ], 515 ],
319 "parameters": { 516 "parameters": {
320 "projectId": { 517 "projectId": {
321 "description": "[Required] The ID of the Goo gle Cloud Platform project that the job belongs to.", 518 "description": "Required The ID of the Googl e Cloud Platform project that the job belongs to.",
322 "location": "path", 519 "location": "path",
323 "required": true, 520 "required": true,
324 "type": "string" 521 "type": "string"
325 } 522 }
326 }, 523 },
327 "path": "v1beta1/projects/{projectId}/jobs:submit", 524 "path": "v1beta1/projects/{projectId}/jobs:submit",
328 "request": { 525 "request": {
329 "$ref": "SubmitJobRequest" 526 "$ref": "SubmitJobRequest"
330 }, 527 },
331 "response": { 528 "response": {
332 "$ref": "Job" 529 "$ref": "Job"
333 }, 530 },
334 "scopes": [ 531 "scopes": [
335 "https://www.googleapis.com/auth/cloud-platform" 532 "https://www.googleapis.com/auth/cloud-platform"
336 ] 533 ]
337 }, 534 },
338 "get": { 535 "delete": {
339 "description": "Gets the resource representation for a job in a project.", 536 "description": "Deletes the job from the project. If the job is active, the delete fails, and the response returns FAILED_PRECONDITI ON.",
340 "httpMethod": "GET", 537 "httpMethod": "DELETE",
341 "id": "dataproc.projects.jobs.get", 538 "id": "dataproc.projects.jobs.delete",
342 "parameterOrder": [ 539 "parameterOrder": [
343 "projectId", 540 "projectId",
344 "jobId" 541 "jobId"
345 ], 542 ],
346 "parameters": { 543 "parameters": {
347 "projectId": { 544 "projectId": {
348 "description": "[Required] The ID of the Goo gle Cloud Platform project that the job belongs to.", 545 "description": "Required The ID of the Googl e Cloud Platform project that the job belongs to.",
349 "location": "path", 546 "location": "path",
350 "required": true, 547 "required": true,
351 "type": "string" 548 "type": "string"
352 }, 549 },
353 "jobId": { 550 "jobId": {
354 "description": "[Required] The job ID.", 551 "description": "Required The job ID.",
355 "location": "path", 552 "location": "path",
356 "required": true, 553 "required": true,
357 "type": "string" 554 "type": "string"
358 } 555 }
359 }, 556 },
360 "path": "v1beta1/projects/{projectId}/jobs/{jobId}", 557 "path": "v1beta1/projects/{projectId}/jobs/{jobId}",
361 "response": { 558 "response": {
362 "$ref": "Job" 559 "$ref": "Empty"
363 }, 560 },
364 "scopes": [ 561 "scopes": [
365 "https://www.googleapis.com/auth/cloud-platform" 562 "https://www.googleapis.com/auth/cloud-platform"
366 ] 563 ]
367 }, 564 },
368 "list": { 565 "list": {
369 "description": "Lists jobs in a project.", 566 "description": "Lists jobs in a project.",
370 "httpMethod": "GET", 567 "httpMethod": "GET",
371 "id": "dataproc.projects.jobs.list", 568 "id": "dataproc.projects.jobs.list",
372 "parameterOrder": [ 569 "parameterOrder": [
373 "projectId" 570 "projectId"
374 ], 571 ],
375 "parameters": { 572 "parameters": {
573 "pageToken": {
574 "description": "Optional The page token, ret urned by a previous call, to request the next page of results.",
575 "location": "query",
576 "type": "string"
577 },
578 "pageSize": {
579 "description": "Optional The number of resul ts to return in each response.",
580 "format": "int32",
581 "location": "query",
582 "type": "integer"
583 },
584 "clusterName": {
585 "description": "Optional If set, the returne d jobs list includes only jobs that were submitted to the named cluster.",
586 "location": "query",
587 "type": "string"
588 },
376 "projectId": { 589 "projectId": {
377 "description": "[Required] The ID of the Goo gle Cloud Platform project that the job belongs to.", 590 "description": "Required The ID of the Googl e Cloud Platform project that the job belongs to.",
378 "location": "path", 591 "location": "path",
379 "required": true, 592 "required": true,
380 "type": "string" 593 "type": "string"
381 }, 594 },
382 "pageSize": { 595 "filter": {
383 "description": "[Optional] The number of res ults to return in each response.", 596 "description": "Optional A filter constraini ng which jobs to list. Valid filters contain job state and label terms such as: labels.key1 = val1 AND (labels.k2 = val2 OR labels.k3 = val3)",
384 "format": "int32",
385 "location": "query",
386 "type": "integer"
387 },
388 "pageToken": {
389 "description": "[Optional] The page token, r eturned by a previous call, to request the next page of results.",
390 "location": "query",
391 "type": "string"
392 },
393 "clusterName": {
394 "description": "[Optional] If set, the retur ned jobs list includes only jobs that were submitted to the named cluster.",
395 "location": "query", 597 "location": "query",
396 "type": "string" 598 "type": "string"
397 }, 599 },
398 "jobStateMatcher": { 600 "jobStateMatcher": {
399 "description": "[Optional] Specifies enumera ted categories of jobs to list.", 601 "description": "Optional Specifies enumerate d categories of jobs to list.",
400 "enum": [ 602 "enum": [
401 "ALL", 603 "ALL",
402 "ACTIVE", 604 "ACTIVE",
403 "NON_ACTIVE" 605 "NON_ACTIVE"
404 ], 606 ],
405 "location": "query", 607 "location": "query",
406 "type": "string" 608 "type": "string"
407 },
408 "filter": {
409 "description": "[Optional] A filter constrai ning which jobs to list. Valid filters contain job state and label terms such as : labels.key1 = val1 AND (labels.k2 = val2 OR labels.k3 = val3)",
410 "location": "query",
411 "type": "string"
412 } 609 }
413 }, 610 },
414 "path": "v1beta1/projects/{projectId}/jobs", 611 "path": "v1beta1/projects/{projectId}/jobs",
415 "response": { 612 "response": {
416 "$ref": "ListJobsResponse" 613 "$ref": "ListJobsResponse"
417 }, 614 },
418 "scopes": [ 615 "scopes": [
419 "https://www.googleapis.com/auth/cloud-platform" 616 "https://www.googleapis.com/auth/cloud-platform"
420 ] 617 ]
421 }, 618 },
422 "cancel": { 619 "cancel": {
423 "description": "Starts a job cancellation request. T o access the job resource after cancellation, call [jobs.list](/dataproc/referen ce/rest/v1beta1/projects.jobs/list) or [jobs.get](/dataproc/reference/rest/v1bet a1/projects.jobs/get).", 620 "description": "Starts a job cancellation request. T o access the job resource after cancellation, call jobs.list or jobs.get.",
424 "httpMethod": "POST", 621 "httpMethod": "POST",
425 "id": "dataproc.projects.jobs.cancel", 622 "id": "dataproc.projects.jobs.cancel",
426 "parameterOrder": [ 623 "parameterOrder": [
427 "projectId", 624 "projectId",
428 "jobId" 625 "jobId"
429 ], 626 ],
430 "parameters": { 627 "parameters": {
431 "projectId": { 628 "projectId": {
432 "description": "[Required] The ID of the Goo gle Cloud Platform project that the job belongs to.", 629 "description": "Required The ID of the Googl e Cloud Platform project that the job belongs to.",
433 "location": "path", 630 "location": "path",
434 "required": true, 631 "required": true,
435 "type": "string" 632 "type": "string"
436 }, 633 },
437 "jobId": { 634 "jobId": {
438 "description": "[Required] The job ID.", 635 "description": "Required The job ID.",
439 "location": "path", 636 "location": "path",
440 "required": true, 637 "required": true,
441 "type": "string" 638 "type": "string"
442 } 639 }
443 }, 640 },
444 "path": "v1beta1/projects/{projectId}/jobs/{jobId}:c ancel", 641 "path": "v1beta1/projects/{projectId}/jobs/{jobId}:c ancel",
445 "request": { 642 "request": {
446 "$ref": "CancelJobRequest" 643 "$ref": "CancelJobRequest"
447 }, 644 },
448 "response": { 645 "response": {
449 "$ref": "Job" 646 "$ref": "Job"
450 }, 647 },
451 "scopes": [ 648 "scopes": [
452 "https://www.googleapis.com/auth/cloud-platform" 649 "https://www.googleapis.com/auth/cloud-platform"
453 ] 650 ]
454 },
455 "delete": {
456 "description": "Deletes the job from the project. If the job is active, the delete fails, and the response returns `FAILED_PRECONDIT ION`.",
457 "httpMethod": "DELETE",
458 "id": "dataproc.projects.jobs.delete",
459 "parameterOrder": [
460 "projectId",
461 "jobId"
462 ],
463 "parameters": {
464 "projectId": {
465 "description": "[Required] The ID of the Goo gle Cloud Platform project that the job belongs to.",
466 "location": "path",
467 "required": true,
468 "type": "string"
469 },
470 "jobId": {
471 "description": "[Required] The job ID.",
472 "location": "path",
473 "required": true,
474 "type": "string"
475 }
476 },
477 "path": "v1beta1/projects/{projectId}/jobs/{jobId}",
478 "response": {
479 "$ref": "Empty"
480 },
481 "scopes": [
482 "https://www.googleapis.com/auth/cloud-platform"
483 ]
484 } 651 }
485 } 652 }
486 } 653 }
487 } 654 }
488 },
489 "operations": {
490 "methods": {
491 "get": {
492 "description": "Gets the latest state of a long-running oper ation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
493 "httpMethod": "GET",
494 "id": "dataproc.operations.get",
495 "parameterOrder": [
496 "name"
497 ],
498 "parameters": {
499 "name": {
500 "description": "The name of the operation resource." ,
501 "location": "path",
502 "pattern": "^operations/.+$",
503 "required": true,
504 "type": "string"
505 }
506 },
507 "path": "v1beta1/{+name}",
508 "response": {
509 "$ref": "Operation"
510 },
511 "scopes": [
512 "https://www.googleapis.com/auth/cloud-platform"
513 ]
514 },
515 "list": {
516 "description": "Lists operations that match the specified fi lter in the request. If the server doesn't support this method, it returns `UNIM PLEMENTED`. NOTE: the `name` binding below allows API services to override the b inding to use different resource name schemes, such as `users/*/operations`.",
517 "httpMethod": "GET",
518 "id": "dataproc.operations.list",
519 "parameterOrder": [
520 "name"
521 ],
522 "parameters": {
523 "name": {
524 "description": "The name of the operation collection .",
525 "location": "path",
526 "pattern": "^operations$",
527 "required": true,
528 "type": "string"
529 },
530 "filter": {
531 "description": "The standard list filter.",
532 "location": "query",
533 "type": "string"
534 },
535 "pageSize": {
536 "description": "The standard list page size.",
537 "format": "int32",
538 "location": "query",
539 "type": "integer"
540 },
541 "pageToken": {
542 "description": "The standard list page token.",
543 "location": "query",
544 "type": "string"
545 }
546 },
547 "path": "v1beta1/{+name}",
548 "response": {
549 "$ref": "ListOperationsResponse"
550 },
551 "scopes": [
552 "https://www.googleapis.com/auth/cloud-platform"
553 ]
554 },
555 "cancel": {
556 "description": "Starts asynchronous cancellation on a long-r unning operation. The server makes a best effort to cancel the operation, but su ccess is not guaranteed. If the server doesn't support this method, it returns ` google.rpc.Code.UNIMPLEMENTED`. Clients can use [operations.get](/dataproc/refer ence/rest/v1beta1/operations/get) or other methods to check whether the cancella tion succeeded or whether the operation completed despite cancellation.",
557 "httpMethod": "POST",
558 "id": "dataproc.operations.cancel",
559 "parameterOrder": [
560 "name"
561 ],
562 "parameters": {
563 "name": {
564 "description": "The name of the operation resource t o be cancelled.",
565 "location": "path",
566 "pattern": "^operations/.+$",
567 "required": true,
568 "type": "string"
569 }
570 },
571 "path": "v1beta1/{+name}:cancel",
572 "request": {
573 "$ref": "CancelOperationRequest"
574 },
575 "response": {
576 "$ref": "Empty"
577 },
578 "scopes": [
579 "https://www.googleapis.com/auth/cloud-platform"
580 ]
581 },
582 "delete": {
583 "description": "Deletes a long-running operation. This metho d indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it ret urns `google.rpc.Code.UNIMPLEMENTED`.",
584 "httpMethod": "DELETE",
585 "id": "dataproc.operations.delete",
586 "parameterOrder": [
587 "name"
588 ],
589 "parameters": {
590 "name": {
591 "description": "The name of the operation resource t o be deleted.",
592 "location": "path",
593 "pattern": "^operations/.+$",
594 "required": true,
595 "type": "string"
596 }
597 },
598 "path": "v1beta1/{+name}",
599 "response": {
600 "$ref": "Empty"
601 },
602 "scopes": [
603 "https://www.googleapis.com/auth/cloud-platform"
604 ]
605 }
606 }
607 } 655 }
608 }, 656 },
609 "revision": "20161102", 657 "revision": "20170207",
610 "rootUrl": "https://dataproc.googleapis.com/", 658 "rootUrl": "https://dataproc.googleapis.com/",
611 "schemas": { 659 "schemas": {
612 "Cluster": {
613 "description": "Describes the identifying information, configuration , and status of a cluster of Google Compute Engine instances.",
614 "id": "Cluster",
615 "properties": {
616 "projectId": {
617 "description": "[Required] The Google Cloud Platform project ID that the cluster belongs to.",
618 "type": "string"
619 },
620 "clusterName": {
621 "description": "[Required] The cluster name. Cluster names w ithin a project must be unique. Names from deleted clusters can be reused.",
622 "type": "string"
623 },
624 "configuration": {
625 "$ref": "ClusterConfiguration",
626 "description": "[Required] The cluster configuration. Note t hat Cloud Dataproc may set default values, and values may change when clusters a re updated."
627 },
628 "labels": {
629 "additionalProperties": {
630 "type": "string"
631 },
632 "description": "[Optional] The labels to associate with this cluster. Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \\p{Ll}\\p{Lo}{0,62} Label values must be between 1 and 63 characters long, and must conform to the following PCRE reg ular expression: [\\p{Ll}\\p{Lo}\\p{N}_-]{0,63} No more than 64 labels can be as sociated with a given cluster.",
633 "type": "object"
634 },
635 "status": {
636 "$ref": "ClusterStatus",
637 "description": "[Output-only] Cluster status."
638 },
639 "statusHistory": {
640 "description": "[Output-only] Previous cluster statuses.",
641 "items": {
642 "$ref": "ClusterStatus"
643 },
644 "type": "array"
645 },
646 "clusterUuid": {
647 "description": "[Output-only] A cluster UUID (Unique Univers al Identifier). Cloud Dataproc generates this value when it creates the cluster. ",
648 "type": "string"
649 },
650 "metrics": {
651 "$ref": "ClusterMetrics",
652 "description": "Contains cluster daemon metrics such as HDFS and YARN stats."
653 }
654 },
655 "type": "object"
656 },
657 "ClusterConfiguration": {
658 "description": "The cluster configuration.",
659 "id": "ClusterConfiguration",
660 "properties": {
661 "configurationBucket": {
662 "description": "[Optional] A Google Cloud Storage staging bu cket used for sharing generated SSH keys and configuration. If you do not specif y a staging bucket, Cloud Dataproc will determine an appropriate Cloud Storage l ocation (US, ASIA, or EU) for your cluster's staging bucket according to the Goo gle Compute Engine zone where your cluster is deployed, and then it will create and manage this project-level, per-location bucket for you.",
663 "type": "string"
664 },
665 "gceClusterConfiguration": {
666 "$ref": "GceClusterConfiguration",
667 "description": "[Required] The shared Google Compute Engine configuration settings for all instances in a cluster."
668 },
669 "masterConfiguration": {
670 "$ref": "InstanceGroupConfiguration",
671 "description": "[Optional] The Google Compute Engine configu ration settings for the master instance in a cluster."
672 },
673 "workerConfiguration": {
674 "$ref": "InstanceGroupConfiguration",
675 "description": "[Optional] The Google Compute Engine configu ration settings for worker instances in a cluster."
676 },
677 "secondaryWorkerConfiguration": {
678 "$ref": "InstanceGroupConfiguration",
679 "description": "[Optional] The Google Compute Engine configu ration settings for additional worker instances in a cluster."
680 },
681 "softwareConfiguration": {
682 "$ref": "SoftwareConfiguration",
683 "description": "[Optional] The configuration settings for so ftware inside the cluster."
684 },
685 "initializationActions": {
686 "description": "[Optional] Commands to execute on each node after configuration is completed. By default, executables are run on master and all worker nodes. You can test a node's role metadata to run an executable on a master or worker node, as shown below: ROLE=$(/usr/share/google/get_metadata_val ue attributes/role) if [[ \"${ROLE}\" == 'Master' ]]; then ... master specific a ctions ... else ... worker specific actions ... fi",
687 "items": {
688 "$ref": "NodeInitializationAction"
689 },
690 "type": "array"
691 }
692 },
693 "type": "object"
694 },
695 "GceClusterConfiguration": { 660 "GceClusterConfiguration": {
696 "description": "Common configuration settings for resources of Googl e Compute Engine cluster instances, applicable to all instances in the cluster." , 661 "description": "Common configuration settings for resources of Googl e Compute Engine cluster instances, applicable to all instances in the cluster." ,
697 "id": "GceClusterConfiguration", 662 "id": "GceClusterConfiguration",
698 "properties": { 663 "properties": {
664 "tags": {
665 "description": "The Google Compute Engine tags to add to all instances.",
666 "items": {
667 "type": "string"
668 },
669 "type": "array"
670 },
671 "serviceAccount": {
672 "description": "Optional The service account of the instance s. Defaults to the default Google Compute Engine service account. Custom service accounts need permissions equivalent to the folloing IAM roles:\nroles/logging. logWriter\nroles/storage.objectAdmin(see https://cloud.google.com/compute/docs/a ccess/service-accounts#custom_service_accounts for more information). Example: [ account_id]@[project_id].iam.gserviceaccount.com",
673 "type": "string"
674 },
675 "subnetworkUri": {
676 "description": "The Google Compute Engine subnetwork to be u sed for machine communications. Cannot be specified with network_uri. Example: h ttps://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0 .",
677 "type": "string"
678 },
679 "networkUri": {
680 "description": "The Google Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the \"default\" network of the pro ject is used, if it exists. Cannot be a \"Custom Subnet Network\" (see https://c loud.google.com/compute/docs/subnetworks for more information). Example: https:/ /www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default.",
681 "type": "string"
682 },
699 "zoneUri": { 683 "zoneUri": {
700 "description": "[Required] The zone where the Google Compute Engine cluster will be located. Example: `https://www.googleapis.com/compute/v1 /projects/[project_id]/zones/[zone]`.", 684 "description": "Required The zone where the Google Compute E ngine cluster will be located. Example: https://www.googleapis.com/compute/v1/pr ojects/[project_id]/zones/[zone].",
701 "type": "string" 685 "type": "string"
702 }, 686 },
703 "networkUri": { 687 "metadata": {
704 "description": "The Google Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the \"default\" network of the pro ject is used, if it exists. Cannot be a \"Custom Subnet Network\" (see https://c loud.google.com/compute/docs/subnetworks for more information). Example: `https: //www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`.", 688 "additionalProperties": {
705 "type": "string" 689 "type": "string"
706 }, 690 },
707 "subnetworkUri": { 691 "description": "The Google Compute Engine metadata entries t o add to all instances.",
708 "description": "The Google Compute Engine subnetwork to be u sed for machine communications. Cannot be specified with network_uri. Example: ` https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub 0`.", 692 "type": "object"
709 "type": "string"
710 }, 693 },
711 "internalIpOnly": { 694 "internalIpOnly": {
712 "description": "If true, all instances in the cluser will on ly have internal IP addresses. By default, clusters are not restricted to intern al IP addresses, and will have ephemeral external IP addresses assigned to each instance. This restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without ext ernal IP addresses.", 695 "description": "If true, all instances in the cluser will on ly have internal IP addresses. By default, clusters are not restricted to intern al IP addresses, and will have ephemeral external IP addresses assigned to each instance. This restriction can only be enabled for subnetwork enabled networks, and all off-cluster dependencies must be configured to be accessible without ext ernal IP addresses.",
713 "type": "boolean" 696 "type": "boolean"
714 }, 697 },
715 "serviceAccountScopes": { 698 "serviceAccountScopes": {
716 "description": "The URIs of service account scopes to be inc luded in Google Compute Engine instances. The following base set of scopes is al ways included: - https://www.googleapis.com/auth/cloud.useraccounts.readonly - h ttps://www.googleapis.com/auth/devstorage.read_write - https://www.googleapis.co m/auth/logging.write If no scopes are specfied, the following defaults are also provided: - https://www.googleapis.com/auth/bigquery - https://www.googleapis.co m/auth/bigtable.admin.table - https://www.googleapis.com/auth/bigtable.data - ht tps://www.googleapis.com/auth/devstorage.full_control", 699 "description": "The URIs of service account scopes to be inc luded in Google Compute Engine instances. The following base set of scopes is al ways included: - https://www.googleapis.com/auth/cloud.useraccounts.readonly - h ttps://www.googleapis.com/auth/devstorage.read_write - https://www.googleapis.co m/auth/logging.write If no scopes are specfied, the following defaults are also provided: - https://www.googleapis.com/auth/bigquery - https://www.googleapis.co m/auth/bigtable.admin.table - https://www.googleapis.com/auth/bigtable.data - ht tps://www.googleapis.com/auth/devstorage.full_control",
717 "items": { 700 "items": {
718 "type": "string" 701 "type": "string"
719 }, 702 },
720 "type": "array" 703 "type": "array"
721 }, 704 }
722 "tags": { 705 },
723 "description": "The Google Compute Engine tags to add to all instances.", 706 "type": "object"
724 "items": { 707 },
725 "type": "string" 708 "CancelOperationRequest": {
726 }, 709 "description": "The request message for Operations.CancelOperation." ,
727 "type": "array" 710 "id": "CancelOperationRequest",
711 "properties": {},
712 "type": "object"
713 },
714 "DiagnoseClusterOutputLocation": {
715 "description": "The location where output from diagnostic command ca n be found.",
716 "id": "DiagnoseClusterOutputLocation",
717 "properties": {
718 "outputUri": {
719 "description": "Output-only The Google Cloud Storage URI of the diagnostic output. This will be a plain text file with summary of collected diagnostics.",
720 "type": "string"
721 }
722 },
723 "type": "object"
724 },
725 "Operation": {
726 "description": "This resource represents a long-running operation th at is the result of a network API call.",
727 "id": "Operation",
728 "properties": {
729 "response": {
730 "additionalProperties": {
731 "description": "Properties of the object. Contains field @type with type URL.",
732 "type": "any"
733 },
734 "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Cr eate/Update, the response should be the resource. For other methods, the respons e should have the type XxxResponse, where Xxx is the original method name. For e xample, if the original method name is TakeSnapshot(), the inferred response typ e is TakeSnapshotResponse.",
735 "type": "object"
736 },
737 "name": {
738 "description": "The server-assigned name, which is only uniq ue within the same service that originally returns it. If you use the default HT TP mapping, the name should have the format of operations/some/unique/name.",
739 "type": "string"
740 },
741 "error": {
742 "$ref": "Status",
743 "description": "The error result of the operation in case of failure or cancellation."
728 }, 744 },
729 "metadata": { 745 "metadata": {
730 "additionalProperties": { 746 "additionalProperties": {
731 "type": "string" 747 "description": "Properties of the object. Contains field @type with type URL.",
732 }, 748 "type": "any"
733 "description": "The Google Compute Engine metadata entries t o add to all instances.", 749 },
750 "description": "Service-specific metadata associated with th e 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.",
734 "type": "object" 751 "type": "object"
735 } 752 },
736 }, 753 "done": {
737 "type": "object" 754 "description": "If the value is false, it means the operatio n is still in progress. If true, the operation is completed, and either error or response is available.",
738 }, 755 "type": "boolean"
739 "InstanceGroupConfiguration": { 756 }
740 "description": "The configuration settings for Google Compute Engine resources in an instance group, such as a master or worker group.", 757 },
741 "id": "InstanceGroupConfiguration", 758 "type": "object"
742 "properties": { 759 },
743 "numInstances": { 760 "OperationStatus": {
744 "description": "The number of VM instances in the instance g roup. For master instance groups, must be set to 1.", 761 "description": "The status of the operation.",
762 "id": "OperationStatus",
763 "properties": {
764 "innerState": {
765 "description": "A message containing the detailed operation state.",
766 "type": "string"
767 },
768 "stateStartTime": {
769 "description": "The time this state was entered.",
770 "format": "google-datetime",
771 "type": "string"
772 },
773 "state": {
774 "description": "A message containing the operation state.",
775 "enum": [
776 "UNKNOWN",
777 "PENDING",
778 "RUNNING",
779 "DONE"
780 ],
781 "enumDescriptions": [
782 "Unused.",
783 "The operation has been created.",
784 "The operation is running.",
785 "The operation is done; either cancelled or completed."
786 ],
787 "type": "string"
788 },
789 "details": {
790 "description": "A message containing any operation metadata details.",
791 "type": "string"
792 }
793 },
794 "type": "object"
795 },
796 "JobReference": {
797 "description": "Encapsulates the full scoping used to reference a jo b.",
798 "id": "JobReference",
799 "properties": {
800 "projectId": {
801 "description": "Required The ID of the Google Cloud Platform project that the job belongs to.",
802 "type": "string"
803 },
804 "jobId": {
805 "description": "Required The job ID, which must be unique wi thin the project. The job ID is generated by the server upon job submission or p rovided by the user as a means to perform retries without creating duplicate job s. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 512 characters.",
806 "type": "string"
807 }
808 },
809 "type": "object"
810 },
811 "SubmitJobRequest": {
812 "description": "A request to submit a job.",
813 "id": "SubmitJobRequest",
814 "properties": {
815 "job": {
816 "$ref": "Job",
817 "description": "Required The job resource."
818 }
819 },
820 "type": "object"
821 },
822 "Status": {
823 "description": "The Status type defines a logical error model that i s suitable for different programming environments, including REST APIs and RPC A PIs. It is used by gRPC (https://github.com/grpc). The error model is designed t o be:\nSimple to use and understand for most users\nFlexible enough to meet unex pected needsOverviewThe Status message contains three pieces of data: error code , error message, and error details. The error code should be an enum value of go ogle.rpc.Code, but it may accept additional error codes if needed. The error mes sage should be a developer-facing English message that helps developers understa nd and resolve the error. If a localized user-facing error message is needed, pu t the localized message in the error details or localize it in the client. The o ptional error details may contain arbitrary information about the error. There i s a predefined set of error detail types in the package google.rpc which can be used for common error conditions.Language mappingThe Status message is the logic al representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and dif ferent wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error code s in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model inclu de:\nPartial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors.\n Workflow errors. A typical workflow has multiple steps. Each step may have a Sta tus message for error reporting purpose.\nBatch operations. If a client uses bat ch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response.\nAsynchronous operations. If a n API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message.\nLoggi ng. If some API errors are stored in logs, the message Status could be used dire ctly after any stripping needed for security/privacy reasons.",
824 "id": "Status",
825 "properties": {
826 "code": {
827 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
745 "format": "int32", 828 "format": "int32",
746 "type": "integer" 829 "type": "integer"
747 }, 830 },
748 "instanceNames": { 831 "message": {
749 "description": "The list of instance names. Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not s et by user (recommended practice is to let Dataproc derive the name).", 832 "description": "A developer-facing error message, which shou ld 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.",
833 "type": "string"
834 },
835 "details": {
836 "description": "A list of messages that carry the error deta ils. There will be a common set of message types for APIs to use.",
750 "items": { 837 "items": {
751 "type": "string" 838 "additionalProperties": {
839 "description": "Properties of the object. Contains f ield @type with type URL.",
840 "type": "any"
841 },
842 "type": "object"
752 }, 843 },
753 "type": "array" 844 "type": "array"
754 }, 845 }
755 "imageUri": { 846 },
756 "description": "[Output-only] The Google Compute Engine imag e resource used for cluster instances. Inferred from `SoftwareConfiguration.imag e_version`.", 847 "type": "object"
757 "type": "string" 848 },
758 }, 849 "JobScheduling": {
759 "machineTypeUri": { 850 "description": "Job scheduling options.Beta Feature: These options a re available for testing purposes only. They may be changed before final release .",
760 "description": "The Google Compute Engine machine type used for cluster instances. Example: `https://www.googleapis.com/compute/v1/projects/ [project_id]/zones/us-east1-a/machineTypes/n1-standard-2`.", 851 "id": "JobScheduling",
761 "type": "string" 852 "properties": {
762 }, 853 "maxFailuresPerHour": {
763 "diskConfiguration": { 854 "description": "Optional Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code bef ore job is reported failed.A job may be reported as thrashing if driver exits wi th non-zero code 4 times within 10 minute window.Maximum value is 10.",
764 "$ref": "DiskConfiguration",
765 "description": "Disk option configuration settings."
766 },
767 "isPreemptible": {
768 "description": "Specifies that this instance group contains Preemptible Instances.",
769 "type": "boolean"
770 },
771 "managedGroupConfiguration": {
772 "$ref": "ManagedGroupConfiguration",
773 "description": "[Output-only] The configuration for Google C ompute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups."
774 }
775 },
776 "type": "object"
777 },
778 "DiskConfiguration": {
779 "description": "Specifies the configuration of disk options for a gr oup of VM instances.",
780 "id": "DiskConfiguration",
781 "properties": {
782 "bootDiskSizeGb": {
783 "description": "[Optional] Size in GB of the boot disk (defa ult is 500GB).",
784 "format": "int32", 855 "format": "int32",
785 "type": "integer" 856 "type": "integer"
786 }, 857 }
787 "numLocalSsds": { 858 },
788 "description": "[Optional] Number of attached SSDs, from 0 t o 4 (default is 0). If SSDs are not attached, the boot disk is used to store run time logs and HDFS data. If one or more SSDs are attached, this runtime bulk dat a is spread across them, and the boot disk contains only basic configuration and installed binaries.", 859 "type": "object"
789 "format": "int32",
790 "type": "integer"
791 }
792 },
793 "type": "object"
794 },
795 "ManagedGroupConfiguration": {
796 "description": "Specifies the resources used to actively manage an i nstance group.",
797 "id": "ManagedGroupConfiguration",
798 "properties": {
799 "instanceTemplateName": {
800 "description": "[Output-only] The name of the Instance Templ ate used for the Managed Instance Group.",
801 "type": "string"
802 },
803 "instanceGroupManagerName": {
804 "description": "[Output-only] The name of the Instance Group Manager for this group.",
805 "type": "string"
806 }
807 },
808 "type": "object"
809 },
810 "SoftwareConfiguration": {
811 "description": "Specifies the selection and configuration of softwar e inside the cluster.",
812 "id": "SoftwareConfiguration",
813 "properties": {
814 "imageVersion": {
815 "description": "[Optional] The version of software inside th e cluster. It must match the regular expression `[0-9]+\\.[0-9]+`. If unspecifie d, it defaults to the latest version (see [Cloud Dataproc Versioning](/dataproc/ versioning)).",
816 "type": "string"
817 },
818 "properties": {
819 "additionalProperties": {
820 "type": "string"
821 },
822 "description": "[Optional] The properties to set on daemon c onfiguration files. Property keys are specified in \"prefix:property\" format, s uch as \"core:fs.defaultFS\". The following are supported prefixes and their map pings: core - core-site.xml hdfs - hdfs-site.xml mapred - mapred-site.xml yarn - yarn-site.xml hive - hive-site.xml pig - pig.properties spark - spark-defaults. conf",
823 "type": "object"
824 }
825 },
826 "type": "object"
827 }, 860 },
828 "NodeInitializationAction": { 861 "NodeInitializationAction": {
829 "description": "Specifies an executable to run on a fully configured node and a timeout period for executable completion.", 862 "description": "Specifies an executable to run on a fully configured node and a timeout period for executable completion.",
830 "id": "NodeInitializationAction", 863 "id": "NodeInitializationAction",
831 "properties": { 864 "properties": {
832 "executableFile": { 865 "executableFile": {
833 "description": "[Required] Google Cloud Storage URI of execu table file.", 866 "description": "Required Google Cloud Storage URI of executa ble file.",
834 "type": "string" 867 "type": "string"
835 }, 868 },
836 "executionTimeout": { 869 "executionTimeout": {
837 "description": "[Optional] Amount of time executable has to complete. Default is 10 minutes. Cluster creation fails with an explanatory erro r message (the name of the executable that caused the error and the exceeded tim eout period) if the executable is not completed at end of the timeout period.", 870 "description": "Optional Amount of time executable has to co mplete. Default is 10 minutes. Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeo ut period) if the executable is not completed at end of the timeout period.",
838 "type": "string" 871 "format": "google-duration",
839 } 872 "type": "string"
840 }, 873 }
841 "type": "object" 874 },
842 }, 875 "type": "object"
843 "ClusterStatus": { 876 },
844 "description": "The status of a cluster and its instances.", 877 "ListJobsResponse": {
845 "id": "ClusterStatus", 878 "description": "A list of jobs in a project.",
846 "properties": { 879 "id": "ListJobsResponse",
880 "properties": {
881 "nextPageToken": {
882 "description": "Optional This token is included in the respo nse if there are more results to fetch. To fetch additional results, provide thi s value as the page_token in a subsequent <code>ListJobsRequest</code>.",
883 "type": "string"
884 },
885 "jobs": {
886 "description": "Output-only Jobs list.",
887 "items": {
888 "$ref": "Job"
889 },
890 "type": "array"
891 }
892 },
893 "type": "object"
894 },
895 "CancelJobRequest": {
896 "description": "A request to cancel a job.",
897 "id": "CancelJobRequest",
898 "properties": {},
899 "type": "object"
900 },
901 "SparkSqlJob": {
902 "description": "A Cloud Dataproc job for running Spark SQL queries." ,
903 "id": "SparkSqlJob",
904 "properties": {
905 "queryList": {
906 "$ref": "QueryList",
907 "description": "A list of queries."
908 },
909 "queryFileUri": {
910 "description": "The HCFS URI of the script that contains SQL queries.",
911 "type": "string"
912 },
913 "scriptVariables": {
914 "additionalProperties": {
915 "type": "string"
916 },
917 "description": "Optional Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=\"value\";).",
918 "type": "object"
919 },
920 "jarFileUris": {
921 "description": "Optional HCFS URIs of jar files to be added to the Spark CLASSPATH.",
922 "items": {
923 "type": "string"
924 },
925 "type": "array"
926 },
927 "loggingConfiguration": {
928 "$ref": "LoggingConfiguration",
929 "description": "Optional The runtime log configuration for j ob execution."
930 },
931 "properties": {
932 "additionalProperties": {
933 "type": "string"
934 },
935 "description": "Optional A mapping of property names to valu es, used to configure Spark SQL's SparkConf. Properties that conflict with value s set by the Cloud Dataproc API may be overwritten.",
936 "type": "object"
937 }
938 },
939 "type": "object"
940 },
941 "Cluster": {
942 "description": "Describes the identifying information, configuration , and status of a cluster of Google Compute Engine instances.",
943 "id": "Cluster",
944 "properties": {
945 "configuration": {
946 "$ref": "ClusterConfiguration",
947 "description": "Required The cluster configuration. Note tha t Cloud Dataproc may set default values, and values may change when clusters are updated."
948 },
949 "labels": {
950 "additionalProperties": {
951 "type": "string"
952 },
953 "description": "Optional The labels to associate with this c luster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \\p{Ll}\\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \\p{Ll}\\p{Lo}\\p{N}_-{0,63}No more than 64 labels can be associate d with a given cluster.",
954 "type": "object"
955 },
956 "metrics": {
957 "$ref": "ClusterMetrics",
958 "description": "Contains cluster daemon metrics such as HDFS and YARN stats."
959 },
960 "status": {
961 "$ref": "ClusterStatus",
962 "description": "Output-only Cluster status."
963 },
964 "statusHistory": {
965 "description": "Output-only Previous cluster statuses.",
966 "items": {
967 "$ref": "ClusterStatus"
968 },
969 "type": "array"
970 },
971 "clusterName": {
972 "description": "Required The cluster name. Cluster names wit hin a project must be unique. Names from deleted clusters can be reused.",
973 "type": "string"
974 },
975 "clusterUuid": {
976 "description": "Output-only A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.",
977 "type": "string"
978 },
979 "projectId": {
980 "description": "Required The Google Cloud Platform project I D that the cluster belongs to.",
981 "type": "string"
982 }
983 },
984 "type": "object"
985 },
986 "ListOperationsResponse": {
987 "description": "The response message for Operations.ListOperations." ,
988 "id": "ListOperationsResponse",
989 "properties": {
990 "nextPageToken": {
991 "description": "The standard List next-page token.",
992 "type": "string"
993 },
994 "operations": {
995 "description": "A list of operations that matches the specif ied filter in the request.",
996 "items": {
997 "$ref": "Operation"
998 },
999 "type": "array"
1000 }
1001 },
1002 "type": "object"
1003 },
1004 "OperationMetadata": {
1005 "description": "Metadata describing the operation.",
1006 "id": "OperationMetadata",
1007 "properties": {
1008 "operationType": {
1009 "description": "Output-only The operation type.",
1010 "type": "string"
1011 },
1012 "description": {
1013 "description": "Output-only Short description of operation." ,
1014 "type": "string"
1015 },
1016 "status": {
1017 "$ref": "OperationStatus",
1018 "description": "Output-only Current operation status."
1019 },
847 "state": { 1020 "state": {
848 "description": "The cluster's state.", 1021 "description": "A message containing the operation state.",
849 "enum": [ 1022 "enum": [
850 "UNKNOWN", 1023 "UNKNOWN",
851 "CREATING", 1024 "PENDING",
852 "RUNNING", 1025 "RUNNING",
853 "ERROR", 1026 "DONE"
854 "DELETING",
855 "UPDATING"
856 ], 1027 ],
857 "type": "string" 1028 "enumDescriptions": [
858 }, 1029 "Unused.",
859 "detail": { 1030 "The operation has been created.",
860 "description": "Optional details of cluster's state.", 1031 "The operation is currently running.",
861 "type": "string" 1032 "The operation is done, either cancelled or completed."
862 }, 1033 ],
863 "stateStartTime": {
864 "description": "Time when this state was entered.",
865 "type": "string"
866 }
867 },
868 "type": "object"
869 },
870 "ClusterMetrics": {
871 "description": "Contains cluster daemon metrics, such as HDFS and YA RN stats.",
872 "id": "ClusterMetrics",
873 "properties": {
874 "hdfsMetrics": {
875 "additionalProperties": {
876 "format": "int64",
877 "type": "string"
878 },
879 "description": "The HDFS metrics.",
880 "type": "object"
881 },
882 "yarnMetrics": {
883 "additionalProperties": {
884 "format": "int64",
885 "type": "string"
886 },
887 "description": "The YARN metrics.",
888 "type": "object"
889 }
890 },
891 "type": "object"
892 },
893 "Operation": {
894 "description": "This resource represents a long-running operation th at is the result of a network API call.",
895 "id": "Operation",
896 "properties": {
897 "name": {
898 "description": "The server-assigned name, which is only uniq ue within the same service that originally returns it. If you use the default HT TP mapping, the `name` should have the format of `operations/some/unique/name`." ,
899 "type": "string"
900 },
901 "metadata": {
902 "additionalProperties": {
903 "description": "Properties of the object. Contains field @type with type URL.",
904 "type": "any"
905 },
906 "description": "Service-specific metadata associated with th e 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.",
907 "type": "object"
908 },
909 "done": {
910 "description": "If the value is `false`, it means the operat ion is still in progress. If true, the operation is completed, and either `error ` or `response` is available.",
911 "type": "boolean"
912 },
913 "error": {
914 "$ref": "Status",
915 "description": "The error result of the operation in case of failure or cancellation."
916 },
917 "response": {
918 "additionalProperties": {
919 "description": "Properties of the object. Contains field @type with type URL.",
920 "type": "any"
921 },
922 "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete` , the response is `google.protobuf.Empty`. If the original method is standard `G et`/`Create`/`Update`, the response should be the resource. For other methods, t he response should have the type `XxxResponse`, where `Xxx` is the original meth od name. For example, if the original method name is `TakeSnapshot()`, the infer red response type is `TakeSnapshotResponse`.",
923 "type": "object"
924 }
925 },
926 "type": "object"
927 },
928 "Status": {
929 "description": "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). The error model is designe d to be: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. Th e error message should be a developer-facing English message that helps develope rs *understand* and *resolve* the error. If a localized user-facing error messag e is needed, put the localized message in the error details or localize it in th e client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.r pc` which can be used for common error conditions. # Language mapping The `Statu s` message is the logical representation of the error model, but it is not neces sarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. Fo r example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C. # Other uses The error model and the `Status` m essage can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments. Exampl e uses of this error model include: - Partial errors. If a service needs to retu rn partial errors to the client, it may embed the `Status` in the normal respons e to indicate the partial errors. - Workflow errors. A typical workflow has mult iple steps. Each step may have a `Status` message for error reporting purpose. - Batch operations. If a client uses batch request and batch response, the `Statu s` message should be used directly inside batch response, one for each error sub -response. - Asynchronous operations. If an API call embeds asynchronous operati on results in its response, the status of those operations should be represented directly using the `Status` message. - Logging. If some API errors are stored i n logs, the message `Status` could be used directly after any stripping needed f or security/privacy reasons.",
930 "id": "Status",
931 "properties": {
932 "code": {
933 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
934 "format": "int32",
935 "type": "integer"
936 },
937 "message": {
938 "description": "A developer-facing error message, which shou ld 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.",
939 "type": "string" 1034 "type": "string"
940 }, 1035 },
941 "details": { 1036 "details": {
942 "description": "A list of messages that carry the error deta ils. There will be a common set of message types for APIs to use.", 1037 "description": "A message containing any operation metadata details.",
943 "items": { 1038 "type": "string"
944 "additionalProperties": { 1039 },
945 "description": "Properties of the object. Contains f ield @type with type URL.", 1040 "clusterName": {
946 "type": "any" 1041 "description": "Name of the cluster for the operation.",
947 }, 1042 "type": "string"
948 "type": "object" 1043 },
949 }, 1044 "clusterUuid": {
950 "type": "array" 1045 "description": "Cluster UUId for the operation.",
951 } 1046 "type": "string"
952 }, 1047 },
953 "type": "object" 1048 "innerState": {
954 }, 1049 "description": "A message containing the detailed operation state.",
955 "ListClustersResponse": { 1050 "type": "string"
956 "description": "The list of all clusters in a project.", 1051 },
957 "id": "ListClustersResponse", 1052 "endTime": {
958 "properties": { 1053 "description": "The time that the operation completed.",
959 "clusters": { 1054 "format": "google-datetime",
960 "description": "[Output-only] The clusters in the project.", 1055 "type": "string"
961 "items": { 1056 },
962 "$ref": "Cluster" 1057 "startTime": {
963 }, 1058 "description": "The time that the operation was started by t he server.",
964 "type": "array" 1059 "format": "google-datetime",
965 }, 1060 "type": "string"
966 "nextPageToken": { 1061 },
967 "description": "The standard List next-page token.", 1062 "warnings": {
968 "type": "string" 1063 "description": "Output-only Errors encountered during operat ion execution.",
969 } 1064 "items": {
970 }, 1065 "type": "string"
971 "type": "object" 1066 },
972 }, 1067 "type": "array"
973 "DiagnoseClusterRequest": { 1068 },
974 "description": "A request to collect cluster diagnostic information. ", 1069 "insertTime": {
975 "id": "DiagnoseClusterRequest", 1070 "description": "The time that the operation was requested.",
976 "type": "object" 1071 "format": "google-datetime",
977 }, 1072 "type": "string"
978 "SubmitJobRequest": {
979 "description": "A request to submit a job.",
980 "id": "SubmitJobRequest",
981 "properties": {
982 "job": {
983 "$ref": "Job",
984 "description": "[Required] The job resource."
985 }
986 },
987 "type": "object"
988 },
989 "Job": {
990 "description": "A Cloud Dataproc job resource.",
991 "id": "Job",
992 "properties": {
993 "reference": {
994 "$ref": "JobReference",
995 "description": "[Optional] The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resourc e. If this property is not specified when a job is created, the server generates a job_id."
996 },
997 "placement": {
998 "$ref": "JobPlacement",
999 "description": "[Required] Job information, including how, w hen, and where to run the job."
1000 },
1001 "hadoopJob": {
1002 "$ref": "HadoopJob",
1003 "description": "Job is a Hadoop job."
1004 },
1005 "sparkJob": {
1006 "$ref": "SparkJob",
1007 "description": "Job is a Spark job."
1008 },
1009 "pysparkJob": {
1010 "$ref": "PySparkJob",
1011 "description": "Job is a Pyspark job."
1012 },
1013 "hiveJob": {
1014 "$ref": "HiveJob",
1015 "description": "Job is a Hive job."
1016 },
1017 "pigJob": {
1018 "$ref": "PigJob",
1019 "description": "Job is a Pig job."
1020 },
1021 "sparkSqlJob": {
1022 "$ref": "SparkSqlJob",
1023 "description": "Job is a SparkSql job."
1024 },
1025 "status": {
1026 "$ref": "JobStatus",
1027 "description": "[Output-only] The job status. Additional app lication-specific status information may be contained in the type_job and yarn_a pplications fields."
1028 }, 1073 },
1029 "statusHistory": { 1074 "statusHistory": {
1030 "description": "[Output-only] The previous job status.", 1075 "description": "Output-only Previous operation status.",
1031 "items": { 1076 "items": {
1032 "$ref": "JobStatus" 1077 "$ref": "OperationStatus"
1033 }, 1078 },
1034 "type": "array" 1079 "type": "array"
1035 }, 1080 }
1036 "yarnApplications": { 1081 },
1037 "description": "[Output-only] The collection of YARN applica tions spun up by this job.", 1082 "type": "object"
1038 "items": {
1039 "$ref": "YarnApplication"
1040 },
1041 "type": "array"
1042 },
1043 "submittedBy": {
1044 "description": "[Output-only] The email address of the user submitting the job. For jobs submitted on the cluster, the address is username@h ostname.",
1045 "type": "string"
1046 },
1047 "driverInputResourceUri": {
1048 "description": "[Output-only] A URI pointing to the location of the stdin of the job's driver program, only set if the job is interactive.",
1049 "type": "string"
1050 },
1051 "driverOutputResourceUri": {
1052 "description": "[Output-only] A URI pointing to the location of the stdout of the job's driver program.",
1053 "type": "string"
1054 },
1055 "driverControlFilesUri": {
1056 "description": "[Output-only] If present, the location of mi scellaneous control files which may be used as part of job setup and handling. I f not present, control files may be placed in the same location as `driver_outpu t_uri`.",
1057 "type": "string"
1058 },
1059 "interactive": {
1060 "description": "[Optional] If set to `true`, the driver's st din will be kept open and `driver_input_uri` will be set to provide a path at wh ich additional input can be sent to the driver.",
1061 "type": "boolean"
1062 },
1063 "labels": {
1064 "additionalProperties": {
1065 "type": "string"
1066 },
1067 "description": "[Optional] The labels to associate with this job. Label keys must be between 1 and 63 characters long, and must conform to t he following regular expression: \\p{Ll}\\p{Lo}{0,62} Label values must be betwe en 1 and 63 characters long, and must conform to the following regular expressio n: [\\p{Ll}\\p{Lo}\\p{N}_-]{0,63} No more than 64 labels can be associated with a given job.",
1068 "type": "object"
1069 }
1070 },
1071 "type": "object"
1072 },
1073 "JobReference": {
1074 "description": "Encapsulates the full scoping used to reference a jo b.",
1075 "id": "JobReference",
1076 "properties": {
1077 "projectId": {
1078 "description": "[Required] The ID of the Google Cloud Platfo rm project that the job belongs to.",
1079 "type": "string"
1080 },
1081 "jobId": {
1082 "description": "[Required] The job ID, which must be unique within the project. The job ID is generated by the server upon job submission or provided by the user as a means to perform retries without creating duplicate j obs. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_) , or hyphens (-). The maximum length is 512 characters.",
1083 "type": "string"
1084 }
1085 },
1086 "type": "object"
1087 }, 1083 },
1088 "JobPlacement": { 1084 "JobPlacement": {
1089 "description": "Cloud Dataproc job configuration.", 1085 "description": "Cloud Dataproc job configuration.",
1090 "id": "JobPlacement", 1086 "id": "JobPlacement",
1091 "properties": { 1087 "properties": {
1092 "clusterName": { 1088 "clusterName": {
1093 "description": "[Required] The name of the cluster where the job will be submitted.", 1089 "description": "Required The name of the cluster where the j ob will be submitted.",
1094 "type": "string" 1090 "type": "string"
1095 }, 1091 },
1096 "clusterUuid": { 1092 "clusterUuid": {
1097 "description": "[Output-only] A cluster UUID generated by th e Dataproc service when the job is submitted.", 1093 "description": "Output-only A cluster UUID generated by the Dataproc service when the job is submitted.",
1098 "type": "string" 1094 "type": "string"
1099 } 1095 }
1100 }, 1096 },
1101 "type": "object" 1097 "type": "object"
1102 }, 1098 },
1103 "HadoopJob": { 1099 "ClusterStatus": {
1104 "description": "A Cloud Dataproc job for running Hadoop MapReduce jo bs on YARN.", 1100 "description": "The status of a cluster and its instances.",
1105 "id": "HadoopJob", 1101 "id": "ClusterStatus",
1106 "properties": { 1102 "properties": {
1107 "mainJarFileUri": { 1103 "stateStartTime": {
1108 "description": "The Hadoop Compatible Filesystem (HCFS) URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics- binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount .jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'", 1104 "description": "Time when this state was entered.",
1109 "type": "string" 1105 "format": "google-datetime",
1110 }, 1106 "type": "string"
1111 "mainClass": { 1107 },
1112 "description": "The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in `jar _file_uris`.", 1108 "detail": {
1113 "type": "string" 1109 "description": "Optional details of cluster's state.",
1114 }, 1110 "type": "string"
1115 "args": { 1111 },
1116 "description": "[Optional] The arguments to pass to the driv er. 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 sub mission.", 1112 "state": {
1117 "items": { 1113 "description": "The cluster's state.",
1118 "type": "string" 1114 "enum": [
1119 }, 1115 "UNKNOWN",
1120 "type": "array" 1116 "CREATING",
1117 "RUNNING",
1118 "ERROR",
1119 "DELETING",
1120 "UPDATING"
1121 ],
1122 "enumDescriptions": [
1123 "The cluster state is unknown.",
1124 "The cluster is being created and set up. It is not read y for use.",
1125 "The cluster is currently running and healthy. It is rea dy for use.",
1126 "The cluster encountered an error. It is not ready for u se.",
1127 "The cluster is being deleted. It cannot be used.",
1128 "The cluster is being updated. It continues to accept an d process jobs."
1129 ],
1130 "type": "string"
1131 }
1132 },
1133 "type": "object"
1134 },
1135 "PigJob": {
1136 "description": "A Cloud Dataproc job for running Pig queries on YARN .",
1137 "id": "PigJob",
1138 "properties": {
1139 "continueOnFailure": {
1140 "description": "Optional Whether to continue executing queri es if a query fails. The default value is false. Setting to true can be useful w hen executing independent parallel queries.",
1141 "type": "boolean"
1142 },
1143 "queryList": {
1144 "$ref": "QueryList",
1145 "description": "A list of queries."
1146 },
1147 "queryFileUri": {
1148 "description": "The HCFS URI of the script that contains the Pig queries.",
1149 "type": "string"
1121 }, 1150 },
1122 "jarFileUris": { 1151 "jarFileUris": {
1123 "description": "[Optional] Jar file URIs to add to the CLASS PATHs of the Hadoop driver and tasks.", 1152 "description": "Optional HCFS URIs of jar files to add to th e CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig U DFs.",
1124 "items": { 1153 "items": {
1125 "type": "string" 1154 "type": "string"
1126 }, 1155 },
1127 "type": "array" 1156 "type": "array"
1128 }, 1157 },
1129 "fileUris": { 1158 "scriptVariables": {
1130 "description": "[Optional] HCFS URIs of files to be copied t o the working directory of Hadoop drivers and distributed tasks. Useful for naiv ely parallel tasks.", 1159 "additionalProperties": {
1131 "items": { 1160 "type": "string"
1132 "type": "string" 1161 },
1133 }, 1162 "description": "Optional Mapping of query variable names to values (equivalent to the Pig command: name=[value]).",
1134 "type": "array" 1163 "type": "object"
1135 }, 1164 },
1136 "archiveUris": { 1165 "loggingConfiguration": {
1137 "description": "[Optional] HCFS URIs of archives to be extra cted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.", 1166 "$ref": "LoggingConfiguration",
1138 "items": { 1167 "description": "Optional The runtime log configuration for j ob execution."
1139 "type": "string"
1140 },
1141 "type": "array"
1142 }, 1168 },
1143 "properties": { 1169 "properties": {
1144 "additionalProperties": { 1170 "additionalProperties": {
1145 "type": "string" 1171 "type": "string"
1146 }, 1172 },
1147 "description": "[Optional] A mapping of property names to va lues, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop /conf/*-site and classes in user code.", 1173 "description": "Optional A mapping of property names to valu es, used to configure Pig. Properties that conflict with values set by the Cloud 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.",
1148 "type": "object" 1174 "type": "object"
1149 }, 1175 }
1150 "loggingConfiguration": { 1176 },
1151 "$ref": "LoggingConfiguration", 1177 "type": "object"
1152 "description": "[Optional] The runtime log configuration for job execution." 1178 },
1153 } 1179 "ManagedGroupConfiguration": {
1154 }, 1180 "description": "Specifies the resources used to actively manage an i nstance group.",
1155 "type": "object" 1181 "id": "ManagedGroupConfiguration",
1156 }, 1182 "properties": {
1157 "LoggingConfiguration": { 1183 "instanceGroupManagerName": {
1158 "description": "The runtime logging configuration of the job.", 1184 "description": "Output-only The name of the Instance Group M anager for this group.",
1159 "id": "LoggingConfiguration", 1185 "type": "string"
1160 "properties": { 1186 },
1161 "driverLogLevels": { 1187 "instanceTemplateName": {
1188 "description": "Output-only The name of the Instance Templat e used for the Managed Instance Group.",
1189 "type": "string"
1190 }
1191 },
1192 "type": "object"
1193 },
1194 "ListClustersResponse": {
1195 "description": "The list of all clusters in a project.",
1196 "id": "ListClustersResponse",
1197 "properties": {
1198 "clusters": {
1199 "description": "Output-only The clusters in the project.",
1200 "items": {
1201 "$ref": "Cluster"
1202 },
1203 "type": "array"
1204 },
1205 "nextPageToken": {
1206 "description": "The standard List next-page token.",
1207 "type": "string"
1208 }
1209 },
1210 "type": "object"
1211 },
1212 "Job": {
1213 "description": "A Cloud Dataproc job resource.",
1214 "id": "Job",
1215 "properties": {
1216 "interactive": {
1217 "description": "Optional If set to true, the driver's stdin will be kept open and driver_input_uri will be set to provide a path at which ad ditional input can be sent to the driver.",
1218 "type": "boolean"
1219 },
1220 "driverInputResourceUri": {
1221 "description": "Output-only A URI pointing to the location o f the stdin of the job's driver program, only set if the job is interactive.",
1222 "type": "string"
1223 },
1224 "hadoopJob": {
1225 "$ref": "HadoopJob",
1226 "description": "Job is a Hadoop job."
1227 },
1228 "status": {
1229 "$ref": "JobStatus",
1230 "description": "Output-only The job status. Additional appli cation-specific status information may be contained in the <code>type_job</code> and <code>yarn_applications</code> fields."
1231 },
1232 "placement": {
1233 "$ref": "JobPlacement",
1234 "description": "Required Job information, including how, whe n, and where to run the job."
1235 },
1236 "driverControlFilesUri": {
1237 "description": "Output-only If present, the location of misc ellaneous 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_u ri.",
1238 "type": "string"
1239 },
1240 "submittedBy": {
1241 "description": "Output-only The email address of the user su bmitting the job. For jobs submitted on the cluster, the address is <code>userna me@hostname</code>.",
1242 "type": "string"
1243 },
1244 "scheduling": {
1245 "$ref": "JobScheduling",
1246 "description": "Optional Job scheduling configuration."
1247 },
1248 "pigJob": {
1249 "$ref": "PigJob",
1250 "description": "Job is a Pig job."
1251 },
1252 "hiveJob": {
1253 "$ref": "HiveJob",
1254 "description": "Job is a Hive job."
1255 },
1256 "labels": {
1162 "additionalProperties": { 1257 "additionalProperties": {
1163 "enum": [ 1258 "type": "string"
1164 "LEVEL_UNSPECIFIED", 1259 },
1165 "ALL", 1260 "description": "Optional The labels to associate with this j ob.Label keys must be between 1 and 63 characters long, and must conform to the following regular expression: \\p{Ll}\\p{Lo}{0,62}Label values must be between 1 and 63 characters long, and must conform to the following regular expression: \ \p{Ll}\\p{Lo}\\p{N}_-{0,63}No more than 64 labels can be associated with a given job.",
1166 "TRACE",
1167 "DEBUG",
1168 "INFO",
1169 "WARN",
1170 "ERROR",
1171 "FATAL",
1172 "OFF"
1173 ],
1174 "type": "string"
1175 },
1176 "description": "The per-package log levels for the driver. T his may include \"root\" package name to configure rootLogger. Examples: 'com.go ogle = FATAL', 'root = INFO', 'org.apache = DEBUG'",
1177 "type": "object" 1261 "type": "object"
1262 },
1263 "driverOutputResourceUri": {
1264 "description": "Output-only A URI pointing to the location o f the stdout of the job's driver program.",
1265 "type": "string"
1266 },
1267 "sparkSqlJob": {
1268 "$ref": "SparkSqlJob",
1269 "description": "Job is a SparkSql job."
1270 },
1271 "statusHistory": {
1272 "description": "Output-only The previous job status.",
1273 "items": {
1274 "$ref": "JobStatus"
1275 },
1276 "type": "array"
1277 },
1278 "sparkJob": {
1279 "$ref": "SparkJob",
1280 "description": "Job is a Spark job."
1281 },
1282 "yarnApplications": {
1283 "description": "Output-only The collection of YARN applicati ons spun up by this job.",
1284 "items": {
1285 "$ref": "YarnApplication"
1286 },
1287 "type": "array"
1288 },
1289 "pysparkJob": {
1290 "$ref": "PySparkJob",
1291 "description": "Job is a Pyspark job."
1292 },
1293 "reference": {
1294 "$ref": "JobReference",
1295 "description": "Optional The fully qualified reference to th e 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 <code>job_id</code>."
1178 } 1296 }
1179 }, 1297 },
1180 "type": "object" 1298 "type": "object"
1181 }, 1299 },
1182 "SparkJob": { 1300 "SparkJob": {
1183 "description": "A Cloud Dataproc job for running Spark applications on YARN.", 1301 "description": "A Cloud Dataproc job for running Spark applications on YARN.",
1184 "id": "SparkJob", 1302 "id": "SparkJob",
1185 "properties": { 1303 "properties": {
1304 "jarFileUris": {
1305 "description": "Optional HCFS URIs of jar files to add to th e CLASSPATHs of the Spark driver and tasks.",
1306 "items": {
1307 "type": "string"
1308 },
1309 "type": "array"
1310 },
1311 "loggingConfiguration": {
1312 "$ref": "LoggingConfiguration",
1313 "description": "Optional The runtime log configuration for j ob execution."
1314 },
1315 "properties": {
1316 "additionalProperties": {
1317 "type": "string"
1318 },
1319 "description": "Optional A mapping of property names to valu es, used to configure Spark. Properties that conflict with values set by the Clo ud Dataproc API may be overwritten. Can include properties set in /etc/spark/con f/spark-defaults.conf and classes in user code.",
1320 "type": "object"
1321 },
1322 "args": {
1323 "description": "Optional The arguments to pass to the driver . Do not include arguments, such as --conf, that can be set as job properties, s ince a collision may occur that causes an incorrect job submission.",
1324 "items": {
1325 "type": "string"
1326 },
1327 "type": "array"
1328 },
1329 "fileUris": {
1330 "description": "Optional HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.",
1331 "items": {
1332 "type": "string"
1333 },
1334 "type": "array"
1335 },
1336 "mainClass": {
1337 "description": "The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in j ar_file_uris.",
1338 "type": "string"
1339 },
1340 "archiveUris": {
1341 "description": "Optional HCFS URIs of archives to be extract ed in the working directory of Spark drivers and tasks. Supported file types: .j ar, .tar, .tar.gz, .tgz, and .zip.",
1342 "items": {
1343 "type": "string"
1344 },
1345 "type": "array"
1346 },
1186 "mainJarFileUri": { 1347 "mainJarFileUri": {
1187 "description": "The Hadoop Compatible Filesystem (HCFS) URI of the jar file that contains the main class.", 1348 "description": "The Hadoop Compatible Filesystem (HCFS) URI of the jar file that contains the main class.",
1188 "type": "string" 1349 "type": "string"
1189 }, 1350 }
1190 "mainClass": { 1351 },
1191 "description": "The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in ` jar_file_uris`.", 1352 "type": "object"
1192 "type": "string" 1353 },
1193 }, 1354 "DiskConfiguration": {
1194 "args": { 1355 "description": "Specifies the configuration of disk options for a gr oup of VM instances.",
1195 "description": "[Optional] The arguments to pass to the driv er. Do not include arguments, such as `--conf`, that can be set as job propertie s, since a collision may occur that causes an incorrect job submission.", 1356 "id": "DiskConfiguration",
1196 "items": { 1357 "properties": {
1197 "type": "string" 1358 "bootDiskSizeGb": {
1198 }, 1359 "description": "Optional Size in GB of the boot disk (defaul t is 500GB).",
1199 "type": "array" 1360 "format": "int32",
1200 }, 1361 "type": "integer"
1201 "jarFileUris": { 1362 },
1202 "description": "[Optional] HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.", 1363 "numLocalSsds": {
1203 "items": { 1364 "description": "Optional Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runti me logs and HDFS data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic configuration and i nstalled binaries.",
1204 "type": "string" 1365 "format": "int32",
1205 }, 1366 "type": "integer"
1206 "type": "array"
1207 },
1208 "fileUris": {
1209 "description": "[Optional] HCFS URIs of files to be copied t o the working directory of Spark drivers and distributed tasks. Useful for naive ly parallel tasks.",
1210 "items": {
1211 "type": "string"
1212 },
1213 "type": "array"
1214 },
1215 "archiveUris": {
1216 "description": "[Optional] HCFS URIs of archives to be extra cted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.",
1217 "items": {
1218 "type": "string"
1219 },
1220 "type": "array"
1221 },
1222 "properties": {
1223 "additionalProperties": {
1224 "type": "string"
1225 },
1226 "description": "[Optional] A mapping of property names to va lues, used to configure Spark. Properties that conflict with values set by the C loud Dataproc API may be overwritten. Can include properties set in /etc/spark/c onf/spark-defaults.conf and classes in user code.",
1227 "type": "object"
1228 },
1229 "loggingConfiguration": {
1230 "$ref": "LoggingConfiguration",
1231 "description": "[Optional] The runtime log configuration for job execution."
1232 }
1233 },
1234 "type": "object"
1235 },
1236 "PySparkJob": {
1237 "description": "A Cloud Dataproc job for running PySpark application s on YARN.",
1238 "id": "PySparkJob",
1239 "properties": {
1240 "mainPythonFileUri": {
1241 "description": "[Required] The Hadoop Compatible Filesystem (HCFS) URI of the main Python file to use as the driver. Must be a .py file.",
1242 "type": "string"
1243 },
1244 "args": {
1245 "description": "[Optional] The arguments to pass to the driv er. Do not include arguments, such as `--conf`, that can be set as job propertie s, since a collision may occur that causes an incorrect job submission.",
1246 "items": {
1247 "type": "string"
1248 },
1249 "type": "array"
1250 },
1251 "pythonFileUris": {
1252 "description": "[Optional] HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.",
1253 "items": {
1254 "type": "string"
1255 },
1256 "type": "array"
1257 },
1258 "jarFileUris": {
1259 "description": "[Optional] HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.",
1260 "items": {
1261 "type": "string"
1262 },
1263 "type": "array"
1264 },
1265 "fileUris": {
1266 "description": "[Optional] HCFS URIs of files to be copied t o the working directory of Python drivers and distributed tasks. Useful for naiv ely parallel tasks.",
1267 "items": {
1268 "type": "string"
1269 },
1270 "type": "array"
1271 },
1272 "archiveUris": {
1273 "description": "[Optional] HCFS URIs of archives to be extra cted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.",
1274 "items": {
1275 "type": "string"
1276 },
1277 "type": "array"
1278 },
1279 "properties": {
1280 "additionalProperties": {
1281 "type": "string"
1282 },
1283 "description": "[Optional] A mapping of property names to va lues, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark /conf/spark-defaults.conf and classes in user code.",
1284 "type": "object"
1285 },
1286 "loggingConfiguration": {
1287 "$ref": "LoggingConfiguration",
1288 "description": "[Optional] The runtime log configuration for job execution."
1289 }
1290 },
1291 "type": "object"
1292 },
1293 "HiveJob": {
1294 "description": "A Cloud Dataproc job for running Hive queries on YAR N.",
1295 "id": "HiveJob",
1296 "properties": {
1297 "queryFileUri": {
1298 "description": "The HCFS URI of the script that contains Hiv e queries.",
1299 "type": "string"
1300 },
1301 "queryList": {
1302 "$ref": "QueryList",
1303 "description": "A list of queries."
1304 },
1305 "continueOnFailure": {
1306 "description": "[Optional] Whether to continue executing que ries if a query fails. The default value is `false`. Setting to `true` can be us eful when executing independent parallel queries.",
1307 "type": "boolean"
1308 },
1309 "scriptVariables": {
1310 "additionalProperties": {
1311 "type": "string"
1312 },
1313 "description": "[Optional] Mapping of query variable names t o values (equivalent to the Hive command: `SET name=\"value\";`).",
1314 "type": "object"
1315 },
1316 "properties": {
1317 "additionalProperties": {
1318 "type": "string"
1319 },
1320 "description": "[Optional] A mapping of property names and v alues, used to configure Hive. Properties that conflict with values set by the C loud 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.",
1321 "type": "object"
1322 },
1323 "jarFileUris": {
1324 "description": "[Optional] HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hi ve SerDes and UDFs.",
1325 "items": {
1326 "type": "string"
1327 },
1328 "type": "array"
1329 }
1330 },
1331 "type": "object"
1332 },
1333 "QueryList": {
1334 "description": "A list of queries to run on a cluster.",
1335 "id": "QueryList",
1336 "properties": {
1337 "queries": {
1338 "description": "[Required] The queries to execute. You do no t 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 Clou d Dataproc API snippet that uses a QueryList to specify a HiveJob: \"hiveJob\": { \"queryList\": { \"queries\": [ \"query1\", \"query2\", \"query3;query4\", ] } }",
1339 "items": {
1340 "type": "string"
1341 },
1342 "type": "array"
1343 }
1344 },
1345 "type": "object"
1346 },
1347 "PigJob": {
1348 "description": "A Cloud Dataproc job for running Pig queries on YARN .",
1349 "id": "PigJob",
1350 "properties": {
1351 "queryFileUri": {
1352 "description": "The HCFS URI of the script that contains the Pig queries.",
1353 "type": "string"
1354 },
1355 "queryList": {
1356 "$ref": "QueryList",
1357 "description": "A list of queries."
1358 },
1359 "continueOnFailure": {
1360 "description": "[Optional] Whether to continue executing que ries if a query fails. The default value is `false`. Setting to `true` can be us eful when executing independent parallel queries.",
1361 "type": "boolean"
1362 },
1363 "scriptVariables": {
1364 "additionalProperties": {
1365 "type": "string"
1366 },
1367 "description": "[Optional] Mapping of query variable names t o values (equivalent to the Pig command: `name=[value]`).",
1368 "type": "object"
1369 },
1370 "properties": {
1371 "additionalProperties": {
1372 "type": "string"
1373 },
1374 "description": "[Optional] A mapping of property names to va lues, used to configure Pig. Properties that conflict with values set by the Clo ud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/co nf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.",
1375 "type": "object"
1376 },
1377 "jarFileUris": {
1378 "description": "[Optional] HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.",
1379 "items": {
1380 "type": "string"
1381 },
1382 "type": "array"
1383 },
1384 "loggingConfiguration": {
1385 "$ref": "LoggingConfiguration",
1386 "description": "[Optional] The runtime log configuration for job execution."
1387 }
1388 },
1389 "type": "object"
1390 },
1391 "SparkSqlJob": {
1392 "description": "A Cloud Dataproc job for running Spark SQL queries." ,
1393 "id": "SparkSqlJob",
1394 "properties": {
1395 "queryFileUri": {
1396 "description": "The HCFS URI of the script that contains SQL queries.",
1397 "type": "string"
1398 },
1399 "queryList": {
1400 "$ref": "QueryList",
1401 "description": "A list of queries."
1402 },
1403 "scriptVariables": {
1404 "additionalProperties": {
1405 "type": "string"
1406 },
1407 "description": "[Optional] Mapping of query variable names t o values (equivalent to the Spark SQL command: SET `name=\"value\";`).",
1408 "type": "object"
1409 },
1410 "properties": {
1411 "additionalProperties": {
1412 "type": "string"
1413 },
1414 "description": "[Optional] A mapping of property names to va lues, used to configure Spark SQL's SparkConf. Properties that conflict with val ues set by the Cloud Dataproc API may be overwritten.",
1415 "type": "object"
1416 },
1417 "jarFileUris": {
1418 "description": "[Optional] HCFS URIs of jar files to be adde d to the Spark CLASSPATH.",
1419 "items": {
1420 "type": "string"
1421 },
1422 "type": "array"
1423 },
1424 "loggingConfiguration": {
1425 "$ref": "LoggingConfiguration",
1426 "description": "[Optional] The runtime log configuration for job execution."
1427 } 1367 }
1428 }, 1368 },
1429 "type": "object" 1369 "type": "object"
1430 }, 1370 },
1431 "JobStatus": { 1371 "JobStatus": {
1432 "description": "Cloud Dataproc job status.", 1372 "description": "Cloud Dataproc job status.",
1433 "id": "JobStatus", 1373 "id": "JobStatus",
1434 "properties": { 1374 "properties": {
1435 "state": { 1375 "state": {
1436 "description": "[Required] A state message specifying the ov erall job state.", 1376 "description": "Required A state message specifying the over all job state.",
1437 "enum": [ 1377 "enum": [
1438 "STATE_UNSPECIFIED", 1378 "STATE_UNSPECIFIED",
1439 "PENDING", 1379 "PENDING",
1440 "SETUP_DONE", 1380 "SETUP_DONE",
1441 "RUNNING", 1381 "RUNNING",
1442 "CANCEL_PENDING", 1382 "CANCEL_PENDING",
1443 "CANCEL_STARTED", 1383 "CANCEL_STARTED",
1444 "CANCELLED", 1384 "CANCELLED",
1445 "DONE", 1385 "DONE",
1446 "ERROR" 1386 "ERROR",
1387 "ATTEMPT_FAILURE"
1388 ],
1389 "enumDescriptions": [
1390 "The job state is unknown.",
1391 "The job is pending; it has been submitted, but is not y et running.",
1392 "Job has been received by the service and completed init ial setup; it will shortly be submitted to the cluster.",
1393 "The job is running on the cluster.",
1394 "A CancelJob request has been received, but is pending." ,
1395 "Transient in-flight resources have been canceled, and t he request to cancel the running job has been issued to the cluster.",
1396 "The job cancelation was successful.",
1397 "The job has completed successfully.",
1398 "The job has completed, but encountered an error.",
1399 "Job attempt has failed. The detail field contains failu re details for this attempt.Applies to restartable jobs only."
1447 ], 1400 ],
1448 "type": "string" 1401 "type": "string"
1449 }, 1402 },
1450 "details": { 1403 "details": {
1451 "description": "[Optional] Job state details, such as an err or description if the state is ERROR.", 1404 "description": "Optional Job state details, such as an error description if the state is <code>ERROR</code>.",
1452 "type": "string" 1405 "type": "string"
1453 }, 1406 },
1454 "stateStartTime": { 1407 "stateStartTime": {
1455 "description": "[Output-only] The time when this state was e ntered.", 1408 "description": "Output-only The time when this state was ent ered.",
1456 "type": "string" 1409 "format": "google-datetime",
1410 "type": "string"
1411 }
1412 },
1413 "type": "object"
1414 },
1415 "ClusterOperationStatus": {
1416 "description": "The status of the operation.",
1417 "id": "ClusterOperationStatus",
1418 "properties": {
1419 "state": {
1420 "description": "Output-only A message containing the operati on state.",
1421 "enum": [
1422 "UNKNOWN",
1423 "PENDING",
1424 "RUNNING",
1425 "DONE"
1426 ],
1427 "enumDescriptions": [
1428 "Unused.",
1429 "The operation has been created.",
1430 "The operation is running.",
1431 "The operation is done; either cancelled or completed."
1432 ],
1433 "type": "string"
1434 },
1435 "details": {
1436 "description": "Output-onlyA message containing any operatio n metadata details.",
1437 "type": "string"
1438 },
1439 "innerState": {
1440 "description": "Output-only A message containing the detaile d operation state.",
1441 "type": "string"
1442 },
1443 "stateStartTime": {
1444 "description": "Output-only The time this state was entered. ",
1445 "format": "google-datetime",
1446 "type": "string"
1447 }
1448 },
1449 "type": "object"
1450 },
1451 "HadoopJob": {
1452 "description": "A Cloud Dataproc job for running Hadoop MapReduce jo bs on YARN.",
1453 "id": "HadoopJob",
1454 "properties": {
1455 "jarFileUris": {
1456 "description": "Optional Jar file URIs to add to the CLASSPA THs of the Hadoop driver and tasks.",
1457 "items": {
1458 "type": "string"
1459 },
1460 "type": "array"
1461 },
1462 "loggingConfiguration": {
1463 "$ref": "LoggingConfiguration",
1464 "description": "Optional The runtime log configuration for j ob execution."
1465 },
1466 "properties": {
1467 "additionalProperties": {
1468 "type": "string"
1469 },
1470 "description": "Optional A mapping of property names to valu es, used to configure Hadoop. Properties that conflict with values set by the Cl oud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/c onf/*-site and classes in user code.",
1471 "type": "object"
1472 },
1473 "args": {
1474 "description": "Optional The arguments to pass to the driver . Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as jo b properties, since a collision may occur that causes an incorrect job submissio n.",
1475 "items": {
1476 "type": "string"
1477 },
1478 "type": "array"
1479 },
1480 "fileUris": {
1481 "description": "Optional HCFS URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naivel y parallel tasks.",
1482 "items": {
1483 "type": "string"
1484 },
1485 "type": "array"
1486 },
1487 "mainClass": {
1488 "description": "The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in jar_ file_uris.",
1489 "type": "string"
1490 },
1491 "archiveUris": {
1492 "description": "Optional HCFS URIs of archives to be extract ed in the working directory of Hadoop drivers and tasks. Supported file types: . jar, .tar, .tar.gz, .tgz, or .zip.",
1493 "items": {
1494 "type": "string"
1495 },
1496 "type": "array"
1497 },
1498 "mainJarFileUri": {
1499 "description": "The Hadoop Compatible Filesystem (HCFS) URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics -binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcou nt.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'",
1500 "type": "string"
1501 }
1502 },
1503 "type": "object"
1504 },
1505 "QueryList": {
1506 "description": "A list of queries to run on a cluster.",
1507 "id": "QueryList",
1508 "properties": {
1509 "queries": {
1510 "description": "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:\n\"hiveJob\": { \n \"queryList\": {\n \"queries\": [\n \"query1\",\n \"query2\",\n \"query3;query4\",\n ]\n }\n}\n",
1511 "items": {
1512 "type": "string"
1513 },
1514 "type": "array"
1457 } 1515 }
1458 }, 1516 },
1459 "type": "object" 1517 "type": "object"
1460 }, 1518 },
1461 "YarnApplication": { 1519 "YarnApplication": {
1462 "description": "A YARN application created by a job. Application inf ormation is a subset of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationRepor tProto.", 1520 "description": "A YARN application created by a job. Application inf ormation is a subset of <code>org.apache.hadoop.yarn.proto.YarnProtos.Applicatio nReportProto</code>.",
1463 "id": "YarnApplication", 1521 "id": "YarnApplication",
1464 "properties": { 1522 "properties": {
1465 "name": { 1523 "progress": {
1466 "description": "[Required] The application name.", 1524 "description": "Required The numerical progress of the appli cation, from 1 to 100.",
1467 "type": "string" 1525 "format": "float",
1526 "type": "number"
1468 }, 1527 },
1469 "state": { 1528 "state": {
1470 "description": "[Required] The application state.", 1529 "description": "Required The application state.",
1471 "enum": [ 1530 "enum": [
1472 "STATE_UNSPECIFIED", 1531 "STATE_UNSPECIFIED",
1473 "NEW", 1532 "NEW",
1474 "NEW_SAVING", 1533 "NEW_SAVING",
1475 "SUBMITTED", 1534 "SUBMITTED",
1476 "ACCEPTED", 1535 "ACCEPTED",
1477 "RUNNING", 1536 "RUNNING",
1478 "FINISHED", 1537 "FINISHED",
1479 "FAILED", 1538 "FAILED",
1480 "KILLED" 1539 "KILLED"
1481 ], 1540 ],
1482 "type": "string" 1541 "enumDescriptions": [
1483 }, 1542 "Status is unspecified.",
1484 "progress": { 1543 "Status is NEW.",
1485 "description": "[Required] The numerical progress of the app lication, from 1 to 100.", 1544 "Status is NEW_SAVING.",
1486 "format": "float", 1545 "Status is SUBMITTED.",
1487 "type": "number" 1546 "Status is ACCEPTED.",
1547 "Status is RUNNING.",
1548 "Status is FINISHED.",
1549 "Status is FAILED.",
1550 "Status is KILLED."
1551 ],
1552 "type": "string"
1553 },
1554 "name": {
1555 "description": "Required The application name.",
1556 "type": "string"
1488 }, 1557 },
1489 "trackingUrl": { 1558 "trackingUrl": {
1490 "description": "[Optional] The HTTP URL of the ApplicationMa ster, HistoryServer, or TimelineServer that provides application-specific inform ation. The URL uses the internal hostname, and requires a proxy server for resol ution and, possibly, access.", 1559 "description": "Optional The HTTP URL of the ApplicationMast er, HistoryServer, or TimelineServer that provides application-specific informat ion. The URL uses the internal hostname, and requires a proxy server for resolut ion and, possibly, access.",
1491 "type": "string" 1560 "type": "string"
1492 } 1561 }
1493 }, 1562 },
1494 "type": "object" 1563 "type": "object"
1495 }, 1564 },
1496 "ListJobsResponse": { 1565 "DiagnoseClusterRequest": {
1497 "description": "A list of jobs in a project.", 1566 "description": "A request to collect cluster diagnostic information. ",
1498 "id": "ListJobsResponse", 1567 "id": "DiagnoseClusterRequest",
1499 "properties": { 1568 "properties": {},
1500 "jobs": { 1569 "type": "object"
1501 "description": "[Output-only] Jobs list.", 1570 },
1502 "items": { 1571 "ClusterOperationMetadata": {
1503 "$ref": "Job" 1572 "description": "Metadata describing the operation.",
1504 }, 1573 "id": "ClusterOperationMetadata",
1505 "type": "array" 1574 "properties": {
1506 }, 1575 "operationType": {
1507 "nextPageToken": { 1576 "description": "Output-only The operation type.",
1508 "description": "[Optional] This token is included in the res ponse if there are more results to fetch. To fetch additional results, provide t his value as the `page_token` in a subsequent ListJobsRequest.", 1577 "type": "string"
1509 "type": "string" 1578 },
1510 } 1579 "description": {
1511 }, 1580 "description": "Output-only Short description of operation." ,
1512 "type": "object" 1581 "type": "string"
1513 }, 1582 },
1514 "CancelJobRequest": { 1583 "warnings": {
1515 "description": "A request to cancel a job.", 1584 "description": "Output-only Errors encountered during operat ion execution.",
1516 "id": "CancelJobRequest", 1585 "items": {
1586 "type": "string"
1587 },
1588 "type": "array"
1589 },
1590 "labels": {
1591 "additionalProperties": {
1592 "type": "string"
1593 },
1594 "description": "Output-only Labels associated with the opera tion",
1595 "type": "object"
1596 },
1597 "status": {
1598 "$ref": "ClusterOperationStatus",
1599 "description": "Output-only Current operation status."
1600 },
1601 "statusHistory": {
1602 "description": "Output-only The previous operation status.",
1603 "items": {
1604 "$ref": "ClusterOperationStatus"
1605 },
1606 "type": "array"
1607 },
1608 "clusterUuid": {
1609 "description": "Output-only Cluster UUID for the operation." ,
1610 "type": "string"
1611 },
1612 "clusterName": {
1613 "description": "Output-only Name of the cluster for the oper ation.",
1614 "type": "string"
1615 }
1616 },
1517 "type": "object" 1617 "type": "object"
1518 }, 1618 },
1519 "Empty": { 1619 "Empty": {
1520 "description": "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: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON re presentation for `Empty` is empty JSON object `{}`.", 1620 "description": "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:\nservice Fo o {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe J SON representation for Empty is empty JSON object {}.",
1521 "id": "Empty", 1621 "id": "Empty",
1522 "type": "object" 1622 "properties": {},
1523 }, 1623 "type": "object"
1524 "ListOperationsResponse": { 1624 },
1525 "description": "The response message for Operations.ListOperations." , 1625 "HiveJob": {
1526 "id": "ListOperationsResponse", 1626 "description": "A Cloud Dataproc job for running Hive queries on YAR N.",
1527 "properties": { 1627 "id": "HiveJob",
1528 "operations": { 1628 "properties": {
1529 "description": "A list of operations that matches the specif ied filter in the request.", 1629 "properties": {
1530 "items": { 1630 "additionalProperties": {
1531 "$ref": "Operation" 1631 "type": "string"
1532 }, 1632 },
1533 "type": "array" 1633 "description": "Optional A mapping of property names and val ues, used to configure Hive. Properties that conflict with values set by the Clo ud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/co nf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.",
1534 }, 1634 "type": "object"
1535 "nextPageToken": { 1635 },
1536 "description": "The standard List next-page token.", 1636 "continueOnFailure": {
1537 "type": "string" 1637 "description": "Optional Whether to continue executing queri es if a query fails. The default value is false. Setting to true can be useful w hen executing independent parallel queries.",
1538 } 1638 "type": "boolean"
1539 }, 1639 },
1540 "type": "object" 1640 "queryFileUri": {
1541 }, 1641 "description": "The HCFS URI of the script that contains Hiv e queries.",
1542 "CancelOperationRequest": { 1642 "type": "string"
1543 "description": "The request message for Operations.CancelOperation." , 1643 },
1544 "id": "CancelOperationRequest", 1644 "queryList": {
1645 "$ref": "QueryList",
1646 "description": "A list of queries."
1647 },
1648 "jarFileUris": {
1649 "description": "Optional HCFS URIs of jar files to add to th e CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.",
1650 "items": {
1651 "type": "string"
1652 },
1653 "type": "array"
1654 },
1655 "scriptVariables": {
1656 "additionalProperties": {
1657 "type": "string"
1658 },
1659 "description": "Optional Mapping of query variable names to values (equivalent to the Hive command: SET name=\"value\";).",
1660 "type": "object"
1661 }
1662 },
1545 "type": "object" 1663 "type": "object"
1546 }, 1664 },
1547 "DiagnoseClusterResults": { 1665 "DiagnoseClusterResults": {
1548 "description": "The location of diagnostic output.", 1666 "description": "The location of diagnostic output.",
1549 "id": "DiagnoseClusterResults", 1667 "id": "DiagnoseClusterResults",
1550 "properties": { 1668 "properties": {
1551 "outputUri": { 1669 "outputUri": {
1552 "description": "[Output-only] The Google Cloud Storage URI o f the diagnostic output. The output report is a plain text file with a summary o f collected diagnostics.", 1670 "description": "Output-only The Google Cloud Storage URI of the diagnostic output. The output report is a plain text file with a summary of collected diagnostics.",
1553 "type": "string" 1671 "type": "string"
1554 } 1672 }
1555 }, 1673 },
1556 "type": "object" 1674 "type": "object"
1557 }, 1675 },
1558 "ClusterOperationMetadata": { 1676 "SoftwareConfiguration": {
1559 "description": "Metadata describing the operation.", 1677 "description": "Specifies the selection and configuration of softwar e inside the cluster.",
1560 "id": "ClusterOperationMetadata", 1678 "id": "SoftwareConfiguration",
1561 "properties": { 1679 "properties": {
1562 "clusterName": { 1680 "imageVersion": {
1563 "description": "[Output-only] Name of the cluster for the op eration.", 1681 "description": "Optional The version of software inside the cluster. It must match the regular expression [0-9]+\\.[0-9]+. If unspecified, i t defaults to the latest version (see Cloud Dataproc Versioning).",
1564 "type": "string" 1682 "type": "string"
1565 }, 1683 },
1566 "clusterUuid": { 1684 "properties": {
1567 "description": "[Output-only] Cluster UUID for the operation .", 1685 "additionalProperties": {
1568 "type": "string" 1686 "type": "string"
1569 }, 1687 },
1570 "status": { 1688 "description": "Optional The properties to set on daemon con figuration files.Property keys are specified in \"prefix:property\" format, such as \"core:fs.defaultFS\". The following are supported prefixes and their mappin gs: core - core-site.xml hdfs - hdfs-site.xml mapred - mapred-site.xml yarn - yarn-site.xml hive - hive-site.xml pig - pig.properties spark - spark-defau lts.conf",
1571 "$ref": "ClusterOperationStatus", 1689 "type": "object"
1572 "description": "[Output-only] Current operation status." 1690 }
1573 }, 1691 },
1574 "statusHistory": { 1692 "type": "object"
1575 "description": "[Output-only] The previous operation status. ", 1693 },
1576 "items": { 1694 "PySparkJob": {
1577 "$ref": "ClusterOperationStatus" 1695 "description": "A Cloud Dataproc job for running PySpark application s on YARN.",
1578 }, 1696 "id": "PySparkJob",
1579 "type": "array" 1697 "properties": {
1580 }, 1698 "fileUris": {
1581 "operationType": { 1699 "description": "Optional HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naivel y parallel tasks.",
1582 "description": "[Output-only] The operation type.", 1700 "items": {
1583 "type": "string" 1701 "type": "string"
1584 }, 1702 },
1585 "description": { 1703 "type": "array"
1586 "description": "[Output-only] Short description of operation .", 1704 },
1587 "type": "string" 1705 "pythonFileUris": {
1588 }, 1706 "description": "Optional HCFS file URIs of Python files to p ass to the PySpark framework. Supported file types: .py, .egg, and .zip.",
1589 "labels": { 1707 "items": {
1590 "additionalProperties": { 1708 "type": "string"
1591 "type": "string" 1709 },
1592 }, 1710 "type": "array"
1593 "description": "[Output-only] labels associated with the ope ration", 1711 },
1594 "type": "object" 1712 "mainPythonFileUri": {
1595 } 1713 "description": "Required The Hadoop Compatible Filesystem (H CFS) URI of the main Python file to use as the driver. Must be a .py file.",
1596 }, 1714 "type": "string"
1597 "type": "object" 1715 },
1598 }, 1716 "archiveUris": {
1599 "ClusterOperationStatus": { 1717 "description": "Optional HCFS URIs of archives to be extract ed in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.",
1600 "description": "The status of the operation.", 1718 "items": {
1601 "id": "ClusterOperationStatus", 1719 "type": "string"
1602 "properties": { 1720 },
1603 "state": { 1721 "type": "array"
1604 "description": "[Output-only] A message containing the opera tion state.", 1722 },
1605 "enum": [ 1723 "jarFileUris": {
1606 "UNKNOWN", 1724 "description": "Optional HCFS URIs of jar files to add to th e CLASSPATHs of the Python driver and tasks.",
1607 "PENDING", 1725 "items": {
1608 "RUNNING", 1726 "type": "string"
1609 "DONE" 1727 },
1610 ], 1728 "type": "array"
1611 "type": "string" 1729 },
1612 }, 1730 "loggingConfiguration": {
1613 "innerState": { 1731 "$ref": "LoggingConfiguration",
1614 "description": "[Output-only] A message containing the detai led operation state.", 1732 "description": "Optional The runtime log configuration for j ob execution."
1615 "type": "string" 1733 },
1616 }, 1734 "properties": {
1617 "details": { 1735 "additionalProperties": {
1618 "description": "[Output-only]A message containing any operat ion metadata details.", 1736 "type": "string"
1619 "type": "string" 1737 },
1620 }, 1738 "description": "Optional A mapping of property names to valu es, used to configure PySpark. Properties that conflict with values set by the C loud Dataproc API may be overwritten. Can include properties set in /etc/spark/c onf/spark-defaults.conf and classes in user code.",
1621 "stateStartTime": { 1739 "type": "object"
1622 "description": "[Output-only] The time this state was entere d.", 1740 },
1623 "type": "string" 1741 "args": {
1624 } 1742 "description": "Optional The arguments to pass to the driver . Do not include arguments, such as --conf, that can be set as job properties, s ince a collision may occur that causes an incorrect job submission.",
1625 }, 1743 "items": {
1626 "type": "object" 1744 "type": "string"
1627 }, 1745 },
1628 "DiagnoseClusterOutputLocation": { 1746 "type": "array"
1629 "description": "The location where output from diagnostic command ca n be found.", 1747 }
1630 "id": "DiagnoseClusterOutputLocation", 1748 },
1631 "properties": { 1749 "type": "object"
1632 "outputUri": { 1750 },
1633 "description": "[Output-only] The Google Cloud Storage URI o f the diagnostic output. This will be a plain text file with summary of collecte d diagnostics.", 1751 "ClusterMetrics": {
1634 "type": "string" 1752 "description": "Contains cluster daemon metrics, such as HDFS and YA RN stats.",
1635 } 1753 "id": "ClusterMetrics",
1636 }, 1754 "properties": {
1637 "type": "object" 1755 "hdfsMetrics": {
1638 }, 1756 "additionalProperties": {
1639 "OperationMetadata": { 1757 "format": "int64",
1640 "description": "Metadata describing the operation.", 1758 "type": "string"
1641 "id": "OperationMetadata", 1759 },
1642 "properties": { 1760 "description": "The HDFS metrics.",
1643 "state": { 1761 "type": "object"
1644 "description": "A message containing the operation state.", 1762 },
1645 "enum": [ 1763 "yarnMetrics": {
1646 "UNKNOWN", 1764 "additionalProperties": {
1647 "PENDING", 1765 "format": "int64",
1648 "RUNNING", 1766 "type": "string"
1649 "DONE" 1767 },
1650 ], 1768 "description": "The YARN metrics.",
1651 "type": "string" 1769 "type": "object"
1652 }, 1770 }
1653 "innerState": { 1771 },
1654 "description": "A message containing the detailed operation state.", 1772 "type": "object"
1655 "type": "string" 1773 },
1656 }, 1774 "ClusterConfiguration": {
1657 "details": { 1775 "description": "The cluster configuration.",
1658 "description": "A message containing any operation metadata details.", 1776 "id": "ClusterConfiguration",
1659 "type": "string" 1777 "properties": {
1660 }, 1778 "secondaryWorkerConfiguration": {
1661 "insertTime": { 1779 "$ref": "InstanceGroupConfiguration",
1662 "description": "The time that the operation was requested.", 1780 "description": "Optional The Google Compute Engine configura tion settings for additional worker instances in a cluster."
1663 "type": "string" 1781 },
1664 }, 1782 "initializationActions": {
1665 "startTime": { 1783 "description": "Optional Commands to execute on each node af ter configuration is completed. By default, executables are run on master and al l worker nodes. You can test a node's <code>role</code> metadata to run an execu table on a master or worker node, as shown below:\nROLE=$(/usr/share/google/get_ metadata_value attributes/role)\nif [[ \"${ROLE}\" == 'Master' ]]; then\n ... m aster specific actions ...\nelse\n ... worker specific actions ...\nfi\n",
1666 "description": "The time that the operation was started by t he server.", 1784 "items": {
1667 "type": "string" 1785 "$ref": "NodeInitializationAction"
1668 }, 1786 },
1669 "endTime": { 1787 "type": "array"
1670 "description": "The time that the operation completed.", 1788 },
1671 "type": "string" 1789 "workerConfiguration": {
1672 }, 1790 "$ref": "InstanceGroupConfiguration",
1673 "clusterName": { 1791 "description": "Optional The Google Compute Engine configura tion settings for worker instances in a cluster."
1674 "description": "Name of the cluster for the operation.", 1792 },
1675 "type": "string" 1793 "softwareConfiguration": {
1676 }, 1794 "$ref": "SoftwareConfiguration",
1677 "clusterUuid": { 1795 "description": "Optional The configuration settings for soft ware inside the cluster."
1678 "description": "Cluster UUId for the operation.", 1796 },
1679 "type": "string" 1797 "gceClusterConfiguration": {
1680 }, 1798 "$ref": "GceClusterConfiguration",
1681 "status": { 1799 "description": "Required The shared Google Compute Engine co nfiguration settings for all instances in a cluster."
1682 "$ref": "OperationStatus", 1800 },
1683 "description": "[Output-only] Current operation status." 1801 "configurationBucket": {
1684 }, 1802 "description": "Optional A Google Cloud Storage staging buck et used for sharing generated SSH keys and configuration. If you do not specify a staging bucket, Cloud Dataproc will determine an appropriate Cloud Storage loc ation (US, ASIA, or EU) for your cluster's staging bucket according to the Googl e Compute Engine zone where your cluster is deployed, and then it will create an d manage this project-level, per-location bucket for you.",
1685 "statusHistory": { 1803 "type": "string"
1686 "description": "[Output-only] Previous operation status.", 1804 },
1687 "items": { 1805 "masterConfiguration": {
1688 "$ref": "OperationStatus" 1806 "$ref": "InstanceGroupConfiguration",
1689 }, 1807 "description": "Optional The Google Compute Engine configura tion settings for the master instance in a cluster."
1690 "type": "array" 1808 }
1691 }, 1809 },
1692 "operationType": { 1810 "type": "object"
1693 "description": "[Output-only] The operation type.", 1811 },
1694 "type": "string" 1812 "LoggingConfiguration": {
1695 }, 1813 "description": "The runtime logging configuration of the job.",
1696 "description": { 1814 "id": "LoggingConfiguration",
1697 "description": "[Output-only] Short description of operation .", 1815 "properties": {
1698 "type": "string" 1816 "driverLogLevels": {
1699 } 1817 "additionalProperties": {
1700 }, 1818 "enum": [
1701 "type": "object" 1819 "LEVEL_UNSPECIFIED",
1702 }, 1820 "ALL",
1703 "OperationStatus": { 1821 "TRACE",
1704 "description": "The status of the operation.", 1822 "DEBUG",
1705 "id": "OperationStatus", 1823 "INFO",
1706 "properties": { 1824 "WARN",
1707 "state": { 1825 "ERROR",
1708 "description": "A message containing the operation state.", 1826 "FATAL",
1709 "enum": [ 1827 "OFF"
1710 "UNKNOWN", 1828 ],
1711 "PENDING", 1829 "type": "string"
1712 "RUNNING", 1830 },
1713 "DONE" 1831 "description": "The per-package log levels for the driver. T his may include \"root\" package name to configure rootLogger. Examples: 'com.g oogle = FATAL', 'root = INFO', 'org.apache = DEBUG'",
1714 ], 1832 "type": "object"
1715 "type": "string" 1833 }
1716 }, 1834 },
1717 "innerState": { 1835 "type": "object"
1718 "description": "A message containing the detailed operation state.", 1836 },
1719 "type": "string" 1837 "InstanceGroupConfiguration": {
1720 }, 1838 "description": "The configuration settings for Google Compute Engine resources in an instance group, such as a master or worker group.",
1721 "details": { 1839 "id": "InstanceGroupConfiguration",
1722 "description": "A message containing any operation metadata details.", 1840 "properties": {
1723 "type": "string" 1841 "diskConfiguration": {
1724 }, 1842 "$ref": "DiskConfiguration",
1725 "stateStartTime": { 1843 "description": "Disk option configuration settings."
1726 "description": "The time this state was entered.", 1844 },
1727 "type": "string" 1845 "isPreemptible": {
1728 } 1846 "description": "Specifies that this instance group contains Preemptible Instances.",
1729 }, 1847 "type": "boolean"
1730 "type": "object" 1848 },
1849 "imageUri": {
1850 "description": "Output-only The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfiguration.image_v ersion.",
1851 "type": "string"
1852 },
1853 "machineTypeUri": {
1854 "description": "The Google Compute Engine machine type used for cluster instances. Example: https://www.googleapis.com/compute/v1/projects/[ project_id]/zones/us-east1-a/machineTypes/n1-standard-2.",
1855 "type": "string"
1856 },
1857 "managedGroupConfiguration": {
1858 "$ref": "ManagedGroupConfiguration",
1859 "description": "Output-only The configuration for Google Com pute Engine Instance Group Manager that manages this group. This is only used fo r preemptible instance groups."
1860 },
1861 "instanceNames": {
1862 "description": "The list of instance names. Dataproc derives the names from cluster_name, num_instances, and the instance group if not set b y user (recommended practice is to let Dataproc derive the name).",
1863 "items": {
1864 "type": "string"
1865 },
1866 "type": "array"
1867 },
1868 "numInstances": {
1869 "description": "The number of VM instances in the instance g roup. For master instance groups, must be set to 1.",
1870 "format": "int32",
1871 "type": "integer"
1872 }
1873 },
1874 "type": "object"
1731 } 1875 }
1732 }, 1876 },
1733 "servicePath": "", 1877 "servicePath": "",
1734 "title": "Google Cloud Dataproc API", 1878 "title": "Google Cloud Dataproc API",
1735 "version": "v1beta1" 1879 "version": "v1beta1"
1736 } 1880 }
OLDNEW
« no previous file with comments | « discovery/googleapis_beta/dataflow__v1b3.json ('k') | discovery/googleapis_beta/datastore__v1beta3.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698