OLD | NEW |
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": "Manages Hadoop-based clusters and jobs on Google Cloud Platf
orm.", | 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 "icons": { | 17 "icons": { |
18 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 18 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
19 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 19 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
20 }, | 20 }, |
21 "id": "dataproc:v1beta1", | 21 "id": "dataproc:v1beta1", |
22 "kind": "discovery#restDescription", | 22 "kind": "discovery#restDescription", |
23 "name": "dataproc", | 23 "name": "dataproc", |
24 "ownerDomain": "google.com", | 24 "ownerDomain": "google.com", |
25 "ownerName": "Google", | 25 "ownerName": "Google", |
26 "parameters": { | 26 "parameters": { |
27 "access_token": { | |
28 "description": "OAuth access token.", | |
29 "location": "query", | |
30 "type": "string" | |
31 }, | |
32 "key": { | |
33 "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.", | |
34 "location": "query", | |
35 "type": "string" | |
36 }, | |
37 "quotaUser": { | 27 "quotaUser": { |
38 "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.", | 28 "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.", |
39 "location": "query", | 29 "location": "query", |
40 "type": "string" | 30 "type": "string" |
41 }, | 31 }, |
42 "pp": { | 32 "pp": { |
43 "default": "true", | 33 "default": "true", |
44 "description": "Pretty-print response.", | 34 "description": "Pretty-print response.", |
45 "location": "query", | 35 "location": "query", |
46 "type": "boolean" | 36 "type": "boolean" |
47 }, | 37 }, |
| 38 "oauth_token": { |
| 39 "description": "OAuth 2.0 token for the current user.", |
| 40 "location": "query", |
| 41 "type": "string" |
| 42 }, |
48 "bearer_token": { | 43 "bearer_token": { |
49 "description": "OAuth bearer token.", | 44 "description": "OAuth bearer token.", |
50 "location": "query", | 45 "location": "query", |
51 "type": "string" | 46 "type": "string" |
52 }, | 47 }, |
53 "oauth_token": { | |
54 "description": "OAuth 2.0 token for the current user.", | |
55 "location": "query", | |
56 "type": "string" | |
57 }, | |
58 "upload_protocol": { | 48 "upload_protocol": { |
59 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 49 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
60 "location": "query", | 50 "location": "query", |
61 "type": "string" | 51 "type": "string" |
62 }, | 52 }, |
63 "prettyPrint": { | 53 "prettyPrint": { |
64 "default": "true", | 54 "default": "true", |
65 "description": "Returns response with indentations and line breaks."
, | 55 "description": "Returns response with indentations and line breaks."
, |
66 "location": "query", | 56 "location": "query", |
67 "type": "boolean" | 57 "type": "boolean" |
68 }, | 58 }, |
| 59 "uploadType": { |
| 60 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 61 "location": "query", |
| 62 "type": "string" |
| 63 }, |
69 "fields": { | 64 "fields": { |
70 "description": "Selector specifying which fields to include in a par
tial response.", | 65 "description": "Selector specifying which fields to include in a par
tial response.", |
71 "location": "query", | 66 "location": "query", |
72 "type": "string" | 67 "type": "string" |
73 }, | 68 }, |
74 "uploadType": { | |
75 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | |
76 "location": "query", | |
77 "type": "string" | |
78 }, | |
79 "callback": { | |
80 "description": "JSONP", | |
81 "location": "query", | |
82 "type": "string" | |
83 }, | |
84 "$.xgafv": { | 69 "$.xgafv": { |
85 "description": "V1 error format.", | 70 "description": "V1 error format.", |
86 "enum": [ | 71 "enum": [ |
87 "1", | 72 "1", |
88 "2" | 73 "2" |
89 ], | 74 ], |
90 "enumDescriptions": [ | 75 "enumDescriptions": [ |
91 "v1 error format", | 76 "v1 error format", |
92 "v2 error format" | 77 "v2 error format" |
93 ], | 78 ], |
94 "location": "query", | 79 "location": "query", |
95 "type": "string" | 80 "type": "string" |
96 }, | 81 }, |
| 82 "callback": { |
| 83 "description": "JSONP", |
| 84 "location": "query", |
| 85 "type": "string" |
| 86 }, |
97 "alt": { | 87 "alt": { |
98 "default": "json", | 88 "default": "json", |
99 "description": "Data format for response.", | 89 "description": "Data format for response.", |
100 "enum": [ | 90 "enum": [ |
101 "json", | 91 "json", |
102 "media", | 92 "media", |
103 "proto" | 93 "proto" |
104 ], | 94 ], |
105 "enumDescriptions": [ | 95 "enumDescriptions": [ |
106 "Responses with Content-Type of application/json", | 96 "Responses with Content-Type of application/json", |
107 "Media download with context-dependent Content-Type", | 97 "Media download with context-dependent Content-Type", |
108 "Responses with Content-Type of application/x-protobuf" | 98 "Responses with Content-Type of application/x-protobuf" |
109 ], | 99 ], |
110 "location": "query", | 100 "location": "query", |
111 "type": "string" | 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 "access_token": { |
| 109 "description": "OAuth access token.", |
| 110 "location": "query", |
| 111 "type": "string" |
112 } | 112 } |
113 }, | 113 }, |
114 "protocol": "rest", | 114 "protocol": "rest", |
115 "resources": { | 115 "resources": { |
116 "operations": { | 116 "operations": { |
117 "methods": { | 117 "methods": { |
118 "cancel": { | 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.", | 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", | 120 "httpMethod": "POST", |
121 "id": "dataproc.operations.cancel", | 121 "id": "dataproc.operations.cancel", |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 ] | 191 ] |
192 }, | 192 }, |
193 "list": { | 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.", | 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", | 195 "httpMethod": "GET", |
196 "id": "dataproc.operations.list", | 196 "id": "dataproc.operations.list", |
197 "parameterOrder": [ | 197 "parameterOrder": [ |
198 "name" | 198 "name" |
199 ], | 199 ], |
200 "parameters": { | 200 "parameters": { |
| 201 "filter": { |
| 202 "description": "The standard list filter.", |
| 203 "location": "query", |
| 204 "type": "string" |
| 205 }, |
201 "name": { | 206 "name": { |
202 "description": "The name of the operation collection
.", | 207 "description": "The name of the operation collection
.", |
203 "location": "path", | 208 "location": "path", |
204 "pattern": "^operations$", | 209 "pattern": "^operations$", |
205 "required": true, | 210 "required": true, |
206 "type": "string" | 211 "type": "string" |
207 }, | 212 }, |
208 "pageToken": { | 213 "pageToken": { |
209 "description": "The standard list page token.", | 214 "description": "The standard list page token.", |
210 "location": "query", | 215 "location": "query", |
211 "type": "string" | 216 "type": "string" |
212 }, | 217 }, |
213 "pageSize": { | 218 "pageSize": { |
214 "description": "The standard list page size.", | 219 "description": "The standard list page size.", |
215 "format": "int32", | 220 "format": "int32", |
216 "location": "query", | 221 "location": "query", |
217 "type": "integer" | 222 "type": "integer" |
218 }, | |
219 "filter": { | |
220 "description": "The standard list filter.", | |
221 "location": "query", | |
222 "type": "string" | |
223 } | 223 } |
224 }, | 224 }, |
225 "path": "v1beta1/{+name}", | 225 "path": "v1beta1/{+name}", |
226 "response": { | 226 "response": { |
227 "$ref": "ListOperationsResponse" | 227 "$ref": "ListOperationsResponse" |
228 }, | 228 }, |
229 "scopes": [ | 229 "scopes": [ |
230 "https://www.googleapis.com/auth/cloud-platform" | 230 "https://www.googleapis.com/auth/cloud-platform" |
231 ] | 231 ] |
232 } | 232 } |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 ] | 300 ] |
301 }, | 301 }, |
302 "list": { | 302 "list": { |
303 "description": "Lists all clusters in a project.", | 303 "description": "Lists all clusters in a project.", |
304 "httpMethod": "GET", | 304 "httpMethod": "GET", |
305 "id": "dataproc.projects.clusters.list", | 305 "id": "dataproc.projects.clusters.list", |
306 "parameterOrder": [ | 306 "parameterOrder": [ |
307 "projectId" | 307 "projectId" |
308 ], | 308 ], |
309 "parameters": { | 309 "parameters": { |
| 310 "filter": { |
| 311 "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)", |
| 312 "location": "query", |
| 313 "type": "string" |
| 314 }, |
310 "pageToken": { | 315 "pageToken": { |
311 "description": "The standard List page token
.", | 316 "description": "The standard List page token
.", |
312 "location": "query", | 317 "location": "query", |
313 "type": "string" | 318 "type": "string" |
314 }, | 319 }, |
315 "pageSize": { | 320 "pageSize": { |
316 "description": "The standard List page size.
", | 321 "description": "The standard List page size.
", |
317 "format": "int32", | 322 "format": "int32", |
318 "location": "query", | 323 "location": "query", |
319 "type": "integer" | 324 "type": "integer" |
320 }, | 325 }, |
321 "projectId": { | 326 "projectId": { |
322 "description": "Required The ID of the Googl
e Cloud Platform project that the cluster belongs to.", | 327 "description": "Required The ID of the Googl
e Cloud Platform project that the cluster belongs to.", |
323 "location": "path", | 328 "location": "path", |
324 "required": true, | 329 "required": true, |
325 "type": "string" | 330 "type": "string" |
326 }, | |
327 "filter": { | |
328 "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)", | |
329 "location": "query", | |
330 "type": "string" | |
331 } | 331 } |
332 }, | 332 }, |
333 "path": "v1beta1/projects/{projectId}/clusters", | 333 "path": "v1beta1/projects/{projectId}/clusters", |
334 "response": { | 334 "response": { |
335 "$ref": "ListClustersResponse" | 335 "$ref": "ListClustersResponse" |
336 }, | 336 }, |
337 "scopes": [ | 337 "scopes": [ |
338 "https://www.googleapis.com/auth/cloud-platform" | 338 "https://www.googleapis.com/auth/cloud-platform" |
339 ] | 339 ] |
340 }, | 340 }, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 "$ref": "Cluster" | 430 "$ref": "Cluster" |
431 }, | 431 }, |
432 "scopes": [ | 432 "scopes": [ |
433 "https://www.googleapis.com/auth/cloud-platform" | 433 "https://www.googleapis.com/auth/cloud-platform" |
434 ] | 434 ] |
435 } | 435 } |
436 } | 436 } |
437 }, | 437 }, |
438 "jobs": { | 438 "jobs": { |
439 "methods": { | 439 "methods": { |
440 "cancel": { | 440 "submit": { |
441 "description": "Starts a job cancellation request. T
o access the job resource after cancellation, call jobs.list or jobs.get.", | 441 "description": "Submits a job to a cluster.", |
442 "httpMethod": "POST", | 442 "httpMethod": "POST", |
443 "id": "dataproc.projects.jobs.cancel", | 443 "id": "dataproc.projects.jobs.submit", |
444 "parameterOrder": [ | 444 "parameterOrder": [ |
445 "projectId", | 445 "projectId" |
446 "jobId" | |
447 ], | 446 ], |
448 "parameters": { | 447 "parameters": { |
449 "projectId": { | 448 "projectId": { |
450 "description": "Required The ID of the Googl
e Cloud Platform project that the job belongs to.", | 449 "description": "Required The ID of the Googl
e Cloud Platform project that the job belongs to.", |
451 "location": "path", | 450 "location": "path", |
452 "required": true, | 451 "required": true, |
453 "type": "string" | 452 "type": "string" |
454 }, | |
455 "jobId": { | |
456 "description": "Required The job ID.", | |
457 "location": "path", | |
458 "required": true, | |
459 "type": "string" | |
460 } | 453 } |
461 }, | 454 }, |
462 "path": "v1beta1/projects/{projectId}/jobs/{jobId}:c
ancel", | 455 "path": "v1beta1/projects/{projectId}/jobs:submit", |
463 "request": { | 456 "request": { |
464 "$ref": "CancelJobRequest" | 457 "$ref": "SubmitJobRequest" |
465 }, | 458 }, |
466 "response": { | 459 "response": { |
467 "$ref": "Job" | 460 "$ref": "Job" |
468 }, | 461 }, |
469 "scopes": [ | 462 "scopes": [ |
470 "https://www.googleapis.com/auth/cloud-platform" | 463 "https://www.googleapis.com/auth/cloud-platform" |
471 ] | 464 ] |
472 }, | 465 }, |
473 "patch": { | 466 "delete": { |
474 "description": "Updates a job in a project.", | 467 "description": "Deletes the job from the project. If
the job is active, the delete fails, and the response returns FAILED_PRECONDITI
ON.", |
475 "httpMethod": "PATCH", | 468 "httpMethod": "DELETE", |
476 "id": "dataproc.projects.jobs.patch", | 469 "id": "dataproc.projects.jobs.delete", |
477 "parameterOrder": [ | 470 "parameterOrder": [ |
478 "projectId", | 471 "projectId", |
479 "jobId" | 472 "jobId" |
480 ], | 473 ], |
481 "parameters": { | 474 "parameters": { |
482 "projectId": { | 475 "projectId": { |
483 "description": "Required The ID of the Googl
e Cloud Platform project that the job belongs to.", | 476 "description": "Required The ID of the Googl
e Cloud Platform project that the job belongs to.", |
484 "location": "path", | 477 "location": "path", |
485 "required": true, | 478 "required": true, |
486 "type": "string" | 479 "type": "string" |
487 }, | 480 }, |
488 "jobId": { | 481 "jobId": { |
489 "description": "Required The job ID.", | 482 "description": "Required The job ID.", |
490 "location": "path", | 483 "location": "path", |
491 "required": true, | 484 "required": true, |
492 "type": "string" | 485 "type": "string" |
493 }, | |
494 "updateMask": { | |
495 "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.", | |
496 "format": "google-fieldmask", | |
497 "location": "query", | |
498 "type": "string" | |
499 } | |
500 }, | |
501 "path": "v1beta1/projects/{projectId}/jobs/{jobId}", | |
502 "request": { | |
503 "$ref": "Job" | |
504 }, | |
505 "response": { | |
506 "$ref": "Job" | |
507 }, | |
508 "scopes": [ | |
509 "https://www.googleapis.com/auth/cloud-platform" | |
510 ] | |
511 }, | |
512 "get": { | |
513 "description": "Gets the resource representation for
a job in a project.", | |
514 "httpMethod": "GET", | |
515 "id": "dataproc.projects.jobs.get", | |
516 "parameterOrder": [ | |
517 "projectId", | |
518 "jobId" | |
519 ], | |
520 "parameters": { | |
521 "projectId": { | |
522 "description": "Required The ID of the Googl
e Cloud Platform project that the job belongs to.", | |
523 "location": "path", | |
524 "required": true, | |
525 "type": "string" | |
526 }, | |
527 "jobId": { | |
528 "description": "Required The job ID.", | |
529 "location": "path", | |
530 "required": true, | |
531 "type": "string" | |
532 } | 486 } |
533 }, | 487 }, |
534 "path": "v1beta1/projects/{projectId}/jobs/{jobId}", | 488 "path": "v1beta1/projects/{projectId}/jobs/{jobId}", |
535 "response": { | 489 "response": { |
536 "$ref": "Job" | 490 "$ref": "Empty" |
537 }, | 491 }, |
538 "scopes": [ | 492 "scopes": [ |
539 "https://www.googleapis.com/auth/cloud-platform" | 493 "https://www.googleapis.com/auth/cloud-platform" |
540 ] | 494 ] |
541 }, | 495 }, |
542 "submit": { | 496 "list": { |
543 "description": "Submits a job to a cluster.", | 497 "description": "Lists jobs in a project.", |
544 "httpMethod": "POST", | 498 "httpMethod": "GET", |
545 "id": "dataproc.projects.jobs.submit", | 499 "id": "dataproc.projects.jobs.list", |
546 "parameterOrder": [ | 500 "parameterOrder": [ |
547 "projectId" | 501 "projectId" |
548 ], | 502 ], |
549 "parameters": { | 503 "parameters": { |
| 504 "pageSize": { |
| 505 "description": "Optional The number of resul
ts to return in each response.", |
| 506 "format": "int32", |
| 507 "location": "query", |
| 508 "type": "integer" |
| 509 }, |
| 510 "clusterName": { |
| 511 "description": "Optional If set, the returne
d jobs list includes only jobs that were submitted to the named cluster.", |
| 512 "location": "query", |
| 513 "type": "string" |
| 514 }, |
550 "projectId": { | 515 "projectId": { |
| 516 "description": "Required The ID of the Googl
e Cloud Platform project that the job belongs to.", |
| 517 "location": "path", |
| 518 "required": true, |
| 519 "type": "string" |
| 520 }, |
| 521 "filter": { |
| 522 "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)", |
| 523 "location": "query", |
| 524 "type": "string" |
| 525 }, |
| 526 "jobStateMatcher": { |
| 527 "description": "Optional Specifies enumerate
d categories of jobs to list.", |
| 528 "enum": [ |
| 529 "ALL", |
| 530 "ACTIVE", |
| 531 "NON_ACTIVE" |
| 532 ], |
| 533 "location": "query", |
| 534 "type": "string" |
| 535 }, |
| 536 "pageToken": { |
| 537 "description": "Optional The page token, ret
urned by a previous call, to request the next page of results.", |
| 538 "location": "query", |
| 539 "type": "string" |
| 540 } |
| 541 }, |
| 542 "path": "v1beta1/projects/{projectId}/jobs", |
| 543 "response": { |
| 544 "$ref": "ListJobsResponse" |
| 545 }, |
| 546 "scopes": [ |
| 547 "https://www.googleapis.com/auth/cloud-platform" |
| 548 ] |
| 549 }, |
| 550 "cancel": { |
| 551 "description": "Starts a job cancellation request. T
o access the job resource after cancellation, call jobs.list or jobs.get.", |
| 552 "httpMethod": "POST", |
| 553 "id": "dataproc.projects.jobs.cancel", |
| 554 "parameterOrder": [ |
| 555 "projectId", |
| 556 "jobId" |
| 557 ], |
| 558 "parameters": { |
| 559 "projectId": { |
551 "description": "Required The ID of the Googl
e Cloud Platform project that the job belongs to.", | 560 "description": "Required The ID of the Googl
e Cloud Platform project that the job belongs to.", |
552 "location": "path", | 561 "location": "path", |
553 "required": true, | 562 "required": true, |
554 "type": "string" | 563 "type": "string" |
| 564 }, |
| 565 "jobId": { |
| 566 "description": "Required The job ID.", |
| 567 "location": "path", |
| 568 "required": true, |
| 569 "type": "string" |
555 } | 570 } |
556 }, | 571 }, |
557 "path": "v1beta1/projects/{projectId}/jobs:submit", | 572 "path": "v1beta1/projects/{projectId}/jobs/{jobId}:c
ancel", |
558 "request": { | 573 "request": { |
559 "$ref": "SubmitJobRequest" | 574 "$ref": "CancelJobRequest" |
560 }, | 575 }, |
561 "response": { | 576 "response": { |
562 "$ref": "Job" | 577 "$ref": "Job" |
563 }, | 578 }, |
564 "scopes": [ | 579 "scopes": [ |
565 "https://www.googleapis.com/auth/cloud-platform" | 580 "https://www.googleapis.com/auth/cloud-platform" |
566 ] | 581 ] |
567 }, | 582 }, |
568 "delete": { | 583 "patch": { |
569 "description": "Deletes the job from the project. If
the job is active, the delete fails, and the response returns FAILED_PRECONDITI
ON.", | 584 "description": "Updates a job in a project.", |
570 "httpMethod": "DELETE", | 585 "httpMethod": "PATCH", |
571 "id": "dataproc.projects.jobs.delete", | 586 "id": "dataproc.projects.jobs.patch", |
572 "parameterOrder": [ | 587 "parameterOrder": [ |
573 "projectId", | 588 "projectId", |
574 "jobId" | 589 "jobId" |
575 ], | 590 ], |
576 "parameters": { | 591 "parameters": { |
| 592 "updateMask": { |
| 593 "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.", |
| 594 "format": "google-fieldmask", |
| 595 "location": "query", |
| 596 "type": "string" |
| 597 }, |
577 "projectId": { | 598 "projectId": { |
578 "description": "Required The ID of the Googl
e Cloud Platform project that the job belongs to.", | 599 "description": "Required The ID of the Googl
e Cloud Platform project that the job belongs to.", |
579 "location": "path", | 600 "location": "path", |
580 "required": true, | 601 "required": true, |
581 "type": "string" | 602 "type": "string" |
582 }, | 603 }, |
583 "jobId": { | 604 "jobId": { |
584 "description": "Required The job ID.", | 605 "description": "Required The job ID.", |
585 "location": "path", | 606 "location": "path", |
586 "required": true, | 607 "required": true, |
587 "type": "string" | 608 "type": "string" |
588 } | 609 } |
589 }, | 610 }, |
590 "path": "v1beta1/projects/{projectId}/jobs/{jobId}", | 611 "path": "v1beta1/projects/{projectId}/jobs/{jobId}", |
| 612 "request": { |
| 613 "$ref": "Job" |
| 614 }, |
591 "response": { | 615 "response": { |
592 "$ref": "Empty" | 616 "$ref": "Job" |
593 }, | 617 }, |
594 "scopes": [ | 618 "scopes": [ |
595 "https://www.googleapis.com/auth/cloud-platform" | 619 "https://www.googleapis.com/auth/cloud-platform" |
596 ] | 620 ] |
597 }, | 621 }, |
598 "list": { | 622 "get": { |
599 "description": "Lists jobs in a project.", | 623 "description": "Gets the resource representation for
a job in a project.", |
600 "httpMethod": "GET", | 624 "httpMethod": "GET", |
601 "id": "dataproc.projects.jobs.list", | 625 "id": "dataproc.projects.jobs.get", |
602 "parameterOrder": [ | 626 "parameterOrder": [ |
603 "projectId" | 627 "projectId", |
| 628 "jobId" |
604 ], | 629 ], |
605 "parameters": { | 630 "parameters": { |
606 "pageToken": { | |
607 "description": "Optional The page token, ret
urned by a previous call, to request the next page of results.", | |
608 "location": "query", | |
609 "type": "string" | |
610 }, | |
611 "pageSize": { | |
612 "description": "Optional The number of resul
ts to return in each response.", | |
613 "format": "int32", | |
614 "location": "query", | |
615 "type": "integer" | |
616 }, | |
617 "clusterName": { | |
618 "description": "Optional If set, the returne
d jobs list includes only jobs that were submitted to the named cluster.", | |
619 "location": "query", | |
620 "type": "string" | |
621 }, | |
622 "projectId": { | 631 "projectId": { |
623 "description": "Required The ID of the Googl
e Cloud Platform project that the job belongs to.", | 632 "description": "Required The ID of the Googl
e Cloud Platform project that the job belongs to.", |
624 "location": "path", | 633 "location": "path", |
625 "required": true, | 634 "required": true, |
626 "type": "string" | 635 "type": "string" |
627 }, | 636 }, |
628 "filter": { | 637 "jobId": { |
629 "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)", | 638 "description": "Required The job ID.", |
630 "location": "query", | 639 "location": "path", |
631 "type": "string" | 640 "required": true, |
632 }, | |
633 "jobStateMatcher": { | |
634 "description": "Optional Specifies enumerate
d categories of jobs to list.", | |
635 "enum": [ | |
636 "ALL", | |
637 "ACTIVE", | |
638 "NON_ACTIVE" | |
639 ], | |
640 "location": "query", | |
641 "type": "string" | 641 "type": "string" |
642 } | 642 } |
643 }, | 643 }, |
644 "path": "v1beta1/projects/{projectId}/jobs", | 644 "path": "v1beta1/projects/{projectId}/jobs/{jobId}", |
645 "response": { | 645 "response": { |
646 "$ref": "ListJobsResponse" | 646 "$ref": "Job" |
647 }, | 647 }, |
648 "scopes": [ | 648 "scopes": [ |
649 "https://www.googleapis.com/auth/cloud-platform" | 649 "https://www.googleapis.com/auth/cloud-platform" |
650 ] | 650 ] |
651 } | 651 } |
652 } | 652 } |
653 } | 653 } |
654 } | 654 } |
655 } | 655 } |
656 }, | 656 }, |
657 "revision": "20170321", | 657 "revision": "20170412", |
658 "rootUrl": "https://dataproc.googleapis.com/", | 658 "rootUrl": "https://dataproc.googleapis.com/", |
659 "schemas": { | 659 "schemas": { |
660 "PigJob": { | 660 "SoftwareConfiguration": { |
661 "description": "A Cloud Dataproc job for running Pig queries on YARN
.", | 661 "description": "Specifies the selection and configuration of softwar
e inside the cluster.", |
662 "id": "PigJob", | 662 "id": "SoftwareConfiguration", |
663 "properties": { | 663 "properties": { |
664 "continueOnFailure": { | 664 "imageVersion": { |
665 "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.", | 665 "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).", |
666 "type": "boolean" | |
667 }, | |
668 "queryList": { | |
669 "$ref": "QueryList", | |
670 "description": "A list of queries." | |
671 }, | |
672 "queryFileUri": { | |
673 "description": "The HCFS URI of the script that contains the
Pig queries.", | |
674 "type": "string" | 666 "type": "string" |
675 }, | 667 }, |
676 "jarFileUris": { | |
677 "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.", | |
678 "items": { | |
679 "type": "string" | |
680 }, | |
681 "type": "array" | |
682 }, | |
683 "scriptVariables": { | |
684 "additionalProperties": { | |
685 "type": "string" | |
686 }, | |
687 "description": "Optional Mapping of query variable names to
values (equivalent to the Pig command: name=[value]).", | |
688 "type": "object" | |
689 }, | |
690 "loggingConfiguration": { | |
691 "$ref": "LoggingConfiguration", | |
692 "description": "Optional The runtime log configuration for j
ob execution." | |
693 }, | |
694 "properties": { | 668 "properties": { |
695 "additionalProperties": { | 669 "additionalProperties": { |
696 "type": "string" | 670 "type": "string" |
697 }, | 671 }, |
698 "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.", | 672 "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", |
699 "type": "object" | 673 "type": "object" |
700 } | 674 } |
701 }, | 675 }, |
702 "type": "object" | 676 "type": "object" |
703 }, | 677 }, |
704 "ClusterStatus": { | 678 "PySparkJob": { |
705 "description": "The status of a cluster and its instances.", | 679 "description": "A Cloud Dataproc job for running PySpark application
s on YARN.", |
706 "id": "ClusterStatus", | 680 "id": "PySparkJob", |
707 "properties": { | 681 "properties": { |
708 "state": { | |
709 "description": "The cluster's state.", | |
710 "enum": [ | |
711 "UNKNOWN", | |
712 "CREATING", | |
713 "RUNNING", | |
714 "ERROR", | |
715 "DELETING", | |
716 "UPDATING" | |
717 ], | |
718 "enumDescriptions": [ | |
719 "The cluster state is unknown.", | |
720 "The cluster is being created and set up. It is not read
y for use.", | |
721 "The cluster is currently running and healthy. It is rea
dy for use.", | |
722 "The cluster encountered an error. It is not ready for u
se.", | |
723 "The cluster is being deleted. It cannot be used.", | |
724 "The cluster is being updated. It continues to accept an
d process jobs." | |
725 ], | |
726 "type": "string" | |
727 }, | |
728 "stateStartTime": { | |
729 "description": "Time when this state was entered.", | |
730 "format": "google-datetime", | |
731 "type": "string" | |
732 }, | |
733 "substate": { | |
734 "description": "Output-only Additional state information tha
t includes status reported by the agent.", | |
735 "enum": [ | |
736 "UNSPECIFIED", | |
737 "UNHEALTHY", | |
738 "STALE_STATUS" | |
739 ], | |
740 "enumDescriptions": [ | |
741 "", | |
742 "The cluster is known to be in an unhealthy state (for e
xample, critical daemons are not running or HDFS capacity is exhausted).Applies
to RUNNING state.", | |
743 "The agent-reported status is out of date (may occur if
Cloud Dataproc loses communication with Agent).Applies to RUNNING state." | |
744 ], | |
745 "type": "string" | |
746 }, | |
747 "detail": { | |
748 "description": "Optional details of cluster's state.", | |
749 "type": "string" | |
750 } | |
751 }, | |
752 "type": "object" | |
753 }, | |
754 "AcceleratorConfiguration": { | |
755 "description": "Specifies the type and number of accelerator cards a
ttached to the instances of an instance group (see GPUs on Compute Engine).", | |
756 "id": "AcceleratorConfiguration", | |
757 "properties": { | |
758 "acceleratorCount": { | |
759 "description": "The number of the accelerator cards of this
type exposed to this instance.", | |
760 "format": "int32", | |
761 "type": "integer" | |
762 }, | |
763 "acceleratorTypeUri": { | |
764 "description": "Full or partial URI of the accelerator type
resource to expose to this instance. See Google Compute Engine AcceleratorTypes(
/compute/docs/reference/beta/acceleratorTypes)", | |
765 "type": "string" | |
766 } | |
767 }, | |
768 "type": "object" | |
769 }, | |
770 "ManagedGroupConfiguration": { | |
771 "description": "Specifies the resources used to actively manage an i
nstance group.", | |
772 "id": "ManagedGroupConfiguration", | |
773 "properties": { | |
774 "instanceGroupManagerName": { | |
775 "description": "Output-only The name of the Instance Group M
anager for this group.", | |
776 "type": "string" | |
777 }, | |
778 "instanceTemplateName": { | |
779 "description": "Output-only The name of the Instance Templat
e used for the Managed Instance Group.", | |
780 "type": "string" | |
781 } | |
782 }, | |
783 "type": "object" | |
784 }, | |
785 "ListClustersResponse": { | |
786 "description": "The list of all clusters in a project.", | |
787 "id": "ListClustersResponse", | |
788 "properties": { | |
789 "clusters": { | |
790 "description": "Output-only The clusters in the project.", | |
791 "items": { | |
792 "$ref": "Cluster" | |
793 }, | |
794 "type": "array" | |
795 }, | |
796 "nextPageToken": { | |
797 "description": "The standard List next-page token.", | |
798 "type": "string" | |
799 } | |
800 }, | |
801 "type": "object" | |
802 }, | |
803 "SparkJob": { | |
804 "description": "A Cloud Dataproc job for running Spark applications
on YARN.", | |
805 "id": "SparkJob", | |
806 "properties": { | |
807 "mainJarFileUri": { | |
808 "description": "The Hadoop Compatible Filesystem (HCFS) URI
of the jar file that contains the main class.", | |
809 "type": "string" | |
810 }, | |
811 "jarFileUris": { | 682 "jarFileUris": { |
812 "description": "Optional HCFS URIs of jar files to add to th
e CLASSPATHs of the Spark driver and tasks.", | 683 "description": "Optional HCFS URIs of jar files to add to th
e CLASSPATHs of the Python driver and tasks.", |
813 "items": { | 684 "items": { |
814 "type": "string" | 685 "type": "string" |
815 }, | 686 }, |
816 "type": "array" | 687 "type": "array" |
817 }, | 688 }, |
818 "loggingConfiguration": { | 689 "loggingConfiguration": { |
819 "$ref": "LoggingConfiguration", | 690 "$ref": "LoggingConfiguration", |
820 "description": "Optional The runtime log configuration for j
ob execution." | 691 "description": "Optional The runtime log configuration for j
ob execution." |
821 }, | 692 }, |
822 "properties": { | 693 "properties": { |
823 "additionalProperties": { | 694 "additionalProperties": { |
824 "type": "string" | 695 "type": "string" |
825 }, | 696 }, |
826 "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.", | 697 "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.", |
827 "type": "object" | 698 "type": "object" |
828 }, | 699 }, |
829 "args": { | 700 "args": { |
830 "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.", | 701 "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.", |
831 "items": { | 702 "items": { |
832 "type": "string" | 703 "type": "string" |
833 }, | 704 }, |
834 "type": "array" | 705 "type": "array" |
835 }, | 706 }, |
836 "fileUris": { | 707 "fileUris": { |
837 "description": "Optional HCFS URIs of files to be copied to
the working directory of Spark drivers and distributed tasks. Useful for naively
parallel tasks.", | 708 "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.", |
838 "items": { | 709 "items": { |
839 "type": "string" | 710 "type": "string" |
840 }, | 711 }, |
841 "type": "array" | 712 "type": "array" |
842 }, | 713 }, |
843 "mainClass": { | 714 "pythonFileUris": { |
844 "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.", | 715 "description": "Optional HCFS file URIs of Python files to p
ass to the PySpark framework. Supported file types: .py, .egg, and .zip.", |
| 716 "items": { |
| 717 "type": "string" |
| 718 }, |
| 719 "type": "array" |
| 720 }, |
| 721 "mainPythonFileUri": { |
| 722 "description": "Required The Hadoop Compatible Filesystem (H
CFS) URI of the main Python file to use as the driver. Must be a .py file.", |
845 "type": "string" | 723 "type": "string" |
846 }, | 724 }, |
847 "archiveUris": { | 725 "archiveUris": { |
848 "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.", | 726 "description": "Optional HCFS URIs of archives to be extract
ed in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.", |
849 "items": { | 727 "items": { |
850 "type": "string" | 728 "type": "string" |
851 }, | 729 }, |
852 "type": "array" | 730 "type": "array" |
853 } | 731 } |
854 }, | 732 }, |
855 "type": "object" | 733 "type": "object" |
856 }, | 734 }, |
857 "Job": { | 735 "ClusterMetrics": { |
858 "description": "A Cloud Dataproc job resource.", | 736 "description": "Contains cluster daemon metrics, such as HDFS and YA
RN stats.", |
859 "id": "Job", | 737 "id": "ClusterMetrics", |
860 "properties": { | 738 "properties": { |
861 "interactive": { | 739 "yarnMetrics": { |
862 "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.", | |
863 "type": "boolean" | |
864 }, | |
865 "driverInputResourceUri": { | |
866 "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.", | |
867 "type": "string" | |
868 }, | |
869 "hadoopJob": { | |
870 "$ref": "HadoopJob", | |
871 "description": "Job is a Hadoop job." | |
872 }, | |
873 "status": { | |
874 "$ref": "JobStatus", | |
875 "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." | |
876 }, | |
877 "placement": { | |
878 "$ref": "JobPlacement", | |
879 "description": "Required Job information, including how, whe
n, and where to run the job." | |
880 }, | |
881 "driverControlFilesUri": { | |
882 "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.", | |
883 "type": "string" | |
884 }, | |
885 "submittedBy": { | |
886 "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>.", | |
887 "type": "string" | |
888 }, | |
889 "scheduling": { | |
890 "$ref": "JobScheduling", | |
891 "description": "Optional Job scheduling configuration." | |
892 }, | |
893 "pigJob": { | |
894 "$ref": "PigJob", | |
895 "description": "Job is a Pig job." | |
896 }, | |
897 "hiveJob": { | |
898 "$ref": "HiveJob", | |
899 "description": "Job is a Hive job." | |
900 }, | |
901 "labels": { | |
902 "additionalProperties": { | 740 "additionalProperties": { |
| 741 "format": "int64", |
903 "type": "string" | 742 "type": "string" |
904 }, | 743 }, |
905 "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.", | 744 "description": "The YARN metrics.", |
906 "type": "object" | 745 "type": "object" |
907 }, | 746 }, |
908 "driverOutputResourceUri": { | 747 "hdfsMetrics": { |
909 "description": "Output-only A URI pointing to the location o
f the stdout of the job's driver program.", | 748 "additionalProperties": { |
910 "type": "string" | 749 "format": "int64", |
911 }, | 750 "type": "string" |
912 "sparkSqlJob": { | |
913 "$ref": "SparkSqlJob", | |
914 "description": "Job is a SparkSql job." | |
915 }, | |
916 "sparkJob": { | |
917 "$ref": "SparkJob", | |
918 "description": "Job is a Spark job." | |
919 }, | |
920 "statusHistory": { | |
921 "description": "Output-only The previous job status.", | |
922 "items": { | |
923 "$ref": "JobStatus" | |
924 }, | 751 }, |
925 "type": "array" | 752 "description": "The HDFS metrics.", |
926 }, | 753 "type": "object" |
927 "yarnApplications": { | |
928 "description": "Output-only The collection of YARN applicati
ons spun up by this job.", | |
929 "items": { | |
930 "$ref": "YarnApplication" | |
931 }, | |
932 "type": "array" | |
933 }, | |
934 "pysparkJob": { | |
935 "$ref": "PySparkJob", | |
936 "description": "Job is a Pyspark job." | |
937 }, | |
938 "reference": { | |
939 "$ref": "JobReference", | |
940 "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>." | |
941 } | 754 } |
942 }, | 755 }, |
943 "type": "object" | 756 "type": "object" |
944 }, | 757 }, |
945 "JobStatus": { | 758 "ClusterConfiguration": { |
946 "description": "Cloud Dataproc job status.", | 759 "description": "The cluster configuration.", |
947 "id": "JobStatus", | 760 "id": "ClusterConfiguration", |
948 "properties": { | 761 "properties": { |
949 "stateStartTime": { | 762 "masterConfiguration": { |
950 "description": "Output-only The time when this state was ent
ered.", | 763 "$ref": "InstanceGroupConfiguration", |
951 "format": "google-datetime", | 764 "description": "Optional The Google Compute Engine configura
tion settings for the master instance in a cluster." |
952 "type": "string" | |
953 }, | 765 }, |
954 "substate": { | 766 "secondaryWorkerConfiguration": { |
955 "description": "Output-only Additional state information, wh
ich includes status reported by the agent.", | 767 "$ref": "InstanceGroupConfiguration", |
956 "enum": [ | 768 "description": "Optional The Google Compute Engine configura
tion settings for additional worker instances in a cluster." |
957 "UNSPECIFIED", | |
958 "SUBMITTED", | |
959 "QUEUED", | |
960 "STALE_STATUS" | |
961 ], | |
962 "enumDescriptions": [ | |
963 "", | |
964 "The Job is submitted to the agent.Applies to RUNNING st
ate.", | |
965 "The Job has been received and is awaiting execution (it
may be waiting for a condition to be met). See the \"details\" field for the re
ason for the delay.Applies to RUNNING state.", | |
966 "The agent-reported status is out of date, which may be
caused by a loss of communication between the agent and Cloud Dataproc. If the a
gent does not send a timely update, the job will fail.Applies to RUNNING state." | |
967 ], | |
968 "type": "string" | |
969 }, | 769 }, |
970 "state": { | 770 "workerConfiguration": { |
971 "description": "Required A state message specifying the over
all job state.", | 771 "$ref": "InstanceGroupConfiguration", |
972 "enum": [ | 772 "description": "Optional The Google Compute Engine configura
tion settings for worker instances in a cluster." |
973 "STATE_UNSPECIFIED", | |
974 "PENDING", | |
975 "SETUP_DONE", | |
976 "RUNNING", | |
977 "CANCEL_PENDING", | |
978 "CANCEL_STARTED", | |
979 "CANCELLED", | |
980 "DONE", | |
981 "ERROR", | |
982 "ATTEMPT_FAILURE" | |
983 ], | |
984 "enumDescriptions": [ | |
985 "The job state is unknown.", | |
986 "The job is pending; it has been submitted, but is not y
et running.", | |
987 "Job has been received by the service and completed init
ial setup; it will shortly be submitted to the cluster.", | |
988 "The job is running on the cluster.", | |
989 "A CancelJob request has been received, but is pending."
, | |
990 "Transient in-flight resources have been canceled, and t
he request to cancel the running job has been issued to the cluster.", | |
991 "The job cancelation was successful.", | |
992 "The job has completed successfully.", | |
993 "The job has completed, but encountered an error.", | |
994 "Job attempt has failed. The detail field contains failu
re details for this attempt.Applies to restartable jobs only." | |
995 ], | |
996 "type": "string" | |
997 }, | 773 }, |
998 "details": { | 774 "initializationActions": { |
999 "description": "Optional Job state details, such as an error
description if the state is <code>ERROR</code>.", | 775 "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", |
| 776 "items": { |
| 777 "$ref": "NodeInitializationAction" |
| 778 }, |
| 779 "type": "array" |
| 780 }, |
| 781 "gceClusterConfiguration": { |
| 782 "$ref": "GceClusterConfiguration", |
| 783 "description": "Required The shared Google Compute Engine co
nfiguration settings for all instances in a cluster." |
| 784 }, |
| 785 "softwareConfiguration": { |
| 786 "$ref": "SoftwareConfiguration", |
| 787 "description": "Optional The configuration settings for soft
ware inside the cluster." |
| 788 }, |
| 789 "configurationBucket": { |
| 790 "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.", |
1000 "type": "string" | 791 "type": "string" |
1001 } | 792 } |
1002 }, | 793 }, |
1003 "type": "object" | 794 "type": "object" |
1004 }, | 795 }, |
1005 "DiskConfiguration": { | 796 "LoggingConfiguration": { |
1006 "description": "Specifies the configuration of disk options for a gr
oup of VM instances.", | 797 "description": "The runtime logging configuration of the job.", |
1007 "id": "DiskConfiguration", | 798 "id": "LoggingConfiguration", |
1008 "properties": { | 799 "properties": { |
1009 "numLocalSsds": { | 800 "driverLogLevels": { |
1010 "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.", | 801 "additionalProperties": { |
1011 "format": "int32", | 802 "enum": [ |
1012 "type": "integer" | 803 "LEVEL_UNSPECIFIED", |
1013 }, | 804 "ALL", |
1014 "bootDiskSizeGb": { | 805 "TRACE", |
1015 "description": "Optional Size in GB of the boot disk (defaul
t is 500GB).", | 806 "DEBUG", |
1016 "format": "int32", | 807 "INFO", |
1017 "type": "integer" | 808 "WARN", |
| 809 "ERROR", |
| 810 "FATAL", |
| 811 "OFF" |
| 812 ], |
| 813 "type": "string" |
| 814 }, |
| 815 "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'", |
| 816 "type": "object" |
1018 } | 817 } |
1019 }, | 818 }, |
1020 "type": "object" | 819 "type": "object" |
1021 }, | 820 }, |
1022 "ClusterOperationStatus": { | 821 "InstanceGroupConfiguration": { |
1023 "description": "The status of the operation.", | 822 "description": "The configuration settings for Google Compute Engine
resources in an instance group, such as a master or worker group.", |
1024 "id": "ClusterOperationStatus", | 823 "id": "InstanceGroupConfiguration", |
1025 "properties": { | 824 "properties": { |
1026 "state": { | 825 "accelerators": { |
1027 "description": "Output-only A message containing the operati
on state.", | 826 "description": "Optional The Google Compute Engine accelerat
or configuration for these instances.", |
1028 "enum": [ | 827 "items": { |
1029 "UNKNOWN", | 828 "$ref": "AcceleratorConfiguration" |
1030 "PENDING", | 829 }, |
1031 "RUNNING", | 830 "type": "array" |
1032 "DONE" | 831 }, |
1033 ], | 832 "numInstances": { |
1034 "enumDescriptions": [ | 833 "description": "The number of VM instances in the instance g
roup. For master instance groups, must be set to 1.", |
1035 "Unused.", | 834 "format": "int32", |
1036 "The operation has been created.", | 835 "type": "integer" |
1037 "The operation is running.", | 836 }, |
1038 "The operation is done; either cancelled or completed." | 837 "diskConfiguration": { |
1039 ], | 838 "$ref": "DiskConfiguration", |
| 839 "description": "Disk option configuration settings." |
| 840 }, |
| 841 "isPreemptible": { |
| 842 "description": "Specifies that this instance group contains
Preemptible Instances.", |
| 843 "type": "boolean" |
| 844 }, |
| 845 "imageUri": { |
| 846 "description": "Output-only The Google Compute Engine image
resource used for cluster instances. Inferred from SoftwareConfiguration.image_v
ersion.", |
1040 "type": "string" | 847 "type": "string" |
1041 }, | 848 }, |
1042 "details": { | 849 "machineTypeUri": { |
1043 "description": "Output-onlyA message containing any operatio
n metadata details.", | 850 "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.", |
1044 "type": "string" | 851 "type": "string" |
1045 }, | 852 }, |
1046 "innerState": { | 853 "managedGroupConfiguration": { |
1047 "description": "Output-only A message containing the detaile
d operation state.", | 854 "$ref": "ManagedGroupConfiguration", |
1048 "type": "string" | 855 "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." |
1049 }, | 856 }, |
1050 "stateStartTime": { | 857 "instanceNames": { |
1051 "description": "Output-only The time this state was entered.
", | 858 "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).", |
1052 "format": "google-datetime", | |
1053 "type": "string" | |
1054 } | |
1055 }, | |
1056 "type": "object" | |
1057 }, | |
1058 "YarnApplication": { | |
1059 "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>.", | |
1060 "id": "YarnApplication", | |
1061 "properties": { | |
1062 "state": { | |
1063 "description": "Required The application state.", | |
1064 "enum": [ | |
1065 "STATE_UNSPECIFIED", | |
1066 "NEW", | |
1067 "NEW_SAVING", | |
1068 "SUBMITTED", | |
1069 "ACCEPTED", | |
1070 "RUNNING", | |
1071 "FINISHED", | |
1072 "FAILED", | |
1073 "KILLED" | |
1074 ], | |
1075 "enumDescriptions": [ | |
1076 "Status is unspecified.", | |
1077 "Status is NEW.", | |
1078 "Status is NEW_SAVING.", | |
1079 "Status is SUBMITTED.", | |
1080 "Status is ACCEPTED.", | |
1081 "Status is RUNNING.", | |
1082 "Status is FINISHED.", | |
1083 "Status is FAILED.", | |
1084 "Status is KILLED." | |
1085 ], | |
1086 "type": "string" | |
1087 }, | |
1088 "name": { | |
1089 "description": "Required The application name.", | |
1090 "type": "string" | |
1091 }, | |
1092 "trackingUrl": { | |
1093 "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.", | |
1094 "type": "string" | |
1095 }, | |
1096 "progress": { | |
1097 "description": "Required The numerical progress of the appli
cation, from 1 to 100.", | |
1098 "format": "float", | |
1099 "type": "number" | |
1100 } | |
1101 }, | |
1102 "type": "object" | |
1103 }, | |
1104 "QueryList": { | |
1105 "description": "A list of queries to run on a cluster.", | |
1106 "id": "QueryList", | |
1107 "properties": { | |
1108 "queries": { | |
1109 "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", | |
1110 "items": { | 859 "items": { |
1111 "type": "string" | 860 "type": "string" |
1112 }, | 861 }, |
1113 "type": "array" | 862 "type": "array" |
1114 } | 863 } |
1115 }, | 864 }, |
1116 "type": "object" | 865 "type": "object" |
1117 }, | 866 }, |
1118 "HadoopJob": { | |
1119 "description": "A Cloud Dataproc job for running Hadoop MapReduce jo
bs on YARN.", | |
1120 "id": "HadoopJob", | |
1121 "properties": { | |
1122 "mainClass": { | |
1123 "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.", | |
1124 "type": "string" | |
1125 }, | |
1126 "archiveUris": { | |
1127 "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.", | |
1128 "items": { | |
1129 "type": "string" | |
1130 }, | |
1131 "type": "array" | |
1132 }, | |
1133 "mainJarFileUri": { | |
1134 "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'", | |
1135 "type": "string" | |
1136 }, | |
1137 "jarFileUris": { | |
1138 "description": "Optional Jar file URIs to add to the CLASSPA
THs of the Hadoop driver and tasks.", | |
1139 "items": { | |
1140 "type": "string" | |
1141 }, | |
1142 "type": "array" | |
1143 }, | |
1144 "loggingConfiguration": { | |
1145 "$ref": "LoggingConfiguration", | |
1146 "description": "Optional The runtime log configuration for j
ob execution." | |
1147 }, | |
1148 "properties": { | |
1149 "additionalProperties": { | |
1150 "type": "string" | |
1151 }, | |
1152 "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.", | |
1153 "type": "object" | |
1154 }, | |
1155 "args": { | |
1156 "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.", | |
1157 "items": { | |
1158 "type": "string" | |
1159 }, | |
1160 "type": "array" | |
1161 }, | |
1162 "fileUris": { | |
1163 "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.", | |
1164 "items": { | |
1165 "type": "string" | |
1166 }, | |
1167 "type": "array" | |
1168 } | |
1169 }, | |
1170 "type": "object" | |
1171 }, | |
1172 "DiagnoseClusterRequest": { | |
1173 "description": "A request to collect cluster diagnostic information.
", | |
1174 "id": "DiagnoseClusterRequest", | |
1175 "properties": {}, | |
1176 "type": "object" | |
1177 }, | |
1178 "ClusterOperationMetadata": { | |
1179 "description": "Metadata describing the operation.", | |
1180 "id": "ClusterOperationMetadata", | |
1181 "properties": { | |
1182 "statusHistory": { | |
1183 "description": "Output-only The previous operation status.", | |
1184 "items": { | |
1185 "$ref": "ClusterOperationStatus" | |
1186 }, | |
1187 "type": "array" | |
1188 }, | |
1189 "clusterName": { | |
1190 "description": "Output-only Name of the cluster for the oper
ation.", | |
1191 "type": "string" | |
1192 }, | |
1193 "clusterUuid": { | |
1194 "description": "Output-only Cluster UUID for the operation."
, | |
1195 "type": "string" | |
1196 }, | |
1197 "operationType": { | |
1198 "description": "Output-only The operation type.", | |
1199 "type": "string" | |
1200 }, | |
1201 "description": { | |
1202 "description": "Output-only Short description of operation."
, | |
1203 "type": "string" | |
1204 }, | |
1205 "warnings": { | |
1206 "description": "Output-only Errors encountered during operat
ion execution.", | |
1207 "items": { | |
1208 "type": "string" | |
1209 }, | |
1210 "type": "array" | |
1211 }, | |
1212 "labels": { | |
1213 "additionalProperties": { | |
1214 "type": "string" | |
1215 }, | |
1216 "description": "Output-only Labels associated with the opera
tion", | |
1217 "type": "object" | |
1218 }, | |
1219 "status": { | |
1220 "$ref": "ClusterOperationStatus", | |
1221 "description": "Output-only Current operation status." | |
1222 } | |
1223 }, | |
1224 "type": "object" | |
1225 }, | |
1226 "HiveJob": { | |
1227 "description": "A Cloud Dataproc job for running Hive queries on YAR
N.", | |
1228 "id": "HiveJob", | |
1229 "properties": { | |
1230 "properties": { | |
1231 "additionalProperties": { | |
1232 "type": "string" | |
1233 }, | |
1234 "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.", | |
1235 "type": "object" | |
1236 }, | |
1237 "continueOnFailure": { | |
1238 "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.", | |
1239 "type": "boolean" | |
1240 }, | |
1241 "queryList": { | |
1242 "$ref": "QueryList", | |
1243 "description": "A list of queries." | |
1244 }, | |
1245 "queryFileUri": { | |
1246 "description": "The HCFS URI of the script that contains Hiv
e queries.", | |
1247 "type": "string" | |
1248 }, | |
1249 "jarFileUris": { | |
1250 "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.", | |
1251 "items": { | |
1252 "type": "string" | |
1253 }, | |
1254 "type": "array" | |
1255 }, | |
1256 "scriptVariables": { | |
1257 "additionalProperties": { | |
1258 "type": "string" | |
1259 }, | |
1260 "description": "Optional Mapping of query variable names to
values (equivalent to the Hive command: SET name=\"value\";).", | |
1261 "type": "object" | |
1262 } | |
1263 }, | |
1264 "type": "object" | |
1265 }, | |
1266 "Empty": { | |
1267 "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 {}.", | |
1268 "id": "Empty", | |
1269 "properties": {}, | |
1270 "type": "object" | |
1271 }, | |
1272 "DiagnoseClusterResults": { | |
1273 "description": "The location of diagnostic output.", | |
1274 "id": "DiagnoseClusterResults", | |
1275 "properties": { | |
1276 "outputUri": { | |
1277 "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.", | |
1278 "type": "string" | |
1279 } | |
1280 }, | |
1281 "type": "object" | |
1282 }, | |
1283 "SoftwareConfiguration": { | |
1284 "description": "Specifies the selection and configuration of softwar
e inside the cluster.", | |
1285 "id": "SoftwareConfiguration", | |
1286 "properties": { | |
1287 "properties": { | |
1288 "additionalProperties": { | |
1289 "type": "string" | |
1290 }, | |
1291 "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", | |
1292 "type": "object" | |
1293 }, | |
1294 "imageVersion": { | |
1295 "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).", | |
1296 "type": "string" | |
1297 } | |
1298 }, | |
1299 "type": "object" | |
1300 }, | |
1301 "PySparkJob": { | |
1302 "description": "A Cloud Dataproc job for running PySpark application
s on YARN.", | |
1303 "id": "PySparkJob", | |
1304 "properties": { | |
1305 "properties": { | |
1306 "additionalProperties": { | |
1307 "type": "string" | |
1308 }, | |
1309 "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.", | |
1310 "type": "object" | |
1311 }, | |
1312 "args": { | |
1313 "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.", | |
1314 "items": { | |
1315 "type": "string" | |
1316 }, | |
1317 "type": "array" | |
1318 }, | |
1319 "fileUris": { | |
1320 "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.", | |
1321 "items": { | |
1322 "type": "string" | |
1323 }, | |
1324 "type": "array" | |
1325 }, | |
1326 "pythonFileUris": { | |
1327 "description": "Optional HCFS file URIs of Python files to p
ass to the PySpark framework. Supported file types: .py, .egg, and .zip.", | |
1328 "items": { | |
1329 "type": "string" | |
1330 }, | |
1331 "type": "array" | |
1332 }, | |
1333 "mainPythonFileUri": { | |
1334 "description": "Required The Hadoop Compatible Filesystem (H
CFS) URI of the main Python file to use as the driver. Must be a .py file.", | |
1335 "type": "string" | |
1336 }, | |
1337 "archiveUris": { | |
1338 "description": "Optional HCFS URIs of archives to be extract
ed in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.", | |
1339 "items": { | |
1340 "type": "string" | |
1341 }, | |
1342 "type": "array" | |
1343 }, | |
1344 "jarFileUris": { | |
1345 "description": "Optional HCFS URIs of jar files to add to th
e CLASSPATHs of the Python driver and tasks.", | |
1346 "items": { | |
1347 "type": "string" | |
1348 }, | |
1349 "type": "array" | |
1350 }, | |
1351 "loggingConfiguration": { | |
1352 "$ref": "LoggingConfiguration", | |
1353 "description": "Optional The runtime log configuration for j
ob execution." | |
1354 } | |
1355 }, | |
1356 "type": "object" | |
1357 }, | |
1358 "ClusterMetrics": { | |
1359 "description": "Contains cluster daemon metrics, such as HDFS and YA
RN stats.", | |
1360 "id": "ClusterMetrics", | |
1361 "properties": { | |
1362 "yarnMetrics": { | |
1363 "additionalProperties": { | |
1364 "format": "int64", | |
1365 "type": "string" | |
1366 }, | |
1367 "description": "The YARN metrics.", | |
1368 "type": "object" | |
1369 }, | |
1370 "hdfsMetrics": { | |
1371 "additionalProperties": { | |
1372 "format": "int64", | |
1373 "type": "string" | |
1374 }, | |
1375 "description": "The HDFS metrics.", | |
1376 "type": "object" | |
1377 } | |
1378 }, | |
1379 "type": "object" | |
1380 }, | |
1381 "ClusterConfiguration": { | |
1382 "description": "The cluster configuration.", | |
1383 "id": "ClusterConfiguration", | |
1384 "properties": { | |
1385 "initializationActions": { | |
1386 "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", | |
1387 "items": { | |
1388 "$ref": "NodeInitializationAction" | |
1389 }, | |
1390 "type": "array" | |
1391 }, | |
1392 "workerConfiguration": { | |
1393 "$ref": "InstanceGroupConfiguration", | |
1394 "description": "Optional The Google Compute Engine configura
tion settings for worker instances in a cluster." | |
1395 }, | |
1396 "gceClusterConfiguration": { | |
1397 "$ref": "GceClusterConfiguration", | |
1398 "description": "Required The shared Google Compute Engine co
nfiguration settings for all instances in a cluster." | |
1399 }, | |
1400 "softwareConfiguration": { | |
1401 "$ref": "SoftwareConfiguration", | |
1402 "description": "Optional The configuration settings for soft
ware inside the cluster." | |
1403 }, | |
1404 "configurationBucket": { | |
1405 "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.", | |
1406 "type": "string" | |
1407 }, | |
1408 "masterConfiguration": { | |
1409 "$ref": "InstanceGroupConfiguration", | |
1410 "description": "Optional The Google Compute Engine configura
tion settings for the master instance in a cluster." | |
1411 }, | |
1412 "secondaryWorkerConfiguration": { | |
1413 "$ref": "InstanceGroupConfiguration", | |
1414 "description": "Optional The Google Compute Engine configura
tion settings for additional worker instances in a cluster." | |
1415 } | |
1416 }, | |
1417 "type": "object" | |
1418 }, | |
1419 "LoggingConfiguration": { | |
1420 "description": "The runtime logging configuration of the job.", | |
1421 "id": "LoggingConfiguration", | |
1422 "properties": { | |
1423 "driverLogLevels": { | |
1424 "additionalProperties": { | |
1425 "enum": [ | |
1426 "LEVEL_UNSPECIFIED", | |
1427 "ALL", | |
1428 "TRACE", | |
1429 "DEBUG", | |
1430 "INFO", | |
1431 "WARN", | |
1432 "ERROR", | |
1433 "FATAL", | |
1434 "OFF" | |
1435 ], | |
1436 "type": "string" | |
1437 }, | |
1438 "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'", | |
1439 "type": "object" | |
1440 } | |
1441 }, | |
1442 "type": "object" | |
1443 }, | |
1444 "InstanceGroupConfiguration": { | |
1445 "description": "The configuration settings for Google Compute Engine
resources in an instance group, such as a master or worker group.", | |
1446 "id": "InstanceGroupConfiguration", | |
1447 "properties": { | |
1448 "diskConfiguration": { | |
1449 "$ref": "DiskConfiguration", | |
1450 "description": "Disk option configuration settings." | |
1451 }, | |
1452 "machineTypeUri": { | |
1453 "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.", | |
1454 "type": "string" | |
1455 }, | |
1456 "imageUri": { | |
1457 "description": "Output-only The Google Compute Engine image
resource used for cluster instances. Inferred from SoftwareConfiguration.image_v
ersion.", | |
1458 "type": "string" | |
1459 }, | |
1460 "isPreemptible": { | |
1461 "description": "Specifies that this instance group contains
Preemptible Instances.", | |
1462 "type": "boolean" | |
1463 }, | |
1464 "instanceNames": { | |
1465 "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).", | |
1466 "items": { | |
1467 "type": "string" | |
1468 }, | |
1469 "type": "array" | |
1470 }, | |
1471 "managedGroupConfiguration": { | |
1472 "$ref": "ManagedGroupConfiguration", | |
1473 "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." | |
1474 }, | |
1475 "accelerators": { | |
1476 "description": "Optional The Google Compute Engine accelerat
or configuration for these instances.", | |
1477 "items": { | |
1478 "$ref": "AcceleratorConfiguration" | |
1479 }, | |
1480 "type": "array" | |
1481 }, | |
1482 "numInstances": { | |
1483 "description": "The number of VM instances in the instance g
roup. For master instance groups, must be set to 1.", | |
1484 "format": "int32", | |
1485 "type": "integer" | |
1486 } | |
1487 }, | |
1488 "type": "object" | |
1489 }, | |
1490 "GceClusterConfiguration": { | 867 "GceClusterConfiguration": { |
1491 "description": "Common configuration settings for resources of Googl
e Compute Engine cluster instances, applicable to all instances in the cluster."
, | 868 "description": "Common configuration settings for resources of Googl
e Compute Engine cluster instances, applicable to all instances in the cluster."
, |
1492 "id": "GceClusterConfiguration", | 869 "id": "GceClusterConfiguration", |
1493 "properties": { | 870 "properties": { |
1494 "networkUri": { | 871 "networkUri": { |
1495 "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.", | 872 "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.", |
1496 "type": "string" | 873 "type": "string" |
1497 }, | 874 }, |
1498 "zoneUri": { | 875 "zoneUri": { |
1499 "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].", | 876 "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].", |
1500 "type": "string" | 877 "type": "string" |
1501 }, | 878 }, |
1502 "metadata": { | |
1503 "additionalProperties": { | |
1504 "type": "string" | |
1505 }, | |
1506 "description": "The Google Compute Engine metadata entries t
o add to all instances.", | |
1507 "type": "object" | |
1508 }, | |
1509 "internalIpOnly": { | 879 "internalIpOnly": { |
1510 "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.", | 880 "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.", |
1511 "type": "boolean" | 881 "type": "boolean" |
1512 }, | 882 }, |
| 883 "metadata": { |
| 884 "additionalProperties": { |
| 885 "type": "string" |
| 886 }, |
| 887 "description": "The Google Compute Engine metadata entries t
o add to all instances.", |
| 888 "type": "object" |
| 889 }, |
1513 "serviceAccountScopes": { | 890 "serviceAccountScopes": { |
1514 "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", | 891 "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", |
1515 "items": { | 892 "items": { |
1516 "type": "string" | 893 "type": "string" |
1517 }, | 894 }, |
1518 "type": "array" | 895 "type": "array" |
1519 }, | 896 }, |
1520 "tags": { | 897 "tags": { |
1521 "description": "The Google Compute Engine tags to add to all
instances.", | 898 "description": "The Google Compute Engine tags to add to all
instances.", |
1522 "items": { | 899 "items": { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1646 "$ref": "Job", | 1023 "$ref": "Job", |
1647 "description": "Required The job resource." | 1024 "description": "Required The job resource." |
1648 } | 1025 } |
1649 }, | 1026 }, |
1650 "type": "object" | 1027 "type": "object" |
1651 }, | 1028 }, |
1652 "Status": { | 1029 "Status": { |
1653 "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.", | 1030 "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.", |
1654 "id": "Status", | 1031 "id": "Status", |
1655 "properties": { | 1032 "properties": { |
| 1033 "code": { |
| 1034 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
| 1035 "format": "int32", |
| 1036 "type": "integer" |
| 1037 }, |
1656 "message": { | 1038 "message": { |
1657 "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.", | 1039 "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.", |
1658 "type": "string" | 1040 "type": "string" |
1659 }, | 1041 }, |
1660 "details": { | 1042 "details": { |
1661 "description": "A list of messages that carry the error deta
ils. There will be a common set of message types for APIs to use.", | 1043 "description": "A list of messages that carry the error deta
ils. There will be a common set of message types for APIs to use.", |
1662 "items": { | 1044 "items": { |
1663 "additionalProperties": { | 1045 "additionalProperties": { |
1664 "description": "Properties of the object. Contains f
ield @type with type URL.", | 1046 "description": "Properties of the object. Contains f
ield @type with type URL.", |
1665 "type": "any" | 1047 "type": "any" |
1666 }, | 1048 }, |
1667 "type": "object" | 1049 "type": "object" |
1668 }, | 1050 }, |
1669 "type": "array" | 1051 "type": "array" |
1670 }, | |
1671 "code": { | |
1672 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", | |
1673 "format": "int32", | |
1674 "type": "integer" | |
1675 } | 1052 } |
1676 }, | 1053 }, |
1677 "type": "object" | 1054 "type": "object" |
1678 }, | 1055 }, |
1679 "JobScheduling": { | 1056 "JobScheduling": { |
1680 "description": "Job scheduling options.Beta Feature: These options a
re available for testing purposes only. They may be changed before final release
.", | 1057 "description": "Job scheduling options.Beta Feature: These options a
re available for testing purposes only. They may be changed before final release
.", |
1681 "id": "JobScheduling", | 1058 "id": "JobScheduling", |
1682 "properties": { | 1059 "properties": { |
1683 "maxFailuresPerHour": { | 1060 "maxFailuresPerHour": { |
1684 "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.", | 1061 "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.", |
1685 "format": "int32", | 1062 "format": "int32", |
1686 "type": "integer" | 1063 "type": "integer" |
1687 } | 1064 } |
1688 }, | 1065 }, |
1689 "type": "object" | 1066 "type": "object" |
1690 }, | 1067 }, |
1691 "NodeInitializationAction": { | 1068 "NodeInitializationAction": { |
1692 "description": "Specifies an executable to run on a fully configured
node and a timeout period for executable completion.", | 1069 "description": "Specifies an executable to run on a fully configured
node and a timeout period for executable completion.", |
1693 "id": "NodeInitializationAction", | 1070 "id": "NodeInitializationAction", |
1694 "properties": { | 1071 "properties": { |
1695 "executableFile": { | |
1696 "description": "Required Google Cloud Storage URI of executa
ble file.", | |
1697 "type": "string" | |
1698 }, | |
1699 "executionTimeout": { | 1072 "executionTimeout": { |
1700 "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.", | 1073 "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.", |
1701 "format": "google-duration", | 1074 "format": "google-duration", |
1702 "type": "string" | 1075 "type": "string" |
| 1076 }, |
| 1077 "executableFile": { |
| 1078 "description": "Required Google Cloud Storage URI of executa
ble file.", |
| 1079 "type": "string" |
1703 } | 1080 } |
1704 }, | 1081 }, |
1705 "type": "object" | 1082 "type": "object" |
1706 }, | 1083 }, |
1707 "ListJobsResponse": { | 1084 "ListJobsResponse": { |
1708 "description": "A list of jobs in a project.", | 1085 "description": "A list of jobs in a project.", |
1709 "id": "ListJobsResponse", | 1086 "id": "ListJobsResponse", |
1710 "properties": { | 1087 "properties": { |
1711 "jobs": { | 1088 "jobs": { |
1712 "description": "Output-only Jobs list.", | 1089 "description": "Output-only Jobs list.", |
(...skipping 12 matching lines...) Expand all Loading... |
1725 "CancelJobRequest": { | 1102 "CancelJobRequest": { |
1726 "description": "A request to cancel a job.", | 1103 "description": "A request to cancel a job.", |
1727 "id": "CancelJobRequest", | 1104 "id": "CancelJobRequest", |
1728 "properties": {}, | 1105 "properties": {}, |
1729 "type": "object" | 1106 "type": "object" |
1730 }, | 1107 }, |
1731 "SparkSqlJob": { | 1108 "SparkSqlJob": { |
1732 "description": "A Cloud Dataproc job for running Spark SQL queries."
, | 1109 "description": "A Cloud Dataproc job for running Spark SQL queries."
, |
1733 "id": "SparkSqlJob", | 1110 "id": "SparkSqlJob", |
1734 "properties": { | 1111 "properties": { |
| 1112 "scriptVariables": { |
| 1113 "additionalProperties": { |
| 1114 "type": "string" |
| 1115 }, |
| 1116 "description": "Optional Mapping of query variable names to
values (equivalent to the Spark SQL command: SET name=\"value\";).", |
| 1117 "type": "object" |
| 1118 }, |
| 1119 "jarFileUris": { |
| 1120 "description": "Optional HCFS URIs of jar files to be added
to the Spark CLASSPATH.", |
| 1121 "items": { |
| 1122 "type": "string" |
| 1123 }, |
| 1124 "type": "array" |
| 1125 }, |
| 1126 "loggingConfiguration": { |
| 1127 "$ref": "LoggingConfiguration", |
| 1128 "description": "Optional The runtime log configuration for j
ob execution." |
| 1129 }, |
1735 "properties": { | 1130 "properties": { |
1736 "additionalProperties": { | 1131 "additionalProperties": { |
1737 "type": "string" | 1132 "type": "string" |
1738 }, | 1133 }, |
1739 "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.", | 1134 "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.", |
1740 "type": "object" | 1135 "type": "object" |
1741 }, | 1136 }, |
1742 "queryFileUri": { | |
1743 "description": "The HCFS URI of the script that contains SQL
queries.", | |
1744 "type": "string" | |
1745 }, | |
1746 "queryList": { | 1137 "queryList": { |
1747 "$ref": "QueryList", | 1138 "$ref": "QueryList", |
1748 "description": "A list of queries." | 1139 "description": "A list of queries." |
1749 }, | 1140 }, |
| 1141 "queryFileUri": { |
| 1142 "description": "The HCFS URI of the script that contains SQL
queries.", |
| 1143 "type": "string" |
| 1144 } |
| 1145 }, |
| 1146 "type": "object" |
| 1147 }, |
| 1148 "Cluster": { |
| 1149 "description": "Describes the identifying information, configuration
, and status of a cluster of Google Compute Engine instances.", |
| 1150 "id": "Cluster", |
| 1151 "properties": { |
| 1152 "labels": { |
| 1153 "additionalProperties": { |
| 1154 "type": "string" |
| 1155 }, |
| 1156 "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.", |
| 1157 "type": "object" |
| 1158 }, |
| 1159 "status": { |
| 1160 "$ref": "ClusterStatus", |
| 1161 "description": "Output-only Cluster status." |
| 1162 }, |
| 1163 "metrics": { |
| 1164 "$ref": "ClusterMetrics", |
| 1165 "description": "Contains cluster daemon metrics such as HDFS
and YARN stats." |
| 1166 }, |
| 1167 "statusHistory": { |
| 1168 "description": "Output-only Previous cluster statuses.", |
| 1169 "items": { |
| 1170 "$ref": "ClusterStatus" |
| 1171 }, |
| 1172 "type": "array" |
| 1173 }, |
| 1174 "clusterUuid": { |
| 1175 "description": "Output-only A cluster UUID (Unique Universal
Identifier). Cloud Dataproc generates this value when it creates the cluster.", |
| 1176 "type": "string" |
| 1177 }, |
| 1178 "clusterName": { |
| 1179 "description": "Required The cluster name. Cluster names wit
hin a project must be unique. Names from deleted clusters can be reused.", |
| 1180 "type": "string" |
| 1181 }, |
| 1182 "projectId": { |
| 1183 "description": "Required The Google Cloud Platform project I
D that the cluster belongs to.", |
| 1184 "type": "string" |
| 1185 }, |
| 1186 "configuration": { |
| 1187 "$ref": "ClusterConfiguration", |
| 1188 "description": "Required The cluster configuration. Note tha
t Cloud Dataproc may set default values, and values may change when clusters are
updated." |
| 1189 } |
| 1190 }, |
| 1191 "type": "object" |
| 1192 }, |
| 1193 "ListOperationsResponse": { |
| 1194 "description": "The response message for Operations.ListOperations."
, |
| 1195 "id": "ListOperationsResponse", |
| 1196 "properties": { |
| 1197 "nextPageToken": { |
| 1198 "description": "The standard List next-page token.", |
| 1199 "type": "string" |
| 1200 }, |
| 1201 "operations": { |
| 1202 "description": "A list of operations that matches the specif
ied filter in the request.", |
| 1203 "items": { |
| 1204 "$ref": "Operation" |
| 1205 }, |
| 1206 "type": "array" |
| 1207 } |
| 1208 }, |
| 1209 "type": "object" |
| 1210 }, |
| 1211 "OperationMetadata": { |
| 1212 "description": "Metadata describing the operation.", |
| 1213 "id": "OperationMetadata", |
| 1214 "properties": { |
| 1215 "operationType": { |
| 1216 "description": "Output-only The operation type.", |
| 1217 "type": "string" |
| 1218 }, |
| 1219 "description": { |
| 1220 "description": "Output-only Short description of operation."
, |
| 1221 "type": "string" |
| 1222 }, |
| 1223 "warnings": { |
| 1224 "description": "Output-only Errors encountered during operat
ion execution.", |
| 1225 "items": { |
| 1226 "type": "string" |
| 1227 }, |
| 1228 "type": "array" |
| 1229 }, |
| 1230 "status": { |
| 1231 "$ref": "OperationStatus", |
| 1232 "description": "Output-only Current operation status." |
| 1233 }, |
| 1234 "statusHistory": { |
| 1235 "description": "Output-only Previous operation status.", |
| 1236 "items": { |
| 1237 "$ref": "OperationStatus" |
| 1238 }, |
| 1239 "type": "array" |
| 1240 }, |
| 1241 "clusterName": { |
| 1242 "description": "Name of the cluster for the operation.", |
| 1243 "type": "string" |
| 1244 }, |
| 1245 "clusterUuid": { |
| 1246 "description": "Cluster UUId for the operation.", |
| 1247 "type": "string" |
| 1248 } |
| 1249 }, |
| 1250 "type": "object" |
| 1251 }, |
| 1252 "JobPlacement": { |
| 1253 "description": "Cloud Dataproc job configuration.", |
| 1254 "id": "JobPlacement", |
| 1255 "properties": { |
| 1256 "clusterName": { |
| 1257 "description": "Required The name of the cluster where the j
ob will be submitted.", |
| 1258 "type": "string" |
| 1259 }, |
| 1260 "clusterUuid": { |
| 1261 "description": "Output-only A cluster UUID generated by the
Dataproc service when the job is submitted.", |
| 1262 "type": "string" |
| 1263 } |
| 1264 }, |
| 1265 "type": "object" |
| 1266 }, |
| 1267 "PigJob": { |
| 1268 "description": "A Cloud Dataproc job for running Pig queries on YARN
.", |
| 1269 "id": "PigJob", |
| 1270 "properties": { |
| 1271 "properties": { |
| 1272 "additionalProperties": { |
| 1273 "type": "string" |
| 1274 }, |
| 1275 "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.", |
| 1276 "type": "object" |
| 1277 }, |
| 1278 "continueOnFailure": { |
| 1279 "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.", |
| 1280 "type": "boolean" |
| 1281 }, |
| 1282 "queryList": { |
| 1283 "$ref": "QueryList", |
| 1284 "description": "A list of queries." |
| 1285 }, |
| 1286 "queryFileUri": { |
| 1287 "description": "The HCFS URI of the script that contains the
Pig queries.", |
| 1288 "type": "string" |
| 1289 }, |
1750 "scriptVariables": { | 1290 "scriptVariables": { |
1751 "additionalProperties": { | 1291 "additionalProperties": { |
1752 "type": "string" | 1292 "type": "string" |
1753 }, | 1293 }, |
1754 "description": "Optional Mapping of query variable names to
values (equivalent to the Spark SQL command: SET name=\"value\";).", | 1294 "description": "Optional Mapping of query variable names to
values (equivalent to the Pig command: name=[value]).", |
1755 "type": "object" | 1295 "type": "object" |
1756 }, | 1296 }, |
1757 "jarFileUris": { | 1297 "jarFileUris": { |
1758 "description": "Optional HCFS URIs of jar files to be added
to the Spark CLASSPATH.", | 1298 "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.", |
1759 "items": { | 1299 "items": { |
1760 "type": "string" | 1300 "type": "string" |
1761 }, | 1301 }, |
| 1302 "type": "array" |
| 1303 }, |
| 1304 "loggingConfiguration": { |
| 1305 "$ref": "LoggingConfiguration", |
| 1306 "description": "Optional The runtime log configuration for j
ob execution." |
| 1307 } |
| 1308 }, |
| 1309 "type": "object" |
| 1310 }, |
| 1311 "ClusterStatus": { |
| 1312 "description": "The status of a cluster and its instances.", |
| 1313 "id": "ClusterStatus", |
| 1314 "properties": { |
| 1315 "stateStartTime": { |
| 1316 "description": "Time when this state was entered.", |
| 1317 "format": "google-datetime", |
| 1318 "type": "string" |
| 1319 }, |
| 1320 "substate": { |
| 1321 "description": "Output-only Additional state information tha
t includes status reported by the agent.", |
| 1322 "enum": [ |
| 1323 "UNSPECIFIED", |
| 1324 "UNHEALTHY", |
| 1325 "STALE_STATUS" |
| 1326 ], |
| 1327 "enumDescriptions": [ |
| 1328 "", |
| 1329 "The cluster is known to be in an unhealthy state (for e
xample, critical daemons are not running or HDFS capacity is exhausted).Applies
to RUNNING state.", |
| 1330 "The agent-reported status is out of date (may occur if
Cloud Dataproc loses communication with Agent).Applies to RUNNING state." |
| 1331 ], |
| 1332 "type": "string" |
| 1333 }, |
| 1334 "detail": { |
| 1335 "description": "Optional details of cluster's state.", |
| 1336 "type": "string" |
| 1337 }, |
| 1338 "state": { |
| 1339 "description": "The cluster's state.", |
| 1340 "enum": [ |
| 1341 "UNKNOWN", |
| 1342 "CREATING", |
| 1343 "RUNNING", |
| 1344 "ERROR", |
| 1345 "DELETING", |
| 1346 "UPDATING" |
| 1347 ], |
| 1348 "enumDescriptions": [ |
| 1349 "The cluster state is unknown.", |
| 1350 "The cluster is being created and set up. It is not read
y for use.", |
| 1351 "The cluster is currently running and healthy. It is rea
dy for use.", |
| 1352 "The cluster encountered an error. It is not ready for u
se.", |
| 1353 "The cluster is being deleted. It cannot be used.", |
| 1354 "The cluster is being updated. It continues to accept an
d process jobs." |
| 1355 ], |
| 1356 "type": "string" |
| 1357 } |
| 1358 }, |
| 1359 "type": "object" |
| 1360 }, |
| 1361 "AcceleratorConfiguration": { |
| 1362 "description": "Specifies the type and number of accelerator cards a
ttached to the instances of an instance group (see GPUs on Compute Engine).", |
| 1363 "id": "AcceleratorConfiguration", |
| 1364 "properties": { |
| 1365 "acceleratorTypeUri": { |
| 1366 "description": "Full or partial URI of the accelerator type
resource to expose to this instance. See Google Compute Engine AcceleratorTypes(
/compute/docs/reference/beta/acceleratorTypes)", |
| 1367 "type": "string" |
| 1368 }, |
| 1369 "acceleratorCount": { |
| 1370 "description": "The number of the accelerator cards of this
type exposed to this instance.", |
| 1371 "format": "int32", |
| 1372 "type": "integer" |
| 1373 } |
| 1374 }, |
| 1375 "type": "object" |
| 1376 }, |
| 1377 "ListClustersResponse": { |
| 1378 "description": "The list of all clusters in a project.", |
| 1379 "id": "ListClustersResponse", |
| 1380 "properties": { |
| 1381 "clusters": { |
| 1382 "description": "Output-only The clusters in the project.", |
| 1383 "items": { |
| 1384 "$ref": "Cluster" |
| 1385 }, |
| 1386 "type": "array" |
| 1387 }, |
| 1388 "nextPageToken": { |
| 1389 "description": "The standard List next-page token.", |
| 1390 "type": "string" |
| 1391 } |
| 1392 }, |
| 1393 "type": "object" |
| 1394 }, |
| 1395 "ManagedGroupConfiguration": { |
| 1396 "description": "Specifies the resources used to actively manage an i
nstance group.", |
| 1397 "id": "ManagedGroupConfiguration", |
| 1398 "properties": { |
| 1399 "instanceGroupManagerName": { |
| 1400 "description": "Output-only The name of the Instance Group M
anager for this group.", |
| 1401 "type": "string" |
| 1402 }, |
| 1403 "instanceTemplateName": { |
| 1404 "description": "Output-only The name of the Instance Templat
e used for the Managed Instance Group.", |
| 1405 "type": "string" |
| 1406 } |
| 1407 }, |
| 1408 "type": "object" |
| 1409 }, |
| 1410 "Job": { |
| 1411 "description": "A Cloud Dataproc job resource.", |
| 1412 "id": "Job", |
| 1413 "properties": { |
| 1414 "status": { |
| 1415 "$ref": "JobStatus", |
| 1416 "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." |
| 1417 }, |
| 1418 "placement": { |
| 1419 "$ref": "JobPlacement", |
| 1420 "description": "Required Job information, including how, whe
n, and where to run the job." |
| 1421 }, |
| 1422 "driverControlFilesUri": { |
| 1423 "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.", |
| 1424 "type": "string" |
| 1425 }, |
| 1426 "submittedBy": { |
| 1427 "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>.", |
| 1428 "type": "string" |
| 1429 }, |
| 1430 "scheduling": { |
| 1431 "$ref": "JobScheduling", |
| 1432 "description": "Optional Job scheduling configuration." |
| 1433 }, |
| 1434 "pigJob": { |
| 1435 "$ref": "PigJob", |
| 1436 "description": "Job is a Pig job." |
| 1437 }, |
| 1438 "hiveJob": { |
| 1439 "$ref": "HiveJob", |
| 1440 "description": "Job is a Hive job." |
| 1441 }, |
| 1442 "labels": { |
| 1443 "additionalProperties": { |
| 1444 "type": "string" |
| 1445 }, |
| 1446 "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.", |
| 1447 "type": "object" |
| 1448 }, |
| 1449 "driverOutputResourceUri": { |
| 1450 "description": "Output-only A URI pointing to the location o
f the stdout of the job's driver program.", |
| 1451 "type": "string" |
| 1452 }, |
| 1453 "statusHistory": { |
| 1454 "description": "Output-only The previous job status.", |
| 1455 "items": { |
| 1456 "$ref": "JobStatus" |
| 1457 }, |
| 1458 "type": "array" |
| 1459 }, |
| 1460 "sparkSqlJob": { |
| 1461 "$ref": "SparkSqlJob", |
| 1462 "description": "Job is a SparkSql job." |
| 1463 }, |
| 1464 "sparkJob": { |
| 1465 "$ref": "SparkJob", |
| 1466 "description": "Job is a Spark job." |
| 1467 }, |
| 1468 "yarnApplications": { |
| 1469 "description": "Output-only The collection of YARN applicati
ons spun up by this job.", |
| 1470 "items": { |
| 1471 "$ref": "YarnApplication" |
| 1472 }, |
| 1473 "type": "array" |
| 1474 }, |
| 1475 "pysparkJob": { |
| 1476 "$ref": "PySparkJob", |
| 1477 "description": "Job is a Pyspark job." |
| 1478 }, |
| 1479 "reference": { |
| 1480 "$ref": "JobReference", |
| 1481 "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>." |
| 1482 }, |
| 1483 "interactive": { |
| 1484 "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.", |
| 1485 "type": "boolean" |
| 1486 }, |
| 1487 "driverInputResourceUri": { |
| 1488 "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.", |
| 1489 "type": "string" |
| 1490 }, |
| 1491 "hadoopJob": { |
| 1492 "$ref": "HadoopJob", |
| 1493 "description": "Job is a Hadoop job." |
| 1494 } |
| 1495 }, |
| 1496 "type": "object" |
| 1497 }, |
| 1498 "SparkJob": { |
| 1499 "description": "A Cloud Dataproc job for running Spark applications
on YARN.", |
| 1500 "id": "SparkJob", |
| 1501 "properties": { |
| 1502 "mainClass": { |
| 1503 "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.", |
| 1504 "type": "string" |
| 1505 }, |
| 1506 "archiveUris": { |
| 1507 "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.", |
| 1508 "items": { |
| 1509 "type": "string" |
| 1510 }, |
| 1511 "type": "array" |
| 1512 }, |
| 1513 "mainJarFileUri": { |
| 1514 "description": "The Hadoop Compatible Filesystem (HCFS) URI
of the jar file that contains the main class.", |
| 1515 "type": "string" |
| 1516 }, |
| 1517 "jarFileUris": { |
| 1518 "description": "Optional HCFS URIs of jar files to add to th
e CLASSPATHs of the Spark driver and tasks.", |
| 1519 "items": { |
| 1520 "type": "string" |
| 1521 }, |
| 1522 "type": "array" |
| 1523 }, |
| 1524 "loggingConfiguration": { |
| 1525 "$ref": "LoggingConfiguration", |
| 1526 "description": "Optional The runtime log configuration for j
ob execution." |
| 1527 }, |
| 1528 "properties": { |
| 1529 "additionalProperties": { |
| 1530 "type": "string" |
| 1531 }, |
| 1532 "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.", |
| 1533 "type": "object" |
| 1534 }, |
| 1535 "args": { |
| 1536 "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.", |
| 1537 "items": { |
| 1538 "type": "string" |
| 1539 }, |
| 1540 "type": "array" |
| 1541 }, |
| 1542 "fileUris": { |
| 1543 "description": "Optional HCFS URIs of files to be copied to
the working directory of Spark drivers and distributed tasks. Useful for naively
parallel tasks.", |
| 1544 "items": { |
| 1545 "type": "string" |
| 1546 }, |
| 1547 "type": "array" |
| 1548 } |
| 1549 }, |
| 1550 "type": "object" |
| 1551 }, |
| 1552 "JobStatus": { |
| 1553 "description": "Cloud Dataproc job status.", |
| 1554 "id": "JobStatus", |
| 1555 "properties": { |
| 1556 "state": { |
| 1557 "description": "Required A state message specifying the over
all job state.", |
| 1558 "enum": [ |
| 1559 "STATE_UNSPECIFIED", |
| 1560 "PENDING", |
| 1561 "SETUP_DONE", |
| 1562 "RUNNING", |
| 1563 "CANCEL_PENDING", |
| 1564 "CANCEL_STARTED", |
| 1565 "CANCELLED", |
| 1566 "DONE", |
| 1567 "ERROR", |
| 1568 "ATTEMPT_FAILURE" |
| 1569 ], |
| 1570 "enumDescriptions": [ |
| 1571 "The job state is unknown.", |
| 1572 "The job is pending; it has been submitted, but is not y
et running.", |
| 1573 "Job has been received by the service and completed init
ial setup; it will shortly be submitted to the cluster.", |
| 1574 "The job is running on the cluster.", |
| 1575 "A CancelJob request has been received, but is pending."
, |
| 1576 "Transient in-flight resources have been canceled, and t
he request to cancel the running job has been issued to the cluster.", |
| 1577 "The job cancelation was successful.", |
| 1578 "The job has completed successfully.", |
| 1579 "The job has completed, but encountered an error.", |
| 1580 "Job attempt has failed. The detail field contains failu
re details for this attempt.Applies to restartable jobs only." |
| 1581 ], |
| 1582 "type": "string" |
| 1583 }, |
| 1584 "details": { |
| 1585 "description": "Optional Job state details, such as an error
description if the state is <code>ERROR</code>.", |
| 1586 "type": "string" |
| 1587 }, |
| 1588 "stateStartTime": { |
| 1589 "description": "Output-only The time when this state was ent
ered.", |
| 1590 "format": "google-datetime", |
| 1591 "type": "string" |
| 1592 }, |
| 1593 "substate": { |
| 1594 "description": "Output-only Additional state information, wh
ich includes status reported by the agent.", |
| 1595 "enum": [ |
| 1596 "UNSPECIFIED", |
| 1597 "SUBMITTED", |
| 1598 "QUEUED", |
| 1599 "STALE_STATUS" |
| 1600 ], |
| 1601 "enumDescriptions": [ |
| 1602 "", |
| 1603 "The Job is submitted to the agent.Applies to RUNNING st
ate.", |
| 1604 "The Job has been received and is awaiting execution (it
may be waiting for a condition to be met). See the \"details\" field for the re
ason for the delay.Applies to RUNNING state.", |
| 1605 "The agent-reported status is out of date, which may be
caused by a loss of communication between the agent and Cloud Dataproc. If the a
gent does not send a timely update, the job will fail.Applies to RUNNING state." |
| 1606 ], |
| 1607 "type": "string" |
| 1608 } |
| 1609 }, |
| 1610 "type": "object" |
| 1611 }, |
| 1612 "DiskConfiguration": { |
| 1613 "description": "Specifies the configuration of disk options for a gr
oup of VM instances.", |
| 1614 "id": "DiskConfiguration", |
| 1615 "properties": { |
| 1616 "numLocalSsds": { |
| 1617 "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.", |
| 1618 "format": "int32", |
| 1619 "type": "integer" |
| 1620 }, |
| 1621 "bootDiskSizeGb": { |
| 1622 "description": "Optional Size in GB of the boot disk (defaul
t is 500GB).", |
| 1623 "format": "int32", |
| 1624 "type": "integer" |
| 1625 } |
| 1626 }, |
| 1627 "type": "object" |
| 1628 }, |
| 1629 "ClusterOperationStatus": { |
| 1630 "description": "The status of the operation.", |
| 1631 "id": "ClusterOperationStatus", |
| 1632 "properties": { |
| 1633 "innerState": { |
| 1634 "description": "Output-only A message containing the detaile
d operation state.", |
| 1635 "type": "string" |
| 1636 }, |
| 1637 "stateStartTime": { |
| 1638 "description": "Output-only The time this state was entered.
", |
| 1639 "format": "google-datetime", |
| 1640 "type": "string" |
| 1641 }, |
| 1642 "state": { |
| 1643 "description": "Output-only A message containing the operati
on state.", |
| 1644 "enum": [ |
| 1645 "UNKNOWN", |
| 1646 "PENDING", |
| 1647 "RUNNING", |
| 1648 "DONE" |
| 1649 ], |
| 1650 "enumDescriptions": [ |
| 1651 "Unused.", |
| 1652 "The operation has been created.", |
| 1653 "The operation is running.", |
| 1654 "The operation is done; either cancelled or completed." |
| 1655 ], |
| 1656 "type": "string" |
| 1657 }, |
| 1658 "details": { |
| 1659 "description": "Output-onlyA message containing any operatio
n metadata details.", |
| 1660 "type": "string" |
| 1661 } |
| 1662 }, |
| 1663 "type": "object" |
| 1664 }, |
| 1665 "HadoopJob": { |
| 1666 "description": "A Cloud Dataproc job for running Hadoop MapReduce jo
bs on YARN.", |
| 1667 "id": "HadoopJob", |
| 1668 "properties": { |
| 1669 "mainJarFileUri": { |
| 1670 "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'", |
| 1671 "type": "string" |
| 1672 }, |
| 1673 "jarFileUris": { |
| 1674 "description": "Optional Jar file URIs to add to the CLASSPA
THs of the Hadoop driver and tasks.", |
| 1675 "items": { |
| 1676 "type": "string" |
| 1677 }, |
1762 "type": "array" | 1678 "type": "array" |
1763 }, | 1679 }, |
1764 "loggingConfiguration": { | 1680 "loggingConfiguration": { |
1765 "$ref": "LoggingConfiguration", | 1681 "$ref": "LoggingConfiguration", |
1766 "description": "Optional The runtime log configuration for j
ob execution." | 1682 "description": "Optional The runtime log configuration for j
ob execution." |
1767 } | |
1768 }, | |
1769 "type": "object" | |
1770 }, | |
1771 "Cluster": { | |
1772 "description": "Describes the identifying information, configuration
, and status of a cluster of Google Compute Engine instances.", | |
1773 "id": "Cluster", | |
1774 "properties": { | |
1775 "configuration": { | |
1776 "$ref": "ClusterConfiguration", | |
1777 "description": "Required The cluster configuration. Note tha
t Cloud Dataproc may set default values, and values may change when clusters are
updated." | |
1778 }, | 1683 }, |
1779 "labels": { | 1684 "properties": { |
1780 "additionalProperties": { | 1685 "additionalProperties": { |
1781 "type": "string" | 1686 "type": "string" |
1782 }, | 1687 }, |
1783 "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.", | 1688 "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.", |
1784 "type": "object" | 1689 "type": "object" |
1785 }, | 1690 }, |
1786 "metrics": { | 1691 "args": { |
1787 "$ref": "ClusterMetrics", | 1692 "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.", |
1788 "description": "Contains cluster daemon metrics such as HDFS
and YARN stats." | |
1789 }, | |
1790 "status": { | |
1791 "$ref": "ClusterStatus", | |
1792 "description": "Output-only Cluster status." | |
1793 }, | |
1794 "statusHistory": { | |
1795 "description": "Output-only Previous cluster statuses.", | |
1796 "items": { | 1693 "items": { |
1797 "$ref": "ClusterStatus" | 1694 "type": "string" |
1798 }, | 1695 }, |
1799 "type": "array" | 1696 "type": "array" |
1800 }, | 1697 }, |
1801 "clusterName": { | 1698 "fileUris": { |
1802 "description": "Required The cluster name. Cluster names wit
hin a project must be unique. Names from deleted clusters can be reused.", | 1699 "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.", |
| 1700 "items": { |
| 1701 "type": "string" |
| 1702 }, |
| 1703 "type": "array" |
| 1704 }, |
| 1705 "mainClass": { |
| 1706 "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.", |
1803 "type": "string" | 1707 "type": "string" |
1804 }, | 1708 }, |
1805 "clusterUuid": { | 1709 "archiveUris": { |
1806 "description": "Output-only A cluster UUID (Unique Universal
Identifier). Cloud Dataproc generates this value when it creates the cluster.", | 1710 "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.", |
1807 "type": "string" | |
1808 }, | |
1809 "projectId": { | |
1810 "description": "Required The Google Cloud Platform project I
D that the cluster belongs to.", | |
1811 "type": "string" | |
1812 } | |
1813 }, | |
1814 "type": "object" | |
1815 }, | |
1816 "ListOperationsResponse": { | |
1817 "description": "The response message for Operations.ListOperations."
, | |
1818 "id": "ListOperationsResponse", | |
1819 "properties": { | |
1820 "nextPageToken": { | |
1821 "description": "The standard List next-page token.", | |
1822 "type": "string" | |
1823 }, | |
1824 "operations": { | |
1825 "description": "A list of operations that matches the specif
ied filter in the request.", | |
1826 "items": { | 1711 "items": { |
1827 "$ref": "Operation" | 1712 "type": "string" |
1828 }, | 1713 }, |
1829 "type": "array" | 1714 "type": "array" |
1830 } | 1715 } |
1831 }, | 1716 }, |
1832 "type": "object" | 1717 "type": "object" |
1833 }, | 1718 }, |
1834 "OperationMetadata": { | 1719 "QueryList": { |
| 1720 "description": "A list of queries to run on a cluster.", |
| 1721 "id": "QueryList", |
| 1722 "properties": { |
| 1723 "queries": { |
| 1724 "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", |
| 1725 "items": { |
| 1726 "type": "string" |
| 1727 }, |
| 1728 "type": "array" |
| 1729 } |
| 1730 }, |
| 1731 "type": "object" |
| 1732 }, |
| 1733 "YarnApplication": { |
| 1734 "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>.", |
| 1735 "id": "YarnApplication", |
| 1736 "properties": { |
| 1737 "state": { |
| 1738 "description": "Required The application state.", |
| 1739 "enum": [ |
| 1740 "STATE_UNSPECIFIED", |
| 1741 "NEW", |
| 1742 "NEW_SAVING", |
| 1743 "SUBMITTED", |
| 1744 "ACCEPTED", |
| 1745 "RUNNING", |
| 1746 "FINISHED", |
| 1747 "FAILED", |
| 1748 "KILLED" |
| 1749 ], |
| 1750 "enumDescriptions": [ |
| 1751 "Status is unspecified.", |
| 1752 "Status is NEW.", |
| 1753 "Status is NEW_SAVING.", |
| 1754 "Status is SUBMITTED.", |
| 1755 "Status is ACCEPTED.", |
| 1756 "Status is RUNNING.", |
| 1757 "Status is FINISHED.", |
| 1758 "Status is FAILED.", |
| 1759 "Status is KILLED." |
| 1760 ], |
| 1761 "type": "string" |
| 1762 }, |
| 1763 "name": { |
| 1764 "description": "Required The application name.", |
| 1765 "type": "string" |
| 1766 }, |
| 1767 "trackingUrl": { |
| 1768 "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.", |
| 1769 "type": "string" |
| 1770 }, |
| 1771 "progress": { |
| 1772 "description": "Required The numerical progress of the appli
cation, from 1 to 100.", |
| 1773 "format": "float", |
| 1774 "type": "number" |
| 1775 } |
| 1776 }, |
| 1777 "type": "object" |
| 1778 }, |
| 1779 "DiagnoseClusterRequest": { |
| 1780 "description": "A request to collect cluster diagnostic information.
", |
| 1781 "id": "DiagnoseClusterRequest", |
| 1782 "properties": {}, |
| 1783 "type": "object" |
| 1784 }, |
| 1785 "ClusterOperationMetadata": { |
1835 "description": "Metadata describing the operation.", | 1786 "description": "Metadata describing the operation.", |
1836 "id": "OperationMetadata", | 1787 "id": "ClusterOperationMetadata", |
1837 "properties": { | 1788 "properties": { |
1838 "operationType": { | 1789 "operationType": { |
1839 "description": "Output-only The operation type.", | 1790 "description": "Output-only The operation type.", |
1840 "type": "string" | 1791 "type": "string" |
1841 }, | 1792 }, |
1842 "description": { | 1793 "description": { |
1843 "description": "Output-only Short description of operation."
, | 1794 "description": "Output-only Short description of operation."
, |
1844 "type": "string" | 1795 "type": "string" |
1845 }, | 1796 }, |
1846 "warnings": { | 1797 "warnings": { |
1847 "description": "Output-only Errors encountered during operat
ion execution.", | 1798 "description": "Output-only Errors encountered during operat
ion execution.", |
1848 "items": { | 1799 "items": { |
1849 "type": "string" | 1800 "type": "string" |
1850 }, | 1801 }, |
1851 "type": "array" | 1802 "type": "array" |
1852 }, | 1803 }, |
| 1804 "labels": { |
| 1805 "additionalProperties": { |
| 1806 "type": "string" |
| 1807 }, |
| 1808 "description": "Output-only Labels associated with the opera
tion", |
| 1809 "type": "object" |
| 1810 }, |
1853 "status": { | 1811 "status": { |
1854 "$ref": "OperationStatus", | 1812 "$ref": "ClusterOperationStatus", |
1855 "description": "Output-only Current operation status." | 1813 "description": "Output-only Current operation status." |
1856 }, | 1814 }, |
1857 "statusHistory": { | 1815 "statusHistory": { |
1858 "description": "Output-only Previous operation status.", | 1816 "description": "Output-only The previous operation status.", |
1859 "items": { | 1817 "items": { |
1860 "$ref": "OperationStatus" | 1818 "$ref": "ClusterOperationStatus" |
1861 }, | 1819 }, |
1862 "type": "array" | 1820 "type": "array" |
1863 }, | 1821 }, |
1864 "clusterName": { | 1822 "clusterUuid": { |
1865 "description": "Name of the cluster for the operation.", | 1823 "description": "Output-only Cluster UUID for the operation."
, |
1866 "type": "string" | 1824 "type": "string" |
1867 }, | 1825 }, |
1868 "clusterUuid": { | 1826 "clusterName": { |
1869 "description": "Cluster UUId for the operation.", | 1827 "description": "Output-only Name of the cluster for the oper
ation.", |
1870 "type": "string" | 1828 "type": "string" |
1871 } | 1829 } |
1872 }, | 1830 }, |
1873 "type": "object" | 1831 "type": "object" |
1874 }, | 1832 }, |
1875 "JobPlacement": { | 1833 "Empty": { |
1876 "description": "Cloud Dataproc job configuration.", | 1834 "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 {}.", |
1877 "id": "JobPlacement", | 1835 "id": "Empty", |
| 1836 "properties": {}, |
| 1837 "type": "object" |
| 1838 }, |
| 1839 "HiveJob": { |
| 1840 "description": "A Cloud Dataproc job for running Hive queries on YAR
N.", |
| 1841 "id": "HiveJob", |
1878 "properties": { | 1842 "properties": { |
1879 "clusterName": { | 1843 "continueOnFailure": { |
1880 "description": "Required The name of the cluster where the j
ob will be submitted.", | 1844 "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.", |
| 1845 "type": "boolean" |
| 1846 }, |
| 1847 "queryFileUri": { |
| 1848 "description": "The HCFS URI of the script that contains Hiv
e queries.", |
1881 "type": "string" | 1849 "type": "string" |
1882 }, | 1850 }, |
1883 "clusterUuid": { | 1851 "queryList": { |
1884 "description": "Output-only A cluster UUID generated by the
Dataproc service when the job is submitted.", | 1852 "$ref": "QueryList", |
| 1853 "description": "A list of queries." |
| 1854 }, |
| 1855 "scriptVariables": { |
| 1856 "additionalProperties": { |
| 1857 "type": "string" |
| 1858 }, |
| 1859 "description": "Optional Mapping of query variable names to
values (equivalent to the Hive command: SET name=\"value\";).", |
| 1860 "type": "object" |
| 1861 }, |
| 1862 "jarFileUris": { |
| 1863 "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.", |
| 1864 "items": { |
| 1865 "type": "string" |
| 1866 }, |
| 1867 "type": "array" |
| 1868 }, |
| 1869 "properties": { |
| 1870 "additionalProperties": { |
| 1871 "type": "string" |
| 1872 }, |
| 1873 "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.", |
| 1874 "type": "object" |
| 1875 } |
| 1876 }, |
| 1877 "type": "object" |
| 1878 }, |
| 1879 "DiagnoseClusterResults": { |
| 1880 "description": "The location of diagnostic output.", |
| 1881 "id": "DiagnoseClusterResults", |
| 1882 "properties": { |
| 1883 "outputUri": { |
| 1884 "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.", |
1885 "type": "string" | 1885 "type": "string" |
1886 } | 1886 } |
1887 }, | 1887 }, |
1888 "type": "object" | 1888 "type": "object" |
1889 } | 1889 } |
1890 }, | 1890 }, |
1891 "servicePath": "", | 1891 "servicePath": "", |
1892 "title": "Google Cloud Dataproc API", | 1892 "title": "Google Cloud Dataproc API", |
1893 "version": "v1beta1" | 1893 "version": "v1beta1" |
1894 } | 1894 } |
OLD | NEW |