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 }, |
(...skipping 18 matching lines...) Expand all Loading... |
29 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 29 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
30 "location": "query", | 30 "location": "query", |
31 "type": "string" | 31 "type": "string" |
32 }, | 32 }, |
33 "prettyPrint": { | 33 "prettyPrint": { |
34 "default": "true", | 34 "default": "true", |
35 "description": "Returns response with indentations and line breaks."
, | 35 "description": "Returns response with indentations and line breaks."
, |
36 "location": "query", | 36 "location": "query", |
37 "type": "boolean" | 37 "type": "boolean" |
38 }, | 38 }, |
| 39 "fields": { |
| 40 "description": "Selector specifying which fields to include in a par
tial response.", |
| 41 "location": "query", |
| 42 "type": "string" |
| 43 }, |
39 "uploadType": { | 44 "uploadType": { |
40 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 45 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
41 "location": "query", | 46 "location": "query", |
42 "type": "string" | 47 "type": "string" |
43 }, | 48 }, |
44 "fields": { | |
45 "description": "Selector specifying which fields to include in a par
tial response.", | |
46 "location": "query", | |
47 "type": "string" | |
48 }, | |
49 "$.xgafv": { | 49 "$.xgafv": { |
50 "description": "V1 error format.", | 50 "description": "V1 error format.", |
51 "enum": [ | 51 "enum": [ |
52 "1", | 52 "1", |
53 "2" | 53 "2" |
54 ], | 54 ], |
55 "enumDescriptions": [ | 55 "enumDescriptions": [ |
56 "v1 error format", | 56 "v1 error format", |
57 "v2 error format" | 57 "v2 error format" |
58 ], | 58 ], |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 "type": "string" | 107 "type": "string" |
108 }, | 108 }, |
109 "oauth_token": { | 109 "oauth_token": { |
110 "description": "OAuth 2.0 token for the current user.", | 110 "description": "OAuth 2.0 token for the current user.", |
111 "location": "query", | 111 "location": "query", |
112 "type": "string" | 112 "type": "string" |
113 } | 113 } |
114 }, | 114 }, |
115 "protocol": "rest", | 115 "protocol": "rest", |
116 "resources": { | 116 "resources": { |
117 "operations": { | |
118 "methods": { | |
119 "cancel": { | |
120 "description": "Starts asynchronous cancellation on a long-r
unning operation. The server\nmakes a best effort to cancel the operation, but
success is not\nguaranteed. If the server doesn't support this method, it retur
ns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation o
r\nother methods to check whether the cancellation succeeded or whether the\nope
ration completed despite cancellation. On successful cancellation,\nthe operatio
n is not deleted; instead, it becomes an operation with\nan Operation.error valu
e with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.", | |
121 "httpMethod": "POST", | |
122 "id": "cloudbuild.operations.cancel", | |
123 "parameterOrder": [ | |
124 "name" | |
125 ], | |
126 "parameters": { | |
127 "name": { | |
128 "description": "The name of the operation resource t
o be cancelled.", | |
129 "location": "path", | |
130 "pattern": "^operations/.+$", | |
131 "required": true, | |
132 "type": "string" | |
133 } | |
134 }, | |
135 "path": "v1/{+name}:cancel", | |
136 "request": { | |
137 "$ref": "CancelOperationRequest" | |
138 }, | |
139 "response": { | |
140 "$ref": "Empty" | |
141 }, | |
142 "scopes": [ | |
143 "https://www.googleapis.com/auth/cloud-platform" | |
144 ] | |
145 }, | |
146 "get": { | |
147 "description": "Gets the latest state of a long-running oper
ation. Clients can use this\nmethod to poll the operation result at intervals a
s recommended by the API\nservice.", | |
148 "httpMethod": "GET", | |
149 "id": "cloudbuild.operations.get", | |
150 "parameterOrder": [ | |
151 "name" | |
152 ], | |
153 "parameters": { | |
154 "name": { | |
155 "description": "The name of the operation resource."
, | |
156 "location": "path", | |
157 "pattern": "^operations/.+$", | |
158 "required": true, | |
159 "type": "string" | |
160 } | |
161 }, | |
162 "path": "v1/{+name}", | |
163 "response": { | |
164 "$ref": "Operation" | |
165 }, | |
166 "scopes": [ | |
167 "https://www.googleapis.com/auth/cloud-platform" | |
168 ] | |
169 }, | |
170 "list": { | |
171 "description": "Lists operations that match the specified fi
lter in the request. If the\nserver doesn't support this method, it returns `UNI
MPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the bin
ding\nto use different resource name schemes, such as `users/*/operations`. To\n
override the binding, API services can add a binding such as\n`\"/v1/{name=users
/*}/operations\"` to their service configuration.\nFor backwards compatibility,
the default name includes the operations\ncollection id, however overriding user
s must ensure the name binding\nis the parent resource, without the operations c
ollection id.", | |
172 "httpMethod": "GET", | |
173 "id": "cloudbuild.operations.list", | |
174 "parameterOrder": [ | |
175 "name" | |
176 ], | |
177 "parameters": { | |
178 "filter": { | |
179 "description": "The standard list filter.", | |
180 "location": "query", | |
181 "type": "string" | |
182 }, | |
183 "pageToken": { | |
184 "description": "The standard list page token.", | |
185 "location": "query", | |
186 "type": "string" | |
187 }, | |
188 "name": { | |
189 "description": "The name of the operation's parent r
esource.", | |
190 "location": "path", | |
191 "pattern": "^operations$", | |
192 "required": true, | |
193 "type": "string" | |
194 }, | |
195 "pageSize": { | |
196 "description": "The standard list page size.", | |
197 "format": "int32", | |
198 "location": "query", | |
199 "type": "integer" | |
200 } | |
201 }, | |
202 "path": "v1/{+name}", | |
203 "response": { | |
204 "$ref": "ListOperationsResponse" | |
205 }, | |
206 "scopes": [ | |
207 "https://www.googleapis.com/auth/cloud-platform" | |
208 ] | |
209 } | |
210 } | |
211 }, | |
212 "projects": { | 117 "projects": { |
213 "resources": { | 118 "resources": { |
214 "builds": { | 119 "triggers": { |
215 "methods": { | 120 "methods": { |
216 "cancel": { | 121 "delete": { |
217 "description": "Cancels a requested build in progres
s.", | 122 "description": "Deletes an BuildTrigger by its proje
ct ID and trigger ID.\n\nThis API is experimental.", |
218 "httpMethod": "POST", | 123 "httpMethod": "DELETE", |
219 "id": "cloudbuild.projects.builds.cancel", | 124 "id": "cloudbuild.projects.triggers.delete", |
220 "parameterOrder": [ | 125 "parameterOrder": [ |
221 "projectId", | 126 "projectId", |
222 "id" | 127 "triggerId" |
223 ], | 128 ], |
224 "parameters": { | 129 "parameters": { |
225 "projectId": { | 130 "triggerId": { |
226 "description": "ID of the project.", | 131 "description": "ID of the BuildTrigger to de
lete.", |
227 "location": "path", | 132 "location": "path", |
228 "required": true, | 133 "required": true, |
229 "type": "string" | 134 "type": "string" |
230 }, | 135 }, |
231 "id": { | 136 "projectId": { |
232 "description": "ID of the build.", | 137 "description": "ID of the project that owns
the trigger.", |
233 "location": "path", | 138 "location": "path", |
234 "required": true, | 139 "required": true, |
235 "type": "string" | 140 "type": "string" |
236 } | 141 } |
237 }, | 142 }, |
238 "path": "v1/projects/{projectId}/builds/{id}:cancel"
, | 143 "path": "v1/projects/{projectId}/triggers/{triggerId
}", |
239 "request": { | |
240 "$ref": "CancelBuildRequest" | |
241 }, | |
242 "response": { | 144 "response": { |
243 "$ref": "Build" | 145 "$ref": "Empty" |
244 }, | 146 }, |
245 "scopes": [ | 147 "scopes": [ |
246 "https://www.googleapis.com/auth/cloud-platform" | 148 "https://www.googleapis.com/auth/cloud-platform" |
247 ] | 149 ] |
248 }, | 150 }, |
249 "list": { | |
250 "description": "Lists previously requested builds.\n
\nPreviously requested builds may still be in-progress, or may have finished\nsu
ccessfully or unsuccessfully.", | |
251 "httpMethod": "GET", | |
252 "id": "cloudbuild.projects.builds.list", | |
253 "parameterOrder": [ | |
254 "projectId" | |
255 ], | |
256 "parameters": { | |
257 "pageSize": { | |
258 "description": "Number of results to return
in the list.", | |
259 "format": "int32", | |
260 "location": "query", | |
261 "type": "integer" | |
262 }, | |
263 "projectId": { | |
264 "description": "ID of the project.", | |
265 "location": "path", | |
266 "required": true, | |
267 "type": "string" | |
268 }, | |
269 "filter": { | |
270 "description": "The raw filter text to const
rain the results.", | |
271 "location": "query", | |
272 "type": "string" | |
273 }, | |
274 "pageToken": { | |
275 "description": "Token to provide to skip to
a particular spot in the list.", | |
276 "location": "query", | |
277 "type": "string" | |
278 } | |
279 }, | |
280 "path": "v1/projects/{projectId}/builds", | |
281 "response": { | |
282 "$ref": "ListBuildsResponse" | |
283 }, | |
284 "scopes": [ | |
285 "https://www.googleapis.com/auth/cloud-platform" | |
286 ] | |
287 }, | |
288 "get": { | |
289 "description": "Returns information about a previous
ly requested build.\n\nThe Build that is returned includes its status (e.g., suc
cess or failure,\nor in-progress), and timing information.", | |
290 "httpMethod": "GET", | |
291 "id": "cloudbuild.projects.builds.get", | |
292 "parameterOrder": [ | |
293 "projectId", | |
294 "id" | |
295 ], | |
296 "parameters": { | |
297 "projectId": { | |
298 "description": "ID of the project.", | |
299 "location": "path", | |
300 "required": true, | |
301 "type": "string" | |
302 }, | |
303 "id": { | |
304 "description": "ID of the build.", | |
305 "location": "path", | |
306 "required": true, | |
307 "type": "string" | |
308 } | |
309 }, | |
310 "path": "v1/projects/{projectId}/builds/{id}", | |
311 "response": { | |
312 "$ref": "Build" | |
313 }, | |
314 "scopes": [ | |
315 "https://www.googleapis.com/auth/cloud-platform" | |
316 ] | |
317 }, | |
318 "create": { | |
319 "description": "Starts a build with the specified co
nfiguration.\n\nThe long-running Operation returned by this method will include
the ID of\nthe build, which can be passed to GetBuild to determine its status (e
.g.,\nsuccess or failure).", | |
320 "httpMethod": "POST", | |
321 "id": "cloudbuild.projects.builds.create", | |
322 "parameterOrder": [ | |
323 "projectId" | |
324 ], | |
325 "parameters": { | |
326 "projectId": { | |
327 "description": "ID of the project.", | |
328 "location": "path", | |
329 "required": true, | |
330 "type": "string" | |
331 } | |
332 }, | |
333 "path": "v1/projects/{projectId}/builds", | |
334 "request": { | |
335 "$ref": "Build" | |
336 }, | |
337 "response": { | |
338 "$ref": "Operation" | |
339 }, | |
340 "scopes": [ | |
341 "https://www.googleapis.com/auth/cloud-platform" | |
342 ] | |
343 } | |
344 } | |
345 }, | |
346 "triggers": { | |
347 "methods": { | |
348 "patch": { | 151 "patch": { |
349 "description": "Updates an BuildTrigger by its proje
ct ID and trigger ID.\n\nThis API is experimental.", | 152 "description": "Updates an BuildTrigger by its proje
ct ID and trigger ID.\n\nThis API is experimental.", |
350 "httpMethod": "PATCH", | 153 "httpMethod": "PATCH", |
351 "id": "cloudbuild.projects.triggers.patch", | 154 "id": "cloudbuild.projects.triggers.patch", |
352 "parameterOrder": [ | 155 "parameterOrder": [ |
353 "projectId", | 156 "projectId", |
354 "triggerId" | 157 "triggerId" |
355 ], | 158 ], |
356 "parameters": { | 159 "parameters": { |
357 "triggerId": { | 160 "triggerId": { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 "path": "v1/projects/{projectId}/triggers", | 252 "path": "v1/projects/{projectId}/triggers", |
450 "request": { | 253 "request": { |
451 "$ref": "BuildTrigger" | 254 "$ref": "BuildTrigger" |
452 }, | 255 }, |
453 "response": { | 256 "response": { |
454 "$ref": "BuildTrigger" | 257 "$ref": "BuildTrigger" |
455 }, | 258 }, |
456 "scopes": [ | 259 "scopes": [ |
457 "https://www.googleapis.com/auth/cloud-platform" | 260 "https://www.googleapis.com/auth/cloud-platform" |
458 ] | 261 ] |
| 262 } |
| 263 } |
| 264 }, |
| 265 "builds": { |
| 266 "methods": { |
| 267 "list": { |
| 268 "description": "Lists previously requested builds.\n
\nPreviously requested builds may still be in-progress, or may have finished\nsu
ccessfully or unsuccessfully.", |
| 269 "httpMethod": "GET", |
| 270 "id": "cloudbuild.projects.builds.list", |
| 271 "parameterOrder": [ |
| 272 "projectId" |
| 273 ], |
| 274 "parameters": { |
| 275 "pageToken": { |
| 276 "description": "Token to provide to skip to
a particular spot in the list.", |
| 277 "location": "query", |
| 278 "type": "string" |
| 279 }, |
| 280 "pageSize": { |
| 281 "description": "Number of results to return
in the list.", |
| 282 "format": "int32", |
| 283 "location": "query", |
| 284 "type": "integer" |
| 285 }, |
| 286 "projectId": { |
| 287 "description": "ID of the project.", |
| 288 "location": "path", |
| 289 "required": true, |
| 290 "type": "string" |
| 291 }, |
| 292 "filter": { |
| 293 "description": "The raw filter text to const
rain the results.", |
| 294 "location": "query", |
| 295 "type": "string" |
| 296 } |
| 297 }, |
| 298 "path": "v1/projects/{projectId}/builds", |
| 299 "response": { |
| 300 "$ref": "ListBuildsResponse" |
| 301 }, |
| 302 "scopes": [ |
| 303 "https://www.googleapis.com/auth/cloud-platform" |
| 304 ] |
459 }, | 305 }, |
460 "delete": { | 306 "get": { |
461 "description": "Deletes an BuildTrigger by its proje
ct ID and trigger ID.\n\nThis API is experimental.", | 307 "description": "Returns information about a previous
ly requested build.\n\nThe Build that is returned includes its status (e.g., suc
cess or failure,\nor in-progress), and timing information.", |
462 "httpMethod": "DELETE", | 308 "httpMethod": "GET", |
463 "id": "cloudbuild.projects.triggers.delete", | 309 "id": "cloudbuild.projects.builds.get", |
464 "parameterOrder": [ | 310 "parameterOrder": [ |
465 "projectId", | 311 "projectId", |
466 "triggerId" | 312 "id" |
467 ], | 313 ], |
468 "parameters": { | 314 "parameters": { |
469 "triggerId": { | 315 "projectId": { |
470 "description": "ID of the BuildTrigger to de
lete.", | 316 "description": "ID of the project.", |
471 "location": "path", | 317 "location": "path", |
472 "required": true, | 318 "required": true, |
473 "type": "string" | 319 "type": "string" |
474 }, | 320 }, |
475 "projectId": { | 321 "id": { |
476 "description": "ID of the project that owns
the trigger.", | 322 "description": "ID of the build.", |
477 "location": "path", | 323 "location": "path", |
478 "required": true, | 324 "required": true, |
479 "type": "string" | 325 "type": "string" |
480 } | 326 } |
481 }, | 327 }, |
482 "path": "v1/projects/{projectId}/triggers/{triggerId
}", | 328 "path": "v1/projects/{projectId}/builds/{id}", |
483 "response": { | 329 "response": { |
484 "$ref": "Empty" | 330 "$ref": "Build" |
485 }, | 331 }, |
486 "scopes": [ | 332 "scopes": [ |
487 "https://www.googleapis.com/auth/cloud-platform" | 333 "https://www.googleapis.com/auth/cloud-platform" |
| 334 ] |
| 335 }, |
| 336 "create": { |
| 337 "description": "Starts a build with the specified co
nfiguration.\n\nThe long-running Operation returned by this method will include
the ID of\nthe build, which can be passed to GetBuild to determine its status (e
.g.,\nsuccess or failure).", |
| 338 "httpMethod": "POST", |
| 339 "id": "cloudbuild.projects.builds.create", |
| 340 "parameterOrder": [ |
| 341 "projectId" |
| 342 ], |
| 343 "parameters": { |
| 344 "projectId": { |
| 345 "description": "ID of the project.", |
| 346 "location": "path", |
| 347 "required": true, |
| 348 "type": "string" |
| 349 } |
| 350 }, |
| 351 "path": "v1/projects/{projectId}/builds", |
| 352 "request": { |
| 353 "$ref": "Build" |
| 354 }, |
| 355 "response": { |
| 356 "$ref": "Operation" |
| 357 }, |
| 358 "scopes": [ |
| 359 "https://www.googleapis.com/auth/cloud-platform" |
| 360 ] |
| 361 }, |
| 362 "cancel": { |
| 363 "description": "Cancels a requested build in progres
s.", |
| 364 "httpMethod": "POST", |
| 365 "id": "cloudbuild.projects.builds.cancel", |
| 366 "parameterOrder": [ |
| 367 "projectId", |
| 368 "id" |
| 369 ], |
| 370 "parameters": { |
| 371 "projectId": { |
| 372 "description": "ID of the project.", |
| 373 "location": "path", |
| 374 "required": true, |
| 375 "type": "string" |
| 376 }, |
| 377 "id": { |
| 378 "description": "ID of the build.", |
| 379 "location": "path", |
| 380 "required": true, |
| 381 "type": "string" |
| 382 } |
| 383 }, |
| 384 "path": "v1/projects/{projectId}/builds/{id}:cancel"
, |
| 385 "request": { |
| 386 "$ref": "CancelBuildRequest" |
| 387 }, |
| 388 "response": { |
| 389 "$ref": "Build" |
| 390 }, |
| 391 "scopes": [ |
| 392 "https://www.googleapis.com/auth/cloud-platform" |
488 ] | 393 ] |
489 } | 394 } |
490 } | 395 } |
491 } | 396 } |
492 } | 397 } |
| 398 }, |
| 399 "operations": { |
| 400 "methods": { |
| 401 "cancel": { |
| 402 "description": "Starts asynchronous cancellation on a long-r
unning operation. The server\nmakes a best effort to cancel the operation, but
success is not\nguaranteed. If the server doesn't support this method, it retur
ns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperations.GetOperation o
r\nother methods to check whether the cancellation succeeded or whether the\nope
ration completed despite cancellation. On successful cancellation,\nthe operatio
n is not deleted; instead, it becomes an operation with\nan Operation.error valu
e with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.", |
| 403 "httpMethod": "POST", |
| 404 "id": "cloudbuild.operations.cancel", |
| 405 "parameterOrder": [ |
| 406 "name" |
| 407 ], |
| 408 "parameters": { |
| 409 "name": { |
| 410 "description": "The name of the operation resource t
o be cancelled.", |
| 411 "location": "path", |
| 412 "pattern": "^operations/.+$", |
| 413 "required": true, |
| 414 "type": "string" |
| 415 } |
| 416 }, |
| 417 "path": "v1/{+name}:cancel", |
| 418 "request": { |
| 419 "$ref": "CancelOperationRequest" |
| 420 }, |
| 421 "response": { |
| 422 "$ref": "Empty" |
| 423 }, |
| 424 "scopes": [ |
| 425 "https://www.googleapis.com/auth/cloud-platform" |
| 426 ] |
| 427 }, |
| 428 "get": { |
| 429 "description": "Gets the latest state of a long-running oper
ation. Clients can use this\nmethod to poll the operation result at intervals a
s recommended by the API\nservice.", |
| 430 "httpMethod": "GET", |
| 431 "id": "cloudbuild.operations.get", |
| 432 "parameterOrder": [ |
| 433 "name" |
| 434 ], |
| 435 "parameters": { |
| 436 "name": { |
| 437 "description": "The name of the operation resource."
, |
| 438 "location": "path", |
| 439 "pattern": "^operations/.+$", |
| 440 "required": true, |
| 441 "type": "string" |
| 442 } |
| 443 }, |
| 444 "path": "v1/{+name}", |
| 445 "response": { |
| 446 "$ref": "Operation" |
| 447 }, |
| 448 "scopes": [ |
| 449 "https://www.googleapis.com/auth/cloud-platform" |
| 450 ] |
| 451 }, |
| 452 "list": { |
| 453 "description": "Lists operations that match the specified fi
lter in the request. If the\nserver doesn't support this method, it returns `UNI
MPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the bin
ding\nto use different resource name schemes, such as `users/*/operations`. To\n
override the binding, API services can add a binding such as\n`\"/v1/{name=users
/*}/operations\"` to their service configuration.\nFor backwards compatibility,
the default name includes the operations\ncollection id, however overriding user
s must ensure the name binding\nis the parent resource, without the operations c
ollection id.", |
| 454 "httpMethod": "GET", |
| 455 "id": "cloudbuild.operations.list", |
| 456 "parameterOrder": [ |
| 457 "name" |
| 458 ], |
| 459 "parameters": { |
| 460 "filter": { |
| 461 "description": "The standard list filter.", |
| 462 "location": "query", |
| 463 "type": "string" |
| 464 }, |
| 465 "pageToken": { |
| 466 "description": "The standard list page token.", |
| 467 "location": "query", |
| 468 "type": "string" |
| 469 }, |
| 470 "name": { |
| 471 "description": "The name of the operation's parent r
esource.", |
| 472 "location": "path", |
| 473 "pattern": "^operations$", |
| 474 "required": true, |
| 475 "type": "string" |
| 476 }, |
| 477 "pageSize": { |
| 478 "description": "The standard list page size.", |
| 479 "format": "int32", |
| 480 "location": "query", |
| 481 "type": "integer" |
| 482 } |
| 483 }, |
| 484 "path": "v1/{+name}", |
| 485 "response": { |
| 486 "$ref": "ListOperationsResponse" |
| 487 }, |
| 488 "scopes": [ |
| 489 "https://www.googleapis.com/auth/cloud-platform" |
| 490 ] |
| 491 } |
| 492 } |
493 } | 493 } |
494 }, | 494 }, |
495 "revision": "20170725", | 495 "revision": "20170817", |
496 "rootUrl": "https://cloudbuild.googleapis.com/", | 496 "rootUrl": "https://cloudbuild.googleapis.com/", |
497 "schemas": { | 497 "schemas": { |
498 "BuildOptions": { | |
499 "description": "Optional arguments to enable specific features of bu
ilds.", | |
500 "id": "BuildOptions", | |
501 "properties": { | |
502 "substitutionOption": { | |
503 "description": "SubstitutionOption to allow unmatch substitu
tions.", | |
504 "enum": [ | |
505 "MUST_MATCH", | |
506 "ALLOW_LOOSE" | |
507 ], | |
508 "enumDescriptions": [ | |
509 "Fails the build if error in substitutions checks, like
missing\na substitution in the template or in the map.", | |
510 "Do not fail the build if error in substitutions checks.
" | |
511 ], | |
512 "type": "string" | |
513 }, | |
514 "requestedVerifyOption": { | |
515 "description": "Requested verifiability options.", | |
516 "enum": [ | |
517 "NOT_VERIFIED", | |
518 "VERIFIED" | |
519 ], | |
520 "enumDescriptions": [ | |
521 "Not a verifiable build. (default)", | |
522 "Verified build." | |
523 ], | |
524 "type": "string" | |
525 }, | |
526 "sourceProvenanceHash": { | |
527 "description": "Requested hash for SourceProvenance.", | |
528 "enumDescriptions": [ | |
529 "No hash requested.", | |
530 "Use a sha256 hash." | |
531 ], | |
532 "items": { | |
533 "enum": [ | |
534 "NONE", | |
535 "SHA256" | |
536 ], | |
537 "type": "string" | |
538 }, | |
539 "type": "array" | |
540 } | |
541 }, | |
542 "type": "object" | |
543 }, | |
544 "StorageSource": { | |
545 "description": "StorageSource describes the location of the source i
n an archive file in\nGoogle Cloud Storage.", | |
546 "id": "StorageSource", | |
547 "properties": { | |
548 "bucket": { | |
549 "description": "Google Cloud Storage bucket containing sourc
e (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket
-naming#requirements)).", | |
550 "type": "string" | |
551 }, | |
552 "object": { | |
553 "description": "Google Cloud Storage object containing sourc
e.\n\nThis object must be a gzipped archive file (.tar.gz) containing source to\
nbuild.", | |
554 "type": "string" | |
555 }, | |
556 "generation": { | |
557 "description": "Google Cloud Storage generation for the obje
ct. If the generation is\nomitted, the latest generation will be used.", | |
558 "format": "int64", | |
559 "type": "string" | |
560 } | |
561 }, | |
562 "type": "object" | |
563 }, | |
564 "Results": { | 498 "Results": { |
565 "description": "Results describes the artifacts created by the build
pipeline.", | 499 "description": "Results describes the artifacts created by the build
pipeline.", |
566 "id": "Results", | 500 "id": "Results", |
567 "properties": { | 501 "properties": { |
568 "buildStepImages": { | 502 "buildStepImages": { |
569 "description": "List of build step digests, in order corresp
onding to build step indices.", | 503 "description": "List of build step digests, in order corresp
onding to build step indices.", |
570 "items": { | 504 "items": { |
571 "type": "string" | 505 "type": "string" |
572 }, | 506 }, |
573 "type": "array" | 507 "type": "array" |
(...skipping 16 matching lines...) Expand all Loading... |
590 "$ref": "Build", | 524 "$ref": "Build", |
591 "description": "The build that the operation is tracking." | 525 "description": "The build that the operation is tracking." |
592 } | 526 } |
593 }, | 527 }, |
594 "type": "object" | 528 "type": "object" |
595 }, | 529 }, |
596 "SourceProvenance": { | 530 "SourceProvenance": { |
597 "description": "Provenance of the source. Ways to find the original
source, or verify that\nsome source was used for this build.", | 531 "description": "Provenance of the source. Ways to find the original
source, or verify that\nsome source was used for this build.", |
598 "id": "SourceProvenance", | 532 "id": "SourceProvenance", |
599 "properties": { | 533 "properties": { |
600 "fileHashes": { | |
601 "additionalProperties": { | |
602 "$ref": "FileHashes" | |
603 }, | |
604 "description": "Hash(es) of the build source, which can be u
sed to verify that the original\nsource integrity was maintained in the build. N
ote that FileHashes will\nonly be populated if BuildOptions has requested a Sour
ceProvenanceHash.\n\nThe keys to this map are file paths used as build source an
d the values\ncontain the hash values for those files.\n\nIf the build source ca
me in a single package such as a gzipped tarfile\n(.tar.gz), the FileHash will b
e for the single path to that file.\n@OutputOnly", | |
605 "type": "object" | |
606 }, | |
607 "resolvedRepoSource": { | 534 "resolvedRepoSource": { |
608 "$ref": "RepoSource", | 535 "$ref": "RepoSource", |
609 "description": "A copy of the build's source.repo_source, if
exists, with any\nrevisions resolved." | 536 "description": "A copy of the build's source.repo_source, if
exists, with any\nrevisions resolved." |
610 }, | 537 }, |
611 "resolvedStorageSource": { | 538 "resolvedStorageSource": { |
612 "$ref": "StorageSource", | 539 "$ref": "StorageSource", |
613 "description": "A copy of the build's source.storage_source,
if exists, with any\ngenerations resolved." | 540 "description": "A copy of the build's source.storage_source,
if exists, with any\ngenerations resolved." |
| 541 }, |
| 542 "fileHashes": { |
| 543 "additionalProperties": { |
| 544 "$ref": "FileHashes" |
| 545 }, |
| 546 "description": "Hash(es) of the build source, which can be u
sed to verify that the original\nsource integrity was maintained in the build. N
ote that FileHashes will\nonly be populated if BuildOptions has requested a Sour
ceProvenanceHash.\n\nThe keys to this map are file paths used as build source an
d the values\ncontain the hash values for those files.\n\nIf the build source ca
me in a single package such as a gzipped tarfile\n(.tar.gz), the FileHash will b
e for the single path to that file.\n@OutputOnly", |
| 547 "type": "object" |
614 } | 548 } |
615 }, | 549 }, |
616 "type": "object" | 550 "type": "object" |
617 }, | 551 }, |
618 "CancelOperationRequest": { | 552 "CancelOperationRequest": { |
619 "description": "The request message for Operations.CancelOperation."
, | 553 "description": "The request message for Operations.CancelOperation."
, |
620 "id": "CancelOperationRequest", | 554 "id": "CancelOperationRequest", |
621 "properties": {}, | 555 "properties": {}, |
622 "type": "object" | 556 "type": "object" |
623 }, | 557 }, |
624 "ListBuildTriggersResponse": { | 558 "ListBuildTriggersResponse": { |
625 "description": "Response containing existing BuildTriggers.", | 559 "description": "Response containing existing BuildTriggers.", |
626 "id": "ListBuildTriggersResponse", | 560 "id": "ListBuildTriggersResponse", |
627 "properties": { | 561 "properties": { |
628 "triggers": { | 562 "triggers": { |
629 "description": "BuildTriggers for the project, sorted by cre
ate_time descending.", | 563 "description": "BuildTriggers for the project, sorted by cre
ate_time descending.", |
630 "items": { | 564 "items": { |
631 "$ref": "BuildTrigger" | 565 "$ref": "BuildTrigger" |
632 }, | 566 }, |
633 "type": "array" | 567 "type": "array" |
634 } | 568 } |
635 }, | 569 }, |
636 "type": "object" | 570 "type": "object" |
637 }, | 571 }, |
638 "Operation": { | 572 "Operation": { |
639 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", | 573 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", |
640 "id": "Operation", | 574 "id": "Operation", |
641 "properties": { | 575 "properties": { |
642 "error": { | |
643 "$ref": "Status", | |
644 "description": "The error result of the operation in case of
failure or cancellation." | |
645 }, | |
646 "metadata": { | |
647 "additionalProperties": { | |
648 "description": "Properties of the object. Contains field
@type with type URL.", | |
649 "type": "any" | |
650 }, | |
651 "description": "Service-specific metadata associated with th
e operation. It typically\ncontains progress information and common metadata su
ch as create time.\nSome services might not provide such metadata. Any method t
hat returns a\nlong-running operation should document the metadata type, if any.
", | |
652 "type": "object" | |
653 }, | |
654 "done": { | 576 "done": { |
655 "description": "If the value is `false`, it means the operat
ion is still in progress.\nIf true, the operation is completed, and either `erro
r` or `response` is\navailable.", | 577 "description": "If the value is `false`, it means the operat
ion is still in progress.\nIf true, the operation is completed, and either `erro
r` or `response` is\navailable.", |
656 "type": "boolean" | 578 "type": "boolean" |
657 }, | 579 }, |
658 "response": { | 580 "response": { |
659 "additionalProperties": { | 581 "additionalProperties": { |
660 "description": "Properties of the object. Contains field
@type with type URL.", | 582 "description": "Properties of the object. Contains field
@type with type URL.", |
661 "type": "any" | 583 "type": "any" |
662 }, | 584 }, |
663 "description": "The normal response of the operation in case
of success. If the original\nmethod returns no data on success, such as `Delet
e`, the response is\n`google.protobuf.Empty`. If the original method is standar
d\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmet
hods, the response should have the type `XxxResponse`, where `Xxx`\nis the origi
nal method name. For example, if the original method name\nis `TakeSnapshot()`,
the inferred response type is\n`TakeSnapshotResponse`.", | 585 "description": "The normal response of the operation in case
of success. If the original\nmethod returns no data on success, such as `Delet
e`, the response is\n`google.protobuf.Empty`. If the original method is standar
d\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmet
hods, the response should have the type `XxxResponse`, where `Xxx`\nis the origi
nal method name. For example, if the original method name\nis `TakeSnapshot()`,
the inferred response type is\n`TakeSnapshotResponse`.", |
664 "type": "object" | 586 "type": "object" |
665 }, | 587 }, |
666 "name": { | 588 "name": { |
667 "description": "The server-assigned name, which is only uniq
ue within the same service that\noriginally returns it. If you use the default H
TTP mapping, the\n`name` should have the format of `operations/some/unique/name`
.", | 589 "description": "The server-assigned name, which is only uniq
ue within the same service that\noriginally returns it. If you use the default H
TTP mapping, the\n`name` should have the format of `operations/some/unique/name`
.", |
668 "type": "string" | 590 "type": "string" |
| 591 }, |
| 592 "error": { |
| 593 "$ref": "Status", |
| 594 "description": "The error result of the operation in case of
failure or cancellation." |
| 595 }, |
| 596 "metadata": { |
| 597 "additionalProperties": { |
| 598 "description": "Properties of the object. Contains field
@type with type URL.", |
| 599 "type": "any" |
| 600 }, |
| 601 "description": "Service-specific metadata associated with th
e operation. It typically\ncontains progress information and common metadata su
ch as create time.\nSome services might not provide such metadata. Any method t
hat returns a\nlong-running operation should document the metadata type, if any.
", |
| 602 "type": "object" |
669 } | 603 } |
670 }, | 604 }, |
671 "type": "object" | 605 "type": "object" |
672 }, | 606 }, |
673 "BuiltImage": { | 607 "BuiltImage": { |
674 "description": "BuiltImage describes an image built by the pipeline.
", | 608 "description": "BuiltImage describes an image built by the pipeline.
", |
675 "id": "BuiltImage", | 609 "id": "BuiltImage", |
676 "properties": { | 610 "properties": { |
| 611 "name": { |
| 612 "description": "Name used to push the container image to Goo
gle Container Registry, as\npresented to `docker push`.", |
| 613 "type": "string" |
| 614 }, |
677 "digest": { | 615 "digest": { |
678 "description": "Docker Registry 2.0 digest.", | 616 "description": "Docker Registry 2.0 digest.", |
679 "type": "string" | 617 "type": "string" |
680 }, | |
681 "name": { | |
682 "description": "Name used to push the container image to Goo
gle Container Registry, as\npresented to `docker push`.", | |
683 "type": "string" | |
684 } | 618 } |
685 }, | 619 }, |
686 "type": "object" | |
687 }, | |
688 "Hash": { | |
689 "description": "Container message for hash values.", | |
690 "id": "Hash", | |
691 "properties": { | |
692 "type": { | |
693 "description": "The type of hash that was performed.", | |
694 "enum": [ | |
695 "NONE", | |
696 "SHA256" | |
697 ], | |
698 "enumDescriptions": [ | |
699 "No hash requested.", | |
700 "Use a sha256 hash." | |
701 ], | |
702 "type": "string" | |
703 }, | |
704 "value": { | |
705 "description": "The hash value.", | |
706 "format": "byte", | |
707 "type": "string" | |
708 } | |
709 }, | |
710 "type": "object" | |
711 }, | |
712 "RepoSource": { | |
713 "description": "RepoSource describes the location of the source in a
Google Cloud Source\nRepository.", | |
714 "id": "RepoSource", | |
715 "properties": { | |
716 "branchName": { | |
717 "description": "Name of the branch to build.", | |
718 "type": "string" | |
719 }, | |
720 "repoName": { | |
721 "description": "Name of the repo. If omitted, the name \"def
ault\" is assumed.", | |
722 "type": "string" | |
723 }, | |
724 "projectId": { | |
725 "description": "ID of the project that owns the repo. If omi
tted, the project ID requesting\nthe build is assumed.", | |
726 "type": "string" | |
727 }, | |
728 "commitSha": { | |
729 "description": "Explicit commit SHA to build.", | |
730 "type": "string" | |
731 }, | |
732 "tagName": { | |
733 "description": "Name of the tag to build.", | |
734 "type": "string" | |
735 } | |
736 }, | |
737 "type": "object" | 620 "type": "object" |
738 }, | 621 }, |
739 "BuildStep": { | 622 "BuildStep": { |
740 "description": "BuildStep describes a step to perform in the build p
ipeline.", | 623 "description": "BuildStep describes a step to perform in the build p
ipeline.", |
741 "id": "BuildStep", | 624 "id": "BuildStep", |
742 "properties": { | 625 "properties": { |
| 626 "name": { |
| 627 "description": "The name of the container image that will ru
n this particular build step.\n\nIf the image is already available in the host's
Docker daemon's cache, it\nwill be run directly. If not, the host will attempt
to pull the image\nfirst, using the builder service account's credentials if nec
essary.\n\nThe Docker daemon's cache will already have the latest versions of al
l of\nthe officially supported build steps\n([https://github.com/GoogleCloudPlat
form/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).\nT
he Docker daemon will also have cached many of the layers for some popular\nimag
es, like \"ubuntu\", \"debian\", but they will be refreshed at the time you\natt
empt to use them.\n\nIf you built an image in a previous build step, it will be
stored in the\nhost's Docker daemon's cache and is available to use as the name
for a\nlater build step.", |
| 628 "type": "string" |
| 629 }, |
743 "entrypoint": { | 630 "entrypoint": { |
744 "description": "Optional entrypoint to be used instead of th
e build step image's default\nIf unset, the image's default will be used.", | 631 "description": "Optional entrypoint to be used instead of th
e build step image's default\nIf unset, the image's default will be used.", |
745 "type": "string" | 632 "type": "string" |
746 }, | 633 }, |
| 634 "id": { |
| 635 "description": "Optional unique identifier for this build st
ep, used in wait_for to\nreference this build step as a dependency.", |
| 636 "type": "string" |
| 637 }, |
747 "secretEnv": { | 638 "secretEnv": { |
748 "description": "A list of environment variables which are en
crypted using a Cloud KMS\ncrypto key. These values must be specified in the bui
ld's secrets.", | 639 "description": "A list of environment variables which are en
crypted using a Cloud KMS\ncrypto key. These values must be specified in the bui
ld's secrets.", |
749 "items": { | 640 "items": { |
750 "type": "string" | 641 "type": "string" |
751 }, | 642 }, |
752 "type": "array" | 643 "type": "array" |
753 }, | 644 }, |
754 "id": { | |
755 "description": "Optional unique identifier for this build st
ep, used in wait_for to\nreference this build step as a dependency.", | |
756 "type": "string" | |
757 }, | |
758 "volumes": { | 645 "volumes": { |
759 "description": "List of volumes to mount into the build step
.\n\nEach volume will be created as an empty volume prior to execution of the\nb
uild step. Upon completion of the build, volumes and their contents will\nbe dis
carded.\n\nUsing a named volume in only one step is not valid as it is indicativ
e\nof a mis-configured build request.", | 646 "description": "List of volumes to mount into the build step
.\n\nEach volume will be created as an empty volume prior to execution of the\nb
uild step. Upon completion of the build, volumes and their contents will\nbe dis
carded.\n\nUsing a named volume in only one step is not valid as it is indicativ
e\nof a mis-configured build request.", |
760 "items": { | 647 "items": { |
761 "$ref": "Volume" | 648 "$ref": "Volume" |
762 }, | 649 }, |
763 "type": "array" | 650 "type": "array" |
764 }, | 651 }, |
765 "dir": { | 652 "dir": { |
766 "description": "Working directory (relative to project sourc
e root) to use when running\nthis operation's container.", | 653 "description": "Working directory (relative to project sourc
e root) to use when running\nthis operation's container.", |
767 "type": "string" | 654 "type": "string" |
768 }, | 655 }, |
| 656 "env": { |
| 657 "description": "A list of environment variable definitions t
o be used when running a step.\n\nThe elements are of the form \"KEY=VALUE\" for
the environment variable \"KEY\"\nbeing given the value \"VALUE\".", |
| 658 "items": { |
| 659 "type": "string" |
| 660 }, |
| 661 "type": "array" |
| 662 }, |
769 "waitFor": { | 663 "waitFor": { |
770 "description": "The ID(s) of the step(s) that this build ste
p depends on.\nThis build step will not start until all the build steps in wait_
for\nhave completed successfully. If wait_for is empty, this build step will\nst
art when all previous build steps in the Build.Steps list have completed\nsucces
sfully.", | 664 "description": "The ID(s) of the step(s) that this build ste
p depends on.\nThis build step will not start until all the build steps in wait_
for\nhave completed successfully. If wait_for is empty, this build step will\nst
art when all previous build steps in the Build.Steps list have completed\nsucces
sfully.", |
771 "items": { | 665 "items": { |
772 "type": "string" | 666 "type": "string" |
773 }, | 667 }, |
774 "type": "array" | |
775 }, | |
776 "env": { | |
777 "description": "A list of environment variable definitions t
o be used when running a step.\n\nThe elements are of the form \"KEY=VALUE\" for
the environment variable \"KEY\"\nbeing given the value \"VALUE\".", | |
778 "items": { | |
779 "type": "string" | |
780 }, | |
781 "type": "array" | 668 "type": "array" |
782 }, | 669 }, |
783 "args": { | 670 "args": { |
784 "description": "A list of arguments that will be presented t
o the step when it is started.\n\nIf the image used to run the step's container
has an entrypoint, these args\nwill be used as arguments to that entrypoint. If
the image does not define\nan entrypoint, the first element in args will be used
as the entrypoint,\nand the remainder will be used as arguments.", | 671 "description": "A list of arguments that will be presented t
o the step when it is started.\n\nIf the image used to run the step's container
has an entrypoint, these args\nwill be used as arguments to that entrypoint. If
the image does not define\nan entrypoint, the first element in args will be used
as the entrypoint,\nand the remainder will be used as arguments.", |
785 "items": { | 672 "items": { |
786 "type": "string" | 673 "type": "string" |
787 }, | 674 }, |
788 "type": "array" | 675 "type": "array" |
| 676 } |
| 677 }, |
| 678 "type": "object" |
| 679 }, |
| 680 "Hash": { |
| 681 "description": "Container message for hash values.", |
| 682 "id": "Hash", |
| 683 "properties": { |
| 684 "type": { |
| 685 "description": "The type of hash that was performed.", |
| 686 "enum": [ |
| 687 "NONE", |
| 688 "SHA256" |
| 689 ], |
| 690 "enumDescriptions": [ |
| 691 "No hash requested.", |
| 692 "Use a sha256 hash." |
| 693 ], |
| 694 "type": "string" |
789 }, | 695 }, |
790 "name": { | 696 "value": { |
791 "description": "The name of the container image that will ru
n this particular build step.\n\nIf the image is already available in the host's
Docker daemon's cache, it\nwill be run directly. If not, the host will attempt
to pull the image\nfirst, using the builder service account's credentials if nec
essary.\n\nThe Docker daemon's cache will already have the latest versions of al
l of\nthe officially supported build steps\n([https://github.com/GoogleCloudPlat
form/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)).\nT
he Docker daemon will also have cached many of the layers for some popular\nimag
es, like \"ubuntu\", \"debian\", but they will be refreshed at the time you\natt
empt to use them.\n\nIf you built an image in a previous build step, it will be
stored in the\nhost's Docker daemon's cache and is available to use as the name
for a\nlater build step.", | 697 "description": "The hash value.", |
| 698 "format": "byte", |
792 "type": "string" | 699 "type": "string" |
793 } | 700 } |
794 }, | 701 }, |
| 702 "type": "object" |
| 703 }, |
| 704 "RepoSource": { |
| 705 "description": "RepoSource describes the location of the source in a
Google Cloud Source\nRepository.", |
| 706 "id": "RepoSource", |
| 707 "properties": { |
| 708 "commitSha": { |
| 709 "description": "Explicit commit SHA to build.", |
| 710 "type": "string" |
| 711 }, |
| 712 "tagName": { |
| 713 "description": "Name of the tag to build.", |
| 714 "type": "string" |
| 715 }, |
| 716 "branchName": { |
| 717 "description": "Name of the branch to build.", |
| 718 "type": "string" |
| 719 }, |
| 720 "repoName": { |
| 721 "description": "Name of the repo. If omitted, the name \"def
ault\" is assumed.", |
| 722 "type": "string" |
| 723 }, |
| 724 "projectId": { |
| 725 "description": "ID of the project that owns the repo. If omi
tted, the project ID requesting\nthe build is assumed.", |
| 726 "type": "string" |
| 727 } |
| 728 }, |
795 "type": "object" | 729 "type": "object" |
796 }, | 730 }, |
797 "FileHashes": { | 731 "FileHashes": { |
798 "description": "Container message for hashes of byte content of file
s, used in\nSourceProvenance messages to verify integrity of source input to the
build.", | 732 "description": "Container message for hashes of byte content of file
s, used in\nSourceProvenance messages to verify integrity of source input to the
build.", |
799 "id": "FileHashes", | 733 "id": "FileHashes", |
800 "properties": { | 734 "properties": { |
801 "fileHash": { | 735 "fileHash": { |
802 "description": "Collection of file hashes.", | 736 "description": "Collection of file hashes.", |
803 "items": { | 737 "items": { |
804 "$ref": "Hash" | 738 "$ref": "Hash" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 "Empty": { | 791 "Empty": { |
858 "description": "A generic empty message that you can re-use to avoid
defining duplicated\nempty messages in your APIs. A typical example is to use i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", | 792 "description": "A generic empty message that you can re-use to avoid
defining duplicated\nempty messages in your APIs. A typical example is to use i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
859 "id": "Empty", | 793 "id": "Empty", |
860 "properties": {}, | 794 "properties": {}, |
861 "type": "object" | 795 "type": "object" |
862 }, | 796 }, |
863 "BuildTrigger": { | 797 "BuildTrigger": { |
864 "description": "Configuration for an automated build in response to
source repository\nchanges.", | 798 "description": "Configuration for an automated build in response to
source repository\nchanges.", |
865 "id": "BuildTrigger", | 799 "id": "BuildTrigger", |
866 "properties": { | 800 "properties": { |
| 801 "createTime": { |
| 802 "description": "Time when the trigger was created.\n\n@Outpu
tOnly", |
| 803 "format": "google-datetime", |
| 804 "type": "string" |
| 805 }, |
| 806 "disabled": { |
| 807 "description": "If true, the trigger will never result in a
build.", |
| 808 "type": "boolean" |
| 809 }, |
| 810 "triggerTemplate": { |
| 811 "$ref": "RepoSource", |
| 812 "description": "Template describing the types of source chan
ges to trigger a build.\n\nBranch and tag names in trigger templates are interpr
eted as regular\nexpressions. Any branch or tag change that matches that regular
expression\nwill trigger a build." |
| 813 }, |
| 814 "filename": { |
| 815 "description": "Path, from the source root, to a file whose
contents is used for the\ntemplate.", |
| 816 "type": "string" |
| 817 }, |
867 "id": { | 818 "id": { |
868 "description": "Unique identifier of the trigger.\n\n@Output
Only", | 819 "description": "Unique identifier of the trigger.\n\n@Output
Only", |
869 "type": "string" | 820 "type": "string" |
870 }, | 821 }, |
871 "build": { | 822 "build": { |
872 "$ref": "Build", | 823 "$ref": "Build", |
873 "description": "Contents of the build template." | 824 "description": "Contents of the build template." |
874 }, | 825 }, |
875 "substitutions": { | 826 "substitutions": { |
876 "additionalProperties": { | 827 "additionalProperties": { |
877 "type": "string" | 828 "type": "string" |
878 }, | 829 }, |
879 "description": "Substitutions data for Build resource.", | 830 "description": "Substitutions data for Build resource.", |
880 "type": "object" | 831 "type": "object" |
881 }, | 832 }, |
882 "description": { | 833 "description": { |
883 "description": "Human-readable description of this trigger."
, | 834 "description": "Human-readable description of this trigger."
, |
884 "type": "string" | 835 "type": "string" |
885 }, | |
886 "disabled": { | |
887 "description": "If true, the trigger will never result in a
build.", | |
888 "type": "boolean" | |
889 }, | |
890 "createTime": { | |
891 "description": "Time when the trigger was created.\n\n@Outpu
tOnly", | |
892 "format": "google-datetime", | |
893 "type": "string" | |
894 }, | |
895 "filename": { | |
896 "description": "Path, from the source root, to a file whose
contents is used for the\ntemplate.", | |
897 "type": "string" | |
898 }, | |
899 "triggerTemplate": { | |
900 "$ref": "RepoSource", | |
901 "description": "Template describing the types of source chan
ges to trigger a build.\n\nBranch and tag names in trigger templates are interpr
eted as regular\nexpressions. Any branch or tag change that matches that regular
expression\nwill trigger a build." | |
902 } | 836 } |
903 }, | 837 }, |
904 "type": "object" | 838 "type": "object" |
905 }, | 839 }, |
906 "Build": { | 840 "Build": { |
907 "description": "A build resource in the Container Builder API.\n\nAt
a high level, a Build describes where to find source code, how to build\nit (fo
r example, the builder image to run on the source), and what tag to\napply to th
e built image when it is pushed to Google Container Registry.\n\nFields can incl
ude the following variables which will be expanded when the\nbuild is created:\n
\n- $PROJECT_ID: the project ID of the build.\n- $BUILD_ID: the autogenerated ID
of the build.\n- $REPO_NAME: the source repository name specified by RepoSource
.\n- $BRANCH_NAME: the branch name specified by RepoSource.\n- $TAG_NAME: the ta
g name specified by RepoSource.\n- $REVISION_ID or $COMMIT_SHA: the commit SHA s
pecified by RepoSource or\n resolved from the specified branch or tag.", | 841 "description": "A build resource in the Container Builder API.\n\nAt
a high level, a Build describes where to find source code, how to build\nit (fo
r example, the builder image to run on the source), and what tag to\napply to th
e built image when it is pushed to Google Container Registry.\n\nFields can incl
ude the following variables which will be expanded when the\nbuild is created:\n
\n- $PROJECT_ID: the project ID of the build.\n- $BUILD_ID: the autogenerated ID
of the build.\n- $REPO_NAME: the source repository name specified by RepoSource
.\n- $BRANCH_NAME: the branch name specified by RepoSource.\n- $TAG_NAME: the ta
g name specified by RepoSource.\n- $REVISION_ID or $COMMIT_SHA: the commit SHA s
pecified by RepoSource or\n resolved from the specified branch or tag.", |
908 "id": "Build", | 842 "id": "Build", |
909 "properties": { | 843 "properties": { |
| 844 "source": { |
| 845 "$ref": "Source", |
| 846 "description": "Describes where to find the source files to
build." |
| 847 }, |
910 "options": { | 848 "options": { |
911 "$ref": "BuildOptions", | 849 "$ref": "BuildOptions", |
912 "description": "Special options for this build." | 850 "description": "Special options for this build." |
913 }, | 851 }, |
914 "source": { | 852 "timeout": { |
915 "$ref": "Source", | 853 "description": "Amount of time that this build should be all
owed to run, to second\ngranularity. If this amount of time elapses, work on the
build will cease\nand the build status will be TIMEOUT.\n\nDefault time is ten
minutes.", |
916 "description": "Describes where to find the source files to
build." | 854 "format": "google-duration", |
917 }, | |
918 "statusDetail": { | |
919 "description": "Customer-readable message about the current
status.\n@OutputOnly", | |
920 "type": "string" | 855 "type": "string" |
921 }, | 856 }, |
922 "status": { | 857 "status": { |
923 "description": "Status of the build.\n@OutputOnly", | 858 "description": "Status of the build.\n@OutputOnly", |
924 "enum": [ | 859 "enum": [ |
925 "STATUS_UNKNOWN", | 860 "STATUS_UNKNOWN", |
926 "QUEUED", | 861 "QUEUED", |
927 "WORKING", | 862 "WORKING", |
928 "SUCCESS", | 863 "SUCCESS", |
929 "FAILURE", | 864 "FAILURE", |
930 "INTERNAL_ERROR", | 865 "INTERNAL_ERROR", |
931 "TIMEOUT", | 866 "TIMEOUT", |
932 "CANCELLED" | 867 "CANCELLED" |
933 ], | 868 ], |
934 "enumDescriptions": [ | 869 "enumDescriptions": [ |
935 "Status of the build is unknown.", | 870 "Status of the build is unknown.", |
936 "Build is queued; work has not yet begun.", | 871 "Build is queued; work has not yet begun.", |
937 "Build is being executed.", | 872 "Build is being executed.", |
938 "Build finished successfully.", | 873 "Build finished successfully.", |
939 "Build failed to complete successfully.", | 874 "Build failed to complete successfully.", |
940 "Build failed due to an internal cause.", | 875 "Build failed due to an internal cause.", |
941 "Build took longer than was allowed.", | 876 "Build took longer than was allowed.", |
942 "Build was canceled by a user." | 877 "Build was canceled by a user." |
943 ], | 878 ], |
944 "type": "string" | 879 "type": "string" |
945 }, | 880 }, |
946 "timeout": { | 881 "statusDetail": { |
947 "description": "Amount of time that this build should be all
owed to run, to second\ngranularity. If this amount of time elapses, work on the
build will cease\nand the build status will be TIMEOUT.\n\nDefault time is ten
minutes.", | 882 "description": "Customer-readable message about the current
status.\n@OutputOnly", |
948 "format": "google-duration", | |
949 "type": "string" | 883 "type": "string" |
950 }, | 884 }, |
951 "secrets": { | 885 "secrets": { |
952 "description": "Secrets to decrypt using Cloud KMS.", | 886 "description": "Secrets to decrypt using Cloud KMS.", |
953 "items": { | 887 "items": { |
954 "$ref": "Secret" | 888 "$ref": "Secret" |
955 }, | 889 }, |
956 "type": "array" | 890 "type": "array" |
957 }, | 891 }, |
| 892 "results": { |
| 893 "$ref": "Results", |
| 894 "description": "Results of the build.\n@OutputOnly" |
| 895 }, |
958 "logsBucket": { | 896 "logsBucket": { |
959 "description": "Google Cloud Storage bucket where logs shoul
d be written (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/
docs/bucket-naming#requirements)).\nLogs file names will be of the format `${log
s_bucket}/log-${build_id}.txt`.", | 897 "description": "Google Cloud Storage bucket where logs shoul
d be written (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/
docs/bucket-naming#requirements)).\nLogs file names will be of the format `${log
s_bucket}/log-${build_id}.txt`.", |
960 "type": "string" | 898 "type": "string" |
961 }, | 899 }, |
962 "results": { | |
963 "$ref": "Results", | |
964 "description": "Results of the build.\n@OutputOnly" | |
965 }, | |
966 "steps": { | 900 "steps": { |
967 "description": "Describes the operations to be performed on
the workspace.", | 901 "description": "Describes the operations to be performed on
the workspace.", |
968 "items": { | 902 "items": { |
969 "$ref": "BuildStep" | 903 "$ref": "BuildStep" |
970 }, | 904 }, |
971 "type": "array" | 905 "type": "array" |
972 }, | 906 }, |
973 "buildTriggerId": { | 907 "buildTriggerId": { |
974 "description": "The ID of the BuildTrigger that triggered th
is build, if it was\ntriggered automatically.\n@OutputOnly", | 908 "description": "The ID of the BuildTrigger that triggered th
is build, if it was\ntriggered automatically.\n@OutputOnly", |
975 "type": "string" | 909 "type": "string" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 "description": "A list of images to be pushed upon the succe
ssful completion of all build\nsteps.\n\nThe images will be pushed using the bui
lder service account's credentials.\n\nThe digests of the pushed images will be
stored in the Build resource's\nresults field.\n\nIf any of the images fail to b
e pushed, the build is marked FAILURE.", | 944 "description": "A list of images to be pushed upon the succe
ssful completion of all build\nsteps.\n\nThe images will be pushed using the bui
lder service account's credentials.\n\nThe digests of the pushed images will be
stored in the Build resource's\nresults field.\n\nIf any of the images fail to b
e pushed, the build is marked FAILURE.", |
1011 "items": { | 945 "items": { |
1012 "type": "string" | 946 "type": "string" |
1013 }, | 947 }, |
1014 "type": "array" | 948 "type": "array" |
1015 }, | 949 }, |
1016 "projectId": { | 950 "projectId": { |
1017 "description": "ID of the project.\n@OutputOnly.", | 951 "description": "ID of the project.\n@OutputOnly.", |
1018 "type": "string" | 952 "type": "string" |
1019 }, | 953 }, |
1020 "logUrl": { | |
1021 "description": "URL to logs for this build in Google Cloud L
ogging.\n@OutputOnly", | |
1022 "type": "string" | |
1023 }, | |
1024 "finishTime": { | 954 "finishTime": { |
1025 "description": "Time at which execution of the build was fin
ished.\n\nThe difference between finish_time and start_time is the duration of t
he\nbuild's execution.\n@OutputOnly", | 955 "description": "Time at which execution of the build was fin
ished.\n\nThe difference between finish_time and start_time is the duration of t
he\nbuild's execution.\n@OutputOnly", |
1026 "format": "google-datetime", | 956 "format": "google-datetime", |
1027 "type": "string" | 957 "type": "string" |
| 958 }, |
| 959 "logUrl": { |
| 960 "description": "URL to logs for this build in Google Cloud L
ogging.\n@OutputOnly", |
| 961 "type": "string" |
1028 } | 962 } |
1029 }, | 963 }, |
1030 "type": "object" | 964 "type": "object" |
1031 }, | 965 }, |
1032 "CancelBuildRequest": { | 966 "CancelBuildRequest": { |
1033 "description": "Request to cancel an ongoing build.", | 967 "description": "Request to cancel an ongoing build.", |
1034 "id": "CancelBuildRequest", | 968 "id": "CancelBuildRequest", |
1035 "properties": {}, | 969 "properties": {}, |
1036 "type": "object" | 970 "type": "object" |
1037 }, | 971 }, |
1038 "ListBuildsResponse": { | 972 "ListBuildsResponse": { |
1039 "description": "Response including listed builds.", | 973 "description": "Response including listed builds.", |
1040 "id": "ListBuildsResponse", | 974 "id": "ListBuildsResponse", |
1041 "properties": { | 975 "properties": { |
| 976 "nextPageToken": { |
| 977 "description": "Token to receive the next page of results.", |
| 978 "type": "string" |
| 979 }, |
1042 "builds": { | 980 "builds": { |
1043 "description": "Builds will be sorted by create_time, descen
ding.", | 981 "description": "Builds will be sorted by create_time, descen
ding.", |
1044 "items": { | 982 "items": { |
1045 "$ref": "Build" | 983 "$ref": "Build" |
1046 }, | 984 }, |
1047 "type": "array" | 985 "type": "array" |
1048 }, | |
1049 "nextPageToken": { | |
1050 "description": "Token to receive the next page of results.", | |
1051 "type": "string" | |
1052 } | 986 } |
1053 }, | 987 }, |
1054 "type": "object" | 988 "type": "object" |
1055 }, | 989 }, |
1056 "Volume": { | 990 "Volume": { |
1057 "description": "Volume describes a Docker container volume which is
mounted into build steps\nin order to persist files across build step execution.
", | 991 "description": "Volume describes a Docker container volume which is
mounted into build steps\nin order to persist files across build step execution.
", |
1058 "id": "Volume", | 992 "id": "Volume", |
1059 "properties": { | 993 "properties": { |
| 994 "path": { |
| 995 "description": "Path at which to mount the volume.\n\nPaths
must be absolute and cannot conflict with other volume paths on the\nsame build
step or with certain reserved volume paths.", |
| 996 "type": "string" |
| 997 }, |
1060 "name": { | 998 "name": { |
1061 "description": "Name of the volume to mount.\n\nVolume names
must be unique per build step and must be valid names for\nDocker volumes. Each
named volume must be used by at least two build steps.", | 999 "description": "Name of the volume to mount.\n\nVolume names
must be unique per build step and must be valid names for\nDocker volumes. Each
named volume must be used by at least two build steps.", |
1062 "type": "string" | 1000 "type": "string" |
1063 }, | |
1064 "path": { | |
1065 "description": "Path at which to mount the volume.\n\nPaths
must be absolute and cannot conflict with other volume paths on the\nsame build
step or with certain reserved volume paths.", | |
1066 "type": "string" | |
1067 } | 1001 } |
1068 }, | 1002 }, |
1069 "type": "object" | 1003 "type": "object" |
1070 }, | 1004 }, |
1071 "ListOperationsResponse": { | 1005 "ListOperationsResponse": { |
1072 "description": "The response message for Operations.ListOperations."
, | 1006 "description": "The response message for Operations.ListOperations."
, |
1073 "id": "ListOperationsResponse", | 1007 "id": "ListOperationsResponse", |
1074 "properties": { | 1008 "properties": { |
1075 "nextPageToken": { | 1009 "nextPageToken": { |
1076 "description": "The standard List next-page token.", | 1010 "description": "The standard List next-page token.", |
1077 "type": "string" | 1011 "type": "string" |
1078 }, | 1012 }, |
1079 "operations": { | 1013 "operations": { |
1080 "description": "A list of operations that matches the specif
ied filter in the request.", | 1014 "description": "A list of operations that matches the specif
ied filter in the request.", |
1081 "items": { | 1015 "items": { |
1082 "$ref": "Operation" | 1016 "$ref": "Operation" |
1083 }, | 1017 }, |
1084 "type": "array" | 1018 "type": "array" |
1085 } | 1019 } |
1086 }, | 1020 }, |
1087 "type": "object" | 1021 "type": "object" |
1088 }, | 1022 }, |
1089 "Source": { | 1023 "Source": { |
1090 "description": "Source describes the location of the source in a sup
ported storage\nservice.", | 1024 "description": "Source describes the location of the source in a sup
ported storage\nservice.", |
1091 "id": "Source", | 1025 "id": "Source", |
1092 "properties": { | 1026 "properties": { |
| 1027 "storageSource": { |
| 1028 "$ref": "StorageSource", |
| 1029 "description": "If provided, get the source from this locati
on in in Google Cloud\nStorage." |
| 1030 }, |
1093 "repoSource": { | 1031 "repoSource": { |
1094 "$ref": "RepoSource", | 1032 "$ref": "RepoSource", |
1095 "description": "If provided, get source from this location i
n a Cloud Repo." | 1033 "description": "If provided, get source from this location i
n a Cloud Repo." |
1096 }, | |
1097 "storageSource": { | |
1098 "$ref": "StorageSource", | |
1099 "description": "If provided, get the source from this locati
on in in Google Cloud\nStorage." | |
1100 } | 1034 } |
1101 }, | 1035 }, |
1102 "type": "object" | 1036 "type": "object" |
| 1037 }, |
| 1038 "BuildOptions": { |
| 1039 "description": "Optional arguments to enable specific features of bu
ilds.", |
| 1040 "id": "BuildOptions", |
| 1041 "properties": { |
| 1042 "substitutionOption": { |
| 1043 "description": "SubstitutionOption to allow unmatch substitu
tions.", |
| 1044 "enum": [ |
| 1045 "MUST_MATCH", |
| 1046 "ALLOW_LOOSE" |
| 1047 ], |
| 1048 "enumDescriptions": [ |
| 1049 "Fails the build if error in substitutions checks, like
missing\na substitution in the template or in the map.", |
| 1050 "Do not fail the build if error in substitutions checks.
" |
| 1051 ], |
| 1052 "type": "string" |
| 1053 }, |
| 1054 "requestedVerifyOption": { |
| 1055 "description": "Requested verifiability options.", |
| 1056 "enum": [ |
| 1057 "NOT_VERIFIED", |
| 1058 "VERIFIED" |
| 1059 ], |
| 1060 "enumDescriptions": [ |
| 1061 "Not a verifiable build. (default)", |
| 1062 "Verified build." |
| 1063 ], |
| 1064 "type": "string" |
| 1065 }, |
| 1066 "sourceProvenanceHash": { |
| 1067 "description": "Requested hash for SourceProvenance.", |
| 1068 "enumDescriptions": [ |
| 1069 "No hash requested.", |
| 1070 "Use a sha256 hash." |
| 1071 ], |
| 1072 "items": { |
| 1073 "enum": [ |
| 1074 "NONE", |
| 1075 "SHA256" |
| 1076 ], |
| 1077 "type": "string" |
| 1078 }, |
| 1079 "type": "array" |
| 1080 } |
| 1081 }, |
| 1082 "type": "object" |
| 1083 }, |
| 1084 "StorageSource": { |
| 1085 "description": "StorageSource describes the location of the source i
n an archive file in\nGoogle Cloud Storage.", |
| 1086 "id": "StorageSource", |
| 1087 "properties": { |
| 1088 "bucket": { |
| 1089 "description": "Google Cloud Storage bucket containing sourc
e (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket
-naming#requirements)).", |
| 1090 "type": "string" |
| 1091 }, |
| 1092 "object": { |
| 1093 "description": "Google Cloud Storage object containing sourc
e.\n\nThis object must be a gzipped archive file (.tar.gz) containing source to\
nbuild.", |
| 1094 "type": "string" |
| 1095 }, |
| 1096 "generation": { |
| 1097 "description": "Google Cloud Storage generation for the obje
ct. If the generation is\nomitted, the latest generation will be used.", |
| 1098 "format": "int64", |
| 1099 "type": "string" |
| 1100 } |
| 1101 }, |
| 1102 "type": "object" |
1103 } | 1103 } |
1104 }, | 1104 }, |
1105 "servicePath": "", | 1105 "servicePath": "", |
1106 "title": "Google Cloud Container Builder API", | 1106 "title": "Google Cloud Container Builder API", |
1107 "version": "v1" | 1107 "version": "v1" |
1108 } | 1108 } |
OLD | NEW |