| 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_beta.toolresults.v1beta3; | 3 library googleapis_beta.toolresults.v1beta3; |
| 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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 downloadOptions: _downloadOptions); | 632 downloadOptions: _downloadOptions); |
| 633 return _response.then((data) => new Execution.fromJson(data)); | 633 return _response.then((data) => new Execution.fromJson(data)); |
| 634 } | 634 } |
| 635 | 635 |
| 636 } | 636 } |
| 637 | 637 |
| 638 | 638 |
| 639 class ProjectsHistoriesExecutionsStepsResourceApi { | 639 class ProjectsHistoriesExecutionsStepsResourceApi { |
| 640 final commons.ApiRequester _requester; | 640 final commons.ApiRequester _requester; |
| 641 | 641 |
| 642 ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi get perfMetricsS
ummary => new ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi(_req
uester); |
| 643 ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi get perfSampleSeri
es => new ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi(_requester
); |
| 642 ProjectsHistoriesExecutionsStepsThumbnailsResourceApi get thumbnails => new Pr
ojectsHistoriesExecutionsStepsThumbnailsResourceApi(_requester); | 644 ProjectsHistoriesExecutionsStepsThumbnailsResourceApi get thumbnails => new Pr
ojectsHistoriesExecutionsStepsThumbnailsResourceApi(_requester); |
| 643 | 645 |
| 644 ProjectsHistoriesExecutionsStepsResourceApi(commons.ApiRequester client) : | 646 ProjectsHistoriesExecutionsStepsResourceApi(commons.ApiRequester client) : |
| 645 _requester = client; | 647 _requester = client; |
| 646 | 648 |
| 647 /** | 649 /** |
| 648 * Creates a Step. | 650 * Creates a Step. |
| 649 * | 651 * |
| 650 * The returned Step will have the id set. | 652 * The returned Step will have the id set. |
| 651 * | 653 * |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 "GET", | 785 "GET", |
| 784 body: _body, | 786 body: _body, |
| 785 queryParams: _queryParams, | 787 queryParams: _queryParams, |
| 786 uploadOptions: _uploadOptions, | 788 uploadOptions: _uploadOptions, |
| 787 uploadMedia: _uploadMedia, | 789 uploadMedia: _uploadMedia, |
| 788 downloadOptions: _downloadOptions); | 790 downloadOptions: _downloadOptions); |
| 789 return _response.then((data) => new Step.fromJson(data)); | 791 return _response.then((data) => new Step.fromJson(data)); |
| 790 } | 792 } |
| 791 | 793 |
| 792 /** | 794 /** |
| 795 * Retrieves a PerfMetricsSummary. |
| 796 * |
| 797 * May return any of the following error code(s): - NOT_FOUND - The specified |
| 798 * PerfMetricsSummary does not exist |
| 799 * |
| 800 * Request parameters: |
| 801 * |
| 802 * [projectId] - The cloud project |
| 803 * |
| 804 * [historyId] - A tool results history ID. |
| 805 * |
| 806 * [executionId] - A tool results execution ID. |
| 807 * |
| 808 * [stepId] - A tool results step ID. |
| 809 * |
| 810 * Completes with a [PerfMetricsSummary]. |
| 811 * |
| 812 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 813 * error. |
| 814 * |
| 815 * If the used [http.Client] completes with an error when making a REST call, |
| 816 * this method will complete with the same error. |
| 817 */ |
| 818 async.Future<PerfMetricsSummary> getPerfMetricsSummary(core.String projectId,
core.String historyId, core.String executionId, core.String stepId) { |
| 819 var _url = null; |
| 820 var _queryParams = new core.Map(); |
| 821 var _uploadMedia = null; |
| 822 var _uploadOptions = null; |
| 823 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 824 var _body = null; |
| 825 |
| 826 if (projectId == null) { |
| 827 throw new core.ArgumentError("Parameter projectId is required."); |
| 828 } |
| 829 if (historyId == null) { |
| 830 throw new core.ArgumentError("Parameter historyId is required."); |
| 831 } |
| 832 if (executionId == null) { |
| 833 throw new core.ArgumentError("Parameter executionId is required."); |
| 834 } |
| 835 if (stepId == null) { |
| 836 throw new core.ArgumentError("Parameter stepId is required."); |
| 837 } |
| 838 |
| 839 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons
.Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar
iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId') + '
/perfMetricsSummary'; |
| 840 |
| 841 var _response = _requester.request(_url, |
| 842 "GET", |
| 843 body: _body, |
| 844 queryParams: _queryParams, |
| 845 uploadOptions: _uploadOptions, |
| 846 uploadMedia: _uploadMedia, |
| 847 downloadOptions: _downloadOptions); |
| 848 return _response.then((data) => new PerfMetricsSummary.fromJson(data)); |
| 849 } |
| 850 |
| 851 /** |
| 793 * Lists Steps for a given Execution. | 852 * Lists Steps for a given Execution. |
| 794 * | 853 * |
| 795 * The steps are sorted by creation_time in descending order. The step_id key | 854 * The steps are sorted by creation_time in descending order. The step_id key |
| 796 * will be used to order the steps with the same creation_time. | 855 * will be used to order the steps with the same creation_time. |
| 797 * | 856 * |
| 798 * May return any of the following canonical error codes: | 857 * May return any of the following canonical error codes: |
| 799 * | 858 * |
| 800 * - PERMISSION_DENIED - if the user is not authorized to read project - | 859 * - PERMISSION_DENIED - if the user is not authorized to read project - |
| 801 * INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if | 860 * INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if |
| 802 * an argument in the request happens to be invalid; e.g. if an attempt is | 861 * an argument in the request happens to be invalid; e.g. if an attempt is |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 * Required. | 1042 * Required. |
| 984 * | 1043 * |
| 985 * [stepId] - A Step id. Note: This step must include a TestExecutionStep. | 1044 * [stepId] - A Step id. Note: This step must include a TestExecutionStep. |
| 986 * | 1045 * |
| 987 * Required. | 1046 * Required. |
| 988 * | 1047 * |
| 989 * Completes with a [Step]. | 1048 * Completes with a [Step]. |
| 990 * | 1049 * |
| 991 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1050 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 992 * error. | 1051 * error. |
| 1052 * |
| 1053 * If the used [http.Client] completes with an error when making a REST call, |
| 1054 * this method will complete with the same error. |
| 1055 */ |
| 1056 async.Future<Step> publishXunitXmlFiles(PublishXunitXmlFilesRequest request, c
ore.String projectId, core.String historyId, core.String executionId, core.Strin
g stepId) { |
| 1057 var _url = null; |
| 1058 var _queryParams = new core.Map(); |
| 1059 var _uploadMedia = null; |
| 1060 var _uploadOptions = null; |
| 1061 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1062 var _body = null; |
| 1063 |
| 1064 if (request != null) { |
| 1065 _body = convert.JSON.encode((request).toJson()); |
| 1066 } |
| 1067 if (projectId == null) { |
| 1068 throw new core.ArgumentError("Parameter projectId is required."); |
| 1069 } |
| 1070 if (historyId == null) { |
| 1071 throw new core.ArgumentError("Parameter historyId is required."); |
| 1072 } |
| 1073 if (executionId == null) { |
| 1074 throw new core.ArgumentError("Parameter executionId is required."); |
| 1075 } |
| 1076 if (stepId == null) { |
| 1077 throw new core.ArgumentError("Parameter stepId is required."); |
| 1078 } |
| 1079 |
| 1080 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons
.Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar
iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId') + '
:publishXunitXmlFiles'; |
| 1081 |
| 1082 var _response = _requester.request(_url, |
| 1083 "POST", |
| 1084 body: _body, |
| 1085 queryParams: _queryParams, |
| 1086 uploadOptions: _uploadOptions, |
| 1087 uploadMedia: _uploadMedia, |
| 1088 downloadOptions: _downloadOptions); |
| 1089 return _response.then((data) => new Step.fromJson(data)); |
| 1090 } |
| 1091 |
| 1092 } |
| 1093 |
| 1094 |
| 1095 class ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi { |
| 1096 final commons.ApiRequester _requester; |
| 1097 |
| 1098 ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi(commons.ApiReque
ster client) : |
| 1099 _requester = client; |
| 1100 |
| 1101 /** |
| 1102 * Creates a PerfMetricsSummary resource. |
| 1103 * |
| 1104 * May return any of the following error code(s): - ALREADY_EXISTS - A |
| 1105 * PerfMetricSummary already exists for the given Step - NOT_FOUND - The |
| 1106 * containing Step does not exist |
| 1107 * |
| 1108 * [request] - The metadata request object. |
| 1109 * |
| 1110 * Request parameters: |
| 1111 * |
| 1112 * [projectId] - The cloud project |
| 1113 * |
| 1114 * [historyId] - A tool results history ID. |
| 1115 * |
| 1116 * [executionId] - A tool results execution ID. |
| 1117 * |
| 1118 * [stepId] - A tool results step ID. |
| 1119 * |
| 1120 * Completes with a [PerfMetricsSummary]. |
| 1121 * |
| 1122 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1123 * error. |
| 1124 * |
| 1125 * If the used [http.Client] completes with an error when making a REST call, |
| 1126 * this method will complete with the same error. |
| 1127 */ |
| 1128 async.Future<PerfMetricsSummary> create(PerfMetricsSummary request, core.Strin
g projectId, core.String historyId, core.String executionId, core.String stepId)
{ |
| 1129 var _url = null; |
| 1130 var _queryParams = new core.Map(); |
| 1131 var _uploadMedia = null; |
| 1132 var _uploadOptions = null; |
| 1133 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1134 var _body = null; |
| 1135 |
| 1136 if (request != null) { |
| 1137 _body = convert.JSON.encode((request).toJson()); |
| 1138 } |
| 1139 if (projectId == null) { |
| 1140 throw new core.ArgumentError("Parameter projectId is required."); |
| 1141 } |
| 1142 if (historyId == null) { |
| 1143 throw new core.ArgumentError("Parameter historyId is required."); |
| 1144 } |
| 1145 if (executionId == null) { |
| 1146 throw new core.ArgumentError("Parameter executionId is required."); |
| 1147 } |
| 1148 if (stepId == null) { |
| 1149 throw new core.ArgumentError("Parameter stepId is required."); |
| 1150 } |
| 1151 |
| 1152 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons
.Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar
iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId') + '
/perfMetricsSummary'; |
| 1153 |
| 1154 var _response = _requester.request(_url, |
| 1155 "POST", |
| 1156 body: _body, |
| 1157 queryParams: _queryParams, |
| 1158 uploadOptions: _uploadOptions, |
| 1159 uploadMedia: _uploadMedia, |
| 1160 downloadOptions: _downloadOptions); |
| 1161 return _response.then((data) => new PerfMetricsSummary.fromJson(data)); |
| 1162 } |
| 1163 |
| 1164 } |
| 1165 |
| 1166 |
| 1167 class ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi { |
| 1168 final commons.ApiRequester _requester; |
| 1169 |
| 1170 ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesResourceApi get samples
=> new ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesResourceApi(_requ
ester); |
| 1171 |
| 1172 ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi(commons.ApiRequest
er client) : |
| 1173 _requester = client; |
| 1174 |
| 1175 /** |
| 1176 * Creates a PerfSampleSeries. |
| 1177 * |
| 1178 * May return any of the following error code(s): - ALREADY_EXISTS - |
| 1179 * PerfMetricSummary already exists for the given Step - NOT_FOUND - The |
| 1180 * containing Step does not exist |
| 1181 * |
| 1182 * [request] - The metadata request object. |
| 1183 * |
| 1184 * Request parameters: |
| 1185 * |
| 1186 * [projectId] - The cloud project |
| 1187 * |
| 1188 * [historyId] - A tool results history ID. |
| 1189 * |
| 1190 * [executionId] - A tool results execution ID. |
| 1191 * |
| 1192 * [stepId] - A tool results step ID. |
| 1193 * |
| 1194 * Completes with a [PerfSampleSeries]. |
| 1195 * |
| 1196 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1197 * error. |
| 1198 * |
| 1199 * If the used [http.Client] completes with an error when making a REST call, |
| 1200 * this method will complete with the same error. |
| 1201 */ |
| 1202 async.Future<PerfSampleSeries> create(PerfSampleSeries request, core.String pr
ojectId, core.String historyId, core.String executionId, core.String stepId) { |
| 1203 var _url = null; |
| 1204 var _queryParams = new core.Map(); |
| 1205 var _uploadMedia = null; |
| 1206 var _uploadOptions = null; |
| 1207 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1208 var _body = null; |
| 1209 |
| 1210 if (request != null) { |
| 1211 _body = convert.JSON.encode((request).toJson()); |
| 1212 } |
| 1213 if (projectId == null) { |
| 1214 throw new core.ArgumentError("Parameter projectId is required."); |
| 1215 } |
| 1216 if (historyId == null) { |
| 1217 throw new core.ArgumentError("Parameter historyId is required."); |
| 1218 } |
| 1219 if (executionId == null) { |
| 1220 throw new core.ArgumentError("Parameter executionId is required."); |
| 1221 } |
| 1222 if (stepId == null) { |
| 1223 throw new core.ArgumentError("Parameter stepId is required."); |
| 1224 } |
| 1225 |
| 1226 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons
.Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar
iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId') + '
/perfSampleSeries'; |
| 1227 |
| 1228 var _response = _requester.request(_url, |
| 1229 "POST", |
| 1230 body: _body, |
| 1231 queryParams: _queryParams, |
| 1232 uploadOptions: _uploadOptions, |
| 1233 uploadMedia: _uploadMedia, |
| 1234 downloadOptions: _downloadOptions); |
| 1235 return _response.then((data) => new PerfSampleSeries.fromJson(data)); |
| 1236 } |
| 1237 |
| 1238 /** |
| 1239 * Gets a PerfSampleSeries. |
| 1240 * |
| 1241 * May return any of the following error code(s): - NOT_FOUND - The specified |
| 1242 * PerfSampleSeries does not exist |
| 1243 * |
| 1244 * Request parameters: |
| 1245 * |
| 1246 * [projectId] - The cloud project |
| 1247 * |
| 1248 * [historyId] - A tool results history ID. |
| 1249 * |
| 1250 * [executionId] - A tool results execution ID. |
| 1251 * |
| 1252 * [stepId] - A tool results step ID. |
| 1253 * |
| 1254 * [sampleSeriesId] - A sample series id |
| 1255 * |
| 1256 * Completes with a [PerfSampleSeries]. |
| 1257 * |
| 1258 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1259 * error. |
| 1260 * |
| 1261 * If the used [http.Client] completes with an error when making a REST call, |
| 1262 * this method will complete with the same error. |
| 1263 */ |
| 1264 async.Future<PerfSampleSeries> get(core.String projectId, core.String historyI
d, core.String executionId, core.String stepId, core.String sampleSeriesId) { |
| 1265 var _url = null; |
| 1266 var _queryParams = new core.Map(); |
| 1267 var _uploadMedia = null; |
| 1268 var _uploadOptions = null; |
| 1269 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1270 var _body = null; |
| 1271 |
| 1272 if (projectId == null) { |
| 1273 throw new core.ArgumentError("Parameter projectId is required."); |
| 1274 } |
| 1275 if (historyId == null) { |
| 1276 throw new core.ArgumentError("Parameter historyId is required."); |
| 1277 } |
| 1278 if (executionId == null) { |
| 1279 throw new core.ArgumentError("Parameter executionId is required."); |
| 1280 } |
| 1281 if (stepId == null) { |
| 1282 throw new core.ArgumentError("Parameter stepId is required."); |
| 1283 } |
| 1284 if (sampleSeriesId == null) { |
| 1285 throw new core.ArgumentError("Parameter sampleSeriesId is required."); |
| 1286 } |
| 1287 |
| 1288 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons
.Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar
iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId') + '
/perfSampleSeries/' + commons.Escaper.ecapeVariable('$sampleSeriesId'); |
| 1289 |
| 1290 var _response = _requester.request(_url, |
| 1291 "GET", |
| 1292 body: _body, |
| 1293 queryParams: _queryParams, |
| 1294 uploadOptions: _uploadOptions, |
| 1295 uploadMedia: _uploadMedia, |
| 1296 downloadOptions: _downloadOptions); |
| 1297 return _response.then((data) => new PerfSampleSeries.fromJson(data)); |
| 1298 } |
| 1299 |
| 1300 /** |
| 1301 * Lists PerfSampleSeries for a given Step. |
| 1302 * |
| 1303 * The request provides an optional filter which specifies one or more |
| 1304 * PerfMetricsType to include in the result; if none returns all. The |
| 1305 * resulting PerfSampleSeries are sorted by ids. |
| 1306 * |
| 1307 * May return any of the following canonical error codes: - NOT_FOUND - The |
| 1308 * containing Step does not exist |
| 1309 * |
| 1310 * Request parameters: |
| 1311 * |
| 1312 * [projectId] - The cloud project |
| 1313 * |
| 1314 * [historyId] - A tool results history ID. |
| 1315 * |
| 1316 * [executionId] - A tool results execution ID. |
| 1317 * |
| 1318 * [stepId] - A tool results step ID. |
| 1319 * |
| 1320 * [filter] - Specify one or more PerfMetricType values such as CPU to filter |
| 1321 * the result |
| 1322 * |
| 1323 * Completes with a [ListPerfSampleSeriesResponse]. |
| 1324 * |
| 1325 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1326 * error. |
| 1327 * |
| 1328 * If the used [http.Client] completes with an error when making a REST call, |
| 1329 * this method will complete with the same error. |
| 1330 */ |
| 1331 async.Future<ListPerfSampleSeriesResponse> list(core.String projectId, core.St
ring historyId, core.String executionId, core.String stepId, {core.List<core.Str
ing> filter}) { |
| 1332 var _url = null; |
| 1333 var _queryParams = new core.Map(); |
| 1334 var _uploadMedia = null; |
| 1335 var _uploadOptions = null; |
| 1336 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1337 var _body = null; |
| 1338 |
| 1339 if (projectId == null) { |
| 1340 throw new core.ArgumentError("Parameter projectId is required."); |
| 1341 } |
| 1342 if (historyId == null) { |
| 1343 throw new core.ArgumentError("Parameter historyId is required."); |
| 1344 } |
| 1345 if (executionId == null) { |
| 1346 throw new core.ArgumentError("Parameter executionId is required."); |
| 1347 } |
| 1348 if (stepId == null) { |
| 1349 throw new core.ArgumentError("Parameter stepId is required."); |
| 1350 } |
| 1351 if (filter != null) { |
| 1352 _queryParams["filter"] = filter; |
| 1353 } |
| 1354 |
| 1355 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons
.Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar
iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId') + '
/perfSampleSeries'; |
| 1356 |
| 1357 var _response = _requester.request(_url, |
| 1358 "GET", |
| 1359 body: _body, |
| 1360 queryParams: _queryParams, |
| 1361 uploadOptions: _uploadOptions, |
| 1362 uploadMedia: _uploadMedia, |
| 1363 downloadOptions: _downloadOptions); |
| 1364 return _response.then((data) => new ListPerfSampleSeriesResponse.fromJson(da
ta)); |
| 1365 } |
| 1366 |
| 1367 } |
| 1368 |
| 1369 |
| 1370 class ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesResourceApi { |
| 1371 final commons.ApiRequester _requester; |
| 1372 |
| 1373 ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesResourceApi(commons.Api
Requester client) : |
| 1374 _requester = client; |
| 1375 |
| 1376 /** |
| 1377 * Creates a batch of PerfSamples - a client can submit multiple batches of |
| 1378 * Perf Samples through repeated calls to this method in order to split up a |
| 1379 * large request payload - duplicates and existing timestamp entries will be |
| 1380 * ignored. - the batch operation may partially succeed - the set of elements |
| 1381 * successfully inserted is returned in the response (omits items which |
| 1382 * already existed in the database). |
| 1383 * |
| 1384 * May return any of the following canonical error codes: - NOT_FOUND - The |
| 1385 * containing PerfSampleSeries does not exist |
| 1386 * |
| 1387 * [request] - The metadata request object. |
| 1388 * |
| 1389 * Request parameters: |
| 1390 * |
| 1391 * [projectId] - The cloud project |
| 1392 * |
| 1393 * [historyId] - A tool results history ID. |
| 1394 * |
| 1395 * [executionId] - A tool results execution ID. |
| 1396 * |
| 1397 * [stepId] - A tool results step ID. |
| 1398 * |
| 1399 * [sampleSeriesId] - A sample series id |
| 1400 * |
| 1401 * Completes with a [BatchCreatePerfSamplesResponse]. |
| 1402 * |
| 1403 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1404 * error. |
| 1405 * |
| 1406 * If the used [http.Client] completes with an error when making a REST call, |
| 1407 * this method will complete with the same error. |
| 1408 */ |
| 1409 async.Future<BatchCreatePerfSamplesResponse> batchCreate(BatchCreatePerfSample
sRequest request, core.String projectId, core.String historyId, core.String exec
utionId, core.String stepId, core.String sampleSeriesId) { |
| 1410 var _url = null; |
| 1411 var _queryParams = new core.Map(); |
| 1412 var _uploadMedia = null; |
| 1413 var _uploadOptions = null; |
| 1414 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1415 var _body = null; |
| 1416 |
| 1417 if (request != null) { |
| 1418 _body = convert.JSON.encode((request).toJson()); |
| 1419 } |
| 1420 if (projectId == null) { |
| 1421 throw new core.ArgumentError("Parameter projectId is required."); |
| 1422 } |
| 1423 if (historyId == null) { |
| 1424 throw new core.ArgumentError("Parameter historyId is required."); |
| 1425 } |
| 1426 if (executionId == null) { |
| 1427 throw new core.ArgumentError("Parameter executionId is required."); |
| 1428 } |
| 1429 if (stepId == null) { |
| 1430 throw new core.ArgumentError("Parameter stepId is required."); |
| 1431 } |
| 1432 if (sampleSeriesId == null) { |
| 1433 throw new core.ArgumentError("Parameter sampleSeriesId is required."); |
| 1434 } |
| 1435 |
| 1436 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons
.Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar
iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId') + '
/perfSampleSeries/' + commons.Escaper.ecapeVariable('$sampleSeriesId') + '/sampl
es:batchCreate'; |
| 1437 |
| 1438 var _response = _requester.request(_url, |
| 1439 "POST", |
| 1440 body: _body, |
| 1441 queryParams: _queryParams, |
| 1442 uploadOptions: _uploadOptions, |
| 1443 uploadMedia: _uploadMedia, |
| 1444 downloadOptions: _downloadOptions); |
| 1445 return _response.then((data) => new BatchCreatePerfSamplesResponse.fromJson(
data)); |
| 1446 } |
| 1447 |
| 1448 /** |
| 1449 * Lists the Performance Samples of a given Sample Series - The list results |
| 1450 * are sorted by timestamps ascending - The default page size is 500 samples; |
| 1451 * and maximum size allowed 5000 - The response token indicates the last |
| 1452 * returned PerfSample timestamp - When the results size exceeds the page |
| 1453 * size, submit a subsequent request including the page token to return the |
| 1454 * rest of the samples up to the page limit |
| 1455 * |
| 1456 * May return any of the following canonical error codes: - OUT_OF_RANGE - The |
| 1457 * specified request page_token is out of valid range - NOT_FOUND - The |
| 1458 * containing PerfSampleSeries does not exist |
| 1459 * |
| 1460 * Request parameters: |
| 1461 * |
| 1462 * [projectId] - The cloud project |
| 1463 * |
| 1464 * [historyId] - A tool results history ID. |
| 1465 * |
| 1466 * [executionId] - A tool results execution ID. |
| 1467 * |
| 1468 * [stepId] - A tool results step ID. |
| 1469 * |
| 1470 * [sampleSeriesId] - A sample series id |
| 1471 * |
| 1472 * [pageSize] - The default page size is 500 samples, and the maximum size is |
| 1473 * 5000. If the page_size is greater than 5000, the effective page size will |
| 1474 * be 5000 |
| 1475 * |
| 1476 * [pageToken] - Optional, the next_page_token returned in the previous |
| 1477 * response |
| 1478 * |
| 1479 * Completes with a [ListPerfSamplesResponse]. |
| 1480 * |
| 1481 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1482 * error. |
| 993 * | 1483 * |
| 994 * If the used [http.Client] completes with an error when making a REST call, | 1484 * If the used [http.Client] completes with an error when making a REST call, |
| 995 * this method will complete with the same error. | 1485 * this method will complete with the same error. |
| 996 */ | 1486 */ |
| 997 async.Future<Step> publishXunitXmlFiles(PublishXunitXmlFilesRequest request, c
ore.String projectId, core.String historyId, core.String executionId, core.Strin
g stepId) { | 1487 async.Future<ListPerfSamplesResponse> list(core.String projectId, core.String
historyId, core.String executionId, core.String stepId, core.String sampleSeries
Id, {core.int pageSize, core.String pageToken}) { |
| 998 var _url = null; | 1488 var _url = null; |
| 999 var _queryParams = new core.Map(); | 1489 var _queryParams = new core.Map(); |
| 1000 var _uploadMedia = null; | 1490 var _uploadMedia = null; |
| 1001 var _uploadOptions = null; | 1491 var _uploadOptions = null; |
| 1002 var _downloadOptions = commons.DownloadOptions.Metadata; | 1492 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1003 var _body = null; | 1493 var _body = null; |
| 1004 | 1494 |
| 1005 if (request != null) { | |
| 1006 _body = convert.JSON.encode((request).toJson()); | |
| 1007 } | |
| 1008 if (projectId == null) { | 1495 if (projectId == null) { |
| 1009 throw new core.ArgumentError("Parameter projectId is required."); | 1496 throw new core.ArgumentError("Parameter projectId is required."); |
| 1010 } | 1497 } |
| 1011 if (historyId == null) { | 1498 if (historyId == null) { |
| 1012 throw new core.ArgumentError("Parameter historyId is required."); | 1499 throw new core.ArgumentError("Parameter historyId is required."); |
| 1013 } | 1500 } |
| 1014 if (executionId == null) { | 1501 if (executionId == null) { |
| 1015 throw new core.ArgumentError("Parameter executionId is required."); | 1502 throw new core.ArgumentError("Parameter executionId is required."); |
| 1016 } | 1503 } |
| 1017 if (stepId == null) { | 1504 if (stepId == null) { |
| 1018 throw new core.ArgumentError("Parameter stepId is required."); | 1505 throw new core.ArgumentError("Parameter stepId is required."); |
| 1019 } | 1506 } |
| 1507 if (sampleSeriesId == null) { |
| 1508 throw new core.ArgumentError("Parameter sampleSeriesId is required."); |
| 1509 } |
| 1510 if (pageSize != null) { |
| 1511 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1512 } |
| 1513 if (pageToken != null) { |
| 1514 _queryParams["pageToken"] = [pageToken]; |
| 1515 } |
| 1020 | 1516 |
| 1021 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons
.Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar
iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId') + '
:publishXunitXmlFiles'; | 1517 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons
.Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar
iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId') + '
/perfSampleSeries/' + commons.Escaper.ecapeVariable('$sampleSeriesId') + '/sampl
es'; |
| 1022 | 1518 |
| 1023 var _response = _requester.request(_url, | 1519 var _response = _requester.request(_url, |
| 1024 "POST", | 1520 "GET", |
| 1025 body: _body, | 1521 body: _body, |
| 1026 queryParams: _queryParams, | 1522 queryParams: _queryParams, |
| 1027 uploadOptions: _uploadOptions, | 1523 uploadOptions: _uploadOptions, |
| 1028 uploadMedia: _uploadMedia, | 1524 uploadMedia: _uploadMedia, |
| 1029 downloadOptions: _downloadOptions); | 1525 downloadOptions: _downloadOptions); |
| 1030 return _response.then((data) => new Step.fromJson(data)); | 1526 return _response.then((data) => new ListPerfSamplesResponse.fromJson(data)); |
| 1031 } | 1527 } |
| 1032 | 1528 |
| 1033 } | 1529 } |
| 1034 | 1530 |
| 1035 | 1531 |
| 1036 class ProjectsHistoriesExecutionsStepsThumbnailsResourceApi { | 1532 class ProjectsHistoriesExecutionsStepsThumbnailsResourceApi { |
| 1037 final commons.ApiRequester _requester; | 1533 final commons.ApiRequester _requester; |
| 1038 | 1534 |
| 1039 ProjectsHistoriesExecutionsStepsThumbnailsResourceApi(commons.ApiRequester cli
ent) : | 1535 ProjectsHistoriesExecutionsStepsThumbnailsResourceApi(commons.ApiRequester cli
ent) : |
| 1040 _requester = client; | 1536 _requester = client; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1225 _json["typeUrl"] = typeUrl; | 1721 _json["typeUrl"] = typeUrl; |
| 1226 } | 1722 } |
| 1227 if (value != null) { | 1723 if (value != null) { |
| 1228 _json["value"] = value; | 1724 _json["value"] = value; |
| 1229 } | 1725 } |
| 1230 return _json; | 1726 return _json; |
| 1231 } | 1727 } |
| 1232 } | 1728 } |
| 1233 | 1729 |
| 1234 /** | 1730 /** |
| 1731 * Encapsulates the metadata for basic sample series represented by a line chart |
| 1732 */ |
| 1733 class BasicPerfSampleSeries { |
| 1734 /** |
| 1735 * |
| 1736 * Possible string values are: |
| 1737 * - "cpu" |
| 1738 * - "memory" |
| 1739 * - "network" |
| 1740 * - "perfMetricTypeUnspecified" |
| 1741 */ |
| 1742 core.String perfMetricType; |
| 1743 /** |
| 1744 * |
| 1745 * Possible string values are: |
| 1746 * - "kibibyte" |
| 1747 * - "percent" |
| 1748 * - "perfUnitUnspecified" |
| 1749 */ |
| 1750 core.String perfUnit; |
| 1751 /** |
| 1752 * |
| 1753 * Possible string values are: |
| 1754 * - "cpuKernel" |
| 1755 * - "cpuTotal" |
| 1756 * - "cpuUser" |
| 1757 * - "memoryRssPrivate" |
| 1758 * - "memoryRssShared" |
| 1759 * - "memoryRssTotal" |
| 1760 * - "ntBytesReceived" |
| 1761 * - "ntBytesTransferred" |
| 1762 * - "sampleSeriesTypeUnspecified" |
| 1763 */ |
| 1764 core.String sampleSeriesLabel; |
| 1765 |
| 1766 BasicPerfSampleSeries(); |
| 1767 |
| 1768 BasicPerfSampleSeries.fromJson(core.Map _json) { |
| 1769 if (_json.containsKey("perfMetricType")) { |
| 1770 perfMetricType = _json["perfMetricType"]; |
| 1771 } |
| 1772 if (_json.containsKey("perfUnit")) { |
| 1773 perfUnit = _json["perfUnit"]; |
| 1774 } |
| 1775 if (_json.containsKey("sampleSeriesLabel")) { |
| 1776 sampleSeriesLabel = _json["sampleSeriesLabel"]; |
| 1777 } |
| 1778 } |
| 1779 |
| 1780 core.Map toJson() { |
| 1781 var _json = new core.Map(); |
| 1782 if (perfMetricType != null) { |
| 1783 _json["perfMetricType"] = perfMetricType; |
| 1784 } |
| 1785 if (perfUnit != null) { |
| 1786 _json["perfUnit"] = perfUnit; |
| 1787 } |
| 1788 if (sampleSeriesLabel != null) { |
| 1789 _json["sampleSeriesLabel"] = sampleSeriesLabel; |
| 1790 } |
| 1791 return _json; |
| 1792 } |
| 1793 } |
| 1794 |
| 1795 /** |
| 1796 * The request must provide up to a maximum of 5000 samples to be created; a |
| 1797 * larger sample size will cause an INVALID_ARGUMENT error |
| 1798 */ |
| 1799 class BatchCreatePerfSamplesRequest { |
| 1800 /** |
| 1801 * The set of PerfSamples to create should not include existing timestamps |
| 1802 */ |
| 1803 core.List<PerfSample> perfSamples; |
| 1804 |
| 1805 BatchCreatePerfSamplesRequest(); |
| 1806 |
| 1807 BatchCreatePerfSamplesRequest.fromJson(core.Map _json) { |
| 1808 if (_json.containsKey("perfSamples")) { |
| 1809 perfSamples = _json["perfSamples"].map((value) => new PerfSample.fromJson(
value)).toList(); |
| 1810 } |
| 1811 } |
| 1812 |
| 1813 core.Map toJson() { |
| 1814 var _json = new core.Map(); |
| 1815 if (perfSamples != null) { |
| 1816 _json["perfSamples"] = perfSamples.map((value) => (value).toJson()).toList
(); |
| 1817 } |
| 1818 return _json; |
| 1819 } |
| 1820 } |
| 1821 |
| 1822 class BatchCreatePerfSamplesResponse { |
| 1823 core.List<PerfSample> perfSamples; |
| 1824 |
| 1825 BatchCreatePerfSamplesResponse(); |
| 1826 |
| 1827 BatchCreatePerfSamplesResponse.fromJson(core.Map _json) { |
| 1828 if (_json.containsKey("perfSamples")) { |
| 1829 perfSamples = _json["perfSamples"].map((value) => new PerfSample.fromJson(
value)).toList(); |
| 1830 } |
| 1831 } |
| 1832 |
| 1833 core.Map toJson() { |
| 1834 var _json = new core.Map(); |
| 1835 if (perfSamples != null) { |
| 1836 _json["perfSamples"] = perfSamples.map((value) => (value).toJson()).toList
(); |
| 1837 } |
| 1838 return _json; |
| 1839 } |
| 1840 } |
| 1841 |
| 1842 class CPUInfo { |
| 1843 /** |
| 1844 * description of the device processor ie '1.8 GHz hexa core 64-bit ARMv8-A' |
| 1845 */ |
| 1846 core.String cpuProcessor; |
| 1847 /** the CPU clock speed in GHz */ |
| 1848 core.double cpuSpeedInGhz; |
| 1849 /** the number of CPU cores */ |
| 1850 core.int numberOfCores; |
| 1851 |
| 1852 CPUInfo(); |
| 1853 |
| 1854 CPUInfo.fromJson(core.Map _json) { |
| 1855 if (_json.containsKey("cpuProcessor")) { |
| 1856 cpuProcessor = _json["cpuProcessor"]; |
| 1857 } |
| 1858 if (_json.containsKey("cpuSpeedInGhz")) { |
| 1859 cpuSpeedInGhz = _json["cpuSpeedInGhz"]; |
| 1860 } |
| 1861 if (_json.containsKey("numberOfCores")) { |
| 1862 numberOfCores = _json["numberOfCores"]; |
| 1863 } |
| 1864 } |
| 1865 |
| 1866 core.Map toJson() { |
| 1867 var _json = new core.Map(); |
| 1868 if (cpuProcessor != null) { |
| 1869 _json["cpuProcessor"] = cpuProcessor; |
| 1870 } |
| 1871 if (cpuSpeedInGhz != null) { |
| 1872 _json["cpuSpeedInGhz"] = cpuSpeedInGhz; |
| 1873 } |
| 1874 if (numberOfCores != null) { |
| 1875 _json["numberOfCores"] = numberOfCores; |
| 1876 } |
| 1877 return _json; |
| 1878 } |
| 1879 } |
| 1880 |
| 1881 /** |
| 1235 * A Duration represents a signed, fixed-length span of time represented as a | 1882 * A Duration represents a signed, fixed-length span of time represented as a |
| 1236 * count of seconds and fractions of seconds at nanosecond resolution. It is | 1883 * count of seconds and fractions of seconds at nanosecond resolution. It is |
| 1237 * independent of any calendar and concepts like "day" or "month". It is related | 1884 * independent of any calendar and concepts like "day" or "month". It is related |
| 1238 * to Timestamp in that the difference between two Timestamp values is a | 1885 * to Timestamp in that the difference between two Timestamp values is a |
| 1239 * Duration and it can be added or subtracted from a Timestamp. Range is | 1886 * Duration and it can be added or subtracted from a Timestamp. Range is |
| 1240 * approximately +-10,000 years. | 1887 * approximately +-10,000 years. |
| 1241 * | 1888 * |
| 1889 * # Examples |
| 1890 * |
| 1242 * Example 1: Compute Duration from two Timestamps in pseudo code. | 1891 * Example 1: Compute Duration from two Timestamps in pseudo code. |
| 1243 * | 1892 * |
| 1244 * Timestamp start = ...; Timestamp end = ...; Duration duration = ...; | 1893 * Timestamp start = ...; Timestamp end = ...; Duration duration = ...; |
| 1245 * | 1894 * |
| 1246 * duration.seconds = end.seconds - start.seconds; duration.nanos = end.nanos - | 1895 * duration.seconds = end.seconds - start.seconds; duration.nanos = end.nanos - |
| 1247 * start.nanos; | 1896 * start.nanos; |
| 1248 * | 1897 * |
| 1249 * if (duration.seconds 0) { duration.seconds += 1; duration.nanos -= | 1898 * if (duration.seconds 0) { duration.seconds += 1; duration.nanos -= |
| 1250 * 1000000000; } else if (durations.seconds > 0 && duration.nanos < 0) { | 1899 * 1000000000; } else if (durations.seconds > 0 && duration.nanos < 0) { |
| 1251 * duration.seconds -= 1; duration.nanos += 1000000000; } | 1900 * duration.seconds -= 1; duration.nanos += 1000000000; } |
| 1252 * | 1901 * |
| 1253 * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. | 1902 * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. |
| 1254 * | 1903 * |
| 1255 * Timestamp start = ...; Duration duration = ...; Timestamp end = ...; | 1904 * Timestamp start = ...; Duration duration = ...; Timestamp end = ...; |
| 1256 * | 1905 * |
| 1257 * end.seconds = start.seconds + duration.seconds; end.nanos = start.nanos + | 1906 * end.seconds = start.seconds + duration.seconds; end.nanos = start.nanos + |
| 1258 * duration.nanos; | 1907 * duration.nanos; |
| 1259 * | 1908 * |
| 1260 * if (end.nanos = 1000000000) { end.seconds += 1; end.nanos -= 1000000000; } | 1909 * if (end.nanos = 1000000000) { end.seconds += 1; end.nanos -= 1000000000; } |
| 1261 * | 1910 * |
| 1262 * Example 3: Compute Duration from datetime.timedelta in Python. | 1911 * Example 3: Compute Duration from datetime.timedelta in Python. |
| 1263 * | 1912 * |
| 1264 * td = datetime.timedelta(days=3, minutes=10) duration = Duration() | 1913 * td = datetime.timedelta(days=3, minutes=10) duration = Duration() |
| 1265 * duration.FromTimedelta(td) | 1914 * duration.FromTimedelta(td) |
| 1915 * |
| 1916 * # JSON Mapping |
| 1917 * |
| 1918 * In JSON format, the Duration type is encoded as a string rather than an |
| 1919 * object, where the string ends in the suffix "s" (indicating seconds) and is |
| 1920 * preceded by the number of seconds, with nanoseconds expressed as fractional |
| 1921 * seconds. For example, 3 seconds with 0 nanoseconds should be encoded in JSON |
| 1922 * format as "3s", while 3 seconds and 1 nanosecond should be expressed in JSON |
| 1923 * format as "3.000000001s", and 3 seconds and 1 microsecond should be expressed |
| 1924 * in JSON format as "3.000001s". |
| 1266 */ | 1925 */ |
| 1267 class Duration { | 1926 class Duration { |
| 1268 /** | 1927 /** |
| 1269 * Signed fractions of a second at nanosecond resolution of the span of time. | 1928 * Signed fractions of a second at nanosecond resolution of the span of time. |
| 1270 * Durations less than one second are represented with a 0 `seconds` field and | 1929 * Durations less than one second are represented with a 0 `seconds` field and |
| 1271 * a positive or negative `nanos` field. For durations of one second or more, | 1930 * a positive or negative `nanos` field. For durations of one second or more, |
| 1272 * a non-zero value for the `nanos` field must be of the same sign as the | 1931 * a non-zero value for the `nanos` field must be of the same sign as the |
| 1273 * `seconds` field. Must be from -999,999,999 to +999,999,999 inclusive. | 1932 * `seconds` field. Must be from -999,999,999 to +999,999,999 inclusive. |
| 1274 */ | 1933 */ |
| 1275 core.int nanos; | 1934 core.int nanos; |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1741 if (histories != null) { | 2400 if (histories != null) { |
| 1742 _json["histories"] = histories.map((value) => (value).toJson()).toList(); | 2401 _json["histories"] = histories.map((value) => (value).toJson()).toList(); |
| 1743 } | 2402 } |
| 1744 if (nextPageToken != null) { | 2403 if (nextPageToken != null) { |
| 1745 _json["nextPageToken"] = nextPageToken; | 2404 _json["nextPageToken"] = nextPageToken; |
| 1746 } | 2405 } |
| 1747 return _json; | 2406 return _json; |
| 1748 } | 2407 } |
| 1749 } | 2408 } |
| 1750 | 2409 |
| 2410 class ListPerfSampleSeriesResponse { |
| 2411 /** The resulting PerfSampleSeries sorted by id */ |
| 2412 core.List<PerfSampleSeries> perfSampleSeries; |
| 2413 |
| 2414 ListPerfSampleSeriesResponse(); |
| 2415 |
| 2416 ListPerfSampleSeriesResponse.fromJson(core.Map _json) { |
| 2417 if (_json.containsKey("perfSampleSeries")) { |
| 2418 perfSampleSeries = _json["perfSampleSeries"].map((value) => new PerfSample
Series.fromJson(value)).toList(); |
| 2419 } |
| 2420 } |
| 2421 |
| 2422 core.Map toJson() { |
| 2423 var _json = new core.Map(); |
| 2424 if (perfSampleSeries != null) { |
| 2425 _json["perfSampleSeries"] = perfSampleSeries.map((value) => (value).toJson
()).toList(); |
| 2426 } |
| 2427 return _json; |
| 2428 } |
| 2429 } |
| 2430 |
| 2431 class ListPerfSamplesResponse { |
| 2432 /** |
| 2433 * Optional, returned if result size exceeds the page size specified in the |
| 2434 * request (or the default page size, 500, if unspecified). It indicates the |
| 2435 * last sample timestamp to be used as page_token in subsequent request |
| 2436 */ |
| 2437 core.String nextPageToken; |
| 2438 core.List<PerfSample> perfSamples; |
| 2439 |
| 2440 ListPerfSamplesResponse(); |
| 2441 |
| 2442 ListPerfSamplesResponse.fromJson(core.Map _json) { |
| 2443 if (_json.containsKey("nextPageToken")) { |
| 2444 nextPageToken = _json["nextPageToken"]; |
| 2445 } |
| 2446 if (_json.containsKey("perfSamples")) { |
| 2447 perfSamples = _json["perfSamples"].map((value) => new PerfSample.fromJson(
value)).toList(); |
| 2448 } |
| 2449 } |
| 2450 |
| 2451 core.Map toJson() { |
| 2452 var _json = new core.Map(); |
| 2453 if (nextPageToken != null) { |
| 2454 _json["nextPageToken"] = nextPageToken; |
| 2455 } |
| 2456 if (perfSamples != null) { |
| 2457 _json["perfSamples"] = perfSamples.map((value) => (value).toJson()).toList
(); |
| 2458 } |
| 2459 return _json; |
| 2460 } |
| 2461 } |
| 2462 |
| 1751 /** A response containing the thumbnails in a step. */ | 2463 /** A response containing the thumbnails in a step. */ |
| 1752 class ListStepThumbnailsResponse { | 2464 class ListStepThumbnailsResponse { |
| 1753 /** | 2465 /** |
| 1754 * A continuation token to resume the query at the next item. | 2466 * A continuation token to resume the query at the next item. |
| 1755 * | 2467 * |
| 1756 * If set, indicates that there are more thumbnails to read, by calling list | 2468 * If set, indicates that there are more thumbnails to read, by calling list |
| 1757 * again with this value in the page_token field. | 2469 * again with this value in the page_token field. |
| 1758 */ | 2470 */ |
| 1759 core.String nextPageToken; | 2471 core.String nextPageToken; |
| 1760 /** | 2472 /** |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1820 if (nextPageToken != null) { | 2532 if (nextPageToken != null) { |
| 1821 _json["nextPageToken"] = nextPageToken; | 2533 _json["nextPageToken"] = nextPageToken; |
| 1822 } | 2534 } |
| 1823 if (steps != null) { | 2535 if (steps != null) { |
| 1824 _json["steps"] = steps.map((value) => (value).toJson()).toList(); | 2536 _json["steps"] = steps.map((value) => (value).toJson()).toList(); |
| 1825 } | 2537 } |
| 1826 return _json; | 2538 return _json; |
| 1827 } | 2539 } |
| 1828 } | 2540 } |
| 1829 | 2541 |
| 2542 class MemoryInfo { |
| 2543 /** Maximum memory that can be allocated to the process in KiB */ |
| 2544 core.String memoryCapInKibibyte; |
| 2545 /** Total memory available on the device in KiB */ |
| 2546 core.String memoryTotalInKibibyte; |
| 2547 |
| 2548 MemoryInfo(); |
| 2549 |
| 2550 MemoryInfo.fromJson(core.Map _json) { |
| 2551 if (_json.containsKey("memoryCapInKibibyte")) { |
| 2552 memoryCapInKibibyte = _json["memoryCapInKibibyte"]; |
| 2553 } |
| 2554 if (_json.containsKey("memoryTotalInKibibyte")) { |
| 2555 memoryTotalInKibibyte = _json["memoryTotalInKibibyte"]; |
| 2556 } |
| 2557 } |
| 2558 |
| 2559 core.Map toJson() { |
| 2560 var _json = new core.Map(); |
| 2561 if (memoryCapInKibibyte != null) { |
| 2562 _json["memoryCapInKibibyte"] = memoryCapInKibibyte; |
| 2563 } |
| 2564 if (memoryTotalInKibibyte != null) { |
| 2565 _json["memoryTotalInKibibyte"] = memoryTotalInKibibyte; |
| 2566 } |
| 2567 return _json; |
| 2568 } |
| 2569 } |
| 2570 |
| 1830 /** Interprets a result so that humans and machines can act on it. */ | 2571 /** Interprets a result so that humans and machines can act on it. */ |
| 1831 class Outcome { | 2572 class Outcome { |
| 1832 /** | 2573 /** |
| 1833 * More information about a FAILURE outcome. | 2574 * More information about a FAILURE outcome. |
| 1834 * | 2575 * |
| 1835 * Returns INVALID_ARGUMENT if this field is set but the summary is not | 2576 * Returns INVALID_ARGUMENT if this field is set but the summary is not |
| 1836 * FAILURE. | 2577 * FAILURE. |
| 1837 * | 2578 * |
| 1838 * Optional | 2579 * Optional |
| 1839 */ | 2580 */ |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1912 if (successDetail != null) { | 2653 if (successDetail != null) { |
| 1913 _json["successDetail"] = (successDetail).toJson(); | 2654 _json["successDetail"] = (successDetail).toJson(); |
| 1914 } | 2655 } |
| 1915 if (summary != null) { | 2656 if (summary != null) { |
| 1916 _json["summary"] = summary; | 2657 _json["summary"] = summary; |
| 1917 } | 2658 } |
| 1918 return _json; | 2659 return _json; |
| 1919 } | 2660 } |
| 1920 } | 2661 } |
| 1921 | 2662 |
| 2663 /** Encapsulates performance environment info */ |
| 2664 class PerfEnvironment { |
| 2665 /** CPU related environment info */ |
| 2666 CPUInfo cpuInfo; |
| 2667 /** Memory related environment info */ |
| 2668 MemoryInfo memoryInfo; |
| 2669 |
| 2670 PerfEnvironment(); |
| 2671 |
| 2672 PerfEnvironment.fromJson(core.Map _json) { |
| 2673 if (_json.containsKey("cpuInfo")) { |
| 2674 cpuInfo = new CPUInfo.fromJson(_json["cpuInfo"]); |
| 2675 } |
| 2676 if (_json.containsKey("memoryInfo")) { |
| 2677 memoryInfo = new MemoryInfo.fromJson(_json["memoryInfo"]); |
| 2678 } |
| 2679 } |
| 2680 |
| 2681 core.Map toJson() { |
| 2682 var _json = new core.Map(); |
| 2683 if (cpuInfo != null) { |
| 2684 _json["cpuInfo"] = (cpuInfo).toJson(); |
| 2685 } |
| 2686 if (memoryInfo != null) { |
| 2687 _json["memoryInfo"] = (memoryInfo).toJson(); |
| 2688 } |
| 2689 return _json; |
| 2690 } |
| 2691 } |
| 2692 |
| 2693 /** A summary of perf metrics collected and performance environment info */ |
| 2694 class PerfMetricsSummary { |
| 2695 /** A tool results execution ID. */ |
| 2696 core.String executionId; |
| 2697 /** A tool results history ID. */ |
| 2698 core.String historyId; |
| 2699 /** |
| 2700 * Describes the environment in which the performance metrics were collected |
| 2701 */ |
| 2702 PerfEnvironment perfEnvironment; |
| 2703 /** Set of resource collected */ |
| 2704 core.List<core.String> perfMetrics; |
| 2705 /** The cloud project */ |
| 2706 core.String projectId; |
| 2707 /** A tool results step ID. */ |
| 2708 core.String stepId; |
| 2709 |
| 2710 PerfMetricsSummary(); |
| 2711 |
| 2712 PerfMetricsSummary.fromJson(core.Map _json) { |
| 2713 if (_json.containsKey("executionId")) { |
| 2714 executionId = _json["executionId"]; |
| 2715 } |
| 2716 if (_json.containsKey("historyId")) { |
| 2717 historyId = _json["historyId"]; |
| 2718 } |
| 2719 if (_json.containsKey("perfEnvironment")) { |
| 2720 perfEnvironment = new PerfEnvironment.fromJson(_json["perfEnvironment"]); |
| 2721 } |
| 2722 if (_json.containsKey("perfMetrics")) { |
| 2723 perfMetrics = _json["perfMetrics"]; |
| 2724 } |
| 2725 if (_json.containsKey("projectId")) { |
| 2726 projectId = _json["projectId"]; |
| 2727 } |
| 2728 if (_json.containsKey("stepId")) { |
| 2729 stepId = _json["stepId"]; |
| 2730 } |
| 2731 } |
| 2732 |
| 2733 core.Map toJson() { |
| 2734 var _json = new core.Map(); |
| 2735 if (executionId != null) { |
| 2736 _json["executionId"] = executionId; |
| 2737 } |
| 2738 if (historyId != null) { |
| 2739 _json["historyId"] = historyId; |
| 2740 } |
| 2741 if (perfEnvironment != null) { |
| 2742 _json["perfEnvironment"] = (perfEnvironment).toJson(); |
| 2743 } |
| 2744 if (perfMetrics != null) { |
| 2745 _json["perfMetrics"] = perfMetrics; |
| 2746 } |
| 2747 if (projectId != null) { |
| 2748 _json["projectId"] = projectId; |
| 2749 } |
| 2750 if (stepId != null) { |
| 2751 _json["stepId"] = stepId; |
| 2752 } |
| 2753 return _json; |
| 2754 } |
| 2755 } |
| 2756 |
| 2757 /** Resource representing a single performance measure or data point */ |
| 2758 class PerfSample { |
| 2759 /** Timestamp of collection */ |
| 2760 Timestamp sampleTime; |
| 2761 /** Value observed */ |
| 2762 core.double value; |
| 2763 |
| 2764 PerfSample(); |
| 2765 |
| 2766 PerfSample.fromJson(core.Map _json) { |
| 2767 if (_json.containsKey("sampleTime")) { |
| 2768 sampleTime = new Timestamp.fromJson(_json["sampleTime"]); |
| 2769 } |
| 2770 if (_json.containsKey("value")) { |
| 2771 value = _json["value"]; |
| 2772 } |
| 2773 } |
| 2774 |
| 2775 core.Map toJson() { |
| 2776 var _json = new core.Map(); |
| 2777 if (sampleTime != null) { |
| 2778 _json["sampleTime"] = (sampleTime).toJson(); |
| 2779 } |
| 2780 if (value != null) { |
| 2781 _json["value"] = value; |
| 2782 } |
| 2783 return _json; |
| 2784 } |
| 2785 } |
| 2786 |
| 2787 /** |
| 2788 * Resource representing a collection of performance samples (or data points) |
| 2789 */ |
| 2790 class PerfSampleSeries { |
| 2791 /** Basic series represented by a line chart */ |
| 2792 BasicPerfSampleSeries basicPerfSampleSeries; |
| 2793 /** A tool results execution ID. */ |
| 2794 core.String executionId; |
| 2795 /** A tool results history ID. */ |
| 2796 core.String historyId; |
| 2797 /** The cloud project */ |
| 2798 core.String projectId; |
| 2799 /** A sample series id */ |
| 2800 core.String sampleSeriesId; |
| 2801 /** A tool results step ID. */ |
| 2802 core.String stepId; |
| 2803 |
| 2804 PerfSampleSeries(); |
| 2805 |
| 2806 PerfSampleSeries.fromJson(core.Map _json) { |
| 2807 if (_json.containsKey("basicPerfSampleSeries")) { |
| 2808 basicPerfSampleSeries = new BasicPerfSampleSeries.fromJson(_json["basicPer
fSampleSeries"]); |
| 2809 } |
| 2810 if (_json.containsKey("executionId")) { |
| 2811 executionId = _json["executionId"]; |
| 2812 } |
| 2813 if (_json.containsKey("historyId")) { |
| 2814 historyId = _json["historyId"]; |
| 2815 } |
| 2816 if (_json.containsKey("projectId")) { |
| 2817 projectId = _json["projectId"]; |
| 2818 } |
| 2819 if (_json.containsKey("sampleSeriesId")) { |
| 2820 sampleSeriesId = _json["sampleSeriesId"]; |
| 2821 } |
| 2822 if (_json.containsKey("stepId")) { |
| 2823 stepId = _json["stepId"]; |
| 2824 } |
| 2825 } |
| 2826 |
| 2827 core.Map toJson() { |
| 2828 var _json = new core.Map(); |
| 2829 if (basicPerfSampleSeries != null) { |
| 2830 _json["basicPerfSampleSeries"] = (basicPerfSampleSeries).toJson(); |
| 2831 } |
| 2832 if (executionId != null) { |
| 2833 _json["executionId"] = executionId; |
| 2834 } |
| 2835 if (historyId != null) { |
| 2836 _json["historyId"] = historyId; |
| 2837 } |
| 2838 if (projectId != null) { |
| 2839 _json["projectId"] = projectId; |
| 2840 } |
| 2841 if (sampleSeriesId != null) { |
| 2842 _json["sampleSeriesId"] = sampleSeriesId; |
| 2843 } |
| 2844 if (stepId != null) { |
| 2845 _json["stepId"] = stepId; |
| 2846 } |
| 2847 return _json; |
| 2848 } |
| 2849 } |
| 2850 |
| 1922 /** Per-project settings for the Tool Results service. */ | 2851 /** Per-project settings for the Tool Results service. */ |
| 1923 class ProjectSettings { | 2852 class ProjectSettings { |
| 1924 /** | 2853 /** |
| 1925 * The name of the Google Cloud Storage bucket to which results are written. | 2854 * The name of the Google Cloud Storage bucket to which results are written. |
| 1926 * | 2855 * |
| 1927 * By default, this is unset. | 2856 * By default, this is unset. |
| 1928 * | 2857 * |
| 1929 * In update request: optional In response: optional | 2858 * In update request: optional In response: optional |
| 1930 */ | 2859 */ |
| 1931 core.String defaultBucket; | 2860 core.String defaultBucket; |
| (...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3131 } | 4060 } |
| 3132 if (output != null) { | 4061 if (output != null) { |
| 3133 _json["output"] = (output).toJson(); | 4062 _json["output"] = (output).toJson(); |
| 3134 } | 4063 } |
| 3135 if (testCase != null) { | 4064 if (testCase != null) { |
| 3136 _json["testCase"] = (testCase).toJson(); | 4065 _json["testCase"] = (testCase).toJson(); |
| 3137 } | 4066 } |
| 3138 return _json; | 4067 return _json; |
| 3139 } | 4068 } |
| 3140 } | 4069 } |
| OLD | NEW |