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

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

Issue 2039113004: Api-roll 37: 2016-06-06 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « discovery/googleapis/calendar__v3.json ('k') | discovery/googleapis/clouddebugger__v2.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 {
2 "auth": {
3 "oauth2": {
4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services"
7 }
8 }
9 }
10 },
11 "basePath": "",
12 "baseUrl": "https://cloudbuild.googleapis.com/",
13 "batchPath": "batch",
14 "canonicalName": "Cloud Build",
15 "description": "Builds container images in the cloud.",
16 "discoveryVersion": "v1",
17 "documentationLink": "https://cloud.google.com/container-builder/docs/",
18 "icons": {
19 "x16": "http://www.google.com/images/icons/product/search-16.gif",
20 "x32": "http://www.google.com/images/icons/product/search-32.gif"
21 },
22 "id": "cloudbuild:v1",
23 "kind": "discovery#restDescription",
24 "name": "cloudbuild",
25 "ownerDomain": "google.com",
26 "ownerName": "Google",
27 "parameters": {
28 "access_token": {
29 "description": "OAuth access token.",
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 "key": {
40 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
41 "location": "query",
42 "type": "string"
43 },
44 "quotaUser": {
45 "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.",
46 "location": "query",
47 "type": "string"
48 },
49 "pp": {
50 "default": "true",
51 "description": "Pretty-print response.",
52 "location": "query",
53 "type": "boolean"
54 },
55 "fields": {
56 "description": "Selector specifying which fields to include in a par tial response.",
57 "location": "query",
58 "type": "string"
59 },
60 "alt": {
61 "default": "json",
62 "description": "Data format for response.",
63 "enum": [
64 "json",
65 "media",
66 "proto"
67 ],
68 "enumDescriptions": [
69 "Responses with Content-Type of application/json",
70 "Media download with context-dependent Content-Type",
71 "Responses with Content-Type of application/x-protobuf"
72 ],
73 "location": "query",
74 "type": "string"
75 },
76 "$.xgafv": {
77 "description": "V1 error format.",
78 "enum": [
79 "1",
80 "2"
81 ],
82 "enumDescriptions": [
83 "v1 error format",
84 "v2 error format"
85 ],
86 "location": "query",
87 "type": "string"
88 },
89 "callback": {
90 "description": "JSONP",
91 "location": "query",
92 "type": "string"
93 },
94 "oauth_token": {
95 "description": "OAuth 2.0 token for the current user.",
96 "location": "query",
97 "type": "string"
98 },
99 "uploadType": {
100 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
101 "location": "query",
102 "type": "string"
103 },
104 "bearer_token": {
105 "description": "OAuth bearer token.",
106 "location": "query",
107 "type": "string"
108 },
109 "upload_protocol": {
110 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
111 "location": "query",
112 "type": "string"
113 }
114 },
115 "protocol": "rest",
116 "resources": {
117 "projects": {
118 "resources": {
119 "builds": {
120 "methods": {
121 "create": {
122 "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).",
123 "httpMethod": "POST",
124 "id": "cloudbuild.projects.builds.create",
125 "parameterOrder": [
126 "projectId"
127 ],
128 "parameters": {
129 "projectId": {
130 "description": "ID of the project.",
131 "location": "path",
132 "required": true,
133 "type": "string"
134 }
135 },
136 "path": "v1/projects/{projectId}/builds",
137 "request": {
138 "$ref": "Build"
139 },
140 "response": {
141 "$ref": "Operation"
142 },
143 "scopes": [
144 "https://www.googleapis.com/auth/cloud-platform"
145 ]
146 },
147 "get": {
148 "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.",
149 "httpMethod": "GET",
150 "id": "cloudbuild.projects.builds.get",
151 "parameterOrder": [
152 "projectId",
153 "id"
154 ],
155 "parameters": {
156 "projectId": {
157 "description": "ID of the project.",
158 "location": "path",
159 "required": true,
160 "type": "string"
161 },
162 "id": {
163 "description": "ID of the build.",
164 "location": "path",
165 "required": true,
166 "type": "string"
167 }
168 },
169 "path": "v1/projects/{projectId}/builds/{id}",
170 "response": {
171 "$ref": "Build"
172 },
173 "scopes": [
174 "https://www.googleapis.com/auth/cloud-platform"
175 ]
176 },
177 "list": {
178 "description": "Lists previously requested builds.\n \nPreviously requested builds may still be in-progress, or may have finished\nsu ccessfully or unsuccessfully.",
179 "httpMethod": "GET",
180 "id": "cloudbuild.projects.builds.list",
181 "parameterOrder": [
182 "projectId"
183 ],
184 "parameters": {
185 "pageSize": {
186 "description": "Number of results to return in the list.",
187 "format": "int32",
188 "location": "query",
189 "type": "integer"
190 },
191 "projectId": {
192 "description": "ID of the project.",
193 "location": "path",
194 "required": true,
195 "type": "string"
196 },
197 "pageToken": {
198 "description": "Token to provide to skip to a particular spot in the list.",
199 "location": "query",
200 "type": "string"
201 }
202 },
203 "path": "v1/projects/{projectId}/builds",
204 "response": {
205 "$ref": "ListBuildsResponse"
206 },
207 "scopes": [
208 "https://www.googleapis.com/auth/cloud-platform"
209 ]
210 },
211 "cancel": {
212 "description": "Cancels a requested build in progres s.",
213 "httpMethod": "POST",
214 "id": "cloudbuild.projects.builds.cancel",
215 "parameterOrder": [
216 "projectId",
217 "id"
218 ],
219 "parameters": {
220 "projectId": {
221 "description": "ID of the project.",
222 "location": "path",
223 "required": true,
224 "type": "string"
225 },
226 "id": {
227 "description": "ID of the build.",
228 "location": "path",
229 "required": true,
230 "type": "string"
231 }
232 },
233 "path": "v1/projects/{projectId}/builds/{id}:cancel" ,
234 "request": {
235 "$ref": "CancelBuildRequest"
236 },
237 "response": {
238 "$ref": "Build"
239 },
240 "scopes": [
241 "https://www.googleapis.com/auth/cloud-platform"
242 ]
243 }
244 }
245 }
246 }
247 },
248 "operations": {
249 "methods": {
250 "get": {
251 "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.",
252 "httpMethod": "GET",
253 "id": "cloudbuild.operations.get",
254 "parameterOrder": [
255 "name"
256 ],
257 "parameters": {
258 "name": {
259 "description": "The name of the operation resource." ,
260 "location": "path",
261 "pattern": "^operations/.*$",
262 "required": true,
263 "type": "string"
264 }
265 },
266 "path": "v1/{+name}",
267 "response": {
268 "$ref": "Operation"
269 },
270 "scopes": [
271 "https://www.googleapis.com/auth/cloud-platform"
272 ]
273 },
274 "list": {
275 "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 below allows API services to override t he binding\nto use different resource name schemes, such as `users/*/operations` .",
276 "httpMethod": "GET",
277 "id": "cloudbuild.operations.list",
278 "parameterOrder": [
279 "name"
280 ],
281 "parameters": {
282 "pageSize": {
283 "description": "The standard list page size.",
284 "format": "int32",
285 "location": "query",
286 "type": "integer"
287 },
288 "filter": {
289 "description": "The standard list filter.",
290 "location": "query",
291 "type": "string"
292 },
293 "name": {
294 "description": "The name of the operation collection .",
295 "location": "path",
296 "pattern": "^operations$",
297 "required": true,
298 "type": "string"
299 },
300 "pageToken": {
301 "description": "The standard list page token.",
302 "location": "query",
303 "type": "string"
304 }
305 },
306 "path": "v1/{+name}",
307 "response": {
308 "$ref": "ListOperationsResponse"
309 },
310 "scopes": [
311 "https://www.googleapis.com/auth/cloud-platform"
312 ]
313 }
314 }
315 }
316 },
317 "revision": "20160518",
318 "rootUrl": "https://cloudbuild.googleapis.com/",
319 "schemas": {
320 "Status": {
321 "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` which can be used for common error conditions.\n\n# Lan guage 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` mes sage is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some except ions\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\nenviron ments, either with or without APIs, to provide a\nconsistent developer experienc e 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 may\n have a `Status` message for error reporting purpose.\n\n- Batch operati ons. If a client uses batch request and batch response, the\n `Status` messag e should be used directly inside batch response, one for\n each error sub-res ponse.\n\n- Asynchronous operations. If an API call embeds asynchronous operatio n\n results in its response, the status of those operations should be\n re presented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any s tripping needed for security/privacy reasons.",
322 "id": "Status",
323 "properties": {
324 "code": {
325 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
326 "format": "int32",
327 "type": "integer"
328 },
329 "details": {
330 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.",
331 "items": {
332 "additionalProperties": {
333 "description": "Properties of the object. Contains f ield @ype with type URL.",
334 "type": "any"
335 },
336 "type": "object"
337 },
338 "type": "array"
339 },
340 "message": {
341 "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.",
342 "type": "string"
343 }
344 },
345 "type": "object"
346 },
347 "BuildOperationMetadata": {
348 "description": "Metadata for build operations.",
349 "id": "BuildOperationMetadata",
350 "properties": {
351 "build": {
352 "$ref": "Build",
353 "description": "The build that the operation is tracking."
354 }
355 },
356 "type": "object"
357 },
358 "Source": {
359 "description": "Source describes the location of the source in a sup ported storage\nservice.",
360 "id": "Source",
361 "properties": {
362 "storageSource": {
363 "$ref": "StorageSource",
364 "description": "If provided, get the source from this locati on in in Google Cloud\nStorage."
365 }
366 },
367 "type": "object"
368 },
369 "Operation": {
370 "description": "This resource represents a long-running operation th at is the result of a\nnetwork API call.",
371 "id": "Operation",
372 "properties": {
373 "error": {
374 "$ref": "Status",
375 "description": "The error result of the operation in case of failure."
376 },
377 "done": {
378 "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.",
379 "type": "boolean"
380 },
381 "metadata": {
382 "additionalProperties": {
383 "description": "Properties of the object. Contains field @ype with type URL.",
384 "type": "any"
385 },
386 "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. ",
387 "type": "object"
388 },
389 "response": {
390 "additionalProperties": {
391 "description": "Properties of the object. Contains field @ype with type URL.",
392 "type": "any"
393 },
394 "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`.",
395 "type": "object"
396 },
397 "name": {
398 "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` .",
399 "type": "string"
400 }
401 },
402 "type": "object"
403 },
404 "BuiltImage": {
405 "description": "BuiltImage describes an image built by the pipeline. ",
406 "id": "BuiltImage",
407 "properties": {
408 "digest": {
409 "description": "Docker Registry 2.0 digest.",
410 "type": "string"
411 },
412 "name": {
413 "description": "Name used to push the container image to Goo gle Container Registry, as\npresented to `docker push`.",
414 "type": "string"
415 }
416 },
417 "type": "object"
418 },
419 "StorageSource": {
420 "description": "StorageSource describes the location of the source i n an archive file in\nGoogle Cloud Storage.",
421 "id": "StorageSource",
422 "properties": {
423 "bucket": {
424 "description": "Google Cloud Storage bucket containing sourc e (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket -naming#requirements)).",
425 "type": "string"
426 },
427 "generation": {
428 "description": "Google Cloud Storage generation for the obje ct. If the generation is\nomitted, the latest generation will be used.",
429 "format": "int64",
430 "type": "string"
431 },
432 "object": {
433 "description": "Google Cloud Storage object containing sourc e.\n\nThis object must be a gzipped archive file (.tar.gz) containing source to\ nbuild.",
434 "type": "string"
435 }
436 },
437 "type": "object"
438 },
439 "Results": {
440 "description": "Results describes the artifacts created by the build pipeline.",
441 "id": "Results",
442 "properties": {
443 "images": {
444 "description": "Images that were built as a part of the buil d.",
445 "items": {
446 "$ref": "BuiltImage"
447 },
448 "type": "array"
449 }
450 },
451 "type": "object"
452 },
453 "Build": {
454 "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.",
455 "id": "Build",
456 "properties": {
457 "id": {
458 "description": "Unique identifier of the build.\n@OutputOnly ",
459 "type": "string"
460 },
461 "results": {
462 "$ref": "Results",
463 "description": "Results of the build.\n@OutputOnly"
464 },
465 "status": {
466 "description": "Status of the build.\n@OutputOnly",
467 "enum": [
468 "STATUS_UNKNOWN",
469 "QUEUED",
470 "WORKING",
471 "SUCCESS",
472 "FAILURE",
473 "INTERNAL_ERROR",
474 "TIMEOUT",
475 "CANCELLED"
476 ],
477 "enumDescriptions": [
478 "Status of the build is unknown.",
479 "Build is queued, work has not yet begun.",
480 "Build is being executed.",
481 "Build finished successfully.",
482 "Build failed to complete successfully.",
483 "Build failed due to an internal cause.",
484 "Build took longer than was allowed.",
485 "Build was canceled by a user."
486 ],
487 "type": "string"
488 },
489 "finishTime": {
490 "description": "Time at which execution of the build was fin ished.\n@OutputOnly",
491 "format": "google-datetime",
492 "type": "string"
493 },
494 "timeout": {
495 "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.",
496 "format": "google-duration",
497 "type": "string"
498 },
499 "steps": {
500 "description": "Describes the operations to be performed on the workspace.",
501 "items": {
502 "$ref": "BuildStep"
503 },
504 "type": "array"
505 },
506 "source": {
507 "$ref": "Source",
508 "description": "Describes where to find the source files to build."
509 },
510 "createTime": {
511 "description": "Time at which the build was created.\n@Outpu tOnly",
512 "format": "google-datetime",
513 "type": "string"
514 },
515 "statusDetail": {
516 "description": "Customer-readable message about the current status.\n@OutputOnly",
517 "type": "string"
518 },
519 "images": {
520 "description": "List of images expected to be built and push ed to Google Container\nRegistry. If an image is listed here and the image is no t produced by\none of the build steps, the build will fail. Any images present w hen\nthe build steps are complete will be pushed to Container Registry.",
521 "items": {
522 "type": "string"
523 },
524 "type": "array"
525 },
526 "startTime": {
527 "description": "Time at which execution of the build was sta rted.\n@OutputOnly",
528 "format": "google-datetime",
529 "type": "string"
530 },
531 "logsBucket": {
532 "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`.",
533 "type": "string"
534 },
535 "projectId": {
536 "description": "ID of the project.\n@OutputOnly.",
537 "type": "string"
538 }
539 },
540 "type": "object"
541 },
542 "CancelBuildRequest": {
543 "description": "Request to cancel an ongoing build.",
544 "id": "CancelBuildRequest",
545 "properties": {},
546 "type": "object"
547 },
548 "ListOperationsResponse": {
549 "description": "The response message for Operations.ListOperations." ,
550 "id": "ListOperationsResponse",
551 "properties": {
552 "nextPageToken": {
553 "description": "The standard List next-page token.",
554 "type": "string"
555 },
556 "operations": {
557 "description": "A list of operations that matches the specif ied filter in the request.",
558 "items": {
559 "$ref": "Operation"
560 },
561 "type": "array"
562 }
563 },
564 "type": "object"
565 },
566 "BuildStep": {
567 "description": "BuildStep describes a step to perform in the build p ipeline.",
568 "id": "BuildStep",
569 "properties": {
570 "args": {
571 "description": "Command-line arguments to use when running t his step's container.",
572 "items": {
573 "type": "string"
574 },
575 "type": "array"
576 },
577 "dir": {
578 "description": "Working directory (relative to project sourc e root) to use when running\nthis operation's container.",
579 "type": "string"
580 },
581 "name": {
582 "description": "Name of the container image to use for creat ing this stage in the\npipeline, as presented to `docker pull`.",
583 "type": "string"
584 },
585 "env": {
586 "description": "Additional environment variables to set for this step's container.",
587 "items": {
588 "type": "string"
589 },
590 "type": "array"
591 }
592 },
593 "type": "object"
594 },
595 "ListBuildsResponse": {
596 "description": "Response including listed builds.",
597 "id": "ListBuildsResponse",
598 "properties": {
599 "nextPageToken": {
600 "description": "Token to receive the next page of results.",
601 "type": "string"
602 },
603 "builds": {
604 "description": "Builds will be sorted by create_time, descen ding.",
605 "items": {
606 "$ref": "Build"
607 },
608 "type": "array"
609 }
610 },
611 "type": "object"
612 }
613 },
614 "servicePath": "",
615 "title": "Google Cloud Container Builder API",
616 "version": "v1"
617 }
OLDNEW
« no previous file with comments | « discovery/googleapis/calendar__v3.json ('k') | discovery/googleapis/clouddebugger__v2.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698