| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 * server doesn't support this method, it returns `UNIMPLEMENTED`. | 137 * server doesn't support this method, it returns `UNIMPLEMENTED`. |
| 138 * | 138 * |
| 139 * NOTE: the `name` binding below allows API services to override the binding | 139 * NOTE: the `name` binding below allows API services to override the binding |
| 140 * to use different resource name schemes, such as `users / * /operations`. | 140 * to use different resource name schemes, such as `users / * /operations`. |
| 141 * | 141 * |
| 142 * Request parameters: | 142 * Request parameters: |
| 143 * | 143 * |
| 144 * [name] - The name of the operation collection. | 144 * [name] - The name of the operation collection. |
| 145 * Value must have pattern "^operations$". | 145 * Value must have pattern "^operations$". |
| 146 * | 146 * |
| 147 * [filter] - The standard list filter. |
| 148 * |
| 147 * [pageToken] - The standard list page token. | 149 * [pageToken] - The standard list page token. |
| 148 * | 150 * |
| 149 * [pageSize] - The standard list page size. | 151 * [pageSize] - The standard list page size. |
| 150 * | 152 * |
| 151 * [filter] - The standard list filter. | |
| 152 * | |
| 153 * Completes with a [ListOperationsResponse]. | 153 * Completes with a [ListOperationsResponse]. |
| 154 * | 154 * |
| 155 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 155 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 156 * error. | 156 * error. |
| 157 * | 157 * |
| 158 * If the used [http.Client] completes with an error when making a REST call, | 158 * If the used [http.Client] completes with an error when making a REST call, |
| 159 * this method will complete with the same error. | 159 * this method will complete with the same error. |
| 160 */ | 160 */ |
| 161 async.Future<ListOperationsResponse> list(core.String name, {core.String pageT
oken, core.int pageSize, core.String filter}) { | 161 async.Future<ListOperationsResponse> list(core.String name, {core.String filte
r, core.String pageToken, core.int pageSize}) { |
| 162 var _url = null; | 162 var _url = null; |
| 163 var _queryParams = new core.Map(); | 163 var _queryParams = new core.Map(); |
| 164 var _uploadMedia = null; | 164 var _uploadMedia = null; |
| 165 var _uploadOptions = null; | 165 var _uploadOptions = null; |
| 166 var _downloadOptions = commons.DownloadOptions.Metadata; | 166 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 167 var _body = null; | 167 var _body = null; |
| 168 | 168 |
| 169 if (name == null) { | 169 if (name == null) { |
| 170 throw new core.ArgumentError("Parameter name is required."); | 170 throw new core.ArgumentError("Parameter name is required."); |
| 171 } | 171 } |
| 172 if (filter != null) { |
| 173 _queryParams["filter"] = [filter]; |
| 174 } |
| 172 if (pageToken != null) { | 175 if (pageToken != null) { |
| 173 _queryParams["pageToken"] = [pageToken]; | 176 _queryParams["pageToken"] = [pageToken]; |
| 174 } | 177 } |
| 175 if (pageSize != null) { | 178 if (pageSize != null) { |
| 176 _queryParams["pageSize"] = ["${pageSize}"]; | 179 _queryParams["pageSize"] = ["${pageSize}"]; |
| 177 } | 180 } |
| 178 if (filter != null) { | |
| 179 _queryParams["filter"] = [filter]; | |
| 180 } | |
| 181 | 181 |
| 182 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); | 182 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 183 | 183 |
| 184 var _response = _requester.request(_url, | 184 var _response = _requester.request(_url, |
| 185 "GET", | 185 "GET", |
| 186 body: _body, | 186 body: _body, |
| 187 queryParams: _queryParams, | 187 queryParams: _queryParams, |
| 188 uploadOptions: _uploadOptions, | 188 uploadOptions: _uploadOptions, |
| 189 uploadMedia: _uploadMedia, | 189 uploadMedia: _uploadMedia, |
| 190 downloadOptions: _downloadOptions); | 190 downloadOptions: _downloadOptions); |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 /** | 358 /** |
| 359 * Lists previously requested builds. | 359 * Lists previously requested builds. |
| 360 * | 360 * |
| 361 * Previously requested builds may still be in-progress, or may have finished | 361 * Previously requested builds may still be in-progress, or may have finished |
| 362 * successfully or unsuccessfully. | 362 * successfully or unsuccessfully. |
| 363 * | 363 * |
| 364 * Request parameters: | 364 * Request parameters: |
| 365 * | 365 * |
| 366 * [projectId] - ID of the project. | 366 * [projectId] - ID of the project. |
| 367 * | 367 * |
| 368 * [pageToken] - Token to provide to skip to a particular spot in the list. | |
| 369 * | |
| 370 * [pageSize] - Number of results to return in the list. | 368 * [pageSize] - Number of results to return in the list. |
| 371 * | 369 * |
| 372 * [filter] - The raw filter text to constrain the results. | 370 * [filter] - The raw filter text to constrain the results. |
| 373 * | 371 * |
| 372 * [pageToken] - Token to provide to skip to a particular spot in the list. |
| 373 * |
| 374 * Completes with a [ListBuildsResponse]. | 374 * Completes with a [ListBuildsResponse]. |
| 375 * | 375 * |
| 376 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 376 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 377 * error. | 377 * error. |
| 378 * | 378 * |
| 379 * If the used [http.Client] completes with an error when making a REST call, | 379 * If the used [http.Client] completes with an error when making a REST call, |
| 380 * this method will complete with the same error. | 380 * this method will complete with the same error. |
| 381 */ | 381 */ |
| 382 async.Future<ListBuildsResponse> list(core.String projectId, {core.String page
Token, core.int pageSize, core.String filter}) { | 382 async.Future<ListBuildsResponse> list(core.String projectId, {core.int pageSiz
e, core.String filter, core.String pageToken}) { |
| 383 var _url = null; | 383 var _url = null; |
| 384 var _queryParams = new core.Map(); | 384 var _queryParams = new core.Map(); |
| 385 var _uploadMedia = null; | 385 var _uploadMedia = null; |
| 386 var _uploadOptions = null; | 386 var _uploadOptions = null; |
| 387 var _downloadOptions = commons.DownloadOptions.Metadata; | 387 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 388 var _body = null; | 388 var _body = null; |
| 389 | 389 |
| 390 if (projectId == null) { | 390 if (projectId == null) { |
| 391 throw new core.ArgumentError("Parameter projectId is required."); | 391 throw new core.ArgumentError("Parameter projectId is required."); |
| 392 } | 392 } |
| 393 if (pageToken != null) { | |
| 394 _queryParams["pageToken"] = [pageToken]; | |
| 395 } | |
| 396 if (pageSize != null) { | 393 if (pageSize != null) { |
| 397 _queryParams["pageSize"] = ["${pageSize}"]; | 394 _queryParams["pageSize"] = ["${pageSize}"]; |
| 398 } | 395 } |
| 399 if (filter != null) { | 396 if (filter != null) { |
| 400 _queryParams["filter"] = [filter]; | 397 _queryParams["filter"] = [filter]; |
| 401 } | 398 } |
| 399 if (pageToken != null) { |
| 400 _queryParams["pageToken"] = [pageToken]; |
| 401 } |
| 402 | 402 |
| 403 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/buil
ds'; | 403 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/buil
ds'; |
| 404 | 404 |
| 405 var _response = _requester.request(_url, | 405 var _response = _requester.request(_url, |
| 406 "GET", | 406 "GET", |
| 407 body: _body, | 407 body: _body, |
| 408 queryParams: _queryParams, | 408 queryParams: _queryParams, |
| 409 uploadOptions: _uploadOptions, | 409 uploadOptions: _uploadOptions, |
| 410 uploadMedia: _uploadMedia, | 410 uploadMedia: _uploadMedia, |
| 411 downloadOptions: _downloadOptions); | 411 downloadOptions: _downloadOptions); |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 core.String id; | 989 core.String id; |
| 990 /** | 990 /** |
| 991 * The name of the container image that will run this particular build step. | 991 * The name of the container image that will run this particular build step. |
| 992 * | 992 * |
| 993 * If the image is already available in the host's Docker daemon's cache, it | 993 * If the image is already available in the host's Docker daemon's cache, it |
| 994 * will be run directly. If not, the host will attempt to pull the image | 994 * will be run directly. If not, the host will attempt to pull the image |
| 995 * first, using the builder service account's credentials if necessary. | 995 * first, using the builder service account's credentials if necessary. |
| 996 * | 996 * |
| 997 * The Docker daemon's cache will already have the latest versions of all of | 997 * The Docker daemon's cache will already have the latest versions of all of |
| 998 * the officially supported build steps | 998 * the officially supported build steps |
| 999 * (https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon | 999 * ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com
/GoogleCloudPlatform/cloud-builders)). |
| 1000 * will also have cached many of the layers for some popular images, like | 1000 * The Docker daemon will also have cached many of the layers for some popular |
| 1001 * "ubuntu", "debian", but they will be refreshed at the time you attempt to | 1001 * images, like "ubuntu", "debian", but they will be refreshed at the time you |
| 1002 * use them. | 1002 * attempt to use them. |
| 1003 * | 1003 * |
| 1004 * If you built an image in a previous build step, it will be stored in the | 1004 * If you built an image in a previous build step, it will be stored in the |
| 1005 * host's Docker daemon's cache and is available to use as the name for a | 1005 * host's Docker daemon's cache and is available to use as the name for a |
| 1006 * later build step. | 1006 * later build step. |
| 1007 */ | 1007 */ |
| 1008 core.String name; | 1008 core.String name; |
| 1009 /** | 1009 /** |
| 1010 * The ID(s) of the step(s) that this build step depends on. | 1010 * The ID(s) of the step(s) that this build step depends on. |
| 1011 * This build step will not start until all the build steps in wait_for | 1011 * This build step will not start until all the build steps in wait_for |
| 1012 * have completed successfully. If wait_for is empty, this build step will | 1012 * have completed successfully. If wait_for is empty, this build step will |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1819 } | 1819 } |
| 1820 if (generation != null) { | 1820 if (generation != null) { |
| 1821 _json["generation"] = generation; | 1821 _json["generation"] = generation; |
| 1822 } | 1822 } |
| 1823 if (object != null) { | 1823 if (object != null) { |
| 1824 _json["object"] = object; | 1824 _json["object"] = object; |
| 1825 } | 1825 } |
| 1826 return _json; | 1826 return _json; |
| 1827 } | 1827 } |
| 1828 } | 1828 } |
| OLD | NEW |