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