| 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 * [pageSize] - The standard list page size. | |
| 148 * | |
| 149 * [filter] - The standard list filter. | 147 * [filter] - The standard list filter. |
| 150 * | 148 * |
| 151 * [pageToken] - The standard list page token. | 149 * [pageToken] - The standard list page token. |
| 152 * | 150 * |
| 151 * [pageSize] - The standard list page size. |
| 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.int pageSize
, core.String filter, core.String pageToken}) { | 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 (pageSize != null) { | |
| 173 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 174 } | |
| 175 if (filter != null) { | 172 if (filter != null) { |
| 176 _queryParams["filter"] = [filter]; | 173 _queryParams["filter"] = [filter]; |
| 177 } | 174 } |
| 178 if (pageToken != null) { | 175 if (pageToken != null) { |
| 179 _queryParams["pageToken"] = [pageToken]; | 176 _queryParams["pageToken"] = [pageToken]; |
| 180 } | 177 } |
| 178 if (pageSize != null) { |
| 179 _queryParams["pageSize"] = ["${pageSize}"]; |
| 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 * [pageSize] - Number of results to return in the list. | |
| 369 * | |
| 370 * [filter] - The raw filter text to constrain the results. | 368 * [filter] - The raw filter text to constrain the results. |
| 371 * | 369 * |
| 372 * [pageToken] - Token to provide to skip to a particular spot in the list. | 370 * [pageToken] - Token to provide to skip to a particular spot in the list. |
| 373 * | 371 * |
| 372 * [pageSize] - Number of results to return 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.int pageSiz
e, core.String filter, core.String pageToken}) { | 382 async.Future<ListBuildsResponse> list(core.String projectId, {core.String filt
er, core.String pageToken, core.int pageSize}) { |
| 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 (pageSize != null) { | |
| 394 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 395 } | |
| 396 if (filter != null) { | 393 if (filter != null) { |
| 397 _queryParams["filter"] = [filter]; | 394 _queryParams["filter"] = [filter]; |
| 398 } | 395 } |
| 399 if (pageToken != null) { | 396 if (pageToken != null) { |
| 400 _queryParams["pageToken"] = [pageToken]; | 397 _queryParams["pageToken"] = [pageToken]; |
| 401 } | 398 } |
| 399 if (pageSize != null) { |
| 400 _queryParams["pageSize"] = ["${pageSize}"]; |
| 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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 * - "CANCELLED" : Build was canceled by a user. | 760 * - "CANCELLED" : Build was canceled by a user. |
| 761 */ | 761 */ |
| 762 core.String status; | 762 core.String status; |
| 763 /** | 763 /** |
| 764 * Customer-readable message about the current status. | 764 * Customer-readable message about the current status. |
| 765 * @OutputOnly | 765 * @OutputOnly |
| 766 */ | 766 */ |
| 767 core.String statusDetail; | 767 core.String statusDetail; |
| 768 /** Describes the operations to be performed on the workspace. */ | 768 /** Describes the operations to be performed on the workspace. */ |
| 769 core.List<BuildStep> steps; | 769 core.List<BuildStep> steps; |
| 770 /** Substitutions data for Build resource. */ |
| 771 core.Map<core.String, core.String> substitutions; |
| 770 /** | 772 /** |
| 771 * Amount of time that this build should be allowed to run, to second | 773 * Amount of time that this build should be allowed to run, to second |
| 772 * granularity. If this amount of time elapses, work on the build will cease | 774 * granularity. If this amount of time elapses, work on the build will cease |
| 773 * and the build status will be TIMEOUT. | 775 * and the build status will be TIMEOUT. |
| 774 * | 776 * |
| 775 * Default time is ten minutes. | 777 * Default time is ten minutes. |
| 776 */ | 778 */ |
| 777 core.String timeout; | 779 core.String timeout; |
| 778 | 780 |
| 779 Build(); | 781 Build(); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 } | 822 } |
| 821 if (_json.containsKey("status")) { | 823 if (_json.containsKey("status")) { |
| 822 status = _json["status"]; | 824 status = _json["status"]; |
| 823 } | 825 } |
| 824 if (_json.containsKey("statusDetail")) { | 826 if (_json.containsKey("statusDetail")) { |
| 825 statusDetail = _json["statusDetail"]; | 827 statusDetail = _json["statusDetail"]; |
| 826 } | 828 } |
| 827 if (_json.containsKey("steps")) { | 829 if (_json.containsKey("steps")) { |
| 828 steps = _json["steps"].map((value) => new BuildStep.fromJson(value)).toLis
t(); | 830 steps = _json["steps"].map((value) => new BuildStep.fromJson(value)).toLis
t(); |
| 829 } | 831 } |
| 832 if (_json.containsKey("substitutions")) { |
| 833 substitutions = _json["substitutions"]; |
| 834 } |
| 830 if (_json.containsKey("timeout")) { | 835 if (_json.containsKey("timeout")) { |
| 831 timeout = _json["timeout"]; | 836 timeout = _json["timeout"]; |
| 832 } | 837 } |
| 833 } | 838 } |
| 834 | 839 |
| 835 core.Map toJson() { | 840 core.Map toJson() { |
| 836 var _json = new core.Map(); | 841 var _json = new core.Map(); |
| 837 if (buildTriggerId != null) { | 842 if (buildTriggerId != null) { |
| 838 _json["buildTriggerId"] = buildTriggerId; | 843 _json["buildTriggerId"] = buildTriggerId; |
| 839 } | 844 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 } | 880 } |
| 876 if (status != null) { | 881 if (status != null) { |
| 877 _json["status"] = status; | 882 _json["status"] = status; |
| 878 } | 883 } |
| 879 if (statusDetail != null) { | 884 if (statusDetail != null) { |
| 880 _json["statusDetail"] = statusDetail; | 885 _json["statusDetail"] = statusDetail; |
| 881 } | 886 } |
| 882 if (steps != null) { | 887 if (steps != null) { |
| 883 _json["steps"] = steps.map((value) => (value).toJson()).toList(); | 888 _json["steps"] = steps.map((value) => (value).toJson()).toList(); |
| 884 } | 889 } |
| 890 if (substitutions != null) { |
| 891 _json["substitutions"] = substitutions; |
| 892 } |
| 885 if (timeout != null) { | 893 if (timeout != null) { |
| 886 _json["timeout"] = timeout; | 894 _json["timeout"] = timeout; |
| 887 } | 895 } |
| 888 return _json; | 896 return _json; |
| 889 } | 897 } |
| 890 } | 898 } |
| 891 | 899 |
| 892 /** Metadata for build operations. */ | 900 /** Metadata for build operations. */ |
| 893 class BuildOperationMetadata { | 901 class BuildOperationMetadata { |
| 894 /** The build that the operation is tracking. */ | 902 /** The build that the operation is tracking. */ |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1081 * Path, from the source root, to a file whose contents is used for the | 1089 * Path, from the source root, to a file whose contents is used for the |
| 1082 * template. | 1090 * template. |
| 1083 */ | 1091 */ |
| 1084 core.String filename; | 1092 core.String filename; |
| 1085 /** | 1093 /** |
| 1086 * Unique identifier of the trigger. | 1094 * Unique identifier of the trigger. |
| 1087 * | 1095 * |
| 1088 * @OutputOnly | 1096 * @OutputOnly |
| 1089 */ | 1097 */ |
| 1090 core.String id; | 1098 core.String id; |
| 1099 /** Substitutions data for Build resource. */ |
| 1100 core.Map<core.String, core.String> substitutions; |
| 1091 /** | 1101 /** |
| 1092 * Template describing the types of source changes to trigger a build. | 1102 * Template describing the types of source changes to trigger a build. |
| 1093 * | 1103 * |
| 1094 * Branch and tag names in trigger templates are interpreted as regular | 1104 * Branch and tag names in trigger templates are interpreted as regular |
| 1095 * expressions. Any branch or tag change that matches that regular expression | 1105 * expressions. Any branch or tag change that matches that regular expression |
| 1096 * will trigger a build. | 1106 * will trigger a build. |
| 1097 */ | 1107 */ |
| 1098 RepoSource triggerTemplate; | 1108 RepoSource triggerTemplate; |
| 1099 | 1109 |
| 1100 BuildTrigger(); | 1110 BuildTrigger(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1111 } | 1121 } |
| 1112 if (_json.containsKey("disabled")) { | 1122 if (_json.containsKey("disabled")) { |
| 1113 disabled = _json["disabled"]; | 1123 disabled = _json["disabled"]; |
| 1114 } | 1124 } |
| 1115 if (_json.containsKey("filename")) { | 1125 if (_json.containsKey("filename")) { |
| 1116 filename = _json["filename"]; | 1126 filename = _json["filename"]; |
| 1117 } | 1127 } |
| 1118 if (_json.containsKey("id")) { | 1128 if (_json.containsKey("id")) { |
| 1119 id = _json["id"]; | 1129 id = _json["id"]; |
| 1120 } | 1130 } |
| 1131 if (_json.containsKey("substitutions")) { |
| 1132 substitutions = _json["substitutions"]; |
| 1133 } |
| 1121 if (_json.containsKey("triggerTemplate")) { | 1134 if (_json.containsKey("triggerTemplate")) { |
| 1122 triggerTemplate = new RepoSource.fromJson(_json["triggerTemplate"]); | 1135 triggerTemplate = new RepoSource.fromJson(_json["triggerTemplate"]); |
| 1123 } | 1136 } |
| 1124 } | 1137 } |
| 1125 | 1138 |
| 1126 core.Map toJson() { | 1139 core.Map toJson() { |
| 1127 var _json = new core.Map(); | 1140 var _json = new core.Map(); |
| 1128 if (build != null) { | 1141 if (build != null) { |
| 1129 _json["build"] = (build).toJson(); | 1142 _json["build"] = (build).toJson(); |
| 1130 } | 1143 } |
| 1131 if (createTime != null) { | 1144 if (createTime != null) { |
| 1132 _json["createTime"] = createTime; | 1145 _json["createTime"] = createTime; |
| 1133 } | 1146 } |
| 1134 if (description != null) { | 1147 if (description != null) { |
| 1135 _json["description"] = description; | 1148 _json["description"] = description; |
| 1136 } | 1149 } |
| 1137 if (disabled != null) { | 1150 if (disabled != null) { |
| 1138 _json["disabled"] = disabled; | 1151 _json["disabled"] = disabled; |
| 1139 } | 1152 } |
| 1140 if (filename != null) { | 1153 if (filename != null) { |
| 1141 _json["filename"] = filename; | 1154 _json["filename"] = filename; |
| 1142 } | 1155 } |
| 1143 if (id != null) { | 1156 if (id != null) { |
| 1144 _json["id"] = id; | 1157 _json["id"] = id; |
| 1145 } | 1158 } |
| 1159 if (substitutions != null) { |
| 1160 _json["substitutions"] = substitutions; |
| 1161 } |
| 1146 if (triggerTemplate != null) { | 1162 if (triggerTemplate != null) { |
| 1147 _json["triggerTemplate"] = (triggerTemplate).toJson(); | 1163 _json["triggerTemplate"] = (triggerTemplate).toJson(); |
| 1148 } | 1164 } |
| 1149 return _json; | 1165 return _json; |
| 1150 } | 1166 } |
| 1151 } | 1167 } |
| 1152 | 1168 |
| 1153 /** BuiltImage describes an image built by the pipeline. */ | 1169 /** BuiltImage describes an image built by the pipeline. */ |
| 1154 class BuiltImage { | 1170 class BuiltImage { |
| 1155 /** Docker Registry 2.0 digest. */ | 1171 /** Docker Registry 2.0 digest. */ |
| (...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1803 } | 1819 } |
| 1804 if (generation != null) { | 1820 if (generation != null) { |
| 1805 _json["generation"] = generation; | 1821 _json["generation"] = generation; |
| 1806 } | 1822 } |
| 1807 if (object != null) { | 1823 if (object != null) { |
| 1808 _json["object"] = object; | 1824 _json["object"] = object; |
| 1809 } | 1825 } |
| 1810 return _json; | 1826 return _json; |
| 1811 } | 1827 } |
| 1812 } | 1828 } |
| OLD | NEW |