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

Side by Side Diff: discovery/googleapis/dataproc__v1.json

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « discovery/googleapis/customsearch__v1.json ('k') | discovery/googleapis/datastore__v1.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": { 5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services" 6 "description": "View and manage your data across Google Clou d Platform services"
7 } 7 }
8 } 8 }
9 } 9 }
10 }, 10 },
11 "basePath": "", 11 "basePath": "",
12 "baseUrl": "https://dataproc.googleapis.com/", 12 "baseUrl": "https://dataproc.googleapis.com/",
13 "batchPath": "batch", 13 "batchPath": "batch",
14 "description": "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:v1",
22 "kind": "discovery#restDescription", 22 "kind": "discovery#restDescription",
23 "name": "dataproc", 23 "name": "dataproc",
24 "ownerDomain": "google.com", 24 "ownerDomain": "google.com",
25 "ownerName": "Google", 25 "ownerName": "Google",
26 "parameters": { 26 "parameters": {
27 "access_token": {
28 "description": "OAuth access token.",
29 "location": "query",
30 "type": "string"
31 },
32 "key": {
33 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
34 "location": "query",
35 "type": "string"
36 },
37 "quotaUser": {
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.",
39 "location": "query",
40 "type": "string"
41 },
42 "pp": {
43 "default": "true",
44 "description": "Pretty-print response.",
45 "location": "query",
46 "type": "boolean"
47 },
48 "oauth_token": {
49 "description": "OAuth 2.0 token for the current user.",
50 "location": "query",
51 "type": "string"
52 },
53 "bearer_token": {
54 "description": "OAuth bearer token.",
55 "location": "query",
56 "type": "string"
57 },
58 "upload_protocol": { 27 "upload_protocol": {
59 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").", 28 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
60 "location": "query", 29 "location": "query",
61 "type": "string" 30 "type": "string"
62 }, 31 },
63 "prettyPrint": { 32 "prettyPrint": {
64 "default": "true", 33 "default": "true",
65 "description": "Returns response with indentations and line breaks." , 34 "description": "Returns response with indentations and line breaks." ,
66 "location": "query", 35 "location": "query",
67 "type": "boolean" 36 "type": "boolean"
68 }, 37 },
38 "fields": {
39 "description": "Selector specifying which fields to include in a par tial response.",
40 "location": "query",
41 "type": "string"
42 },
69 "uploadType": { 43 "uploadType": {
70 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").", 44 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
71 "location": "query", 45 "location": "query",
72 "type": "string" 46 "type": "string"
73 }, 47 },
74 "fields": {
75 "description": "Selector specifying which fields to include in a par tial response.",
76 "location": "query",
77 "type": "string"
78 },
79 "$.xgafv": { 48 "$.xgafv": {
80 "description": "V1 error format.", 49 "description": "V1 error format.",
81 "enum": [ 50 "enum": [
82 "1", 51 "1",
83 "2" 52 "2"
84 ], 53 ],
85 "enumDescriptions": [ 54 "enumDescriptions": [
86 "v1 error format", 55 "v1 error format",
87 "v2 error format" 56 "v2 error format"
88 ], 57 ],
(...skipping 13 matching lines...) Expand all
102 "media", 71 "media",
103 "proto" 72 "proto"
104 ], 73 ],
105 "enumDescriptions": [ 74 "enumDescriptions": [
106 "Responses with Content-Type of application/json", 75 "Responses with Content-Type of application/json",
107 "Media download with context-dependent Content-Type", 76 "Media download with context-dependent Content-Type",
108 "Responses with Content-Type of application/x-protobuf" 77 "Responses with Content-Type of application/x-protobuf"
109 ], 78 ],
110 "location": "query", 79 "location": "query",
111 "type": "string" 80 "type": "string"
81 },
82 "access_token": {
83 "description": "OAuth access token.",
84 "location": "query",
85 "type": "string"
86 },
87 "key": {
88 "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.",
89 "location": "query",
90 "type": "string"
91 },
92 "quotaUser": {
93 "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.",
94 "location": "query",
95 "type": "string"
96 },
97 "pp": {
98 "default": "true",
99 "description": "Pretty-print response.",
100 "location": "query",
101 "type": "boolean"
102 },
103 "oauth_token": {
104 "description": "OAuth 2.0 token for the current user.",
105 "location": "query",
106 "type": "string"
107 },
108 "bearer_token": {
109 "description": "OAuth bearer token.",
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 "clusters": { 120 "jobs": {
121 "methods": { 121 "methods": {
122 "create": { 122 "cancel": {
123 "description": "Creates a cluster in a proje ct.", 123 "description": "Starts a job cancellation re quest. To access the job resource after cancellation, call regions/{region}/jobs .list or regions/{region}/jobs.get.",
124 "httpMethod": "POST", 124 "httpMethod": "POST",
125 "id": "dataproc.projects.regions.clusters.cr eate", 125 "id": "dataproc.projects.regions.jobs.cancel ",
126 "parameterOrder": [ 126 "parameterOrder": [
127 "projectId", 127 "projectId",
128 "region" 128 "region",
129 "jobId"
129 ], 130 ],
130 "parameters": { 131 "parameters": {
132 "projectId": {
133 "description": "Required The ID of t he Google Cloud Platform project that the job belongs to.",
134 "location": "path",
135 "required": true,
136 "type": "string"
137 },
138 "jobId": {
139 "description": "Required The job ID. ",
140 "location": "path",
141 "required": true,
142 "type": "string"
143 },
131 "region": { 144 "region": {
132 "description": "Required The Cloud D ataproc region in which to handle the request.", 145 "description": "Required The Cloud D ataproc region in which to handle the request.",
133 "location": "path", 146 "location": "path",
134 "required": true, 147 "required": true,
135 "type": "string" 148 "type": "string"
136 },
137 "projectId": {
138 "description": "Required The ID of t he Google Cloud Platform project that the cluster belongs to.",
139 "location": "path",
140 "required": true,
141 "type": "string"
142 } 149 }
143 }, 150 },
144 "path": "v1/projects/{projectId}/regions/{re gion}/clusters", 151 "path": "v1/projects/{projectId}/regions/{re gion}/jobs/{jobId}:cancel",
145 "request": { 152 "request": {
146 "$ref": "Cluster" 153 "$ref": "CancelJobRequest"
147 }, 154 },
148 "response": { 155 "response": {
149 "$ref": "Operation" 156 "$ref": "Job"
150 }, 157 },
151 "scopes": [ 158 "scopes": [
152 "https://www.googleapis.com/auth/cloud-p latform" 159 "https://www.googleapis.com/auth/cloud-p latform"
153 ] 160 ]
154 }, 161 },
155 "patch": { 162 "get": {
156 "description": "Updates a cluster in a proje ct.", 163 "description": "Gets the resource representa tion for a job in a project.",
157 "httpMethod": "PATCH", 164 "httpMethod": "GET",
158 "id": "dataproc.projects.regions.clusters.pa tch", 165 "id": "dataproc.projects.regions.jobs.get",
159 "parameterOrder": [ 166 "parameterOrder": [
160 "projectId", 167 "projectId",
161 "region", 168 "region",
162 "clusterName" 169 "jobId"
163 ], 170 ],
164 "parameters": { 171 "parameters": {
165 "region": { 172 "region": {
166 "description": "Required The Cloud D ataproc region in which to handle the request.", 173 "description": "Required The Cloud D ataproc region in which to handle the request.",
167 "location": "path", 174 "location": "path",
168 "required": true, 175 "required": true,
169 "type": "string" 176 "type": "string"
170 }, 177 },
171 "updateMask": { 178 "projectId": {
172 "description": "Required Specifies t he 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 \"con fig\":{\n \"workerConfig\":{\n \"numInstances\":\"5\"\n }\n }\n}\nSi milarly, to change the number of preemptible workers in a cluster to 5, the <cod e>update_mask</code> parameter would be <code>config.secondary_worker_config.num _instances</code>, and the PATCH request body would be set as follows:\n{\n \"c onfig\":{\n \"secondaryWorkerConfig\":{\n \"numInstances\":\"5\"\n }\ n }\n}\n<strong>Note:</strong> Currently, <code>config.worker_config.num_instan ces</code> and <code>config.secondary_worker_config.num_instances</code> are the only fields that can be updated.", 179 "description": "Required The ID of t he Google Cloud Platform project that the job belongs to.",
173 "format": "google-fieldmask",
174 "location": "query",
175 "type": "string"
176 },
177 "clusterName": {
178 "description": "Required The cluster name.",
179 "location": "path", 180 "location": "path",
180 "required": true, 181 "required": true,
181 "type": "string" 182 "type": "string"
182 }, 183 },
183 "projectId": { 184 "jobId": {
184 "description": "Required The ID of t he Google Cloud Platform project the cluster belongs to.", 185 "description": "Required The job ID. ",
185 "location": "path", 186 "location": "path",
186 "required": true, 187 "required": true,
187 "type": "string" 188 "type": "string"
188 } 189 }
189 }, 190 },
190 "path": "v1/projects/{projectId}/regions/{re gion}/clusters/{clusterName}", 191 "path": "v1/projects/{projectId}/regions/{re gion}/jobs/{jobId}",
191 "request": {
192 "$ref": "Cluster"
193 },
194 "response": { 192 "response": {
195 "$ref": "Operation" 193 "$ref": "Job"
196 }, 194 },
197 "scopes": [ 195 "scopes": [
198 "https://www.googleapis.com/auth/cloud-p latform" 196 "https://www.googleapis.com/auth/cloud-p latform"
199 ] 197 ]
200 }, 198 },
201 "get": { 199 "patch": {
202 "description": "Gets the resource representa tion for a cluster in a project.", 200 "description": "Updates a job in a project." ,
203 "httpMethod": "GET", 201 "httpMethod": "PATCH",
204 "id": "dataproc.projects.regions.clusters.ge t", 202 "id": "dataproc.projects.regions.jobs.patch" ,
205 "parameterOrder": [ 203 "parameterOrder": [
206 "projectId", 204 "projectId",
207 "region", 205 "region",
208 "clusterName" 206 "jobId"
209 ], 207 ],
210 "parameters": { 208 "parameters": {
211 "clusterName": {
212 "description": "Required The cluster name.",
213 "location": "path",
214 "required": true,
215 "type": "string"
216 },
217 "projectId": {
218 "description": "Required The ID of t he Google Cloud Platform project that the cluster belongs to.",
219 "location": "path",
220 "required": true,
221 "type": "string"
222 },
223 "region": { 209 "region": {
224 "description": "Required The Cloud D ataproc region in which to handle the request.", 210 "description": "Required The Cloud D ataproc region in which to handle the request.",
225 "location": "path", 211 "location": "path",
226 "required": true, 212 "required": true,
227 "type": "string" 213 "type": "string"
214 },
215 "updateMask": {
216 "description": "Required Specifies t he path, relative to <code>Job</code>, of the field to update. For example, to u pdate the labels of a Job the <code>update_mask</code> parameter would be specif ied as <code>labels</code>, and the PATCH request body would specify the new val ue. <strong>Note:</strong> Currently, <code>labels</code> is the only field that can be updated.",
217 "format": "google-fieldmask",
218 "location": "query",
219 "type": "string"
220 },
221 "projectId": {
222 "description": "Required The ID of t he Google Cloud Platform project that the job belongs to.",
223 "location": "path",
224 "required": true,
225 "type": "string"
226 },
227 "jobId": {
228 "description": "Required The job ID. ",
229 "location": "path",
230 "required": true,
231 "type": "string"
228 } 232 }
229 }, 233 },
230 "path": "v1/projects/{projectId}/regions/{re gion}/clusters/{clusterName}", 234 "path": "v1/projects/{projectId}/regions/{re gion}/jobs/{jobId}",
235 "request": {
236 "$ref": "Job"
237 },
231 "response": { 238 "response": {
232 "$ref": "Cluster" 239 "$ref": "Job"
233 }, 240 },
234 "scopes": [ 241 "scopes": [
235 "https://www.googleapis.com/auth/cloud-p latform" 242 "https://www.googleapis.com/auth/cloud-p latform"
236 ] 243 ]
237 }, 244 },
238 "diagnose": { 245 "submit": {
239 "description": "Gets cluster diagnostic info rmation. After the operation completes, the Operation.response field contains Di agnoseClusterOutputLocation.", 246 "description": "Submits a job to a cluster." ,
240 "httpMethod": "POST", 247 "httpMethod": "POST",
241 "id": "dataproc.projects.regions.clusters.di agnose", 248 "id": "dataproc.projects.regions.jobs.submit ",
242 "parameterOrder": [ 249 "parameterOrder": [
243 "projectId", 250 "projectId",
244 "region", 251 "region"
245 "clusterName"
246 ], 252 ],
247 "parameters": { 253 "parameters": {
248 "region": { 254 "region": {
249 "description": "Required The Cloud D ataproc region in which to handle the request.", 255 "description": "Required The Cloud D ataproc region in which to handle the request.",
250 "location": "path", 256 "location": "path",
251 "required": true, 257 "required": true,
252 "type": "string" 258 "type": "string"
253 }, 259 },
254 "clusterName": {
255 "description": "Required The cluster name.",
256 "location": "path",
257 "required": true,
258 "type": "string"
259 },
260 "projectId": { 260 "projectId": {
261 "description": "Required The ID of t he Google Cloud Platform project that the cluster belongs to.", 261 "description": "Required The ID of t he Google Cloud Platform project that the job belongs to.",
262 "location": "path", 262 "location": "path",
263 "required": true, 263 "required": true,
264 "type": "string" 264 "type": "string"
265 } 265 }
266 }, 266 },
267 "path": "v1/projects/{projectId}/regions/{re gion}/clusters/{clusterName}:diagnose", 267 "path": "v1/projects/{projectId}/regions/{re gion}/jobs:submit",
268 "request": { 268 "request": {
269 "$ref": "DiagnoseClusterRequest" 269 "$ref": "SubmitJobRequest"
270 }, 270 },
271 "response": { 271 "response": {
272 "$ref": "Operation" 272 "$ref": "Job"
273 }, 273 },
274 "scopes": [ 274 "scopes": [
275 "https://www.googleapis.com/auth/cloud-p latform" 275 "https://www.googleapis.com/auth/cloud-p latform"
276 ] 276 ]
277 }, 277 },
278 "delete": { 278 "delete": {
279 "description": "Deletes a cluster in a proje ct.", 279 "description": "Deletes the job from the pro ject. If the job is active, the delete fails, and the response returns FAILED_PR ECONDITION.",
280 "httpMethod": "DELETE", 280 "httpMethod": "DELETE",
281 "id": "dataproc.projects.regions.clusters.de lete", 281 "id": "dataproc.projects.regions.jobs.delete ",
282 "parameterOrder": [ 282 "parameterOrder": [
283 "projectId", 283 "projectId",
284 "region", 284 "region",
285 "clusterName" 285 "jobId"
286 ], 286 ],
287 "parameters": { 287 "parameters": {
288 "clusterName": { 288 "projectId": {
289 "description": "Required The cluster name.", 289 "description": "Required The ID of t he Google Cloud Platform project that the job belongs to.",
290 "location": "path", 290 "location": "path",
291 "required": true, 291 "required": true,
292 "type": "string" 292 "type": "string"
293 }, 293 },
294 "projectId": { 294 "jobId": {
295 "description": "Required The ID of t he Google Cloud Platform project that the cluster belongs to.", 295 "description": "Required The job ID. ",
296 "location": "path", 296 "location": "path",
297 "required": true, 297 "required": true,
298 "type": "string" 298 "type": "string"
299 }, 299 },
300 "region": { 300 "region": {
301 "description": "Required The Cloud D ataproc region in which to handle the request.", 301 "description": "Required The Cloud D ataproc region in which to handle the request.",
302 "location": "path", 302 "location": "path",
303 "required": true, 303 "required": true,
304 "type": "string" 304 "type": "string"
305 } 305 }
306 }, 306 },
307 "path": "v1/projects/{projectId}/regions/{re gion}/clusters/{clusterName}", 307 "path": "v1/projects/{projectId}/regions/{re gion}/jobs/{jobId}",
308 "response": { 308 "response": {
309 "$ref": "Operation" 309 "$ref": "Empty"
310 }, 310 },
311 "scopes": [ 311 "scopes": [
312 "https://www.googleapis.com/auth/cloud-p latform" 312 "https://www.googleapis.com/auth/cloud-p latform"
313 ] 313 ]
314 }, 314 },
315 "list": { 315 "list": {
316 "description": "Lists all regions/{region}/c lusters in a project.", 316 "description": "Lists regions/{region}/jobs in a project.",
317 "httpMethod": "GET", 317 "httpMethod": "GET",
318 "id": "dataproc.projects.regions.clusters.li st", 318 "id": "dataproc.projects.regions.jobs.list",
319 "parameterOrder": [ 319 "parameterOrder": [
320 "projectId", 320 "projectId",
321 "region" 321 "region"
322 ], 322 ],
323 "parameters": { 323 "parameters": {
324 "filter": {
325 "description": "Optional A filter co nstraining the jobs to list. Filters are case-sensitive and have the following s yntax:field = value AND field = value ...where field is status.state or labels.[ KEY], and [KEY] is a label key. value can be * to match all values. status.state can be either ACTIVE or INACTIVE. Only the logical AND operator is supported; s pace-separated items are treated as having an implicit AND operator.Example filt er:status.state = ACTIVE AND labels.env = staging AND labels.starred = *",
326 "location": "query",
327 "type": "string"
328 },
329 "jobStateMatcher": {
330 "description": "Optional Specifies e numerated categories of jobs to list (default = match ALL jobs).",
331 "enum": [
332 "ALL",
333 "ACTIVE",
334 "NON_ACTIVE"
335 ],
336 "location": "query",
337 "type": "string"
338 },
324 "pageToken": { 339 "pageToken": {
325 "description": "Optional The standar d List page token.", 340 "description": "Optional The page to ken, returned by a previous call, to request the next page of results.",
326 "location": "query", 341 "location": "query",
327 "type": "string" 342 "type": "string"
328 }, 343 },
329 "pageSize": { 344 "pageSize": {
330 "description": "Optional The standar d List page size.", 345 "description": "Optional The number of results to return in each response.",
331 "format": "int32", 346 "format": "int32",
332 "location": "query", 347 "location": "query",
333 "type": "integer" 348 "type": "integer"
334 }, 349 },
335 "projectId": {
336 "description": "Required The ID of t he Google Cloud Platform project that the cluster belongs to.",
337 "location": "path",
338 "required": true,
339 "type": "string"
340 },
341 "region": { 350 "region": {
342 "description": "Required The Cloud D ataproc region in which to handle the request.", 351 "description": "Required The Cloud D ataproc region in which to handle the request.",
343 "location": "path", 352 "location": "path",
344 "required": true, 353 "required": true,
345 "type": "string" 354 "type": "string"
346 }, 355 },
347 "filter": { 356 "clusterName": {
348 "description": "Optional A filter co nstraining the clusters to list. Filters are case-sensitive and have the followi ng 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 match all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATIN G, RUNNING, ERROR, DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATING , and RUNNING states. INACTIVE contains the DELETING and ERROR states. clusterNa me is the name of the cluster provided at creation time. Only the logical AND op erator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND clusterName = mycluster AND l abels.env = staging AND labels.starred = *", 357 "description": "Optional If set, the returned jobs list includes only jobs that were submitted to the named cluster. ",
349 "location": "query", 358 "location": "query",
350 "type": "string" 359 "type": "string"
360 },
361 "projectId": {
362 "description": "Required The ID of t he Google Cloud Platform project that the job belongs to.",
363 "location": "path",
364 "required": true,
365 "type": "string"
351 } 366 }
352 }, 367 },
353 "path": "v1/projects/{projectId}/regions/{re gion}/clusters", 368 "path": "v1/projects/{projectId}/regions/{re gion}/jobs",
354 "response": { 369 "response": {
355 "$ref": "ListClustersResponse" 370 "$ref": "ListJobsResponse"
356 }, 371 },
357 "scopes": [ 372 "scopes": [
358 "https://www.googleapis.com/auth/cloud-p latform" 373 "https://www.googleapis.com/auth/cloud-p latform"
359 ] 374 ]
360 } 375 }
361 } 376 }
362 }, 377 },
363 "operations": { 378 "clusters": {
364 "methods": { 379 "methods": {
365 "cancel": { 380 "get": {
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.", 381 "description": "Gets the resource representa tion for a cluster in a project.",
367 "httpMethod": "POST", 382 "httpMethod": "GET",
368 "id": "dataproc.projects.regions.operations. cancel", 383 "id": "dataproc.projects.regions.clusters.ge t",
369 "parameterOrder": [ 384 "parameterOrder": [
370 "name" 385 "projectId",
386 "region",
387 "clusterName"
371 ], 388 ],
372 "parameters": { 389 "parameters": {
373 "name": { 390 "region": {
374 "description": "The name of the oper ation resource to be cancelled.", 391 "description": "Required The Cloud D ataproc region in which to handle the request.",
375 "location": "path", 392 "location": "path",
376 "pattern": "^projects/[^/]+/regions/ [^/]+/operations/[^/]+$", 393 "required": true,
394 "type": "string"
395 },
396 "clusterName": {
397 "description": "Required The cluster name.",
398 "location": "path",
399 "required": true,
400 "type": "string"
401 },
402 "projectId": {
403 "description": "Required The ID of t he Google Cloud Platform project that the cluster belongs to.",
404 "location": "path",
377 "required": true, 405 "required": true,
378 "type": "string" 406 "type": "string"
379 } 407 }
380 }, 408 },
381 "path": "v1/{+name}:cancel", 409 "path": "v1/projects/{projectId}/regions/{re gion}/clusters/{clusterName}",
382 "response": { 410 "response": {
383 "$ref": "Empty" 411 "$ref": "Cluster"
412 },
413 "scopes": [
414 "https://www.googleapis.com/auth/cloud-p latform"
415 ]
416 },
417 "patch": {
418 "description": "Updates a cluster in a proje ct.",
419 "httpMethod": "PATCH",
420 "id": "dataproc.projects.regions.clusters.pa tch",
421 "parameterOrder": [
422 "projectId",
423 "region",
424 "clusterName"
425 ],
426 "parameters": {
427 "clusterName": {
428 "description": "Required The cluster name.",
429 "location": "path",
430 "required": true,
431 "type": "string"
432 },
433 "projectId": {
434 "description": "Required The ID of t he Google Cloud Platform project the cluster belongs to.",
435 "location": "path",
436 "required": true,
437 "type": "string"
438 },
439 "region": {
440 "description": "Required The Cloud D ataproc region in which to handle the request.",
441 "location": "path",
442 "required": true,
443 "type": "string"
444 },
445 "updateMask": {
446 "description": "Required Specifies t he 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 \"con fig\":{\n \"workerConfig\":{\n \"numInstances\":\"5\"\n }\n }\n}\nSi milarly, to change the number of preemptible workers in a cluster to 5, the <cod e>update_mask</code> parameter would be <code>config.secondary_worker_config.num _instances</code>, and the PATCH request body would be set as follows:\n{\n \"c onfig\":{\n \"secondaryWorkerConfig\":{\n \"numInstances\":\"5\"\n }\ n }\n}\n<strong>Note:</strong> Currently, <code>config.worker_config.num_instan ces</code> and <code>config.secondary_worker_config.num_instances</code> are the only fields that can be updated.",
447 "format": "google-fieldmask",
448 "location": "query",
449 "type": "string"
450 }
451 },
452 "path": "v1/projects/{projectId}/regions/{re gion}/clusters/{clusterName}",
453 "request": {
454 "$ref": "Cluster"
455 },
456 "response": {
457 "$ref": "Operation"
384 }, 458 },
385 "scopes": [ 459 "scopes": [
386 "https://www.googleapis.com/auth/cloud-p latform" 460 "https://www.googleapis.com/auth/cloud-p latform"
387 ] 461 ]
388 }, 462 },
389 "delete": { 463 "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.", 464 "description": "Deletes a cluster in a proje ct.",
391 "httpMethod": "DELETE", 465 "httpMethod": "DELETE",
392 "id": "dataproc.projects.regions.operations. delete", 466 "id": "dataproc.projects.regions.clusters.de lete",
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": "v1/{+name}",
406 "response": {
407 "$ref": "Empty"
408 },
409 "scopes": [
410 "https://www.googleapis.com/auth/cloud-p latform"
411 ]
412 },
413 "list": {
414 "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 below allows API services to ove rride the binding to use different resource name schemes, such as users/*/operat ions.",
415 "httpMethod": "GET",
416 "id": "dataproc.projects.regions.operations. list",
417 "parameterOrder": [
418 "name"
419 ],
420 "parameters": {
421 "filter": {
422 "description": "The standard list fi lter.",
423 "location": "query",
424 "type": "string"
425 },
426 "name": {
427 "description": "The name of the oper ation collection.",
428 "location": "path",
429 "pattern": "^projects/[^/]+/regions/ [^/]+/operations$",
430 "required": true,
431 "type": "string"
432 },
433 "pageToken": {
434 "description": "The standard list pa ge token.",
435 "location": "query",
436 "type": "string"
437 },
438 "pageSize": {
439 "description": "The standard list pa ge size.",
440 "format": "int32",
441 "location": "query",
442 "type": "integer"
443 }
444 },
445 "path": "v1/{+name}",
446 "response": {
447 "$ref": "ListOperationsResponse"
448 },
449 "scopes": [
450 "https://www.googleapis.com/auth/cloud-p latform"
451 ]
452 },
453 "get": {
454 "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.",
455 "httpMethod": "GET",
456 "id": "dataproc.projects.regions.operations. get",
457 "parameterOrder": [
458 "name"
459 ],
460 "parameters": {
461 "name": {
462 "description": "The name of the oper ation resource.",
463 "location": "path",
464 "pattern": "^projects/[^/]+/regions/ [^/]+/operations/[^/]+$",
465 "required": true,
466 "type": "string"
467 }
468 },
469 "path": "v1/{+name}",
470 "response": {
471 "$ref": "Operation"
472 },
473 "scopes": [
474 "https://www.googleapis.com/auth/cloud-p latform"
475 ]
476 }
477 }
478 },
479 "jobs": {
480 "methods": {
481 "cancel": {
482 "description": "Starts a job cancellation re quest. To access the job resource after cancellation, call regions/{region}/jobs .list or regions/{region}/jobs.get.",
483 "httpMethod": "POST",
484 "id": "dataproc.projects.regions.jobs.cancel ",
485 "parameterOrder": [ 467 "parameterOrder": [
486 "projectId", 468 "projectId",
487 "region", 469 "region",
488 "jobId" 470 "clusterName"
489 ], 471 ],
490 "parameters": { 472 "parameters": {
491 "region": { 473 "region": {
492 "description": "Required The Cloud D ataproc region in which to handle the request.", 474 "description": "Required The Cloud D ataproc region in which to handle the request.",
493 "location": "path", 475 "location": "path",
494 "required": true, 476 "required": true,
495 "type": "string" 477 "type": "string"
496 }, 478 },
479 "clusterName": {
480 "description": "Required The cluster name.",
481 "location": "path",
482 "required": true,
483 "type": "string"
484 },
497 "projectId": { 485 "projectId": {
498 "description": "Required The ID of t he Google Cloud Platform project that the job belongs to.", 486 "description": "Required The ID of t he Google Cloud Platform project that the cluster belongs to.",
499 "location": "path",
500 "required": true,
501 "type": "string"
502 },
503 "jobId": {
504 "description": "Required The job ID. ",
505 "location": "path", 487 "location": "path",
506 "required": true, 488 "required": true,
507 "type": "string" 489 "type": "string"
508 } 490 }
509 }, 491 },
510 "path": "v1/projects/{projectId}/regions/{re gion}/jobs/{jobId}:cancel", 492 "path": "v1/projects/{projectId}/regions/{re gion}/clusters/{clusterName}",
511 "request": {
512 "$ref": "CancelJobRequest"
513 },
514 "response": { 493 "response": {
515 "$ref": "Job" 494 "$ref": "Operation"
516 }, 495 },
517 "scopes": [ 496 "scopes": [
518 "https://www.googleapis.com/auth/cloud-p latform" 497 "https://www.googleapis.com/auth/cloud-p latform"
519 ] 498 ]
520 }, 499 },
521 "patch": { 500 "diagnose": {
522 "description": "Updates a job in a project." , 501 "description": "Gets cluster diagnostic info rmation. After the operation completes, the Operation.response field contains Di agnoseClusterOutputLocation.",
523 "httpMethod": "PATCH", 502 "httpMethod": "POST",
524 "id": "dataproc.projects.regions.jobs.patch" , 503 "id": "dataproc.projects.regions.clusters.di agnose",
525 "parameterOrder": [ 504 "parameterOrder": [
526 "projectId", 505 "projectId",
527 "region", 506 "region",
528 "jobId" 507 "clusterName"
529 ], 508 ],
530 "parameters": { 509 "parameters": {
531 "projectId": { 510 "projectId": {
532 "description": "Required The ID of t he Google Cloud Platform project that the job belongs to.", 511 "description": "Required The ID of t he Google Cloud Platform project that the cluster belongs to.",
533 "location": "path", 512 "location": "path",
534 "required": true, 513 "required": true,
535 "type": "string" 514 "type": "string"
536 },
537 "jobId": {
538 "description": "Required The job ID. ",
539 "location": "path",
540 "required": true,
541 "type": "string"
542 }, 515 },
543 "region": { 516 "region": {
544 "description": "Required The Cloud D ataproc region in which to handle the request.", 517 "description": "Required The Cloud D ataproc region in which to handle the request.",
545 "location": "path", 518 "location": "path",
546 "required": true, 519 "required": true,
547 "type": "string" 520 "type": "string"
548 }, 521 },
549 "updateMask": { 522 "clusterName": {
550 "description": "Required Specifies t he path, relative to <code>Job</code>, of the field to update. For example, to u pdate the labels of a Job the <code>update_mask</code> parameter would be specif ied as <code>labels</code>, and the PATCH request body would specify the new val ue. <strong>Note:</strong> Currently, <code>labels</code> is the only field that can be updated.", 523 "description": "Required The cluster name.",
551 "format": "google-fieldmask", 524 "location": "path",
552 "location": "query", 525 "required": true,
553 "type": "string" 526 "type": "string"
554 } 527 }
555 }, 528 },
556 "path": "v1/projects/{projectId}/regions/{re gion}/jobs/{jobId}", 529 "path": "v1/projects/{projectId}/regions/{re gion}/clusters/{clusterName}:diagnose",
557 "request": { 530 "request": {
558 "$ref": "Job" 531 "$ref": "DiagnoseClusterRequest"
559 }, 532 },
560 "response": { 533 "response": {
561 "$ref": "Job" 534 "$ref": "Operation"
562 }, 535 },
563 "scopes": [ 536 "scopes": [
564 "https://www.googleapis.com/auth/cloud-p latform" 537 "https://www.googleapis.com/auth/cloud-p latform"
565 ] 538 ]
566 }, 539 },
567 "get": { 540 "list": {
568 "description": "Gets the resource representa tion for a job in a project.", 541 "description": "Lists all regions/{region}/c lusters in a project.",
569 "httpMethod": "GET", 542 "httpMethod": "GET",
570 "id": "dataproc.projects.regions.jobs.get", 543 "id": "dataproc.projects.regions.clusters.li st",
571 "parameterOrder": [ 544 "parameterOrder": [
572 "projectId", 545 "projectId",
573 "region", 546 "region"
574 "jobId"
575 ], 547 ],
576 "parameters": { 548 "parameters": {
549 "pageSize": {
550 "description": "Optional The standar d List page size.",
551 "format": "int32",
552 "location": "query",
553 "type": "integer"
554 },
577 "projectId": { 555 "projectId": {
578 "description": "Required The ID of t he Google Cloud Platform project that the job belongs to.", 556 "description": "Required The ID of t he Google Cloud Platform project that the cluster belongs to.",
579 "location": "path", 557 "location": "path",
580 "required": true, 558 "required": true,
581 "type": "string" 559 "type": "string"
582 },
583 "jobId": {
584 "description": "Required The job ID. ",
585 "location": "path",
586 "required": true,
587 "type": "string"
588 }, 560 },
589 "region": { 561 "region": {
590 "description": "Required The Cloud D ataproc region in which to handle the request.", 562 "description": "Required The Cloud D ataproc region in which to handle the request.",
591 "location": "path", 563 "location": "path",
592 "required": true, 564 "required": true,
593 "type": "string" 565 "type": "string"
566 },
567 "filter": {
568 "description": "Optional A filter co nstraining the clusters to list. Filters are case-sensitive and have the followi ng 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 match all values. status.state can be one of the following: ACTIVE, INACTIVE, CREATIN G, RUNNING, ERROR, DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATING , and RUNNING states. INACTIVE contains the DELETING and ERROR states. clusterNa me is the name of the cluster provided at creation time. Only the logical AND op erator is supported; space-separated items are treated as having an implicit AND operator.Example filter:status.state = ACTIVE AND clusterName = mycluster AND l abels.env = staging AND labels.starred = *",
569 "location": "query",
570 "type": "string"
571 },
572 "pageToken": {
573 "description": "Optional The standar d List page token.",
574 "location": "query",
575 "type": "string"
594 } 576 }
595 }, 577 },
596 "path": "v1/projects/{projectId}/regions/{re gion}/jobs/{jobId}", 578 "path": "v1/projects/{projectId}/regions/{re gion}/clusters",
597 "response": { 579 "response": {
598 "$ref": "Job" 580 "$ref": "ListClustersResponse"
599 }, 581 },
600 "scopes": [ 582 "scopes": [
601 "https://www.googleapis.com/auth/cloud-p latform" 583 "https://www.googleapis.com/auth/cloud-p latform"
602 ] 584 ]
603 }, 585 },
604 "submit": { 586 "create": {
605 "description": "Submits a job to a cluster." , 587 "description": "Creates a cluster in a proje ct.",
606 "httpMethod": "POST", 588 "httpMethod": "POST",
607 "id": "dataproc.projects.regions.jobs.submit ", 589 "id": "dataproc.projects.regions.clusters.cr eate",
608 "parameterOrder": [ 590 "parameterOrder": [
609 "projectId", 591 "projectId",
610 "region" 592 "region"
611 ], 593 ],
612 "parameters": { 594 "parameters": {
613 "region": {
614 "description": "Required The Cloud D ataproc region in which to handle the request.",
615 "location": "path",
616 "required": true,
617 "type": "string"
618 },
619 "projectId": { 595 "projectId": {
620 "description": "Required The ID of t he Google Cloud Platform project that the job belongs to.", 596 "description": "Required The ID of t he Google Cloud Platform project that the cluster belongs to.",
621 "location": "path",
622 "required": true,
623 "type": "string"
624 }
625 },
626 "path": "v1/projects/{projectId}/regions/{re gion}/jobs:submit",
627 "request": {
628 "$ref": "SubmitJobRequest"
629 },
630 "response": {
631 "$ref": "Job"
632 },
633 "scopes": [
634 "https://www.googleapis.com/auth/cloud-p latform"
635 ]
636 },
637 "delete": {
638 "description": "Deletes the job from the pro ject. If the job is active, the delete fails, and the response returns FAILED_PR ECONDITION.",
639 "httpMethod": "DELETE",
640 "id": "dataproc.projects.regions.jobs.delete ",
641 "parameterOrder": [
642 "projectId",
643 "region",
644 "jobId"
645 ],
646 "parameters": {
647 "projectId": {
648 "description": "Required The ID of t he Google Cloud Platform project that the job belongs to.",
649 "location": "path",
650 "required": true,
651 "type": "string"
652 },
653 "jobId": {
654 "description": "Required The job ID. ",
655 "location": "path", 597 "location": "path",
656 "required": true, 598 "required": true,
657 "type": "string" 599 "type": "string"
658 }, 600 },
659 "region": { 601 "region": {
660 "description": "Required The Cloud D ataproc region in which to handle the request.", 602 "description": "Required The Cloud D ataproc region in which to handle the request.",
661 "location": "path", 603 "location": "path",
662 "required": true, 604 "required": true,
663 "type": "string" 605 "type": "string"
664 } 606 }
665 }, 607 },
666 "path": "v1/projects/{projectId}/regions/{re gion}/jobs/{jobId}", 608 "path": "v1/projects/{projectId}/regions/{re gion}/clusters",
609 "request": {
610 "$ref": "Cluster"
611 },
612 "response": {
613 "$ref": "Operation"
614 },
615 "scopes": [
616 "https://www.googleapis.com/auth/cloud-p latform"
617 ]
618 }
619 }
620 },
621 "operations": {
622 "methods": {
623 "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.",
625 "httpMethod": "POST",
626 "id": "dataproc.projects.regions.operations. cancel",
627 "parameterOrder": [
628 "name"
629 ],
630 "parameters": {
631 "name": {
632 "description": "The name of the oper ation resource to be cancelled.",
633 "location": "path",
634 "pattern": "^projects/[^/]+/regions/ [^/]+/operations/[^/]+$",
635 "required": true,
636 "type": "string"
637 }
638 },
639 "path": "v1/{+name}:cancel",
667 "response": { 640 "response": {
668 "$ref": "Empty" 641 "$ref": "Empty"
669 }, 642 },
643 "scopes": [
644 "https://www.googleapis.com/auth/cloud-p latform"
645 ]
646 },
647 "delete": {
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.",
649 "httpMethod": "DELETE",
650 "id": "dataproc.projects.regions.operations. delete",
651 "parameterOrder": [
652 "name"
653 ],
654 "parameters": {
655 "name": {
656 "description": "The name of the oper ation resource to be deleted.",
657 "location": "path",
658 "pattern": "^projects/[^/]+/regions/ [^/]+/operations/[^/]+$",
659 "required": true,
660 "type": "string"
661 }
662 },
663 "path": "v1/{+name}",
664 "response": {
665 "$ref": "Empty"
666 },
670 "scopes": [ 667 "scopes": [
671 "https://www.googleapis.com/auth/cloud-p latform" 668 "https://www.googleapis.com/auth/cloud-p latform"
672 ] 669 ]
673 }, 670 },
674 "list": { 671 "list": {
675 "description": "Lists regions/{region}/jobs in a project.", 672 "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 below allows API services to ove rride the binding to use different resource name schemes, such as users/*/operat ions.",
676 "httpMethod": "GET", 673 "httpMethod": "GET",
677 "id": "dataproc.projects.regions.jobs.list", 674 "id": "dataproc.projects.regions.operations. list",
678 "parameterOrder": [ 675 "parameterOrder": [
679 "projectId", 676 "name"
680 "region"
681 ], 677 ],
682 "parameters": { 678 "parameters": {
679 "filter": {
680 "description": "The standard list fi lter.",
681 "location": "query",
682 "type": "string"
683 },
684 "name": {
685 "description": "The name of the oper ation collection.",
686 "location": "path",
687 "pattern": "^projects/[^/]+/regions/ [^/]+/operations$",
688 "required": true,
689 "type": "string"
690 },
683 "pageToken": { 691 "pageToken": {
684 "description": "Optional The page to ken, returned by a previous call, to request the next page of results.", 692 "description": "The standard list pa ge token.",
685 "location": "query", 693 "location": "query",
686 "type": "string" 694 "type": "string"
687 }, 695 },
688 "pageSize": { 696 "pageSize": {
689 "description": "Optional The number of results to return in each response.", 697 "description": "The standard list pa ge size.",
690 "format": "int32", 698 "format": "int32",
691 "location": "query", 699 "location": "query",
692 "type": "integer" 700 "type": "integer"
693 }, 701 }
694 "region": { 702 },
695 "description": "Required The Cloud D ataproc region in which to handle the request.", 703 "path": "v1/{+name}",
704 "response": {
705 "$ref": "ListOperationsResponse"
706 },
707 "scopes": [
708 "https://www.googleapis.com/auth/cloud-p latform"
709 ]
710 },
711 "get": {
712 "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.",
713 "httpMethod": "GET",
714 "id": "dataproc.projects.regions.operations. get",
715 "parameterOrder": [
716 "name"
717 ],
718 "parameters": {
719 "name": {
720 "description": "The name of the oper ation resource.",
696 "location": "path", 721 "location": "path",
722 "pattern": "^projects/[^/]+/regions/ [^/]+/operations/[^/]+$",
697 "required": true, 723 "required": true,
698 "type": "string" 724 "type": "string"
699 },
700 "clusterName": {
701 "description": "Optional If set, the returned jobs list includes only jobs that were submitted to the named cluster. ",
702 "location": "query",
703 "type": "string"
704 },
705 "projectId": {
706 "description": "Required The ID of t he Google Cloud Platform project that the job belongs to.",
707 "location": "path",
708 "required": true,
709 "type": "string"
710 },
711 "filter": {
712 "description": "Optional A filter co nstraining the jobs to list. Filters are case-sensitive and have the following s yntax:field = value AND field = value ...where field is status.state or labels.[ KEY], and [KEY] is a label key. value can be * to match all values. status.state can be either ACTIVE or INACTIVE. Only the logical AND operator is supported; s pace-separated items are treated as having an implicit AND operator.Example filt er:status.state = ACTIVE AND labels.env = staging AND labels.starred = *",
713 "location": "query",
714 "type": "string"
715 },
716 "jobStateMatcher": {
717 "description": "Optional Specifies e numerated categories of jobs to list (default = match ALL jobs).",
718 "enum": [
719 "ALL",
720 "ACTIVE",
721 "NON_ACTIVE"
722 ],
723 "location": "query",
724 "type": "string"
725 } 725 }
726 }, 726 },
727 "path": "v1/projects/{projectId}/regions/{re gion}/jobs", 727 "path": "v1/{+name}",
728 "response": { 728 "response": {
729 "$ref": "ListJobsResponse" 729 "$ref": "Operation"
730 }, 730 },
731 "scopes": [ 731 "scopes": [
732 "https://www.googleapis.com/auth/cloud-p latform" 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": "20170321", 742 "revision": "20170412",
743 "rootUrl": "https://dataproc.googleapis.com/", 743 "rootUrl": "https://dataproc.googleapis.com/",
744 "schemas": { 744 "schemas": {
745 "AcceleratorConfig": { 745 "OperationMetadata": {
746 "description": "Specifies the type and number of accelerator cards a ttached to the instances of an instance group (see GPUs on Compute Engine).", 746 "description": "Metadata describing the operation.",
747 "id": "AcceleratorConfig", 747 "id": "OperationMetadata",
748 "properties": { 748 "properties": {
749 "acceleratorCount": { 749 "warnings": {
750 "description": "The number of the accelerator cards of this type exposed to this instance.", 750 "description": "Output-only Errors encountered during operat ion execution.",
751 "format": "int32", 751 "items": {
752 "type": "integer"
753 },
754 "acceleratorTypeUri": {
755 "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)",
756 "type": "string"
757 }
758 },
759 "type": "object"
760 },
761 "ClusterMetrics": {
762 "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.",
763 "id": "ClusterMetrics",
764 "properties": {
765 "yarnMetrics": {
766 "additionalProperties": {
767 "format": "int64",
768 "type": "string" 752 "type": "string"
769 }, 753 },
770 "description": "The YARN metrics.", 754 "type": "array"
771 "type": "object"
772 }, 755 },
773 "hdfsMetrics": { 756 "insertTime": {
774 "additionalProperties": { 757 "description": "The time that the operation was requested.",
775 "format": "int64",
776 "type": "string"
777 },
778 "description": "The HDFS metrics.",
779 "type": "object"
780 }
781 },
782 "type": "object"
783 },
784 "LoggingConfig": {
785 "description": "The runtime logging config of the job.",
786 "id": "LoggingConfig",
787 "properties": {
788 "driverLogLevels": {
789 "additionalProperties": {
790 "enum": [
791 "LEVEL_UNSPECIFIED",
792 "ALL",
793 "TRACE",
794 "DEBUG",
795 "INFO",
796 "WARN",
797 "ERROR",
798 "FATAL",
799 "OFF"
800 ],
801 "type": "string"
802 },
803 "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'",
804 "type": "object"
805 }
806 },
807 "type": "object"
808 },
809 "DiagnoseClusterOutputLocation": {
810 "description": "The location where output from diagnostic command ca n be found.",
811 "id": "DiagnoseClusterOutputLocation",
812 "properties": {
813 "outputUri": {
814 "description": "Output-only The Google Cloud Storage URI of the diagnostic output. This will be a plain text file with summary of collected diagnostics.",
815 "type": "string"
816 }
817 },
818 "type": "object"
819 },
820 "Operation": {
821 "description": "This resource represents a long-running operation th at is the result of a network API call.",
822 "id": "Operation",
823 "properties": {
824 "done": {
825 "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.",
826 "type": "boolean"
827 },
828 "response": {
829 "additionalProperties": {
830 "description": "Properties of the object. Contains field @type with type URL.",
831 "type": "any"
832 },
833 "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.",
834 "type": "object"
835 },
836 "name": {
837 "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.",
838 "type": "string"
839 },
840 "error": {
841 "$ref": "Status",
842 "description": "The error result of the operation in case of failure or cancellation."
843 },
844 "metadata": {
845 "additionalProperties": {
846 "description": "Properties of the object. Contains field @type with type URL.",
847 "type": "any"
848 },
849 "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.",
850 "type": "object"
851 }
852 },
853 "type": "object"
854 },
855 "OperationStatus": {
856 "description": "The status of the operation.",
857 "id": "OperationStatus",
858 "properties": {
859 "stateStartTime": {
860 "description": "The time this state was entered.",
861 "format": "google-datetime", 758 "format": "google-datetime",
862 "type": "string" 759 "type": "string"
863 }, 760 },
761 "statusHistory": {
762 "description": "Output-only Previous operation status.",
763 "items": {
764 "$ref": "OperationStatus"
765 },
766 "type": "array"
767 },
768 "operationType": {
769 "description": "Output-only The operation type.",
770 "type": "string"
771 },
772 "description": {
773 "description": "Output-only Short description of operation." ,
774 "type": "string"
775 },
776 "status": {
777 "$ref": "OperationStatus",
778 "description": "Output-only Current operation status."
779 },
780 "details": {
781 "description": "A message containing any operation metadata details.",
782 "type": "string"
783 },
864 "state": { 784 "state": {
865 "description": "A message containing the operation state.", 785 "description": "A message containing the operation state.",
866 "enum": [ 786 "enum": [
867 "UNKNOWN", 787 "UNKNOWN",
868 "PENDING", 788 "PENDING",
869 "RUNNING", 789 "RUNNING",
870 "DONE" 790 "DONE"
871 ], 791 ],
872 "enumDescriptions": [ 792 "enumDescriptions": [
873 "Unused.", 793 "Unused.",
874 "The operation has been created.", 794 "The operation has been created.",
875 "The operation is running.", 795 "The operation is currently running.",
876 "The operation is done; either cancelled or completed." 796 "The operation is done, either cancelled or completed."
877 ], 797 ],
878 "type": "string" 798 "type": "string"
879 }, 799 },
880 "details": { 800 "clusterName": {
881 "description": "A message containing any operation metadata details.", 801 "description": "Name of the cluster for the operation.",
802 "type": "string"
803 },
804 "clusterUuid": {
805 "description": "Cluster UUId for the operation.",
882 "type": "string" 806 "type": "string"
883 }, 807 },
884 "innerState": { 808 "innerState": {
885 "description": "A message containing the detailed operation state.", 809 "description": "A message containing the detailed operation state.",
886 "type": "string" 810 "type": "string"
887 } 811 },
888 }, 812 "endTime": {
889 "type": "object" 813 "description": "The time that the operation completed.",
890 }, 814 "format": "google-datetime",
891 "JobReference": {
892 "description": "Encapsulates the full scoping used to reference a jo b.",
893 "id": "JobReference",
894 "properties": {
895 "projectId": {
896 "description": "Required The ID of the Google Cloud Platform project that the job belongs to.",
897 "type": "string" 815 "type": "string"
898 }, 816 },
899 "jobId": { 817 "startTime": {
900 "description": "Optional The job ID, which must be unique wi thin the project. The job ID is generated by the server upon job submission or p rovided by the user as a means to perform retries without creating duplicate job s. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters.", 818 "description": "The time that the operation was started by t he server.",
819 "format": "google-datetime",
901 "type": "string" 820 "type": "string"
902 } 821 }
903 }, 822 },
904 "type": "object" 823 "type": "object"
905 }, 824 },
906 "SubmitJobRequest": { 825 "SoftwareConfig": {
907 "description": "A request to submit a job.", 826 "description": "Specifies the selection and config of software insid e the cluster.",
908 "id": "SubmitJobRequest", 827 "id": "SoftwareConfig",
909 "properties": { 828 "properties": {
910 "job": { 829 "imageVersion": {
911 "$ref": "Job", 830 "description": "Optional The version of software inside the cluster. It must match the regular expression [0-9]+\\.[0-9]+. If unspecified, i t defaults to the latest version (see Cloud Dataproc Versioning).",
912 "description": "Required The job resource." 831 "type": "string"
832 },
833 "properties": {
834 "additionalProperties": {
835 "type": "string"
836 },
837 "description": "Optional The properties to set on daemon con fig files.Property keys are specified in prefix:property format, such as core:fs .defaultFS. The following are supported prefixes and their mappings:\ncore: core -site.xml\nhdfs: hdfs-site.xml\nmapred: mapred-site.xml\nyarn: yarn-site.xml\nhi ve: hive-site.xml\npig: pig.properties\nspark: spark-defaults.conf",
838 "type": "object"
913 } 839 }
914 }, 840 },
915 "type": "object" 841 "type": "object"
916 }, 842 },
917 "Status": { 843 "JobPlacement": {
918 "description": "The Status type defines a logical error model that i s suitable for different programming environments, including REST APIs and RPC A PIs. It is used by gRPC (https://github.com/grpc). The error model is designed t o be:\nSimple to use and understand for most users\nFlexible enough to meet unex pected needsOverviewThe Status message contains three pieces of data: error code , error message, and error details. The error code should be an enum value of go ogle.rpc.Code, but it may accept additional error codes if needed. The error mes sage should be a developer-facing English message that helps developers understa nd and resolve the error. If a localized user-facing error message is needed, pu t the localized message in the error details or localize it in the client. The o ptional error details may contain arbitrary information about the error. There i s a predefined set of error detail types in the package google.rpc which can be used for common error conditions.Language mappingThe Status message is the logic al representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and dif ferent wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error code s in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model inclu de:\nPartial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors.\n Workflow errors. A typical workflow has multiple steps. Each step may have a Sta tus message for error reporting purpose.\nBatch operations. If a client uses bat ch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response.\nAsynchronous operations. If a n API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message.\nLoggi ng. If some API errors are stored in logs, the message Status could be used dire ctly after any stripping needed for security/privacy reasons.", 844 "description": "Cloud Dataproc job config.",
919 "id": "Status", 845 "id": "JobPlacement",
920 "properties": { 846 "properties": {
921 "details": { 847 "clusterName": {
922 "description": "A list of messages that carry the error deta ils. There will be a common set of message types for APIs to use.", 848 "description": "Required The name of the cluster where the j ob will be submitted.",
923 "items": { 849 "type": "string"
924 "additionalProperties": {
925 "description": "Properties of the object. Contains f ield @type with type URL.",
926 "type": "any"
927 },
928 "type": "object"
929 },
930 "type": "array"
931 }, 850 },
932 "code": { 851 "clusterUuid": {
933 "description": "The status code, which should be an enum val ue of google.rpc.Code.", 852 "description": "Output-only A cluster UUID generated by the Cloud Dataproc service when the job is submitted.",
934 "format": "int32",
935 "type": "integer"
936 },
937 "message": {
938 "description": "A developer-facing error message, which shou ld be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
939 "type": "string" 853 "type": "string"
940 } 854 }
941 }, 855 },
942 "type": "object" 856 "type": "object"
943 }, 857 },
944 "JobScheduling": { 858 "PigJob": {
945 "description": "Job scheduling options.Beta Feature: These options a re available for testing purposes only. They may be changed before final release .", 859 "description": "A Cloud Dataproc job for running Apache Pig (https:/ /pig.apache.org/) queries on YARN.",
946 "id": "JobScheduling", 860 "id": "PigJob",
947 "properties": {
948 "maxFailuresPerHour": {
949 "description": "Optional Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code bef ore job is reported failed.A job may be reported as thrashing if driver exits wi th non-zero code 4 times within 10 minute window.Maximum value is 10.",
950 "format": "int32",
951 "type": "integer"
952 }
953 },
954 "type": "object"
955 },
956 "InstanceGroupConfig": {
957 "description": "Optional The config settings for Google Compute Engi ne resources in an instance group, such as a master or worker group.",
958 "id": "InstanceGroupConfig",
959 "properties": {
960 "instanceNames": {
961 "description": "Optional The list of instance names. Cloud D ataproc derives the names from cluster_name, num_instances, and the instance gro up if not set by user (recommended practice is to let Cloud Dataproc derive the name).",
962 "items": {
963 "type": "string"
964 },
965 "type": "array"
966 },
967 "accelerators": {
968 "description": "Optional The Google Compute Engine accelerat or configuration for these instances.Beta Feature: This feature is still under d evelopment. It may be changed before final release.",
969 "items": {
970 "$ref": "AcceleratorConfig"
971 },
972 "type": "array"
973 },
974 "numInstances": {
975 "description": "Required The number of VM instances in the i nstance group. For master instance groups, must be set to 1.",
976 "format": "int32",
977 "type": "integer"
978 },
979 "diskConfig": {
980 "$ref": "DiskConfig",
981 "description": "Optional Disk option config settings."
982 },
983 "machineTypeUri": {
984 "description": "Required The Google Compute Engine machine t ype used for cluster instances. Example: https://www.googleapis.com/compute/v1/p rojects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2.",
985 "type": "string"
986 },
987 "managedGroupConfig": {
988 "$ref": "ManagedGroupConfig",
989 "description": "Output-only The config for Google Compute En gine Instance Group Manager that manages this group. This is only used for preem ptible instance groups."
990 },
991 "isPreemptible": {
992 "description": "Optional Specifies that this instance group contains preemptible instances.",
993 "type": "boolean"
994 },
995 "imageUri": {
996 "description": "Output-only The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version. ",
997 "type": "string"
998 }
999 },
1000 "type": "object"
1001 },
1002 "ListJobsResponse": {
1003 "description": "A list of jobs in a project.",
1004 "id": "ListJobsResponse",
1005 "properties": {
1006 "jobs": {
1007 "description": "Output-only Jobs list.",
1008 "items": {
1009 "$ref": "Job"
1010 },
1011 "type": "array"
1012 },
1013 "nextPageToken": {
1014 "description": "Optional This token is included in the respo nse if there are more results to fetch. To fetch additional results, provide thi s value as the page_token in a subsequent <code>ListJobsRequest</code>.",
1015 "type": "string"
1016 }
1017 },
1018 "type": "object"
1019 },
1020 "NodeInitializationAction": {
1021 "description": "Specifies an executable to run on a fully configured node and a timeout period for executable completion.",
1022 "id": "NodeInitializationAction",
1023 "properties": {
1024 "executableFile": {
1025 "description": "Required Google Cloud Storage URI of executa ble file.",
1026 "type": "string"
1027 },
1028 "executionTimeout": {
1029 "description": "Optional Amount of time executable has to co mplete. Default is 10 minutes. Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeo ut period) if the executable is not completed at end of the timeout period.",
1030 "format": "google-duration",
1031 "type": "string"
1032 }
1033 },
1034 "type": "object"
1035 },
1036 "CancelJobRequest": {
1037 "description": "A request to cancel a job.",
1038 "id": "CancelJobRequest",
1039 "properties": {},
1040 "type": "object"
1041 },
1042 "SparkSqlJob": {
1043 "description": "A Cloud Dataproc job for running Apache Spark SQL (h ttp://spark.apache.org/sql/) queries.",
1044 "id": "SparkSqlJob",
1045 "properties": { 861 "properties": {
1046 "scriptVariables": { 862 "scriptVariables": {
1047 "additionalProperties": { 863 "additionalProperties": {
1048 "type": "string" 864 "type": "string"
1049 }, 865 },
1050 "description": "Optional Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=\"value\";).", 866 "description": "Optional Mapping of query variable names to values (equivalent to the Pig command: name=[value]).",
1051 "type": "object" 867 "type": "object"
1052 }, 868 },
1053 "jarFileUris": { 869 "jarFileUris": {
1054 "description": "Optional HCFS URIs of jar files to be added to the Spark CLASSPATH.", 870 "description": "Optional HCFS URIs of jar files to add to th e CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig U DFs.",
1055 "items": { 871 "items": {
1056 "type": "string" 872 "type": "string"
1057 }, 873 },
1058 "type": "array" 874 "type": "array"
1059 }, 875 },
1060 "loggingConfig": { 876 "loggingConfig": {
1061 "$ref": "LoggingConfig", 877 "$ref": "LoggingConfig",
1062 "description": "Optional The runtime log config for job exec ution." 878 "description": "Optional The runtime log config for job exec ution."
1063 }, 879 },
1064 "properties": { 880 "properties": {
1065 "additionalProperties": { 881 "additionalProperties": {
1066 "type": "string" 882 "type": "string"
1067 }, 883 },
1068 "description": "Optional A mapping of property names to valu es, used to configure Spark SQL's SparkConf. Properties that conflict with value s set by the Cloud Dataproc API may be overwritten.", 884 "description": "Optional A mapping of property names to valu es, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf /*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.",
1069 "type": "object" 885 "type": "object"
1070 }, 886 },
1071 "queryFileUri": { 887 "continueOnFailure": {
1072 "description": "The HCFS URI of the script that contains SQL queries.", 888 "description": "Optional Whether to continue executing queri es if a query fails. The default value is false. Setting to true can be useful w hen executing independent parallel queries.",
1073 "type": "string" 889 "type": "boolean"
1074 }, 890 },
1075 "queryList": { 891 "queryList": {
1076 "$ref": "QueryList", 892 "$ref": "QueryList",
1077 "description": "A list of queries." 893 "description": "A list of queries."
1078 } 894 },
1079 }, 895 "queryFileUri": {
1080 "type": "object" 896 "description": "The HCFS URI of the script that contains the Pig queries.",
1081 }, 897 "type": "string"
1082 "Cluster": { 898 }
1083 "description": "Describes the identifying information, config, and s tatus of a cluster of Google Compute Engine instances.", 899 },
1084 "id": "Cluster", 900 "type": "object"
1085 "properties": { 901 },
902 "ClusterStatus": {
903 "description": "The status of a cluster and its instances.",
904 "id": "ClusterStatus",
905 "properties": {
906 "state": {
907 "description": "Output-only The cluster's state.",
908 "enum": [
909 "UNKNOWN",
910 "CREATING",
911 "RUNNING",
912 "ERROR",
913 "DELETING",
914 "UPDATING"
915 ],
916 "enumDescriptions": [
917 "The cluster state is unknown.",
918 "The cluster is being created and set up. It is not read y for use.",
919 "The cluster is currently running and healthy. It is rea dy for use.",
920 "The cluster encountered an error. It is not ready for u se.",
921 "The cluster is being deleted. It cannot be used.",
922 "The cluster is being updated. It continues to accept an d process jobs."
923 ],
924 "type": "string"
925 },
926 "stateStartTime": {
927 "description": "Output-only Time when this state was entered .",
928 "format": "google-datetime",
929 "type": "string"
930 },
931 "substate": {
932 "description": "Output-only Additional state information tha t includes status reported by the agent.",
933 "enum": [
934 "UNSPECIFIED",
935 "UNHEALTHY",
936 "STALE_STATUS"
937 ],
938 "enumDescriptions": [
939 "",
940 "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.",
941 "The agent-reported status is out of date (may occur if Cloud Dataproc loses communication with Agent).Applies to RUNNING state."
942 ],
943 "type": "string"
944 },
945 "detail": {
946 "description": "Output-only Optional details of cluster's st ate.",
947 "type": "string"
948 }
949 },
950 "type": "object"
951 },
952 "ListClustersResponse": {
953 "description": "The list of all clusters in a project.",
954 "id": "ListClustersResponse",
955 "properties": {
956 "clusters": {
957 "description": "Output-only The clusters in the project.",
958 "items": {
959 "$ref": "Cluster"
960 },
961 "type": "array"
962 },
963 "nextPageToken": {
964 "description": "Output-only This token is included in the re sponse if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent <code>ListClustersRequest</code>.",
965 "type": "string"
966 }
967 },
968 "type": "object"
969 },
970 "Job": {
971 "description": "A Cloud Dataproc job resource.",
972 "id": "Job",
973 "properties": {
974 "pigJob": {
975 "$ref": "PigJob",
976 "description": "Job is a Pig job."
977 },
978 "hiveJob": {
979 "$ref": "HiveJob",
980 "description": "Job is a Hive job."
981 },
1086 "labels": { 982 "labels": {
1087 "additionalProperties": { 983 "additionalProperties": {
1088 "type": "string" 984 "type": "string"
1089 }, 985 },
1090 "description": "Optional The labels to associate with this c luster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if pres ent, 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 clust er.", 986 "description": "Optional The labels to associate with this j ob. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (ht tps://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf .org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job.",
1091 "type": "object" 987 "type": "object"
1092 }, 988 },
989 "driverOutputResourceUri": {
990 "description": "Output-only A URI pointing to the location o f the stdout of the job's driver program.",
991 "type": "string"
992 },
993 "sparkJob": {
994 "$ref": "SparkJob",
995 "description": "Job is a Spark job."
996 },
997 "sparkSqlJob": {
998 "$ref": "SparkSqlJob",
999 "description": "Job is a SparkSql job."
1000 },
1001 "statusHistory": {
1002 "description": "Output-only The previous job status.",
1003 "items": {
1004 "$ref": "JobStatus"
1005 },
1006 "type": "array"
1007 },
1008 "yarnApplications": {
1009 "description": "Output-only The collection of YARN applicati ons spun up by this job.Beta Feature: This report is available for testing purpo ses only. It may be changed before final release.",
1010 "items": {
1011 "$ref": "YarnApplication"
1012 },
1013 "type": "array"
1014 },
1015 "pysparkJob": {
1016 "$ref": "PySparkJob",
1017 "description": "Job is a Pyspark job."
1018 },
1019 "reference": {
1020 "$ref": "JobReference",
1021 "description": "Optional The fully qualified reference to th e job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>."
1022 },
1023 "hadoopJob": {
1024 "$ref": "HadoopJob",
1025 "description": "Job is a Hadoop job."
1026 },
1027 "placement": {
1028 "$ref": "JobPlacement",
1029 "description": "Required Job information, including how, whe n, and where to run the job."
1030 },
1093 "status": { 1031 "status": {
1094 "$ref": "ClusterStatus", 1032 "$ref": "JobStatus",
1095 "description": "Output-only Cluster status." 1033 "description": "Output-only The job status. Additional appli cation-specific status information may be contained in the <code>type_job</code> and <code>yarn_applications</code> fields."
1096 }, 1034 },
1097 "metrics": { 1035 "driverControlFilesUri": {
1098 "$ref": "ClusterMetrics", 1036 "description": "Output-only If present, the location of misc ellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_u ri.",
1099 "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." 1037 "type": "string"
1100 }, 1038 },
1101 "statusHistory": { 1039 "scheduling": {
1102 "description": "Output-only The previous cluster status.", 1040 "$ref": "JobScheduling",
1103 "items": { 1041 "description": "Optional Job scheduling configuration."
1104 "$ref": "ClusterStatus" 1042 }
1105 }, 1043 },
1106 "type": "array" 1044 "type": "object"
1107 }, 1045 },
1108 "config": { 1046 "SparkJob": {
1109 "$ref": "ClusterConfig", 1047 "description": "A Cloud Dataproc job for running Apache Spark (http: //spark.apache.org/) applications on YARN.",
1110 "description": "Required The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are update d." 1048 "id": "SparkJob",
1111 }, 1049 "properties": {
1112 "clusterUuid": { 1050 "mainJarFileUri": {
1113 "description": "Output-only A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.", 1051 "description": "The HCFS URI of the jar file that contains t he main class.",
1114 "type": "string" 1052 "type": "string"
1115 }, 1053 },
1116 "clusterName": { 1054 "jarFileUris": {
1117 "description": "Required The cluster name. Cluster names wit hin a project must be unique. Names of deleted clusters can be reused.", 1055 "description": "Optional HCFS URIs of jar files to add to th e CLASSPATHs of the Spark driver and tasks.",
1118 "type": "string" 1056 "items": {
1119 }, 1057 "type": "string"
1120 "projectId": { 1058 },
1121 "description": "Required The Google Cloud Platform project I D that the cluster belongs to.", 1059 "type": "array"
1122 "type": "string" 1060 },
1123 } 1061 "loggingConfig": {
1124 }, 1062 "$ref": "LoggingConfig",
1125 "type": "object" 1063 "description": "Optional The runtime log config for job exec ution."
1126 }, 1064 },
1127 "ListOperationsResponse": { 1065 "properties": {
1128 "description": "The response message for Operations.ListOperations." , 1066 "additionalProperties": {
1129 "id": "ListOperationsResponse", 1067 "type": "string"
1130 "properties": { 1068 },
1131 "nextPageToken": { 1069 "description": "Optional A mapping of property names to valu es, used to configure Spark. Properties that conflict with values set by the Clo ud Dataproc API may be overwritten. Can include properties set in /etc/spark/con f/spark-defaults.conf and classes in user code.",
1132 "description": "The standard List next-page token.", 1070 "type": "object"
1133 "type": "string" 1071 },
1134 }, 1072 "args": {
1135 "operations": { 1073 "description": "Optional The arguments to pass to the driver . Do not include arguments, such as --conf, that can be set as job properties, s ince a collision may occur that causes an incorrect job submission.",
1136 "description": "A list of operations that matches the specif ied filter in the request.", 1074 "items": {
1137 "items": { 1075 "type": "string"
1138 "$ref": "Operation" 1076 },
1139 }, 1077 "type": "array"
1140 "type": "array" 1078 },
1141 } 1079 "fileUris": {
1142 }, 1080 "description": "Optional HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.",
1143 "type": "object" 1081 "items": {
1144 }, 1082 "type": "string"
1145 "OperationMetadata": { 1083 },
1146 "description": "Metadata describing the operation.", 1084 "type": "array"
1147 "id": "OperationMetadata", 1085 },
1148 "properties": { 1086 "mainClass": {
1149 "operationType": { 1087 "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.",
1150 "description": "Output-only The operation type.", 1088 "type": "string"
1151 "type": "string" 1089 },
1152 }, 1090 "archiveUris": {
1153 "description": { 1091 "description": "Optional HCFS URIs of archives to be extract ed in the working directory of Spark drivers and tasks. Supported file types: .j ar, .tar, .tar.gz, .tgz, and .zip.",
1154 "description": "Output-only Short description of operation." , 1092 "items": {
1155 "type": "string" 1093 "type": "string"
1156 }, 1094 },
1157 "status": { 1095 "type": "array"
1158 "$ref": "OperationStatus", 1096 }
1159 "description": "Output-only Current operation status." 1097 },
1160 }, 1098 "type": "object"
1099 },
1100 "JobStatus": {
1101 "description": "Cloud Dataproc job status.",
1102 "id": "JobStatus",
1103 "properties": {
1161 "state": { 1104 "state": {
1162 "description": "A message containing the operation state.", 1105 "description": "Output-only A state message specifying the o verall job state.",
1106 "enum": [
1107 "STATE_UNSPECIFIED",
1108 "PENDING",
1109 "SETUP_DONE",
1110 "RUNNING",
1111 "CANCEL_PENDING",
1112 "CANCEL_STARTED",
1113 "CANCELLED",
1114 "DONE",
1115 "ERROR",
1116 "ATTEMPT_FAILURE"
1117 ],
1118 "enumDescriptions": [
1119 "The job state is unknown.",
1120 "The job is pending; it has been submitted, but is not y et running.",
1121 "Job has been received by the service and completed init ial setup; it will soon be submitted to the cluster.",
1122 "The job is running on the cluster.",
1123 "A CancelJob request has been received, but is pending." ,
1124 "Transient in-flight resources have been canceled, and t he request to cancel the running job has been issued to the cluster.",
1125 "The job cancellation was successful.",
1126 "The job has completed successfully.",
1127 "The job has completed, but encountered an error.",
1128 "Job attempt has failed. The detail field contains failu re details for this attempt.Applies to restartable jobs only."
1129 ],
1130 "type": "string"
1131 },
1132 "details": {
1133 "description": "Output-only Optional job state details, such as an error description if the state is <code>ERROR</code>.",
1134 "type": "string"
1135 },
1136 "stateStartTime": {
1137 "description": "Output-only The time when this state was ent ered.",
1138 "format": "google-datetime",
1139 "type": "string"
1140 },
1141 "substate": {
1142 "description": "Output-only Additional state information, wh ich includes status reported by the agent.",
1143 "enum": [
1144 "UNSPECIFIED",
1145 "SUBMITTED",
1146 "QUEUED",
1147 "STALE_STATUS"
1148 ],
1149 "enumDescriptions": [
1150 "",
1151 "The Job is submitted to the agent.Applies to RUNNING st ate.",
1152 "The Job has been received and is awaiting execution (it may be waiting for a condition to be met). See the \"details\" field for the re ason for the delay.Applies to RUNNING state.",
1153 "The agent-reported status is out of date, which may be caused by a loss of communication between the agent and Cloud Dataproc. If the a gent does not send a timely update, the job will fail.Applies to RUNNING state."
1154 ],
1155 "type": "string"
1156 }
1157 },
1158 "type": "object"
1159 },
1160 "ManagedGroupConfig": {
1161 "description": "Specifies the resources used to actively manage an i nstance group.",
1162 "id": "ManagedGroupConfig",
1163 "properties": {
1164 "instanceGroupManagerName": {
1165 "description": "Output-only The name of the Instance Group M anager for this group.",
1166 "type": "string"
1167 },
1168 "instanceTemplateName": {
1169 "description": "Output-only The name of the Instance Templat e used for the Managed Instance Group.",
1170 "type": "string"
1171 }
1172 },
1173 "type": "object"
1174 },
1175 "ClusterOperationStatus": {
1176 "description": "The status of the operation.",
1177 "id": "ClusterOperationStatus",
1178 "properties": {
1179 "state": {
1180 "description": "Output-only A message containing the operati on state.",
1163 "enum": [ 1181 "enum": [
1164 "UNKNOWN", 1182 "UNKNOWN",
1165 "PENDING", 1183 "PENDING",
1166 "RUNNING", 1184 "RUNNING",
1167 "DONE" 1185 "DONE"
1168 ], 1186 ],
1169 "enumDescriptions": [ 1187 "enumDescriptions": [
1170 "Unused.", 1188 "Unused.",
1171 "The operation has been created.", 1189 "The operation has been created.",
1172 "The operation is currently running.", 1190 "The operation is running.",
1173 "The operation is done, either cancelled or completed." 1191 "The operation is done; either cancelled or completed."
1174 ], 1192 ],
1175 "type": "string" 1193 "type": "string"
1176 }, 1194 },
1177 "details": { 1195 "details": {
1178 "description": "A message containing any operation metadata details.", 1196 "description": "Output-onlyA message containing any operatio n metadata details.",
1179 "type": "string"
1180 },
1181 "clusterUuid": {
1182 "description": "Cluster UUId for the operation.",
1183 "type": "string"
1184 },
1185 "clusterName": {
1186 "description": "Name of the cluster for the operation.",
1187 "type": "string" 1197 "type": "string"
1188 }, 1198 },
1189 "innerState": { 1199 "innerState": {
1190 "description": "A message containing the detailed operation state.", 1200 "description": "Output-only A message containing the detaile d operation state.",
1191 "type": "string" 1201 "type": "string"
1192 }, 1202 },
1193 "endTime": { 1203 "stateStartTime": {
1194 "description": "The time that the operation completed.", 1204 "description": "Output-only The time this state was entered. ",
1195 "format": "google-datetime", 1205 "format": "google-datetime",
1196 "type": "string" 1206 "type": "string"
1197 }, 1207 }
1198 "startTime": { 1208 },
1199 "description": "The time that the operation was started by t he server.", 1209 "type": "object"
1200 "format": "google-datetime", 1210 },
1211 "YarnApplication": {
1212 "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.",
1213 "id": "YarnApplication",
1214 "properties": {
1215 "trackingUrl": {
1216 "description": "Optional The HTTP URL of the ApplicationMast er, HistoryServer, or TimelineServer that provides application-specific informat ion. The URL uses the internal hostname, and requires a proxy server for resolut ion and, possibly, access.",
1217 "type": "string"
1218 },
1219 "progress": {
1220 "description": "Required The numerical progress of the appli cation, from 1 to 100.",
1221 "format": "float",
1222 "type": "number"
1223 },
1224 "state": {
1225 "description": "Required The application state.",
1226 "enum": [
1227 "STATE_UNSPECIFIED",
1228 "NEW",
1229 "NEW_SAVING",
1230 "SUBMITTED",
1231 "ACCEPTED",
1232 "RUNNING",
1233 "FINISHED",
1234 "FAILED",
1235 "KILLED"
1236 ],
1237 "enumDescriptions": [
1238 "Status is unspecified.",
1239 "Status is NEW.",
1240 "Status is NEW_SAVING.",
1241 "Status is SUBMITTED.",
1242 "Status is ACCEPTED.",
1243 "Status is RUNNING.",
1244 "Status is FINISHED.",
1245 "Status is FAILED.",
1246 "Status is KILLED."
1247 ],
1248 "type": "string"
1249 },
1250 "name": {
1251 "description": "Required The application name.",
1252 "type": "string"
1253 }
1254 },
1255 "type": "object"
1256 },
1257 "QueryList": {
1258 "description": "A list of queries to run on a cluster.",
1259 "id": "QueryList",
1260 "properties": {
1261 "queries": {
1262 "description": "Required The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:\n\"hiveJob\": { \n \"queryList\": {\n \"queries\": [\n \"query1\",\n \"query2\",\n \"query3;query4\",\n ]\n }\n}\n",
1263 "items": {
1264 "type": "string"
1265 },
1266 "type": "array"
1267 }
1268 },
1269 "type": "object"
1270 },
1271 "HadoopJob": {
1272 "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).",
1273 "id": "HadoopJob",
1274 "properties": {
1275 "jarFileUris": {
1276 "description": "Optional Jar file URIs to add to the CLASSPA THs of the Hadoop driver and tasks.",
1277 "items": {
1278 "type": "string"
1279 },
1280 "type": "array"
1281 },
1282 "loggingConfig": {
1283 "$ref": "LoggingConfig",
1284 "description": "Optional The runtime log config for job exec ution."
1285 },
1286 "properties": {
1287 "additionalProperties": {
1288 "type": "string"
1289 },
1290 "description": "Optional A mapping of property names to valu es, used to configure Hadoop. Properties that conflict with values set by the Cl oud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/c onf/*-site and classes in user code.",
1291 "type": "object"
1292 },
1293 "args": {
1294 "description": "Optional The arguments to pass to the driver . Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as jo b properties, since a collision may occur that causes an incorrect job submissio n.",
1295 "items": {
1296 "type": "string"
1297 },
1298 "type": "array"
1299 },
1300 "fileUris": {
1301 "description": "Optional HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distr ibuted tasks. Useful for naively parallel tasks.",
1302 "items": {
1303 "type": "string"
1304 },
1305 "type": "array"
1306 },
1307 "mainClass": {
1308 "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.",
1309 "type": "string"
1310 },
1311 "archiveUris": {
1312 "description": "Optional HCFS URIs of archives to be extract ed in the working directory of Hadoop drivers and tasks. Supported file types: . jar, .tar, .tar.gz, .tgz, or .zip.",
1313 "items": {
1314 "type": "string"
1315 },
1316 "type": "array"
1317 },
1318 "mainJarFileUri": {
1319 "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'",
1320 "type": "string"
1321 }
1322 },
1323 "type": "object"
1324 },
1325 "DiagnoseClusterRequest": {
1326 "description": "A request to collect cluster diagnostic information. ",
1327 "id": "DiagnoseClusterRequest",
1328 "properties": {},
1329 "type": "object"
1330 },
1331 "DiskConfig": {
1332 "description": "Specifies the config of disk options for a group of VM instances.",
1333 "id": "DiskConfig",
1334 "properties": {
1335 "numLocalSsds": {
1336 "description": "Optional Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runti me logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) da ta. If one or more SSDs are attached, this runtime bulk data is spread across th em, and the boot disk contains only basic config and installed binaries.",
1337 "format": "int32",
1338 "type": "integer"
1339 },
1340 "bootDiskSizeGb": {
1341 "description": "Optional Size in GB of the boot disk (defaul t is 500GB).",
1342 "format": "int32",
1343 "type": "integer"
1344 }
1345 },
1346 "type": "object"
1347 },
1348 "ClusterOperationMetadata": {
1349 "description": "Metadata describing the operation.",
1350 "id": "ClusterOperationMetadata",
1351 "properties": {
1352 "operationType": {
1353 "description": "Output-only The operation type.",
1354 "type": "string"
1355 },
1356 "description": {
1357 "description": "Output-only Short description of operation." ,
1201 "type": "string" 1358 "type": "string"
1202 }, 1359 },
1203 "warnings": { 1360 "warnings": {
1204 "description": "Output-only Errors encountered during operat ion execution.", 1361 "description": "Output-only Errors encountered during operat ion execution.",
1205 "items": { 1362 "items": {
1206 "type": "string" 1363 "type": "string"
1207 }, 1364 },
1208 "type": "array" 1365 "type": "array"
1209 }, 1366 },
1210 "insertTime": { 1367 "labels": {
1211 "description": "The time that the operation was requested.", 1368 "additionalProperties": {
1212 "format": "google-datetime", 1369 "type": "string"
1213 "type": "string" 1370 },
1371 "description": "Output-only Labels associated with the opera tion",
1372 "type": "object"
1373 },
1374 "status": {
1375 "$ref": "ClusterOperationStatus",
1376 "description": "Output-only Current operation status."
1214 }, 1377 },
1215 "statusHistory": { 1378 "statusHistory": {
1216 "description": "Output-only Previous operation status.", 1379 "description": "Output-only The previous operation status.",
1217 "items": { 1380 "items": {
1218 "$ref": "OperationStatus" 1381 "$ref": "ClusterOperationStatus"
1219 }, 1382 },
1220 "type": "array" 1383 "type": "array"
1221 } 1384 },
1222 },
1223 "type": "object"
1224 },
1225 "SoftwareConfig": {
1226 "description": "Specifies the selection and config of software insid e the cluster.",
1227 "id": "SoftwareConfig",
1228 "properties": {
1229 "imageVersion": {
1230 "description": "Optional The version of software inside the cluster. It must match the regular expression [0-9]+\\.[0-9]+. If unspecified, i t defaults to the latest version (see Cloud Dataproc Versioning).",
1231 "type": "string"
1232 },
1233 "properties": {
1234 "additionalProperties": {
1235 "type": "string"
1236 },
1237 "description": "Optional The properties to set on daemon con fig files.Property keys are specified in prefix:property format, such as core:fs .defaultFS. The following are supported prefixes and their mappings:\ncore: core -site.xml\nhdfs: hdfs-site.xml\nmapred: mapred-site.xml\nyarn: yarn-site.xml\nhi ve: hive-site.xml\npig: pig.properties\nspark: spark-defaults.conf",
1238 "type": "object"
1239 }
1240 },
1241 "type": "object"
1242 },
1243 "JobPlacement": {
1244 "description": "Cloud Dataproc job config.",
1245 "id": "JobPlacement",
1246 "properties": {
1247 "clusterName": { 1385 "clusterName": {
1248 "description": "Required The name of the cluster where the j ob will be submitted.", 1386 "description": "Output-only Name of the cluster for the oper ation.",
1249 "type": "string" 1387 "type": "string"
1250 }, 1388 },
1251 "clusterUuid": { 1389 "clusterUuid": {
1252 "description": "Output-only A cluster UUID generated by the Cloud Dataproc service when the job is submitted.", 1390 "description": "Output-only Cluster UUID for the operation." ,
1253 "type": "string" 1391 "type": "string"
1254 } 1392 }
1255 }, 1393 },
1256 "type": "object" 1394 "type": "object"
1257 }, 1395 },
1258 "ClusterStatus": { 1396 "Empty": {
1259 "description": "The status of a cluster and its instances.", 1397 "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 {}.",
1260 "id": "ClusterStatus", 1398 "id": "Empty",
1261 "properties": { 1399 "properties": {},
1262 "stateStartTime": { 1400 "type": "object"
1263 "description": "Output-only Time when this state was entered .", 1401 },
1264 "format": "google-datetime", 1402 "HiveJob": {
1265 "type": "string" 1403 "description": "A Cloud Dataproc job for running Apache Hive (https: //hive.apache.org/) queries on YARN.",
1266 }, 1404 "id": "HiveJob",
1267 "substate": { 1405 "properties": {
1268 "description": "Output-only Additional state information tha t includes status reported by the agent.",
1269 "enum": [
1270 "UNSPECIFIED",
1271 "UNHEALTHY",
1272 "STALE_STATUS"
1273 ],
1274 "enumDescriptions": [
1275 "",
1276 "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.",
1277 "The agent-reported status is out of date (may occur if Cloud Dataproc loses communication with Agent).Applies to RUNNING state."
1278 ],
1279 "type": "string"
1280 },
1281 "detail": {
1282 "description": "Output-only Optional details of cluster's st ate.",
1283 "type": "string"
1284 },
1285 "state": {
1286 "description": "Output-only The cluster's state.",
1287 "enum": [
1288 "UNKNOWN",
1289 "CREATING",
1290 "RUNNING",
1291 "ERROR",
1292 "DELETING",
1293 "UPDATING"
1294 ],
1295 "enumDescriptions": [
1296 "The cluster state is unknown.",
1297 "The cluster is being created and set up. It is not read y for use.",
1298 "The cluster is currently running and healthy. It is rea dy for use.",
1299 "The cluster encountered an error. It is not ready for u se.",
1300 "The cluster is being deleted. It cannot be used.",
1301 "The cluster is being updated. It continues to accept an d process jobs."
1302 ],
1303 "type": "string"
1304 }
1305 },
1306 "type": "object"
1307 },
1308 "PigJob": {
1309 "description": "A Cloud Dataproc job for running Apache Pig (https:/ /pig.apache.org/) queries on YARN.",
1310 "id": "PigJob",
1311 "properties": {
1312 "properties": {
1313 "additionalProperties": {
1314 "type": "string"
1315 },
1316 "description": "Optional A mapping of property names to valu es, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf /*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.",
1317 "type": "object"
1318 },
1319 "continueOnFailure": { 1406 "continueOnFailure": {
1320 "description": "Optional Whether to continue executing queri es if a query fails. The default value is false. Setting to true can be useful w hen executing independent parallel queries.", 1407 "description": "Optional Whether to continue executing queri es if a query fails. The default value is false. Setting to true can be useful w hen executing independent parallel queries.",
1321 "type": "boolean" 1408 "type": "boolean"
1322 }, 1409 },
1323 "queryFileUri": { 1410 "queryFileUri": {
1324 "description": "The HCFS URI of the script that contains the Pig queries.", 1411 "description": "The HCFS URI of the script that contains Hiv e queries.",
1325 "type": "string" 1412 "type": "string"
1326 }, 1413 },
1327 "queryList": { 1414 "queryList": {
1328 "$ref": "QueryList", 1415 "$ref": "QueryList",
1329 "description": "A list of queries." 1416 "description": "A list of queries."
1330 }, 1417 },
1331 "jarFileUris": { 1418 "jarFileUris": {
1332 "description": "Optional HCFS URIs of jar files to add to th e CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig U DFs.", 1419 "description": "Optional HCFS URIs of jar files to add to th e CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.",
1333 "items": { 1420 "items": {
1334 "type": "string" 1421 "type": "string"
1335 }, 1422 },
1336 "type": "array" 1423 "type": "array"
1337 }, 1424 },
1338 "scriptVariables": { 1425 "scriptVariables": {
1339 "additionalProperties": { 1426 "additionalProperties": {
1340 "type": "string" 1427 "type": "string"
1341 }, 1428 },
1342 "description": "Optional Mapping of query variable names to values (equivalent to the Pig command: name=[value]).", 1429 "description": "Optional Mapping of query variable names to values (equivalent to the Hive command: SET name=\"value\";).",
1343 "type": "object" 1430 "type": "object"
1344 }, 1431 },
1345 "loggingConfig": { 1432 "properties": {
1346 "$ref": "LoggingConfig", 1433 "additionalProperties": {
1347 "description": "Optional The runtime log config for job exec ution." 1434 "type": "string"
1435 },
1436 "description": "Optional A mapping of property names and val ues, used to configure Hive. Properties that conflict with values set by the Clo ud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/co nf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.",
1437 "type": "object"
1348 } 1438 }
1349 }, 1439 },
1350 "type": "object" 1440 "type": "object"
1351 }, 1441 },
1352 "ListClustersResponse": { 1442 "DiagnoseClusterResults": {
1353 "description": "The list of all clusters in a project.", 1443 "description": "The location of diagnostic output.",
1354 "id": "ListClustersResponse", 1444 "id": "DiagnoseClusterResults",
1355 "properties": { 1445 "properties": {
1356 "clusters": { 1446 "outputUri": {
1357 "description": "Output-only The clusters in the project.", 1447 "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.",
1358 "items": {
1359 "$ref": "Cluster"
1360 },
1361 "type": "array"
1362 },
1363 "nextPageToken": {
1364 "description": "Output-only This token is included in the re sponse if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent <code>ListClustersRequest</code>.",
1365 "type": "string" 1448 "type": "string"
1366 } 1449 }
1367 }, 1450 },
1368 "type": "object" 1451 "type": "object"
1369 }, 1452 },
1370 "SparkJob": { 1453 "ClusterConfig": {
1371 "description": "A Cloud Dataproc job for running Apache Spark (http: //spark.apache.org/) applications on YARN.", 1454 "description": "The cluster config.",
1372 "id": "SparkJob", 1455 "id": "ClusterConfig",
1373 "properties": { 1456 "properties": {
1374 "mainClass": { 1457 "masterConfig": {
1375 "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.", 1458 "$ref": "InstanceGroupConfig",
1459 "description": "Optional The Google Compute Engine config se ttings for the master instance in a cluster."
1460 },
1461 "secondaryWorkerConfig": {
1462 "$ref": "InstanceGroupConfig",
1463 "description": "Optional The Google Compute Engine config se ttings for additional worker instances in a cluster."
1464 },
1465 "initializationActions": {
1466 "description": "Optional Commands to execute on each node af ter config is completed. By default, executables are run on master and all worke r nodes. You can test a node's <code>role</code> metadata to run an executable o n a master or worker node, as shown below using curl (you can also use wget):\nR OLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance /attributes/dataproc-role)\nif [[ \"${ROLE}\" == 'Master' ]]; then\n ... master specific actions ...\nelse\n ... worker specific actions ...\nfi\n",
1467 "items": {
1468 "$ref": "NodeInitializationAction"
1469 },
1470 "type": "array"
1471 },
1472 "configBucket": {
1473 "description": "Optional A Google Cloud Storage staging buck et used for sharing generated SSH keys and config. If you do not specify a stagi ng bucket, Cloud Dataproc will determine an appropriate Cloud Storage location ( US, ASIA, or EU) for your cluster's staging bucket according to the Google Compu te Engine zone where your cluster is deployed, and then it will create and manag e this project-level, per-location bucket for you.",
1376 "type": "string" 1474 "type": "string"
1377 }, 1475 },
1378 "archiveUris": { 1476 "workerConfig": {
1379 "description": "Optional HCFS URIs of archives to be extract ed in the working directory of Spark drivers and tasks. Supported file types: .j ar, .tar, .tar.gz, .tgz, and .zip.", 1477 "$ref": "InstanceGroupConfig",
1478 "description": "Optional The Google Compute Engine config se ttings for worker instances in a cluster."
1479 },
1480 "gceClusterConfig": {
1481 "$ref": "GceClusterConfig",
1482 "description": "Required The shared Google Compute Engine co nfig settings for all instances in a cluster."
1483 },
1484 "softwareConfig": {
1485 "$ref": "SoftwareConfig",
1486 "description": "Optional The config settings for software in side the cluster."
1487 }
1488 },
1489 "type": "object"
1490 },
1491 "PySparkJob": {
1492 "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.",
1493 "id": "PySparkJob",
1494 "properties": {
1495 "pythonFileUris": {
1496 "description": "Optional HCFS file URIs of Python files to p ass to the PySpark framework. Supported file types: .py, .egg, and .zip.",
1380 "items": { 1497 "items": {
1381 "type": "string" 1498 "type": "string"
1382 }, 1499 },
1383 "type": "array" 1500 "type": "array"
1384 }, 1501 },
1385 "mainJarFileUri": { 1502 "mainPythonFileUri": {
1386 "description": "The HCFS URI of the jar file that contains t he main class.", 1503 "description": "Required The HCFS URI of the main Python fil e to use as the driver. Must be a .py file.",
1387 "type": "string" 1504 "type": "string"
1388 }, 1505 },
1389 "jarFileUris": { 1506 "archiveUris": {
1390 "description": "Optional HCFS URIs of jar files to add to th e CLASSPATHs of the Spark driver and tasks.", 1507 "description": "Optional HCFS URIs of archives to be extract ed in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.",
1391 "items": { 1508 "items": {
1392 "type": "string" 1509 "type": "string"
1393 }, 1510 },
1511 "type": "array"
1512 },
1513 "jarFileUris": {
1514 "description": "Optional HCFS URIs of jar files to add to th e CLASSPATHs of the Python driver and tasks.",
1515 "items": {
1516 "type": "string"
1517 },
1394 "type": "array" 1518 "type": "array"
1395 }, 1519 },
1396 "loggingConfig": { 1520 "loggingConfig": {
1397 "$ref": "LoggingConfig", 1521 "$ref": "LoggingConfig",
1398 "description": "Optional The runtime log config for job exec ution." 1522 "description": "Optional The runtime log config for job exec ution."
1399 }, 1523 },
1400 "properties": { 1524 "properties": {
1401 "additionalProperties": { 1525 "additionalProperties": {
1402 "type": "string" 1526 "type": "string"
1403 }, 1527 },
1404 "description": "Optional A mapping of property names to valu es, used to configure Spark. Properties that conflict with values set by the Clo ud Dataproc API may be overwritten. Can include properties set in /etc/spark/con f/spark-defaults.conf and classes in user code.", 1528 "description": "Optional A mapping of property names to valu es, used to configure PySpark. Properties that conflict with values set by the C loud Dataproc API may be overwritten. Can include properties set in /etc/spark/c onf/spark-defaults.conf and classes in user code.",
1405 "type": "object" 1529 "type": "object"
1406 }, 1530 },
1407 "args": { 1531 "args": {
1408 "description": "Optional The arguments to pass to the driver . Do not include arguments, such as --conf, that can be set as job properties, s ince a collision may occur that causes an incorrect job submission.", 1532 "description": "Optional The arguments to pass to the driver . Do not include arguments, such as --conf, that can be set as job properties, s ince a collision may occur that causes an incorrect job submission.",
1409 "items": { 1533 "items": {
1410 "type": "string" 1534 "type": "string"
1411 }, 1535 },
1412 "type": "array" 1536 "type": "array"
1413 }, 1537 },
1414 "fileUris": { 1538 "fileUris": {
1415 "description": "Optional HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.", 1539 "description": "Optional HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naivel y parallel tasks.",
1416 "items": { 1540 "items": {
1417 "type": "string" 1541 "type": "string"
1418 }, 1542 },
1419 "type": "array" 1543 "type": "array"
1420 } 1544 }
1421 }, 1545 },
1422 "type": "object" 1546 "type": "object"
1423 }, 1547 },
1424 "Job": { 1548 "GceClusterConfig": {
1425 "description": "A Cloud Dataproc job resource.", 1549 "description": "Common config settings for resources of Google Compu te Engine cluster instances, applicable to all instances in the cluster.",
1426 "id": "Job", 1550 "id": "GceClusterConfig",
1427 "properties": { 1551 "properties": {
1428 "reference": { 1552 "serviceAccountScopes": {
1429 "$ref": "JobReference", 1553 "description": "Optional The URIs of service account scopes to be included in Google Compute Engine instances. The following base set of sco pes is always included:\nhttps://www.googleapis.com/auth/cloud.useraccounts.read only\nhttps://www.googleapis.com/auth/devstorage.read_write\nhttps://www.googlea pis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:\nhttps://www.googleapis.com/auth/bigquery\nhttps://www.googleapi s.com/auth/bigtable.admin.table\nhttps://www.googleapis.com/auth/bigtable.data\n https://www.googleapis.com/auth/devstorage.full_control",
1430 "description": "Optional The fully qualified reference to th e job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>." 1554 "items": {
1555 "type": "string"
1556 },
1557 "type": "array"
1431 }, 1558 },
1432 "hadoopJob": { 1559 "tags": {
1433 "$ref": "HadoopJob", 1560 "description": "The Google Compute Engine tags to add to all instances (see Tagging instances).",
1434 "description": "Job is a Hadoop job." 1561 "items": {
1562 "type": "string"
1563 },
1564 "type": "array"
1435 }, 1565 },
1436 "placement": { 1566 "serviceAccount": {
1437 "$ref": "JobPlacement", 1567 "description": "Optional The service account of the instance s. Defaults to the default Google Compute Engine service account. Custom service accounts need permissions equivalent to the folloing IAM roles:\nroles/logging. logWriter\nroles/storage.objectAdmin(see https://cloud.google.com/compute/docs/a ccess/service-accounts#custom_service_accounts for more information). Example: [ account_id]@[project_id].iam.gserviceaccount.com",
1438 "description": "Required Job information, including how, whe n, and where to run the job."
1439 },
1440 "status": {
1441 "$ref": "JobStatus",
1442 "description": "Output-only The job status. Additional appli cation-specific status information may be contained in the <code>type_job</code> and <code>yarn_applications</code> fields."
1443 },
1444 "driverControlFilesUri": {
1445 "description": "Output-only If present, the location of misc ellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as driver_output_u ri.",
1446 "type": "string" 1568 "type": "string"
1447 }, 1569 },
1448 "scheduling": { 1570 "subnetworkUri": {
1449 "$ref": "JobScheduling", 1571 "description": "Optional The Google Compute Engine subnetwor k to be used for machine communications. Cannot be specified with network_uri. E xample: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-e ast1/sub0.",
1450 "description": "Optional Job scheduling configuration." 1572 "type": "string"
1451 }, 1573 },
1452 "pigJob": { 1574 "networkUri": {
1453 "$ref": "PigJob", 1575 "description": "Optional The Google Compute Engine network t o be used for machine communications. Cannot be specified with subnetwork_uri. I f neither network_uri nor subnetwork_uri is specified, the \"default\" network o f the project is used, if it exists. Cannot be a \"Custom Subnet Network\" (see Using Subnetworks for more information). Example: https://www.googleapis.com/com pute/v1/projects/[project_id]/regions/global/default.",
1454 "description": "Job is a Pig job." 1576 "type": "string"
1455 }, 1577 },
1456 "hiveJob": { 1578 "zoneUri": {
1457 "$ref": "HiveJob", 1579 "description": "Required The zone where the Google Compute E ngine cluster will be located. Example: https://www.googleapis.com/compute/v1/pr ojects/[project_id]/zones/[zone].",
1458 "description": "Job is a Hive job." 1580 "type": "string"
1459 }, 1581 },
1460 "labels": { 1582 "internalIpOnly": {
1583 "description": "Optional If true, all instances in the clust er will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigne d to each instance. This internal_ip_only restriction can only be enabled for su bnetwork enabled networks, and all off-cluster dependencies must be configured t o be accessible without external IP addresses.",
1584 "type": "boolean"
1585 },
1586 "metadata": {
1461 "additionalProperties": { 1587 "additionalProperties": {
1462 "type": "string" 1588 "type": "string"
1463 }, 1589 },
1464 "description": "Optional The labels to associate with this j ob. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (ht tps://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf .org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job.", 1590 "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)).",
1465 "type": "object" 1591 "type": "object"
1466 },
1467 "driverOutputResourceUri": {
1468 "description": "Output-only A URI pointing to the location o f the stdout of the job's driver program.",
1469 "type": "string"
1470 },
1471 "sparkSqlJob": {
1472 "$ref": "SparkSqlJob",
1473 "description": "Job is a SparkSql job."
1474 },
1475 "statusHistory": {
1476 "description": "Output-only The previous job status.",
1477 "items": {
1478 "$ref": "JobStatus"
1479 },
1480 "type": "array"
1481 },
1482 "sparkJob": {
1483 "$ref": "SparkJob",
1484 "description": "Job is a Spark job."
1485 },
1486 "yarnApplications": {
1487 "description": "Output-only The collection of YARN applicati ons spun up by this job.Beta Feature: This report is available for testing purpo ses only. It may be changed before final release.",
1488 "items": {
1489 "$ref": "YarnApplication"
1490 },
1491 "type": "array"
1492 },
1493 "pysparkJob": {
1494 "$ref": "PySparkJob",
1495 "description": "Job is a Pyspark job."
1496 } 1592 }
1497 }, 1593 },
1498 "type": "object" 1594 "type": "object"
1499 }, 1595 },
1500 "JobStatus": { 1596 "AcceleratorConfig": {
1501 "description": "Cloud Dataproc job status.", 1597 "description": "Specifies the type and number of accelerator cards a ttached to the instances of an instance group (see GPUs on Compute Engine).",
1502 "id": "JobStatus", 1598 "id": "AcceleratorConfig",
1503 "properties": { 1599 "properties": {
1504 "stateStartTime": { 1600 "acceleratorTypeUri": {
1505 "description": "Output-only The time when this state was ent ered.", 1601 "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)",
1506 "format": "google-datetime",
1507 "type": "string" 1602 "type": "string"
1508 }, 1603 },
1509 "substate": { 1604 "acceleratorCount": {
1510 "description": "Output-only Additional state information, wh ich includes status reported by the agent.", 1605 "description": "The number of the accelerator cards of this type exposed to this instance.",
1511 "enum": [ 1606 "format": "int32",
1512 "UNSPECIFIED", 1607 "type": "integer"
1513 "SUBMITTED", 1608 }
1514 "QUEUED", 1609 },
1515 "STALE_STATUS" 1610 "type": "object"
1516 ], 1611 },
1517 "enumDescriptions": [ 1612 "ClusterMetrics": {
1518 "", 1613 "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.",
1519 "The Job is submitted to the agent.Applies to RUNNING st ate.", 1614 "id": "ClusterMetrics",
1520 "The Job has been received and is awaiting execution (it may be waiting for a condition to be met). See the \"details\" field for the re ason for the delay.Applies to RUNNING state.", 1615 "properties": {
1521 "The agent-reported status is out of date, which may be caused by a loss of communication between the agent and Cloud Dataproc. If the a gent does not send a timely update, the job will fail.Applies to RUNNING state." 1616 "yarnMetrics": {
1522 ], 1617 "additionalProperties": {
1523 "type": "string" 1618 "format": "int64",
1619 "type": "string"
1620 },
1621 "description": "The YARN metrics.",
1622 "type": "object"
1524 }, 1623 },
1525 "state": { 1624 "hdfsMetrics": {
1526 "description": "Output-only A state message specifying the o verall job state.", 1625 "additionalProperties": {
1527 "enum": [ 1626 "format": "int64",
1528 "STATE_UNSPECIFIED", 1627 "type": "string"
1529 "PENDING", 1628 },
1530 "SETUP_DONE", 1629 "description": "The HDFS metrics.",
1531 "RUNNING", 1630 "type": "object"
1532 "CANCEL_PENDING", 1631 }
1533 "CANCEL_STARTED", 1632 },
1534 "CANCELLED", 1633 "type": "object"
1535 "DONE", 1634 },
1536 "ERROR", 1635 "LoggingConfig": {
1537 "ATTEMPT_FAILURE" 1636 "description": "The runtime logging config of the job.",
1538 ], 1637 "id": "LoggingConfig",
1539 "enumDescriptions": [ 1638 "properties": {
1540 "The job state is unknown.", 1639 "driverLogLevels": {
1541 "The job is pending; it has been submitted, but is not y et running.", 1640 "additionalProperties": {
1542 "Job has been received by the service and completed init ial setup; it will soon be submitted to the cluster.", 1641 "enum": [
1543 "The job is running on the cluster.", 1642 "LEVEL_UNSPECIFIED",
1544 "A CancelJob request has been received, but is pending." , 1643 "ALL",
1545 "Transient in-flight resources have been canceled, and t he request to cancel the running job has been issued to the cluster.", 1644 "TRACE",
1546 "The job cancellation was successful.", 1645 "DEBUG",
1547 "The job has completed successfully.", 1646 "INFO",
1548 "The job has completed, but encountered an error.", 1647 "WARN",
1549 "Job attempt has failed. The detail field contains failu re details for this attempt.Applies to restartable jobs only." 1648 "ERROR",
1550 ], 1649 "FATAL",
1551 "type": "string" 1650 "OFF"
1552 }, 1651 ],
1553 "details": { 1652 "type": "string"
1554 "description": "Output-only Optional job state details, such as an error description if the state is <code>ERROR</code>.", 1653 },
1654 "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'",
1655 "type": "object"
1656 }
1657 },
1658 "type": "object"
1659 },
1660 "DiagnoseClusterOutputLocation": {
1661 "description": "The location where output from diagnostic command ca n be found.",
1662 "id": "DiagnoseClusterOutputLocation",
1663 "properties": {
1664 "outputUri": {
1665 "description": "Output-only The Google Cloud Storage URI of the diagnostic output. This will be a plain text file with summary of collected diagnostics.",
1555 "type": "string" 1666 "type": "string"
1556 } 1667 }
1557 }, 1668 },
1558 "type": "object" 1669 "type": "object"
1559 }, 1670 },
1560 "ManagedGroupConfig": { 1671 "Operation": {
1561 "description": "Specifies the resources used to actively manage an i nstance group.", 1672 "description": "This resource represents a long-running operation th at is the result of a network API call.",
1562 "id": "ManagedGroupConfig", 1673 "id": "Operation",
1563 "properties": { 1674 "properties": {
1564 "instanceGroupManagerName": { 1675 "done": {
1565 "description": "Output-only The name of the Instance Group M anager for this group.", 1676 "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.",
1677 "type": "boolean"
1678 },
1679 "response": {
1680 "additionalProperties": {
1681 "description": "Properties of the object. Contains field @type with type URL.",
1682 "type": "any"
1683 },
1684 "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.",
1685 "type": "object"
1686 },
1687 "name": {
1688 "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.",
1566 "type": "string" 1689 "type": "string"
1567 }, 1690 },
1568 "instanceTemplateName": { 1691 "error": {
1569 "description": "Output-only The name of the Instance Templat e used for the Managed Instance Group.", 1692 "$ref": "Status",
1570 "type": "string" 1693 "description": "The error result of the operation in case of failure or cancellation."
1694 },
1695 "metadata": {
1696 "additionalProperties": {
1697 "description": "Properties of the object. Contains field @type with type URL.",
1698 "type": "any"
1699 },
1700 "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.",
1701 "type": "object"
1571 } 1702 }
1572 }, 1703 },
1573 "type": "object" 1704 "type": "object"
1574 }, 1705 },
1575 "ClusterOperationStatus": { 1706 "OperationStatus": {
1576 "description": "The status of the operation.", 1707 "description": "The status of the operation.",
1577 "id": "ClusterOperationStatus", 1708 "id": "OperationStatus",
1578 "properties": { 1709 "properties": {
1579 "stateStartTime": {
1580 "description": "Output-only The time this state was entered. ",
1581 "format": "google-datetime",
1582 "type": "string"
1583 },
1584 "state": { 1710 "state": {
1585 "description": "Output-only A message containing the operati on state.", 1711 "description": "A message containing the operation state.",
1586 "enum": [ 1712 "enum": [
1587 "UNKNOWN", 1713 "UNKNOWN",
1588 "PENDING", 1714 "PENDING",
1589 "RUNNING", 1715 "RUNNING",
1590 "DONE" 1716 "DONE"
1591 ], 1717 ],
1592 "enumDescriptions": [ 1718 "enumDescriptions": [
1593 "Unused.", 1719 "Unused.",
1594 "The operation has been created.", 1720 "The operation has been created.",
1595 "The operation is running.", 1721 "The operation is running.",
1596 "The operation is done; either cancelled or completed." 1722 "The operation is done; either cancelled or completed."
1597 ], 1723 ],
1598 "type": "string" 1724 "type": "string"
1599 }, 1725 },
1600 "details": { 1726 "details": {
1601 "description": "Output-onlyA message containing any operatio n metadata details.", 1727 "description": "A message containing any operation metadata details.",
1602 "type": "string" 1728 "type": "string"
1603 }, 1729 },
1604 "innerState": { 1730 "innerState": {
1605 "description": "Output-only A message containing the detaile d operation state.", 1731 "description": "A message containing the detailed operation state.",
1732 "type": "string"
1733 },
1734 "stateStartTime": {
1735 "description": "The time this state was entered.",
1736 "format": "google-datetime",
1606 "type": "string" 1737 "type": "string"
1607 } 1738 }
1608 }, 1739 },
1609 "type": "object" 1740 "type": "object"
1610 }, 1741 },
1611 "YarnApplication": { 1742 "JobReference": {
1612 "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.", 1743 "description": "Encapsulates the full scoping used to reference a jo b.",
1613 "id": "YarnApplication", 1744 "id": "JobReference",
1614 "properties": { 1745 "properties": {
1615 "state": { 1746 "projectId": {
1616 "description": "Required The application state.", 1747 "description": "Required The ID of the Google Cloud Platform project that the job belongs to.",
1617 "enum": [
1618 "STATE_UNSPECIFIED",
1619 "NEW",
1620 "NEW_SAVING",
1621 "SUBMITTED",
1622 "ACCEPTED",
1623 "RUNNING",
1624 "FINISHED",
1625 "FAILED",
1626 "KILLED"
1627 ],
1628 "enumDescriptions": [
1629 "Status is unspecified.",
1630 "Status is NEW.",
1631 "Status is NEW_SAVING.",
1632 "Status is SUBMITTED.",
1633 "Status is ACCEPTED.",
1634 "Status is RUNNING.",
1635 "Status is FINISHED.",
1636 "Status is FAILED.",
1637 "Status is KILLED."
1638 ],
1639 "type": "string" 1748 "type": "string"
1640 }, 1749 },
1641 "name": { 1750 "jobId": {
1642 "description": "Required The application name.", 1751 "description": "Optional The job ID, which must be unique wi thin the project. The job ID is generated by the server upon job submission or p rovided by the user as a means to perform retries without creating duplicate job s. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters.",
1643 "type": "string" 1752 "type": "string"
1644 },
1645 "trackingUrl": {
1646 "description": "Optional The HTTP URL of the ApplicationMast er, HistoryServer, or TimelineServer that provides application-specific informat ion. The URL uses the internal hostname, and requires a proxy server for resolut ion and, possibly, access.",
1647 "type": "string"
1648 },
1649 "progress": {
1650 "description": "Required The numerical progress of the appli cation, from 1 to 100.",
1651 "format": "float",
1652 "type": "number"
1653 } 1753 }
1654 }, 1754 },
1655 "type": "object" 1755 "type": "object"
1656 }, 1756 },
1657 "QueryList": { 1757 "SubmitJobRequest": {
1658 "description": "A list of queries to run on a cluster.", 1758 "description": "A request to submit a job.",
1659 "id": "QueryList", 1759 "id": "SubmitJobRequest",
1660 "properties": { 1760 "properties": {
1661 "queries": { 1761 "job": {
1662 "description": "Required The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob:\n\"hiveJob\": { \n \"queryList\": {\n \"queries\": [\n \"query1\",\n \"query2\",\n \"query3;query4\",\n ]\n }\n}\n", 1762 "$ref": "Job",
1763 "description": "Required The job resource."
1764 }
1765 },
1766 "type": "object"
1767 },
1768 "Status": {
1769 "description": "The Status type defines a logical error model that i s suitable for different programming environments, including REST APIs and RPC A PIs. It is used by gRPC (https://github.com/grpc). The error model is designed t o be:\nSimple to use and understand for most users\nFlexible enough to meet unex pected needsOverviewThe Status message contains three pieces of data: error code , error message, and error details. The error code should be an enum value of go ogle.rpc.Code, but it may accept additional error codes if needed. The error mes sage should be a developer-facing English message that helps developers understa nd and resolve the error. If a localized user-facing error message is needed, pu t the localized message in the error details or localize it in the client. The o ptional error details may contain arbitrary information about the error. There i s a predefined set of error detail types in the package google.rpc which can be used for common error conditions.Language mappingThe Status message is the logic al representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and dif ferent wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error code s in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model inclu de:\nPartial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors.\n Workflow errors. A typical workflow has multiple steps. Each step may have a Sta tus message for error reporting purpose.\nBatch operations. If a client uses bat ch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response.\nAsynchronous operations. If a n API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message.\nLoggi ng. If some API errors are stored in logs, the message Status could be used dire ctly after any stripping needed for security/privacy reasons.",
1770 "id": "Status",
1771 "properties": {
1772 "code": {
1773 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
1774 "format": "int32",
1775 "type": "integer"
1776 },
1777 "message": {
1778 "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.",
1779 "type": "string"
1780 },
1781 "details": {
1782 "description": "A list of messages that carry the error deta ils. There will be a common set of message types for APIs to use.",
1663 "items": { 1783 "items": {
1664 "type": "string" 1784 "additionalProperties": {
1785 "description": "Properties of the object. Contains f ield @type with type URL.",
1786 "type": "any"
1787 },
1788 "type": "object"
1665 }, 1789 },
1666 "type": "array" 1790 "type": "array"
1667 } 1791 }
1668 }, 1792 },
1669 "type": "object" 1793 "type": "object"
1670 }, 1794 },
1671 "HadoopJob": { 1795 "InstanceGroupConfig": {
1672 "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).", 1796 "description": "Optional The config settings for Google Compute Engi ne resources in an instance group, such as a master or worker group.",
1673 "id": "HadoopJob", 1797 "id": "InstanceGroupConfig",
1674 "properties": { 1798 "properties": {
1675 "mainClass": { 1799 "diskConfig": {
1676 "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.", 1800 "$ref": "DiskConfig",
1801 "description": "Optional Disk option config settings."
1802 },
1803 "machineTypeUri": {
1804 "description": "Required The Google Compute Engine machine t ype used for cluster instances. Example: https://www.googleapis.com/compute/v1/p rojects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2.",
1677 "type": "string" 1805 "type": "string"
1678 }, 1806 },
1679 "archiveUris": { 1807 "imageUri": {
1680 "description": "Optional HCFS URIs of archives to be extract ed in the working directory of Hadoop drivers and tasks. Supported file types: . jar, .tar, .tar.gz, .tgz, or .zip.", 1808 "description": "Output-only The Google Compute Engine image resource used for cluster instances. Inferred from SoftwareConfig.image_version. ",
1809 "type": "string"
1810 },
1811 "managedGroupConfig": {
1812 "$ref": "ManagedGroupConfig",
1813 "description": "Output-only The config for Google Compute En gine Instance Group Manager that manages this group. This is only used for preem ptible instance groups."
1814 },
1815 "isPreemptible": {
1816 "description": "Optional Specifies that this instance group contains preemptible instances.",
1817 "type": "boolean"
1818 },
1819 "instanceNames": {
1820 "description": "Optional The list of instance names. Cloud D ataproc derives the names from cluster_name, num_instances, and the instance gro up if not set by user (recommended practice is to let Cloud Dataproc derive the name).",
1681 "items": { 1821 "items": {
1682 "type": "string" 1822 "type": "string"
1683 }, 1823 },
1684 "type": "array" 1824 "type": "array"
1685 }, 1825 },
1686 "mainJarFileUri": { 1826 "accelerators": {
1687 "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'", 1827 "description": "Optional The Google Compute Engine accelerat or configuration for these instances.Beta Feature: This feature is still under d evelopment. It may be changed before final release.",
1688 "type": "string"
1689 },
1690 "jarFileUris": {
1691 "description": "Optional Jar file URIs to add to the CLASSPA THs of the Hadoop driver and tasks.",
1692 "items": { 1828 "items": {
1693 "type": "string" 1829 "$ref": "AcceleratorConfig"
1694 }, 1830 },
1695 "type": "array" 1831 "type": "array"
1696 }, 1832 },
1697 "loggingConfig": { 1833 "numInstances": {
1698 "$ref": "LoggingConfig", 1834 "description": "Required The number of VM instances in the i nstance group. For master instance groups, must be set to 1.",
1699 "description": "Optional The runtime log config for job exec ution."
1700 },
1701 "properties": {
1702 "additionalProperties": {
1703 "type": "string"
1704 },
1705 "description": "Optional A mapping of property names to valu es, used to configure Hadoop. Properties that conflict with values set by the Cl oud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/c onf/*-site and classes in user code.",
1706 "type": "object"
1707 },
1708 "args": {
1709 "description": "Optional The arguments to pass to the driver . Do not include arguments, such as -libjars or -Dfoo=bar, that can be set as jo b properties, since a collision may occur that causes an incorrect job submissio n.",
1710 "items": {
1711 "type": "string"
1712 },
1713 "type": "array"
1714 },
1715 "fileUris": {
1716 "description": "Optional HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distr ibuted tasks. Useful for naively parallel tasks.",
1717 "items": {
1718 "type": "string"
1719 },
1720 "type": "array"
1721 }
1722 },
1723 "type": "object"
1724 },
1725 "DiagnoseClusterRequest": {
1726 "description": "A request to collect cluster diagnostic information. ",
1727 "id": "DiagnoseClusterRequest",
1728 "properties": {},
1729 "type": "object"
1730 },
1731 "DiskConfig": {
1732 "description": "Specifies the config of disk options for a group of VM instances.",
1733 "id": "DiskConfig",
1734 "properties": {
1735 "bootDiskSizeGb": {
1736 "description": "Optional Size in GB of the boot disk (defaul t is 500GB).",
1737 "format": "int32",
1738 "type": "integer"
1739 },
1740 "numLocalSsds": {
1741 "description": "Optional Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runti me logs and HDFS (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) da ta. If one or more SSDs are attached, this runtime bulk data is spread across th em, and the boot disk contains only basic config and installed binaries.",
1742 "format": "int32", 1835 "format": "int32",
1743 "type": "integer" 1836 "type": "integer"
1744 } 1837 }
1745 }, 1838 },
1746 "type": "object" 1839 "type": "object"
1747 }, 1840 },
1748 "ClusterOperationMetadata": { 1841 "JobScheduling": {
1749 "description": "Metadata describing the operation.", 1842 "description": "Job scheduling options.Beta Feature: These options a re available for testing purposes only. They may be changed before final release .",
1750 "id": "ClusterOperationMetadata", 1843 "id": "JobScheduling",
1751 "properties": { 1844 "properties": {
1752 "statusHistory": { 1845 "maxFailuresPerHour": {
1753 "description": "Output-only The previous operation status.", 1846 "description": "Optional Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code bef ore job is reported failed.A job may be reported as thrashing if driver exits wi th non-zero code 4 times within 10 minute window.Maximum value is 10.",
1754 "items": { 1847 "format": "int32",
1755 "$ref": "ClusterOperationStatus" 1848 "type": "integer"
1756 },
1757 "type": "array"
1758 },
1759 "clusterUuid": {
1760 "description": "Output-only Cluster UUID for the operation." ,
1761 "type": "string"
1762 },
1763 "clusterName": {
1764 "description": "Output-only Name of the cluster for the oper ation.",
1765 "type": "string"
1766 },
1767 "operationType": {
1768 "description": "Output-only The operation type.",
1769 "type": "string"
1770 },
1771 "description": {
1772 "description": "Output-only Short description of operation." ,
1773 "type": "string"
1774 },
1775 "warnings": {
1776 "description": "Output-only Errors encountered during operat ion execution.",
1777 "items": {
1778 "type": "string"
1779 },
1780 "type": "array"
1781 },
1782 "labels": {
1783 "additionalProperties": {
1784 "type": "string"
1785 },
1786 "description": "Output-only Labels associated with the opera tion",
1787 "type": "object"
1788 },
1789 "status": {
1790 "$ref": "ClusterOperationStatus",
1791 "description": "Output-only Current operation status."
1792 } 1849 }
1793 }, 1850 },
1794 "type": "object" 1851 "type": "object"
1795 }, 1852 },
1796 "HiveJob": { 1853 "NodeInitializationAction": {
1797 "description": "A Cloud Dataproc job for running Apache Hive (https: //hive.apache.org/) queries on YARN.", 1854 "description": "Specifies an executable to run on a fully configured node and a timeout period for executable completion.",
1798 "id": "HiveJob", 1855 "id": "NodeInitializationAction",
1799 "properties": { 1856 "properties": {
1800 "continueOnFailure": { 1857 "executableFile": {
1801 "description": "Optional Whether to continue executing queri es if a query fails. The default value is false. Setting to true can be useful w hen executing independent parallel queries.", 1858 "description": "Required Google Cloud Storage URI of executa ble file.",
1802 "type": "boolean"
1803 },
1804 "queryList": {
1805 "$ref": "QueryList",
1806 "description": "A list of queries."
1807 },
1808 "queryFileUri": {
1809 "description": "The HCFS URI of the script that contains Hiv e queries.",
1810 "type": "string" 1859 "type": "string"
1811 }, 1860 },
1812 "jarFileUris": { 1861 "executionTimeout": {
1813 "description": "Optional HCFS URIs of jar files to add to th e CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.", 1862 "description": "Optional Amount of time executable has to co mplete. Default is 10 minutes. Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeo ut period) if the executable is not completed at end of the timeout period.",
1814 "items": { 1863 "format": "google-duration",
1815 "type": "string"
1816 },
1817 "type": "array"
1818 },
1819 "scriptVariables": {
1820 "additionalProperties": {
1821 "type": "string"
1822 },
1823 "description": "Optional Mapping of query variable names to values (equivalent to the Hive command: SET name=\"value\";).",
1824 "type": "object"
1825 },
1826 "properties": {
1827 "additionalProperties": {
1828 "type": "string"
1829 },
1830 "description": "Optional A mapping of property names and val ues, used to configure Hive. Properties that conflict with values set by the Clo ud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/co nf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.",
1831 "type": "object"
1832 }
1833 },
1834 "type": "object"
1835 },
1836 "Empty": {
1837 "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 {}.",
1838 "id": "Empty",
1839 "properties": {},
1840 "type": "object"
1841 },
1842 "DiagnoseClusterResults": {
1843 "description": "The location of diagnostic output.",
1844 "id": "DiagnoseClusterResults",
1845 "properties": {
1846 "outputUri": {
1847 "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.",
1848 "type": "string" 1864 "type": "string"
1849 } 1865 }
1850 }, 1866 },
1851 "type": "object" 1867 "type": "object"
1852 }, 1868 },
1853 "ClusterConfig": { 1869 "ListJobsResponse": {
1854 "description": "The cluster config.", 1870 "description": "A list of jobs in a project.",
1855 "id": "ClusterConfig", 1871 "id": "ListJobsResponse",
1856 "properties": { 1872 "properties": {
1857 "workerConfig": { 1873 "jobs": {
1858 "$ref": "InstanceGroupConfig", 1874 "description": "Output-only Jobs list.",
1859 "description": "Optional The Google Compute Engine config se ttings for worker instances in a cluster."
1860 },
1861 "gceClusterConfig": {
1862 "$ref": "GceClusterConfig",
1863 "description": "Required The shared Google Compute Engine co nfig settings for all instances in a cluster."
1864 },
1865 "softwareConfig": {
1866 "$ref": "SoftwareConfig",
1867 "description": "Optional The config settings for software in side the cluster."
1868 },
1869 "masterConfig": {
1870 "$ref": "InstanceGroupConfig",
1871 "description": "Optional The Google Compute Engine config se ttings for the master instance in a cluster."
1872 },
1873 "secondaryWorkerConfig": {
1874 "$ref": "InstanceGroupConfig",
1875 "description": "Optional The Google Compute Engine config se ttings for additional worker instances in a cluster."
1876 },
1877 "initializationActions": {
1878 "description": "Optional Commands to execute on each node af ter config is completed. By default, executables are run on master and all worke r nodes. You can test a node's <code>role</code> metadata to run an executable o n a master or worker node, as shown below using curl (you can also use wget):\nR OLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance /attributes/dataproc-role)\nif [[ \"${ROLE}\" == 'Master' ]]; then\n ... master specific actions ...\nelse\n ... worker specific actions ...\nfi\n",
1879 "items": { 1875 "items": {
1880 "$ref": "NodeInitializationAction" 1876 "$ref": "Job"
1881 }, 1877 },
1882 "type": "array" 1878 "type": "array"
1883 }, 1879 },
1884 "configBucket": { 1880 "nextPageToken": {
1885 "description": "Optional A Google Cloud Storage staging buck et used for sharing generated SSH keys and config. If you do not specify a stagi ng bucket, Cloud Dataproc will determine an appropriate Cloud Storage location ( US, ASIA, or EU) for your cluster's staging bucket according to the Google Compu te Engine zone where your cluster is deployed, and then it will create and manag e this project-level, per-location bucket for you.", 1881 "description": "Optional This token is included in the respo nse if there are more results to fetch. To fetch additional results, provide thi s value as the page_token in a subsequent <code>ListJobsRequest</code>.",
1886 "type": "string" 1882 "type": "string"
1887 } 1883 }
1888 }, 1884 },
1889 "type": "object" 1885 "type": "object"
1890 }, 1886 },
1891 "PySparkJob": { 1887 "CancelJobRequest": {
1892 "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.", 1888 "description": "A request to cancel a job.",
1893 "id": "PySparkJob", 1889 "id": "CancelJobRequest",
1890 "properties": {},
1891 "type": "object"
1892 },
1893 "SparkSqlJob": {
1894 "description": "A Cloud Dataproc job for running Apache Spark SQL (h ttp://spark.apache.org/sql/) queries.",
1895 "id": "SparkSqlJob",
1894 "properties": { 1896 "properties": {
1897 "scriptVariables": {
1898 "additionalProperties": {
1899 "type": "string"
1900 },
1901 "description": "Optional Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=\"value\";).",
1902 "type": "object"
1903 },
1895 "jarFileUris": { 1904 "jarFileUris": {
1896 "description": "Optional HCFS URIs of jar files to add to th e CLASSPATHs of the Python driver and tasks.", 1905 "description": "Optional HCFS URIs of jar files to be added to the Spark CLASSPATH.",
1897 "items": { 1906 "items": {
1898 "type": "string" 1907 "type": "string"
1899 }, 1908 },
1900 "type": "array" 1909 "type": "array"
1901 }, 1910 },
1902 "loggingConfig": { 1911 "loggingConfig": {
1903 "$ref": "LoggingConfig", 1912 "$ref": "LoggingConfig",
1904 "description": "Optional The runtime log config for job exec ution." 1913 "description": "Optional The runtime log config for job exec ution."
1905 }, 1914 },
1906 "properties": { 1915 "properties": {
1907 "additionalProperties": { 1916 "additionalProperties": {
1908 "type": "string" 1917 "type": "string"
1909 }, 1918 },
1910 "description": "Optional A mapping of property names to valu es, used to configure PySpark. Properties that conflict with values set by the C loud Dataproc API may be overwritten. Can include properties set in /etc/spark/c onf/spark-defaults.conf and classes in user code.", 1919 "description": "Optional A mapping of property names to valu es, used to configure Spark SQL's SparkConf. Properties that conflict with value s set by the Cloud Dataproc API may be overwritten.",
1911 "type": "object" 1920 "type": "object"
1912 }, 1921 },
1913 "args": { 1922 "queryList": {
1914 "description": "Optional The arguments to pass to the driver . Do not include arguments, such as --conf, that can be set as job properties, s ince a collision may occur that causes an incorrect job submission.", 1923 "$ref": "QueryList",
1924 "description": "A list of queries."
1925 },
1926 "queryFileUri": {
1927 "description": "The HCFS URI of the script that contains SQL queries.",
1928 "type": "string"
1929 }
1930 },
1931 "type": "object"
1932 },
1933 "Cluster": {
1934 "description": "Describes the identifying information, config, and s tatus of a cluster of Google Compute Engine instances.",
1935 "id": "Cluster",
1936 "properties": {
1937 "labels": {
1938 "additionalProperties": {
1939 "type": "string"
1940 },
1941 "description": "Optional The labels to associate with this c luster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if pres ent, 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 clust er.",
1942 "type": "object"
1943 },
1944 "metrics": {
1945 "$ref": "ClusterMetrics",
1946 "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."
1947 },
1948 "status": {
1949 "$ref": "ClusterStatus",
1950 "description": "Output-only Cluster status."
1951 },
1952 "statusHistory": {
1953 "description": "Output-only The previous cluster status.",
1915 "items": { 1954 "items": {
1916 "type": "string" 1955 "$ref": "ClusterStatus"
1917 }, 1956 },
1918 "type": "array" 1957 "type": "array"
1919 }, 1958 },
1920 "fileUris": { 1959 "config": {
1921 "description": "Optional HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naivel y parallel tasks.", 1960 "$ref": "ClusterConfig",
1922 "items": { 1961 "description": "Required The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are update d."
1923 "type": "string"
1924 },
1925 "type": "array"
1926 }, 1962 },
1927 "pythonFileUris": { 1963 "clusterName": {
1928 "description": "Optional HCFS file URIs of Python files to p ass to the PySpark framework. Supported file types: .py, .egg, and .zip.", 1964 "description": "Required The cluster name. Cluster names wit hin a project must be unique. Names of deleted clusters can be reused.",
1929 "items": {
1930 "type": "string"
1931 },
1932 "type": "array"
1933 },
1934 "mainPythonFileUri": {
1935 "description": "Required The HCFS URI of the main Python fil e to use as the driver. Must be a .py file.",
1936 "type": "string" 1965 "type": "string"
1937 }, 1966 },
1938 "archiveUris": { 1967 "clusterUuid": {
1939 "description": "Optional HCFS URIs of archives to be extract ed in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.", 1968 "description": "Output-only A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.",
1969 "type": "string"
1970 },
1971 "projectId": {
1972 "description": "Required The Google Cloud Platform project I D that the cluster belongs to.",
1973 "type": "string"
1974 }
1975 },
1976 "type": "object"
1977 },
1978 "ListOperationsResponse": {
1979 "description": "The response message for Operations.ListOperations." ,
1980 "id": "ListOperationsResponse",
1981 "properties": {
1982 "nextPageToken": {
1983 "description": "The standard List next-page token.",
1984 "type": "string"
1985 },
1986 "operations": {
1987 "description": "A list of operations that matches the specif ied filter in the request.",
1940 "items": { 1988 "items": {
1941 "type": "string" 1989 "$ref": "Operation"
1942 }, 1990 },
1943 "type": "array" 1991 "type": "array"
1944 } 1992 }
1945 }, 1993 },
1946 "type": "object" 1994 "type": "object"
1947 },
1948 "GceClusterConfig": {
1949 "description": "Common config settings for resources of Google Compu te Engine cluster instances, applicable to all instances in the cluster.",
1950 "id": "GceClusterConfig",
1951 "properties": {
1952 "networkUri": {
1953 "description": "Optional The Google Compute Engine network t o be used for machine communications. Cannot be specified with subnetwork_uri. I f neither network_uri nor subnetwork_uri is specified, the \"default\" network o f the project is used, if it exists. Cannot be a \"Custom Subnet Network\" (see Using Subnetworks for more information). Example: https://www.googleapis.com/com pute/v1/projects/[project_id]/regions/global/default.",
1954 "type": "string"
1955 },
1956 "zoneUri": {
1957 "description": "Required The zone where the Google Compute E ngine cluster will be located. Example: https://www.googleapis.com/compute/v1/pr ojects/[project_id]/zones/[zone].",
1958 "type": "string"
1959 },
1960 "metadata": {
1961 "additionalProperties": {
1962 "type": "string"
1963 },
1964 "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)).",
1965 "type": "object"
1966 },
1967 "internalIpOnly": {
1968 "description": "Optional If true, all instances in the clust er will only have internal IP addresses. By default, clusters are not restricted to internal IP addresses, and will have ephemeral external IP addresses assigne d to each instance. This internal_ip_only restriction can only be enabled for su bnetwork enabled networks, and all off-cluster dependencies must be configured t o be accessible without external IP addresses.",
1969 "type": "boolean"
1970 },
1971 "serviceAccountScopes": {
1972 "description": "Optional The URIs of service account scopes to be included in Google Compute Engine instances. The following base set of sco pes is always included:\nhttps://www.googleapis.com/auth/cloud.useraccounts.read only\nhttps://www.googleapis.com/auth/devstorage.read_write\nhttps://www.googlea pis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided:\nhttps://www.googleapis.com/auth/bigquery\nhttps://www.googleapi s.com/auth/bigtable.admin.table\nhttps://www.googleapis.com/auth/bigtable.data\n https://www.googleapis.com/auth/devstorage.full_control",
1973 "items": {
1974 "type": "string"
1975 },
1976 "type": "array"
1977 },
1978 "tags": {
1979 "description": "The Google Compute Engine tags to add to all instances (see Tagging instances).",
1980 "items": {
1981 "type": "string"
1982 },
1983 "type": "array"
1984 },
1985 "serviceAccount": {
1986 "description": "Optional The service account of the instance s. Defaults to the default Google Compute Engine service account. Custom service accounts need permissions equivalent to the folloing IAM roles:\nroles/logging. logWriter\nroles/storage.objectAdmin(see https://cloud.google.com/compute/docs/a ccess/service-accounts#custom_service_accounts for more information). Example: [ account_id]@[project_id].iam.gserviceaccount.com",
1987 "type": "string"
1988 },
1989 "subnetworkUri": {
1990 "description": "Optional The Google Compute Engine subnetwor k to be used for machine communications. Cannot be specified with network_uri. E xample: https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-e ast1/sub0.",
1991 "type": "string"
1992 }
1993 },
1994 "type": "object"
1995 } 1995 }
1996 }, 1996 },
1997 "servicePath": "", 1997 "servicePath": "",
1998 "title": "Google Cloud Dataproc API", 1998 "title": "Google Cloud Dataproc API",
1999 "version": "v1" 1999 "version": "v1"
2000 } 2000 }
OLDNEW
« no previous file with comments | « discovery/googleapis/customsearch__v1.json ('k') | discovery/googleapis/datastore__v1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698