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:v1", | 21 "id": "dataproc:v1beta2", |
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 "alt": { | 27 "access_token": { |
28 "default": "json", | 28 "description": "OAuth access token.", |
29 "description": "Data format for response.", | |
30 "enum": [ | |
31 "json", | |
32 "media", | |
33 "proto" | |
34 ], | |
35 "enumDescriptions": [ | |
36 "Responses with Content-Type of application/json", | |
37 "Media download with context-dependent Content-Type", | |
38 "Responses with Content-Type of application/x-protobuf" | |
39 ], | |
40 "location": "query", | 29 "location": "query", |
41 "type": "string" | 30 "type": "string" |
42 }, | 31 }, |
43 "key": { | 32 "key": { |
44 "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.", | 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.", |
45 "location": "query", | 34 "location": "query", |
46 "type": "string" | 35 "type": "string" |
47 }, | 36 }, |
48 "access_token": { | |
49 "description": "OAuth access token.", | |
50 "location": "query", | |
51 "type": "string" | |
52 }, | |
53 "quotaUser": { | 37 "quotaUser": { |
54 "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.", | 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.", |
55 "location": "query", | 39 "location": "query", |
56 "type": "string" | 40 "type": "string" |
57 }, | 41 }, |
58 "pp": { | 42 "pp": { |
59 "default": "true", | 43 "default": "true", |
60 "description": "Pretty-print response.", | 44 "description": "Pretty-print response.", |
61 "location": "query", | 45 "location": "query", |
62 "type": "boolean" | 46 "type": "boolean" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 "v1 error format", | 86 "v1 error format", |
103 "v2 error format" | 87 "v2 error format" |
104 ], | 88 ], |
105 "location": "query", | 89 "location": "query", |
106 "type": "string" | 90 "type": "string" |
107 }, | 91 }, |
108 "callback": { | 92 "callback": { |
109 "description": "JSONP", | 93 "description": "JSONP", |
110 "location": "query", | 94 "location": "query", |
111 "type": "string" | 95 "type": "string" |
| 96 }, |
| 97 "alt": { |
| 98 "default": "json", |
| 99 "description": "Data format for response.", |
| 100 "enum": [ |
| 101 "json", |
| 102 "media", |
| 103 "proto" |
| 104 ], |
| 105 "enumDescriptions": [ |
| 106 "Responses with Content-Type of application/json", |
| 107 "Media download with context-dependent Content-Type", |
| 108 "Responses with Content-Type of application/x-protobuf" |
| 109 ], |
| 110 "location": "query", |
| 111 "type": "string" |
112 } | 112 } |
113 }, | 113 }, |
114 "protocol": "rest", | 114 "protocol": "rest", |
115 "resources": { | 115 "resources": { |
116 "projects": { | 116 "projects": { |
117 "resources": { | 117 "resources": { |
118 "regions": { | 118 "regions": { |
119 "resources": { | 119 "resources": { |
120 "jobs": { | 120 "clusters": { |
121 "methods": { | 121 "methods": { |
122 "submit": { | 122 "list": { |
123 "description": "Submits a job to a cluster."
, | 123 "description": "Lists all regions/{region}/c
lusters in a project.", |
124 "httpMethod": "POST", | 124 "httpMethod": "GET", |
125 "id": "dataproc.projects.regions.jobs.submit
", | 125 "id": "dataproc.projects.regions.clusters.li
st", |
126 "parameterOrder": [ | 126 "parameterOrder": [ |
127 "projectId", | 127 "projectId", |
128 "region" | 128 "region" |
129 ], | 129 ], |
130 "parameters": { | 130 "parameters": { |
131 "projectId": { | 131 "filter": { |
132 "description": "Required. The ID of
the Google Cloud Platform project that the job belongs to.", | 132 "description": "Optional. A filter c
onstraining the clusters to list. Filters are case-sensitive and have the follow
ing syntax:field = value AND field = value ...where field is one of status.state
, clusterName, or labels.[KEY], and [KEY] is a label key. value can be * to matc
h all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATI
NG, RUNNING, ERROR, DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATIN
G, and RUNNING states. INACTIVE contains the DELETING and ERROR states. clusterN
ame is the name of the cluster provided at creation time. Only the logical AND o
perator is supported; space-separated items are treated as having an implicit AN
D operator.Example filter:status.state = ACTIVE AND clusterName = mycluster AND
labels.env = staging AND labels.starred = *", |
133 "location": "path", | 133 "location": "query", |
134 "required": true, | |
135 "type": "string" | 134 "type": "string" |
136 }, | 135 }, |
137 "region": { | 136 "region": { |
138 "description": "Required. The Cloud
Dataproc region in which to handle the request.", | 137 "description": "Required. The Cloud
Dataproc region in which to handle the request.", |
139 "location": "path", | 138 "location": "path", |
140 "required": true, | 139 "required": true, |
141 "type": "string" | 140 "type": "string" |
| 141 }, |
| 142 "pageToken": { |
| 143 "description": "Optional. The standa
rd List page token.", |
| 144 "location": "query", |
| 145 "type": "string" |
| 146 }, |
| 147 "pageSize": { |
| 148 "description": "Optional. The standa
rd List page size.", |
| 149 "format": "int32", |
| 150 "location": "query", |
| 151 "type": "integer" |
| 152 }, |
| 153 "projectId": { |
| 154 "description": "Required. The ID of
the Google Cloud Platform project that the cluster belongs to.", |
| 155 "location": "path", |
| 156 "required": true, |
| 157 "type": "string" |
142 } | 158 } |
143 }, | 159 }, |
144 "path": "v1/projects/{projectId}/regions/{re
gion}/jobs:submit", | 160 "path": "v1beta2/projects/{projectId}/region
s/{region}/clusters", |
145 "request": { | |
146 "$ref": "SubmitJobRequest" | |
147 }, | |
148 "response": { | 161 "response": { |
149 "$ref": "Job" | 162 "$ref": "ListClustersResponse" |
150 }, | 163 }, |
151 "scopes": [ | 164 "scopes": [ |
152 "https://www.googleapis.com/auth/cloud-p
latform" | 165 "https://www.googleapis.com/auth/cloud-p
latform" |
153 ] | 166 ] |
154 }, | 167 }, |
155 "delete": { | 168 "create": { |
156 "description": "Deletes the job from the pro
ject. If the job is active, the delete fails, and the response returns FAILED_PR
ECONDITION.", | 169 "description": "Creates a cluster in a proje
ct.", |
157 "httpMethod": "DELETE", | 170 "httpMethod": "POST", |
158 "id": "dataproc.projects.regions.jobs.delete
", | 171 "id": "dataproc.projects.regions.clusters.cr
eate", |
159 "parameterOrder": [ | |
160 "projectId", | |
161 "region", | |
162 "jobId" | |
163 ], | |
164 "parameters": { | |
165 "jobId": { | |
166 "description": "Required. The job ID
.", | |
167 "location": "path", | |
168 "required": true, | |
169 "type": "string" | |
170 }, | |
171 "projectId": { | |
172 "description": "Required. The ID of
the Google Cloud Platform project that the job belongs to.", | |
173 "location": "path", | |
174 "required": true, | |
175 "type": "string" | |
176 }, | |
177 "region": { | |
178 "description": "Required. The Cloud
Dataproc region in which to handle the request.", | |
179 "location": "path", | |
180 "required": true, | |
181 "type": "string" | |
182 } | |
183 }, | |
184 "path": "v1/projects/{projectId}/regions/{re
gion}/jobs/{jobId}", | |
185 "response": { | |
186 "$ref": "Empty" | |
187 }, | |
188 "scopes": [ | |
189 "https://www.googleapis.com/auth/cloud-p
latform" | |
190 ] | |
191 }, | |
192 "list": { | |
193 "description": "Lists regions/{region}/jobs
in a project.", | |
194 "httpMethod": "GET", | |
195 "id": "dataproc.projects.regions.jobs.list", | |
196 "parameterOrder": [ | 172 "parameterOrder": [ |
197 "projectId", | 173 "projectId", |
198 "region" | 174 "region" |
199 ], | 175 ], |
200 "parameters": { | 176 "parameters": { |
201 "filter": { | |
202 "description": "Optional. A filter c
onstraining the jobs to list. Filters are case-sensitive and have the following
syntax:field = value AND field = value ...where field is status.state or labels.
[KEY], and [KEY] is a label key. value can be * to match all values. status.stat
e can be either ACTIVE or INACTIVE. Only the logical AND operator is supported;
space-separated items are treated as having an implicit AND operator.Example fil
ter:status.state = ACTIVE AND labels.env = staging AND labels.starred = *", | |
203 "location": "query", | |
204 "type": "string" | |
205 }, | |
206 "jobStateMatcher": { | |
207 "description": "Optional. Specifies
enumerated categories of jobs to list (default = match ALL jobs).", | |
208 "enum": [ | |
209 "ALL", | |
210 "ACTIVE", | |
211 "NON_ACTIVE" | |
212 ], | |
213 "location": "query", | |
214 "type": "string" | |
215 }, | |
216 "pageToken": { | |
217 "description": "Optional. The page t
oken, returned by a previous call, to request the next page of results.", | |
218 "location": "query", | |
219 "type": "string" | |
220 }, | |
221 "pageSize": { | |
222 "description": "Optional. The number
of results to return in each response.", | |
223 "format": "int32", | |
224 "location": "query", | |
225 "type": "integer" | |
226 }, | |
227 "region": { | 177 "region": { |
228 "description": "Required. The Cloud
Dataproc region in which to handle the request.", | |
229 "location": "path", | |
230 "required": true, | |
231 "type": "string" | |
232 }, | |
233 "clusterName": { | |
234 "description": "Optional. If set, th
e returned jobs list includes only jobs that were submitted to the named cluster
.", | |
235 "location": "query", | |
236 "type": "string" | |
237 }, | |
238 "projectId": { | |
239 "description": "Required. The ID of
the Google Cloud Platform project that the job belongs to.", | |
240 "location": "path", | |
241 "required": true, | |
242 "type": "string" | |
243 } | |
244 }, | |
245 "path": "v1/projects/{projectId}/regions/{re
gion}/jobs", | |
246 "response": { | |
247 "$ref": "ListJobsResponse" | |
248 }, | |
249 "scopes": [ | |
250 "https://www.googleapis.com/auth/cloud-p
latform" | |
251 ] | |
252 }, | |
253 "cancel": { | |
254 "description": "Starts a job cancellation re
quest. To access the job resource after cancellation, call regions/{region}/jobs
.list or regions/{region}/jobs.get.", | |
255 "httpMethod": "POST", | |
256 "id": "dataproc.projects.regions.jobs.cancel
", | |
257 "parameterOrder": [ | |
258 "projectId", | |
259 "region", | |
260 "jobId" | |
261 ], | |
262 "parameters": { | |
263 "region": { | |
264 "description": "Required. The Cloud
Dataproc region in which to handle the request.", | 178 "description": "Required. The Cloud
Dataproc region in which to handle the request.", |
265 "location": "path", | 179 "location": "path", |
266 "required": true, | 180 "required": true, |
267 "type": "string" | 181 "type": "string" |
268 }, | 182 }, |
269 "jobId": { | |
270 "description": "Required. The job ID
.", | |
271 "location": "path", | |
272 "required": true, | |
273 "type": "string" | |
274 }, | |
275 "projectId": { | 183 "projectId": { |
276 "description": "Required. The ID of
the Google Cloud Platform project that the job belongs to.", | 184 "description": "Required. The ID of
the Google Cloud Platform project that the cluster belongs to.", |
277 "location": "path", | 185 "location": "path", |
278 "required": true, | 186 "required": true, |
279 "type": "string" | 187 "type": "string" |
280 } | 188 } |
281 }, | 189 }, |
282 "path": "v1/projects/{projectId}/regions/{re
gion}/jobs/{jobId}:cancel", | 190 "path": "v1beta2/projects/{projectId}/region
s/{region}/clusters", |
283 "request": { | 191 "request": { |
284 "$ref": "CancelJobRequest" | 192 "$ref": "Cluster" |
285 }, | 193 }, |
286 "response": { | 194 "response": { |
287 "$ref": "Job" | 195 "$ref": "Operation" |
288 }, | 196 }, |
289 "scopes": [ | 197 "scopes": [ |
290 "https://www.googleapis.com/auth/cloud-p
latform" | 198 "https://www.googleapis.com/auth/cloud-p
latform" |
291 ] | 199 ] |
292 }, | 200 }, |
293 "patch": { | 201 "patch": { |
294 "description": "Updates a job in a project."
, | 202 "description": "Updates a cluster in a proje
ct.", |
295 "httpMethod": "PATCH", | 203 "httpMethod": "PATCH", |
296 "id": "dataproc.projects.regions.jobs.patch"
, | 204 "id": "dataproc.projects.regions.clusters.pa
tch", |
297 "parameterOrder": [ | 205 "parameterOrder": [ |
298 "projectId", | 206 "projectId", |
299 "region", | 207 "region", |
300 "jobId" | 208 "clusterName" |
301 ], | 209 ], |
302 "parameters": { | 210 "parameters": { |
303 "updateMask": { | 211 "updateMask": { |
304 "description": "Required. Specifies
the path, relative to <code>Job</code>, of the field to update. For example, to
update the labels of a Job the <code>update_mask</code> parameter would be speci
fied as <code>labels</code>, and the PATCH request body would specify the new va
lue. <strong>Note:</strong> Currently, <code>labels</code> is the only field tha
t can be updated.", | 212 "description": "Required. Specifies
the path, relative to <code>Cluster</code>, of the field to update. For example,
to change the number of workers in a cluster to 5, the <code>update_mask</code>
parameter would be specified as <code>config.worker_config.num_instances</code>
, and the PATCH request body would specify the new value, as follows:\n{\n \"co
nfig\":{\n \"workerConfig\":{\n \"numInstances\":\"5\"\n }\n }\n}\nS
imilarly, to change the number of preemptible workers in a cluster to 5, the <co
de>update_mask</code> parameter would be <code>config.secondary_worker_config.nu
m_instances</code>, and the PATCH request body would be set as follows:\n{\n \"
config\":{\n \"secondaryWorkerConfig\":{\n \"numInstances\":\"5\"\n }
\n }\n}\n<strong>Note:</strong> currently only some fields can be updated: |Mas
k|Purpose| |labels|Updates labels| |config.worker_config.num_instances|Resize pr
imary worker group| |config.secondary_worker_config.num_instances|Resize seconda
ry worker group|", |
305 "format": "google-fieldmask", | 213 "format": "google-fieldmask", |
306 "location": "query", | 214 "location": "query", |
307 "type": "string" | 215 "type": "string" |
308 }, | 216 }, |
309 "region": { | 217 "region": { |
310 "description": "Required. The Cloud
Dataproc region in which to handle the request.", | 218 "description": "Required. The Cloud
Dataproc region in which to handle the request.", |
311 "location": "path", | 219 "location": "path", |
312 "required": true, | 220 "required": true, |
313 "type": "string" | 221 "type": "string" |
314 }, | 222 }, |
315 "jobId": { | 223 "clusterName": { |
316 "description": "Required. The job ID
.", | 224 "description": "Required. The cluste
r name.", |
317 "location": "path", | 225 "location": "path", |
318 "required": true, | 226 "required": true, |
319 "type": "string" | 227 "type": "string" |
320 }, | 228 }, |
321 "projectId": { | 229 "projectId": { |
322 "description": "Required. The ID of
the Google Cloud Platform project that the job belongs to.", | 230 "description": "Required. The ID of
the Google Cloud Platform project the cluster belongs to.", |
323 "location": "path", | 231 "location": "path", |
324 "required": true, | 232 "required": true, |
325 "type": "string" | 233 "type": "string" |
326 } | 234 } |
327 }, | 235 }, |
328 "path": "v1/projects/{projectId}/regions/{re
gion}/jobs/{jobId}", | 236 "path": "v1beta2/projects/{projectId}/region
s/{region}/clusters/{clusterName}", |
329 "request": { | 237 "request": { |
330 "$ref": "Job" | 238 "$ref": "Cluster" |
331 }, | 239 }, |
332 "response": { | 240 "response": { |
333 "$ref": "Job" | 241 "$ref": "Operation" |
334 }, | 242 }, |
335 "scopes": [ | 243 "scopes": [ |
336 "https://www.googleapis.com/auth/cloud-p
latform" | 244 "https://www.googleapis.com/auth/cloud-p
latform" |
337 ] | 245 ] |
338 }, | 246 }, |
339 "get": { | 247 "get": { |
340 "description": "Gets the resource representa
tion for a job in a project.", | 248 "description": "Gets the resource representa
tion for a cluster in a project.", |
341 "httpMethod": "GET", | 249 "httpMethod": "GET", |
342 "id": "dataproc.projects.regions.jobs.get", | 250 "id": "dataproc.projects.regions.clusters.ge
t", |
343 "parameterOrder": [ | |
344 "projectId", | |
345 "region", | |
346 "jobId" | |
347 ], | |
348 "parameters": { | |
349 "jobId": { | |
350 "description": "Required. The job ID
.", | |
351 "location": "path", | |
352 "required": true, | |
353 "type": "string" | |
354 }, | |
355 "projectId": { | |
356 "description": "Required. The ID of
the Google Cloud Platform project that the job belongs to.", | |
357 "location": "path", | |
358 "required": true, | |
359 "type": "string" | |
360 }, | |
361 "region": { | |
362 "description": "Required. The Cloud
Dataproc region in which to handle the request.", | |
363 "location": "path", | |
364 "required": true, | |
365 "type": "string" | |
366 } | |
367 }, | |
368 "path": "v1/projects/{projectId}/regions/{re
gion}/jobs/{jobId}", | |
369 "response": { | |
370 "$ref": "Job" | |
371 }, | |
372 "scopes": [ | |
373 "https://www.googleapis.com/auth/cloud-p
latform" | |
374 ] | |
375 } | |
376 } | |
377 }, | |
378 "clusters": { | |
379 "methods": { | |
380 "diagnose": { | |
381 "description": "Gets cluster diagnostic info
rmation. After the operation completes, the Operation.response field contains Di
agnoseClusterOutputLocation.", | |
382 "httpMethod": "POST", | |
383 "id": "dataproc.projects.regions.clusters.di
agnose", | |
384 "parameterOrder": [ | 251 "parameterOrder": [ |
385 "projectId", | 252 "projectId", |
386 "region", | 253 "region", |
387 "clusterName" | 254 "clusterName" |
388 ], | 255 ], |
389 "parameters": { | 256 "parameters": { |
| 257 "region": { |
| 258 "description": "Required. The Cloud
Dataproc region in which to handle the request.", |
| 259 "location": "path", |
| 260 "required": true, |
| 261 "type": "string" |
| 262 }, |
390 "clusterName": { | 263 "clusterName": { |
391 "description": "Required. The cluste
r name.", | 264 "description": "Required. The cluste
r name.", |
392 "location": "path", | 265 "location": "path", |
393 "required": true, | 266 "required": true, |
394 "type": "string" | 267 "type": "string" |
395 }, | 268 }, |
396 "projectId": { | 269 "projectId": { |
397 "description": "Required. The ID of
the Google Cloud Platform project that the cluster belongs to.", | 270 "description": "Required. The ID of
the Google Cloud Platform project that the cluster belongs to.", |
398 "location": "path", | 271 "location": "path", |
399 "required": true, | 272 "required": true, |
400 "type": "string" | 273 "type": "string" |
401 }, | 274 } |
| 275 }, |
| 276 "path": "v1beta2/projects/{projectId}/region
s/{region}/clusters/{clusterName}", |
| 277 "response": { |
| 278 "$ref": "Cluster" |
| 279 }, |
| 280 "scopes": [ |
| 281 "https://www.googleapis.com/auth/cloud-p
latform" |
| 282 ] |
| 283 }, |
| 284 "delete": { |
| 285 "description": "Deletes a cluster in a proje
ct.", |
| 286 "httpMethod": "DELETE", |
| 287 "id": "dataproc.projects.regions.clusters.de
lete", |
| 288 "parameterOrder": [ |
| 289 "projectId", |
| 290 "region", |
| 291 "clusterName" |
| 292 ], |
| 293 "parameters": { |
402 "region": { | 294 "region": { |
403 "description": "Required. The Cloud
Dataproc region in which to handle the request.", | 295 "description": "Required. The Cloud
Dataproc region in which to handle the request.", |
404 "location": "path", | 296 "location": "path", |
405 "required": true, | 297 "required": true, |
406 "type": "string" | 298 "type": "string" |
| 299 }, |
| 300 "clusterName": { |
| 301 "description": "Required. The cluste
r name.", |
| 302 "location": "path", |
| 303 "required": true, |
| 304 "type": "string" |
| 305 }, |
| 306 "projectId": { |
| 307 "description": "Required. The ID of
the Google Cloud Platform project that the cluster belongs to.", |
| 308 "location": "path", |
| 309 "required": true, |
| 310 "type": "string" |
407 } | 311 } |
408 }, | 312 }, |
409 "path": "v1/projects/{projectId}/regions/{re
gion}/clusters/{clusterName}:diagnose", | 313 "path": "v1beta2/projects/{projectId}/region
s/{region}/clusters/{clusterName}", |
410 "request": { | |
411 "$ref": "DiagnoseClusterRequest" | |
412 }, | |
413 "response": { | 314 "response": { |
414 "$ref": "Operation" | 315 "$ref": "Operation" |
415 }, | 316 }, |
416 "scopes": [ | 317 "scopes": [ |
417 "https://www.googleapis.com/auth/cloud-p
latform" | 318 "https://www.googleapis.com/auth/cloud-p
latform" |
418 ] | 319 ] |
419 }, | 320 }, |
420 "delete": { | 321 "diagnose": { |
421 "description": "Deletes a cluster in a proje
ct.", | 322 "description": "Gets cluster diagnostic info
rmation. After the operation completes, the Operation.response field contains Di
agnoseClusterOutputLocation.", |
422 "httpMethod": "DELETE", | 323 "httpMethod": "POST", |
423 "id": "dataproc.projects.regions.clusters.de
lete", | 324 "id": "dataproc.projects.regions.clusters.di
agnose", |
424 "parameterOrder": [ | 325 "parameterOrder": [ |
425 "projectId", | 326 "projectId", |
426 "region", | 327 "region", |
427 "clusterName" | 328 "clusterName" |
428 ], | 329 ], |
429 "parameters": { | 330 "parameters": { |
430 "clusterName": { | |
431 "description": "Required. The cluste
r name.", | |
432 "location": "path", | |
433 "required": true, | |
434 "type": "string" | |
435 }, | |
436 "projectId": { | 331 "projectId": { |
437 "description": "Required. The ID of
the Google Cloud Platform project that the cluster belongs to.", | 332 "description": "Required. The ID of
the Google Cloud Platform project that the cluster belongs to.", |
438 "location": "path", | 333 "location": "path", |
439 "required": true, | 334 "required": true, |
440 "type": "string" | 335 "type": "string" |
441 }, | 336 }, |
442 "region": { | 337 "region": { |
443 "description": "Required. The Cloud
Dataproc region in which to handle the request.", | 338 "description": "Required. The Cloud
Dataproc region in which to handle the request.", |
444 "location": "path", | 339 "location": "path", |
445 "required": true, | 340 "required": true, |
446 "type": "string" | 341 "type": "string" |
447 } | |
448 }, | |
449 "path": "v1/projects/{projectId}/regions/{re
gion}/clusters/{clusterName}", | |
450 "response": { | |
451 "$ref": "Operation" | |
452 }, | |
453 "scopes": [ | |
454 "https://www.googleapis.com/auth/cloud-p
latform" | |
455 ] | |
456 }, | |
457 "list": { | |
458 "description": "Lists all regions/{region}/c
lusters in a project.", | |
459 "httpMethod": "GET", | |
460 "id": "dataproc.projects.regions.clusters.li
st", | |
461 "parameterOrder": [ | |
462 "projectId", | |
463 "region" | |
464 ], | |
465 "parameters": { | |
466 "filter": { | |
467 "description": "Optional. A filter c
onstraining the clusters to list. Filters are case-sensitive and have the follow
ing syntax:field = value AND field = value ...where field is one of status.state
, clusterName, or labels.[KEY], and [KEY] is a label key. value can be * to matc
h all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATI
NG, RUNNING, ERROR, DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATIN
G, and RUNNING states. INACTIVE contains the DELETING and ERROR states. clusterN
ame is the name of the cluster provided at creation time. Only the logical AND o
perator is supported; space-separated items are treated as having an implicit AN
D operator.Example filter:status.state = ACTIVE AND clusterName = mycluster AND
labels.env = staging AND labels.starred = *", | |
468 "location": "query", | |
469 "type": "string" | |
470 }, | |
471 "region": { | |
472 "description": "Required. The Cloud
Dataproc region in which to handle the request.", | |
473 "location": "path", | |
474 "required": true, | |
475 "type": "string" | |
476 }, | |
477 "pageToken": { | |
478 "description": "Optional. The standa
rd List page token.", | |
479 "location": "query", | |
480 "type": "string" | |
481 }, | |
482 "pageSize": { | |
483 "description": "Optional. The standa
rd List page size.", | |
484 "format": "int32", | |
485 "location": "query", | |
486 "type": "integer" | |
487 }, | |
488 "projectId": { | |
489 "description": "Required. The ID of
the Google Cloud Platform project that the cluster belongs to.", | |
490 "location": "path", | |
491 "required": true, | |
492 "type": "string" | |
493 } | |
494 }, | |
495 "path": "v1/projects/{projectId}/regions/{re
gion}/clusters", | |
496 "response": { | |
497 "$ref": "ListClustersResponse" | |
498 }, | |
499 "scopes": [ | |
500 "https://www.googleapis.com/auth/cloud-p
latform" | |
501 ] | |
502 }, | |
503 "create": { | |
504 "description": "Creates a cluster in a proje
ct.", | |
505 "httpMethod": "POST", | |
506 "id": "dataproc.projects.regions.clusters.cr
eate", | |
507 "parameterOrder": [ | |
508 "projectId", | |
509 "region" | |
510 ], | |
511 "parameters": { | |
512 "projectId": { | |
513 "description": "Required. The ID of
the Google Cloud Platform project that the cluster belongs to.", | |
514 "location": "path", | |
515 "required": true, | |
516 "type": "string" | |
517 }, | |
518 "region": { | |
519 "description": "Required. The Cloud
Dataproc region in which to handle the request.", | |
520 "location": "path", | |
521 "required": true, | |
522 "type": "string" | |
523 } | |
524 }, | |
525 "path": "v1/projects/{projectId}/regions/{re
gion}/clusters", | |
526 "request": { | |
527 "$ref": "Cluster" | |
528 }, | |
529 "response": { | |
530 "$ref": "Operation" | |
531 }, | |
532 "scopes": [ | |
533 "https://www.googleapis.com/auth/cloud-p
latform" | |
534 ] | |
535 }, | |
536 "patch": { | |
537 "description": "Updates a cluster in a proje
ct.", | |
538 "httpMethod": "PATCH", | |
539 "id": "dataproc.projects.regions.clusters.pa
tch", | |
540 "parameterOrder": [ | |
541 "projectId", | |
542 "region", | |
543 "clusterName" | |
544 ], | |
545 "parameters": { | |
546 "updateMask": { | |
547 "description": "Required. Specifies
the path, relative to Cluster, of the field to update. For example, to change th
e number of workers in a cluster to 5, the update_mask parameter would be specif
ied as config.worker_config.num_instances, and the PATCH request body would spec
ify the new value, as follows:\n{\n \"config\":{\n \"workerConfig\":{\n
\"numInstances\":\"5\"\n }\n }\n}\nSimilarly, to change the number of preem
ptible workers in a cluster to 5, the update_mask parameter would be config.seco
ndary_worker_config.num_instances, and the PATCH request body would be set as fo
llows:\n{\n \"config\":{\n \"secondaryWorkerConfig\":{\n \"numInstances
\":\"5\"\n }\n }\n}\n<strong>Note:</strong> Currently, only the following fi
elds can be updated:<table> <tbody> <tr> <td><strong>Mask</strong></td> <td>
<strong>Purpose</strong></td> </tr> <tr> <td><strong><em>labels</em></strong>
</td> <td>Update labels</td> </tr> <tr> <td><strong><em>config.worker_config
.num_instances</em></strong></td> <td>Resize primary worker group</td> </tr>
<tr> <td><strong><em>config.secondary_worker_config.num_instances</em></strong>
</td> <td>Resize secondary worker group</td> </tr> </tbody> </table>", | |
548 "format": "google-fieldmask", | |
549 "location": "query", | |
550 "type": "string" | |
551 }, | |
552 "region": { | |
553 "description": "Required. The Cloud
Dataproc region in which to handle the request.", | |
554 "location": "path", | |
555 "required": true, | |
556 "type": "string" | |
557 }, | 342 }, |
558 "clusterName": { | 343 "clusterName": { |
559 "description": "Required. The cluste
r name.", | 344 "description": "Required. The cluste
r name.", |
560 "location": "path", | 345 "location": "path", |
561 "required": true, | 346 "required": true, |
562 "type": "string" | 347 "type": "string" |
563 }, | 348 } |
564 "projectId": { | 349 }, |
565 "description": "Required. The ID of
the Google Cloud Platform project the cluster belongs to.", | 350 "path": "v1beta2/projects/{projectId}/region
s/{region}/clusters/{clusterName}:diagnose", |
| 351 "request": { |
| 352 "$ref": "DiagnoseClusterRequest" |
| 353 }, |
| 354 "response": { |
| 355 "$ref": "Operation" |
| 356 }, |
| 357 "scopes": [ |
| 358 "https://www.googleapis.com/auth/cloud-p
latform" |
| 359 ] |
| 360 } |
| 361 } |
| 362 }, |
| 363 "operations": { |
| 364 "methods": { |
| 365 "cancel": { |
| 366 "description": "Starts asynchronous cancella
tion on a long-running operation. The server makes a best effort to cancel the o
peration, but success is not guaranteed. If the server doesn't support this meth
od, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOper
ation or other methods to check whether the cancellation succeeded or whether th
e operation completed despite cancellation. On successful cancellation, the oper
ation is not deleted; instead, it becomes an operation with an Operation.error v
alue with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", |
| 367 "httpMethod": "POST", |
| 368 "id": "dataproc.projects.regions.operations.
cancel", |
| 369 "parameterOrder": [ |
| 370 "name" |
| 371 ], |
| 372 "parameters": { |
| 373 "name": { |
| 374 "description": "The name of the oper
ation resource to be cancelled.", |
566 "location": "path", | 375 "location": "path", |
| 376 "pattern": "^projects/[^/]+/regions/
[^/]+/operations/[^/]+$", |
567 "required": true, | 377 "required": true, |
568 "type": "string" | 378 "type": "string" |
569 } | 379 } |
570 }, | 380 }, |
571 "path": "v1/projects/{projectId}/regions/{re
gion}/clusters/{clusterName}", | 381 "path": "v1beta2/{+name}:cancel", |
572 "request": { | 382 "response": { |
573 "$ref": "Cluster" | 383 "$ref": "Empty" |
574 }, | 384 }, |
| 385 "scopes": [ |
| 386 "https://www.googleapis.com/auth/cloud-p
latform" |
| 387 ] |
| 388 }, |
| 389 "delete": { |
| 390 "description": "Deletes a long-running opera
tion. This method indicates that the client is no longer interested in the opera
tion result. It does not cancel the operation. If the server doesn't support thi
s method, it returns google.rpc.Code.UNIMPLEMENTED.", |
| 391 "httpMethod": "DELETE", |
| 392 "id": "dataproc.projects.regions.operations.
delete", |
| 393 "parameterOrder": [ |
| 394 "name" |
| 395 ], |
| 396 "parameters": { |
| 397 "name": { |
| 398 "description": "The name of the oper
ation resource to be deleted.", |
| 399 "location": "path", |
| 400 "pattern": "^projects/[^/]+/regions/
[^/]+/operations/[^/]+$", |
| 401 "required": true, |
| 402 "type": "string" |
| 403 } |
| 404 }, |
| 405 "path": "v1beta2/{+name}", |
| 406 "response": { |
| 407 "$ref": "Empty" |
| 408 }, |
| 409 "scopes": [ |
| 410 "https://www.googleapis.com/auth/cloud-p
latform" |
| 411 ] |
| 412 }, |
| 413 "get": { |
| 414 "description": "Gets the latest state of a l
ong-running operation. Clients can use this method to poll the operation result
at intervals as recommended by the API service.", |
| 415 "httpMethod": "GET", |
| 416 "id": "dataproc.projects.regions.operations.
get", |
| 417 "parameterOrder": [ |
| 418 "name" |
| 419 ], |
| 420 "parameters": { |
| 421 "name": { |
| 422 "description": "The name of the oper
ation resource.", |
| 423 "location": "path", |
| 424 "pattern": "^projects/[^/]+/regions/
[^/]+/operations/[^/]+$", |
| 425 "required": true, |
| 426 "type": "string" |
| 427 } |
| 428 }, |
| 429 "path": "v1beta2/{+name}", |
575 "response": { | 430 "response": { |
576 "$ref": "Operation" | 431 "$ref": "Operation" |
577 }, | 432 }, |
578 "scopes": [ | 433 "scopes": [ |
579 "https://www.googleapis.com/auth/cloud-p
latform" | 434 "https://www.googleapis.com/auth/cloud-p
latform" |
580 ] | 435 ] |
581 }, | 436 }, |
582 "get": { | 437 "list": { |
583 "description": "Gets the resource representa
tion for a cluster in a project.", | 438 "description": "Lists operations that match
the specified filter in the request. If the server doesn't support this method,
it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override
the binding to use different resource name schemes, such as users/*/operations.
To override the binding, API services can add a binding such as \"/v1/{name=user
s/*}/operations\" to their service configuration. For backwards compatibility, t
he default name includes the operations collection id, however overriding users
must ensure the name binding is the parent resource, without the operations coll
ection id.", |
584 "httpMethod": "GET", | 439 "httpMethod": "GET", |
585 "id": "dataproc.projects.regions.clusters.ge
t", | 440 "id": "dataproc.projects.regions.operations.
list", |
586 "parameterOrder": [ | 441 "parameterOrder": [ |
587 "projectId", | 442 "name" |
588 "region", | |
589 "clusterName" | |
590 ], | 443 ], |
591 "parameters": { | 444 "parameters": { |
592 "region": { | 445 "pageSize": { |
593 "description": "Required. The Cloud
Dataproc region in which to handle the request.", | 446 "description": "The standard list pa
ge size.", |
594 "location": "path", | 447 "format": "int32", |
595 "required": true, | 448 "location": "query", |
| 449 "type": "integer" |
| 450 }, |
| 451 "filter": { |
| 452 "description": "The standard list fi
lter.", |
| 453 "location": "query", |
596 "type": "string" | 454 "type": "string" |
597 }, | 455 }, |
598 "clusterName": { | 456 "pageToken": { |
599 "description": "Required. The cluste
r name.", | 457 "description": "The standard list pa
ge token.", |
600 "location": "path", | 458 "location": "query", |
601 "required": true, | |
602 "type": "string" | 459 "type": "string" |
603 }, | 460 }, |
604 "projectId": { | 461 "name": { |
605 "description": "Required. The ID of
the Google Cloud Platform project that the cluster belongs to.", | 462 "description": "The name of the oper
ation's parent resource.", |
606 "location": "path", | 463 "location": "path", |
| 464 "pattern": "^projects/[^/]+/regions/
[^/]+/operations$", |
607 "required": true, | 465 "required": true, |
608 "type": "string" | 466 "type": "string" |
609 } | 467 } |
610 }, | 468 }, |
611 "path": "v1/projects/{projectId}/regions/{re
gion}/clusters/{clusterName}", | 469 "path": "v1beta2/{+name}", |
612 "response": { | 470 "response": { |
613 "$ref": "Cluster" | 471 "$ref": "ListOperationsResponse" |
614 }, | 472 }, |
615 "scopes": [ | 473 "scopes": [ |
616 "https://www.googleapis.com/auth/cloud-p
latform" | 474 "https://www.googleapis.com/auth/cloud-p
latform" |
617 ] | 475 ] |
618 } | 476 } |
619 } | 477 } |
620 }, | 478 }, |
621 "operations": { | 479 "jobs": { |
622 "methods": { | 480 "methods": { |
| 481 "submit": { |
| 482 "description": "Submits a job to a cluster."
, |
| 483 "httpMethod": "POST", |
| 484 "id": "dataproc.projects.regions.jobs.submit
", |
| 485 "parameterOrder": [ |
| 486 "projectId", |
| 487 "region" |
| 488 ], |
| 489 "parameters": { |
| 490 "region": { |
| 491 "description": "Required. The Cloud
Dataproc region in which to handle the request.", |
| 492 "location": "path", |
| 493 "required": true, |
| 494 "type": "string" |
| 495 }, |
| 496 "projectId": { |
| 497 "description": "Required. The ID of
the Google Cloud Platform project that the job belongs to.", |
| 498 "location": "path", |
| 499 "required": true, |
| 500 "type": "string" |
| 501 } |
| 502 }, |
| 503 "path": "v1beta2/projects/{projectId}/region
s/{region}/jobs:submit", |
| 504 "request": { |
| 505 "$ref": "SubmitJobRequest" |
| 506 }, |
| 507 "response": { |
| 508 "$ref": "Job" |
| 509 }, |
| 510 "scopes": [ |
| 511 "https://www.googleapis.com/auth/cloud-p
latform" |
| 512 ] |
| 513 }, |
| 514 "delete": { |
| 515 "description": "Deletes the job from the pro
ject. If the job is active, the delete fails, and the response returns FAILED_PR
ECONDITION.", |
| 516 "httpMethod": "DELETE", |
| 517 "id": "dataproc.projects.regions.jobs.delete
", |
| 518 "parameterOrder": [ |
| 519 "projectId", |
| 520 "region", |
| 521 "jobId" |
| 522 ], |
| 523 "parameters": { |
| 524 "region": { |
| 525 "description": "Required. The Cloud
Dataproc region in which to handle the request.", |
| 526 "location": "path", |
| 527 "required": true, |
| 528 "type": "string" |
| 529 }, |
| 530 "jobId": { |
| 531 "description": "Required. The job ID
.", |
| 532 "location": "path", |
| 533 "required": true, |
| 534 "type": "string" |
| 535 }, |
| 536 "projectId": { |
| 537 "description": "Required. The ID of
the Google Cloud Platform project that the job belongs to.", |
| 538 "location": "path", |
| 539 "required": true, |
| 540 "type": "string" |
| 541 } |
| 542 }, |
| 543 "path": "v1beta2/projects/{projectId}/region
s/{region}/jobs/{jobId}", |
| 544 "response": { |
| 545 "$ref": "Empty" |
| 546 }, |
| 547 "scopes": [ |
| 548 "https://www.googleapis.com/auth/cloud-p
latform" |
| 549 ] |
| 550 }, |
| 551 "list": { |
| 552 "description": "Lists regions/{region}/jobs
in a project.", |
| 553 "httpMethod": "GET", |
| 554 "id": "dataproc.projects.regions.jobs.list", |
| 555 "parameterOrder": [ |
| 556 "projectId", |
| 557 "region" |
| 558 ], |
| 559 "parameters": { |
| 560 "projectId": { |
| 561 "description": "Required. The ID of
the Google Cloud Platform project that the job belongs to.", |
| 562 "location": "path", |
| 563 "required": true, |
| 564 "type": "string" |
| 565 }, |
| 566 "filter": { |
| 567 "description": "Optional. A filter c
onstraining the jobs to list. Filters are case-sensitive and have the following
syntax:field = value AND field = value ...where field is status.state or labels.
[KEY], and [KEY] is a label key. value can be * to match all values. status.stat
e can be either ACTIVE or INACTIVE. Only the logical AND operator is supported;
space-separated items are treated as having an implicit AND operator.Example fil
ter:status.state = ACTIVE AND labels.env = staging AND labels.starred = *", |
| 568 "location": "query", |
| 569 "type": "string" |
| 570 }, |
| 571 "jobStateMatcher": { |
| 572 "description": "Optional. Specifies
enumerated categories of jobs to list (default = match ALL jobs).", |
| 573 "enum": [ |
| 574 "ALL", |
| 575 "ACTIVE", |
| 576 "NON_ACTIVE" |
| 577 ], |
| 578 "location": "query", |
| 579 "type": "string" |
| 580 }, |
| 581 "pageToken": { |
| 582 "description": "Optional. The page t
oken, returned by a previous call, to request the next page of results.", |
| 583 "location": "query", |
| 584 "type": "string" |
| 585 }, |
| 586 "pageSize": { |
| 587 "description": "Optional. The number
of results to return in each response.", |
| 588 "format": "int32", |
| 589 "location": "query", |
| 590 "type": "integer" |
| 591 }, |
| 592 "region": { |
| 593 "description": "Required. The Cloud
Dataproc region in which to handle the request.", |
| 594 "location": "path", |
| 595 "required": true, |
| 596 "type": "string" |
| 597 }, |
| 598 "clusterName": { |
| 599 "description": "Optional. If set, th
e returned jobs list includes only jobs that were submitted to the named cluster
.", |
| 600 "location": "query", |
| 601 "type": "string" |
| 602 } |
| 603 }, |
| 604 "path": "v1beta2/projects/{projectId}/region
s/{region}/jobs", |
| 605 "response": { |
| 606 "$ref": "ListJobsResponse" |
| 607 }, |
| 608 "scopes": [ |
| 609 "https://www.googleapis.com/auth/cloud-p
latform" |
| 610 ] |
| 611 }, |
623 "cancel": { | 612 "cancel": { |
624 "description": "Starts asynchronous cancella
tion on a long-running operation. The server makes a best effort to cancel the o
peration, but success is not guaranteed. If the server doesn't support this meth
od, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOper
ation or other methods to check whether the cancellation succeeded or whether th
e operation completed despite cancellation. On successful cancellation, the oper
ation is not deleted; instead, it becomes an operation with an Operation.error v
alue with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.", | 613 "description": "Starts a job cancellation re
quest. To access the job resource after cancellation, call regions/{region}/jobs
.list or regions/{region}/jobs.get.", |
625 "httpMethod": "POST", | 614 "httpMethod": "POST", |
626 "id": "dataproc.projects.regions.operations.
cancel", | 615 "id": "dataproc.projects.regions.jobs.cancel
", |
627 "parameterOrder": [ | 616 "parameterOrder": [ |
628 "name" | 617 "projectId", |
629 ], | 618 "region", |
630 "parameters": { | 619 "jobId" |
631 "name": { | 620 ], |
632 "description": "The name of the oper
ation resource to be cancelled.", | 621 "parameters": { |
633 "location": "path", | 622 "region": { |
634 "pattern": "^projects/[^/]+/regions/
[^/]+/operations/[^/]+$", | 623 "description": "Required. The Cloud
Dataproc region in which to handle the request.", |
635 "required": true, | 624 "location": "path", |
636 "type": "string" | 625 "required": true, |
637 } | 626 "type": "string" |
638 }, | 627 }, |
639 "path": "v1/{+name}:cancel", | 628 "jobId": { |
640 "response": { | 629 "description": "Required. The job ID
.", |
641 "$ref": "Empty" | 630 "location": "path", |
642 }, | 631 "required": true, |
643 "scopes": [ | 632 "type": "string" |
644 "https://www.googleapis.com/auth/cloud-p
latform" | 633 }, |
645 ] | 634 "projectId": { |
646 }, | 635 "description": "Required. The ID of
the Google Cloud Platform project that the job belongs to.", |
647 "delete": { | 636 "location": "path", |
648 "description": "Deletes a long-running opera
tion. This method indicates that the client is no longer interested in the opera
tion result. It does not cancel the operation. If the server doesn't support thi
s method, it returns google.rpc.Code.UNIMPLEMENTED.", | 637 "required": true, |
649 "httpMethod": "DELETE", | 638 "type": "string" |
650 "id": "dataproc.projects.regions.operations.
delete", | 639 } |
651 "parameterOrder": [ | 640 }, |
652 "name" | 641 "path": "v1beta2/projects/{projectId}/region
s/{region}/jobs/{jobId}:cancel", |
653 ], | 642 "request": { |
654 "parameters": { | 643 "$ref": "CancelJobRequest" |
655 "name": { | 644 }, |
656 "description": "The name of the oper
ation resource to be deleted.", | 645 "response": { |
657 "location": "path", | 646 "$ref": "Job" |
658 "pattern": "^projects/[^/]+/regions/
[^/]+/operations/[^/]+$", | |
659 "required": true, | |
660 "type": "string" | |
661 } | |
662 }, | |
663 "path": "v1/{+name}", | |
664 "response": { | |
665 "$ref": "Empty" | |
666 }, | 647 }, |
667 "scopes": [ | 648 "scopes": [ |
668 "https://www.googleapis.com/auth/cloud-p
latform" | 649 "https://www.googleapis.com/auth/cloud-p
latform" |
669 ] | 650 ] |
670 }, | 651 }, |
671 "get": { | 652 "get": { |
672 "description": "Gets the latest state of a l
ong-running operation. Clients can use this method to poll the operation result
at intervals as recommended by the API service.", | 653 "description": "Gets the resource representa
tion for a job in a project.", |
673 "httpMethod": "GET", | 654 "httpMethod": "GET", |
674 "id": "dataproc.projects.regions.operations.
get", | 655 "id": "dataproc.projects.regions.jobs.get", |
675 "parameterOrder": [ | 656 "parameterOrder": [ |
676 "name" | 657 "projectId", |
677 ], | 658 "region", |
678 "parameters": { | 659 "jobId" |
679 "name": { | 660 ], |
680 "description": "The name of the oper
ation resource.", | 661 "parameters": { |
681 "location": "path", | 662 "jobId": { |
682 "pattern": "^projects/[^/]+/regions/
[^/]+/operations/[^/]+$", | 663 "description": "Required. The job ID
.", |
683 "required": true, | 664 "location": "path", |
684 "type": "string" | 665 "required": true, |
685 } | 666 "type": "string" |
686 }, | 667 }, |
687 "path": "v1/{+name}", | 668 "projectId": { |
688 "response": { | 669 "description": "Required. The ID of
the Google Cloud Platform project that the job belongs to.", |
689 "$ref": "Operation" | 670 "location": "path", |
690 }, | 671 "required": true, |
691 "scopes": [ | 672 "type": "string" |
692 "https://www.googleapis.com/auth/cloud-p
latform" | 673 }, |
693 ] | 674 "region": { |
694 }, | 675 "description": "Required. The Cloud
Dataproc region in which to handle the request.", |
695 "list": { | 676 "location": "path", |
696 "description": "Lists operations that match
the specified filter in the request. If the server doesn't support this method,
it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override
the binding to use different resource name schemes, such as users/*/operations.
To override the binding, API services can add a binding such as \"/v1/{name=user
s/*}/operations\" to their service configuration. For backwards compatibility, t
he default name includes the operations collection id, however overriding users
must ensure the name binding is the parent resource, without the operations coll
ection id.", | 677 "required": true, |
697 "httpMethod": "GET", | 678 "type": "string" |
698 "id": "dataproc.projects.regions.operations.
list", | 679 } |
699 "parameterOrder": [ | 680 }, |
700 "name" | 681 "path": "v1beta2/projects/{projectId}/region
s/{region}/jobs/{jobId}", |
701 ], | 682 "response": { |
702 "parameters": { | 683 "$ref": "Job" |
703 "pageToken": { | 684 }, |
704 "description": "The standard list pa
ge token.", | 685 "scopes": [ |
705 "location": "query", | 686 "https://www.googleapis.com/auth/cloud-p
latform" |
706 "type": "string" | 687 ] |
707 }, | 688 }, |
708 "name": { | 689 "patch": { |
709 "description": "The name of the oper
ation's parent resource.", | 690 "description": "Updates a job in a project."
, |
710 "location": "path", | 691 "httpMethod": "PATCH", |
711 "pattern": "^projects/[^/]+/regions/
[^/]+/operations$", | 692 "id": "dataproc.projects.regions.jobs.patch"
, |
712 "required": true, | 693 "parameterOrder": [ |
713 "type": "string" | 694 "projectId", |
714 }, | 695 "region", |
715 "pageSize": { | 696 "jobId" |
716 "description": "The standard list pa
ge size.", | 697 ], |
717 "format": "int32", | 698 "parameters": { |
718 "location": "query", | 699 "updateMask": { |
719 "type": "integer" | 700 "description": "Required. Specifies
the path, relative to <code>Job</code>, of the field to update. For example, to
update the labels of a Job the <code>update_mask</code> parameter would be speci
fied as <code>labels</code>, and the PATCH request body would specify the new va
lue. <strong>Note:</strong> Currently, <code>labels</code> is the only field tha
t can be updated.", |
720 }, | 701 "format": "google-fieldmask", |
721 "filter": { | 702 "location": "query", |
722 "description": "The standard list fi
lter.", | 703 "type": "string" |
723 "location": "query", | 704 }, |
724 "type": "string" | 705 "region": { |
725 } | 706 "description": "Required. The Cloud
Dataproc region in which to handle the request.", |
726 }, | 707 "location": "path", |
727 "path": "v1/{+name}", | 708 "required": true, |
728 "response": { | 709 "type": "string" |
729 "$ref": "ListOperationsResponse" | 710 }, |
730 }, | 711 "jobId": { |
731 "scopes": [ | 712 "description": "Required. The job ID
.", |
732 "https://www.googleapis.com/auth/cloud-p
latform" | 713 "location": "path", |
| 714 "required": true, |
| 715 "type": "string" |
| 716 }, |
| 717 "projectId": { |
| 718 "description": "Required. The ID of
the Google Cloud Platform project that the job belongs to.", |
| 719 "location": "path", |
| 720 "required": true, |
| 721 "type": "string" |
| 722 } |
| 723 }, |
| 724 "path": "v1beta2/projects/{projectId}/region
s/{region}/jobs/{jobId}", |
| 725 "request": { |
| 726 "$ref": "Job" |
| 727 }, |
| 728 "response": { |
| 729 "$ref": "Job" |
| 730 }, |
| 731 "scopes": [ |
| 732 "https://www.googleapis.com/auth/cloud-p
latform" |
733 ] | 733 ] |
734 } | 734 } |
735 } | 735 } |
736 } | 736 } |
737 } | 737 } |
738 } | 738 } |
739 } | 739 } |
740 } | 740 } |
741 }, | 741 }, |
742 "revision": "20170606", | 742 "revision": "20170707", |
743 "rootUrl": "https://dataproc.googleapis.com/", | 743 "rootUrl": "https://dataproc.googleapis.com/", |
744 "schemas": { | 744 "schemas": { |
| 745 "Status": { |
| 746 "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 that can be u
sed for common error conditions.Language mappingThe Status message is the logica
l representation of the error model, but it is not necessarily the actual wire f
ormat. When the Status message is exposed in different client libraries and diff
erent 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 codes
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 includ
e:\nPartial errors. If a service needs to return partial errors to the client, i
t may embed the Status in the normal response to indicate the partial errors.\nW
orkflow errors. A typical workflow has multiple steps. Each step may have a Stat
us message for error reporting.\nBatch operations. If a client uses batch reques
t and batch response, the Status message should be used directly inside batch re
sponse, one for each error sub-response.\nAsynchronous operations. If an API cal
l embeds asynchronous operation results in its response, the status of those ope
rations should be represented directly using the Status message.\nLogging. If so
me API errors are stored in logs, the message Status could be used directly afte
r any stripping needed for security/privacy reasons.", |
| 747 "id": "Status", |
| 748 "properties": { |
| 749 "code": { |
| 750 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
| 751 "format": "int32", |
| 752 "type": "integer" |
| 753 }, |
| 754 "message": { |
| 755 "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.", |
| 756 "type": "string" |
| 757 }, |
| 758 "details": { |
| 759 "description": "A list of messages that carry the error deta
ils. There will be a common set of message types for APIs to use.", |
| 760 "items": { |
| 761 "additionalProperties": { |
| 762 "description": "Properties of the object. Contains f
ield @type with type URL.", |
| 763 "type": "any" |
| 764 }, |
| 765 "type": "object" |
| 766 }, |
| 767 "type": "array" |
| 768 } |
| 769 }, |
| 770 "type": "object" |
| 771 }, |
| 772 "JobScheduling": { |
| 773 "description": "Job scheduling options.Beta Feature: These options a
re available for testing purposes only. They may be changed before final release
.", |
| 774 "id": "JobScheduling", |
| 775 "properties": { |
| 776 "maxFailuresPerHour": { |
| 777 "description": "Optional. Maximum number of times per hour a
driver may be restarted as a result of driver terminating with non-zero code be
fore job is reported failed.A job may be reported as thrashing if driver exits w
ith non-zero code 4 times within 10 minute window.Maximum value is 10.", |
| 778 "format": "int32", |
| 779 "type": "integer" |
| 780 } |
| 781 }, |
| 782 "type": "object" |
| 783 }, |
| 784 "InstanceGroupConfig": { |
| 785 "description": "Optional. The config settings for Google Compute Eng
ine resources in an instance group, such as a master or worker group.", |
| 786 "id": "InstanceGroupConfig", |
| 787 "properties": { |
| 788 "diskConfig": { |
| 789 "$ref": "DiskConfig", |
| 790 "description": "Optional. Disk option config settings." |
| 791 }, |
| 792 "machineTypeUri": { |
| 793 "description": "Optional. The Google Compute Engine machine
type used for cluster instances.A full URL, partial URI, or short name are valid
. Examples:\nhttps://www.googleapis.com/compute/v1/projects/[project_id]/zones/u
s-east1-a/machineTypes/n1-standard-2\nprojects/[project_id]/zones/us-east1-a/mac
hineTypes/n1-standard-2\nn1-standard-2", |
| 794 "type": "string" |
| 795 }, |
| 796 "imageUri": { |
| 797 "description": "Output-only. The Google Compute Engine image
resource used for cluster instances. Inferred from SoftwareConfig.image_version
.", |
| 798 "type": "string" |
| 799 }, |
| 800 "managedGroupConfig": { |
| 801 "$ref": "ManagedGroupConfig", |
| 802 "description": "Output-only. The config for Google Compute E
ngine Instance Group Manager that manages this group. This is only used for pree
mptible instance groups." |
| 803 }, |
| 804 "isPreemptible": { |
| 805 "description": "Optional. Specifies that this instance group
contains preemptible instances.", |
| 806 "type": "boolean" |
| 807 }, |
| 808 "instanceNames": { |
| 809 "description": "Optional. The list of instance names. Cloud
Dataproc derives the names from cluster_name, num_instances, and the instance gr
oup if not set by user (recommended practice is to let Cloud Dataproc derive the
name).", |
| 810 "items": { |
| 811 "type": "string" |
| 812 }, |
| 813 "type": "array" |
| 814 }, |
| 815 "accelerators": { |
| 816 "description": "Optional. The Google Compute Engine accelera
tor configuration for these instances.Beta Feature: This feature is still under
development. It may be changed before final release.", |
| 817 "items": { |
| 818 "$ref": "AcceleratorConfig" |
| 819 }, |
| 820 "type": "array" |
| 821 }, |
| 822 "numInstances": { |
| 823 "description": "Optional. The number of VM instances in the
instance group. For master instance groups, must be set to 1.", |
| 824 "format": "int32", |
| 825 "type": "integer" |
| 826 } |
| 827 }, |
| 828 "type": "object" |
| 829 }, |
| 830 "NodeInitializationAction": { |
| 831 "description": "Specifies an executable to run on a fully configured
node and a timeout period for executable completion.", |
| 832 "id": "NodeInitializationAction", |
| 833 "properties": { |
| 834 "executableFile": { |
| 835 "description": "Required. Google Cloud Storage URI of execut
able file.", |
| 836 "type": "string" |
| 837 }, |
| 838 "executionTimeout": { |
| 839 "description": "Optional. Amount of time executable has to c
omplete. Default is 10 minutes. Cluster creation fails with an explanatory error
message (the name of the executable that caused the error and the exceeded time
out period) if the executable is not completed at end of the timeout period.", |
| 840 "format": "google-duration", |
| 841 "type": "string" |
| 842 } |
| 843 }, |
| 844 "type": "object" |
| 845 }, |
| 846 "ListJobsResponse": { |
| 847 "description": "A list of jobs in a project.", |
| 848 "id": "ListJobsResponse", |
| 849 "properties": { |
| 850 "nextPageToken": { |
| 851 "description": "Optional. This token is included in the resp
onse if there are more results to fetch. To fetch additional results, provide th
is value as the page_token in a subsequent <code>ListJobsRequest</code>.", |
| 852 "type": "string" |
| 853 }, |
| 854 "jobs": { |
| 855 "description": "Output-only. Jobs list.", |
| 856 "items": { |
| 857 "$ref": "Job" |
| 858 }, |
| 859 "type": "array" |
| 860 } |
| 861 }, |
| 862 "type": "object" |
| 863 }, |
| 864 "CancelJobRequest": { |
| 865 "description": "A request to cancel a job.", |
| 866 "id": "CancelJobRequest", |
| 867 "properties": {}, |
| 868 "type": "object" |
| 869 }, |
| 870 "SparkSqlJob": { |
| 871 "description": "A Cloud Dataproc job for running Apache Spark SQL (h
ttp://spark.apache.org/sql/) queries.", |
| 872 "id": "SparkSqlJob", |
| 873 "properties": { |
| 874 "scriptVariables": { |
| 875 "additionalProperties": { |
| 876 "type": "string" |
| 877 }, |
| 878 "description": "Optional. Mapping of query variable names to
values (equivalent to the Spark SQL command: SET name=\"value\";).", |
| 879 "type": "object" |
| 880 }, |
| 881 "jarFileUris": { |
| 882 "description": "Optional. HCFS URIs of jar files to be added
to the Spark CLASSPATH.", |
| 883 "items": { |
| 884 "type": "string" |
| 885 }, |
| 886 "type": "array" |
| 887 }, |
| 888 "loggingConfig": { |
| 889 "$ref": "LoggingConfig", |
| 890 "description": "Optional. The runtime log config for job exe
cution." |
| 891 }, |
| 892 "properties": { |
| 893 "additionalProperties": { |
| 894 "type": "string" |
| 895 }, |
| 896 "description": "Optional. A mapping of property names to val
ues, used to configure Spark SQL's SparkConf. Properties that conflict with valu
es set by the Cloud Dataproc API may be overwritten.", |
| 897 "type": "object" |
| 898 }, |
| 899 "queryFileUri": { |
| 900 "description": "The HCFS URI of the script that contains SQL
queries.", |
| 901 "type": "string" |
| 902 }, |
| 903 "queryList": { |
| 904 "$ref": "QueryList", |
| 905 "description": "A list of queries." |
| 906 } |
| 907 }, |
| 908 "type": "object" |
| 909 }, |
| 910 "Cluster": { |
| 911 "description": "Describes the identifying information, config, and s
tatus of a cluster of Google Compute Engine instances.", |
| 912 "id": "Cluster", |
| 913 "properties": { |
| 914 "labels": { |
| 915 "additionalProperties": { |
| 916 "type": "string" |
| 917 }, |
| 918 "description": "Optional. The labels to associate with this
cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 103
5 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if pre
sent, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www
.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a clus
ter.", |
| 919 "type": "object" |
| 920 }, |
| 921 "metrics": { |
| 922 "$ref": "ClusterMetrics", |
| 923 "description": "Contains cluster daemon metrics such as HDFS
and YARN stats.Beta Feature: This report is available for testing purposes only
. It may be changed before final release." |
| 924 }, |
| 925 "status": { |
| 926 "$ref": "ClusterStatus", |
| 927 "description": "Output-only. Cluster status." |
| 928 }, |
| 929 "statusHistory": { |
| 930 "description": "Output-only. The previous cluster status.", |
| 931 "items": { |
| 932 "$ref": "ClusterStatus" |
| 933 }, |
| 934 "type": "array" |
| 935 }, |
| 936 "config": { |
| 937 "$ref": "ClusterConfig", |
| 938 "description": "Required. The cluster config. Note that Clou
d Dataproc may set default values, and values may change when clusters are updat
ed." |
| 939 }, |
| 940 "clusterUuid": { |
| 941 "description": "Output-only. A cluster UUID (Unique Universa
l Identifier). Cloud Dataproc generates this value when it creates the cluster."
, |
| 942 "type": "string" |
| 943 }, |
| 944 "clusterName": { |
| 945 "description": "Required. The cluster name. Cluster names wi
thin a project must be unique. Names of deleted clusters can be reused.", |
| 946 "type": "string" |
| 947 }, |
| 948 "projectId": { |
| 949 "description": "Required. The Google Cloud Platform project
ID that the cluster belongs to.", |
| 950 "type": "string" |
| 951 } |
| 952 }, |
| 953 "type": "object" |
| 954 }, |
| 955 "ListOperationsResponse": { |
| 956 "description": "The response message for Operations.ListOperations."
, |
| 957 "id": "ListOperationsResponse", |
| 958 "properties": { |
| 959 "nextPageToken": { |
| 960 "description": "The standard List next-page token.", |
| 961 "type": "string" |
| 962 }, |
| 963 "operations": { |
| 964 "description": "A list of operations that matches the specif
ied filter in the request.", |
| 965 "items": { |
| 966 "$ref": "Operation" |
| 967 }, |
| 968 "type": "array" |
| 969 } |
| 970 }, |
| 971 "type": "object" |
| 972 }, |
| 973 "SoftwareConfig": { |
| 974 "description": "Specifies the selection and config of software insid
e the cluster.", |
| 975 "id": "SoftwareConfig", |
| 976 "properties": { |
| 977 "imageVersion": { |
| 978 "description": "Optional. The version of software inside the
cluster. It must match the regular expression [0-9]+\\.[0-9]+. If unspecified,
it defaults to the latest version (see Cloud Dataproc Versioning).", |
| 979 "type": "string" |
| 980 }, |
| 981 "properties": { |
| 982 "additionalProperties": { |
| 983 "type": "string" |
| 984 }, |
| 985 "description": "Optional. The properties to set on daemon co
nfig files.Property keys are specified in prefix:property format, such as core:f
s.defaultFS. The following are supported prefixes and their mappings:\ncapacity-
scheduler: capacity-scheduler.xml\ncore: core-site.xml\ndistcp: distcp-default.x
ml\nhdfs: hdfs-site.xml\nhive: hive-site.xml\nmapred: mapred-site.xml\npig: pig.
properties\nspark: spark-defaults.conf\nyarn: yarn-site.xml", |
| 986 "type": "object" |
| 987 } |
| 988 }, |
| 989 "type": "object" |
| 990 }, |
| 991 "JobPlacement": { |
| 992 "description": "Cloud Dataproc job config.", |
| 993 "id": "JobPlacement", |
| 994 "properties": { |
| 995 "clusterUuid": { |
| 996 "description": "Output-only. A cluster UUID generated by the
Cloud Dataproc service when the job is submitted.", |
| 997 "type": "string" |
| 998 }, |
| 999 "clusterName": { |
| 1000 "description": "Required. The name of the cluster where the
job will be submitted.", |
| 1001 "type": "string" |
| 1002 } |
| 1003 }, |
| 1004 "type": "object" |
| 1005 }, |
| 1006 "PigJob": { |
| 1007 "description": "A Cloud Dataproc job for running Apache Pig (https:/
/pig.apache.org/) queries on YARN.", |
| 1008 "id": "PigJob", |
| 1009 "properties": { |
| 1010 "jarFileUris": { |
| 1011 "description": "Optional. HCFS URIs of jar files to add to t
he CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig
UDFs.", |
| 1012 "items": { |
| 1013 "type": "string" |
| 1014 }, |
| 1015 "type": "array" |
| 1016 }, |
| 1017 "scriptVariables": { |
| 1018 "additionalProperties": { |
| 1019 "type": "string" |
| 1020 }, |
| 1021 "description": "Optional. Mapping of query variable names to
values (equivalent to the Pig command: name=[value]).", |
| 1022 "type": "object" |
| 1023 }, |
| 1024 "loggingConfig": { |
| 1025 "$ref": "LoggingConfig", |
| 1026 "description": "Optional. The runtime log config for job exe
cution." |
| 1027 }, |
| 1028 "properties": { |
| 1029 "additionalProperties": { |
| 1030 "type": "string" |
| 1031 }, |
| 1032 "description": "Optional. A mapping of property names to val
ues, used to configure Pig. Properties that conflict with values set by the Clou
d Dataproc API may be overwritten. Can include properties set in /etc/hadoop/con
f/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.", |
| 1033 "type": "object" |
| 1034 }, |
| 1035 "continueOnFailure": { |
| 1036 "description": "Optional. Whether to continue executing quer
ies if a query fails. The default value is false. Setting to true can be useful
when executing independent parallel queries.", |
| 1037 "type": "boolean" |
| 1038 }, |
| 1039 "queryList": { |
| 1040 "$ref": "QueryList", |
| 1041 "description": "A list of queries." |
| 1042 }, |
| 1043 "queryFileUri": { |
| 1044 "description": "The HCFS URI of the script that contains the
Pig queries.", |
| 1045 "type": "string" |
| 1046 } |
| 1047 }, |
| 1048 "type": "object" |
| 1049 }, |
| 1050 "ClusterStatus": { |
| 1051 "description": "The status of a cluster and its instances.", |
| 1052 "id": "ClusterStatus", |
| 1053 "properties": { |
| 1054 "detail": { |
| 1055 "description": "Output-only. Optional details of cluster's s
tate.", |
| 1056 "type": "string" |
| 1057 }, |
| 1058 "state": { |
| 1059 "description": "Output-only. The cluster's state.", |
| 1060 "enum": [ |
| 1061 "UNKNOWN", |
| 1062 "CREATING", |
| 1063 "RUNNING", |
| 1064 "ERROR", |
| 1065 "DELETING", |
| 1066 "UPDATING" |
| 1067 ], |
| 1068 "enumDescriptions": [ |
| 1069 "The cluster state is unknown.", |
| 1070 "The cluster is being created and set up. It is not read
y for use.", |
| 1071 "The cluster is currently running and healthy. It is rea
dy for use.", |
| 1072 "The cluster encountered an error. It is not ready for u
se.", |
| 1073 "The cluster is being deleted. It cannot be used.", |
| 1074 "The cluster is being updated. It continues to accept an
d process jobs." |
| 1075 ], |
| 1076 "type": "string" |
| 1077 }, |
| 1078 "substate": { |
| 1079 "description": "Output-only. Additional state information th
at includes status reported by the agent.", |
| 1080 "enum": [ |
| 1081 "UNSPECIFIED", |
| 1082 "UNHEALTHY", |
| 1083 "STALE_STATUS" |
| 1084 ], |
| 1085 "enumDescriptions": [ |
| 1086 "", |
| 1087 "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.", |
| 1088 "The agent-reported status is out of date (may occur if
Cloud Dataproc loses communication with Agent).Applies to RUNNING state." |
| 1089 ], |
| 1090 "type": "string" |
| 1091 }, |
| 1092 "stateStartTime": { |
| 1093 "description": "Output-only. Time when this state was entere
d.", |
| 1094 "format": "google-datetime", |
| 1095 "type": "string" |
| 1096 } |
| 1097 }, |
| 1098 "type": "object" |
| 1099 }, |
745 "ListClustersResponse": { | 1100 "ListClustersResponse": { |
746 "description": "The list of all clusters in a project.", | 1101 "description": "The list of all clusters in a project.", |
747 "id": "ListClustersResponse", | 1102 "id": "ListClustersResponse", |
748 "properties": { | 1103 "properties": { |
749 "nextPageToken": { | 1104 "nextPageToken": { |
750 "description": "Output-only. This token is included in the r
esponse if there are more results to fetch. To fetch additional results, provide
this value as the page_token in a subsequent ListClustersRequest.", | 1105 "description": "Output-only. This token is included in the r
esponse if there are more results to fetch. To fetch additional results, provide
this value as the page_token in a subsequent <code>ListClustersRequest</code>."
, |
751 "type": "string" | 1106 "type": "string" |
752 }, | 1107 }, |
753 "clusters": { | 1108 "clusters": { |
754 "description": "Output-only. The clusters in the project.", | 1109 "description": "Output-only. The clusters in the project.", |
755 "items": { | 1110 "items": { |
756 "$ref": "Cluster" | 1111 "$ref": "Cluster" |
757 }, | 1112 }, |
758 "type": "array" | 1113 "type": "array" |
759 } | 1114 } |
760 }, | 1115 }, |
761 "type": "object" | 1116 "type": "object" |
762 }, | 1117 }, |
| 1118 "Job": { |
| 1119 "description": "A Cloud Dataproc job resource.", |
| 1120 "id": "Job", |
| 1121 "properties": { |
| 1122 "yarnApplications": { |
| 1123 "description": "Output-only. The collection of YARN applicat
ions spun up by this job.Beta Feature: This report is available for testing purp
oses only. It may be changed before final release.", |
| 1124 "items": { |
| 1125 "$ref": "YarnApplication" |
| 1126 }, |
| 1127 "type": "array" |
| 1128 }, |
| 1129 "pysparkJob": { |
| 1130 "$ref": "PySparkJob", |
| 1131 "description": "Job is a Pyspark job." |
| 1132 }, |
| 1133 "reference": { |
| 1134 "$ref": "JobReference", |
| 1135 "description": "Optional. The fully qualified reference to t
he 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>." |
| 1136 }, |
| 1137 "hadoopJob": { |
| 1138 "$ref": "HadoopJob", |
| 1139 "description": "Job is a Hadoop job." |
| 1140 }, |
| 1141 "status": { |
| 1142 "$ref": "JobStatus", |
| 1143 "description": "Output-only. The job status. Additional appl
ication-specific status information may be contained in the <code>type_job</code
> and <code>yarn_applications</code> fields." |
| 1144 }, |
| 1145 "placement": { |
| 1146 "$ref": "JobPlacement", |
| 1147 "description": "Required. Job information, including how, wh
en, and where to run the job." |
| 1148 }, |
| 1149 "driverControlFilesUri": { |
| 1150 "description": "Output-only. If present, the location of mis
cellaneous control files which may be used as part of job setup and handling. If
not present, control files may be placed in the same location as driver_output_
uri.", |
| 1151 "type": "string" |
| 1152 }, |
| 1153 "scheduling": { |
| 1154 "$ref": "JobScheduling", |
| 1155 "description": "Optional. Job scheduling configuration." |
| 1156 }, |
| 1157 "pigJob": { |
| 1158 "$ref": "PigJob", |
| 1159 "description": "Job is a Pig job." |
| 1160 }, |
| 1161 "hiveJob": { |
| 1162 "$ref": "HiveJob", |
| 1163 "description": "Job is a Hive job." |
| 1164 }, |
| 1165 "labels": { |
| 1166 "additionalProperties": { |
| 1167 "type": "string" |
| 1168 }, |
| 1169 "description": "Optional. The labels to associate with this
job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (h
ttps://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present
, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.iet
f.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job.", |
| 1170 "type": "object" |
| 1171 }, |
| 1172 "driverOutputResourceUri": { |
| 1173 "description": "Output-only. A URI pointing to the location
of the stdout of the job's driver program.", |
| 1174 "type": "string" |
| 1175 }, |
| 1176 "statusHistory": { |
| 1177 "description": "Output-only. The previous job status.", |
| 1178 "items": { |
| 1179 "$ref": "JobStatus" |
| 1180 }, |
| 1181 "type": "array" |
| 1182 }, |
| 1183 "sparkSqlJob": { |
| 1184 "$ref": "SparkSqlJob", |
| 1185 "description": "Job is a SparkSql job." |
| 1186 }, |
| 1187 "sparkJob": { |
| 1188 "$ref": "SparkJob", |
| 1189 "description": "Job is a Spark job." |
| 1190 } |
| 1191 }, |
| 1192 "type": "object" |
| 1193 }, |
763 "SparkJob": { | 1194 "SparkJob": { |
764 "description": "A Cloud Dataproc job for running Apache Spark (http:
//spark.apache.org/) applications on YARN.", | 1195 "description": "A Cloud Dataproc job for running Apache Spark (http:
//spark.apache.org/) applications on YARN.", |
765 "id": "SparkJob", | 1196 "id": "SparkJob", |
766 "properties": { | 1197 "properties": { |
| 1198 "mainClass": { |
| 1199 "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.", |
| 1200 "type": "string" |
| 1201 }, |
| 1202 "archiveUris": { |
| 1203 "description": "Optional. HCFS URIs of archives to be extrac
ted in the working directory of Spark drivers and tasks. Supported file types: .
jar, .tar, .tar.gz, .tgz, and .zip.", |
| 1204 "items": { |
| 1205 "type": "string" |
| 1206 }, |
| 1207 "type": "array" |
| 1208 }, |
767 "mainJarFileUri": { | 1209 "mainJarFileUri": { |
768 "description": "The HCFS URI of the jar file that contains t
he main class.", | 1210 "description": "The HCFS URI of the jar file that contains t
he main class.", |
769 "type": "string" | 1211 "type": "string" |
770 }, | 1212 }, |
771 "jarFileUris": { | 1213 "jarFileUris": { |
772 "description": "Optional. HCFS URIs of jar files to add to t
he CLASSPATHs of the Spark driver and tasks.", | 1214 "description": "Optional. HCFS URIs of jar files to add to t
he CLASSPATHs of the Spark driver and tasks.", |
773 "items": { | 1215 "items": { |
774 "type": "string" | 1216 "type": "string" |
775 }, | 1217 }, |
776 "type": "array" | 1218 "type": "array" |
(...skipping 15 matching lines...) Expand all Loading... |
792 "type": "string" | 1234 "type": "string" |
793 }, | 1235 }, |
794 "type": "array" | 1236 "type": "array" |
795 }, | 1237 }, |
796 "fileUris": { | 1238 "fileUris": { |
797 "description": "Optional. HCFS URIs of files to be copied to
the working directory of Spark drivers and distributed tasks. Useful for naivel
y parallel tasks.", | 1239 "description": "Optional. HCFS URIs of files to be copied to
the working directory of Spark drivers and distributed tasks. Useful for naivel
y parallel tasks.", |
798 "items": { | 1240 "items": { |
799 "type": "string" | 1241 "type": "string" |
800 }, | 1242 }, |
801 "type": "array" | 1243 "type": "array" |
802 }, | |
803 "mainClass": { | |
804 "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.", | |
805 "type": "string" | |
806 }, | |
807 "archiveUris": { | |
808 "description": "Optional. HCFS URIs of archives to be extrac
ted in the working directory of Spark drivers and tasks. Supported file types: .
jar, .tar, .tar.gz, .tgz, and .zip.", | |
809 "items": { | |
810 "type": "string" | |
811 }, | |
812 "type": "array" | |
813 } | |
814 }, | |
815 "type": "object" | |
816 }, | |
817 "Job": { | |
818 "description": "A Cloud Dataproc job resource.", | |
819 "id": "Job", | |
820 "properties": { | |
821 "hiveJob": { | |
822 "$ref": "HiveJob", | |
823 "description": "Job is a Hive job." | |
824 }, | |
825 "labels": { | |
826 "additionalProperties": { | |
827 "type": "string" | |
828 }, | |
829 "description": "Optional. The labels to associate with this
job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (h
ttps://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present
, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.iet
f.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job.", | |
830 "type": "object" | |
831 }, | |
832 "driverOutputResourceUri": { | |
833 "description": "Output-only. A URI pointing to the location
of the stdout of the job's driver program.", | |
834 "type": "string" | |
835 }, | |
836 "sparkSqlJob": { | |
837 "$ref": "SparkSqlJob", | |
838 "description": "Job is a SparkSql job." | |
839 }, | |
840 "sparkJob": { | |
841 "$ref": "SparkJob", | |
842 "description": "Job is a Spark job." | |
843 }, | |
844 "statusHistory": { | |
845 "description": "Output-only. The previous job status.", | |
846 "items": { | |
847 "$ref": "JobStatus" | |
848 }, | |
849 "type": "array" | |
850 }, | |
851 "yarnApplications": { | |
852 "description": "Output-only. The collection of YARN applicat
ions spun up by this job.Beta Feature: This report is available for testing purp
oses only. It may be changed before final release.", | |
853 "items": { | |
854 "$ref": "YarnApplication" | |
855 }, | |
856 "type": "array" | |
857 }, | |
858 "pysparkJob": { | |
859 "$ref": "PySparkJob", | |
860 "description": "Job is a Pyspark job." | |
861 }, | |
862 "reference": { | |
863 "$ref": "JobReference", | |
864 "description": "Optional. The fully qualified reference to t
he 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>." | |
865 }, | |
866 "hadoopJob": { | |
867 "$ref": "HadoopJob", | |
868 "description": "Job is a Hadoop job." | |
869 }, | |
870 "placement": { | |
871 "$ref": "JobPlacement", | |
872 "description": "Required. Job information, including how, wh
en, and where to run the job." | |
873 }, | |
874 "status": { | |
875 "$ref": "JobStatus", | |
876 "description": "Output-only. The job status. Additional appl
ication-specific status information may be contained in the <code>type_job</code
> and <code>yarn_applications</code> fields." | |
877 }, | |
878 "driverControlFilesUri": { | |
879 "description": "Output-only. If present, the location of mis
cellaneous control files which may be used as part of job setup and handling. If
not present, control files may be placed in the same location as driver_output_
uri.", | |
880 "type": "string" | |
881 }, | |
882 "scheduling": { | |
883 "$ref": "JobScheduling", | |
884 "description": "Optional. Job scheduling configuration." | |
885 }, | |
886 "pigJob": { | |
887 "$ref": "PigJob", | |
888 "description": "Job is a Pig job." | |
889 } | 1244 } |
890 }, | 1245 }, |
891 "type": "object" | 1246 "type": "object" |
892 }, | 1247 }, |
893 "JobStatus": { | 1248 "JobStatus": { |
894 "description": "Cloud Dataproc job status.", | 1249 "description": "Cloud Dataproc job status.", |
895 "id": "JobStatus", | 1250 "id": "JobStatus", |
896 "properties": { | 1251 "properties": { |
897 "details": { | 1252 "details": { |
898 "description": "Output-only. Optional job state details, suc
h as an error description if the state is <code>ERROR</code>.", | 1253 "description": "Output-only. Optional job state details, suc
h as an error description if the state is <code>ERROR</code>.", |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 "description": "Output-only. The name of the Instance Templa
te used for the Managed Instance Group.", | 1317 "description": "Output-only. The name of the Instance Templa
te used for the Managed Instance Group.", |
963 "type": "string" | 1318 "type": "string" |
964 } | 1319 } |
965 }, | 1320 }, |
966 "type": "object" | 1321 "type": "object" |
967 }, | 1322 }, |
968 "ClusterOperationStatus": { | 1323 "ClusterOperationStatus": { |
969 "description": "The status of the operation.", | 1324 "description": "The status of the operation.", |
970 "id": "ClusterOperationStatus", | 1325 "id": "ClusterOperationStatus", |
971 "properties": { | 1326 "properties": { |
972 "stateStartTime": { | |
973 "description": "Output-only. The time this state was entered
.", | |
974 "format": "google-datetime", | |
975 "type": "string" | |
976 }, | |
977 "details": { | 1327 "details": { |
978 "description": "Output-only.A message containing any operati
on metadata details.", | 1328 "description": "Output-only.A message containing any operati
on metadata details.", |
979 "type": "string" | 1329 "type": "string" |
980 }, | 1330 }, |
981 "state": { | 1331 "state": { |
982 "description": "Output-only. A message containing the operat
ion state.", | 1332 "description": "Output-only. A message containing the operat
ion state.", |
983 "enum": [ | 1333 "enum": [ |
984 "UNKNOWN", | 1334 "UNKNOWN", |
985 "PENDING", | 1335 "PENDING", |
986 "RUNNING", | 1336 "RUNNING", |
987 "DONE" | 1337 "DONE" |
988 ], | 1338 ], |
989 "enumDescriptions": [ | 1339 "enumDescriptions": [ |
990 "Unused.", | 1340 "Unused.", |
991 "The operation has been created.", | 1341 "The operation has been created.", |
992 "The operation is running.", | 1342 "The operation is running.", |
993 "The operation is done; either cancelled or completed." | 1343 "The operation is done; either cancelled or completed." |
994 ], | 1344 ], |
995 "type": "string" | 1345 "type": "string" |
996 }, | 1346 }, |
997 "innerState": { | 1347 "innerState": { |
998 "description": "Output-only. A message containing the detail
ed operation state.", | 1348 "description": "Output-only. A message containing the detail
ed operation state.", |
999 "type": "string" | 1349 "type": "string" |
| 1350 }, |
| 1351 "stateStartTime": { |
| 1352 "description": "Output-only. The time this state was entered
.", |
| 1353 "format": "google-datetime", |
| 1354 "type": "string" |
1000 } | 1355 } |
1001 }, | 1356 }, |
1002 "type": "object" | 1357 "type": "object" |
1003 }, | |
1004 "QueryList": { | |
1005 "description": "A list of queries to run on a cluster.", | |
1006 "id": "QueryList", | |
1007 "properties": { | |
1008 "queries": { | |
1009 "description": "Required. The queries to execute. You do not
need to terminate a query with a semicolon. Multiple queries can be specified i
n 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", | |
1010 "items": { | |
1011 "type": "string" | |
1012 }, | |
1013 "type": "array" | |
1014 } | |
1015 }, | |
1016 "type": "object" | |
1017 }, | 1358 }, |
1018 "YarnApplication": { | 1359 "YarnApplication": { |
1019 "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>.Beta Feature: This report is available for testing purposes
only. It may be changed before final release.", | 1360 "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>.Beta Feature: This report is available for testing purposes
only. It may be changed before final release.", |
1020 "id": "YarnApplication", | 1361 "id": "YarnApplication", |
1021 "properties": { | 1362 "properties": { |
| 1363 "trackingUrl": { |
| 1364 "description": "Optional. The HTTP URL of the ApplicationMas
ter, HistoryServer, or TimelineServer that provides application-specific informa
tion. The URL uses the internal hostname, and requires a proxy server for resolu
tion and, possibly, access.", |
| 1365 "type": "string" |
| 1366 }, |
| 1367 "progress": { |
| 1368 "description": "Required. The numerical progress of the appl
ication, from 1 to 100.", |
| 1369 "format": "float", |
| 1370 "type": "number" |
| 1371 }, |
1022 "state": { | 1372 "state": { |
1023 "description": "Required. The application state.", | 1373 "description": "Required. The application state.", |
1024 "enum": [ | 1374 "enum": [ |
1025 "STATE_UNSPECIFIED", | 1375 "STATE_UNSPECIFIED", |
1026 "NEW", | 1376 "NEW", |
1027 "NEW_SAVING", | 1377 "NEW_SAVING", |
1028 "SUBMITTED", | 1378 "SUBMITTED", |
1029 "ACCEPTED", | 1379 "ACCEPTED", |
1030 "RUNNING", | 1380 "RUNNING", |
1031 "FINISHED", | 1381 "FINISHED", |
1032 "FAILED", | 1382 "FAILED", |
1033 "KILLED" | 1383 "KILLED" |
1034 ], | 1384 ], |
1035 "enumDescriptions": [ | 1385 "enumDescriptions": [ |
1036 "Status is unspecified.", | 1386 "Status is unspecified.", |
1037 "Status is NEW.", | 1387 "Status is NEW.", |
1038 "Status is NEW_SAVING.", | 1388 "Status is NEW_SAVING.", |
1039 "Status is SUBMITTED.", | 1389 "Status is SUBMITTED.", |
1040 "Status is ACCEPTED.", | 1390 "Status is ACCEPTED.", |
1041 "Status is RUNNING.", | 1391 "Status is RUNNING.", |
1042 "Status is FINISHED.", | 1392 "Status is FINISHED.", |
1043 "Status is FAILED.", | 1393 "Status is FAILED.", |
1044 "Status is KILLED." | 1394 "Status is KILLED." |
1045 ], | 1395 ], |
1046 "type": "string" | 1396 "type": "string" |
1047 }, | 1397 }, |
1048 "name": { | 1398 "name": { |
1049 "description": "Required. The application name.", | 1399 "description": "Required. The application name.", |
1050 "type": "string" | 1400 "type": "string" |
1051 }, | 1401 } |
1052 "trackingUrl": { | 1402 }, |
1053 "description": "Optional. The HTTP URL of the ApplicationMas
ter, HistoryServer, or TimelineServer that provides application-specific informa
tion. The URL uses the internal hostname, and requires a proxy server for resolu
tion and, possibly, access.", | 1403 "type": "object" |
1054 "type": "string" | 1404 }, |
1055 }, | 1405 "QueryList": { |
1056 "progress": { | 1406 "description": "A list of queries to run on a cluster.", |
1057 "description": "Required. The numerical progress of the appl
ication, from 1 to 100.", | 1407 "id": "QueryList", |
1058 "format": "float", | 1408 "properties": { |
1059 "type": "number" | 1409 "queries": { |
| 1410 "description": "Required. The queries to execute. You do not
need to terminate a query with a semicolon. Multiple queries can be specified i
n 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", |
| 1411 "items": { |
| 1412 "type": "string" |
| 1413 }, |
| 1414 "type": "array" |
1060 } | 1415 } |
1061 }, | 1416 }, |
1062 "type": "object" | 1417 "type": "object" |
1063 }, | 1418 }, |
1064 "HadoopJob": { | 1419 "HadoopJob": { |
1065 "description": "A Cloud Dataproc job for running Apache Hadoop MapRe
duce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapr
educe-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://ha
doop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).", | 1420 "description": "A Cloud Dataproc job for running Apache Hadoop MapRe
duce (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapr
educe-client-core/MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://ha
doop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).", |
1066 "id": "HadoopJob", | 1421 "id": "HadoopJob", |
1067 "properties": { | 1422 "properties": { |
1068 "mainJarFileUri": { | |
1069 "description": "The HCFS URI of the jar file containing the
main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metric
s-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/
hadoop-mapreduce/hadoop-mapreduce-examples.jar'", | |
1070 "type": "string" | |
1071 }, | |
1072 "jarFileUris": { | 1423 "jarFileUris": { |
1073 "description": "Optional. Jar file URIs to add to the CLASSP
ATHs of the Hadoop driver and tasks.", | 1424 "description": "Optional. Jar file URIs to add to the CLASSP
ATHs of the Hadoop driver and tasks.", |
1074 "items": { | 1425 "items": { |
1075 "type": "string" | 1426 "type": "string" |
1076 }, | 1427 }, |
1077 "type": "array" | |
1078 }, | |
1079 "loggingConfig": { | |
1080 "$ref": "LoggingConfig", | |
1081 "description": "Optional. The runtime log config for job exe
cution." | |
1082 }, | |
1083 "properties": { | |
1084 "additionalProperties": { | |
1085 "type": "string" | |
1086 }, | |
1087 "description": "Optional. A mapping of property names to val
ues, used to configure Hadoop. Properties that conflict with values set by the C
loud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/
conf/*-site and classes in user code.", | |
1088 "type": "object" | |
1089 }, | |
1090 "args": { | |
1091 "description": "Optional. The arguments to pass to the drive
r. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as j
ob properties, since a collision may occur that causes an incorrect job submissi
on.", | |
1092 "items": { | |
1093 "type": "string" | |
1094 }, | |
1095 "type": "array" | |
1096 }, | |
1097 "fileUris": { | |
1098 "description": "Optional. HCFS (Hadoop Compatible Filesystem
) URIs of files to be copied to the working directory of Hadoop drivers and dist
ributed tasks. Useful for naively parallel tasks.", | |
1099 "items": { | |
1100 "type": "string" | |
1101 }, | |
1102 "type": "array" | |
1103 }, | |
1104 "mainClass": { | |
1105 "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.", | |
1106 "type": "string" | |
1107 }, | |
1108 "archiveUris": { | |
1109 "description": "Optional. HCFS URIs of archives to be extrac
ted in the working directory of Hadoop drivers and tasks. Supported file types:
.jar, .tar, .tar.gz, .tgz, or .zip.", | |
1110 "items": { | |
1111 "type": "string" | |
1112 }, | |
1113 "type": "array" | |
1114 } | |
1115 }, | |
1116 "type": "object" | |
1117 }, | |
1118 "DiagnoseClusterRequest": { | |
1119 "description": "A request to collect cluster diagnostic information.
", | |
1120 "id": "DiagnoseClusterRequest", | |
1121 "properties": {}, | |
1122 "type": "object" | |
1123 }, | |
1124 "DiskConfig": { | |
1125 "description": "Specifies the config of disk options for a group of
VM instances.", | |
1126 "id": "DiskConfig", | |
1127 "properties": { | |
1128 "bootDiskSizeGb": { | |
1129 "description": "Optional. Size in GB of the boot disk (defau
lt is 500GB).", | |
1130 "format": "int32", | |
1131 "type": "integer" | |
1132 }, | |
1133 "numLocalSsds": { | |
1134 "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 runt
ime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) d
ata. If one or more SSDs are attached, this runtime bulk data is spread across t
hem, and the boot disk contains only basic config and installed binaries.", | |
1135 "format": "int32", | |
1136 "type": "integer" | |
1137 } | |
1138 }, | |
1139 "type": "object" | |
1140 }, | |
1141 "ClusterOperationMetadata": { | |
1142 "description": "Metadata describing the operation.", | |
1143 "id": "ClusterOperationMetadata", | |
1144 "properties": { | |
1145 "operationType": { | |
1146 "description": "Output-only. The operation type.", | |
1147 "type": "string" | |
1148 }, | |
1149 "description": { | |
1150 "description": "Output-only. Short description of operation.
", | |
1151 "type": "string" | |
1152 }, | |
1153 "warnings": { | |
1154 "description": "Output-only. Errors encountered during opera
tion execution.", | |
1155 "items": { | |
1156 "type": "string" | |
1157 }, | |
1158 "type": "array" | |
1159 }, | |
1160 "labels": { | |
1161 "additionalProperties": { | |
1162 "type": "string" | |
1163 }, | |
1164 "description": "Output-only. Labels associated with the oper
ation", | |
1165 "type": "object" | |
1166 }, | |
1167 "status": { | |
1168 "$ref": "ClusterOperationStatus", | |
1169 "description": "Output-only. Current operation status." | |
1170 }, | |
1171 "statusHistory": { | |
1172 "description": "Output-only. The previous operation status."
, | |
1173 "items": { | |
1174 "$ref": "ClusterOperationStatus" | |
1175 }, | |
1176 "type": "array" | |
1177 }, | |
1178 "clusterName": { | |
1179 "description": "Output-only. Name of the cluster for the ope
ration.", | |
1180 "type": "string" | |
1181 }, | |
1182 "clusterUuid": { | |
1183 "description": "Output-only. Cluster UUID for the operation.
", | |
1184 "type": "string" | |
1185 } | |
1186 }, | |
1187 "type": "object" | |
1188 }, | |
1189 "HiveJob": { | |
1190 "description": "A Cloud Dataproc job for running Apache Hive (https:
//hive.apache.org/) queries on YARN.", | |
1191 "id": "HiveJob", | |
1192 "properties": { | |
1193 "properties": { | |
1194 "additionalProperties": { | |
1195 "type": "string" | |
1196 }, | |
1197 "description": "Optional. A mapping of property names and va
lues, used to configure Hive. 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.xml, /etc/hive/conf/hive-site.xml, and classes in user code.", | |
1198 "type": "object" | |
1199 }, | |
1200 "continueOnFailure": { | |
1201 "description": "Optional. Whether to continue executing quer
ies if a query fails. The default value is false. Setting to true can be useful
when executing independent parallel queries.", | |
1202 "type": "boolean" | |
1203 }, | |
1204 "queryList": { | |
1205 "$ref": "QueryList", | |
1206 "description": "A list of queries." | |
1207 }, | |
1208 "queryFileUri": { | |
1209 "description": "The HCFS URI of the script that contains Hiv
e queries.", | |
1210 "type": "string" | |
1211 }, | |
1212 "jarFileUris": { | |
1213 "description": "Optional. HCFS URIs of jar files to add to t
he CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hiv
e SerDes and UDFs.", | |
1214 "items": { | |
1215 "type": "string" | |
1216 }, | |
1217 "type": "array" | |
1218 }, | |
1219 "scriptVariables": { | |
1220 "additionalProperties": { | |
1221 "type": "string" | |
1222 }, | |
1223 "description": "Optional. Mapping of query variable names to
values (equivalent to the Hive command: SET name=\"value\";).", | |
1224 "type": "object" | |
1225 } | |
1226 }, | |
1227 "type": "object" | |
1228 }, | |
1229 "Empty": { | |
1230 "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 {}.", | |
1231 "id": "Empty", | |
1232 "properties": {}, | |
1233 "type": "object" | |
1234 }, | |
1235 "DiagnoseClusterResults": { | |
1236 "description": "The location of diagnostic output.", | |
1237 "id": "DiagnoseClusterResults", | |
1238 "properties": { | |
1239 "outputUri": { | |
1240 "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.", | |
1241 "type": "string" | |
1242 } | |
1243 }, | |
1244 "type": "object" | |
1245 }, | |
1246 "ClusterConfig": { | |
1247 "description": "The cluster config.", | |
1248 "id": "ClusterConfig", | |
1249 "properties": { | |
1250 "initializationActions": { | |
1251 "description": "Optional. Commands to execute on each node a
fter config is completed. By default, executables are run on master and all work
er nodes. You can test a node's role metadata to run an executable on a master o
r worker node, as shown below using curl (you can also use wget):\nROLE=$(curl -
H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/
dataproc-role)\nif [[ \"${ROLE}\" == 'Master' ]]; then\n ... master specific ac
tions ...\nelse\n ... worker specific actions ...\nfi\n", | |
1252 "items": { | |
1253 "$ref": "NodeInitializationAction" | |
1254 }, | |
1255 "type": "array" | |
1256 }, | |
1257 "configBucket": { | |
1258 "description": "Optional. A Google Cloud Storage staging buc
ket used for sharing generated SSH keys and config. If you do not specify a stag
ing bucket, Cloud Dataproc will determine an appropriate Cloud Storage location
(US, ASIA, or EU) for your cluster's staging bucket according to the Google Comp
ute Engine zone where your cluster is deployed, and then it will create and mana
ge this project-level, per-location bucket for you.", | |
1259 "type": "string" | |
1260 }, | |
1261 "workerConfig": { | |
1262 "$ref": "InstanceGroupConfig", | |
1263 "description": "Optional. The Google Compute Engine config s
ettings for worker instances in a cluster." | |
1264 }, | |
1265 "gceClusterConfig": { | |
1266 "$ref": "GceClusterConfig", | |
1267 "description": "Required. The shared Google Compute Engine c
onfig settings for all instances in a cluster." | |
1268 }, | |
1269 "softwareConfig": { | |
1270 "$ref": "SoftwareConfig", | |
1271 "description": "Optional. The config settings for software i
nside the cluster." | |
1272 }, | |
1273 "masterConfig": { | |
1274 "$ref": "InstanceGroupConfig", | |
1275 "description": "Optional. The Google Compute Engine config s
ettings for the master instance in a cluster." | |
1276 }, | |
1277 "secondaryWorkerConfig": { | |
1278 "$ref": "InstanceGroupConfig", | |
1279 "description": "Optional. The Google Compute Engine config s
ettings for additional worker instances in a cluster." | |
1280 } | |
1281 }, | |
1282 "type": "object" | |
1283 }, | |
1284 "PySparkJob": { | |
1285 "description": "A Cloud Dataproc job for running Apache PySpark (htt
ps://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on
YARN.", | |
1286 "id": "PySparkJob", | |
1287 "properties": { | |
1288 "pythonFileUris": { | |
1289 "description": "Optional. HCFS file URIs of Python files to
pass to the PySpark framework. Supported file types: .py, .egg, and .zip.", | |
1290 "items": { | |
1291 "type": "string" | |
1292 }, | |
1293 "type": "array" | |
1294 }, | |
1295 "mainPythonFileUri": { | |
1296 "description": "Required. The HCFS URI of the main Python fi
le to use as the driver. Must be a .py file.", | |
1297 "type": "string" | |
1298 }, | |
1299 "archiveUris": { | |
1300 "description": "Optional. HCFS URIs of archives to be extrac
ted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.", | |
1301 "items": { | |
1302 "type": "string" | |
1303 }, | |
1304 "type": "array" | |
1305 }, | |
1306 "jarFileUris": { | |
1307 "description": "Optional. HCFS URIs of jar files to add to t
he CLASSPATHs of the Python driver and tasks.", | |
1308 "items": { | |
1309 "type": "string" | |
1310 }, | |
1311 "type": "array" | 1428 "type": "array" |
1312 }, | 1429 }, |
1313 "loggingConfig": { | 1430 "loggingConfig": { |
1314 "$ref": "LoggingConfig", | 1431 "$ref": "LoggingConfig", |
1315 "description": "Optional. The runtime log config for job exe
cution." | 1432 "description": "Optional. The runtime log config for job exe
cution." |
1316 }, | 1433 }, |
1317 "properties": { | 1434 "properties": { |
1318 "additionalProperties": { | 1435 "additionalProperties": { |
1319 "type": "string" | 1436 "type": "string" |
1320 }, | 1437 }, |
| 1438 "description": "Optional. A mapping of property names to val
ues, used to configure Hadoop. Properties that conflict with values set by the C
loud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/
conf/*-site and classes in user code.", |
| 1439 "type": "object" |
| 1440 }, |
| 1441 "args": { |
| 1442 "description": "Optional. The arguments to pass to the drive
r. Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as j
ob properties, since a collision may occur that causes an incorrect job submissi
on.", |
| 1443 "items": { |
| 1444 "type": "string" |
| 1445 }, |
| 1446 "type": "array" |
| 1447 }, |
| 1448 "fileUris": { |
| 1449 "description": "Optional. HCFS (Hadoop Compatible Filesystem
) URIs of files to be copied to the working directory of Hadoop drivers and dist
ributed tasks. Useful for naively parallel tasks.", |
| 1450 "items": { |
| 1451 "type": "string" |
| 1452 }, |
| 1453 "type": "array" |
| 1454 }, |
| 1455 "mainClass": { |
| 1456 "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.", |
| 1457 "type": "string" |
| 1458 }, |
| 1459 "archiveUris": { |
| 1460 "description": "Optional. HCFS URIs of archives to be extrac
ted in the working directory of Hadoop drivers and tasks. Supported file types:
.jar, .tar, .tar.gz, .tgz, or .zip.", |
| 1461 "items": { |
| 1462 "type": "string" |
| 1463 }, |
| 1464 "type": "array" |
| 1465 }, |
| 1466 "mainJarFileUri": { |
| 1467 "description": "The HCFS URI of the jar file containing the
main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metric
s-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/
hadoop-mapreduce/hadoop-mapreduce-examples.jar'", |
| 1468 "type": "string" |
| 1469 } |
| 1470 }, |
| 1471 "type": "object" |
| 1472 }, |
| 1473 "DiagnoseClusterRequest": { |
| 1474 "description": "A request to collect cluster diagnostic information.
", |
| 1475 "id": "DiagnoseClusterRequest", |
| 1476 "properties": {}, |
| 1477 "type": "object" |
| 1478 }, |
| 1479 "DiskConfig": { |
| 1480 "description": "Specifies the config of disk options for a group of
VM instances.", |
| 1481 "id": "DiskConfig", |
| 1482 "properties": { |
| 1483 "numLocalSsds": { |
| 1484 "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 runt
ime logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) d
ata. If one or more SSDs are attached, this runtime bulk data is spread across t
hem, and the boot disk contains only basic config and installed binaries.", |
| 1485 "format": "int32", |
| 1486 "type": "integer" |
| 1487 }, |
| 1488 "bootDiskSizeGb": { |
| 1489 "description": "Optional. Size in GB of the boot disk (defau
lt is 500GB).", |
| 1490 "format": "int32", |
| 1491 "type": "integer" |
| 1492 } |
| 1493 }, |
| 1494 "type": "object" |
| 1495 }, |
| 1496 "ClusterOperationMetadata": { |
| 1497 "description": "Metadata describing the operation.", |
| 1498 "id": "ClusterOperationMetadata", |
| 1499 "properties": { |
| 1500 "description": { |
| 1501 "description": "Output-only. Short description of operation.
", |
| 1502 "type": "string" |
| 1503 }, |
| 1504 "warnings": { |
| 1505 "description": "Output-only. Errors encountered during opera
tion execution.", |
| 1506 "items": { |
| 1507 "type": "string" |
| 1508 }, |
| 1509 "type": "array" |
| 1510 }, |
| 1511 "labels": { |
| 1512 "additionalProperties": { |
| 1513 "type": "string" |
| 1514 }, |
| 1515 "description": "Output-only. Labels associated with the oper
ation", |
| 1516 "type": "object" |
| 1517 }, |
| 1518 "status": { |
| 1519 "$ref": "ClusterOperationStatus", |
| 1520 "description": "Output-only. Current operation status." |
| 1521 }, |
| 1522 "statusHistory": { |
| 1523 "description": "Output-only. The previous operation status."
, |
| 1524 "items": { |
| 1525 "$ref": "ClusterOperationStatus" |
| 1526 }, |
| 1527 "type": "array" |
| 1528 }, |
| 1529 "clusterName": { |
| 1530 "description": "Output-only. Name of the cluster for the ope
ration.", |
| 1531 "type": "string" |
| 1532 }, |
| 1533 "clusterUuid": { |
| 1534 "description": "Output-only. Cluster UUID for the operation.
", |
| 1535 "type": "string" |
| 1536 }, |
| 1537 "operationType": { |
| 1538 "description": "Output-only. The operation type.", |
| 1539 "type": "string" |
| 1540 } |
| 1541 }, |
| 1542 "type": "object" |
| 1543 }, |
| 1544 "HiveJob": { |
| 1545 "description": "A Cloud Dataproc job for running Apache Hive (https:
//hive.apache.org/) queries on YARN.", |
| 1546 "id": "HiveJob", |
| 1547 "properties": { |
| 1548 "continueOnFailure": { |
| 1549 "description": "Optional. Whether to continue executing quer
ies if a query fails. The default value is false. Setting to true can be useful
when executing independent parallel queries.", |
| 1550 "type": "boolean" |
| 1551 }, |
| 1552 "queryList": { |
| 1553 "$ref": "QueryList", |
| 1554 "description": "A list of queries." |
| 1555 }, |
| 1556 "queryFileUri": { |
| 1557 "description": "The HCFS URI of the script that contains Hiv
e queries.", |
| 1558 "type": "string" |
| 1559 }, |
| 1560 "jarFileUris": { |
| 1561 "description": "Optional. HCFS URIs of jar files to add to t
he CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hiv
e SerDes and UDFs.", |
| 1562 "items": { |
| 1563 "type": "string" |
| 1564 }, |
| 1565 "type": "array" |
| 1566 }, |
| 1567 "scriptVariables": { |
| 1568 "additionalProperties": { |
| 1569 "type": "string" |
| 1570 }, |
| 1571 "description": "Optional. Mapping of query variable names to
values (equivalent to the Hive command: SET name=\"value\";).", |
| 1572 "type": "object" |
| 1573 }, |
| 1574 "properties": { |
| 1575 "additionalProperties": { |
| 1576 "type": "string" |
| 1577 }, |
| 1578 "description": "Optional. A mapping of property names and va
lues, used to configure Hive. 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.xml, /etc/hive/conf/hive-site.xml, and classes in user code.", |
| 1579 "type": "object" |
| 1580 } |
| 1581 }, |
| 1582 "type": "object" |
| 1583 }, |
| 1584 "Empty": { |
| 1585 "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 {}.", |
| 1586 "id": "Empty", |
| 1587 "properties": {}, |
| 1588 "type": "object" |
| 1589 }, |
| 1590 "ClusterConfig": { |
| 1591 "description": "The cluster config.", |
| 1592 "id": "ClusterConfig", |
| 1593 "properties": { |
| 1594 "gceClusterConfig": { |
| 1595 "$ref": "GceClusterConfig", |
| 1596 "description": "Required. The shared Google Compute Engine c
onfig settings for all instances in a cluster." |
| 1597 }, |
| 1598 "softwareConfig": { |
| 1599 "$ref": "SoftwareConfig", |
| 1600 "description": "Optional. The config settings for software i
nside the cluster." |
| 1601 }, |
| 1602 "masterConfig": { |
| 1603 "$ref": "InstanceGroupConfig", |
| 1604 "description": "Optional. The Google Compute Engine config s
ettings for the master instance in a cluster." |
| 1605 }, |
| 1606 "secondaryWorkerConfig": { |
| 1607 "$ref": "InstanceGroupConfig", |
| 1608 "description": "Optional. The Google Compute Engine config s
ettings for additional worker instances in a cluster." |
| 1609 }, |
| 1610 "initializationActions": { |
| 1611 "description": "Optional. Commands to execute on each node a
fter config is completed. By default, executables are run on master and all work
er nodes. You can test a node's <code>role</code> metadata to run an executable
on a master or worker node, as shown below using curl (you can also use wget):\n
ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1beta2/in
stance/attributes/dataproc-role)\nif [[ \"${ROLE}\" == 'Master' ]]; then\n ...
master specific actions ...\nelse\n ... worker specific actions ...\nfi\n", |
| 1612 "items": { |
| 1613 "$ref": "NodeInitializationAction" |
| 1614 }, |
| 1615 "type": "array" |
| 1616 }, |
| 1617 "configBucket": { |
| 1618 "description": "Optional. A Google Cloud Storage staging buc
ket used for sharing generated SSH keys and config. If you do not specify a stag
ing bucket, Cloud Dataproc will determine an appropriate Cloud Storage location
(US, ASIA, or EU) for your cluster's staging bucket according to the Google Comp
ute Engine zone where your cluster is deployed, and then it will create and mana
ge this project-level, per-location bucket for you.", |
| 1619 "type": "string" |
| 1620 }, |
| 1621 "workerConfig": { |
| 1622 "$ref": "InstanceGroupConfig", |
| 1623 "description": "Optional. The Google Compute Engine config s
ettings for worker instances in a cluster." |
| 1624 } |
| 1625 }, |
| 1626 "type": "object" |
| 1627 }, |
| 1628 "PySparkJob": { |
| 1629 "description": "A Cloud Dataproc job for running Apache PySpark (htt
ps://spark.apache.org/docs/0.9.0/python-programming-guide.html) applications on
YARN.", |
| 1630 "id": "PySparkJob", |
| 1631 "properties": { |
| 1632 "jarFileUris": { |
| 1633 "description": "Optional. HCFS URIs of jar files to add to t
he CLASSPATHs of the Python driver and tasks.", |
| 1634 "items": { |
| 1635 "type": "string" |
| 1636 }, |
| 1637 "type": "array" |
| 1638 }, |
| 1639 "loggingConfig": { |
| 1640 "$ref": "LoggingConfig", |
| 1641 "description": "Optional. The runtime log config for job exe
cution." |
| 1642 }, |
| 1643 "properties": { |
| 1644 "additionalProperties": { |
| 1645 "type": "string" |
| 1646 }, |
1321 "description": "Optional. A mapping of property names to val
ues, used to configure PySpark. Properties that conflict with values set by the
Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/
conf/spark-defaults.conf and classes in user code.", | 1647 "description": "Optional. A mapping of property names to val
ues, used to configure PySpark. Properties that conflict with values set by the
Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/
conf/spark-defaults.conf and classes in user code.", |
1322 "type": "object" | 1648 "type": "object" |
1323 }, | 1649 }, |
1324 "args": { | 1650 "args": { |
1325 "description": "Optional. The arguments to pass to the drive
r. Do not include arguments, such as --conf, that can be set as job properties,
since a collision may occur that causes an incorrect job submission.", | 1651 "description": "Optional. The arguments to pass to the drive
r. Do not include arguments, such as --conf, that can be set as job properties,
since a collision may occur that causes an incorrect job submission.", |
1326 "items": { | 1652 "items": { |
1327 "type": "string" | 1653 "type": "string" |
1328 }, | 1654 }, |
1329 "type": "array" | 1655 "type": "array" |
1330 }, | 1656 }, |
1331 "fileUris": { | 1657 "fileUris": { |
1332 "description": "Optional. HCFS URIs of files to be copied to
the working directory of Python drivers and distributed tasks. Useful for naive
ly parallel tasks.", | 1658 "description": "Optional. HCFS URIs of files to be copied to
the working directory of Python drivers and distributed tasks. Useful for naive
ly parallel tasks.", |
1333 "items": { | 1659 "items": { |
1334 "type": "string" | 1660 "type": "string" |
1335 }, | 1661 }, |
1336 "type": "array" | 1662 "type": "array" |
| 1663 }, |
| 1664 "pythonFileUris": { |
| 1665 "description": "Optional. HCFS file URIs of Python files to
pass to the PySpark framework. Supported file types: .py, .egg, and .zip.", |
| 1666 "items": { |
| 1667 "type": "string" |
| 1668 }, |
| 1669 "type": "array" |
| 1670 }, |
| 1671 "mainPythonFileUri": { |
| 1672 "description": "Required. The HCFS URI of the main Python fi
le to use as the driver. Must be a .py file.", |
| 1673 "type": "string" |
| 1674 }, |
| 1675 "archiveUris": { |
| 1676 "description": "Optional. HCFS URIs of archives to be extrac
ted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.", |
| 1677 "items": { |
| 1678 "type": "string" |
| 1679 }, |
| 1680 "type": "array" |
1337 } | 1681 } |
1338 }, | 1682 }, |
1339 "type": "object" | 1683 "type": "object" |
1340 }, | 1684 }, |
1341 "GceClusterConfig": { | 1685 "GceClusterConfig": { |
1342 "description": "Common config settings for resources of Google Compu
te Engine cluster instances, applicable to all instances in the cluster.", | 1686 "description": "Common config settings for resources of Google Compu
te Engine cluster instances, applicable to all instances in the cluster.", |
1343 "id": "GceClusterConfig", | 1687 "id": "GceClusterConfig", |
1344 "properties": { | 1688 "properties": { |
1345 "subnetworkUri": { | 1689 "metadata": { |
1346 "description": "Optional. The Google Compute Engine subnetwo
rk to be used for machine communications. Cannot be specified with network_uri.
Example: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-
east1/sub0.", | 1690 "additionalProperties": { |
1347 "type": "string" | 1691 "type": "string" |
1348 }, | 1692 }, |
1349 "networkUri": { | 1693 "description": "The Google Compute Engine metadata entries t
o add to all instances (see Project and instance metadata (https://cloud.google.
com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).", |
1350 "description": "Optional. 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 project is used, if it exists. Cannot be a \"Custom Subnet Network\" (see
Using Subnetworks for more information). Example: https://www.googleapis.com/co
mpute/v1/projects/[project_id]/regions/global/default.", | 1694 "type": "object" |
1351 "type": "string" | |
1352 }, | |
1353 "zoneUri": { | |
1354 "description": "Required. The zone where the Google Compute
Engine cluster will be located. Example: https://www.googleapis.com/compute/v1/p
rojects/[project_id]/zones/[zone].", | |
1355 "type": "string" | |
1356 }, | 1695 }, |
1357 "internalIpOnly": { | 1696 "internalIpOnly": { |
1358 "description": "Optional. If true, all instances in the clus
ter will only have internal IP addresses. By default, clusters are not restricte
d to internal IP addresses, and will have ephemeral external IP addresses assign
ed to each instance. This internal_ip_only restriction can only be enabled for s
ubnetwork enabled networks, and all off-cluster dependencies must be configured
to be accessible without external IP addresses.", | 1697 "description": "Optional. If true, all instances in the clus
ter will only have internal IP addresses. By default, clusters are not restricte
d to internal IP addresses, and will have ephemeral external IP addresses assign
ed to each instance. This internal_ip_only restriction can only be enabled for s
ubnetwork enabled networks, and all off-cluster dependencies must be configured
to be accessible without external IP addresses.", |
1359 "type": "boolean" | 1698 "type": "boolean" |
1360 }, | 1699 }, |
1361 "metadata": { | |
1362 "additionalProperties": { | |
1363 "type": "string" | |
1364 }, | |
1365 "description": "The Google Compute Engine metadata entries t
o add to all instances (see Project and instance metadata (https://cloud.google.
com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).", | |
1366 "type": "object" | |
1367 }, | |
1368 "serviceAccountScopes": { | 1700 "serviceAccountScopes": { |
1369 "description": "Optional. The URIs of service account scopes
to be included in Google Compute Engine instances. The following base set of sc
opes is always included:\nhttps://www.googleapis.com/auth/cloud.useraccounts.rea
donly\nhttps://www.googleapis.com/auth/devstorage.read_write\nhttps://www.google
apis.com/auth/logging.writeIf no scopes are specified, the following defaults ar
e also provided:\nhttps://www.googleapis.com/auth/bigquery\nhttps://www.googleap
is.com/auth/bigtable.admin.table\nhttps://www.googleapis.com/auth/bigtable.data\
nhttps://www.googleapis.com/auth/devstorage.full_control", | 1701 "description": "Optional. The URIs of service account scopes
to be included in Google Compute Engine instances. The following base set of sc
opes is always included:\nhttps://www.googleapis.com/auth/cloud.useraccounts.rea
donly\nhttps://www.googleapis.com/auth/devstorage.read_write\nhttps://www.google
apis.com/auth/logging.writeIf no scopes are specified, the following defaults ar
e also provided:\nhttps://www.googleapis.com/auth/bigquery\nhttps://www.googleap
is.com/auth/bigtable.admin.table\nhttps://www.googleapis.com/auth/bigtable.data\
nhttps://www.googleapis.com/auth/devstorage.full_control", |
1370 "items": { | 1702 "items": { |
1371 "type": "string" | 1703 "type": "string" |
1372 }, | 1704 }, |
1373 "type": "array" | 1705 "type": "array" |
1374 }, | 1706 }, |
1375 "tags": { | 1707 "tags": { |
1376 "description": "The Google Compute Engine tags to add to all
instances (see Tagging instances).", | 1708 "description": "The Google Compute Engine tags to add to all
instances (see Tagging instances).", |
1377 "items": { | 1709 "items": { |
1378 "type": "string" | 1710 "type": "string" |
1379 }, | 1711 }, |
1380 "type": "array" | 1712 "type": "array" |
1381 }, | 1713 }, |
1382 "serviceAccount": { | 1714 "serviceAccount": { |
1383 "description": "Optional. The service account of the instanc
es. Defaults to the default Google Compute Engine service account. Custom servic
e accounts need permissions equivalent to the folloing IAM roles:\nroles/logging
.logWriter\nroles/storage.objectAdmin(see https://cloud.google.com/compute/docs/
access/service-accounts#custom_service_accounts for more information). Example:
[account_id]@[project_id].iam.gserviceaccount.com", | 1715 "description": "Optional. The service account of the instanc
es. Defaults to the default Google Compute Engine service account. Custom servic
e accounts need permissions equivalent to the folloing IAM roles:\nroles/logging
.logWriter\nroles/storage.objectAdmin(see https://cloud.google.com/compute/docs/
access/service-accounts#custom_service_accounts for more information). Example:
[account_id]@[project_id].iam.gserviceaccount.com", |
1384 "type": "string" | 1716 "type": "string" |
| 1717 }, |
| 1718 "subnetworkUri": { |
| 1719 "description": "Optional. The Google Compute Engine subnetwo
rk to be used for machine communications. Cannot be specified with network_uri.A
full URL, partial URI, or short name are valid. Examples:\nhttps://www.googleap
is.com/compute/v1/projects/[project_id]/regions/us-east1/sub0\nprojects/[project
_id]/regions/us-east1/sub0\nsub0", |
| 1720 "type": "string" |
| 1721 }, |
| 1722 "networkUri": { |
| 1723 "description": "Optional. 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 project is used, if it exists. Cannot be a \"Custom Subnet Network\" (see
Using Subnetworks for more information).A full URL, partial URI, or short name
are valid. Examples:\nhttps://www.googleapis.com/compute/v1/projects/[project_id
]/regions/global/default\nprojects/[project_id]/regions/global/default\ndefault"
, |
| 1724 "type": "string" |
| 1725 }, |
| 1726 "zoneUri": { |
| 1727 "description": "Optional. The zone where the Google Compute
Engine cluster will be located. On a create request, it is required in the \"glo
bal\" region. If omitted in a non-global Cloud Dataproc region, the service will
pick a zone in the corresponding GCE region. On a get request, zone will always
be present.A full URL, partial URI, or short name are valid. Examples:\nhttps:/
/www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]\nprojects/[pro
ject_id]/zones/[zone]\nus-central1-f", |
| 1728 "type": "string" |
| 1729 } |
| 1730 }, |
| 1731 "type": "object" |
| 1732 }, |
| 1733 "ClusterMetrics": { |
| 1734 "description": "Contains cluster daemon metrics, such as HDFS and YA
RN stats.Beta Feature: This report is available for testing purposes only. It ma
y be changed before final release.", |
| 1735 "id": "ClusterMetrics", |
| 1736 "properties": { |
| 1737 "hdfsMetrics": { |
| 1738 "additionalProperties": { |
| 1739 "format": "int64", |
| 1740 "type": "string" |
| 1741 }, |
| 1742 "description": "The HDFS metrics.", |
| 1743 "type": "object" |
| 1744 }, |
| 1745 "yarnMetrics": { |
| 1746 "additionalProperties": { |
| 1747 "format": "int64", |
| 1748 "type": "string" |
| 1749 }, |
| 1750 "description": "The YARN metrics.", |
| 1751 "type": "object" |
1385 } | 1752 } |
1386 }, | 1753 }, |
1387 "type": "object" | 1754 "type": "object" |
1388 }, | 1755 }, |
1389 "AcceleratorConfig": { | 1756 "AcceleratorConfig": { |
1390 "description": "Specifies the type and number of accelerator cards a
ttached to the instances of an instance group (see GPUs on Compute Engine).", | 1757 "description": "Specifies the type and number of accelerator cards a
ttached to the instances of an instance group (see GPUs on Compute Engine).", |
1391 "id": "AcceleratorConfig", | 1758 "id": "AcceleratorConfig", |
1392 "properties": { | 1759 "properties": { |
1393 "acceleratorTypeUri": { | |
1394 "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)", | |
1395 "type": "string" | |
1396 }, | |
1397 "acceleratorCount": { | 1760 "acceleratorCount": { |
1398 "description": "The number of the accelerator cards of this
type exposed to this instance.", | 1761 "description": "The number of the accelerator cards of this
type exposed to this instance.", |
1399 "format": "int32", | 1762 "format": "int32", |
1400 "type": "integer" | 1763 "type": "integer" |
1401 } | 1764 }, |
1402 }, | 1765 "acceleratorTypeUri": { |
1403 "type": "object" | 1766 "description": "Full URL, partial URI, or short name of the
accelerator type resource to expose to this instance. See Google Compute Engine
AcceleratorTypes( /compute/docs/reference/beta/acceleratorTypes)Examples * https
://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/accele
ratorTypes/nvidia-tesla-k80 * projects/[project_id]/zones/us-east1-a/accelerator
Types/nvidia-tesla-k80 * nvidia-tesla-k80", |
1404 }, | 1767 "type": "string" |
1405 "ClusterMetrics": { | |
1406 "description": "Contains cluster daemon metrics, such as HDFS and YA
RN stats.Beta Feature: This report is available for testing purposes only. It ma
y be changed before final release.", | |
1407 "id": "ClusterMetrics", | |
1408 "properties": { | |
1409 "yarnMetrics": { | |
1410 "additionalProperties": { | |
1411 "format": "int64", | |
1412 "type": "string" | |
1413 }, | |
1414 "description": "The YARN metrics.", | |
1415 "type": "object" | |
1416 }, | |
1417 "hdfsMetrics": { | |
1418 "additionalProperties": { | |
1419 "format": "int64", | |
1420 "type": "string" | |
1421 }, | |
1422 "description": "The HDFS metrics.", | |
1423 "type": "object" | |
1424 } | 1768 } |
1425 }, | 1769 }, |
1426 "type": "object" | 1770 "type": "object" |
1427 }, | 1771 }, |
1428 "LoggingConfig": { | 1772 "LoggingConfig": { |
1429 "description": "The runtime logging config of the job.", | 1773 "description": "The runtime logging config of the job.", |
1430 "id": "LoggingConfig", | 1774 "id": "LoggingConfig", |
1431 "properties": { | 1775 "properties": { |
1432 "driverLogLevels": { | 1776 "driverLogLevels": { |
1433 "additionalProperties": { | 1777 "additionalProperties": { |
(...skipping 13 matching lines...) Expand all Loading... |
1447 "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'", | 1791 "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'", |
1448 "type": "object" | 1792 "type": "object" |
1449 } | 1793 } |
1450 }, | 1794 }, |
1451 "type": "object" | 1795 "type": "object" |
1452 }, | 1796 }, |
1453 "Operation": { | 1797 "Operation": { |
1454 "description": "This resource represents a long-running operation th
at is the result of a network API call.", | 1798 "description": "This resource represents a long-running operation th
at is the result of a network API call.", |
1455 "id": "Operation", | 1799 "id": "Operation", |
1456 "properties": { | 1800 "properties": { |
| 1801 "done": { |
| 1802 "description": "If the value is false, it means the operatio
n is still in progress. If true, the operation is completed, and either error or
response is available.", |
| 1803 "type": "boolean" |
| 1804 }, |
1457 "response": { | 1805 "response": { |
1458 "additionalProperties": { | 1806 "additionalProperties": { |
1459 "description": "Properties of the object. Contains field
@type with type URL.", | 1807 "description": "Properties of the object. Contains field
@type with type URL.", |
1460 "type": "any" | 1808 "type": "any" |
1461 }, | 1809 }, |
1462 "description": "The normal response of the operation in case
of success. If the original method returns no data on success, such as Delete,
the response is google.protobuf.Empty. If the original method is standard Get/Cr
eate/Update, the response should be the resource. For other methods, the respons
e should have the type XxxResponse, where Xxx is the original method name. For e
xample, if the original method name is TakeSnapshot(), the inferred response typ
e is TakeSnapshotResponse.", | 1810 "description": "The normal response of the operation in case
of success. If the original method returns no data on success, such as Delete,
the response is google.protobuf.Empty. If the original method is standard Get/Cr
eate/Update, the response should be the resource. For other methods, the respons
e should have the type XxxResponse, where Xxx is the original method name. For e
xample, if the original method name is TakeSnapshot(), the inferred response typ
e is TakeSnapshotResponse.", |
1463 "type": "object" | 1811 "type": "object" |
1464 }, | 1812 }, |
1465 "name": { | 1813 "name": { |
1466 "description": "The server-assigned name, which is only uniq
ue within the same service that originally returns it. If you use the default HT
TP mapping, the name should have the format of operations/some/unique/name.", | 1814 "description": "The server-assigned name, which is only uniq
ue within the same service that originally returns it. If you use the default HT
TP mapping, the name should have the format of operations/some/unique/name.", |
1467 "type": "string" | 1815 "type": "string" |
1468 }, | 1816 }, |
1469 "error": { | 1817 "error": { |
1470 "$ref": "Status", | 1818 "$ref": "Status", |
1471 "description": "The error result of the operation in case of
failure or cancellation." | 1819 "description": "The error result of the operation in case of
failure or cancellation." |
1472 }, | 1820 }, |
1473 "metadata": { | 1821 "metadata": { |
1474 "additionalProperties": { | 1822 "additionalProperties": { |
1475 "description": "Properties of the object. Contains field
@type with type URL.", | 1823 "description": "Properties of the object. Contains field
@type with type URL.", |
1476 "type": "any" | 1824 "type": "any" |
1477 }, | 1825 }, |
1478 "description": "Service-specific metadata associated with th
e operation. It typically contains progress information and common metadata such
as create time. Some services might not provide such metadata. Any method that
returns a long-running operation should document the metadata type, if any.", | 1826 "description": "Service-specific metadata associated with th
e operation. It typically contains progress information and common metadata such
as create time. Some services might not provide such metadata. Any method that
returns a long-running operation should document the metadata type, if any.", |
1479 "type": "object" | 1827 "type": "object" |
1480 }, | |
1481 "done": { | |
1482 "description": "If the value is false, it means the operatio
n is still in progress. If true, the operation is completed, and either error or
response is available.", | |
1483 "type": "boolean" | |
1484 } | 1828 } |
1485 }, | 1829 }, |
1486 "type": "object" | 1830 "type": "object" |
1487 }, | 1831 }, |
1488 "JobReference": { | 1832 "JobReference": { |
1489 "description": "Encapsulates the full scoping used to reference a jo
b.", | 1833 "description": "Encapsulates the full scoping used to reference a jo
b.", |
1490 "id": "JobReference", | 1834 "id": "JobReference", |
1491 "properties": { | 1835 "properties": { |
1492 "jobId": { | 1836 "jobId": { |
1493 "description": "Optional. The job ID, which must be unique w
ithin the project. The job ID is generated by the server upon job submission or
provided by the user as a means to perform retries without creating duplicate jo
bs. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
or hyphens (-). The maximum length is 100 characters.", | 1837 "description": "Optional. The job ID, which must be unique w
ithin the project. The job ID is generated by the server upon job submission or
provided by the user as a means to perform retries without creating duplicate jo
bs. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
or hyphens (-). The maximum length is 100 characters.", |
1494 "type": "string" | 1838 "type": "string" |
1495 }, | 1839 }, |
1496 "projectId": { | 1840 "projectId": { |
1497 "description": "Required. The ID of the Google Cloud Platfor
m project that the job belongs to.", | 1841 "description": "Required. The ID of the Google Cloud Platfor
m project that the job belongs to.", |
1498 "type": "string" | 1842 "type": "string" |
1499 } | 1843 } |
1500 }, | 1844 }, |
1501 "type": "object" | 1845 "type": "object" |
1502 }, | 1846 }, |
1503 "SubmitJobRequest": { | 1847 "SubmitJobRequest": { |
1504 "description": "A request to submit a job.", | 1848 "description": "A request to submit a job.", |
1505 "id": "SubmitJobRequest", | 1849 "id": "SubmitJobRequest", |
1506 "properties": { | 1850 "properties": { |
1507 "job": { | 1851 "job": { |
1508 "$ref": "Job", | 1852 "$ref": "Job", |
1509 "description": "Required. The job resource." | 1853 "description": "Required. The job resource." |
1510 } | 1854 } |
1511 }, | 1855 }, |
1512 "type": "object" | 1856 "type": "object" |
1513 }, | |
1514 "Status": { | |
1515 "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 that can be u
sed for common error conditions.Language mappingThe Status message is the logica
l representation of the error model, but it is not necessarily the actual wire f
ormat. When the Status message is exposed in different client libraries and diff
erent 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 codes
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 includ
e:\nPartial errors. If a service needs to return partial errors to the client, i
t may embed the Status in the normal response to indicate the partial errors.\nW
orkflow errors. A typical workflow has multiple steps. Each step may have a Stat
us message for error reporting.\nBatch operations. If a client uses batch reques
t and batch response, the Status message should be used directly inside batch re
sponse, one for each error sub-response.\nAsynchronous operations. If an API cal
l embeds asynchronous operation results in its response, the status of those ope
rations should be represented directly using the Status message.\nLogging. If so
me API errors are stored in logs, the message Status could be used directly afte
r any stripping needed for security/privacy reasons.", | |
1516 "id": "Status", | |
1517 "properties": { | |
1518 "message": { | |
1519 "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.", | |
1520 "type": "string" | |
1521 }, | |
1522 "details": { | |
1523 "description": "A list of messages that carry the error deta
ils. There will be a common set of message types for APIs to use.", | |
1524 "items": { | |
1525 "additionalProperties": { | |
1526 "description": "Properties of the object. Contains f
ield @type with type URL.", | |
1527 "type": "any" | |
1528 }, | |
1529 "type": "object" | |
1530 }, | |
1531 "type": "array" | |
1532 }, | |
1533 "code": { | |
1534 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", | |
1535 "format": "int32", | |
1536 "type": "integer" | |
1537 } | |
1538 }, | |
1539 "type": "object" | |
1540 }, | |
1541 "InstanceGroupConfig": { | |
1542 "description": "Optional. The config settings for Google Compute Eng
ine resources in an instance group, such as a master or worker group.", | |
1543 "id": "InstanceGroupConfig", | |
1544 "properties": { | |
1545 "numInstances": { | |
1546 "description": "Required. The number of VM instances in the
instance group. For master instance groups, must be set to 1.", | |
1547 "format": "int32", | |
1548 "type": "integer" | |
1549 }, | |
1550 "diskConfig": { | |
1551 "$ref": "DiskConfig", | |
1552 "description": "Optional. Disk option config settings." | |
1553 }, | |
1554 "managedGroupConfig": { | |
1555 "$ref": "ManagedGroupConfig", | |
1556 "description": "Output-only. The config for Google Compute E
ngine Instance Group Manager that manages this group. This is only used for pree
mptible instance groups." | |
1557 }, | |
1558 "machineTypeUri": { | |
1559 "description": "Required. 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.", | |
1560 "type": "string" | |
1561 }, | |
1562 "imageUri": { | |
1563 "description": "Output-only. The Google Compute Engine image
resource used for cluster instances. Inferred from SoftwareConfig.image_version
.", | |
1564 "type": "string" | |
1565 }, | |
1566 "isPreemptible": { | |
1567 "description": "Optional. Specifies that this instance group
contains preemptible instances.", | |
1568 "type": "boolean" | |
1569 }, | |
1570 "instanceNames": { | |
1571 "description": "Optional. The list of instance names. Cloud
Dataproc derives the names from cluster_name, num_instances, and the instance gr
oup if not set by user (recommended practice is to let Cloud Dataproc derive the
name).", | |
1572 "items": { | |
1573 "type": "string" | |
1574 }, | |
1575 "type": "array" | |
1576 }, | |
1577 "accelerators": { | |
1578 "description": "Optional. The Google Compute Engine accelera
tor configuration for these instances.Beta Feature: This feature is still under
development. It may be changed before final release.", | |
1579 "items": { | |
1580 "$ref": "AcceleratorConfig" | |
1581 }, | |
1582 "type": "array" | |
1583 } | |
1584 }, | |
1585 "type": "object" | |
1586 }, | |
1587 "JobScheduling": { | |
1588 "description": "Job scheduling options.Beta Feature: These options a
re available for testing purposes only. They may be changed before final release
.", | |
1589 "id": "JobScheduling", | |
1590 "properties": { | |
1591 "maxFailuresPerHour": { | |
1592 "description": "Optional. Maximum number of times per hour a
driver may be restarted as a result of driver terminating with non-zero code be
fore job is reported failed.A job may be reported as thrashing if driver exits w
ith non-zero code 4 times within 10 minute window.Maximum value is 10.", | |
1593 "format": "int32", | |
1594 "type": "integer" | |
1595 } | |
1596 }, | |
1597 "type": "object" | |
1598 }, | |
1599 "ListJobsResponse": { | |
1600 "description": "A list of jobs in a project.", | |
1601 "id": "ListJobsResponse", | |
1602 "properties": { | |
1603 "jobs": { | |
1604 "description": "Output-only. Jobs list.", | |
1605 "items": { | |
1606 "$ref": "Job" | |
1607 }, | |
1608 "type": "array" | |
1609 }, | |
1610 "nextPageToken": { | |
1611 "description": "Optional. This token is included in the resp
onse if there are more results to fetch. To fetch additional results, provide th
is value as the page_token in a subsequent <code>ListJobsRequest</code>.", | |
1612 "type": "string" | |
1613 } | |
1614 }, | |
1615 "type": "object" | |
1616 }, | |
1617 "NodeInitializationAction": { | |
1618 "description": "Specifies an executable to run on a fully configured
node and a timeout period for executable completion.", | |
1619 "id": "NodeInitializationAction", | |
1620 "properties": { | |
1621 "executionTimeout": { | |
1622 "description": "Optional. Amount of time executable has to c
omplete. Default is 10 minutes. Cluster creation fails with an explanatory error
message (the name of the executable that caused the error and the exceeded time
out period) if the executable is not completed at end of the timeout period.", | |
1623 "format": "google-duration", | |
1624 "type": "string" | |
1625 }, | |
1626 "executableFile": { | |
1627 "description": "Required. Google Cloud Storage URI of execut
able file.", | |
1628 "type": "string" | |
1629 } | |
1630 }, | |
1631 "type": "object" | |
1632 }, | |
1633 "CancelJobRequest": { | |
1634 "description": "A request to cancel a job.", | |
1635 "id": "CancelJobRequest", | |
1636 "properties": {}, | |
1637 "type": "object" | |
1638 }, | |
1639 "SparkSqlJob": { | |
1640 "description": "A Cloud Dataproc job for running Apache Spark SQL (h
ttp://spark.apache.org/sql/) queries.", | |
1641 "id": "SparkSqlJob", | |
1642 "properties": { | |
1643 "properties": { | |
1644 "additionalProperties": { | |
1645 "type": "string" | |
1646 }, | |
1647 "description": "Optional. A mapping of property names to val
ues, used to configure Spark SQL's SparkConf. Properties that conflict with valu
es set by the Cloud Dataproc API may be overwritten.", | |
1648 "type": "object" | |
1649 }, | |
1650 "queryList": { | |
1651 "$ref": "QueryList", | |
1652 "description": "A list of queries." | |
1653 }, | |
1654 "queryFileUri": { | |
1655 "description": "The HCFS URI of the script that contains SQL
queries.", | |
1656 "type": "string" | |
1657 }, | |
1658 "scriptVariables": { | |
1659 "additionalProperties": { | |
1660 "type": "string" | |
1661 }, | |
1662 "description": "Optional. Mapping of query variable names to
values (equivalent to the Spark SQL command: SET name=\"value\";).", | |
1663 "type": "object" | |
1664 }, | |
1665 "jarFileUris": { | |
1666 "description": "Optional. HCFS URIs of jar files to be added
to the Spark CLASSPATH.", | |
1667 "items": { | |
1668 "type": "string" | |
1669 }, | |
1670 "type": "array" | |
1671 }, | |
1672 "loggingConfig": { | |
1673 "$ref": "LoggingConfig", | |
1674 "description": "Optional. The runtime log config for job exe
cution." | |
1675 } | |
1676 }, | |
1677 "type": "object" | |
1678 }, | |
1679 "Cluster": { | |
1680 "description": "Describes the identifying information, config, and s
tatus of a cluster of Google Compute Engine instances.", | |
1681 "id": "Cluster", | |
1682 "properties": { | |
1683 "labels": { | |
1684 "additionalProperties": { | |
1685 "type": "string" | |
1686 }, | |
1687 "description": "Optional. The labels to associate with this
cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 103
5 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if pre
sent, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www
.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a clus
ter.", | |
1688 "type": "object" | |
1689 }, | |
1690 "metrics": { | |
1691 "$ref": "ClusterMetrics", | |
1692 "description": "Contains cluster daemon metrics such as HDFS
and YARN stats.Beta Feature: This report is available for testing purposes only
. It may be changed before final release." | |
1693 }, | |
1694 "status": { | |
1695 "$ref": "ClusterStatus", | |
1696 "description": "Output-only. Cluster status." | |
1697 }, | |
1698 "statusHistory": { | |
1699 "description": "Output-only. The previous cluster status.", | |
1700 "items": { | |
1701 "$ref": "ClusterStatus" | |
1702 }, | |
1703 "type": "array" | |
1704 }, | |
1705 "config": { | |
1706 "$ref": "ClusterConfig", | |
1707 "description": "Required. The cluster config. Note that Clou
d Dataproc may set default values, and values may change when clusters are updat
ed." | |
1708 }, | |
1709 "clusterUuid": { | |
1710 "description": "Output-only. A cluster UUID (Unique Universa
l Identifier). Cloud Dataproc generates this value when it creates the cluster."
, | |
1711 "type": "string" | |
1712 }, | |
1713 "clusterName": { | |
1714 "description": "Required. The cluster name. Cluster names wi
thin a project must be unique. Names of deleted clusters can be reused.", | |
1715 "type": "string" | |
1716 }, | |
1717 "projectId": { | |
1718 "description": "Required. The Google Cloud Platform project
ID that the cluster belongs to.", | |
1719 "type": "string" | |
1720 } | |
1721 }, | |
1722 "type": "object" | |
1723 }, | |
1724 "ListOperationsResponse": { | |
1725 "description": "The response message for Operations.ListOperations."
, | |
1726 "id": "ListOperationsResponse", | |
1727 "properties": { | |
1728 "nextPageToken": { | |
1729 "description": "The standard List next-page token.", | |
1730 "type": "string" | |
1731 }, | |
1732 "operations": { | |
1733 "description": "A list of operations that matches the specif
ied filter in the request.", | |
1734 "items": { | |
1735 "$ref": "Operation" | |
1736 }, | |
1737 "type": "array" | |
1738 } | |
1739 }, | |
1740 "type": "object" | |
1741 }, | |
1742 "SoftwareConfig": { | |
1743 "description": "Specifies the selection and config of software insid
e the cluster.", | |
1744 "id": "SoftwareConfig", | |
1745 "properties": { | |
1746 "imageVersion": { | |
1747 "description": "Optional. The version of software inside the
cluster. It must match the regular expression [0-9]+\\.[0-9]+. If unspecified,
it defaults to the latest version (see Cloud Dataproc Versioning).", | |
1748 "type": "string" | |
1749 }, | |
1750 "properties": { | |
1751 "additionalProperties": { | |
1752 "type": "string" | |
1753 }, | |
1754 "description": "Optional. The properties to set on daemon co
nfig files.Property keys are specified in prefix:property format, such as core:f
s.defaultFS. The following are supported prefixes and their mappings:\ncapacity-
scheduler: capacity-scheduler.xml\ncore: core-site.xml\ndistcp: distcp-default.x
ml\nhdfs: hdfs-site.xml\nhive: hive-site.xml\nmapred: mapred-site.xml\npig: pig.
properties\nspark: spark-defaults.conf\nyarn: yarn-site.xml", | |
1755 "type": "object" | |
1756 } | |
1757 }, | |
1758 "type": "object" | |
1759 }, | |
1760 "JobPlacement": { | |
1761 "description": "Cloud Dataproc job config.", | |
1762 "id": "JobPlacement", | |
1763 "properties": { | |
1764 "clusterUuid": { | |
1765 "description": "Output-only. A cluster UUID generated by the
Cloud Dataproc service when the job is submitted.", | |
1766 "type": "string" | |
1767 }, | |
1768 "clusterName": { | |
1769 "description": "Required. The name of the cluster where the
job will be submitted.", | |
1770 "type": "string" | |
1771 } | |
1772 }, | |
1773 "type": "object" | |
1774 }, | |
1775 "PigJob": { | |
1776 "description": "A Cloud Dataproc job for running Apache Pig (https:/
/pig.apache.org/) queries on YARN.", | |
1777 "id": "PigJob", | |
1778 "properties": { | |
1779 "jarFileUris": { | |
1780 "description": "Optional. HCFS URIs of jar files to add to t
he CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig
UDFs.", | |
1781 "items": { | |
1782 "type": "string" | |
1783 }, | |
1784 "type": "array" | |
1785 }, | |
1786 "scriptVariables": { | |
1787 "additionalProperties": { | |
1788 "type": "string" | |
1789 }, | |
1790 "description": "Optional. Mapping of query variable names to
values (equivalent to the Pig command: name=[value]).", | |
1791 "type": "object" | |
1792 }, | |
1793 "loggingConfig": { | |
1794 "$ref": "LoggingConfig", | |
1795 "description": "Optional. The runtime log config for job exe
cution." | |
1796 }, | |
1797 "properties": { | |
1798 "additionalProperties": { | |
1799 "type": "string" | |
1800 }, | |
1801 "description": "Optional. A mapping of property names to val
ues, used to configure Pig. Properties that conflict with values set by the Clou
d Dataproc API may be overwritten. Can include properties set in /etc/hadoop/con
f/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.", | |
1802 "type": "object" | |
1803 }, | |
1804 "continueOnFailure": { | |
1805 "description": "Optional. Whether to continue executing quer
ies if a query fails. The default value is false. Setting to true can be useful
when executing independent parallel queries.", | |
1806 "type": "boolean" | |
1807 }, | |
1808 "queryList": { | |
1809 "$ref": "QueryList", | |
1810 "description": "A list of queries." | |
1811 }, | |
1812 "queryFileUri": { | |
1813 "description": "The HCFS URI of the script that contains the
Pig queries.", | |
1814 "type": "string" | |
1815 } | |
1816 }, | |
1817 "type": "object" | |
1818 }, | |
1819 "ClusterStatus": { | |
1820 "description": "The status of a cluster and its instances.", | |
1821 "id": "ClusterStatus", | |
1822 "properties": { | |
1823 "substate": { | |
1824 "description": "Output-only. Additional state information th
at includes status reported by the agent.", | |
1825 "enum": [ | |
1826 "UNSPECIFIED", | |
1827 "UNHEALTHY", | |
1828 "STALE_STATUS" | |
1829 ], | |
1830 "enumDescriptions": [ | |
1831 "", | |
1832 "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.", | |
1833 "The agent-reported status is out of date (may occur if
Cloud Dataproc loses communication with Agent).Applies to RUNNING state." | |
1834 ], | |
1835 "type": "string" | |
1836 }, | |
1837 "stateStartTime": { | |
1838 "description": "Output-only. Time when this state was entere
d.", | |
1839 "format": "google-datetime", | |
1840 "type": "string" | |
1841 }, | |
1842 "detail": { | |
1843 "description": "Output-only. Optional details of cluster's s
tate.", | |
1844 "type": "string" | |
1845 }, | |
1846 "state": { | |
1847 "description": "Output-only. The cluster's state.", | |
1848 "enum": [ | |
1849 "UNKNOWN", | |
1850 "CREATING", | |
1851 "RUNNING", | |
1852 "ERROR", | |
1853 "DELETING", | |
1854 "UPDATING" | |
1855 ], | |
1856 "enumDescriptions": [ | |
1857 "The cluster state is unknown.", | |
1858 "The cluster is being created and set up. It is not read
y for use.", | |
1859 "The cluster is currently running and healthy. It is rea
dy for use.", | |
1860 "The cluster encountered an error. It is not ready for u
se.", | |
1861 "The cluster is being deleted. It cannot be used.", | |
1862 "The cluster is being updated. It continues to accept an
d process jobs." | |
1863 ], | |
1864 "type": "string" | |
1865 } | |
1866 }, | |
1867 "type": "object" | |
1868 } | 1857 } |
1869 }, | 1858 }, |
1870 "servicePath": "", | 1859 "servicePath": "", |
1871 "title": "Google Cloud Dataproc API", | 1860 "title": "Google Cloud Dataproc API", |
1872 "version": "v1" | 1861 "version": "v1beta2" |
1873 } | 1862 } |
OLD | NEW |