| OLD | NEW |
| (Empty) | |
| 1 { |
| 2 "kind": "discovery#restDescription", |
| 3 "etag": "\"zRMgE0l9nVDW4S28VYYcYQF9UW4/nYVYcsGV4Si4G0GQzZaeWs5Y_PI\"", |
| 4 "discoveryVersion": "v1", |
| 5 "id": "buildbucket:v1", |
| 6 "name": "buildbucket", |
| 7 "version": "v1", |
| 8 "title": "Build Bucket Service", |
| 9 "description": "API for scheduling builds.", |
| 10 "icons": { |
| 11 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 12 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 13 }, |
| 14 "protocol": "rest", |
| 15 "baseUrl": "https://cr-buildbucket.appspot.com/_ah/api/buildbucket/v1/", |
| 16 "basePath": "/_ah/api/buildbucket/v1/", |
| 17 "rootUrl": "https://cr-buildbucket.appspot.com/_ah/api/", |
| 18 "servicePath": "buildbucket/v1/", |
| 19 "batchPath": "batch", |
| 20 "parameters": { |
| 21 "alt": { |
| 22 "type": "string", |
| 23 "description": "Data format for the response.", |
| 24 "default": "json", |
| 25 "enum": [ |
| 26 "json" |
| 27 ], |
| 28 "enumDescriptions": [ |
| 29 "Responses with Content-Type of application/json" |
| 30 ], |
| 31 "location": "query" |
| 32 }, |
| 33 "fields": { |
| 34 "type": "string", |
| 35 "description": "Selector specifying which fields to include in a partial resp
onse.", |
| 36 "location": "query" |
| 37 }, |
| 38 "key": { |
| 39 "type": "string", |
| 40 "description": "API key. Your API key identifies your project and provides yo
u with API access, quota, and reports. Required unless you provide an OAuth 2.0
token.", |
| 41 "location": "query" |
| 42 }, |
| 43 "oauth_token": { |
| 44 "type": "string", |
| 45 "description": "OAuth 2.0 token for the current user.", |
| 46 "location": "query" |
| 47 }, |
| 48 "prettyPrint": { |
| 49 "type": "boolean", |
| 50 "description": "Returns response with indentations and line breaks.", |
| 51 "default": "true", |
| 52 "location": "query" |
| 53 }, |
| 54 "quotaUser": { |
| 55 "type": "string", |
| 56 "description": "Available to use for quota purposes for server-side applicati
ons. Can be any arbitrary string assigned to a user, but should not exceed 40 ch
aracters. Overrides userIp if both are provided.", |
| 57 "location": "query" |
| 58 }, |
| 59 "userIp": { |
| 60 "type": "string", |
| 61 "description": "IP address of the site where the request originates. Use this
if you want to enforce per-user limits.", |
| 62 "location": "query" |
| 63 } |
| 64 }, |
| 65 "auth": { |
| 66 "oauth2": { |
| 67 "scopes": { |
| 68 "https://www.googleapis.com/auth/userinfo.email": { |
| 69 "description": "View your email address" |
| 70 } |
| 71 } |
| 72 } |
| 73 }, |
| 74 "schemas": { |
| 75 "ApiBucketMessage": { |
| 76 "id": "ApiBucketMessage", |
| 77 "type": "object", |
| 78 "properties": { |
| 79 "config_file_content": { |
| 80 "type": "string" |
| 81 }, |
| 82 "config_file_rev": { |
| 83 "type": "string" |
| 84 }, |
| 85 "config_file_url": { |
| 86 "type": "string" |
| 87 }, |
| 88 "name": { |
| 89 "type": "string" |
| 90 }, |
| 91 "project_id": { |
| 92 "type": "string" |
| 93 } |
| 94 } |
| 95 }, |
| 96 "ApiBuildMessage": { |
| 97 "id": "ApiBuildMessage", |
| 98 "type": "object", |
| 99 "description": "Describes model.Build, see its docstring.", |
| 100 "properties": { |
| 101 "bucket": { |
| 102 "type": "string" |
| 103 }, |
| 104 "cancelation_reason": { |
| 105 "type": "string", |
| 106 "enum": [ |
| 107 "CANCELED_EXPLICITLY", |
| 108 "TIMEOUT" |
| 109 ], |
| 110 "enumDescriptions": [ |
| 111 "", |
| 112 "" |
| 113 ] |
| 114 }, |
| 115 "completed_ts": { |
| 116 "type": "string", |
| 117 "format": "int64" |
| 118 }, |
| 119 "created_by": { |
| 120 "type": "string" |
| 121 }, |
| 122 "created_ts": { |
| 123 "type": "string", |
| 124 "format": "int64" |
| 125 }, |
| 126 "failure_reason": { |
| 127 "type": "string", |
| 128 "enum": [ |
| 129 "BUILDBUCKET_FAILURE", |
| 130 "BUILD_FAILURE", |
| 131 "INFRA_FAILURE", |
| 132 "INVALID_BUILD_DEFINITION" |
| 133 ], |
| 134 "enumDescriptions": [ |
| 135 "", |
| 136 "", |
| 137 "", |
| 138 "" |
| 139 ] |
| 140 }, |
| 141 "id": { |
| 142 "type": "string", |
| 143 "format": "int64" |
| 144 }, |
| 145 "lease_expiration_ts": { |
| 146 "type": "string", |
| 147 "format": "int64" |
| 148 }, |
| 149 "lease_key": { |
| 150 "type": "string", |
| 151 "format": "int64" |
| 152 }, |
| 153 "parameters_json": { |
| 154 "type": "string" |
| 155 }, |
| 156 "result": { |
| 157 "type": "string", |
| 158 "enum": [ |
| 159 "CANCELED", |
| 160 "FAILURE", |
| 161 "SUCCESS" |
| 162 ], |
| 163 "enumDescriptions": [ |
| 164 "", |
| 165 "", |
| 166 "" |
| 167 ] |
| 168 }, |
| 169 "result_details_json": { |
| 170 "type": "string" |
| 171 }, |
| 172 "retry_of": { |
| 173 "type": "string", |
| 174 "format": "int64" |
| 175 }, |
| 176 "status": { |
| 177 "type": "string", |
| 178 "enum": [ |
| 179 "COMPLETED", |
| 180 "SCHEDULED", |
| 181 "STARTED" |
| 182 ], |
| 183 "enumDescriptions": [ |
| 184 "", |
| 185 "", |
| 186 "" |
| 187 ] |
| 188 }, |
| 189 "status_changed_ts": { |
| 190 "type": "string", |
| 191 "format": "int64" |
| 192 }, |
| 193 "tags": { |
| 194 "type": "array", |
| 195 "items": { |
| 196 "type": "string" |
| 197 } |
| 198 }, |
| 199 "updated_ts": { |
| 200 "type": "string", |
| 201 "format": "int64" |
| 202 }, |
| 203 "url": { |
| 204 "type": "string" |
| 205 }, |
| 206 "utcnow_ts": { |
| 207 "type": "string", |
| 208 "format": "int64" |
| 209 } |
| 210 } |
| 211 }, |
| 212 "ApiBuildResponseMessage": { |
| 213 "id": "ApiBuildResponseMessage", |
| 214 "type": "object", |
| 215 "properties": { |
| 216 "build": { |
| 217 "$ref": "ApiBuildMessage", |
| 218 "description": "Describes model.Build, see its docstring." |
| 219 }, |
| 220 "error": { |
| 221 "$ref": "ApiErrorMessage" |
| 222 } |
| 223 } |
| 224 }, |
| 225 "ApiCancelBatchRequestMessage": { |
| 226 "id": "ApiCancelBatchRequestMessage", |
| 227 "type": "object", |
| 228 "properties": { |
| 229 "build_ids": { |
| 230 "type": "array", |
| 231 "items": { |
| 232 "type": "string", |
| 233 "format": "int64" |
| 234 } |
| 235 } |
| 236 } |
| 237 }, |
| 238 "ApiCancelBatchResponseMessage": { |
| 239 "id": "ApiCancelBatchResponseMessage", |
| 240 "type": "object", |
| 241 "properties": { |
| 242 "results": { |
| 243 "type": "array", |
| 244 "items": { |
| 245 "$ref": "ApiCancelBatchResponseMessageOneResult" |
| 246 } |
| 247 } |
| 248 } |
| 249 }, |
| 250 "ApiCancelBatchResponseMessageOneResult": { |
| 251 "id": "ApiCancelBatchResponseMessageOneResult", |
| 252 "type": "object", |
| 253 "properties": { |
| 254 "build": { |
| 255 "$ref": "ApiBuildMessage", |
| 256 "description": "Describes model.Build, see its docstring." |
| 257 }, |
| 258 "build_id": { |
| 259 "type": "string", |
| 260 "format": "int64" |
| 261 }, |
| 262 "error": { |
| 263 "$ref": "ApiErrorMessage" |
| 264 } |
| 265 } |
| 266 }, |
| 267 "ApiDeleteManyBuildsResponse": { |
| 268 "id": "ApiDeleteManyBuildsResponse", |
| 269 "type": "object", |
| 270 "properties": { |
| 271 "error": { |
| 272 "$ref": "ApiErrorMessage" |
| 273 } |
| 274 } |
| 275 }, |
| 276 "ApiErrorMessage": { |
| 277 "id": "ApiErrorMessage", |
| 278 "type": "object", |
| 279 "properties": { |
| 280 "message": { |
| 281 "type": "string" |
| 282 }, |
| 283 "reason": { |
| 284 "type": "string", |
| 285 "enum": [ |
| 286 "BUILD_IS_COMPLETED", |
| 287 "BUILD_NOT_FOUND", |
| 288 "CANNOT_LEASE_BUILD", |
| 289 "INVALID_BUILD_STATE", |
| 290 "INVALID_INPUT", |
| 291 "LEASE_EXPIRED" |
| 292 ], |
| 293 "enumDescriptions": [ |
| 294 "", |
| 295 "", |
| 296 "", |
| 297 "", |
| 298 "", |
| 299 "" |
| 300 ] |
| 301 } |
| 302 } |
| 303 }, |
| 304 "ApiFailRequestBodyMessage": { |
| 305 "id": "ApiFailRequestBodyMessage", |
| 306 "type": "object", |
| 307 "properties": { |
| 308 "failure_reason": { |
| 309 "type": "string", |
| 310 "enum": [ |
| 311 "BUILDBUCKET_FAILURE", |
| 312 "BUILD_FAILURE", |
| 313 "INFRA_FAILURE", |
| 314 "INVALID_BUILD_DEFINITION" |
| 315 ], |
| 316 "enumDescriptions": [ |
| 317 "", |
| 318 "", |
| 319 "", |
| 320 "" |
| 321 ] |
| 322 }, |
| 323 "lease_key": { |
| 324 "type": "string", |
| 325 "format": "int64" |
| 326 }, |
| 327 "result_details_json": { |
| 328 "type": "string" |
| 329 }, |
| 330 "url": { |
| 331 "type": "string" |
| 332 } |
| 333 } |
| 334 }, |
| 335 "ApiHeartbeatBatchRequestMessage": { |
| 336 "id": "ApiHeartbeatBatchRequestMessage", |
| 337 "type": "object", |
| 338 "properties": { |
| 339 "heartbeats": { |
| 340 "type": "array", |
| 341 "items": { |
| 342 "$ref": "ApiHeartbeatBatchRequestMessageOneHeartbeat" |
| 343 } |
| 344 } |
| 345 } |
| 346 }, |
| 347 "ApiHeartbeatBatchRequestMessageOneHeartbeat": { |
| 348 "id": "ApiHeartbeatBatchRequestMessageOneHeartbeat", |
| 349 "type": "object", |
| 350 "properties": { |
| 351 "build_id": { |
| 352 "type": "string", |
| 353 "format": "int64" |
| 354 }, |
| 355 "lease_expiration_ts": { |
| 356 "type": "string", |
| 357 "format": "int64" |
| 358 }, |
| 359 "lease_key": { |
| 360 "type": "string", |
| 361 "format": "int64" |
| 362 } |
| 363 } |
| 364 }, |
| 365 "ApiHeartbeatBatchResponseMessage": { |
| 366 "id": "ApiHeartbeatBatchResponseMessage", |
| 367 "type": "object", |
| 368 "properties": { |
| 369 "results": { |
| 370 "type": "array", |
| 371 "items": { |
| 372 "$ref": "ApiHeartbeatBatchResponseMessageOneHeartbeatResult" |
| 373 } |
| 374 } |
| 375 } |
| 376 }, |
| 377 "ApiHeartbeatBatchResponseMessageOneHeartbeatResult": { |
| 378 "id": "ApiHeartbeatBatchResponseMessageOneHeartbeatResult", |
| 379 "type": "object", |
| 380 "properties": { |
| 381 "build_id": { |
| 382 "type": "string", |
| 383 "format": "int64" |
| 384 }, |
| 385 "error": { |
| 386 "$ref": "ApiErrorMessage" |
| 387 }, |
| 388 "lease_expiration_ts": { |
| 389 "type": "string", |
| 390 "format": "int64" |
| 391 } |
| 392 } |
| 393 }, |
| 394 "ApiHeartbeatRequestBodyMessage": { |
| 395 "id": "ApiHeartbeatRequestBodyMessage", |
| 396 "type": "object", |
| 397 "properties": { |
| 398 "lease_expiration_ts": { |
| 399 "type": "string", |
| 400 "format": "int64" |
| 401 }, |
| 402 "lease_key": { |
| 403 "type": "string", |
| 404 "format": "int64" |
| 405 } |
| 406 } |
| 407 }, |
| 408 "ApiLeaseRequestBodyMessage": { |
| 409 "id": "ApiLeaseRequestBodyMessage", |
| 410 "type": "object", |
| 411 "properties": { |
| 412 "lease_expiration_ts": { |
| 413 "type": "string", |
| 414 "format": "int64" |
| 415 } |
| 416 } |
| 417 }, |
| 418 "ApiPubSubCallbackMessage": { |
| 419 "id": "ApiPubSubCallbackMessage", |
| 420 "type": "object", |
| 421 "properties": { |
| 422 "auth_token": { |
| 423 "type": "string" |
| 424 }, |
| 425 "topic": { |
| 426 "type": "string" |
| 427 }, |
| 428 "user_data": { |
| 429 "type": "string" |
| 430 } |
| 431 } |
| 432 }, |
| 433 "ApiPutBatchRequestMessage": { |
| 434 "id": "ApiPutBatchRequestMessage", |
| 435 "type": "object", |
| 436 "properties": { |
| 437 "builds": { |
| 438 "type": "array", |
| 439 "items": { |
| 440 "$ref": "ApiPutRequestMessage" |
| 441 } |
| 442 } |
| 443 } |
| 444 }, |
| 445 "ApiPutBatchResponseMessage": { |
| 446 "id": "ApiPutBatchResponseMessage", |
| 447 "type": "object", |
| 448 "properties": { |
| 449 "results": { |
| 450 "type": "array", |
| 451 "items": { |
| 452 "$ref": "ApiPutBatchResponseMessageOneResult" |
| 453 } |
| 454 } |
| 455 } |
| 456 }, |
| 457 "ApiPutBatchResponseMessageOneResult": { |
| 458 "id": "ApiPutBatchResponseMessageOneResult", |
| 459 "type": "object", |
| 460 "properties": { |
| 461 "build": { |
| 462 "$ref": "ApiBuildMessage", |
| 463 "description": "Describes model.Build, see its docstring." |
| 464 }, |
| 465 "client_operation_id": { |
| 466 "type": "string" |
| 467 }, |
| 468 "error": { |
| 469 "$ref": "ApiErrorMessage" |
| 470 } |
| 471 } |
| 472 }, |
| 473 "ApiPutRequestMessage": { |
| 474 "id": "ApiPutRequestMessage", |
| 475 "type": "object", |
| 476 "properties": { |
| 477 "bucket": { |
| 478 "type": "string" |
| 479 }, |
| 480 "client_operation_id": { |
| 481 "type": "string" |
| 482 }, |
| 483 "lease_expiration_ts": { |
| 484 "type": "string", |
| 485 "format": "int64" |
| 486 }, |
| 487 "parameters_json": { |
| 488 "type": "string" |
| 489 }, |
| 490 "pubsub_callback": { |
| 491 "$ref": "ApiPubSubCallbackMessage" |
| 492 }, |
| 493 "tags": { |
| 494 "type": "array", |
| 495 "items": { |
| 496 "type": "string" |
| 497 } |
| 498 } |
| 499 } |
| 500 }, |
| 501 "ApiRetryRequestMessage": { |
| 502 "id": "ApiRetryRequestMessage", |
| 503 "type": "object", |
| 504 "properties": { |
| 505 "client_operation_id": { |
| 506 "type": "string" |
| 507 }, |
| 508 "lease_expiration_ts": { |
| 509 "type": "string", |
| 510 "format": "int64" |
| 511 }, |
| 512 "pubsub_callback": { |
| 513 "$ref": "ApiPubSubCallbackMessage" |
| 514 } |
| 515 } |
| 516 }, |
| 517 "ApiSearchResponseMessage": { |
| 518 "id": "ApiSearchResponseMessage", |
| 519 "type": "object", |
| 520 "properties": { |
| 521 "builds": { |
| 522 "type": "array", |
| 523 "description": "Describes model.Build, see its docstring.", |
| 524 "items": { |
| 525 "$ref": "ApiBuildMessage" |
| 526 } |
| 527 }, |
| 528 "error": { |
| 529 "$ref": "ApiErrorMessage" |
| 530 }, |
| 531 "next_cursor": { |
| 532 "type": "string" |
| 533 } |
| 534 } |
| 535 }, |
| 536 "ApiStartRequestBodyMessage": { |
| 537 "id": "ApiStartRequestBodyMessage", |
| 538 "type": "object", |
| 539 "properties": { |
| 540 "lease_key": { |
| 541 "type": "string", |
| 542 "format": "int64" |
| 543 }, |
| 544 "url": { |
| 545 "type": "string" |
| 546 } |
| 547 } |
| 548 }, |
| 549 "ApiSucceedRequestBodyMessage": { |
| 550 "id": "ApiSucceedRequestBodyMessage", |
| 551 "type": "object", |
| 552 "properties": { |
| 553 "lease_key": { |
| 554 "type": "string", |
| 555 "format": "int64" |
| 556 }, |
| 557 "result_details_json": { |
| 558 "type": "string" |
| 559 }, |
| 560 "url": { |
| 561 "type": "string" |
| 562 } |
| 563 } |
| 564 } |
| 565 }, |
| 566 "methods": { |
| 567 "cancel": { |
| 568 "id": "buildbucket.cancel", |
| 569 "path": "builds/{id}/cancel", |
| 570 "httpMethod": "POST", |
| 571 "description": "Cancels a build.", |
| 572 "parameters": { |
| 573 "id": { |
| 574 "type": "string", |
| 575 "required": true, |
| 576 "format": "int64", |
| 577 "location": "path" |
| 578 } |
| 579 }, |
| 580 "parameterOrder": [ |
| 581 "id" |
| 582 ], |
| 583 "response": { |
| 584 "$ref": "ApiBuildResponseMessage" |
| 585 }, |
| 586 "scopes": [ |
| 587 "https://www.googleapis.com/auth/userinfo.email" |
| 588 ] |
| 589 }, |
| 590 "cancel_batch": { |
| 591 "id": "buildbucket.cancel_batch", |
| 592 "path": "builds/cancel", |
| 593 "httpMethod": "POST", |
| 594 "description": "Cancels builds.", |
| 595 "request": { |
| 596 "$ref": "ApiCancelBatchRequestMessage", |
| 597 "parameterName": "resource" |
| 598 }, |
| 599 "response": { |
| 600 "$ref": "ApiCancelBatchResponseMessage" |
| 601 }, |
| 602 "scopes": [ |
| 603 "https://www.googleapis.com/auth/userinfo.email" |
| 604 ] |
| 605 }, |
| 606 "delete_many_builds": { |
| 607 "id": "buildbucket.delete_many_builds", |
| 608 "path": "bucket/{bucket}/delete", |
| 609 "httpMethod": "POST", |
| 610 "description": "Deletes scheduled or started builds in a bucket.", |
| 611 "parameters": { |
| 612 "bucket": { |
| 613 "type": "string", |
| 614 "required": true, |
| 615 "location": "path" |
| 616 }, |
| 617 "created_by": { |
| 618 "type": "string", |
| 619 "location": "query" |
| 620 }, |
| 621 "status": { |
| 622 "type": "string", |
| 623 "required": true, |
| 624 "enum": [ |
| 625 "COMPLETED", |
| 626 "SCHEDULED", |
| 627 "STARTED" |
| 628 ], |
| 629 "enumDescriptions": [ |
| 630 "", |
| 631 "", |
| 632 "" |
| 633 ], |
| 634 "location": "query" |
| 635 }, |
| 636 "tag": { |
| 637 "type": "string", |
| 638 "repeated": true, |
| 639 "location": "query" |
| 640 } |
| 641 }, |
| 642 "parameterOrder": [ |
| 643 "bucket", |
| 644 "status" |
| 645 ], |
| 646 "response": { |
| 647 "$ref": "ApiDeleteManyBuildsResponse" |
| 648 }, |
| 649 "scopes": [ |
| 650 "https://www.googleapis.com/auth/userinfo.email" |
| 651 ] |
| 652 }, |
| 653 "fail": { |
| 654 "id": "buildbucket.fail", |
| 655 "path": "builds/{id}/fail", |
| 656 "httpMethod": "POST", |
| 657 "description": "Marks a build as failed.", |
| 658 "parameters": { |
| 659 "id": { |
| 660 "type": "string", |
| 661 "required": true, |
| 662 "format": "int64", |
| 663 "location": "path" |
| 664 } |
| 665 }, |
| 666 "parameterOrder": [ |
| 667 "id" |
| 668 ], |
| 669 "request": { |
| 670 "$ref": "ApiFailRequestBodyMessage", |
| 671 "parameterName": "resource" |
| 672 }, |
| 673 "response": { |
| 674 "$ref": "ApiBuildResponseMessage" |
| 675 }, |
| 676 "scopes": [ |
| 677 "https://www.googleapis.com/auth/userinfo.email" |
| 678 ] |
| 679 }, |
| 680 "get": { |
| 681 "id": "buildbucket.get", |
| 682 "path": "builds/{id}", |
| 683 "httpMethod": "GET", |
| 684 "description": "Returns a build by id.", |
| 685 "parameters": { |
| 686 "id": { |
| 687 "type": "string", |
| 688 "required": true, |
| 689 "format": "int64", |
| 690 "location": "path" |
| 691 } |
| 692 }, |
| 693 "parameterOrder": [ |
| 694 "id" |
| 695 ], |
| 696 "response": { |
| 697 "$ref": "ApiBuildResponseMessage" |
| 698 }, |
| 699 "scopes": [ |
| 700 "https://www.googleapis.com/auth/userinfo.email" |
| 701 ] |
| 702 }, |
| 703 "get_bucket": { |
| 704 "id": "buildbucket.get_bucket", |
| 705 "path": "buckets/{bucket}", |
| 706 "httpMethod": "GET", |
| 707 "description": "Returns bucket information.", |
| 708 "parameters": { |
| 709 "bucket": { |
| 710 "type": "string", |
| 711 "required": true, |
| 712 "location": "path" |
| 713 } |
| 714 }, |
| 715 "parameterOrder": [ |
| 716 "bucket" |
| 717 ], |
| 718 "response": { |
| 719 "$ref": "ApiBucketMessage" |
| 720 }, |
| 721 "scopes": [ |
| 722 "https://www.googleapis.com/auth/userinfo.email" |
| 723 ] |
| 724 }, |
| 725 "heartbeat": { |
| 726 "id": "buildbucket.heartbeat", |
| 727 "path": "builds/{id}/heartbeat", |
| 728 "httpMethod": "POST", |
| 729 "description": "Updates build lease.", |
| 730 "parameters": { |
| 731 "id": { |
| 732 "type": "string", |
| 733 "required": true, |
| 734 "format": "int64", |
| 735 "location": "path" |
| 736 } |
| 737 }, |
| 738 "parameterOrder": [ |
| 739 "id" |
| 740 ], |
| 741 "request": { |
| 742 "$ref": "ApiHeartbeatRequestBodyMessage", |
| 743 "parameterName": "resource" |
| 744 }, |
| 745 "response": { |
| 746 "$ref": "ApiBuildResponseMessage" |
| 747 }, |
| 748 "scopes": [ |
| 749 "https://www.googleapis.com/auth/userinfo.email" |
| 750 ] |
| 751 }, |
| 752 "heartbeat_batch": { |
| 753 "id": "buildbucket.heartbeat_batch", |
| 754 "path": "heartbeat", |
| 755 "httpMethod": "POST", |
| 756 "description": "Updates multiple build leases.", |
| 757 "request": { |
| 758 "$ref": "ApiHeartbeatBatchRequestMessage", |
| 759 "parameterName": "resource" |
| 760 }, |
| 761 "response": { |
| 762 "$ref": "ApiHeartbeatBatchResponseMessage" |
| 763 }, |
| 764 "scopes": [ |
| 765 "https://www.googleapis.com/auth/userinfo.email" |
| 766 ] |
| 767 }, |
| 768 "lease": { |
| 769 "id": "buildbucket.lease", |
| 770 "path": "builds/{id}/lease", |
| 771 "httpMethod": "POST", |
| 772 "description": "Leases a build. Response may contain an error.", |
| 773 "parameters": { |
| 774 "id": { |
| 775 "type": "string", |
| 776 "required": true, |
| 777 "format": "int64", |
| 778 "location": "path" |
| 779 } |
| 780 }, |
| 781 "parameterOrder": [ |
| 782 "id" |
| 783 ], |
| 784 "request": { |
| 785 "$ref": "ApiLeaseRequestBodyMessage", |
| 786 "parameterName": "resource" |
| 787 }, |
| 788 "response": { |
| 789 "$ref": "ApiBuildResponseMessage" |
| 790 }, |
| 791 "scopes": [ |
| 792 "https://www.googleapis.com/auth/userinfo.email" |
| 793 ] |
| 794 }, |
| 795 "peek": { |
| 796 "id": "buildbucket.peek", |
| 797 "path": "peek", |
| 798 "httpMethod": "GET", |
| 799 "description": "Returns available builds.", |
| 800 "parameters": { |
| 801 "bucket": { |
| 802 "type": "string", |
| 803 "repeated": true, |
| 804 "location": "query" |
| 805 }, |
| 806 "max_builds": { |
| 807 "type": "integer", |
| 808 "format": "int32", |
| 809 "location": "query" |
| 810 }, |
| 811 "start_cursor": { |
| 812 "type": "string", |
| 813 "location": "query" |
| 814 } |
| 815 }, |
| 816 "response": { |
| 817 "$ref": "ApiSearchResponseMessage" |
| 818 }, |
| 819 "scopes": [ |
| 820 "https://www.googleapis.com/auth/userinfo.email" |
| 821 ] |
| 822 }, |
| 823 "put": { |
| 824 "id": "buildbucket.put", |
| 825 "path": "builds", |
| 826 "httpMethod": "PUT", |
| 827 "description": "Creates a new build.", |
| 828 "request": { |
| 829 "$ref": "ApiPutRequestMessage", |
| 830 "parameterName": "resource" |
| 831 }, |
| 832 "response": { |
| 833 "$ref": "ApiBuildResponseMessage" |
| 834 }, |
| 835 "scopes": [ |
| 836 "https://www.googleapis.com/auth/userinfo.email" |
| 837 ] |
| 838 }, |
| 839 "put_batch": { |
| 840 "id": "buildbucket.put_batch", |
| 841 "path": "builds/batch", |
| 842 "httpMethod": "PUT", |
| 843 "description": "Creates builds.", |
| 844 "request": { |
| 845 "$ref": "ApiPutBatchRequestMessage", |
| 846 "parameterName": "resource" |
| 847 }, |
| 848 "response": { |
| 849 "$ref": "ApiPutBatchResponseMessage" |
| 850 }, |
| 851 "scopes": [ |
| 852 "https://www.googleapis.com/auth/userinfo.email" |
| 853 ] |
| 854 }, |
| 855 "reset": { |
| 856 "id": "buildbucket.reset", |
| 857 "path": "builds/{id}/reset", |
| 858 "httpMethod": "POST", |
| 859 "description": "Forcibly unleases a build and resets its state to SCHEDULED."
, |
| 860 "parameters": { |
| 861 "id": { |
| 862 "type": "string", |
| 863 "required": true, |
| 864 "format": "int64", |
| 865 "location": "path" |
| 866 } |
| 867 }, |
| 868 "parameterOrder": [ |
| 869 "id" |
| 870 ], |
| 871 "response": { |
| 872 "$ref": "ApiBuildResponseMessage" |
| 873 }, |
| 874 "scopes": [ |
| 875 "https://www.googleapis.com/auth/userinfo.email" |
| 876 ] |
| 877 }, |
| 878 "retry": { |
| 879 "id": "buildbucket.retry", |
| 880 "path": "builds/{id}/retry", |
| 881 "httpMethod": "PUT", |
| 882 "description": "Retries an existing build.", |
| 883 "parameters": { |
| 884 "id": { |
| 885 "type": "string", |
| 886 "required": true, |
| 887 "format": "int64", |
| 888 "location": "path" |
| 889 } |
| 890 }, |
| 891 "parameterOrder": [ |
| 892 "id" |
| 893 ], |
| 894 "request": { |
| 895 "$ref": "ApiRetryRequestMessage", |
| 896 "parameterName": "resource" |
| 897 }, |
| 898 "response": { |
| 899 "$ref": "ApiBuildResponseMessage" |
| 900 }, |
| 901 "scopes": [ |
| 902 "https://www.googleapis.com/auth/userinfo.email" |
| 903 ] |
| 904 }, |
| 905 "search": { |
| 906 "id": "buildbucket.search", |
| 907 "path": "search", |
| 908 "httpMethod": "GET", |
| 909 "description": "Searches for builds.", |
| 910 "parameters": { |
| 911 "bucket": { |
| 912 "type": "string", |
| 913 "repeated": true, |
| 914 "location": "query" |
| 915 }, |
| 916 "cancelation_reason": { |
| 917 "type": "string", |
| 918 "enum": [ |
| 919 "CANCELED_EXPLICITLY", |
| 920 "TIMEOUT" |
| 921 ], |
| 922 "enumDescriptions": [ |
| 923 "", |
| 924 "" |
| 925 ], |
| 926 "location": "query" |
| 927 }, |
| 928 "created_by": { |
| 929 "type": "string", |
| 930 "location": "query" |
| 931 }, |
| 932 "failure_reason": { |
| 933 "type": "string", |
| 934 "enum": [ |
| 935 "BUILDBUCKET_FAILURE", |
| 936 "BUILD_FAILURE", |
| 937 "INFRA_FAILURE", |
| 938 "INVALID_BUILD_DEFINITION" |
| 939 ], |
| 940 "enumDescriptions": [ |
| 941 "", |
| 942 "", |
| 943 "", |
| 944 "" |
| 945 ], |
| 946 "location": "query" |
| 947 }, |
| 948 "max_builds": { |
| 949 "type": "integer", |
| 950 "format": "int32", |
| 951 "location": "query" |
| 952 }, |
| 953 "result": { |
| 954 "type": "string", |
| 955 "enum": [ |
| 956 "CANCELED", |
| 957 "FAILURE", |
| 958 "SUCCESS" |
| 959 ], |
| 960 "enumDescriptions": [ |
| 961 "", |
| 962 "", |
| 963 "" |
| 964 ], |
| 965 "location": "query" |
| 966 }, |
| 967 "retry_of": { |
| 968 "type": "string", |
| 969 "format": "int64", |
| 970 "location": "query" |
| 971 }, |
| 972 "start_cursor": { |
| 973 "type": "string", |
| 974 "location": "query" |
| 975 }, |
| 976 "status": { |
| 977 "type": "string", |
| 978 "enum": [ |
| 979 "COMPLETED", |
| 980 "SCHEDULED", |
| 981 "STARTED" |
| 982 ], |
| 983 "enumDescriptions": [ |
| 984 "", |
| 985 "", |
| 986 "" |
| 987 ], |
| 988 "location": "query" |
| 989 }, |
| 990 "tag": { |
| 991 "type": "string", |
| 992 "repeated": true, |
| 993 "location": "query" |
| 994 } |
| 995 }, |
| 996 "response": { |
| 997 "$ref": "ApiSearchResponseMessage" |
| 998 }, |
| 999 "scopes": [ |
| 1000 "https://www.googleapis.com/auth/userinfo.email" |
| 1001 ] |
| 1002 }, |
| 1003 "start": { |
| 1004 "id": "buildbucket.start", |
| 1005 "path": "builds/{id}/start", |
| 1006 "httpMethod": "POST", |
| 1007 "description": "Marks a build as started.", |
| 1008 "parameters": { |
| 1009 "id": { |
| 1010 "type": "string", |
| 1011 "required": true, |
| 1012 "format": "int64", |
| 1013 "location": "path" |
| 1014 } |
| 1015 }, |
| 1016 "parameterOrder": [ |
| 1017 "id" |
| 1018 ], |
| 1019 "request": { |
| 1020 "$ref": "ApiStartRequestBodyMessage", |
| 1021 "parameterName": "resource" |
| 1022 }, |
| 1023 "response": { |
| 1024 "$ref": "ApiBuildResponseMessage" |
| 1025 }, |
| 1026 "scopes": [ |
| 1027 "https://www.googleapis.com/auth/userinfo.email" |
| 1028 ] |
| 1029 }, |
| 1030 "succeed": { |
| 1031 "id": "buildbucket.succeed", |
| 1032 "path": "builds/{id}/succeed", |
| 1033 "httpMethod": "POST", |
| 1034 "description": "Marks a build as succeeded.", |
| 1035 "parameters": { |
| 1036 "id": { |
| 1037 "type": "string", |
| 1038 "required": true, |
| 1039 "format": "int64", |
| 1040 "location": "path" |
| 1041 } |
| 1042 }, |
| 1043 "parameterOrder": [ |
| 1044 "id" |
| 1045 ], |
| 1046 "request": { |
| 1047 "$ref": "ApiSucceedRequestBodyMessage", |
| 1048 "parameterName": "resource" |
| 1049 }, |
| 1050 "response": { |
| 1051 "$ref": "ApiBuildResponseMessage" |
| 1052 }, |
| 1053 "scopes": [ |
| 1054 "https://www.googleapis.com/auth/userinfo.email" |
| 1055 ] |
| 1056 } |
| 1057 } |
| 1058 } |
| OLD | NEW |