| OLD | NEW | 
|---|
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). | 
| 2 | 2 | 
| 3 library googleapis.cloudbuild.v1; | 3 library googleapis.cloudbuild.v1; | 
| 4 | 4 | 
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; | 
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; | 
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; | 
| 8 | 8 | 
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 30 } | 30 } | 
| 31 | 31 | 
| 32 | 32 | 
| 33 class OperationsResourceApi { | 33 class OperationsResourceApi { | 
| 34   final commons.ApiRequester _requester; | 34   final commons.ApiRequester _requester; | 
| 35 | 35 | 
| 36   OperationsResourceApi(commons.ApiRequester client) : | 36   OperationsResourceApi(commons.ApiRequester client) : | 
| 37       _requester = client; | 37       _requester = client; | 
| 38 | 38 | 
| 39   /** | 39   /** | 
|  | 40    * Starts asynchronous cancellation on a long-running operation.  The server | 
|  | 41    * makes a best effort to cancel the operation, but success is not | 
|  | 42    * guaranteed.  If the server doesn't support this method, it returns | 
|  | 43    * `google.rpc.Code.UNIMPLEMENTED`.  Clients can use | 
|  | 44    * Operations.GetOperation or | 
|  | 45    * other methods to check whether the cancellation succeeded or whether the | 
|  | 46    * operation completed despite cancellation. On successful cancellation, | 
|  | 47    * the operation is not deleted; instead, it becomes an operation with | 
|  | 48    * an Operation.error value with a google.rpc.Status.code of 1, | 
|  | 49    * corresponding to `Code.CANCELLED`. | 
|  | 50    * | 
|  | 51    * [request] - The metadata request object. | 
|  | 52    * | 
|  | 53    * Request parameters: | 
|  | 54    * | 
|  | 55    * [name] - The name of the operation resource to be cancelled. | 
|  | 56    * Value must have pattern "^operations/.+$". | 
|  | 57    * | 
|  | 58    * Completes with a [Empty]. | 
|  | 59    * | 
|  | 60    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
|  | 61    * error. | 
|  | 62    * | 
|  | 63    * If the used [http.Client] completes with an error when making a REST call, | 
|  | 64    * this method will complete with the same error. | 
|  | 65    */ | 
|  | 66   async.Future<Empty> cancel(CancelOperationRequest request, core.String name) { | 
|  | 67     var _url = null; | 
|  | 68     var _queryParams = new core.Map(); | 
|  | 69     var _uploadMedia = null; | 
|  | 70     var _uploadOptions = null; | 
|  | 71     var _downloadOptions = commons.DownloadOptions.Metadata; | 
|  | 72     var _body = null; | 
|  | 73 | 
|  | 74     if (request != null) { | 
|  | 75       _body = convert.JSON.encode((request).toJson()); | 
|  | 76     } | 
|  | 77     if (name == null) { | 
|  | 78       throw new core.ArgumentError("Parameter name is required."); | 
|  | 79     } | 
|  | 80 | 
|  | 81     _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel'; | 
|  | 82 | 
|  | 83     var _response = _requester.request(_url, | 
|  | 84                                        "POST", | 
|  | 85                                        body: _body, | 
|  | 86                                        queryParams: _queryParams, | 
|  | 87                                        uploadOptions: _uploadOptions, | 
|  | 88                                        uploadMedia: _uploadMedia, | 
|  | 89                                        downloadOptions: _downloadOptions); | 
|  | 90     return _response.then((data) => new Empty.fromJson(data)); | 
|  | 91   } | 
|  | 92 | 
|  | 93   /** | 
| 40    * Gets the latest state of a long-running operation.  Clients can use this | 94    * Gets the latest state of a long-running operation.  Clients can use this | 
| 41    * method to poll the operation result at intervals as recommended by the API | 95    * method to poll the operation result at intervals as recommended by the API | 
| 42    * service. | 96    * service. | 
| 43    * | 97    * | 
| 44    * Request parameters: | 98    * Request parameters: | 
| 45    * | 99    * | 
| 46    * [name] - The name of the operation resource. | 100    * [name] - The name of the operation resource. | 
| 47    * Value must have pattern "^operations/.+$". | 101    * Value must have pattern "^operations/.+$". | 
| 48    * | 102    * | 
| 49    * Completes with a [Operation]. | 103    * Completes with a [Operation]. | 
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 620  *   resolved from the specified branch or tag. | 674  *   resolved from the specified branch or tag. | 
| 621  */ | 675  */ | 
| 622 class Build { | 676 class Build { | 
| 623   /** | 677   /** | 
| 624    * The ID of the BuildTrigger that triggered this build, if it was | 678    * The ID of the BuildTrigger that triggered this build, if it was | 
| 625    * triggered automatically. | 679    * triggered automatically. | 
| 626    * @OutputOnly | 680    * @OutputOnly | 
| 627    */ | 681    */ | 
| 628   core.String buildTriggerId; | 682   core.String buildTriggerId; | 
| 629   /** | 683   /** | 
| 630    * Time at which the build was created. | 684    * Time at which the request to create the build was received. | 
| 631    * @OutputOnly | 685    * @OutputOnly | 
| 632    */ | 686    */ | 
| 633   core.String createTime; | 687   core.String createTime; | 
| 634   /** | 688   /** | 
| 635    * Time at which execution of the build was finished. | 689    * Time at which execution of the build was finished. | 
|  | 690    * | 
|  | 691    * The difference between finish_time and start_time is the duration of the | 
|  | 692    * build's execution. | 
| 636    * @OutputOnly | 693    * @OutputOnly | 
| 637    */ | 694    */ | 
| 638   core.String finishTime; | 695   core.String finishTime; | 
| 639   /** | 696   /** | 
| 640    * Unique identifier of the build. | 697    * Unique identifier of the build. | 
| 641    * @OutputOnly | 698    * @OutputOnly | 
| 642    */ | 699    */ | 
| 643   core.String id; | 700   core.String id; | 
| 644   /** | 701   /** | 
| 645    * A list of images to be pushed upon the successful completion of all build | 702    * A list of images to be pushed upon the successful completion of all build | 
| 646    * steps. | 703    * steps. | 
| 647    * | 704    * | 
| 648    * The images will be pushed using the builder | 705    * The images will be pushed using the builder service account's credentials. | 
| 649    * service account's credentials. |  | 
| 650    * | 706    * | 
| 651    * The digests of the pushed images will be stored in the Build resource's | 707    * The digests of the pushed images will be stored in the Build resource's | 
| 652    * results field. | 708    * results field. | 
| 653    * | 709    * | 
| 654    * If any of the images fail to be pushed, the build is marked FAILURE. | 710    * If any of the images fail to be pushed, the build is marked FAILURE. | 
| 655    */ | 711    */ | 
| 656   core.List<core.String> images; | 712   core.List<core.String> images; | 
| 657   /** | 713   /** | 
| 658    * URL to logs for this build in Google Cloud Logging. | 714    * URL to logs for this build in Google Cloud Logging. | 
| 659    * @OutputOnly | 715    * @OutputOnly | 
| (...skipping 28 matching lines...) Expand all  Loading... | 
| 688   /** | 744   /** | 
| 689    * Time at which execution of the build was started. | 745    * Time at which execution of the build was started. | 
| 690    * @OutputOnly | 746    * @OutputOnly | 
| 691    */ | 747    */ | 
| 692   core.String startTime; | 748   core.String startTime; | 
| 693   /** | 749   /** | 
| 694    * Status of the build. | 750    * Status of the build. | 
| 695    * @OutputOnly | 751    * @OutputOnly | 
| 696    * Possible string values are: | 752    * Possible string values are: | 
| 697    * - "STATUS_UNKNOWN" : Status of the build is unknown. | 753    * - "STATUS_UNKNOWN" : Status of the build is unknown. | 
| 698    * - "QUEUING" : Build has been received and is being queued. |  | 
| 699    * - "QUEUED" : Build is queued; work has not yet begun. | 754    * - "QUEUED" : Build is queued; work has not yet begun. | 
| 700    * - "WORKING" : Build is being executed. | 755    * - "WORKING" : Build is being executed. | 
| 701    * - "SUCCESS" : Build finished successfully. | 756    * - "SUCCESS" : Build finished successfully. | 
| 702    * - "FAILURE" : Build failed to complete successfully. | 757    * - "FAILURE" : Build failed to complete successfully. | 
| 703    * - "INTERNAL_ERROR" : Build failed due to an internal cause. | 758    * - "INTERNAL_ERROR" : Build failed due to an internal cause. | 
| 704    * - "TIMEOUT" : Build took longer than was allowed. | 759    * - "TIMEOUT" : Build took longer than was allowed. | 
| 705    * - "CANCELLED" : Build was canceled by a user. | 760    * - "CANCELLED" : Build was canceled by a user. | 
| 706    */ | 761    */ | 
| 707   core.String status; | 762   core.String status; | 
| 708   /** | 763   /** | 
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 915    */ | 970    */ | 
| 916   core.List<core.String> env; | 971   core.List<core.String> env; | 
| 917   /** | 972   /** | 
| 918    * Optional unique identifier for this build step, used in wait_for to | 973    * Optional unique identifier for this build step, used in wait_for to | 
| 919    * reference this build step as a dependency. | 974    * reference this build step as a dependency. | 
| 920    */ | 975    */ | 
| 921   core.String id; | 976   core.String id; | 
| 922   /** | 977   /** | 
| 923    * The name of the container image that will run this particular build step. | 978    * The name of the container image that will run this particular build step. | 
| 924    * | 979    * | 
| 925    * If the image is already available in the host's | 980    * If the image is already available in the host's Docker daemon's cache, it | 
| 926    * Docker daemon's cache, it will be run directly. If not, the host will | 981    * will be run directly. If not, the host will attempt to pull the image | 
| 927    * attempt to pull the image first, using the builder service account's | 982    * first, using the builder service account's credentials if necessary. | 
| 928    * credentials if necessary. |  | 
| 929    * | 983    * | 
| 930    * The Docker daemon's cache will already have the latest versions of all of | 984    * The Docker daemon's cache will already have the latest versions of all of | 
| 931    * the officially supported build steps | 985    * the officially supported build steps | 
| 932    * (https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon | 986    * (https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon | 
| 933    * will also have cached many of the layers for some popular images, like | 987    * will also have cached many of the layers for some popular images, like | 
| 934    * "ubuntu", "debian", but they will be refreshed at the time you attempt to | 988    * "ubuntu", "debian", but they will be refreshed at the time you attempt to | 
| 935    * use them. | 989    * use them. | 
| 936    * | 990    * | 
| 937    * If you built an image in a previous build step, it will be stored in the | 991    * If you built an image in a previous build step, it will be stored in the | 
| 938    * host's Docker daemon's cache and is available to use as the name for a | 992    * host's Docker daemon's cache and is available to use as the name for a | 
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1125 | 1179 | 
| 1126   CancelBuildRequest.fromJson(core.Map _json) { | 1180   CancelBuildRequest.fromJson(core.Map _json) { | 
| 1127   } | 1181   } | 
| 1128 | 1182 | 
| 1129   core.Map toJson() { | 1183   core.Map toJson() { | 
| 1130     var _json = new core.Map(); | 1184     var _json = new core.Map(); | 
| 1131     return _json; | 1185     return _json; | 
| 1132   } | 1186   } | 
| 1133 } | 1187 } | 
| 1134 | 1188 | 
|  | 1189 /** The request message for Operations.CancelOperation. */ | 
|  | 1190 class CancelOperationRequest { | 
|  | 1191 | 
|  | 1192   CancelOperationRequest(); | 
|  | 1193 | 
|  | 1194   CancelOperationRequest.fromJson(core.Map _json) { | 
|  | 1195   } | 
|  | 1196 | 
|  | 1197   core.Map toJson() { | 
|  | 1198     var _json = new core.Map(); | 
|  | 1199     return _json; | 
|  | 1200   } | 
|  | 1201 } | 
|  | 1202 | 
| 1135 /** | 1203 /** | 
| 1136  * A generic empty message that you can re-use to avoid defining duplicated | 1204  * A generic empty message that you can re-use to avoid defining duplicated | 
| 1137  * empty messages in your APIs. A typical example is to use it as the request | 1205  * empty messages in your APIs. A typical example is to use it as the request | 
| 1138  * or the response type of an API method. For instance: | 1206  * or the response type of an API method. For instance: | 
| 1139  * | 1207  * | 
| 1140  *     service Foo { | 1208  *     service Foo { | 
| 1141  *       rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 1209  *       rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 
| 1142  *     } | 1210  *     } | 
| 1143  * | 1211  * | 
| 1144  * The JSON representation for `Empty` is empty JSON object `{}`. | 1212  * The JSON representation for `Empty` is empty JSON object `{}`. | 
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1724     } | 1792     } | 
| 1725     if (generation != null) { | 1793     if (generation != null) { | 
| 1726       _json["generation"] = generation; | 1794       _json["generation"] = generation; | 
| 1727     } | 1795     } | 
| 1728     if (object != null) { | 1796     if (object != null) { | 
| 1729       _json["object"] = object; | 1797       _json["object"] = object; | 
| 1730     } | 1798     } | 
| 1731     return _json; | 1799     return _json; | 
| 1732   } | 1800   } | 
| 1733 } | 1801 } | 
| OLD | NEW | 
|---|