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 "bearer_token": { |
| 29 "description": "OAuth bearer token.", |
| 30 "location": "query", |
| 31 "type": "string" |
| 32 }, |
| 33 "oauth_token": { |
| 34 "description": "OAuth 2.0 token for the current user.", |
| 35 "location": "query", |
| 36 "type": "string" |
| 37 }, |
28 "upload_protocol": { | 38 "upload_protocol": { |
29 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 39 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
30 "location": "query", | 40 "location": "query", |
31 "type": "string" | 41 "type": "string" |
32 }, | 42 }, |
33 "prettyPrint": { | 43 "prettyPrint": { |
34 "default": "true", | 44 "default": "true", |
35 "description": "Returns response with indentations and line breaks."
, | 45 "description": "Returns response with indentations and line breaks."
, |
36 "location": "query", | 46 "location": "query", |
37 "type": "boolean" | 47 "type": "boolean" |
38 }, | 48 }, |
| 49 "uploadType": { |
| 50 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 51 "location": "query", |
| 52 "type": "string" |
| 53 }, |
39 "fields": { | 54 "fields": { |
40 "description": "Selector specifying which fields to include in a par
tial response.", | 55 "description": "Selector specifying which fields to include in a par
tial response.", |
41 "location": "query", | 56 "location": "query", |
42 "type": "string" | 57 "type": "string" |
43 }, | 58 }, |
44 "uploadType": { | |
45 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | |
46 "location": "query", | |
47 "type": "string" | |
48 }, | |
49 "$.xgafv": { | 59 "$.xgafv": { |
50 "description": "V1 error format.", | 60 "description": "V1 error format.", |
51 "enum": [ | 61 "enum": [ |
52 "1", | 62 "1", |
53 "2" | 63 "2" |
54 ], | 64 ], |
55 "enumDescriptions": [ | 65 "enumDescriptions": [ |
56 "v1 error format", | 66 "v1 error format", |
57 "v2 error format" | 67 "v2 error format" |
58 ], | 68 ], |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 "quotaUser": { | 103 "quotaUser": { |
94 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | 104 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
95 "location": "query", | 105 "location": "query", |
96 "type": "string" | 106 "type": "string" |
97 }, | 107 }, |
98 "pp": { | 108 "pp": { |
99 "default": "true", | 109 "default": "true", |
100 "description": "Pretty-print response.", | 110 "description": "Pretty-print response.", |
101 "location": "query", | 111 "location": "query", |
102 "type": "boolean" | 112 "type": "boolean" |
103 }, | |
104 "bearer_token": { | |
105 "description": "OAuth bearer token.", | |
106 "location": "query", | |
107 "type": "string" | |
108 }, | |
109 "oauth_token": { | |
110 "description": "OAuth 2.0 token for the current user.", | |
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 "pageToken": { |
| 179 "description": "The standard list page token.", |
| 180 "location": "query", |
| 181 "type": "string" |
| 182 }, |
| 183 "name": { |
| 184 "description": "The name of the operation's parent r
esource.", |
| 185 "location": "path", |
| 186 "pattern": "^operations$", |
| 187 "required": true, |
| 188 "type": "string" |
| 189 }, |
| 190 "pageSize": { |
| 191 "description": "The standard list page size.", |
| 192 "format": "int32", |
| 193 "location": "query", |
| 194 "type": "integer" |
| 195 }, |
| 196 "filter": { |
| 197 "description": "The standard list filter.", |
| 198 "location": "query", |
| 199 "type": "string" |
| 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": { |
| 214 "builds": { |
| 215 "methods": { |
| 216 "create": { |
| 217 "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).", |
| 218 "httpMethod": "POST", |
| 219 "id": "cloudbuild.projects.builds.create", |
| 220 "parameterOrder": [ |
| 221 "projectId" |
| 222 ], |
| 223 "parameters": { |
| 224 "projectId": { |
| 225 "description": "ID of the project.", |
| 226 "location": "path", |
| 227 "required": true, |
| 228 "type": "string" |
| 229 } |
| 230 }, |
| 231 "path": "v1/projects/{projectId}/builds", |
| 232 "request": { |
| 233 "$ref": "Build" |
| 234 }, |
| 235 "response": { |
| 236 "$ref": "Operation" |
| 237 }, |
| 238 "scopes": [ |
| 239 "https://www.googleapis.com/auth/cloud-platform" |
| 240 ] |
| 241 }, |
| 242 "cancel": { |
| 243 "description": "Cancels a requested build in progres
s.", |
| 244 "httpMethod": "POST", |
| 245 "id": "cloudbuild.projects.builds.cancel", |
| 246 "parameterOrder": [ |
| 247 "projectId", |
| 248 "id" |
| 249 ], |
| 250 "parameters": { |
| 251 "projectId": { |
| 252 "description": "ID of the project.", |
| 253 "location": "path", |
| 254 "required": true, |
| 255 "type": "string" |
| 256 }, |
| 257 "id": { |
| 258 "description": "ID of the build.", |
| 259 "location": "path", |
| 260 "required": true, |
| 261 "type": "string" |
| 262 } |
| 263 }, |
| 264 "path": "v1/projects/{projectId}/builds/{id}:cancel"
, |
| 265 "request": { |
| 266 "$ref": "CancelBuildRequest" |
| 267 }, |
| 268 "response": { |
| 269 "$ref": "Build" |
| 270 }, |
| 271 "scopes": [ |
| 272 "https://www.googleapis.com/auth/cloud-platform" |
| 273 ] |
| 274 }, |
| 275 "list": { |
| 276 "description": "Lists previously requested builds.\n
\nPreviously requested builds may still be in-progress, or may have finished\nsu
ccessfully or unsuccessfully.", |
| 277 "httpMethod": "GET", |
| 278 "id": "cloudbuild.projects.builds.list", |
| 279 "parameterOrder": [ |
| 280 "projectId" |
| 281 ], |
| 282 "parameters": { |
| 283 "pageToken": { |
| 284 "description": "Token to provide to skip to
a particular spot in the list.", |
| 285 "location": "query", |
| 286 "type": "string" |
| 287 }, |
| 288 "pageSize": { |
| 289 "description": "Number of results to return
in the list.", |
| 290 "format": "int32", |
| 291 "location": "query", |
| 292 "type": "integer" |
| 293 }, |
| 294 "projectId": { |
| 295 "description": "ID of the project.", |
| 296 "location": "path", |
| 297 "required": true, |
| 298 "type": "string" |
| 299 }, |
| 300 "filter": { |
| 301 "description": "The raw filter text to const
rain the results.", |
| 302 "location": "query", |
| 303 "type": "string" |
| 304 } |
| 305 }, |
| 306 "path": "v1/projects/{projectId}/builds", |
| 307 "response": { |
| 308 "$ref": "ListBuildsResponse" |
| 309 }, |
| 310 "scopes": [ |
| 311 "https://www.googleapis.com/auth/cloud-platform" |
| 312 ] |
| 313 }, |
| 314 "get": { |
| 315 "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.", |
| 316 "httpMethod": "GET", |
| 317 "id": "cloudbuild.projects.builds.get", |
| 318 "parameterOrder": [ |
| 319 "projectId", |
| 320 "id" |
| 321 ], |
| 322 "parameters": { |
| 323 "id": { |
| 324 "description": "ID of the build.", |
| 325 "location": "path", |
| 326 "required": true, |
| 327 "type": "string" |
| 328 }, |
| 329 "projectId": { |
| 330 "description": "ID of the project.", |
| 331 "location": "path", |
| 332 "required": true, |
| 333 "type": "string" |
| 334 } |
| 335 }, |
| 336 "path": "v1/projects/{projectId}/builds/{id}", |
| 337 "response": { |
| 338 "$ref": "Build" |
| 339 }, |
| 340 "scopes": [ |
| 341 "https://www.googleapis.com/auth/cloud-platform" |
| 342 ] |
| 343 } |
| 344 } |
| 345 }, |
119 "triggers": { | 346 "triggers": { |
120 "methods": { | 347 "methods": { |
121 "delete": { | |
122 "description": "Deletes an BuildTrigger by its proje
ct ID and trigger ID.\n\nThis API is experimental.", | |
123 "httpMethod": "DELETE", | |
124 "id": "cloudbuild.projects.triggers.delete", | |
125 "parameterOrder": [ | |
126 "projectId", | |
127 "triggerId" | |
128 ], | |
129 "parameters": { | |
130 "triggerId": { | |
131 "description": "ID of the BuildTrigger to de
lete.", | |
132 "location": "path", | |
133 "required": true, | |
134 "type": "string" | |
135 }, | |
136 "projectId": { | |
137 "description": "ID of the project that owns
the trigger.", | |
138 "location": "path", | |
139 "required": true, | |
140 "type": "string" | |
141 } | |
142 }, | |
143 "path": "v1/projects/{projectId}/triggers/{triggerId
}", | |
144 "response": { | |
145 "$ref": "Empty" | |
146 }, | |
147 "scopes": [ | |
148 "https://www.googleapis.com/auth/cloud-platform" | |
149 ] | |
150 }, | |
151 "patch": { | |
152 "description": "Updates an BuildTrigger by its proje
ct ID and trigger ID.\n\nThis API is experimental.", | |
153 "httpMethod": "PATCH", | |
154 "id": "cloudbuild.projects.triggers.patch", | |
155 "parameterOrder": [ | |
156 "projectId", | |
157 "triggerId" | |
158 ], | |
159 "parameters": { | |
160 "triggerId": { | |
161 "description": "ID of the BuildTrigger to up
date.", | |
162 "location": "path", | |
163 "required": true, | |
164 "type": "string" | |
165 }, | |
166 "projectId": { | |
167 "description": "ID of the project that owns
the trigger.", | |
168 "location": "path", | |
169 "required": true, | |
170 "type": "string" | |
171 } | |
172 }, | |
173 "path": "v1/projects/{projectId}/triggers/{triggerId
}", | |
174 "request": { | |
175 "$ref": "BuildTrigger" | |
176 }, | |
177 "response": { | |
178 "$ref": "BuildTrigger" | |
179 }, | |
180 "scopes": [ | |
181 "https://www.googleapis.com/auth/cloud-platform" | |
182 ] | |
183 }, | |
184 "list": { | |
185 "description": "Lists existing BuildTrigger.\n\nThis
API is experimental.", | |
186 "httpMethod": "GET", | |
187 "id": "cloudbuild.projects.triggers.list", | |
188 "parameterOrder": [ | |
189 "projectId" | |
190 ], | |
191 "parameters": { | |
192 "projectId": { | |
193 "description": "ID of the project for which
to list BuildTriggers.", | |
194 "location": "path", | |
195 "required": true, | |
196 "type": "string" | |
197 } | |
198 }, | |
199 "path": "v1/projects/{projectId}/triggers", | |
200 "response": { | |
201 "$ref": "ListBuildTriggersResponse" | |
202 }, | |
203 "scopes": [ | |
204 "https://www.googleapis.com/auth/cloud-platform" | |
205 ] | |
206 }, | |
207 "get": { | |
208 "description": "Gets information about a BuildTrigge
r.\n\nThis API is experimental.", | |
209 "httpMethod": "GET", | |
210 "id": "cloudbuild.projects.triggers.get", | |
211 "parameterOrder": [ | |
212 "projectId", | |
213 "triggerId" | |
214 ], | |
215 "parameters": { | |
216 "triggerId": { | |
217 "description": "ID of the BuildTrigger to ge
t.", | |
218 "location": "path", | |
219 "required": true, | |
220 "type": "string" | |
221 }, | |
222 "projectId": { | |
223 "description": "ID of the project that owns
the trigger.", | |
224 "location": "path", | |
225 "required": true, | |
226 "type": "string" | |
227 } | |
228 }, | |
229 "path": "v1/projects/{projectId}/triggers/{triggerId
}", | |
230 "response": { | |
231 "$ref": "BuildTrigger" | |
232 }, | |
233 "scopes": [ | |
234 "https://www.googleapis.com/auth/cloud-platform" | |
235 ] | |
236 }, | |
237 "create": { | 348 "create": { |
238 "description": "Creates a new BuildTrigger.\n\nThis
API is experimental.", | 349 "description": "Creates a new BuildTrigger.\n\nThis
API is experimental.", |
239 "httpMethod": "POST", | 350 "httpMethod": "POST", |
240 "id": "cloudbuild.projects.triggers.create", | 351 "id": "cloudbuild.projects.triggers.create", |
241 "parameterOrder": [ | 352 "parameterOrder": [ |
242 "projectId" | 353 "projectId" |
243 ], | 354 ], |
244 "parameters": { | 355 "parameters": { |
245 "projectId": { | 356 "projectId": { |
246 "description": "ID of the project for which
to configure automatic builds.", | 357 "description": "ID of the project for which
to configure automatic builds.", |
247 "location": "path", | 358 "location": "path", |
248 "required": true, | 359 "required": true, |
249 "type": "string" | 360 "type": "string" |
250 } | 361 } |
251 }, | 362 }, |
252 "path": "v1/projects/{projectId}/triggers", | 363 "path": "v1/projects/{projectId}/triggers", |
253 "request": { | 364 "request": { |
254 "$ref": "BuildTrigger" | 365 "$ref": "BuildTrigger" |
255 }, | 366 }, |
256 "response": { | 367 "response": { |
257 "$ref": "BuildTrigger" | 368 "$ref": "BuildTrigger" |
258 }, | 369 }, |
259 "scopes": [ | 370 "scopes": [ |
260 "https://www.googleapis.com/auth/cloud-platform" | 371 "https://www.googleapis.com/auth/cloud-platform" |
261 ] | 372 ] |
262 } | 373 }, |
263 } | 374 "delete": { |
264 }, | 375 "description": "Deletes an BuildTrigger by its proje
ct ID and trigger ID.\n\nThis API is experimental.", |
265 "builds": { | 376 "httpMethod": "DELETE", |
266 "methods": { | 377 "id": "cloudbuild.projects.triggers.delete", |
| 378 "parameterOrder": [ |
| 379 "projectId", |
| 380 "triggerId" |
| 381 ], |
| 382 "parameters": { |
| 383 "triggerId": { |
| 384 "description": "ID of the BuildTrigger to de
lete.", |
| 385 "location": "path", |
| 386 "required": true, |
| 387 "type": "string" |
| 388 }, |
| 389 "projectId": { |
| 390 "description": "ID of the project that owns
the trigger.", |
| 391 "location": "path", |
| 392 "required": true, |
| 393 "type": "string" |
| 394 } |
| 395 }, |
| 396 "path": "v1/projects/{projectId}/triggers/{triggerId
}", |
| 397 "response": { |
| 398 "$ref": "Empty" |
| 399 }, |
| 400 "scopes": [ |
| 401 "https://www.googleapis.com/auth/cloud-platform" |
| 402 ] |
| 403 }, |
| 404 "patch": { |
| 405 "description": "Updates an BuildTrigger by its proje
ct ID and trigger ID.\n\nThis API is experimental.", |
| 406 "httpMethod": "PATCH", |
| 407 "id": "cloudbuild.projects.triggers.patch", |
| 408 "parameterOrder": [ |
| 409 "projectId", |
| 410 "triggerId" |
| 411 ], |
| 412 "parameters": { |
| 413 "triggerId": { |
| 414 "description": "ID of the BuildTrigger to up
date.", |
| 415 "location": "path", |
| 416 "required": true, |
| 417 "type": "string" |
| 418 }, |
| 419 "projectId": { |
| 420 "description": "ID of the project that owns
the trigger.", |
| 421 "location": "path", |
| 422 "required": true, |
| 423 "type": "string" |
| 424 } |
| 425 }, |
| 426 "path": "v1/projects/{projectId}/triggers/{triggerId
}", |
| 427 "request": { |
| 428 "$ref": "BuildTrigger" |
| 429 }, |
| 430 "response": { |
| 431 "$ref": "BuildTrigger" |
| 432 }, |
| 433 "scopes": [ |
| 434 "https://www.googleapis.com/auth/cloud-platform" |
| 435 ] |
| 436 }, |
267 "list": { | 437 "list": { |
268 "description": "Lists previously requested builds.\n
\nPreviously requested builds may still be in-progress, or may have finished\nsu
ccessfully or unsuccessfully.", | 438 "description": "Lists existing BuildTrigger.\n\nThis
API is experimental.", |
269 "httpMethod": "GET", | 439 "httpMethod": "GET", |
270 "id": "cloudbuild.projects.builds.list", | 440 "id": "cloudbuild.projects.triggers.list", |
271 "parameterOrder": [ | 441 "parameterOrder": [ |
272 "projectId" | 442 "projectId" |
273 ], | 443 ], |
274 "parameters": { | 444 "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": { | 445 "projectId": { |
287 "description": "ID of the project.", | 446 "description": "ID of the project for which
to list BuildTriggers.", |
288 "location": "path", | 447 "location": "path", |
289 "required": true, | 448 "required": true, |
290 "type": "string" | 449 "type": "string" |
291 }, | |
292 "filter": { | |
293 "description": "The raw filter text to const
rain the results.", | |
294 "location": "query", | |
295 "type": "string" | |
296 } | 450 } |
297 }, | 451 }, |
298 "path": "v1/projects/{projectId}/builds", | 452 "path": "v1/projects/{projectId}/triggers", |
299 "response": { | 453 "response": { |
300 "$ref": "ListBuildsResponse" | 454 "$ref": "ListBuildTriggersResponse" |
301 }, | 455 }, |
302 "scopes": [ | 456 "scopes": [ |
303 "https://www.googleapis.com/auth/cloud-platform" | 457 "https://www.googleapis.com/auth/cloud-platform" |
304 ] | 458 ] |
305 }, | 459 }, |
306 "get": { | 460 "get": { |
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.", | 461 "description": "Gets information about a BuildTrigge
r.\n\nThis API is experimental.", |
308 "httpMethod": "GET", | 462 "httpMethod": "GET", |
309 "id": "cloudbuild.projects.builds.get", | 463 "id": "cloudbuild.projects.triggers.get", |
310 "parameterOrder": [ | 464 "parameterOrder": [ |
311 "projectId", | 465 "projectId", |
312 "id" | 466 "triggerId" |
313 ], | 467 ], |
314 "parameters": { | 468 "parameters": { |
315 "projectId": { | 469 "triggerId": { |
316 "description": "ID of the project.", | 470 "description": "ID of the BuildTrigger to ge
t.", |
317 "location": "path", | 471 "location": "path", |
318 "required": true, | 472 "required": true, |
319 "type": "string" | 473 "type": "string" |
320 }, | 474 }, |
321 "id": { | 475 "projectId": { |
322 "description": "ID of the build.", | 476 "description": "ID of the project that owns
the trigger.", |
323 "location": "path", | 477 "location": "path", |
324 "required": true, | 478 "required": true, |
325 "type": "string" | 479 "type": "string" |
326 } | 480 } |
327 }, | 481 }, |
328 "path": "v1/projects/{projectId}/builds/{id}", | 482 "path": "v1/projects/{projectId}/triggers/{triggerId
}", |
329 "response": { | 483 "response": { |
330 "$ref": "Build" | 484 "$ref": "BuildTrigger" |
331 }, | 485 }, |
332 "scopes": [ | 486 "scopes": [ |
333 "https://www.googleapis.com/auth/cloud-platform" | 487 "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" | |
393 ] | 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": "20170817", | 495 "revision": "20170907", |
496 "rootUrl": "https://cloudbuild.googleapis.com/", | 496 "rootUrl": "https://cloudbuild.googleapis.com/", |
497 "schemas": { | 497 "schemas": { |
498 "Results": { | |
499 "description": "Results describes the artifacts created by the build
pipeline.", | |
500 "id": "Results", | |
501 "properties": { | |
502 "buildStepImages": { | |
503 "description": "List of build step digests, in order corresp
onding to build step indices.", | |
504 "items": { | |
505 "type": "string" | |
506 }, | |
507 "type": "array" | |
508 }, | |
509 "images": { | |
510 "description": "Images that were built as a part of the buil
d.", | |
511 "items": { | |
512 "$ref": "BuiltImage" | |
513 }, | |
514 "type": "array" | |
515 } | |
516 }, | |
517 "type": "object" | |
518 }, | |
519 "BuildOperationMetadata": { | |
520 "description": "Metadata for build operations.", | |
521 "id": "BuildOperationMetadata", | |
522 "properties": { | |
523 "build": { | |
524 "$ref": "Build", | |
525 "description": "The build that the operation is tracking." | |
526 } | |
527 }, | |
528 "type": "object" | |
529 }, | |
530 "SourceProvenance": { | |
531 "description": "Provenance of the source. Ways to find the original
source, or verify that\nsome source was used for this build.", | |
532 "id": "SourceProvenance", | |
533 "properties": { | |
534 "resolvedRepoSource": { | |
535 "$ref": "RepoSource", | |
536 "description": "A copy of the build's source.repo_source, if
exists, with any\nrevisions resolved." | |
537 }, | |
538 "resolvedStorageSource": { | |
539 "$ref": "StorageSource", | |
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" | |
548 } | |
549 }, | |
550 "type": "object" | |
551 }, | |
552 "CancelOperationRequest": { | |
553 "description": "The request message for Operations.CancelOperation."
, | |
554 "id": "CancelOperationRequest", | |
555 "properties": {}, | |
556 "type": "object" | |
557 }, | |
558 "ListBuildTriggersResponse": { | |
559 "description": "Response containing existing BuildTriggers.", | |
560 "id": "ListBuildTriggersResponse", | |
561 "properties": { | |
562 "triggers": { | |
563 "description": "BuildTriggers for the project, sorted by cre
ate_time descending.", | |
564 "items": { | |
565 "$ref": "BuildTrigger" | |
566 }, | |
567 "type": "array" | |
568 } | |
569 }, | |
570 "type": "object" | |
571 }, | |
572 "Operation": { | |
573 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", | |
574 "id": "Operation", | |
575 "properties": { | |
576 "done": { | |
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.", | |
578 "type": "boolean" | |
579 }, | |
580 "response": { | |
581 "additionalProperties": { | |
582 "description": "Properties of the object. Contains field
@type with type URL.", | |
583 "type": "any" | |
584 }, | |
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`.", | |
586 "type": "object" | |
587 }, | |
588 "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`
.", | |
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" | |
603 } | |
604 }, | |
605 "type": "object" | |
606 }, | |
607 "BuiltImage": { | |
608 "description": "BuiltImage describes an image built by the pipeline.
", | |
609 "id": "BuiltImage", | |
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 }, | |
615 "digest": { | |
616 "description": "Docker Registry 2.0 digest.", | |
617 "type": "string" | |
618 } | |
619 }, | |
620 "type": "object" | |
621 }, | |
622 "BuildStep": { | |
623 "description": "BuildStep describes a step to perform in the build p
ipeline.", | |
624 "id": "BuildStep", | |
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 }, | |
630 "entrypoint": { | |
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.", | |
632 "type": "string" | |
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 }, | |
638 "secretEnv": { | |
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.", | |
640 "items": { | |
641 "type": "string" | |
642 }, | |
643 "type": "array" | |
644 }, | |
645 "volumes": { | |
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.", | |
647 "items": { | |
648 "$ref": "Volume" | |
649 }, | |
650 "type": "array" | |
651 }, | |
652 "dir": { | |
653 "description": "Working directory (relative to project sourc
e root) to use when running\nthis operation's container.", | |
654 "type": "string" | |
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 }, | |
663 "waitFor": { | |
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.", | |
665 "items": { | |
666 "type": "string" | |
667 }, | |
668 "type": "array" | |
669 }, | |
670 "args": { | |
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.", | |
672 "items": { | |
673 "type": "string" | |
674 }, | |
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" | |
695 }, | |
696 "value": { | |
697 "description": "The hash value.", | |
698 "format": "byte", | |
699 "type": "string" | |
700 } | |
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 }, | |
729 "type": "object" | |
730 }, | |
731 "FileHashes": { | |
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.", | |
733 "id": "FileHashes", | |
734 "properties": { | |
735 "fileHash": { | |
736 "description": "Collection of file hashes.", | |
737 "items": { | |
738 "$ref": "Hash" | |
739 }, | |
740 "type": "array" | |
741 } | |
742 }, | |
743 "type": "object" | |
744 }, | |
745 "Secret": { | |
746 "description": "Secret pairs a set of secret environment variables c
ontaining encrypted\nvalues with the Cloud KMS key to use to decrypt the value."
, | |
747 "id": "Secret", | |
748 "properties": { | |
749 "secretEnv": { | |
750 "additionalProperties": { | |
751 "format": "byte", | |
752 "type": "string" | |
753 }, | |
754 "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.", | |
755 "type": "object" | |
756 }, | |
757 "kmsKeyName": { | |
758 "description": "Cloud KMS key name to use to decrypt these e
nvs.", | |
759 "type": "string" | |
760 } | |
761 }, | |
762 "type": "object" | |
763 }, | |
764 "Status": { | 498 "Status": { |
765 "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.", | 499 "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.", |
766 "id": "Status", | 500 "id": "Status", |
767 "properties": { | 501 "properties": { |
| 502 "message": { |
| 503 "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.", |
| 504 "type": "string" |
| 505 }, |
768 "details": { | 506 "details": { |
769 "description": "A list of messages that carry the error deta
ils. There is a common set of\nmessage types for APIs to use.", | 507 "description": "A list of messages that carry the error deta
ils. There is a common set of\nmessage types for APIs to use.", |
770 "items": { | 508 "items": { |
771 "additionalProperties": { | 509 "additionalProperties": { |
772 "description": "Properties of the object. Contains f
ield @type with type URL.", | 510 "description": "Properties of the object. Contains f
ield @type with type URL.", |
773 "type": "any" | 511 "type": "any" |
774 }, | 512 }, |
775 "type": "object" | 513 "type": "object" |
776 }, | 514 }, |
777 "type": "array" | 515 "type": "array" |
778 }, | 516 }, |
779 "code": { | 517 "code": { |
780 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", | 518 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
781 "format": "int32", | 519 "format": "int32", |
782 "type": "integer" | 520 "type": "integer" |
783 }, | |
784 "message": { | |
785 "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.", | |
786 "type": "string" | |
787 } | 521 } |
788 }, | 522 }, |
789 "type": "object" | 523 "type": "object" |
790 }, | 524 }, |
791 "Empty": { | 525 "Empty": { |
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 `{}`.", | 526 "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 `{}`.", |
793 "id": "Empty", | 527 "id": "Empty", |
794 "properties": {}, | 528 "properties": {}, |
795 "type": "object" | 529 "type": "object" |
796 }, | 530 }, |
797 "BuildTrigger": { | 531 "BuildTrigger": { |
798 "description": "Configuration for an automated build in response to
source repository\nchanges.", | 532 "description": "Configuration for an automated build in response to
source repository\nchanges.", |
799 "id": "BuildTrigger", | 533 "id": "BuildTrigger", |
800 "properties": { | 534 "properties": { |
| 535 "disabled": { |
| 536 "description": "If true, the trigger will never result in a
build.", |
| 537 "type": "boolean" |
| 538 }, |
801 "createTime": { | 539 "createTime": { |
802 "description": "Time when the trigger was created.\n\n@Outpu
tOnly", | 540 "description": "Time when the trigger was created.\n\n@Outpu
tOnly", |
803 "format": "google-datetime", | 541 "format": "google-datetime", |
804 "type": "string" | 542 "type": "string" |
805 }, | 543 }, |
806 "disabled": { | 544 "filename": { |
807 "description": "If true, the trigger will never result in a
build.", | 545 "description": "Path, from the source root, to a file whose
contents is used for the\ntemplate.", |
808 "type": "boolean" | 546 "type": "string" |
809 }, | 547 }, |
810 "triggerTemplate": { | 548 "triggerTemplate": { |
811 "$ref": "RepoSource", | 549 "$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." | 550 "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 }, | 551 }, |
814 "filename": { | |
815 "description": "Path, from the source root, to a file whose
contents is used for the\ntemplate.", | |
816 "type": "string" | |
817 }, | |
818 "id": { | 552 "id": { |
819 "description": "Unique identifier of the trigger.\n\n@Output
Only", | 553 "description": "Unique identifier of the trigger.\n\n@Output
Only", |
820 "type": "string" | 554 "type": "string" |
821 }, | 555 }, |
822 "build": { | 556 "build": { |
823 "$ref": "Build", | 557 "$ref": "Build", |
824 "description": "Contents of the build template." | 558 "description": "Contents of the build template." |
825 }, | 559 }, |
826 "substitutions": { | 560 "substitutions": { |
827 "additionalProperties": { | 561 "additionalProperties": { |
828 "type": "string" | 562 "type": "string" |
829 }, | 563 }, |
830 "description": "Substitutions data for Build resource.", | 564 "description": "Substitutions data for Build resource.", |
831 "type": "object" | 565 "type": "object" |
832 }, | 566 }, |
833 "description": { | 567 "description": { |
834 "description": "Human-readable description of this trigger."
, | 568 "description": "Human-readable description of this trigger."
, |
835 "type": "string" | 569 "type": "string" |
836 } | 570 } |
837 }, | 571 }, |
838 "type": "object" | 572 "type": "object" |
839 }, | 573 }, |
840 "Build": { | 574 "Build": { |
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.", | 575 "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.", |
842 "id": "Build", | 576 "id": "Build", |
843 "properties": { | 577 "properties": { |
| 578 "sourceProvenance": { |
| 579 "$ref": "SourceProvenance", |
| 580 "description": "A permanent fixed identifier for source.\n@O
utputOnly" |
| 581 }, |
| 582 "createTime": { |
| 583 "description": "Time at which the request to create the buil
d was received.\n@OutputOnly", |
| 584 "format": "google-datetime", |
| 585 "type": "string" |
| 586 }, |
| 587 "images": { |
| 588 "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.", |
| 589 "items": { |
| 590 "type": "string" |
| 591 }, |
| 592 "type": "array" |
| 593 }, |
| 594 "projectId": { |
| 595 "description": "ID of the project.\n@OutputOnly.", |
| 596 "type": "string" |
| 597 }, |
| 598 "logUrl": { |
| 599 "description": "URL to logs for this build in Google Cloud L
ogging.\n@OutputOnly", |
| 600 "type": "string" |
| 601 }, |
| 602 "finishTime": { |
| 603 "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", |
| 604 "format": "google-datetime", |
| 605 "type": "string" |
| 606 }, |
| 607 "options": { |
| 608 "$ref": "BuildOptions", |
| 609 "description": "Special options for this build." |
| 610 }, |
844 "source": { | 611 "source": { |
845 "$ref": "Source", | 612 "$ref": "Source", |
846 "description": "Describes where to find the source files to
build." | 613 "description": "Describes where to find the source files to
build." |
847 }, | 614 }, |
848 "options": { | 615 "statusDetail": { |
849 "$ref": "BuildOptions", | 616 "description": "Customer-readable message about the current
status.\n@OutputOnly", |
850 "description": "Special options for this build." | |
851 }, | |
852 "timeout": { | |
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.", | |
854 "format": "google-duration", | |
855 "type": "string" | 617 "type": "string" |
856 }, | 618 }, |
857 "status": { | 619 "status": { |
858 "description": "Status of the build.\n@OutputOnly", | 620 "description": "Status of the build.\n@OutputOnly", |
859 "enum": [ | 621 "enum": [ |
860 "STATUS_UNKNOWN", | 622 "STATUS_UNKNOWN", |
861 "QUEUED", | 623 "QUEUED", |
862 "WORKING", | 624 "WORKING", |
863 "SUCCESS", | 625 "SUCCESS", |
864 "FAILURE", | 626 "FAILURE", |
865 "INTERNAL_ERROR", | 627 "INTERNAL_ERROR", |
866 "TIMEOUT", | 628 "TIMEOUT", |
867 "CANCELLED" | 629 "CANCELLED" |
868 ], | 630 ], |
869 "enumDescriptions": [ | 631 "enumDescriptions": [ |
870 "Status of the build is unknown.", | 632 "Status of the build is unknown.", |
871 "Build is queued; work has not yet begun.", | 633 "Build is queued; work has not yet begun.", |
872 "Build is being executed.", | 634 "Build is being executed.", |
873 "Build finished successfully.", | 635 "Build finished successfully.", |
874 "Build failed to complete successfully.", | 636 "Build failed to complete successfully.", |
875 "Build failed due to an internal cause.", | 637 "Build failed due to an internal cause.", |
876 "Build took longer than was allowed.", | 638 "Build took longer than was allowed.", |
877 "Build was canceled by a user." | 639 "Build was canceled by a user." |
878 ], | 640 ], |
879 "type": "string" | 641 "type": "string" |
880 }, | 642 }, |
881 "statusDetail": { | 643 "timeout": { |
882 "description": "Customer-readable message about the current
status.\n@OutputOnly", | 644 "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.", |
| 645 "format": "google-duration", |
883 "type": "string" | 646 "type": "string" |
884 }, | 647 }, |
885 "secrets": { | 648 "secrets": { |
886 "description": "Secrets to decrypt using Cloud KMS.", | 649 "description": "Secrets to decrypt using Cloud KMS.", |
887 "items": { | 650 "items": { |
888 "$ref": "Secret" | 651 "$ref": "Secret" |
889 }, | 652 }, |
890 "type": "array" | 653 "type": "array" |
891 }, | 654 }, |
| 655 "logsBucket": { |
| 656 "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`.", |
| 657 "type": "string" |
| 658 }, |
892 "results": { | 659 "results": { |
893 "$ref": "Results", | 660 "$ref": "Results", |
894 "description": "Results of the build.\n@OutputOnly" | 661 "description": "Results of the build.\n@OutputOnly" |
895 }, | 662 }, |
896 "logsBucket": { | |
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`.", | |
898 "type": "string" | |
899 }, | |
900 "steps": { | 663 "steps": { |
901 "description": "Describes the operations to be performed on
the workspace.", | 664 "description": "Describes the operations to be performed on
the workspace.", |
902 "items": { | 665 "items": { |
903 "$ref": "BuildStep" | 666 "$ref": "BuildStep" |
904 }, | 667 }, |
905 "type": "array" | 668 "type": "array" |
906 }, | 669 }, |
907 "buildTriggerId": { | 670 "buildTriggerId": { |
908 "description": "The ID of the BuildTrigger that triggered th
is build, if it was\ntriggered automatically.\n@OutputOnly", | 671 "description": "The ID of the BuildTrigger that triggered th
is build, if it was\ntriggered automatically.\n@OutputOnly", |
909 "type": "string" | 672 "type": "string" |
910 }, | 673 }, |
| 674 "id": { |
| 675 "description": "Unique identifier of the build.\n@OutputOnly
", |
| 676 "type": "string" |
| 677 }, |
911 "tags": { | 678 "tags": { |
912 "description": "Tags for annotation of a Build. These are no
t docker tags.", | 679 "description": "Tags for annotation of a Build. These are no
t docker tags.", |
913 "items": { | 680 "items": { |
914 "type": "string" | 681 "type": "string" |
915 }, | 682 }, |
916 "type": "array" | 683 "type": "array" |
917 }, | 684 }, |
918 "id": { | |
919 "description": "Unique identifier of the build.\n@OutputOnly
", | |
920 "type": "string" | |
921 }, | |
922 "substitutions": { | 685 "substitutions": { |
923 "additionalProperties": { | 686 "additionalProperties": { |
924 "type": "string" | 687 "type": "string" |
925 }, | 688 }, |
926 "description": "Substitutions data for Build resource.", | 689 "description": "Substitutions data for Build resource.", |
927 "type": "object" | 690 "type": "object" |
928 }, | 691 }, |
929 "startTime": { | 692 "startTime": { |
930 "description": "Time at which execution of the build was sta
rted.\n@OutputOnly", | 693 "description": "Time at which execution of the build was sta
rted.\n@OutputOnly", |
931 "format": "google-datetime", | 694 "format": "google-datetime", |
932 "type": "string" | 695 "type": "string" |
933 }, | |
934 "sourceProvenance": { | |
935 "$ref": "SourceProvenance", | |
936 "description": "A permanent fixed identifier for source.\n@O
utputOnly" | |
937 }, | |
938 "createTime": { | |
939 "description": "Time at which the request to create the buil
d was received.\n@OutputOnly", | |
940 "format": "google-datetime", | |
941 "type": "string" | |
942 }, | |
943 "images": { | |
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.", | |
945 "items": { | |
946 "type": "string" | |
947 }, | |
948 "type": "array" | |
949 }, | |
950 "projectId": { | |
951 "description": "ID of the project.\n@OutputOnly.", | |
952 "type": "string" | |
953 }, | |
954 "finishTime": { | |
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", | |
956 "format": "google-datetime", | |
957 "type": "string" | |
958 }, | |
959 "logUrl": { | |
960 "description": "URL to logs for this build in Google Cloud L
ogging.\n@OutputOnly", | |
961 "type": "string" | |
962 } | 696 } |
963 }, | 697 }, |
964 "type": "object" | 698 "type": "object" |
965 }, | 699 }, |
966 "CancelBuildRequest": { | 700 "CancelBuildRequest": { |
967 "description": "Request to cancel an ongoing build.", | 701 "description": "Request to cancel an ongoing build.", |
968 "id": "CancelBuildRequest", | 702 "id": "CancelBuildRequest", |
969 "properties": {}, | 703 "properties": {}, |
970 "type": "object" | 704 "type": "object" |
971 }, | 705 }, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1078 }, | 812 }, |
1079 "type": "array" | 813 "type": "array" |
1080 } | 814 } |
1081 }, | 815 }, |
1082 "type": "object" | 816 "type": "object" |
1083 }, | 817 }, |
1084 "StorageSource": { | 818 "StorageSource": { |
1085 "description": "StorageSource describes the location of the source i
n an archive file in\nGoogle Cloud Storage.", | 819 "description": "StorageSource describes the location of the source i
n an archive file in\nGoogle Cloud Storage.", |
1086 "id": "StorageSource", | 820 "id": "StorageSource", |
1087 "properties": { | 821 "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": { | 822 "generation": { |
1097 "description": "Google Cloud Storage generation for the obje
ct. If the generation is\nomitted, the latest generation will be used.", | 823 "description": "Google Cloud Storage generation for the obje
ct. If the generation is\nomitted, the latest generation will be used.", |
1098 "format": "int64", | 824 "format": "int64", |
1099 "type": "string" | 825 "type": "string" |
1100 } | 826 }, |
1101 }, | 827 "bucket": { |
| 828 "description": "Google Cloud Storage bucket containing sourc
e (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket
-naming#requirements)).", |
| 829 "type": "string" |
| 830 }, |
| 831 "object": { |
| 832 "description": "Google Cloud Storage object containing sourc
e.\n\nThis object must be a gzipped archive file (.tar.gz) containing source to\
nbuild.", |
| 833 "type": "string" |
| 834 } |
| 835 }, |
| 836 "type": "object" |
| 837 }, |
| 838 "Results": { |
| 839 "description": "Results describes the artifacts created by the build
pipeline.", |
| 840 "id": "Results", |
| 841 "properties": { |
| 842 "buildStepImages": { |
| 843 "description": "List of build step digests, in order corresp
onding to build step indices.", |
| 844 "items": { |
| 845 "type": "string" |
| 846 }, |
| 847 "type": "array" |
| 848 }, |
| 849 "images": { |
| 850 "description": "Images that were built as a part of the buil
d.", |
| 851 "items": { |
| 852 "$ref": "BuiltImage" |
| 853 }, |
| 854 "type": "array" |
| 855 } |
| 856 }, |
| 857 "type": "object" |
| 858 }, |
| 859 "BuildOperationMetadata": { |
| 860 "description": "Metadata for build operations.", |
| 861 "id": "BuildOperationMetadata", |
| 862 "properties": { |
| 863 "build": { |
| 864 "$ref": "Build", |
| 865 "description": "The build that the operation is tracking." |
| 866 } |
| 867 }, |
| 868 "type": "object" |
| 869 }, |
| 870 "SourceProvenance": { |
| 871 "description": "Provenance of the source. Ways to find the original
source, or verify that\nsome source was used for this build.", |
| 872 "id": "SourceProvenance", |
| 873 "properties": { |
| 874 "fileHashes": { |
| 875 "additionalProperties": { |
| 876 "$ref": "FileHashes" |
| 877 }, |
| 878 "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", |
| 879 "type": "object" |
| 880 }, |
| 881 "resolvedRepoSource": { |
| 882 "$ref": "RepoSource", |
| 883 "description": "A copy of the build's source.repo_source, if
exists, with any\nrevisions resolved." |
| 884 }, |
| 885 "resolvedStorageSource": { |
| 886 "$ref": "StorageSource", |
| 887 "description": "A copy of the build's source.storage_source,
if exists, with any\ngenerations resolved." |
| 888 } |
| 889 }, |
| 890 "type": "object" |
| 891 }, |
| 892 "CancelOperationRequest": { |
| 893 "description": "The request message for Operations.CancelOperation."
, |
| 894 "id": "CancelOperationRequest", |
| 895 "properties": {}, |
| 896 "type": "object" |
| 897 }, |
| 898 "ListBuildTriggersResponse": { |
| 899 "description": "Response containing existing BuildTriggers.", |
| 900 "id": "ListBuildTriggersResponse", |
| 901 "properties": { |
| 902 "triggers": { |
| 903 "description": "BuildTriggers for the project, sorted by cre
ate_time descending.", |
| 904 "items": { |
| 905 "$ref": "BuildTrigger" |
| 906 }, |
| 907 "type": "array" |
| 908 } |
| 909 }, |
| 910 "type": "object" |
| 911 }, |
| 912 "Operation": { |
| 913 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", |
| 914 "id": "Operation", |
| 915 "properties": { |
| 916 "done": { |
| 917 "description": "If the value is `false`, it means the operat
ion is still in progress.\nIf `true`, the operation is completed, and either `er
ror` or `response` is\navailable.", |
| 918 "type": "boolean" |
| 919 }, |
| 920 "response": { |
| 921 "additionalProperties": { |
| 922 "description": "Properties of the object. Contains field
@type with type URL.", |
| 923 "type": "any" |
| 924 }, |
| 925 "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`.", |
| 926 "type": "object" |
| 927 }, |
| 928 "name": { |
| 929 "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`
.", |
| 930 "type": "string" |
| 931 }, |
| 932 "error": { |
| 933 "$ref": "Status", |
| 934 "description": "The error result of the operation in case of
failure or cancellation." |
| 935 }, |
| 936 "metadata": { |
| 937 "additionalProperties": { |
| 938 "description": "Properties of the object. Contains field
@type with type URL.", |
| 939 "type": "any" |
| 940 }, |
| 941 "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.
", |
| 942 "type": "object" |
| 943 } |
| 944 }, |
| 945 "type": "object" |
| 946 }, |
| 947 "BuiltImage": { |
| 948 "description": "BuiltImage describes an image built by the pipeline.
", |
| 949 "id": "BuiltImage", |
| 950 "properties": { |
| 951 "name": { |
| 952 "description": "Name used to push the container image to Goo
gle Container Registry, as\npresented to `docker push`.", |
| 953 "type": "string" |
| 954 }, |
| 955 "digest": { |
| 956 "description": "Docker Registry 2.0 digest.", |
| 957 "type": "string" |
| 958 } |
| 959 }, |
| 960 "type": "object" |
| 961 }, |
| 962 "Hash": { |
| 963 "description": "Container message for hash values.", |
| 964 "id": "Hash", |
| 965 "properties": { |
| 966 "value": { |
| 967 "description": "The hash value.", |
| 968 "format": "byte", |
| 969 "type": "string" |
| 970 }, |
| 971 "type": { |
| 972 "description": "The type of hash that was performed.", |
| 973 "enum": [ |
| 974 "NONE", |
| 975 "SHA256" |
| 976 ], |
| 977 "enumDescriptions": [ |
| 978 "No hash requested.", |
| 979 "Use a sha256 hash." |
| 980 ], |
| 981 "type": "string" |
| 982 } |
| 983 }, |
| 984 "type": "object" |
| 985 }, |
| 986 "RepoSource": { |
| 987 "description": "RepoSource describes the location of the source in a
Google Cloud Source\nRepository.", |
| 988 "id": "RepoSource", |
| 989 "properties": { |
| 990 "commitSha": { |
| 991 "description": "Explicit commit SHA to build.", |
| 992 "type": "string" |
| 993 }, |
| 994 "tagName": { |
| 995 "description": "Name of the tag to build.", |
| 996 "type": "string" |
| 997 }, |
| 998 "branchName": { |
| 999 "description": "Name of the branch to build.", |
| 1000 "type": "string" |
| 1001 }, |
| 1002 "repoName": { |
| 1003 "description": "Name of the repo. If omitted, the name \"def
ault\" is assumed.", |
| 1004 "type": "string" |
| 1005 }, |
| 1006 "projectId": { |
| 1007 "description": "ID of the project that owns the repo. If omi
tted, the project ID requesting\nthe build is assumed.", |
| 1008 "type": "string" |
| 1009 } |
| 1010 }, |
| 1011 "type": "object" |
| 1012 }, |
| 1013 "BuildStep": { |
| 1014 "description": "BuildStep describes a step to perform in the build p
ipeline.", |
| 1015 "id": "BuildStep", |
| 1016 "properties": { |
| 1017 "waitFor": { |
| 1018 "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.", |
| 1019 "items": { |
| 1020 "type": "string" |
| 1021 }, |
| 1022 "type": "array" |
| 1023 }, |
| 1024 "env": { |
| 1025 "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\".", |
| 1026 "items": { |
| 1027 "type": "string" |
| 1028 }, |
| 1029 "type": "array" |
| 1030 }, |
| 1031 "args": { |
| 1032 "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.", |
| 1033 "items": { |
| 1034 "type": "string" |
| 1035 }, |
| 1036 "type": "array" |
| 1037 }, |
| 1038 "name": { |
| 1039 "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.", |
| 1040 "type": "string" |
| 1041 }, |
| 1042 "entrypoint": { |
| 1043 "description": "Optional entrypoint to be used instead of th
e build step image's default\nIf unset, the image's default will be used.", |
| 1044 "type": "string" |
| 1045 }, |
| 1046 "secretEnv": { |
| 1047 "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.", |
| 1048 "items": { |
| 1049 "type": "string" |
| 1050 }, |
| 1051 "type": "array" |
| 1052 }, |
| 1053 "id": { |
| 1054 "description": "Optional unique identifier for this build st
ep, used in wait_for to\nreference this build step as a dependency.", |
| 1055 "type": "string" |
| 1056 }, |
| 1057 "volumes": { |
| 1058 "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.", |
| 1059 "items": { |
| 1060 "$ref": "Volume" |
| 1061 }, |
| 1062 "type": "array" |
| 1063 }, |
| 1064 "dir": { |
| 1065 "description": "Working directory (relative to project sourc
e root) to use when running\nthis operation's container.", |
| 1066 "type": "string" |
| 1067 } |
| 1068 }, |
| 1069 "type": "object" |
| 1070 }, |
| 1071 "FileHashes": { |
| 1072 "description": "Container message for hashes of byte content of file
s, used in\nSourceProvenance messages to verify integrity of source input to the
build.", |
| 1073 "id": "FileHashes", |
| 1074 "properties": { |
| 1075 "fileHash": { |
| 1076 "description": "Collection of file hashes.", |
| 1077 "items": { |
| 1078 "$ref": "Hash" |
| 1079 }, |
| 1080 "type": "array" |
| 1081 } |
| 1082 }, |
| 1083 "type": "object" |
| 1084 }, |
| 1085 "Secret": { |
| 1086 "description": "Secret pairs a set of secret environment variables c
ontaining encrypted\nvalues with the Cloud KMS key to use to decrypt the value."
, |
| 1087 "id": "Secret", |
| 1088 "properties": { |
| 1089 "secretEnv": { |
| 1090 "additionalProperties": { |
| 1091 "format": "byte", |
| 1092 "type": "string" |
| 1093 }, |
| 1094 "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.", |
| 1095 "type": "object" |
| 1096 }, |
| 1097 "kmsKeyName": { |
| 1098 "description": "Cloud KMS key name to use to decrypt these e
nvs.", |
| 1099 "type": "string" |
| 1100 } |
| 1101 }, |
1102 "type": "object" | 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 |