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://cloudbuild.googleapis.com/", | 12 "baseUrl": "https://cloudbuild.googleapis.com/", |
13 "batchPath": "batch", | 13 "batchPath": "batch", |
14 "canonicalName": "Cloud Build", | 14 "canonicalName": "Cloud Build", |
15 "description": "Builds container images in the cloud.", | 15 "description": "Builds container images in the cloud.", |
16 "discoveryVersion": "v1", | 16 "discoveryVersion": "v1", |
17 "documentationLink": "https://cloud.google.com/container-builder/docs/", | 17 "documentationLink": "https://cloud.google.com/container-builder/docs/", |
18 "icons": { | 18 "icons": { |
19 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 19 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
20 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 20 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
21 }, | 21 }, |
22 "id": "cloudbuild:v1", | 22 "id": "cloudbuild:v1", |
23 "kind": "discovery#restDescription", | 23 "kind": "discovery#restDescription", |
24 "name": "cloudbuild", | 24 "name": "cloudbuild", |
25 "ownerDomain": "google.com", | 25 "ownerDomain": "google.com", |
26 "ownerName": "Google", | 26 "ownerName": "Google", |
27 "parameters": { | 27 "parameters": { |
| 28 "upload_protocol": { |
| 29 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 30 "location": "query", |
| 31 "type": "string" |
| 32 }, |
| 33 "prettyPrint": { |
| 34 "default": "true", |
| 35 "description": "Returns response with indentations and line breaks."
, |
| 36 "location": "query", |
| 37 "type": "boolean" |
| 38 }, |
| 39 "uploadType": { |
| 40 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 41 "location": "query", |
| 42 "type": "string" |
| 43 }, |
| 44 "fields": { |
| 45 "description": "Selector specifying which fields to include in a par
tial response.", |
| 46 "location": "query", |
| 47 "type": "string" |
| 48 }, |
28 "$.xgafv": { | 49 "$.xgafv": { |
29 "description": "V1 error format.", | 50 "description": "V1 error format.", |
30 "enum": [ | 51 "enum": [ |
31 "1", | 52 "1", |
32 "2" | 53 "2" |
33 ], | 54 ], |
34 "enumDescriptions": [ | 55 "enumDescriptions": [ |
35 "v1 error format", | 56 "v1 error format", |
36 "v2 error format" | 57 "v2 error format" |
37 ], | 58 ], |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 }, | 103 }, |
83 "bearer_token": { | 104 "bearer_token": { |
84 "description": "OAuth bearer token.", | 105 "description": "OAuth bearer token.", |
85 "location": "query", | 106 "location": "query", |
86 "type": "string" | 107 "type": "string" |
87 }, | 108 }, |
88 "oauth_token": { | 109 "oauth_token": { |
89 "description": "OAuth 2.0 token for the current user.", | 110 "description": "OAuth 2.0 token for the current user.", |
90 "location": "query", | 111 "location": "query", |
91 "type": "string" | 112 "type": "string" |
92 }, | |
93 "upload_protocol": { | |
94 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | |
95 "location": "query", | |
96 "type": "string" | |
97 }, | |
98 "prettyPrint": { | |
99 "default": "true", | |
100 "description": "Returns response with indentations and line breaks."
, | |
101 "location": "query", | |
102 "type": "boolean" | |
103 }, | |
104 "uploadType": { | |
105 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | |
106 "location": "query", | |
107 "type": "string" | |
108 }, | |
109 "fields": { | |
110 "description": "Selector specifying which fields to include in a par
tial response.", | |
111 "location": "query", | |
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 }, |
117 "projects": { | 212 "projects": { |
118 "resources": { | 213 "resources": { |
119 "builds": { | 214 "builds": { |
120 "methods": { | 215 "methods": { |
| 216 "cancel": { |
| 217 "description": "Cancels a requested build in progres
s.", |
| 218 "httpMethod": "POST", |
| 219 "id": "cloudbuild.projects.builds.cancel", |
| 220 "parameterOrder": [ |
| 221 "projectId", |
| 222 "id" |
| 223 ], |
| 224 "parameters": { |
| 225 "projectId": { |
| 226 "description": "ID of the project.", |
| 227 "location": "path", |
| 228 "required": true, |
| 229 "type": "string" |
| 230 }, |
| 231 "id": { |
| 232 "description": "ID of the build.", |
| 233 "location": "path", |
| 234 "required": true, |
| 235 "type": "string" |
| 236 } |
| 237 }, |
| 238 "path": "v1/projects/{projectId}/builds/{id}:cancel"
, |
| 239 "request": { |
| 240 "$ref": "CancelBuildRequest" |
| 241 }, |
| 242 "response": { |
| 243 "$ref": "Build" |
| 244 }, |
| 245 "scopes": [ |
| 246 "https://www.googleapis.com/auth/cloud-platform" |
| 247 ] |
| 248 }, |
121 "list": { | 249 "list": { |
122 "description": "Lists previously requested builds.\n
\nPreviously requested builds may still be in-progress, or may have finished\nsu
ccessfully or unsuccessfully.", | 250 "description": "Lists previously requested builds.\n
\nPreviously requested builds may still be in-progress, or may have finished\nsu
ccessfully or unsuccessfully.", |
123 "httpMethod": "GET", | 251 "httpMethod": "GET", |
124 "id": "cloudbuild.projects.builds.list", | 252 "id": "cloudbuild.projects.builds.list", |
125 "parameterOrder": [ | 253 "parameterOrder": [ |
126 "projectId" | 254 "projectId" |
127 ], | 255 ], |
128 "parameters": { | 256 "parameters": { |
129 "pageToken": { | |
130 "description": "Token to provide to skip to
a particular spot in the list.", | |
131 "location": "query", | |
132 "type": "string" | |
133 }, | |
134 "pageSize": { | 257 "pageSize": { |
135 "description": "Number of results to return
in the list.", | 258 "description": "Number of results to return
in the list.", |
136 "format": "int32", | 259 "format": "int32", |
137 "location": "query", | 260 "location": "query", |
138 "type": "integer" | 261 "type": "integer" |
139 }, | 262 }, |
140 "projectId": { | 263 "projectId": { |
141 "description": "ID of the project.", | 264 "description": "ID of the project.", |
142 "location": "path", | 265 "location": "path", |
143 "required": true, | 266 "required": true, |
144 "type": "string" | 267 "type": "string" |
145 }, | 268 }, |
146 "filter": { | 269 "filter": { |
147 "description": "The raw filter text to const
rain the results.", | 270 "description": "The raw filter text to const
rain the results.", |
148 "location": "query", | 271 "location": "query", |
149 "type": "string" | 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" |
150 } | 278 } |
151 }, | 279 }, |
152 "path": "v1/projects/{projectId}/builds", | 280 "path": "v1/projects/{projectId}/builds", |
153 "response": { | 281 "response": { |
154 "$ref": "ListBuildsResponse" | 282 "$ref": "ListBuildsResponse" |
155 }, | 283 }, |
156 "scopes": [ | 284 "scopes": [ |
157 "https://www.googleapis.com/auth/cloud-platform" | 285 "https://www.googleapis.com/auth/cloud-platform" |
158 ] | 286 ] |
159 }, | 287 }, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 "path": "v1/projects/{projectId}/builds", | 333 "path": "v1/projects/{projectId}/builds", |
206 "request": { | 334 "request": { |
207 "$ref": "Build" | 335 "$ref": "Build" |
208 }, | 336 }, |
209 "response": { | 337 "response": { |
210 "$ref": "Operation" | 338 "$ref": "Operation" |
211 }, | 339 }, |
212 "scopes": [ | 340 "scopes": [ |
213 "https://www.googleapis.com/auth/cloud-platform" | 341 "https://www.googleapis.com/auth/cloud-platform" |
214 ] | 342 ] |
215 }, | |
216 "cancel": { | |
217 "description": "Cancels a requested build in progres
s.", | |
218 "httpMethod": "POST", | |
219 "id": "cloudbuild.projects.builds.cancel", | |
220 "parameterOrder": [ | |
221 "projectId", | |
222 "id" | |
223 ], | |
224 "parameters": { | |
225 "projectId": { | |
226 "description": "ID of the project.", | |
227 "location": "path", | |
228 "required": true, | |
229 "type": "string" | |
230 }, | |
231 "id": { | |
232 "description": "ID of the build.", | |
233 "location": "path", | |
234 "required": true, | |
235 "type": "string" | |
236 } | |
237 }, | |
238 "path": "v1/projects/{projectId}/builds/{id}:cancel"
, | |
239 "request": { | |
240 "$ref": "CancelBuildRequest" | |
241 }, | |
242 "response": { | |
243 "$ref": "Build" | |
244 }, | |
245 "scopes": [ | |
246 "https://www.googleapis.com/auth/cloud-platform" | |
247 ] | |
248 } | 343 } |
249 } | 344 } |
250 }, | 345 }, |
251 "triggers": { | 346 "triggers": { |
252 "methods": { | 347 "methods": { |
253 "delete": { | |
254 "description": "Deletes an BuildTrigger by its proje
ct ID and trigger ID.\n\nThis API is experimental.", | |
255 "httpMethod": "DELETE", | |
256 "id": "cloudbuild.projects.triggers.delete", | |
257 "parameterOrder": [ | |
258 "projectId", | |
259 "triggerId" | |
260 ], | |
261 "parameters": { | |
262 "triggerId": { | |
263 "description": "ID of the BuildTrigger to de
lete.", | |
264 "location": "path", | |
265 "required": true, | |
266 "type": "string" | |
267 }, | |
268 "projectId": { | |
269 "description": "ID of the project that owns
the trigger.", | |
270 "location": "path", | |
271 "required": true, | |
272 "type": "string" | |
273 } | |
274 }, | |
275 "path": "v1/projects/{projectId}/triggers/{triggerId
}", | |
276 "response": { | |
277 "$ref": "Empty" | |
278 }, | |
279 "scopes": [ | |
280 "https://www.googleapis.com/auth/cloud-platform" | |
281 ] | |
282 }, | |
283 "patch": { | 348 "patch": { |
284 "description": "Updates an BuildTrigger by its proje
ct ID and trigger ID.\n\nThis API is experimental.", | 349 "description": "Updates an BuildTrigger by its proje
ct ID and trigger ID.\n\nThis API is experimental.", |
285 "httpMethod": "PATCH", | 350 "httpMethod": "PATCH", |
286 "id": "cloudbuild.projects.triggers.patch", | 351 "id": "cloudbuild.projects.triggers.patch", |
287 "parameterOrder": [ | 352 "parameterOrder": [ |
288 "projectId", | 353 "projectId", |
289 "triggerId" | 354 "triggerId" |
290 ], | 355 ], |
291 "parameters": { | 356 "parameters": { |
292 "triggerId": { | 357 "triggerId": { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 "path": "v1/projects/{projectId}/triggers", | 449 "path": "v1/projects/{projectId}/triggers", |
385 "request": { | 450 "request": { |
386 "$ref": "BuildTrigger" | 451 "$ref": "BuildTrigger" |
387 }, | 452 }, |
388 "response": { | 453 "response": { |
389 "$ref": "BuildTrigger" | 454 "$ref": "BuildTrigger" |
390 }, | 455 }, |
391 "scopes": [ | 456 "scopes": [ |
392 "https://www.googleapis.com/auth/cloud-platform" | 457 "https://www.googleapis.com/auth/cloud-platform" |
393 ] | 458 ] |
| 459 }, |
| 460 "delete": { |
| 461 "description": "Deletes an BuildTrigger by its proje
ct ID and trigger ID.\n\nThis API is experimental.", |
| 462 "httpMethod": "DELETE", |
| 463 "id": "cloudbuild.projects.triggers.delete", |
| 464 "parameterOrder": [ |
| 465 "projectId", |
| 466 "triggerId" |
| 467 ], |
| 468 "parameters": { |
| 469 "triggerId": { |
| 470 "description": "ID of the BuildTrigger to de
lete.", |
| 471 "location": "path", |
| 472 "required": true, |
| 473 "type": "string" |
| 474 }, |
| 475 "projectId": { |
| 476 "description": "ID of the project that owns
the trigger.", |
| 477 "location": "path", |
| 478 "required": true, |
| 479 "type": "string" |
| 480 } |
| 481 }, |
| 482 "path": "v1/projects/{projectId}/triggers/{triggerId
}", |
| 483 "response": { |
| 484 "$ref": "Empty" |
| 485 }, |
| 486 "scopes": [ |
| 487 "https://www.googleapis.com/auth/cloud-platform" |
| 488 ] |
394 } | 489 } |
395 } | 490 } |
396 } | 491 } |
397 } | 492 } |
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": "20170706", | 495 "revision": "20170725", |
496 "rootUrl": "https://cloudbuild.googleapis.com/", | 496 "rootUrl": "https://cloudbuild.googleapis.com/", |
497 "schemas": { | 497 "schemas": { |
498 "ListBuildsResponse": { | |
499 "description": "Response including listed builds.", | |
500 "id": "ListBuildsResponse", | |
501 "properties": { | |
502 "nextPageToken": { | |
503 "description": "Token to receive the next page of results.", | |
504 "type": "string" | |
505 }, | |
506 "builds": { | |
507 "description": "Builds will be sorted by create_time, descen
ding.", | |
508 "items": { | |
509 "$ref": "Build" | |
510 }, | |
511 "type": "array" | |
512 } | |
513 }, | |
514 "type": "object" | |
515 }, | |
516 "ListOperationsResponse": { | |
517 "description": "The response message for Operations.ListOperations."
, | |
518 "id": "ListOperationsResponse", | |
519 "properties": { | |
520 "operations": { | |
521 "description": "A list of operations that matches the specif
ied filter in the request.", | |
522 "items": { | |
523 "$ref": "Operation" | |
524 }, | |
525 "type": "array" | |
526 }, | |
527 "nextPageToken": { | |
528 "description": "The standard List next-page token.", | |
529 "type": "string" | |
530 } | |
531 }, | |
532 "type": "object" | |
533 }, | |
534 "Source": { | |
535 "description": "Source describes the location of the source in a sup
ported storage\nservice.", | |
536 "id": "Source", | |
537 "properties": { | |
538 "storageSource": { | |
539 "$ref": "StorageSource", | |
540 "description": "If provided, get the source from this locati
on in in Google Cloud\nStorage." | |
541 }, | |
542 "repoSource": { | |
543 "$ref": "RepoSource", | |
544 "description": "If provided, get source from this location i
n a Cloud Repo." | |
545 } | |
546 }, | |
547 "type": "object" | |
548 }, | |
549 "BuildOptions": { | 498 "BuildOptions": { |
550 "description": "Optional arguments to enable specific features of bu
ilds.", | 499 "description": "Optional arguments to enable specific features of bu
ilds.", |
551 "id": "BuildOptions", | 500 "id": "BuildOptions", |
552 "properties": { | 501 "properties": { |
553 "substitutionOption": { | 502 "substitutionOption": { |
554 "description": "SubstitutionOption to allow unmatch substitu
tions.", | 503 "description": "SubstitutionOption to allow unmatch substitu
tions.", |
555 "enum": [ | 504 "enum": [ |
556 "MUST_MATCH", | 505 "MUST_MATCH", |
557 "ALLOW_LOOSE" | 506 "ALLOW_LOOSE" |
558 ], | 507 ], |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 "$ref": "Build", | 590 "$ref": "Build", |
642 "description": "The build that the operation is tracking." | 591 "description": "The build that the operation is tracking." |
643 } | 592 } |
644 }, | 593 }, |
645 "type": "object" | 594 "type": "object" |
646 }, | 595 }, |
647 "SourceProvenance": { | 596 "SourceProvenance": { |
648 "description": "Provenance of the source. Ways to find the original
source, or verify that\nsome source was used for this build.", | 597 "description": "Provenance of the source. Ways to find the original
source, or verify that\nsome source was used for this build.", |
649 "id": "SourceProvenance", | 598 "id": "SourceProvenance", |
650 "properties": { | 599 "properties": { |
651 "resolvedStorageSource": { | |
652 "$ref": "StorageSource", | |
653 "description": "A copy of the build's source.storage_source,
if exists, with any\ngenerations resolved." | |
654 }, | |
655 "fileHashes": { | 600 "fileHashes": { |
656 "additionalProperties": { | 601 "additionalProperties": { |
657 "$ref": "FileHashes" | 602 "$ref": "FileHashes" |
658 }, | 603 }, |
659 "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", | 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", |
660 "type": "object" | 605 "type": "object" |
661 }, | 606 }, |
662 "resolvedRepoSource": { | 607 "resolvedRepoSource": { |
663 "$ref": "RepoSource", | 608 "$ref": "RepoSource", |
664 "description": "A copy of the build's source.repo_source, if
exists, with any\nrevisions resolved." | 609 "description": "A copy of the build's source.repo_source, if
exists, with any\nrevisions resolved." |
| 610 }, |
| 611 "resolvedStorageSource": { |
| 612 "$ref": "StorageSource", |
| 613 "description": "A copy of the build's source.storage_source,
if exists, with any\ngenerations resolved." |
665 } | 614 } |
666 }, | 615 }, |
667 "type": "object" | 616 "type": "object" |
668 }, | 617 }, |
669 "CancelOperationRequest": { | 618 "CancelOperationRequest": { |
670 "description": "The request message for Operations.CancelOperation."
, | 619 "description": "The request message for Operations.CancelOperation."
, |
671 "id": "CancelOperationRequest", | 620 "id": "CancelOperationRequest", |
672 "properties": {}, | 621 "properties": {}, |
673 "type": "object" | 622 "type": "object" |
674 }, | 623 }, |
| 624 "ListBuildTriggersResponse": { |
| 625 "description": "Response containing existing BuildTriggers.", |
| 626 "id": "ListBuildTriggersResponse", |
| 627 "properties": { |
| 628 "triggers": { |
| 629 "description": "BuildTriggers for the project, sorted by cre
ate_time descending.", |
| 630 "items": { |
| 631 "$ref": "BuildTrigger" |
| 632 }, |
| 633 "type": "array" |
| 634 } |
| 635 }, |
| 636 "type": "object" |
| 637 }, |
675 "Operation": { | 638 "Operation": { |
676 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", | 639 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", |
677 "id": "Operation", | 640 "id": "Operation", |
678 "properties": { | 641 "properties": { |
679 "name": { | |
680 "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`
.", | |
681 "type": "string" | |
682 }, | |
683 "error": { | 642 "error": { |
684 "$ref": "Status", | 643 "$ref": "Status", |
685 "description": "The error result of the operation in case of
failure or cancellation." | 644 "description": "The error result of the operation in case of
failure or cancellation." |
686 }, | 645 }, |
687 "metadata": { | 646 "metadata": { |
688 "additionalProperties": { | 647 "additionalProperties": { |
689 "description": "Properties of the object. Contains field
@type with type URL.", | 648 "description": "Properties of the object. Contains field
@type with type URL.", |
690 "type": "any" | 649 "type": "any" |
691 }, | 650 }, |
692 "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.
", | 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.
", |
693 "type": "object" | 652 "type": "object" |
694 }, | 653 }, |
695 "done": { | 654 "done": { |
696 "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.", | 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.", |
697 "type": "boolean" | 656 "type": "boolean" |
698 }, | 657 }, |
699 "response": { | 658 "response": { |
700 "additionalProperties": { | 659 "additionalProperties": { |
701 "description": "Properties of the object. Contains field
@type with type URL.", | 660 "description": "Properties of the object. Contains field
@type with type URL.", |
702 "type": "any" | 661 "type": "any" |
703 }, | 662 }, |
704 "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`.", | 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`.", |
705 "type": "object" | 664 "type": "object" |
| 665 }, |
| 666 "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`
.", |
| 668 "type": "string" |
706 } | 669 } |
707 }, | 670 }, |
708 "type": "object" | 671 "type": "object" |
709 }, | |
710 "ListBuildTriggersResponse": { | |
711 "description": "Response containing existing BuildTriggers.", | |
712 "id": "ListBuildTriggersResponse", | |
713 "properties": { | |
714 "triggers": { | |
715 "description": "BuildTriggers for the project, sorted by cre
ate_time descending.", | |
716 "items": { | |
717 "$ref": "BuildTrigger" | |
718 }, | |
719 "type": "array" | |
720 } | |
721 }, | |
722 "type": "object" | |
723 }, | 672 }, |
724 "BuiltImage": { | 673 "BuiltImage": { |
725 "description": "BuiltImage describes an image built by the pipeline.
", | 674 "description": "BuiltImage describes an image built by the pipeline.
", |
726 "id": "BuiltImage", | 675 "id": "BuiltImage", |
727 "properties": { | 676 "properties": { |
| 677 "digest": { |
| 678 "description": "Docker Registry 2.0 digest.", |
| 679 "type": "string" |
| 680 }, |
728 "name": { | 681 "name": { |
729 "description": "Name used to push the container image to Goo
gle Container Registry, as\npresented to `docker push`.", | 682 "description": "Name used to push the container image to Goo
gle Container Registry, as\npresented to `docker push`.", |
730 "type": "string" | 683 "type": "string" |
731 }, | |
732 "digest": { | |
733 "description": "Docker Registry 2.0 digest.", | |
734 "type": "string" | |
735 } | 684 } |
736 }, | 685 }, |
737 "type": "object" | 686 "type": "object" |
738 }, | 687 }, |
739 "Hash": { | 688 "Hash": { |
740 "description": "Container message for hash values.", | 689 "description": "Container message for hash values.", |
741 "id": "Hash", | 690 "id": "Hash", |
742 "properties": { | 691 "properties": { |
743 "type": { | 692 "type": { |
744 "description": "The type of hash that was performed.", | 693 "description": "The type of hash that was performed.", |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 "description": "Name of the tag to build.", | 733 "description": "Name of the tag to build.", |
785 "type": "string" | 734 "type": "string" |
786 } | 735 } |
787 }, | 736 }, |
788 "type": "object" | 737 "type": "object" |
789 }, | 738 }, |
790 "BuildStep": { | 739 "BuildStep": { |
791 "description": "BuildStep describes a step to perform in the build p
ipeline.", | 740 "description": "BuildStep describes a step to perform in the build p
ipeline.", |
792 "id": "BuildStep", | 741 "id": "BuildStep", |
793 "properties": { | 742 "properties": { |
| 743 "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.", |
| 745 "type": "string" |
| 746 }, |
| 747 "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.", |
| 749 "items": { |
| 750 "type": "string" |
| 751 }, |
| 752 "type": "array" |
| 753 }, |
| 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": { |
| 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.", |
| 760 "items": { |
| 761 "$ref": "Volume" |
| 762 }, |
| 763 "type": "array" |
| 764 }, |
| 765 "dir": { |
| 766 "description": "Working directory (relative to project sourc
e root) to use when running\nthis operation's container.", |
| 767 "type": "string" |
| 768 }, |
794 "waitFor": { | 769 "waitFor": { |
795 "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.", | 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.", |
796 "items": { | 771 "items": { |
797 "type": "string" | 772 "type": "string" |
798 }, | 773 }, |
799 "type": "array" | 774 "type": "array" |
800 }, | 775 }, |
801 "env": { | 776 "env": { |
802 "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\".", | 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\".", |
803 "items": { | 778 "items": { |
804 "type": "string" | 779 "type": "string" |
805 }, | 780 }, |
806 "type": "array" | 781 "type": "array" |
807 }, | 782 }, |
808 "args": { | 783 "args": { |
809 "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.", | 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.", |
810 "items": { | 785 "items": { |
811 "type": "string" | 786 "type": "string" |
812 }, | 787 }, |
813 "type": "array" | 788 "type": "array" |
814 }, | 789 }, |
815 "name": { | 790 "name": { |
816 "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.", | 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.", |
817 "type": "string" | 792 "type": "string" |
818 }, | |
819 "entrypoint": { | |
820 "description": "Optional entrypoint to be used instead of th
e build step image's default\nIf unset, the image's default will be used.", | |
821 "type": "string" | |
822 }, | |
823 "id": { | |
824 "description": "Optional unique identifier for this build st
ep, used in wait_for to\nreference this build step as a dependency.", | |
825 "type": "string" | |
826 }, | |
827 "dir": { | |
828 "description": "Working directory (relative to project sourc
e root) to use when running\nthis operation's container.", | |
829 "type": "string" | |
830 } | 793 } |
831 }, | 794 }, |
832 "type": "object" | 795 "type": "object" |
833 }, | 796 }, |
834 "FileHashes": { | 797 "FileHashes": { |
835 "description": "Container message for hashes of byte content of file
s, used in\nSourceProvenance messages to verify integrity of source input to the
build.", | 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.", |
836 "id": "FileHashes", | 799 "id": "FileHashes", |
837 "properties": { | 800 "properties": { |
838 "fileHash": { | 801 "fileHash": { |
839 "description": "Collection of file hashes.", | 802 "description": "Collection of file hashes.", |
840 "items": { | 803 "items": { |
841 "$ref": "Hash" | 804 "$ref": "Hash" |
842 }, | 805 }, |
843 "type": "array" | 806 "type": "array" |
844 } | 807 } |
845 }, | 808 }, |
846 "type": "object" | 809 "type": "object" |
847 }, | 810 }, |
| 811 "Secret": { |
| 812 "description": "Secret pairs a set of secret environment variables c
ontaining encrypted\nvalues with the Cloud KMS key to use to decrypt the value."
, |
| 813 "id": "Secret", |
| 814 "properties": { |
| 815 "secretEnv": { |
| 816 "additionalProperties": { |
| 817 "format": "byte", |
| 818 "type": "string" |
| 819 }, |
| 820 "description": "Map of environment variable name to its encr
ypted value.\n\nSecret environment variables must be unique across all of a buil
d's\nsecrets, and must be used by at least one build step. Values can be at most
\n1 KB in size. There can be at most ten secret values across all of a\nbuild's
secrets.", |
| 821 "type": "object" |
| 822 }, |
| 823 "kmsKeyName": { |
| 824 "description": "Cloud KMS key name to use to decrypt these e
nvs.", |
| 825 "type": "string" |
| 826 } |
| 827 }, |
| 828 "type": "object" |
| 829 }, |
848 "Status": { | 830 "Status": { |
849 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` that can be used for common error conditions.\n\n# Lang
uage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mess
age is\nexposed in different client libraries and different wire protocols, it c
an be\nmapped differently. For example, it will likely be mapped to some excepti
ons\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n
\nThe error model and the `Status` message can be used in a variety of\nenvironm
ents, either with or without APIs, to provide a\nconsistent developer experience
across different environments.\n\nExample uses of this error model include:\n\n
- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step m
ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a
client uses batch request and batch response, the\n `Status` message should
be used directly inside batch response, one for\n each error sub-response.\n\
n- Asynchronous operations. If an API call embeds asynchronous operation\n re
sults in its response, the status of those operations should be\n represented
directly using the `Status` message.\n\n- Logging. If some API errors are store
d in logs, the message `Status` could\n be used directly after any stripping
needed for security/privacy reasons.", | 831 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` that can be used for common error conditions.\n\n# Lang
uage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mess
age is\nexposed in different client libraries and different wire protocols, it c
an be\nmapped differently. For example, it will likely be mapped to some excepti
ons\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n
\nThe error model and the `Status` message can be used in a variety of\nenvironm
ents, either with or without APIs, to provide a\nconsistent developer experience
across different environments.\n\nExample uses of this error model include:\n\n
- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step m
ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a
client uses batch request and batch response, the\n `Status` message should
be used directly inside batch response, one for\n each error sub-response.\n\
n- Asynchronous operations. If an API call embeds asynchronous operation\n re
sults in its response, the status of those operations should be\n represented
directly using the `Status` message.\n\n- Logging. If some API errors are store
d in logs, the message `Status` could\n be used directly after any stripping
needed for security/privacy reasons.", |
850 "id": "Status", | 832 "id": "Status", |
851 "properties": { | 833 "properties": { |
852 "code": { | |
853 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", | |
854 "format": "int32", | |
855 "type": "integer" | |
856 }, | |
857 "message": { | |
858 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", | |
859 "type": "string" | |
860 }, | |
861 "details": { | 834 "details": { |
862 "description": "A list of messages that carry the error deta
ils. There is a common set of\nmessage types for APIs to use.", | 835 "description": "A list of messages that carry the error deta
ils. There is a common set of\nmessage types for APIs to use.", |
863 "items": { | 836 "items": { |
864 "additionalProperties": { | 837 "additionalProperties": { |
865 "description": "Properties of the object. Contains f
ield @type with type URL.", | 838 "description": "Properties of the object. Contains f
ield @type with type URL.", |
866 "type": "any" | 839 "type": "any" |
867 }, | 840 }, |
868 "type": "object" | 841 "type": "object" |
869 }, | 842 }, |
870 "type": "array" | 843 "type": "array" |
| 844 }, |
| 845 "code": { |
| 846 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
| 847 "format": "int32", |
| 848 "type": "integer" |
| 849 }, |
| 850 "message": { |
| 851 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", |
| 852 "type": "string" |
871 } | 853 } |
872 }, | 854 }, |
873 "type": "object" | 855 "type": "object" |
874 }, | 856 }, |
875 "Empty": { | 857 "Empty": { |
876 "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 `{}`.", | 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 `{}`.", |
877 "id": "Empty", | 859 "id": "Empty", |
878 "properties": {}, | 860 "properties": {}, |
879 "type": "object" | 861 "type": "object" |
880 }, | 862 }, |
881 "BuildTrigger": { | 863 "BuildTrigger": { |
882 "description": "Configuration for an automated build in response to
source repository\nchanges.", | 864 "description": "Configuration for an automated build in response to
source repository\nchanges.", |
883 "id": "BuildTrigger", | 865 "id": "BuildTrigger", |
884 "properties": { | 866 "properties": { |
885 "createTime": { | |
886 "description": "Time when the trigger was created.\n\n@Outpu
tOnly", | |
887 "format": "google-datetime", | |
888 "type": "string" | |
889 }, | |
890 "disabled": { | |
891 "description": "If true, the trigger will never result in a
build.", | |
892 "type": "boolean" | |
893 }, | |
894 "filename": { | |
895 "description": "Path, from the source root, to a file whose
contents is used for the\ntemplate.", | |
896 "type": "string" | |
897 }, | |
898 "triggerTemplate": { | |
899 "$ref": "RepoSource", | |
900 "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." | |
901 }, | |
902 "id": { | 867 "id": { |
903 "description": "Unique identifier of the trigger.\n\n@Output
Only", | 868 "description": "Unique identifier of the trigger.\n\n@Output
Only", |
904 "type": "string" | 869 "type": "string" |
905 }, | 870 }, |
906 "build": { | 871 "build": { |
907 "$ref": "Build", | 872 "$ref": "Build", |
908 "description": "Contents of the build template." | 873 "description": "Contents of the build template." |
909 }, | 874 }, |
910 "substitutions": { | 875 "substitutions": { |
911 "additionalProperties": { | 876 "additionalProperties": { |
912 "type": "string" | 877 "type": "string" |
913 }, | 878 }, |
914 "description": "Substitutions data for Build resource.", | 879 "description": "Substitutions data for Build resource.", |
915 "type": "object" | 880 "type": "object" |
916 }, | 881 }, |
917 "description": { | 882 "description": { |
918 "description": "Human-readable description of this trigger."
, | 883 "description": "Human-readable description of this trigger."
, |
919 "type": "string" | 884 "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." |
920 } | 902 } |
921 }, | 903 }, |
922 "type": "object" | 904 "type": "object" |
923 }, | 905 }, |
924 "Build": { | 906 "Build": { |
925 "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.", | 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.", |
926 "id": "Build", | 908 "id": "Build", |
927 "properties": { | 909 "properties": { |
| 910 "options": { |
| 911 "$ref": "BuildOptions", |
| 912 "description": "Special options for this build." |
| 913 }, |
| 914 "source": { |
| 915 "$ref": "Source", |
| 916 "description": "Describes where to find the source files to
build." |
| 917 }, |
| 918 "statusDetail": { |
| 919 "description": "Customer-readable message about the current
status.\n@OutputOnly", |
| 920 "type": "string" |
| 921 }, |
| 922 "status": { |
| 923 "description": "Status of the build.\n@OutputOnly", |
| 924 "enum": [ |
| 925 "STATUS_UNKNOWN", |
| 926 "QUEUED", |
| 927 "WORKING", |
| 928 "SUCCESS", |
| 929 "FAILURE", |
| 930 "INTERNAL_ERROR", |
| 931 "TIMEOUT", |
| 932 "CANCELLED" |
| 933 ], |
| 934 "enumDescriptions": [ |
| 935 "Status of the build is unknown.", |
| 936 "Build is queued; work has not yet begun.", |
| 937 "Build is being executed.", |
| 938 "Build finished successfully.", |
| 939 "Build failed to complete successfully.", |
| 940 "Build failed due to an internal cause.", |
| 941 "Build took longer than was allowed.", |
| 942 "Build was canceled by a user." |
| 943 ], |
| 944 "type": "string" |
| 945 }, |
| 946 "timeout": { |
| 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.", |
| 948 "format": "google-duration", |
| 949 "type": "string" |
| 950 }, |
| 951 "secrets": { |
| 952 "description": "Secrets to decrypt using Cloud KMS.", |
| 953 "items": { |
| 954 "$ref": "Secret" |
| 955 }, |
| 956 "type": "array" |
| 957 }, |
| 958 "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`.", |
| 960 "type": "string" |
| 961 }, |
| 962 "results": { |
| 963 "$ref": "Results", |
| 964 "description": "Results of the build.\n@OutputOnly" |
| 965 }, |
928 "steps": { | 966 "steps": { |
929 "description": "Describes the operations to be performed on
the workspace.", | 967 "description": "Describes the operations to be performed on
the workspace.", |
930 "items": { | 968 "items": { |
931 "$ref": "BuildStep" | 969 "$ref": "BuildStep" |
932 }, | 970 }, |
933 "type": "array" | 971 "type": "array" |
934 }, | 972 }, |
935 "buildTriggerId": { | 973 "buildTriggerId": { |
936 "description": "The ID of the BuildTrigger that triggered th
is build, if it was\ntriggered automatically.\n@OutputOnly", | 974 "description": "The ID of the BuildTrigger that triggered th
is build, if it was\ntriggered automatically.\n@OutputOnly", |
937 "type": "string" | 975 "type": "string" |
938 }, | 976 }, |
939 "id": { | |
940 "description": "Unique identifier of the build.\n@OutputOnly
", | |
941 "type": "string" | |
942 }, | |
943 "tags": { | 977 "tags": { |
944 "description": "Tags for annotation of a Build. These are no
t docker tags.", | 978 "description": "Tags for annotation of a Build. These are no
t docker tags.", |
945 "items": { | 979 "items": { |
946 "type": "string" | 980 "type": "string" |
947 }, | 981 }, |
948 "type": "array" | 982 "type": "array" |
949 }, | 983 }, |
| 984 "id": { |
| 985 "description": "Unique identifier of the build.\n@OutputOnly
", |
| 986 "type": "string" |
| 987 }, |
950 "substitutions": { | 988 "substitutions": { |
951 "additionalProperties": { | 989 "additionalProperties": { |
952 "type": "string" | 990 "type": "string" |
953 }, | 991 }, |
954 "description": "Substitutions data for Build resource.", | 992 "description": "Substitutions data for Build resource.", |
955 "type": "object" | 993 "type": "object" |
956 }, | 994 }, |
957 "startTime": { | 995 "startTime": { |
958 "description": "Time at which execution of the build was sta
rted.\n@OutputOnly", | 996 "description": "Time at which execution of the build was sta
rted.\n@OutputOnly", |
959 "format": "google-datetime", | 997 "format": "google-datetime", |
(...skipping 12 matching lines...) Expand all Loading... |
972 "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.", | 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.", |
973 "items": { | 1011 "items": { |
974 "type": "string" | 1012 "type": "string" |
975 }, | 1013 }, |
976 "type": "array" | 1014 "type": "array" |
977 }, | 1015 }, |
978 "projectId": { | 1016 "projectId": { |
979 "description": "ID of the project.\n@OutputOnly.", | 1017 "description": "ID of the project.\n@OutputOnly.", |
980 "type": "string" | 1018 "type": "string" |
981 }, | 1019 }, |
982 "finishTime": { | |
983 "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", | |
984 "format": "google-datetime", | |
985 "type": "string" | |
986 }, | |
987 "logUrl": { | 1020 "logUrl": { |
988 "description": "URL to logs for this build in Google Cloud L
ogging.\n@OutputOnly", | 1021 "description": "URL to logs for this build in Google Cloud L
ogging.\n@OutputOnly", |
989 "type": "string" | 1022 "type": "string" |
990 }, | 1023 }, |
991 "source": { | 1024 "finishTime": { |
992 "$ref": "Source", | 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", |
993 "description": "Describes where to find the source files to
build." | 1026 "format": "google-datetime", |
994 }, | |
995 "options": { | |
996 "$ref": "BuildOptions", | |
997 "description": "Special options for this build." | |
998 }, | |
999 "statusDetail": { | |
1000 "description": "Customer-readable message about the current
status.\n@OutputOnly", | |
1001 "type": "string" | |
1002 }, | |
1003 "status": { | |
1004 "description": "Status of the build.\n@OutputOnly", | |
1005 "enum": [ | |
1006 "STATUS_UNKNOWN", | |
1007 "QUEUED", | |
1008 "WORKING", | |
1009 "SUCCESS", | |
1010 "FAILURE", | |
1011 "INTERNAL_ERROR", | |
1012 "TIMEOUT", | |
1013 "CANCELLED" | |
1014 ], | |
1015 "enumDescriptions": [ | |
1016 "Status of the build is unknown.", | |
1017 "Build is queued; work has not yet begun.", | |
1018 "Build is being executed.", | |
1019 "Build finished successfully.", | |
1020 "Build failed to complete successfully.", | |
1021 "Build failed due to an internal cause.", | |
1022 "Build took longer than was allowed.", | |
1023 "Build was canceled by a user." | |
1024 ], | |
1025 "type": "string" | |
1026 }, | |
1027 "timeout": { | |
1028 "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.", | |
1029 "format": "google-duration", | |
1030 "type": "string" | |
1031 }, | |
1032 "results": { | |
1033 "$ref": "Results", | |
1034 "description": "Results of the build.\n@OutputOnly" | |
1035 }, | |
1036 "logsBucket": { | |
1037 "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`.", | |
1038 "type": "string" | 1027 "type": "string" |
1039 } | 1028 } |
1040 }, | 1029 }, |
1041 "type": "object" | 1030 "type": "object" |
1042 }, | 1031 }, |
1043 "CancelBuildRequest": { | 1032 "CancelBuildRequest": { |
1044 "description": "Request to cancel an ongoing build.", | 1033 "description": "Request to cancel an ongoing build.", |
1045 "id": "CancelBuildRequest", | 1034 "id": "CancelBuildRequest", |
1046 "properties": {}, | 1035 "properties": {}, |
1047 "type": "object" | 1036 "type": "object" |
| 1037 }, |
| 1038 "ListBuildsResponse": { |
| 1039 "description": "Response including listed builds.", |
| 1040 "id": "ListBuildsResponse", |
| 1041 "properties": { |
| 1042 "builds": { |
| 1043 "description": "Builds will be sorted by create_time, descen
ding.", |
| 1044 "items": { |
| 1045 "$ref": "Build" |
| 1046 }, |
| 1047 "type": "array" |
| 1048 }, |
| 1049 "nextPageToken": { |
| 1050 "description": "Token to receive the next page of results.", |
| 1051 "type": "string" |
| 1052 } |
| 1053 }, |
| 1054 "type": "object" |
| 1055 }, |
| 1056 "Volume": { |
| 1057 "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", |
| 1059 "properties": { |
| 1060 "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.", |
| 1062 "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 } |
| 1068 }, |
| 1069 "type": "object" |
| 1070 }, |
| 1071 "ListOperationsResponse": { |
| 1072 "description": "The response message for Operations.ListOperations."
, |
| 1073 "id": "ListOperationsResponse", |
| 1074 "properties": { |
| 1075 "nextPageToken": { |
| 1076 "description": "The standard List next-page token.", |
| 1077 "type": "string" |
| 1078 }, |
| 1079 "operations": { |
| 1080 "description": "A list of operations that matches the specif
ied filter in the request.", |
| 1081 "items": { |
| 1082 "$ref": "Operation" |
| 1083 }, |
| 1084 "type": "array" |
| 1085 } |
| 1086 }, |
| 1087 "type": "object" |
| 1088 }, |
| 1089 "Source": { |
| 1090 "description": "Source describes the location of the source in a sup
ported storage\nservice.", |
| 1091 "id": "Source", |
| 1092 "properties": { |
| 1093 "repoSource": { |
| 1094 "$ref": "RepoSource", |
| 1095 "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 } |
| 1101 }, |
| 1102 "type": "object" |
1048 } | 1103 } |
1049 }, | 1104 }, |
1050 "servicePath": "", | 1105 "servicePath": "", |
1051 "title": "Google Cloud Container Builder API", | 1106 "title": "Google Cloud Container Builder API", |
1052 "version": "v1" | 1107 "version": "v1" |
1053 } | 1108 } |
OLD | NEW |