Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: generated/googleapis_beta/lib/toolresults/v1beta3firstparty.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.v1beta3firstparty; 3 library googleapis_beta.toolresults.v1beta3firstparty;
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;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
13 ApiRequestError, DetailedApiRequestError; 13 show ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client toolresults/v1beta3firstparty'; 15 const core.String USER_AGENT = 'dart-api-client toolresults/v1beta3firstparty';
16 16
17 /** Reads and publishes results from Firebase Test Lab. */ 17 /// Reads and publishes results from Firebase Test Lab.
18 class ToolresultsApi { 18 class ToolresultsApi {
19
20 final commons.ApiRequester _requester; 19 final commons.ApiRequester _requester;
21 20
22 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); 21 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
23 22
24 ToolresultsApi(http.Client client, {core.String rootUrl: "https://www.googleap is.com/", core.String servicePath: "toolresults/v1beta3firstparty/projects/"}) : 23 ToolresultsApi(http.Client client,
25 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 24 {core.String rootUrl: "https://www.googleapis.com/",
25 core.String servicePath: "toolresults/v1beta3firstparty/projects/"})
26 : _requester =
27 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
26 } 28 }
27 29
28
29 class ProjectsResourceApi { 30 class ProjectsResourceApi {
30 final commons.ApiRequester _requester; 31 final commons.ApiRequester _requester;
31 32
32 ProjectsHistoriesResourceApi get histories => new ProjectsHistoriesResourceApi (_requester); 33 ProjectsHistoriesResourceApi get histories =>
34 new ProjectsHistoriesResourceApi(_requester);
33 35
34 ProjectsResourceApi(commons.ApiRequester client) : 36 ProjectsResourceApi(commons.ApiRequester client) : _requester = client;
35 _requester = client;
36 37
37 /** 38 /// Gets the Tool Results settings for a project.
38 * Gets the Tool Results settings for a project. 39 ///
39 * 40 /// May return any of the following canonical error codes:
40 * May return any of the following canonical error codes: 41 ///
41 * 42 /// - PERMISSION_DENIED - if the user is not authorized to read from project
42 * - PERMISSION_DENIED - if the user is not authorized to read from project 43 ///
43 * 44 /// Request parameters:
44 * Request parameters: 45 ///
45 * 46 /// [projectId] - A Project id.
46 * [projectId] - A Project id. 47 ///
47 * 48 /// Required.
48 * Required. 49 ///
49 * 50 /// Completes with a [ProjectSettings].
50 * Completes with a [ProjectSettings]. 51 ///
51 * 52 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
52 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 53 /// an error.
53 * error. 54 ///
54 * 55 /// If the used [http.Client] completes with an error when making a REST
55 * If the used [http.Client] completes with an error when making a REST call, 56 /// call, this method will complete with the same error.
56 * this method will complete with the same error.
57 */
58 async.Future<ProjectSettings> getSettings(core.String projectId) { 57 async.Future<ProjectSettings> getSettings(core.String projectId) {
59 var _url = null; 58 var _url = null;
60 var _queryParams = new core.Map(); 59 var _queryParams = new core.Map();
61 var _uploadMedia = null; 60 var _uploadMedia = null;
62 var _uploadOptions = null; 61 var _uploadOptions = null;
63 var _downloadOptions = commons.DownloadOptions.Metadata; 62 var _downloadOptions = commons.DownloadOptions.Metadata;
64 var _body = null; 63 var _body = null;
65 64
66 if (projectId == null) { 65 if (projectId == null) {
67 throw new core.ArgumentError("Parameter projectId is required."); 66 throw new core.ArgumentError("Parameter projectId is required.");
68 } 67 }
69 68
70 _url = commons.Escaper.ecapeVariable('$projectId') + '/settings'; 69 _url = commons.Escaper.ecapeVariable('$projectId') + '/settings';
71 70
72 var _response = _requester.request(_url, 71 var _response = _requester.request(_url, "GET",
73 "GET", 72 body: _body,
74 body: _body, 73 queryParams: _queryParams,
75 queryParams: _queryParams, 74 uploadOptions: _uploadOptions,
76 uploadOptions: _uploadOptions, 75 uploadMedia: _uploadMedia,
77 uploadMedia: _uploadMedia, 76 downloadOptions: _downloadOptions);
78 downloadOptions: _downloadOptions);
79 return _response.then((data) => new ProjectSettings.fromJson(data)); 77 return _response.then((data) => new ProjectSettings.fromJson(data));
80 } 78 }
81 79
82 /** 80 /// Creates resources for settings which have not yet been set.
83 * Creates resources for settings which have not yet been set. 81 ///
84 * 82 /// Currently, this creates a single resource: a Google Cloud Storage bucket,
85 * Currently, this creates a single resource: a Google Cloud Storage bucket, 83 /// to be used as the default bucket for this project. The bucket is created
86 * to be used as the default bucket for this project. The bucket is created in 84 /// in an FTL-own storage project. Except for in rare cases, calling this
87 * an FTL-own storage project. Except for in rare cases, calling this method 85 /// method in parallel from multiple clients will only create a single
88 * in parallel from multiple clients will only create a single bucket. In 86 /// bucket. In order to avoid unnecessary storage charges, the bucket is
89 * order to avoid unnecessary storage charges, the bucket is configured to 87 /// configured to automatically delete objects older than 90 days.
90 * automatically delete objects older than 90 days. 88 ///
91 * 89 /// The bucket is created with the following permissions: - Owner access for
92 * The bucket is created with the following permissions: - Owner access for 90 /// owners of central storage project (FTL-owned) - Writer access for
93 * owners of central storage project (FTL-owned) - Writer access for 91 /// owners/editors of customer project - Reader access for viewers of
94 * owners/editors of customer project - Reader access for viewers of customer 92 /// customer project The default ACL on objects created in the bucket is: -
95 * project The default ACL on objects created in the bucket is: - Owner access 93 /// Owner access for owners of central storage project - Reader access for
96 * for owners of central storage project - Reader access for 94 /// owners/editors/viewers of customer project See Google Cloud Storage
97 * owners/editors/viewers of customer project See Google Cloud Storage 95 /// documentation for more details.
98 * documentation for more details. 96 ///
99 * 97 /// If there is already a default bucket set and the project can access the
100 * If there is already a default bucket set and the project can access the 98 /// bucket, this call does nothing. However, if the project doesn't have the
101 * bucket, this call does nothing. However, if the project doesn't have the 99 /// permission to access the bucket or the bucket is deleted, a new bucket
102 * permission to access the bucket or the bucket is deleted, a new bucket will 100 /// will be created.
103 * be created. 101 ///
104 * 102 /// May return any canonical error codes, including the following:
105 * May return any canonical error codes, including the following: 103 ///
106 * 104 /// - PERMISSION_DENIED - if the user is not authorized to write to project -
107 * - PERMISSION_DENIED - if the user is not authorized to write to project - 105 /// Any error code raised by Google Cloud Storage
108 * Any error code raised by Google Cloud Storage 106 ///
109 * 107 /// Request parameters:
110 * Request parameters: 108 ///
111 * 109 /// [projectId] - A Project id.
112 * [projectId] - A Project id. 110 ///
113 * 111 /// Required.
114 * Required. 112 ///
115 * 113 /// Completes with a [ProjectSettings].
116 * Completes with a [ProjectSettings]. 114 ///
117 * 115 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
118 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 116 /// an error.
119 * error. 117 ///
120 * 118 /// If the used [http.Client] completes with an error when making a REST
121 * If the used [http.Client] completes with an error when making a REST call, 119 /// call, this method will complete with the same error.
122 * this method will complete with the same error.
123 */
124 async.Future<ProjectSettings> initializeSettings(core.String projectId) { 120 async.Future<ProjectSettings> initializeSettings(core.String projectId) {
125 var _url = null; 121 var _url = null;
126 var _queryParams = new core.Map(); 122 var _queryParams = new core.Map();
127 var _uploadMedia = null; 123 var _uploadMedia = null;
128 var _uploadOptions = null; 124 var _uploadOptions = null;
129 var _downloadOptions = commons.DownloadOptions.Metadata; 125 var _downloadOptions = commons.DownloadOptions.Metadata;
130 var _body = null; 126 var _body = null;
131 127
132 if (projectId == null) { 128 if (projectId == null) {
133 throw new core.ArgumentError("Parameter projectId is required."); 129 throw new core.ArgumentError("Parameter projectId is required.");
134 } 130 }
135 131
136 _url = commons.Escaper.ecapeVariable('$projectId') + ':initializeSettings'; 132 _url = commons.Escaper.ecapeVariable('$projectId') + ':initializeSettings';
137 133
138 var _response = _requester.request(_url, 134 var _response = _requester.request(_url, "POST",
139 "POST", 135 body: _body,
140 body: _body, 136 queryParams: _queryParams,
141 queryParams: _queryParams, 137 uploadOptions: _uploadOptions,
142 uploadOptions: _uploadOptions, 138 uploadMedia: _uploadMedia,
143 uploadMedia: _uploadMedia, 139 downloadOptions: _downloadOptions);
144 downloadOptions: _downloadOptions);
145 return _response.then((data) => new ProjectSettings.fromJson(data)); 140 return _response.then((data) => new ProjectSettings.fromJson(data));
146 } 141 }
147
148 } 142 }
149 143
150
151 class ProjectsHistoriesResourceApi { 144 class ProjectsHistoriesResourceApi {
152 final commons.ApiRequester _requester; 145 final commons.ApiRequester _requester;
153 146
154 ProjectsHistoriesExecutionsResourceApi get executions => new ProjectsHistories ExecutionsResourceApi(_requester); 147 ProjectsHistoriesExecutionsResourceApi get executions =>
148 new ProjectsHistoriesExecutionsResourceApi(_requester);
155 149
156 ProjectsHistoriesResourceApi(commons.ApiRequester client) : 150 ProjectsHistoriesResourceApi(commons.ApiRequester client)
157 _requester = client; 151 : _requester = client;
158 152
159 /** 153 /// Creates a History.
160 * Creates a History. 154 ///
161 * 155 /// The returned History will have the id set.
162 * The returned History will have the id set. 156 ///
163 * 157 /// May return any of the following canonical error codes:
164 * May return any of the following canonical error codes: 158 ///
165 * 159 /// - PERMISSION_DENIED - if the user is not authorized to write to project -
166 * - PERMISSION_DENIED - if the user is not authorized to write to project - 160 /// INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the
167 * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the 161 /// containing project does not exist
168 * containing project does not exist 162 ///
169 * 163 /// [request] - The metadata request object.
170 * [request] - The metadata request object. 164 ///
171 * 165 /// Request parameters:
172 * Request parameters: 166 ///
173 * 167 /// [projectId] - A Project id.
174 * [projectId] - A Project id. 168 ///
175 * 169 /// Required.
176 * Required. 170 ///
177 * 171 /// [requestId] - A unique request ID for server to detect duplicated
178 * [requestId] - A unique request ID for server to detect duplicated requests. 172 /// requests. For example, a UUID.
179 * For example, a UUID. 173 ///
180 * 174 /// Optional, but strongly recommended.
181 * Optional, but strongly recommended. 175 ///
182 * 176 /// Completes with a [History].
183 * Completes with a [History]. 177 ///
184 * 178 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
185 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 179 /// an error.
186 * error. 180 ///
187 * 181 /// If the used [http.Client] completes with an error when making a REST
188 * If the used [http.Client] completes with an error when making a REST call, 182 /// call, this method will complete with the same error.
189 * this method will complete with the same error. 183 async.Future<History> create(History request, core.String projectId,
190 */ 184 {core.String requestId}) {
191 async.Future<History> create(History request, core.String projectId, {core.Str ing requestId}) {
192 var _url = null; 185 var _url = null;
193 var _queryParams = new core.Map(); 186 var _queryParams = new core.Map();
194 var _uploadMedia = null; 187 var _uploadMedia = null;
195 var _uploadOptions = null; 188 var _uploadOptions = null;
196 var _downloadOptions = commons.DownloadOptions.Metadata; 189 var _downloadOptions = commons.DownloadOptions.Metadata;
197 var _body = null; 190 var _body = null;
198 191
199 if (request != null) { 192 if (request != null) {
200 _body = convert.JSON.encode((request).toJson()); 193 _body = convert.JSON.encode((request).toJson());
201 } 194 }
202 if (projectId == null) { 195 if (projectId == null) {
203 throw new core.ArgumentError("Parameter projectId is required."); 196 throw new core.ArgumentError("Parameter projectId is required.");
204 } 197 }
205 if (requestId != null) { 198 if (requestId != null) {
206 _queryParams["requestId"] = [requestId]; 199 _queryParams["requestId"] = [requestId];
207 } 200 }
208 201
209 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories'; 202 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories';
210 203
211 var _response = _requester.request(_url, 204 var _response = _requester.request(_url, "POST",
212 "POST", 205 body: _body,
213 body: _body, 206 queryParams: _queryParams,
214 queryParams: _queryParams, 207 uploadOptions: _uploadOptions,
215 uploadOptions: _uploadOptions, 208 uploadMedia: _uploadMedia,
216 uploadMedia: _uploadMedia, 209 downloadOptions: _downloadOptions);
217 downloadOptions: _downloadOptions);
218 return _response.then((data) => new History.fromJson(data)); 210 return _response.then((data) => new History.fromJson(data));
219 } 211 }
220 212
221 /** 213 /// Gets a History.
222 * Gets a History. 214 ///
223 * 215 /// May return any of the following canonical error codes:
224 * May return any of the following canonical error codes: 216 ///
225 * 217 /// - PERMISSION_DENIED - if the user is not authorized to read project -
226 * - PERMISSION_DENIED - if the user is not authorized to read project - 218 /// INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the
227 * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the History 219 /// History does not exist
228 * does not exist 220 ///
229 * 221 /// Request parameters:
230 * Request parameters: 222 ///
231 * 223 /// [projectId] - A Project id.
232 * [projectId] - A Project id. 224 ///
233 * 225 /// Required.
234 * Required. 226 ///
235 * 227 /// [historyId] - A History id.
236 * [historyId] - A History id. 228 ///
237 * 229 /// Required.
238 * Required. 230 ///
239 * 231 /// Completes with a [History].
240 * Completes with a [History]. 232 ///
241 * 233 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
242 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 234 /// an error.
243 * error. 235 ///
244 * 236 /// If the used [http.Client] completes with an error when making a REST
245 * If the used [http.Client] completes with an error when making a REST call, 237 /// call, this method will complete with the same error.
246 * this method will complete with the same error.
247 */
248 async.Future<History> get(core.String projectId, core.String historyId) { 238 async.Future<History> get(core.String projectId, core.String historyId) {
249 var _url = null; 239 var _url = null;
250 var _queryParams = new core.Map(); 240 var _queryParams = new core.Map();
251 var _uploadMedia = null; 241 var _uploadMedia = null;
252 var _uploadOptions = null; 242 var _uploadOptions = null;
253 var _downloadOptions = commons.DownloadOptions.Metadata; 243 var _downloadOptions = commons.DownloadOptions.Metadata;
254 var _body = null; 244 var _body = null;
255 245
256 if (projectId == null) { 246 if (projectId == null) {
257 throw new core.ArgumentError("Parameter projectId is required."); 247 throw new core.ArgumentError("Parameter projectId is required.");
258 } 248 }
259 if (historyId == null) { 249 if (historyId == null) {
260 throw new core.ArgumentError("Parameter historyId is required."); 250 throw new core.ArgumentError("Parameter historyId is required.");
261 } 251 }
262 252
263 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId'); 253 _url = commons.Escaper.ecapeVariable('$projectId') +
254 '/histories/' +
255 commons.Escaper.ecapeVariable('$historyId');
264 256
265 var _response = _requester.request(_url, 257 var _response = _requester.request(_url, "GET",
266 "GET", 258 body: _body,
267 body: _body, 259 queryParams: _queryParams,
268 queryParams: _queryParams, 260 uploadOptions: _uploadOptions,
269 uploadOptions: _uploadOptions, 261 uploadMedia: _uploadMedia,
270 uploadMedia: _uploadMedia, 262 downloadOptions: _downloadOptions);
271 downloadOptions: _downloadOptions);
272 return _response.then((data) => new History.fromJson(data)); 263 return _response.then((data) => new History.fromJson(data));
273 } 264 }
274 265
275 /** 266 /// Lists Histories for a given Project.
276 * Lists Histories for a given Project. 267 ///
277 * 268 /// The histories are sorted by modification time in descending order. The
278 * The histories are sorted by modification time in descending order. The 269 /// history_id key will be used to order the history with the same
279 * history_id key will be used to order the history with the same modification 270 /// modification time.
280 * time. 271 ///
281 * 272 /// May return any of the following canonical error codes:
282 * May return any of the following canonical error codes: 273 ///
283 * 274 /// - PERMISSION_DENIED - if the user is not authorized to read project -
284 * - PERMISSION_DENIED - if the user is not authorized to read project - 275 /// INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the
285 * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the History 276 /// History does not exist
286 * does not exist 277 ///
287 * 278 /// Request parameters:
288 * Request parameters: 279 ///
289 * 280 /// [projectId] - A Project id.
290 * [projectId] - A Project id. 281 ///
291 * 282 /// Required.
292 * Required. 283 ///
293 * 284 /// [filterByName] - If set, only return histories with the given name.
294 * [filterByName] - If set, only return histories with the given name. 285 ///
295 * 286 /// Optional.
296 * Optional. 287 ///
297 * 288 /// [pageSize] - The maximum number of Histories to fetch.
298 * [pageSize] - The maximum number of Histories to fetch. 289 ///
299 * 290 /// Default value: 20. The server will use this default if the field is not
300 * Default value: 20. The server will use this default if the field is not set 291 /// set or has a value of 0. Any value greater than 100 will be treated as
301 * or has a value of 0. Any value greater than 100 will be treated as 100. 292 /// 100.
302 * 293 ///
303 * Optional. 294 /// Optional.
304 * 295 ///
305 * [pageToken] - A continuation token to resume the query at the next item. 296 /// [pageToken] - A continuation token to resume the query at the next item.
306 * 297 ///
307 * Optional. 298 /// Optional.
308 * 299 ///
309 * Completes with a [ListHistoriesResponse]. 300 /// Completes with a [ListHistoriesResponse].
310 * 301 ///
311 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 302 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
312 * error. 303 /// an error.
313 * 304 ///
314 * If the used [http.Client] completes with an error when making a REST call, 305 /// If the used [http.Client] completes with an error when making a REST
315 * this method will complete with the same error. 306 /// call, this method will complete with the same error.
316 */ 307 async.Future<ListHistoriesResponse> list(core.String projectId,
317 async.Future<ListHistoriesResponse> list(core.String projectId, {core.String f ilterByName, core.int pageSize, core.String pageToken}) { 308 {core.String filterByName, core.int pageSize, core.String pageToken}) {
318 var _url = null; 309 var _url = null;
319 var _queryParams = new core.Map(); 310 var _queryParams = new core.Map();
320 var _uploadMedia = null; 311 var _uploadMedia = null;
321 var _uploadOptions = null; 312 var _uploadOptions = null;
322 var _downloadOptions = commons.DownloadOptions.Metadata; 313 var _downloadOptions = commons.DownloadOptions.Metadata;
323 var _body = null; 314 var _body = null;
324 315
325 if (projectId == null) { 316 if (projectId == null) {
326 throw new core.ArgumentError("Parameter projectId is required."); 317 throw new core.ArgumentError("Parameter projectId is required.");
327 } 318 }
328 if (filterByName != null) { 319 if (filterByName != null) {
329 _queryParams["filterByName"] = [filterByName]; 320 _queryParams["filterByName"] = [filterByName];
330 } 321 }
331 if (pageSize != null) { 322 if (pageSize != null) {
332 _queryParams["pageSize"] = ["${pageSize}"]; 323 _queryParams["pageSize"] = ["${pageSize}"];
333 } 324 }
334 if (pageToken != null) { 325 if (pageToken != null) {
335 _queryParams["pageToken"] = [pageToken]; 326 _queryParams["pageToken"] = [pageToken];
336 } 327 }
337 328
338 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories'; 329 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories';
339 330
340 var _response = _requester.request(_url, 331 var _response = _requester.request(_url, "GET",
341 "GET", 332 body: _body,
342 body: _body, 333 queryParams: _queryParams,
343 queryParams: _queryParams, 334 uploadOptions: _uploadOptions,
344 uploadOptions: _uploadOptions, 335 uploadMedia: _uploadMedia,
345 uploadMedia: _uploadMedia, 336 downloadOptions: _downloadOptions);
346 downloadOptions: _downloadOptions);
347 return _response.then((data) => new ListHistoriesResponse.fromJson(data)); 337 return _response.then((data) => new ListHistoriesResponse.fromJson(data));
348 } 338 }
349
350 } 339 }
351 340
352
353 class ProjectsHistoriesExecutionsResourceApi { 341 class ProjectsHistoriesExecutionsResourceApi {
354 final commons.ApiRequester _requester; 342 final commons.ApiRequester _requester;
355 343
356 ProjectsHistoriesExecutionsClustersResourceApi get clusters => new ProjectsHis toriesExecutionsClustersResourceApi(_requester); 344 ProjectsHistoriesExecutionsClustersResourceApi get clusters =>
357 ProjectsHistoriesExecutionsStepsResourceApi get steps => new ProjectsHistories ExecutionsStepsResourceApi(_requester); 345 new ProjectsHistoriesExecutionsClustersResourceApi(_requester);
346 ProjectsHistoriesExecutionsStepsResourceApi get steps =>
347 new ProjectsHistoriesExecutionsStepsResourceApi(_requester);
358 348
359 ProjectsHistoriesExecutionsResourceApi(commons.ApiRequester client) : 349 ProjectsHistoriesExecutionsResourceApi(commons.ApiRequester client)
360 _requester = client; 350 : _requester = client;
361 351
362 /** 352 /// Creates an Execution.
363 * Creates an Execution. 353 ///
364 * 354 /// The returned Execution will have the id set.
365 * The returned Execution will have the id set. 355 ///
366 * 356 /// May return any of the following canonical error codes:
367 * May return any of the following canonical error codes: 357 ///
368 * 358 /// - PERMISSION_DENIED - if the user is not authorized to write to project -
369 * - PERMISSION_DENIED - if the user is not authorized to write to project - 359 /// INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the
370 * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the 360 /// containing History does not exist
371 * containing History does not exist 361 ///
372 * 362 /// [request] - The metadata request object.
373 * [request] - The metadata request object. 363 ///
374 * 364 /// Request parameters:
375 * Request parameters: 365 ///
376 * 366 /// [projectId] - A Project id.
377 * [projectId] - A Project id. 367 ///
378 * 368 /// Required.
379 * Required. 369 ///
380 * 370 /// [historyId] - A History id.
381 * [historyId] - A History id. 371 ///
382 * 372 /// Required.
383 * Required. 373 ///
384 * 374 /// [requestId] - A unique request ID for server to detect duplicated
385 * [requestId] - A unique request ID for server to detect duplicated requests. 375 /// requests. For example, a UUID.
386 * For example, a UUID. 376 ///
387 * 377 /// Optional, but strongly recommended.
388 * Optional, but strongly recommended. 378 ///
389 * 379 /// Completes with a [Execution].
390 * Completes with a [Execution]. 380 ///
391 * 381 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
392 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 382 /// an error.
393 * error. 383 ///
394 * 384 /// If the used [http.Client] completes with an error when making a REST
395 * If the used [http.Client] completes with an error when making a REST call, 385 /// call, this method will complete with the same error.
396 * this method will complete with the same error. 386 async.Future<Execution> create(
397 */ 387 Execution request, core.String projectId, core.String historyId,
398 async.Future<Execution> create(Execution request, core.String projectId, core. String historyId, {core.String requestId}) { 388 {core.String requestId}) {
399 var _url = null; 389 var _url = null;
400 var _queryParams = new core.Map(); 390 var _queryParams = new core.Map();
401 var _uploadMedia = null; 391 var _uploadMedia = null;
402 var _uploadOptions = null; 392 var _uploadOptions = null;
403 var _downloadOptions = commons.DownloadOptions.Metadata; 393 var _downloadOptions = commons.DownloadOptions.Metadata;
404 var _body = null; 394 var _body = null;
405 395
406 if (request != null) { 396 if (request != null) {
407 _body = convert.JSON.encode((request).toJson()); 397 _body = convert.JSON.encode((request).toJson());
408 } 398 }
409 if (projectId == null) { 399 if (projectId == null) {
410 throw new core.ArgumentError("Parameter projectId is required."); 400 throw new core.ArgumentError("Parameter projectId is required.");
411 } 401 }
412 if (historyId == null) { 402 if (historyId == null) {
413 throw new core.ArgumentError("Parameter historyId is required."); 403 throw new core.ArgumentError("Parameter historyId is required.");
414 } 404 }
415 if (requestId != null) { 405 if (requestId != null) {
416 _queryParams["requestId"] = [requestId]; 406 _queryParams["requestId"] = [requestId];
417 } 407 }
418 408
419 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions'; 409 _url = commons.Escaper.ecapeVariable('$projectId') +
410 '/histories/' +
411 commons.Escaper.ecapeVariable('$historyId') +
412 '/executions';
420 413
421 var _response = _requester.request(_url, 414 var _response = _requester.request(_url, "POST",
422 "POST", 415 body: _body,
423 body: _body, 416 queryParams: _queryParams,
424 queryParams: _queryParams, 417 uploadOptions: _uploadOptions,
425 uploadOptions: _uploadOptions, 418 uploadMedia: _uploadMedia,
426 uploadMedia: _uploadMedia, 419 downloadOptions: _downloadOptions);
427 downloadOptions: _downloadOptions);
428 return _response.then((data) => new Execution.fromJson(data)); 420 return _response.then((data) => new Execution.fromJson(data));
429 } 421 }
430 422
431 /** 423 /// Gets an Execution.
432 * Gets an Execution. 424 ///
433 * 425 /// May return any of the following canonical error codes:
434 * May return any of the following canonical error codes: 426 ///
435 * 427 /// - PERMISSION_DENIED - if the user is not authorized to write to project -
436 * - PERMISSION_DENIED - if the user is not authorized to write to project - 428 /// INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the
437 * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the 429 /// Execution does not exist
438 * Execution does not exist 430 ///
439 * 431 /// Request parameters:
440 * Request parameters: 432 ///
441 * 433 /// [projectId] - A Project id.
442 * [projectId] - A Project id. 434 ///
443 * 435 /// Required.
444 * Required. 436 ///
445 * 437 /// [historyId] - A History id.
446 * [historyId] - A History id. 438 ///
447 * 439 /// Required.
448 * Required. 440 ///
449 * 441 /// [executionId] - An Execution id.
450 * [executionId] - An Execution id. 442 ///
451 * 443 /// Required.
452 * Required. 444 ///
453 * 445 /// Completes with a [Execution].
454 * Completes with a [Execution]. 446 ///
455 * 447 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
456 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 448 /// an error.
457 * error. 449 ///
458 * 450 /// If the used [http.Client] completes with an error when making a REST
459 * If the used [http.Client] completes with an error when making a REST call, 451 /// call, this method will complete with the same error.
460 * this method will complete with the same error. 452 async.Future<Execution> get(
461 */ 453 core.String projectId, core.String historyId, core.String executionId) {
462 async.Future<Execution> get(core.String projectId, core.String historyId, core .String executionId) {
463 var _url = null; 454 var _url = null;
464 var _queryParams = new core.Map(); 455 var _queryParams = new core.Map();
465 var _uploadMedia = null; 456 var _uploadMedia = null;
466 var _uploadOptions = null; 457 var _uploadOptions = null;
467 var _downloadOptions = commons.DownloadOptions.Metadata; 458 var _downloadOptions = commons.DownloadOptions.Metadata;
468 var _body = null; 459 var _body = null;
469 460
470 if (projectId == null) { 461 if (projectId == null) {
471 throw new core.ArgumentError("Parameter projectId is required."); 462 throw new core.ArgumentError("Parameter projectId is required.");
472 } 463 }
473 if (historyId == null) { 464 if (historyId == null) {
474 throw new core.ArgumentError("Parameter historyId is required."); 465 throw new core.ArgumentError("Parameter historyId is required.");
475 } 466 }
476 if (executionId == null) { 467 if (executionId == null) {
477 throw new core.ArgumentError("Parameter executionId is required."); 468 throw new core.ArgumentError("Parameter executionId is required.");
478 } 469 }
479 470
480 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar iable('$executionId'); 471 _url = commons.Escaper.ecapeVariable('$projectId') +
472 '/histories/' +
473 commons.Escaper.ecapeVariable('$historyId') +
474 '/executions/' +
475 commons.Escaper.ecapeVariable('$executionId');
481 476
482 var _response = _requester.request(_url, 477 var _response = _requester.request(_url, "GET",
483 "GET", 478 body: _body,
484 body: _body, 479 queryParams: _queryParams,
485 queryParams: _queryParams, 480 uploadOptions: _uploadOptions,
486 uploadOptions: _uploadOptions, 481 uploadMedia: _uploadMedia,
487 uploadMedia: _uploadMedia, 482 downloadOptions: _downloadOptions);
488 downloadOptions: _downloadOptions);
489 return _response.then((data) => new Execution.fromJson(data)); 483 return _response.then((data) => new Execution.fromJson(data));
490 } 484 }
491 485
492 /** 486 /// Lists Histories for a given Project.
493 * Lists Histories for a given Project. 487 ///
494 * 488 /// The executions are sorted by creation_time in descending order. The
495 * The executions are sorted by creation_time in descending order. The 489 /// execution_id key will be used to order the executions with the same
496 * execution_id key will be used to order the executions with the same 490 /// creation_time.
497 * creation_time. 491 ///
498 * 492 /// May return any of the following canonical error codes:
499 * May return any of the following canonical error codes: 493 ///
500 * 494 /// - PERMISSION_DENIED - if the user is not authorized to read project -
501 * - PERMISSION_DENIED - if the user is not authorized to read project - 495 /// INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the
502 * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the 496 /// containing History does not exist
503 * containing History does not exist 497 ///
504 * 498 /// Request parameters:
505 * Request parameters: 499 ///
506 * 500 /// [projectId] - A Project id.
507 * [projectId] - A Project id. 501 ///
508 * 502 /// Required.
509 * Required. 503 ///
510 * 504 /// [historyId] - A History id.
511 * [historyId] - A History id. 505 ///
512 * 506 /// Required.
513 * Required. 507 ///
514 * 508 /// [pageSize] - The maximum number of Executions to fetch.
515 * [pageSize] - The maximum number of Executions to fetch. 509 ///
516 * 510 /// Default value: 25. The server will use this default if the field is not
517 * Default value: 25. The server will use this default if the field is not set 511 /// set or has a value of 0.
518 * or has a value of 0. 512 ///
519 * 513 /// Optional.
520 * Optional. 514 ///
521 * 515 /// [pageToken] - A continuation token to resume the query at the next item.
522 * [pageToken] - A continuation token to resume the query at the next item. 516 ///
523 * 517 /// Optional.
524 * Optional. 518 ///
525 * 519 /// Completes with a [ListExecutionsResponse].
526 * Completes with a [ListExecutionsResponse]. 520 ///
527 * 521 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
528 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 522 /// an error.
529 * error. 523 ///
530 * 524 /// If the used [http.Client] completes with an error when making a REST
531 * If the used [http.Client] completes with an error when making a REST call, 525 /// call, this method will complete with the same error.
532 * this method will complete with the same error. 526 async.Future<ListExecutionsResponse> list(
533 */ 527 core.String projectId, core.String historyId,
534 async.Future<ListExecutionsResponse> list(core.String projectId, core.String h istoryId, {core.int pageSize, core.String pageToken}) { 528 {core.int pageSize, core.String pageToken}) {
535 var _url = null; 529 var _url = null;
536 var _queryParams = new core.Map(); 530 var _queryParams = new core.Map();
537 var _uploadMedia = null; 531 var _uploadMedia = null;
538 var _uploadOptions = null; 532 var _uploadOptions = null;
539 var _downloadOptions = commons.DownloadOptions.Metadata; 533 var _downloadOptions = commons.DownloadOptions.Metadata;
540 var _body = null; 534 var _body = null;
541 535
542 if (projectId == null) { 536 if (projectId == null) {
543 throw new core.ArgumentError("Parameter projectId is required."); 537 throw new core.ArgumentError("Parameter projectId is required.");
544 } 538 }
545 if (historyId == null) { 539 if (historyId == null) {
546 throw new core.ArgumentError("Parameter historyId is required."); 540 throw new core.ArgumentError("Parameter historyId is required.");
547 } 541 }
548 if (pageSize != null) { 542 if (pageSize != null) {
549 _queryParams["pageSize"] = ["${pageSize}"]; 543 _queryParams["pageSize"] = ["${pageSize}"];
550 } 544 }
551 if (pageToken != null) { 545 if (pageToken != null) {
552 _queryParams["pageToken"] = [pageToken]; 546 _queryParams["pageToken"] = [pageToken];
553 } 547 }
554 548
555 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions'; 549 _url = commons.Escaper.ecapeVariable('$projectId') +
550 '/histories/' +
551 commons.Escaper.ecapeVariable('$historyId') +
552 '/executions';
556 553
557 var _response = _requester.request(_url, 554 var _response = _requester.request(_url, "GET",
558 "GET", 555 body: _body,
559 body: _body, 556 queryParams: _queryParams,
560 queryParams: _queryParams, 557 uploadOptions: _uploadOptions,
561 uploadOptions: _uploadOptions, 558 uploadMedia: _uploadMedia,
562 uploadMedia: _uploadMedia, 559 downloadOptions: _downloadOptions);
563 downloadOptions: _downloadOptions);
564 return _response.then((data) => new ListExecutionsResponse.fromJson(data)); 560 return _response.then((data) => new ListExecutionsResponse.fromJson(data));
565 } 561 }
566 562
567 /** 563 /// Updates an existing Execution with the supplied partial entity.
568 * Updates an existing Execution with the supplied partial entity. 564 ///
569 * 565 /// May return any of the following canonical error codes:
570 * May return any of the following canonical error codes: 566 ///
571 * 567 /// - PERMISSION_DENIED - if the user is not authorized to write to project -
572 * - PERMISSION_DENIED - if the user is not authorized to write to project - 568 /// INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if
573 * INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if 569 /// the requested state transition is illegal - NOT_FOUND - if the containing
574 * the requested state transition is illegal - NOT_FOUND - if the containing 570 /// History does not exist
575 * History does not exist 571 ///
576 * 572 /// [request] - The metadata request object.
577 * [request] - The metadata request object. 573 ///
578 * 574 /// Request parameters:
579 * Request parameters: 575 ///
580 * 576 /// [projectId] - A Project id. Required.
581 * [projectId] - A Project id. Required. 577 ///
582 * 578 /// [historyId] - Required.
583 * [historyId] - Required. 579 ///
584 * 580 /// [executionId] - Required.
585 * [executionId] - Required. 581 ///
586 * 582 /// [requestId] - A unique request ID for server to detect duplicated
587 * [requestId] - A unique request ID for server to detect duplicated requests. 583 /// requests. For example, a UUID.
588 * For example, a UUID. 584 ///
589 * 585 /// Optional, but strongly recommended.
590 * Optional, but strongly recommended. 586 ///
591 * 587 /// Completes with a [Execution].
592 * Completes with a [Execution]. 588 ///
593 * 589 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
594 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 590 /// an error.
595 * error. 591 ///
596 * 592 /// If the used [http.Client] completes with an error when making a REST
597 * If the used [http.Client] completes with an error when making a REST call, 593 /// call, this method will complete with the same error.
598 * this method will complete with the same error. 594 async.Future<Execution> patch(Execution request, core.String projectId,
599 */ 595 core.String historyId, core.String executionId,
600 async.Future<Execution> patch(Execution request, core.String projectId, core.S tring historyId, core.String executionId, {core.String requestId}) { 596 {core.String requestId}) {
601 var _url = null; 597 var _url = null;
602 var _queryParams = new core.Map(); 598 var _queryParams = new core.Map();
603 var _uploadMedia = null; 599 var _uploadMedia = null;
604 var _uploadOptions = null; 600 var _uploadOptions = null;
605 var _downloadOptions = commons.DownloadOptions.Metadata; 601 var _downloadOptions = commons.DownloadOptions.Metadata;
606 var _body = null; 602 var _body = null;
607 603
608 if (request != null) { 604 if (request != null) {
609 _body = convert.JSON.encode((request).toJson()); 605 _body = convert.JSON.encode((request).toJson());
610 } 606 }
611 if (projectId == null) { 607 if (projectId == null) {
612 throw new core.ArgumentError("Parameter projectId is required."); 608 throw new core.ArgumentError("Parameter projectId is required.");
613 } 609 }
614 if (historyId == null) { 610 if (historyId == null) {
615 throw new core.ArgumentError("Parameter historyId is required."); 611 throw new core.ArgumentError("Parameter historyId is required.");
616 } 612 }
617 if (executionId == null) { 613 if (executionId == null) {
618 throw new core.ArgumentError("Parameter executionId is required."); 614 throw new core.ArgumentError("Parameter executionId is required.");
619 } 615 }
620 if (requestId != null) { 616 if (requestId != null) {
621 _queryParams["requestId"] = [requestId]; 617 _queryParams["requestId"] = [requestId];
622 } 618 }
623 619
624 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar iable('$executionId'); 620 _url = commons.Escaper.ecapeVariable('$projectId') +
621 '/histories/' +
622 commons.Escaper.ecapeVariable('$historyId') +
623 '/executions/' +
624 commons.Escaper.ecapeVariable('$executionId');
625 625
626 var _response = _requester.request(_url, 626 var _response = _requester.request(_url, "PATCH",
627 "PATCH", 627 body: _body,
628 body: _body, 628 queryParams: _queryParams,
629 queryParams: _queryParams, 629 uploadOptions: _uploadOptions,
630 uploadOptions: _uploadOptions, 630 uploadMedia: _uploadMedia,
631 uploadMedia: _uploadMedia, 631 downloadOptions: _downloadOptions);
632 downloadOptions: _downloadOptions);
633 return _response.then((data) => new Execution.fromJson(data)); 632 return _response.then((data) => new Execution.fromJson(data));
634 } 633 }
635
636 } 634 }
637 635
638
639 class ProjectsHistoriesExecutionsClustersResourceApi { 636 class ProjectsHistoriesExecutionsClustersResourceApi {
640 final commons.ApiRequester _requester; 637 final commons.ApiRequester _requester;
641 638
642 ProjectsHistoriesExecutionsClustersResourceApi(commons.ApiRequester client) : 639 ProjectsHistoriesExecutionsClustersResourceApi(commons.ApiRequester client)
643 _requester = client; 640 : _requester = client;
644 641
645 /** 642 /// Retrieves a single screenshot cluster by its ID
646 * Lists Screenshot Clusters 643 ///
647 * 644 /// Request parameters:
648 * Returns the list of screenshot clusters corresponding to an execution. 645 ///
649 * Screenshot clusters are created after the execution is finished. Clusters 646 /// [projectId] - A Project id.
650 * are created from a set of screenshots. Between any two screenshots, a 647 ///
651 * matching score is calculated based off their metadata that determines how 648 /// Required.
652 * similar they are. Screenshots are placed in the cluster that has screens 649 ///
653 * which have the highest matching scores. 650 /// [historyId] - A History id.
654 * 651 ///
655 * Request parameters: 652 /// Required.
656 * 653 ///
657 * [projectId] - A Project id. 654 /// [executionId] - An Execution id.
658 * 655 ///
659 * Required. 656 /// Required.
660 * 657 ///
661 * [historyId] - A History id. 658 /// [clusterId] - A Cluster id
662 * 659 ///
663 * Required. 660 /// Required.
664 * 661 ///
665 * [executionId] - An Execution id. 662 /// Completes with a [ScreenshotCluster].
666 * 663 ///
667 * Required. 664 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
668 * 665 /// an error.
669 * Completes with a [ListScreenshotClustersResponse]. 666 ///
670 * 667 /// If the used [http.Client] completes with an error when making a REST
671 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 668 /// call, this method will complete with the same error.
672 * error. 669 async.Future<ScreenshotCluster> get(core.String projectId,
673 * 670 core.String historyId, core.String executionId, core.String clusterId) {
674 * If the used [http.Client] completes with an error when making a REST call,
675 * this method will complete with the same error.
676 */
677 async.Future<ListScreenshotClustersResponse> list(core.String projectId, core. String historyId, core.String executionId) {
678 var _url = null; 671 var _url = null;
679 var _queryParams = new core.Map(); 672 var _queryParams = new core.Map();
680 var _uploadMedia = null; 673 var _uploadMedia = null;
681 var _uploadOptions = null; 674 var _uploadOptions = null;
682 var _downloadOptions = commons.DownloadOptions.Metadata; 675 var _downloadOptions = commons.DownloadOptions.Metadata;
683 var _body = null; 676 var _body = null;
684 677
685 if (projectId == null) { 678 if (projectId == null) {
686 throw new core.ArgumentError("Parameter projectId is required."); 679 throw new core.ArgumentError("Parameter projectId is required.");
687 } 680 }
688 if (historyId == null) { 681 if (historyId == null) {
689 throw new core.ArgumentError("Parameter historyId is required."); 682 throw new core.ArgumentError("Parameter historyId is required.");
690 } 683 }
691 if (executionId == null) { 684 if (executionId == null) {
692 throw new core.ArgumentError("Parameter executionId is required."); 685 throw new core.ArgumentError("Parameter executionId is required.");
693 } 686 }
687 if (clusterId == null) {
688 throw new core.ArgumentError("Parameter clusterId is required.");
689 }
690
691 _url = commons.Escaper.ecapeVariable('$projectId') +
692 '/histories/' +
693 commons.Escaper.ecapeVariable('$historyId') +
694 '/executions/' +
695 commons.Escaper.ecapeVariable('$executionId') +
696 '/clusters/' +
697 commons.Escaper.ecapeVariable('$clusterId');
698
699 var _response = _requester.request(_url, "GET",
700 body: _body,
701 queryParams: _queryParams,
702 uploadOptions: _uploadOptions,
703 uploadMedia: _uploadMedia,
704 downloadOptions: _downloadOptions);
705 return _response.then((data) => new ScreenshotCluster.fromJson(data));
706 }
707
708 /// Lists Screenshot Clusters
709 ///
710 /// Returns the list of screenshot clusters corresponding to an execution.
711 /// Screenshot clusters are created after the execution is finished. Clusters
712 /// are created from a set of screenshots. Between any two screenshots, a
713 /// matching score is calculated based off their metadata that determines how
714 /// similar they are. Screenshots are placed in the cluster that has screens
715 /// which have the highest matching scores.
716 ///
717 /// Request parameters:
718 ///
719 /// [projectId] - A Project id.
720 ///
721 /// Required.
722 ///
723 /// [historyId] - A History id.
724 ///
725 /// Required.
726 ///
727 /// [executionId] - An Execution id.
728 ///
729 /// Required.
730 ///
731 /// Completes with a [ListScreenshotClustersResponse].
732 ///
733 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
734 /// an error.
735 ///
736 /// If the used [http.Client] completes with an error when making a REST
737 /// call, this method will complete with the same error.
738 async.Future<ListScreenshotClustersResponse> list(
739 core.String projectId, core.String historyId, core.String executionId) {
740 var _url = null;
741 var _queryParams = new core.Map();
742 var _uploadMedia = null;
743 var _uploadOptions = null;
744 var _downloadOptions = commons.DownloadOptions.Metadata;
745 var _body = null;
746
747 if (projectId == null) {
748 throw new core.ArgumentError("Parameter projectId is required.");
749 }
750 if (historyId == null) {
751 throw new core.ArgumentError("Parameter historyId is required.");
752 }
753 if (executionId == null) {
754 throw new core.ArgumentError("Parameter executionId is required.");
755 }
694 756
695 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar iable('$executionId') + '/clusters'; 757 _url = commons.Escaper.ecapeVariable('$projectId') +
758 '/histories/' +
759 commons.Escaper.ecapeVariable('$historyId') +
760 '/executions/' +
761 commons.Escaper.ecapeVariable('$executionId') +
762 '/clusters';
696 763
697 var _response = _requester.request(_url, 764 var _response = _requester.request(_url, "GET",
698 "GET", 765 body: _body,
699 body: _body, 766 queryParams: _queryParams,
700 queryParams: _queryParams, 767 uploadOptions: _uploadOptions,
701 uploadOptions: _uploadOptions, 768 uploadMedia: _uploadMedia,
702 uploadMedia: _uploadMedia, 769 downloadOptions: _downloadOptions);
703 downloadOptions: _downloadOptions); 770 return _response
704 return _response.then((data) => new ListScreenshotClustersResponse.fromJson( data)); 771 .then((data) => new ListScreenshotClustersResponse.fromJson(data));
705 } 772 }
706
707 } 773 }
708 774
709
710 class ProjectsHistoriesExecutionsStepsResourceApi { 775 class ProjectsHistoriesExecutionsStepsResourceApi {
711 final commons.ApiRequester _requester; 776 final commons.ApiRequester _requester;
712 777
713 ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi get perfMetricsS ummary => new ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi(_req uester); 778 ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi
714 ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi get perfSampleSeri es => new ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi(_requester ); 779 get perfMetricsSummary =>
715 ProjectsHistoriesExecutionsStepsThumbnailsResourceApi get thumbnails => new Pr ojectsHistoriesExecutionsStepsThumbnailsResourceApi(_requester); 780 new ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi(
781 _requester);
782 ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi
783 get perfSampleSeries =>
784 new ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi(
785 _requester);
786 ProjectsHistoriesExecutionsStepsThumbnailsResourceApi get thumbnails =>
787 new ProjectsHistoriesExecutionsStepsThumbnailsResourceApi(_requester);
716 788
717 ProjectsHistoriesExecutionsStepsResourceApi(commons.ApiRequester client) : 789 ProjectsHistoriesExecutionsStepsResourceApi(commons.ApiRequester client)
718 _requester = client; 790 : _requester = client;
719 791
720 /** 792 /// Creates a Step.
721 * Creates a Step. 793 ///
722 * 794 /// The returned Step will have the id set.
723 * The returned Step will have the id set. 795 ///
724 * 796 /// May return any of the following canonical error codes:
725 * May return any of the following canonical error codes: 797 ///
726 * 798 /// - PERMISSION_DENIED - if the user is not authorized to write to project -
727 * - PERMISSION_DENIED - if the user is not authorized to write to project - 799 /// INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if
728 * INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if 800 /// the step is too large (more than 10Mib) - NOT_FOUND - if the containing
729 * the step is too large (more than 10Mib) - NOT_FOUND - if the containing 801 /// Execution does not exist
730 * Execution does not exist 802 ///
731 * 803 /// [request] - The metadata request object.
732 * [request] - The metadata request object. 804 ///
733 * 805 /// Request parameters:
734 * Request parameters: 806 ///
735 * 807 /// [projectId] - A Project id.
736 * [projectId] - A Project id. 808 ///
737 * 809 /// Required.
738 * Required. 810 ///
739 * 811 /// [historyId] - A History id.
740 * [historyId] - A History id. 812 ///
741 * 813 /// Required.
742 * Required. 814 ///
743 * 815 /// [executionId] - A Execution id.
744 * [executionId] - A Execution id. 816 ///
745 * 817 /// Required.
746 * Required. 818 ///
747 * 819 /// [requestId] - A unique request ID for server to detect duplicated
748 * [requestId] - A unique request ID for server to detect duplicated requests. 820 /// requests. For example, a UUID.
749 * For example, a UUID. 821 ///
750 * 822 /// Optional, but strongly recommended.
751 * Optional, but strongly recommended. 823 ///
752 * 824 /// Completes with a [Step].
753 * Completes with a [Step]. 825 ///
754 * 826 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
755 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 827 /// an error.
756 * error. 828 ///
757 * 829 /// If the used [http.Client] completes with an error when making a REST
758 * If the used [http.Client] completes with an error when making a REST call, 830 /// call, this method will complete with the same error.
759 * this method will complete with the same error. 831 async.Future<Step> create(Step request, core.String projectId,
760 */ 832 core.String historyId, core.String executionId,
761 async.Future<Step> create(Step request, core.String projectId, core.String his toryId, core.String executionId, {core.String requestId}) { 833 {core.String requestId}) {
762 var _url = null; 834 var _url = null;
763 var _queryParams = new core.Map(); 835 var _queryParams = new core.Map();
764 var _uploadMedia = null; 836 var _uploadMedia = null;
765 var _uploadOptions = null; 837 var _uploadOptions = null;
766 var _downloadOptions = commons.DownloadOptions.Metadata; 838 var _downloadOptions = commons.DownloadOptions.Metadata;
767 var _body = null; 839 var _body = null;
768 840
769 if (request != null) { 841 if (request != null) {
770 _body = convert.JSON.encode((request).toJson()); 842 _body = convert.JSON.encode((request).toJson());
771 } 843 }
772 if (projectId == null) { 844 if (projectId == null) {
773 throw new core.ArgumentError("Parameter projectId is required."); 845 throw new core.ArgumentError("Parameter projectId is required.");
774 } 846 }
775 if (historyId == null) { 847 if (historyId == null) {
776 throw new core.ArgumentError("Parameter historyId is required."); 848 throw new core.ArgumentError("Parameter historyId is required.");
777 } 849 }
778 if (executionId == null) { 850 if (executionId == null) {
779 throw new core.ArgumentError("Parameter executionId is required."); 851 throw new core.ArgumentError("Parameter executionId is required.");
780 } 852 }
781 if (requestId != null) { 853 if (requestId != null) {
782 _queryParams["requestId"] = [requestId]; 854 _queryParams["requestId"] = [requestId];
783 } 855 }
784 856
785 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar iable('$executionId') + '/steps'; 857 _url = commons.Escaper.ecapeVariable('$projectId') +
858 '/histories/' +
859 commons.Escaper.ecapeVariable('$historyId') +
860 '/executions/' +
861 commons.Escaper.ecapeVariable('$executionId') +
862 '/steps';
786 863
787 var _response = _requester.request(_url, 864 var _response = _requester.request(_url, "POST",
788 "POST", 865 body: _body,
789 body: _body, 866 queryParams: _queryParams,
790 queryParams: _queryParams, 867 uploadOptions: _uploadOptions,
791 uploadOptions: _uploadOptions, 868 uploadMedia: _uploadMedia,
792 uploadMedia: _uploadMedia, 869 downloadOptions: _downloadOptions);
793 downloadOptions: _downloadOptions);
794 return _response.then((data) => new Step.fromJson(data)); 870 return _response.then((data) => new Step.fromJson(data));
795 } 871 }
796 872
797 /** 873 /// Gets a Step.
798 * Gets a Step. 874 ///
799 * 875 /// May return any of the following canonical error codes:
800 * May return any of the following canonical error codes: 876 ///
801 * 877 /// - PERMISSION_DENIED - if the user is not authorized to read project -
802 * - PERMISSION_DENIED - if the user is not authorized to read project - 878 /// INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Step
803 * INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Step 879 /// does not exist
804 * does not exist 880 ///
805 * 881 /// Request parameters:
806 * Request parameters: 882 ///
807 * 883 /// [projectId] - A Project id.
808 * [projectId] - A Project id. 884 ///
809 * 885 /// Required.
810 * Required. 886 ///
811 * 887 /// [historyId] - A History id.
812 * [historyId] - A History id. 888 ///
813 * 889 /// Required.
814 * Required. 890 ///
815 * 891 /// [executionId] - A Execution id.
816 * [executionId] - A Execution id. 892 ///
817 * 893 /// Required.
818 * Required. 894 ///
819 * 895 /// [stepId] - A Step id.
820 * [stepId] - A Step id. 896 ///
821 * 897 /// Required.
822 * Required. 898 ///
823 * 899 /// Completes with a [Step].
824 * Completes with a [Step]. 900 ///
825 * 901 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
826 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 902 /// an error.
827 * error. 903 ///
828 * 904 /// If the used [http.Client] completes with an error when making a REST
829 * If the used [http.Client] completes with an error when making a REST call, 905 /// call, this method will complete with the same error.
830 * this method will complete with the same error. 906 async.Future<Step> get(core.String projectId, core.String historyId,
831 */ 907 core.String executionId, core.String stepId) {
832 async.Future<Step> get(core.String projectId, core.String historyId, core.Stri ng executionId, core.String stepId) {
833 var _url = null; 908 var _url = null;
834 var _queryParams = new core.Map(); 909 var _queryParams = new core.Map();
835 var _uploadMedia = null; 910 var _uploadMedia = null;
836 var _uploadOptions = null; 911 var _uploadOptions = null;
837 var _downloadOptions = commons.DownloadOptions.Metadata; 912 var _downloadOptions = commons.DownloadOptions.Metadata;
838 var _body = null; 913 var _body = null;
839 914
840 if (projectId == null) { 915 if (projectId == null) {
841 throw new core.ArgumentError("Parameter projectId is required."); 916 throw new core.ArgumentError("Parameter projectId is required.");
842 } 917 }
843 if (historyId == null) { 918 if (historyId == null) {
844 throw new core.ArgumentError("Parameter historyId is required."); 919 throw new core.ArgumentError("Parameter historyId is required.");
845 } 920 }
846 if (executionId == null) { 921 if (executionId == null) {
847 throw new core.ArgumentError("Parameter executionId is required."); 922 throw new core.ArgumentError("Parameter executionId is required.");
848 } 923 }
849 if (stepId == null) { 924 if (stepId == null) {
850 throw new core.ArgumentError("Parameter stepId is required."); 925 throw new core.ArgumentError("Parameter stepId is required.");
851 } 926 }
852 927
853 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId'); 928 _url = commons.Escaper.ecapeVariable('$projectId') +
929 '/histories/' +
930 commons.Escaper.ecapeVariable('$historyId') +
931 '/executions/' +
932 commons.Escaper.ecapeVariable('$executionId') +
933 '/steps/' +
934 commons.Escaper.ecapeVariable('$stepId');
854 935
855 var _response = _requester.request(_url, 936 var _response = _requester.request(_url, "GET",
856 "GET", 937 body: _body,
857 body: _body, 938 queryParams: _queryParams,
858 queryParams: _queryParams, 939 uploadOptions: _uploadOptions,
859 uploadOptions: _uploadOptions, 940 uploadMedia: _uploadMedia,
860 uploadMedia: _uploadMedia, 941 downloadOptions: _downloadOptions);
861 downloadOptions: _downloadOptions);
862 return _response.then((data) => new Step.fromJson(data)); 942 return _response.then((data) => new Step.fromJson(data));
863 } 943 }
864 944
865 /** 945 /// Retrieves a PerfMetricsSummary.
866 * Retrieves a PerfMetricsSummary. 946 ///
867 * 947 /// May return any of the following error code(s): - NOT_FOUND - The
868 * May return any of the following error code(s): - NOT_FOUND - The specified 948 /// specified PerfMetricsSummary does not exist
869 * PerfMetricsSummary does not exist 949 ///
870 * 950 /// Request parameters:
871 * Request parameters: 951 ///
872 * 952 /// [projectId] - The cloud project
873 * [projectId] - The cloud project 953 ///
874 * 954 /// [historyId] - A tool results history ID.
875 * [historyId] - A tool results history ID. 955 ///
876 * 956 /// [executionId] - A tool results execution ID.
877 * [executionId] - A tool results execution ID. 957 ///
878 * 958 /// [stepId] - A tool results step ID.
879 * [stepId] - A tool results step ID. 959 ///
880 * 960 /// Completes with a [PerfMetricsSummary].
881 * Completes with a [PerfMetricsSummary]. 961 ///
882 * 962 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
883 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 963 /// an error.
884 * error. 964 ///
885 * 965 /// If the used [http.Client] completes with an error when making a REST
886 * If the used [http.Client] completes with an error when making a REST call, 966 /// call, this method will complete with the same error.
887 * this method will complete with the same error. 967 async.Future<PerfMetricsSummary> getPerfMetricsSummary(core.String projectId,
888 */ 968 core.String historyId, core.String executionId, core.String stepId) {
889 async.Future<PerfMetricsSummary> getPerfMetricsSummary(core.String projectId, core.String historyId, core.String executionId, core.String stepId) {
890 var _url = null; 969 var _url = null;
891 var _queryParams = new core.Map(); 970 var _queryParams = new core.Map();
892 var _uploadMedia = null; 971 var _uploadMedia = null;
893 var _uploadOptions = null; 972 var _uploadOptions = null;
894 var _downloadOptions = commons.DownloadOptions.Metadata; 973 var _downloadOptions = commons.DownloadOptions.Metadata;
895 var _body = null; 974 var _body = null;
896 975
897 if (projectId == null) { 976 if (projectId == null) {
898 throw new core.ArgumentError("Parameter projectId is required."); 977 throw new core.ArgumentError("Parameter projectId is required.");
899 } 978 }
900 if (historyId == null) { 979 if (historyId == null) {
901 throw new core.ArgumentError("Parameter historyId is required."); 980 throw new core.ArgumentError("Parameter historyId is required.");
902 } 981 }
903 if (executionId == null) { 982 if (executionId == null) {
904 throw new core.ArgumentError("Parameter executionId is required."); 983 throw new core.ArgumentError("Parameter executionId is required.");
905 } 984 }
906 if (stepId == null) { 985 if (stepId == null) {
907 throw new core.ArgumentError("Parameter stepId is required."); 986 throw new core.ArgumentError("Parameter stepId is required.");
908 } 987 }
909 988
910 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId') + ' /perfMetricsSummary'; 989 _url = commons.Escaper.ecapeVariable('$projectId') +
990 '/histories/' +
991 commons.Escaper.ecapeVariable('$historyId') +
992 '/executions/' +
993 commons.Escaper.ecapeVariable('$executionId') +
994 '/steps/' +
995 commons.Escaper.ecapeVariable('$stepId') +
996 '/perfMetricsSummary';
911 997
912 var _response = _requester.request(_url, 998 var _response = _requester.request(_url, "GET",
913 "GET", 999 body: _body,
914 body: _body, 1000 queryParams: _queryParams,
915 queryParams: _queryParams, 1001 uploadOptions: _uploadOptions,
916 uploadOptions: _uploadOptions, 1002 uploadMedia: _uploadMedia,
917 uploadMedia: _uploadMedia, 1003 downloadOptions: _downloadOptions);
918 downloadOptions: _downloadOptions);
919 return _response.then((data) => new PerfMetricsSummary.fromJson(data)); 1004 return _response.then((data) => new PerfMetricsSummary.fromJson(data));
920 } 1005 }
921 1006
922 /** 1007 /// Lists Steps for a given Execution.
923 * Lists Steps for a given Execution. 1008 ///
924 * 1009 /// The steps are sorted by creation_time in descending order. The step_id
925 * The steps are sorted by creation_time in descending order. The step_id key 1010 /// key will be used to order the steps with the same creation_time.
926 * will be used to order the steps with the same creation_time. 1011 ///
927 * 1012 /// May return any of the following canonical error codes:
928 * May return any of the following canonical error codes: 1013 ///
929 * 1014 /// - PERMISSION_DENIED - if the user is not authorized to read project -
930 * - PERMISSION_DENIED - if the user is not authorized to read project - 1015 /// INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if
931 * INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if 1016 /// an argument in the request happens to be invalid; e.g. if an attempt is
932 * an argument in the request happens to be invalid; e.g. if an attempt is 1017 /// made to list the children of a nonexistent Step - NOT_FOUND - if the
933 * made to list the children of a nonexistent Step - NOT_FOUND - if the 1018 /// containing Execution does not exist
934 * containing Execution does not exist 1019 ///
935 * 1020 /// Request parameters:
936 * Request parameters: 1021 ///
937 * 1022 /// [projectId] - A Project id.
938 * [projectId] - A Project id. 1023 ///
939 * 1024 /// Required.
940 * Required. 1025 ///
941 * 1026 /// [historyId] - A History id.
942 * [historyId] - A History id. 1027 ///
943 * 1028 /// Required.
944 * Required. 1029 ///
945 * 1030 /// [executionId] - A Execution id.
946 * [executionId] - A Execution id. 1031 ///
947 * 1032 /// Required.
948 * Required. 1033 ///
949 * 1034 /// [pageSize] - The maximum number of Steps to fetch.
950 * [pageSize] - The maximum number of Steps to fetch. 1035 ///
951 * 1036 /// Default value: 25. The server will use this default if the field is not
952 * Default value: 25. The server will use this default if the field is not set 1037 /// set or has a value of 0.
953 * or has a value of 0. 1038 ///
954 * 1039 /// Optional.
955 * Optional. 1040 ///
956 * 1041 /// [pageToken] - A continuation token to resume the query at the next item.
957 * [pageToken] - A continuation token to resume the query at the next item. 1042 ///
958 * 1043 /// Optional.
959 * Optional. 1044 ///
960 * 1045 /// Completes with a [ListStepsResponse].
961 * Completes with a [ListStepsResponse]. 1046 ///
962 * 1047 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
963 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1048 /// an error.
964 * error. 1049 ///
965 * 1050 /// If the used [http.Client] completes with an error when making a REST
966 * If the used [http.Client] completes with an error when making a REST call, 1051 /// call, this method will complete with the same error.
967 * this method will complete with the same error. 1052 async.Future<ListStepsResponse> list(
968 */ 1053 core.String projectId, core.String historyId, core.String executionId,
969 async.Future<ListStepsResponse> list(core.String projectId, core.String histor yId, core.String executionId, {core.int pageSize, core.String pageToken}) { 1054 {core.int pageSize, core.String pageToken}) {
970 var _url = null; 1055 var _url = null;
971 var _queryParams = new core.Map(); 1056 var _queryParams = new core.Map();
972 var _uploadMedia = null; 1057 var _uploadMedia = null;
973 var _uploadOptions = null; 1058 var _uploadOptions = null;
974 var _downloadOptions = commons.DownloadOptions.Metadata; 1059 var _downloadOptions = commons.DownloadOptions.Metadata;
975 var _body = null; 1060 var _body = null;
976 1061
977 if (projectId == null) { 1062 if (projectId == null) {
978 throw new core.ArgumentError("Parameter projectId is required."); 1063 throw new core.ArgumentError("Parameter projectId is required.");
979 } 1064 }
980 if (historyId == null) { 1065 if (historyId == null) {
981 throw new core.ArgumentError("Parameter historyId is required."); 1066 throw new core.ArgumentError("Parameter historyId is required.");
982 } 1067 }
983 if (executionId == null) { 1068 if (executionId == null) {
984 throw new core.ArgumentError("Parameter executionId is required."); 1069 throw new core.ArgumentError("Parameter executionId is required.");
985 } 1070 }
986 if (pageSize != null) { 1071 if (pageSize != null) {
987 _queryParams["pageSize"] = ["${pageSize}"]; 1072 _queryParams["pageSize"] = ["${pageSize}"];
988 } 1073 }
989 if (pageToken != null) { 1074 if (pageToken != null) {
990 _queryParams["pageToken"] = [pageToken]; 1075 _queryParams["pageToken"] = [pageToken];
991 } 1076 }
992 1077
993 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar iable('$executionId') + '/steps'; 1078 _url = commons.Escaper.ecapeVariable('$projectId') +
1079 '/histories/' +
1080 commons.Escaper.ecapeVariable('$historyId') +
1081 '/executions/' +
1082 commons.Escaper.ecapeVariable('$executionId') +
1083 '/steps';
994 1084
995 var _response = _requester.request(_url, 1085 var _response = _requester.request(_url, "GET",
996 "GET", 1086 body: _body,
997 body: _body, 1087 queryParams: _queryParams,
998 queryParams: _queryParams, 1088 uploadOptions: _uploadOptions,
999 uploadOptions: _uploadOptions, 1089 uploadMedia: _uploadMedia,
1000 uploadMedia: _uploadMedia, 1090 downloadOptions: _downloadOptions);
1001 downloadOptions: _downloadOptions);
1002 return _response.then((data) => new ListStepsResponse.fromJson(data)); 1091 return _response.then((data) => new ListStepsResponse.fromJson(data));
1003 } 1092 }
1004 1093
1005 /** 1094 /// Updates an existing Step with the supplied partial entity.
1006 * Updates an existing Step with the supplied partial entity. 1095 ///
1007 * 1096 /// May return any of the following canonical error codes:
1008 * May return any of the following canonical error codes: 1097 ///
1009 * 1098 /// - PERMISSION_DENIED - if the user is not authorized to write project -
1010 * - PERMISSION_DENIED - if the user is not authorized to write project - 1099 /// INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if
1011 * INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if 1100 /// the requested state transition is illegal (e.g try to upload a duplicate
1012 * the requested state transition is illegal (e.g try to upload a duplicate 1101 /// xml file), if the updated step is too large (more than 10Mib) - NOT_FOUND
1013 * xml file), if the updated step is too large (more than 10Mib) - NOT_FOUND - 1102 /// - if the containing Execution does not exist
1014 * if the containing Execution does not exist 1103 ///
1015 * 1104 /// [request] - The metadata request object.
1016 * [request] - The metadata request object. 1105 ///
1017 * 1106 /// Request parameters:
1018 * Request parameters: 1107 ///
1019 * 1108 /// [projectId] - A Project id.
1020 * [projectId] - A Project id. 1109 ///
1021 * 1110 /// Required.
1022 * Required. 1111 ///
1023 * 1112 /// [historyId] - A History id.
1024 * [historyId] - A History id. 1113 ///
1025 * 1114 /// Required.
1026 * Required. 1115 ///
1027 * 1116 /// [executionId] - A Execution id.
1028 * [executionId] - A Execution id. 1117 ///
1029 * 1118 /// Required.
1030 * Required. 1119 ///
1031 * 1120 /// [stepId] - A Step id.
1032 * [stepId] - A Step id. 1121 ///
1033 * 1122 /// Required.
1034 * Required. 1123 ///
1035 * 1124 /// [requestId] - A unique request ID for server to detect duplicated
1036 * [requestId] - A unique request ID for server to detect duplicated requests. 1125 /// requests. For example, a UUID.
1037 * For example, a UUID. 1126 ///
1038 * 1127 /// Optional, but strongly recommended.
1039 * Optional, but strongly recommended. 1128 ///
1040 * 1129 /// Completes with a [Step].
1041 * Completes with a [Step]. 1130 ///
1042 * 1131 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1043 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1132 /// an error.
1044 * error. 1133 ///
1045 * 1134 /// If the used [http.Client] completes with an error when making a REST
1046 * If the used [http.Client] completes with an error when making a REST call, 1135 /// call, this method will complete with the same error.
1047 * this method will complete with the same error. 1136 async.Future<Step> patch(Step request, core.String projectId,
1048 */ 1137 core.String historyId, core.String executionId, core.String stepId,
1049 async.Future<Step> patch(Step request, core.String projectId, core.String hist oryId, core.String executionId, core.String stepId, {core.String requestId}) { 1138 {core.String requestId}) {
1050 var _url = null; 1139 var _url = null;
1051 var _queryParams = new core.Map(); 1140 var _queryParams = new core.Map();
1052 var _uploadMedia = null; 1141 var _uploadMedia = null;
1053 var _uploadOptions = null; 1142 var _uploadOptions = null;
1054 var _downloadOptions = commons.DownloadOptions.Metadata; 1143 var _downloadOptions = commons.DownloadOptions.Metadata;
1055 var _body = null; 1144 var _body = null;
1056 1145
1057 if (request != null) { 1146 if (request != null) {
1058 _body = convert.JSON.encode((request).toJson()); 1147 _body = convert.JSON.encode((request).toJson());
1059 } 1148 }
1060 if (projectId == null) { 1149 if (projectId == null) {
1061 throw new core.ArgumentError("Parameter projectId is required."); 1150 throw new core.ArgumentError("Parameter projectId is required.");
1062 } 1151 }
1063 if (historyId == null) { 1152 if (historyId == null) {
1064 throw new core.ArgumentError("Parameter historyId is required."); 1153 throw new core.ArgumentError("Parameter historyId is required.");
1065 } 1154 }
1066 if (executionId == null) { 1155 if (executionId == null) {
1067 throw new core.ArgumentError("Parameter executionId is required."); 1156 throw new core.ArgumentError("Parameter executionId is required.");
1068 } 1157 }
1069 if (stepId == null) { 1158 if (stepId == null) {
1070 throw new core.ArgumentError("Parameter stepId is required."); 1159 throw new core.ArgumentError("Parameter stepId is required.");
1071 } 1160 }
1072 if (requestId != null) { 1161 if (requestId != null) {
1073 _queryParams["requestId"] = [requestId]; 1162 _queryParams["requestId"] = [requestId];
1074 } 1163 }
1075 1164
1076 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId'); 1165 _url = commons.Escaper.ecapeVariable('$projectId') +
1166 '/histories/' +
1167 commons.Escaper.ecapeVariable('$historyId') +
1168 '/executions/' +
1169 commons.Escaper.ecapeVariable('$executionId') +
1170 '/steps/' +
1171 commons.Escaper.ecapeVariable('$stepId');
1077 1172
1078 var _response = _requester.request(_url, 1173 var _response = _requester.request(_url, "PATCH",
1079 "PATCH", 1174 body: _body,
1080 body: _body, 1175 queryParams: _queryParams,
1081 queryParams: _queryParams, 1176 uploadOptions: _uploadOptions,
1082 uploadOptions: _uploadOptions, 1177 uploadMedia: _uploadMedia,
1083 uploadMedia: _uploadMedia, 1178 downloadOptions: _downloadOptions);
1084 downloadOptions: _downloadOptions);
1085 return _response.then((data) => new Step.fromJson(data)); 1179 return _response.then((data) => new Step.fromJson(data));
1086 } 1180 }
1087 1181
1088 /** 1182 /// Publish xml files to an existing Step.
1089 * Publish xml files to an existing Step. 1183 ///
1090 * 1184 /// May return any of the following canonical error codes:
1091 * May return any of the following canonical error codes: 1185 ///
1092 * 1186 /// - PERMISSION_DENIED - if the user is not authorized to write project -
1093 * - PERMISSION_DENIED - if the user is not authorized to write project - 1187 /// INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if
1094 * INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if 1188 /// the requested state transition is illegal, e.g try to upload a duplicate
1095 * the requested state transition is illegal, e.g try to upload a duplicate 1189 /// xml file or a file too large. - NOT_FOUND - if the containing Execution
1096 * xml file or a file too large. - NOT_FOUND - if the containing Execution 1190 /// does not exist
1097 * does not exist 1191 ///
1098 * 1192 /// [request] - The metadata request object.
1099 * [request] - The metadata request object. 1193 ///
1100 * 1194 /// Request parameters:
1101 * Request parameters: 1195 ///
1102 * 1196 /// [projectId] - A Project id.
1103 * [projectId] - A Project id. 1197 ///
1104 * 1198 /// Required.
1105 * Required. 1199 ///
1106 * 1200 /// [historyId] - A History id.
1107 * [historyId] - A History id. 1201 ///
1108 * 1202 /// Required.
1109 * Required. 1203 ///
1110 * 1204 /// [executionId] - A Execution id.
1111 * [executionId] - A Execution id. 1205 ///
1112 * 1206 /// Required.
1113 * Required. 1207 ///
1114 * 1208 /// [stepId] - A Step id. Note: This step must include a TestExecutionStep.
1115 * [stepId] - A Step id. Note: This step must include a TestExecutionStep. 1209 ///
1116 * 1210 /// Required.
1117 * Required. 1211 ///
1118 * 1212 /// Completes with a [Step].
1119 * Completes with a [Step]. 1213 ///
1120 * 1214 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1121 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1215 /// an error.
1122 * error. 1216 ///
1123 * 1217 /// If the used [http.Client] completes with an error when making a REST
1124 * If the used [http.Client] completes with an error when making a REST call, 1218 /// call, this method will complete with the same error.
1125 * this method will complete with the same error. 1219 async.Future<Step> publishXunitXmlFiles(
1126 */ 1220 PublishXunitXmlFilesRequest request,
1127 async.Future<Step> publishXunitXmlFiles(PublishXunitXmlFilesRequest request, c ore.String projectId, core.String historyId, core.String executionId, core.Strin g stepId) { 1221 core.String projectId,
1222 core.String historyId,
1223 core.String executionId,
1224 core.String stepId) {
1128 var _url = null; 1225 var _url = null;
1129 var _queryParams = new core.Map(); 1226 var _queryParams = new core.Map();
1130 var _uploadMedia = null; 1227 var _uploadMedia = null;
1131 var _uploadOptions = null; 1228 var _uploadOptions = null;
1132 var _downloadOptions = commons.DownloadOptions.Metadata; 1229 var _downloadOptions = commons.DownloadOptions.Metadata;
1133 var _body = null; 1230 var _body = null;
1134 1231
1135 if (request != null) { 1232 if (request != null) {
1136 _body = convert.JSON.encode((request).toJson()); 1233 _body = convert.JSON.encode((request).toJson());
1137 } 1234 }
1138 if (projectId == null) { 1235 if (projectId == null) {
1139 throw new core.ArgumentError("Parameter projectId is required."); 1236 throw new core.ArgumentError("Parameter projectId is required.");
1140 } 1237 }
1141 if (historyId == null) { 1238 if (historyId == null) {
1142 throw new core.ArgumentError("Parameter historyId is required."); 1239 throw new core.ArgumentError("Parameter historyId is required.");
1143 } 1240 }
1144 if (executionId == null) { 1241 if (executionId == null) {
1145 throw new core.ArgumentError("Parameter executionId is required."); 1242 throw new core.ArgumentError("Parameter executionId is required.");
1146 } 1243 }
1147 if (stepId == null) { 1244 if (stepId == null) {
1148 throw new core.ArgumentError("Parameter stepId is required."); 1245 throw new core.ArgumentError("Parameter stepId is required.");
1149 } 1246 }
1150 1247
1151 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId') + ' :publishXunitXmlFiles'; 1248 _url = commons.Escaper.ecapeVariable('$projectId') +
1249 '/histories/' +
1250 commons.Escaper.ecapeVariable('$historyId') +
1251 '/executions/' +
1252 commons.Escaper.ecapeVariable('$executionId') +
1253 '/steps/' +
1254 commons.Escaper.ecapeVariable('$stepId') +
1255 ':publishXunitXmlFiles';
1152 1256
1153 var _response = _requester.request(_url, 1257 var _response = _requester.request(_url, "POST",
1154 "POST", 1258 body: _body,
1155 body: _body, 1259 queryParams: _queryParams,
1156 queryParams: _queryParams, 1260 uploadOptions: _uploadOptions,
1157 uploadOptions: _uploadOptions, 1261 uploadMedia: _uploadMedia,
1158 uploadMedia: _uploadMedia, 1262 downloadOptions: _downloadOptions);
1159 downloadOptions: _downloadOptions);
1160 return _response.then((data) => new Step.fromJson(data)); 1263 return _response.then((data) => new Step.fromJson(data));
1161 } 1264 }
1162
1163 } 1265 }
1164 1266
1165
1166 class ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi { 1267 class ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi {
1167 final commons.ApiRequester _requester; 1268 final commons.ApiRequester _requester;
1168 1269
1169 ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi(commons.ApiReque ster client) : 1270 ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi(
1170 _requester = client; 1271 commons.ApiRequester client)
1272 : _requester = client;
1171 1273
1172 /** 1274 /// Creates a PerfMetricsSummary resource. Returns the existing one if it has
1173 * Creates a PerfMetricsSummary resource. 1275 /// already been created.
1174 * 1276 ///
1175 * May return any of the following error code(s): - ALREADY_EXISTS - A 1277 /// May return any of the following error code(s): - NOT_FOUND - The
1176 * PerfMetricSummary already exists for the given Step - NOT_FOUND - The 1278 /// containing Step does not exist
1177 * containing Step does not exist 1279 ///
1178 * 1280 /// [request] - The metadata request object.
1179 * [request] - The metadata request object. 1281 ///
1180 * 1282 /// Request parameters:
1181 * Request parameters: 1283 ///
1182 * 1284 /// [projectId] - The cloud project
1183 * [projectId] - The cloud project 1285 ///
1184 * 1286 /// [historyId] - A tool results history ID.
1185 * [historyId] - A tool results history ID. 1287 ///
1186 * 1288 /// [executionId] - A tool results execution ID.
1187 * [executionId] - A tool results execution ID. 1289 ///
1188 * 1290 /// [stepId] - A tool results step ID.
1189 * [stepId] - A tool results step ID. 1291 ///
1190 * 1292 /// Completes with a [PerfMetricsSummary].
1191 * Completes with a [PerfMetricsSummary]. 1293 ///
1192 * 1294 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1193 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1295 /// an error.
1194 * error. 1296 ///
1195 * 1297 /// If the used [http.Client] completes with an error when making a REST
1196 * If the used [http.Client] completes with an error when making a REST call, 1298 /// call, this method will complete with the same error.
1197 * this method will complete with the same error. 1299 async.Future<PerfMetricsSummary> create(
1198 */ 1300 PerfMetricsSummary request,
1199 async.Future<PerfMetricsSummary> create(PerfMetricsSummary request, core.Strin g projectId, core.String historyId, core.String executionId, core.String stepId) { 1301 core.String projectId,
1302 core.String historyId,
1303 core.String executionId,
1304 core.String stepId) {
1200 var _url = null; 1305 var _url = null;
1201 var _queryParams = new core.Map(); 1306 var _queryParams = new core.Map();
1202 var _uploadMedia = null; 1307 var _uploadMedia = null;
1203 var _uploadOptions = null; 1308 var _uploadOptions = null;
1204 var _downloadOptions = commons.DownloadOptions.Metadata; 1309 var _downloadOptions = commons.DownloadOptions.Metadata;
1205 var _body = null; 1310 var _body = null;
1206 1311
1207 if (request != null) { 1312 if (request != null) {
1208 _body = convert.JSON.encode((request).toJson()); 1313 _body = convert.JSON.encode((request).toJson());
1209 } 1314 }
1210 if (projectId == null) { 1315 if (projectId == null) {
1211 throw new core.ArgumentError("Parameter projectId is required."); 1316 throw new core.ArgumentError("Parameter projectId is required.");
1212 } 1317 }
1213 if (historyId == null) { 1318 if (historyId == null) {
1214 throw new core.ArgumentError("Parameter historyId is required."); 1319 throw new core.ArgumentError("Parameter historyId is required.");
1215 } 1320 }
1216 if (executionId == null) { 1321 if (executionId == null) {
1217 throw new core.ArgumentError("Parameter executionId is required."); 1322 throw new core.ArgumentError("Parameter executionId is required.");
1218 } 1323 }
1219 if (stepId == null) { 1324 if (stepId == null) {
1220 throw new core.ArgumentError("Parameter stepId is required."); 1325 throw new core.ArgumentError("Parameter stepId is required.");
1221 } 1326 }
1222 1327
1223 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId') + ' /perfMetricsSummary'; 1328 _url = commons.Escaper.ecapeVariable('$projectId') +
1329 '/histories/' +
1330 commons.Escaper.ecapeVariable('$historyId') +
1331 '/executions/' +
1332 commons.Escaper.ecapeVariable('$executionId') +
1333 '/steps/' +
1334 commons.Escaper.ecapeVariable('$stepId') +
1335 '/perfMetricsSummary';
1224 1336
1225 var _response = _requester.request(_url, 1337 var _response = _requester.request(_url, "POST",
1226 "POST", 1338 body: _body,
1227 body: _body, 1339 queryParams: _queryParams,
1228 queryParams: _queryParams, 1340 uploadOptions: _uploadOptions,
1229 uploadOptions: _uploadOptions, 1341 uploadMedia: _uploadMedia,
1230 uploadMedia: _uploadMedia, 1342 downloadOptions: _downloadOptions);
1231 downloadOptions: _downloadOptions);
1232 return _response.then((data) => new PerfMetricsSummary.fromJson(data)); 1343 return _response.then((data) => new PerfMetricsSummary.fromJson(data));
1233 } 1344 }
1234
1235 } 1345 }
1236 1346
1237
1238 class ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi { 1347 class ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi {
1239 final commons.ApiRequester _requester; 1348 final commons.ApiRequester _requester;
1240 1349
1241 ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesResourceApi get samples => new ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesResourceApi(_requ ester); 1350 ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesResourceApi
1351 get samples =>
1352 new ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesResourceApi (
1353 _requester);
1242 1354
1243 ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi(commons.ApiRequest er client) : 1355 ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi(
1244 _requester = client; 1356 commons.ApiRequester client)
1357 : _requester = client;
1245 1358
1246 /** 1359 /// Creates a PerfSampleSeries.
1247 * Creates a PerfSampleSeries. 1360 ///
1248 * 1361 /// May return any of the following error code(s): - ALREADY_EXISTS -
1249 * May return any of the following error code(s): - ALREADY_EXISTS - 1362 /// PerfMetricSummary already exists for the given Step - NOT_FOUND - The
1250 * PerfMetricSummary already exists for the given Step - NOT_FOUND - The 1363 /// containing Step does not exist
1251 * containing Step does not exist 1364 ///
1252 * 1365 /// [request] - The metadata request object.
1253 * [request] - The metadata request object. 1366 ///
1254 * 1367 /// Request parameters:
1255 * Request parameters: 1368 ///
1256 * 1369 /// [projectId] - The cloud project
1257 * [projectId] - The cloud project 1370 ///
1258 * 1371 /// [historyId] - A tool results history ID.
1259 * [historyId] - A tool results history ID. 1372 ///
1260 * 1373 /// [executionId] - A tool results execution ID.
1261 * [executionId] - A tool results execution ID. 1374 ///
1262 * 1375 /// [stepId] - A tool results step ID.
1263 * [stepId] - A tool results step ID. 1376 ///
1264 * 1377 /// Completes with a [PerfSampleSeries].
1265 * Completes with a [PerfSampleSeries]. 1378 ///
1266 * 1379 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1267 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1380 /// an error.
1268 * error. 1381 ///
1269 * 1382 /// If the used [http.Client] completes with an error when making a REST
1270 * If the used [http.Client] completes with an error when making a REST call, 1383 /// call, this method will complete with the same error.
1271 * this method will complete with the same error. 1384 async.Future<PerfSampleSeries> create(
1272 */ 1385 PerfSampleSeries request,
1273 async.Future<PerfSampleSeries> create(PerfSampleSeries request, core.String pr ojectId, core.String historyId, core.String executionId, core.String stepId) { 1386 core.String projectId,
1387 core.String historyId,
1388 core.String executionId,
1389 core.String stepId) {
1274 var _url = null; 1390 var _url = null;
1275 var _queryParams = new core.Map(); 1391 var _queryParams = new core.Map();
1276 var _uploadMedia = null; 1392 var _uploadMedia = null;
1277 var _uploadOptions = null; 1393 var _uploadOptions = null;
1278 var _downloadOptions = commons.DownloadOptions.Metadata; 1394 var _downloadOptions = commons.DownloadOptions.Metadata;
1279 var _body = null; 1395 var _body = null;
1280 1396
1281 if (request != null) { 1397 if (request != null) {
1282 _body = convert.JSON.encode((request).toJson()); 1398 _body = convert.JSON.encode((request).toJson());
1283 } 1399 }
1284 if (projectId == null) { 1400 if (projectId == null) {
1285 throw new core.ArgumentError("Parameter projectId is required."); 1401 throw new core.ArgumentError("Parameter projectId is required.");
1286 } 1402 }
1287 if (historyId == null) { 1403 if (historyId == null) {
1288 throw new core.ArgumentError("Parameter historyId is required."); 1404 throw new core.ArgumentError("Parameter historyId is required.");
1289 } 1405 }
1290 if (executionId == null) { 1406 if (executionId == null) {
1291 throw new core.ArgumentError("Parameter executionId is required."); 1407 throw new core.ArgumentError("Parameter executionId is required.");
1292 } 1408 }
1293 if (stepId == null) { 1409 if (stepId == null) {
1294 throw new core.ArgumentError("Parameter stepId is required."); 1410 throw new core.ArgumentError("Parameter stepId is required.");
1295 } 1411 }
1296 1412
1297 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId') + ' /perfSampleSeries'; 1413 _url = commons.Escaper.ecapeVariable('$projectId') +
1414 '/histories/' +
1415 commons.Escaper.ecapeVariable('$historyId') +
1416 '/executions/' +
1417 commons.Escaper.ecapeVariable('$executionId') +
1418 '/steps/' +
1419 commons.Escaper.ecapeVariable('$stepId') +
1420 '/perfSampleSeries';
1298 1421
1299 var _response = _requester.request(_url, 1422 var _response = _requester.request(_url, "POST",
1300 "POST", 1423 body: _body,
1301 body: _body, 1424 queryParams: _queryParams,
1302 queryParams: _queryParams, 1425 uploadOptions: _uploadOptions,
1303 uploadOptions: _uploadOptions, 1426 uploadMedia: _uploadMedia,
1304 uploadMedia: _uploadMedia, 1427 downloadOptions: _downloadOptions);
1305 downloadOptions: _downloadOptions);
1306 return _response.then((data) => new PerfSampleSeries.fromJson(data)); 1428 return _response.then((data) => new PerfSampleSeries.fromJson(data));
1307 } 1429 }
1308 1430
1309 /** 1431 /// Gets a PerfSampleSeries.
1310 * Gets a PerfSampleSeries. 1432 ///
1311 * 1433 /// May return any of the following error code(s): - NOT_FOUND - The
1312 * May return any of the following error code(s): - NOT_FOUND - The specified 1434 /// specified PerfSampleSeries does not exist
1313 * PerfSampleSeries does not exist 1435 ///
1314 * 1436 /// Request parameters:
1315 * Request parameters: 1437 ///
1316 * 1438 /// [projectId] - The cloud project
1317 * [projectId] - The cloud project 1439 ///
1318 * 1440 /// [historyId] - A tool results history ID.
1319 * [historyId] - A tool results history ID. 1441 ///
1320 * 1442 /// [executionId] - A tool results execution ID.
1321 * [executionId] - A tool results execution ID. 1443 ///
1322 * 1444 /// [stepId] - A tool results step ID.
1323 * [stepId] - A tool results step ID. 1445 ///
1324 * 1446 /// [sampleSeriesId] - A sample series id
1325 * [sampleSeriesId] - A sample series id 1447 ///
1326 * 1448 /// Completes with a [PerfSampleSeries].
1327 * Completes with a [PerfSampleSeries]. 1449 ///
1328 * 1450 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1329 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1451 /// an error.
1330 * error. 1452 ///
1331 * 1453 /// If the used [http.Client] completes with an error when making a REST
1332 * If the used [http.Client] completes with an error when making a REST call, 1454 /// call, this method will complete with the same error.
1333 * this method will complete with the same error. 1455 async.Future<PerfSampleSeries> get(
1334 */ 1456 core.String projectId,
1335 async.Future<PerfSampleSeries> get(core.String projectId, core.String historyI d, core.String executionId, core.String stepId, core.String sampleSeriesId) { 1457 core.String historyId,
1458 core.String executionId,
1459 core.String stepId,
1460 core.String sampleSeriesId) {
1336 var _url = null; 1461 var _url = null;
1337 var _queryParams = new core.Map(); 1462 var _queryParams = new core.Map();
1338 var _uploadMedia = null; 1463 var _uploadMedia = null;
1339 var _uploadOptions = null; 1464 var _uploadOptions = null;
1340 var _downloadOptions = commons.DownloadOptions.Metadata; 1465 var _downloadOptions = commons.DownloadOptions.Metadata;
1341 var _body = null; 1466 var _body = null;
1342 1467
1343 if (projectId == null) { 1468 if (projectId == null) {
1344 throw new core.ArgumentError("Parameter projectId is required."); 1469 throw new core.ArgumentError("Parameter projectId is required.");
1345 } 1470 }
1346 if (historyId == null) { 1471 if (historyId == null) {
1347 throw new core.ArgumentError("Parameter historyId is required."); 1472 throw new core.ArgumentError("Parameter historyId is required.");
1348 } 1473 }
1349 if (executionId == null) { 1474 if (executionId == null) {
1350 throw new core.ArgumentError("Parameter executionId is required."); 1475 throw new core.ArgumentError("Parameter executionId is required.");
1351 } 1476 }
1352 if (stepId == null) { 1477 if (stepId == null) {
1353 throw new core.ArgumentError("Parameter stepId is required."); 1478 throw new core.ArgumentError("Parameter stepId is required.");
1354 } 1479 }
1355 if (sampleSeriesId == null) { 1480 if (sampleSeriesId == null) {
1356 throw new core.ArgumentError("Parameter sampleSeriesId is required."); 1481 throw new core.ArgumentError("Parameter sampleSeriesId is required.");
1357 } 1482 }
1358 1483
1359 _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'); 1484 _url = commons.Escaper.ecapeVariable('$projectId') +
1485 '/histories/' +
1486 commons.Escaper.ecapeVariable('$historyId') +
1487 '/executions/' +
1488 commons.Escaper.ecapeVariable('$executionId') +
1489 '/steps/' +
1490 commons.Escaper.ecapeVariable('$stepId') +
1491 '/perfSampleSeries/' +
1492 commons.Escaper.ecapeVariable('$sampleSeriesId');
1360 1493
1361 var _response = _requester.request(_url, 1494 var _response = _requester.request(_url, "GET",
1362 "GET", 1495 body: _body,
1363 body: _body, 1496 queryParams: _queryParams,
1364 queryParams: _queryParams, 1497 uploadOptions: _uploadOptions,
1365 uploadOptions: _uploadOptions, 1498 uploadMedia: _uploadMedia,
1366 uploadMedia: _uploadMedia, 1499 downloadOptions: _downloadOptions);
1367 downloadOptions: _downloadOptions);
1368 return _response.then((data) => new PerfSampleSeries.fromJson(data)); 1500 return _response.then((data) => new PerfSampleSeries.fromJson(data));
1369 } 1501 }
1370 1502
1371 /** 1503 /// Lists PerfSampleSeries for a given Step.
1372 * Lists PerfSampleSeries for a given Step. 1504 ///
1373 * 1505 /// The request provides an optional filter which specifies one or more
1374 * The request provides an optional filter which specifies one or more 1506 /// PerfMetricsType to include in the result; if none returns all. The
1375 * PerfMetricsType to include in the result; if none returns all. The 1507 /// resulting PerfSampleSeries are sorted by ids.
1376 * resulting PerfSampleSeries are sorted by ids. 1508 ///
1377 * 1509 /// May return any of the following canonical error codes: - NOT_FOUND - The
1378 * May return any of the following canonical error codes: - NOT_FOUND - The 1510 /// containing Step does not exist
1379 * containing Step does not exist 1511 ///
1380 * 1512 /// Request parameters:
1381 * Request parameters: 1513 ///
1382 * 1514 /// [projectId] - The cloud project
1383 * [projectId] - The cloud project 1515 ///
1384 * 1516 /// [historyId] - A tool results history ID.
1385 * [historyId] - A tool results history ID. 1517 ///
1386 * 1518 /// [executionId] - A tool results execution ID.
1387 * [executionId] - A tool results execution ID. 1519 ///
1388 * 1520 /// [stepId] - A tool results step ID.
1389 * [stepId] - A tool results step ID. 1521 ///
1390 * 1522 /// [filter] - Specify one or more PerfMetricType values such as CPU to
1391 * [filter] - Specify one or more PerfMetricType values such as CPU to filter 1523 /// filter the result
1392 * the result 1524 ///
1393 * 1525 /// Completes with a [ListPerfSampleSeriesResponse].
1394 * Completes with a [ListPerfSampleSeriesResponse]. 1526 ///
1395 * 1527 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1396 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1528 /// an error.
1397 * error. 1529 ///
1398 * 1530 /// If the used [http.Client] completes with an error when making a REST
1399 * If the used [http.Client] completes with an error when making a REST call, 1531 /// call, this method will complete with the same error.
1400 * this method will complete with the same error. 1532 async.Future<ListPerfSampleSeriesResponse> list(core.String projectId,
1401 */ 1533 core.String historyId, core.String executionId, core.String stepId,
1402 async.Future<ListPerfSampleSeriesResponse> list(core.String projectId, core.St ring historyId, core.String executionId, core.String stepId, {core.List<core.Str ing> filter}) { 1534 {core.List<core.String> filter}) {
1403 var _url = null; 1535 var _url = null;
1404 var _queryParams = new core.Map(); 1536 var _queryParams = new core.Map();
1405 var _uploadMedia = null; 1537 var _uploadMedia = null;
1406 var _uploadOptions = null; 1538 var _uploadOptions = null;
1407 var _downloadOptions = commons.DownloadOptions.Metadata; 1539 var _downloadOptions = commons.DownloadOptions.Metadata;
1408 var _body = null; 1540 var _body = null;
1409 1541
1410 if (projectId == null) { 1542 if (projectId == null) {
1411 throw new core.ArgumentError("Parameter projectId is required."); 1543 throw new core.ArgumentError("Parameter projectId is required.");
1412 } 1544 }
1413 if (historyId == null) { 1545 if (historyId == null) {
1414 throw new core.ArgumentError("Parameter historyId is required."); 1546 throw new core.ArgumentError("Parameter historyId is required.");
1415 } 1547 }
1416 if (executionId == null) { 1548 if (executionId == null) {
1417 throw new core.ArgumentError("Parameter executionId is required."); 1549 throw new core.ArgumentError("Parameter executionId is required.");
1418 } 1550 }
1419 if (stepId == null) { 1551 if (stepId == null) {
1420 throw new core.ArgumentError("Parameter stepId is required."); 1552 throw new core.ArgumentError("Parameter stepId is required.");
1421 } 1553 }
1422 if (filter != null) { 1554 if (filter != null) {
1423 _queryParams["filter"] = filter; 1555 _queryParams["filter"] = filter;
1424 } 1556 }
1425 1557
1426 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId') + ' /perfSampleSeries'; 1558 _url = commons.Escaper.ecapeVariable('$projectId') +
1559 '/histories/' +
1560 commons.Escaper.ecapeVariable('$historyId') +
1561 '/executions/' +
1562 commons.Escaper.ecapeVariable('$executionId') +
1563 '/steps/' +
1564 commons.Escaper.ecapeVariable('$stepId') +
1565 '/perfSampleSeries';
1427 1566
1428 var _response = _requester.request(_url, 1567 var _response = _requester.request(_url, "GET",
1429 "GET", 1568 body: _body,
1430 body: _body, 1569 queryParams: _queryParams,
1431 queryParams: _queryParams, 1570 uploadOptions: _uploadOptions,
1432 uploadOptions: _uploadOptions, 1571 uploadMedia: _uploadMedia,
1433 uploadMedia: _uploadMedia, 1572 downloadOptions: _downloadOptions);
1434 downloadOptions: _downloadOptions); 1573 return _response
1435 return _response.then((data) => new ListPerfSampleSeriesResponse.fromJson(da ta)); 1574 .then((data) => new ListPerfSampleSeriesResponse.fromJson(data));
1436 } 1575 }
1437
1438 } 1576 }
1439 1577
1440
1441 class ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesResourceApi { 1578 class ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesResourceApi {
1442 final commons.ApiRequester _requester; 1579 final commons.ApiRequester _requester;
1443 1580
1444 ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesResourceApi(commons.Api Requester client) : 1581 ProjectsHistoriesExecutionsStepsPerfSampleSeriesSamplesResourceApi(
1445 _requester = client; 1582 commons.ApiRequester client)
1583 : _requester = client;
1446 1584
1447 /** 1585 /// Creates a batch of PerfSamples - a client can submit multiple batches of
1448 * Creates a batch of PerfSamples - a client can submit multiple batches of 1586 /// Perf Samples through repeated calls to this method in order to split up a
1449 * Perf Samples through repeated calls to this method in order to split up a 1587 /// large request payload - duplicates and existing timestamp entries will be
1450 * large request payload - duplicates and existing timestamp entries will be 1588 /// ignored. - the batch operation may partially succeed - the set of
1451 * ignored. - the batch operation may partially succeed - the set of elements 1589 /// elements successfully inserted is returned in the response (omits items
1452 * successfully inserted is returned in the response (omits items which 1590 /// which already existed in the database).
1453 * already existed in the database). 1591 ///
1454 * 1592 /// May return any of the following canonical error codes: - NOT_FOUND - The
1455 * May return any of the following canonical error codes: - NOT_FOUND - The 1593 /// containing PerfSampleSeries does not exist
1456 * containing PerfSampleSeries does not exist 1594 ///
1457 * 1595 /// [request] - The metadata request object.
1458 * [request] - The metadata request object. 1596 ///
1459 * 1597 /// Request parameters:
1460 * Request parameters: 1598 ///
1461 * 1599 /// [projectId] - The cloud project
1462 * [projectId] - The cloud project 1600 ///
1463 * 1601 /// [historyId] - A tool results history ID.
1464 * [historyId] - A tool results history ID. 1602 ///
1465 * 1603 /// [executionId] - A tool results execution ID.
1466 * [executionId] - A tool results execution ID. 1604 ///
1467 * 1605 /// [stepId] - A tool results step ID.
1468 * [stepId] - A tool results step ID. 1606 ///
1469 * 1607 /// [sampleSeriesId] - A sample series id
1470 * [sampleSeriesId] - A sample series id 1608 ///
1471 * 1609 /// Completes with a [BatchCreatePerfSamplesResponse].
1472 * Completes with a [BatchCreatePerfSamplesResponse]. 1610 ///
1473 * 1611 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1474 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1612 /// an error.
1475 * error. 1613 ///
1476 * 1614 /// If the used [http.Client] completes with an error when making a REST
1477 * If the used [http.Client] completes with an error when making a REST call, 1615 /// call, this method will complete with the same error.
1478 * this method will complete with the same error. 1616 async.Future<BatchCreatePerfSamplesResponse> batchCreate(
1479 */ 1617 BatchCreatePerfSamplesRequest request,
1480 async.Future<BatchCreatePerfSamplesResponse> batchCreate(BatchCreatePerfSample sRequest request, core.String projectId, core.String historyId, core.String exec utionId, core.String stepId, core.String sampleSeriesId) { 1618 core.String projectId,
1619 core.String historyId,
1620 core.String executionId,
1621 core.String stepId,
1622 core.String sampleSeriesId) {
1481 var _url = null; 1623 var _url = null;
1482 var _queryParams = new core.Map(); 1624 var _queryParams = new core.Map();
1483 var _uploadMedia = null; 1625 var _uploadMedia = null;
1484 var _uploadOptions = null; 1626 var _uploadOptions = null;
1485 var _downloadOptions = commons.DownloadOptions.Metadata; 1627 var _downloadOptions = commons.DownloadOptions.Metadata;
1486 var _body = null; 1628 var _body = null;
1487 1629
1488 if (request != null) { 1630 if (request != null) {
1489 _body = convert.JSON.encode((request).toJson()); 1631 _body = convert.JSON.encode((request).toJson());
1490 } 1632 }
1491 if (projectId == null) { 1633 if (projectId == null) {
1492 throw new core.ArgumentError("Parameter projectId is required."); 1634 throw new core.ArgumentError("Parameter projectId is required.");
1493 } 1635 }
1494 if (historyId == null) { 1636 if (historyId == null) {
1495 throw new core.ArgumentError("Parameter historyId is required."); 1637 throw new core.ArgumentError("Parameter historyId is required.");
1496 } 1638 }
1497 if (executionId == null) { 1639 if (executionId == null) {
1498 throw new core.ArgumentError("Parameter executionId is required."); 1640 throw new core.ArgumentError("Parameter executionId is required.");
1499 } 1641 }
1500 if (stepId == null) { 1642 if (stepId == null) {
1501 throw new core.ArgumentError("Parameter stepId is required."); 1643 throw new core.ArgumentError("Parameter stepId is required.");
1502 } 1644 }
1503 if (sampleSeriesId == null) { 1645 if (sampleSeriesId == null) {
1504 throw new core.ArgumentError("Parameter sampleSeriesId is required."); 1646 throw new core.ArgumentError("Parameter sampleSeriesId is required.");
1505 } 1647 }
1506 1648
1507 _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'; 1649 _url = commons.Escaper.ecapeVariable('$projectId') +
1650 '/histories/' +
1651 commons.Escaper.ecapeVariable('$historyId') +
1652 '/executions/' +
1653 commons.Escaper.ecapeVariable('$executionId') +
1654 '/steps/' +
1655 commons.Escaper.ecapeVariable('$stepId') +
1656 '/perfSampleSeries/' +
1657 commons.Escaper.ecapeVariable('$sampleSeriesId') +
1658 '/samples:batchCreate';
1508 1659
1509 var _response = _requester.request(_url, 1660 var _response = _requester.request(_url, "POST",
1510 "POST", 1661 body: _body,
1511 body: _body, 1662 queryParams: _queryParams,
1512 queryParams: _queryParams, 1663 uploadOptions: _uploadOptions,
1513 uploadOptions: _uploadOptions, 1664 uploadMedia: _uploadMedia,
1514 uploadMedia: _uploadMedia, 1665 downloadOptions: _downloadOptions);
1515 downloadOptions: _downloadOptions); 1666 return _response
1516 return _response.then((data) => new BatchCreatePerfSamplesResponse.fromJson( data)); 1667 .then((data) => new BatchCreatePerfSamplesResponse.fromJson(data));
1517 } 1668 }
1518 1669
1519 /** 1670 /// Lists the Performance Samples of a given Sample Series - The list results
1520 * Lists the Performance Samples of a given Sample Series - The list results 1671 /// are sorted by timestamps ascending - The default page size is 500
1521 * are sorted by timestamps ascending - The default page size is 500 samples; 1672 /// samples; and maximum size allowed 5000 - The response token indicates the
1522 * and maximum size allowed 5000 - The response token indicates the last 1673 /// last returned PerfSample timestamp - When the results size exceeds the
1523 * returned PerfSample timestamp - When the results size exceeds the page 1674 /// page size, submit a subsequent request including the page token to return
1524 * size, submit a subsequent request including the page token to return the 1675 /// the rest of the samples up to the page limit
1525 * rest of the samples up to the page limit 1676 ///
1526 * 1677 /// May return any of the following canonical error codes: - OUT_OF_RANGE -
1527 * May return any of the following canonical error codes: - OUT_OF_RANGE - The 1678 /// The specified request page_token is out of valid range - NOT_FOUND - The
1528 * specified request page_token is out of valid range - NOT_FOUND - The 1679 /// containing PerfSampleSeries does not exist
1529 * containing PerfSampleSeries does not exist 1680 ///
1530 * 1681 /// Request parameters:
1531 * Request parameters: 1682 ///
1532 * 1683 /// [projectId] - The cloud project
1533 * [projectId] - The cloud project 1684 ///
1534 * 1685 /// [historyId] - A tool results history ID.
1535 * [historyId] - A tool results history ID. 1686 ///
1536 * 1687 /// [executionId] - A tool results execution ID.
1537 * [executionId] - A tool results execution ID. 1688 ///
1538 * 1689 /// [stepId] - A tool results step ID.
1539 * [stepId] - A tool results step ID. 1690 ///
1540 * 1691 /// [sampleSeriesId] - A sample series id
1541 * [sampleSeriesId] - A sample series id 1692 ///
1542 * 1693 /// [pageSize] - The default page size is 500 samples, and the maximum size
1543 * [pageSize] - The default page size is 500 samples, and the maximum size is 1694 /// is 5000. If the page_size is greater than 5000, the effective page size
1544 * 5000. If the page_size is greater than 5000, the effective page size will 1695 /// will be 5000
1545 * be 5000 1696 ///
1546 * 1697 /// [pageToken] - Optional, the next_page_token returned in the previous
1547 * [pageToken] - Optional, the next_page_token returned in the previous 1698 /// response
1548 * response 1699 ///
1549 * 1700 /// Completes with a [ListPerfSamplesResponse].
1550 * Completes with a [ListPerfSamplesResponse]. 1701 ///
1551 * 1702 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1552 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1703 /// an error.
1553 * error. 1704 ///
1554 * 1705 /// If the used [http.Client] completes with an error when making a REST
1555 * If the used [http.Client] completes with an error when making a REST call, 1706 /// call, this method will complete with the same error.
1556 * this method will complete with the same error. 1707 async.Future<ListPerfSamplesResponse> list(
1557 */ 1708 core.String projectId,
1558 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}) { 1709 core.String historyId,
1710 core.String executionId,
1711 core.String stepId,
1712 core.String sampleSeriesId,
1713 {core.int pageSize,
1714 core.String pageToken}) {
1559 var _url = null; 1715 var _url = null;
1560 var _queryParams = new core.Map(); 1716 var _queryParams = new core.Map();
1561 var _uploadMedia = null; 1717 var _uploadMedia = null;
1562 var _uploadOptions = null; 1718 var _uploadOptions = null;
1563 var _downloadOptions = commons.DownloadOptions.Metadata; 1719 var _downloadOptions = commons.DownloadOptions.Metadata;
1564 var _body = null; 1720 var _body = null;
1565 1721
1566 if (projectId == null) { 1722 if (projectId == null) {
1567 throw new core.ArgumentError("Parameter projectId is required."); 1723 throw new core.ArgumentError("Parameter projectId is required.");
1568 } 1724 }
1569 if (historyId == null) { 1725 if (historyId == null) {
1570 throw new core.ArgumentError("Parameter historyId is required."); 1726 throw new core.ArgumentError("Parameter historyId is required.");
1571 } 1727 }
1572 if (executionId == null) { 1728 if (executionId == null) {
1573 throw new core.ArgumentError("Parameter executionId is required."); 1729 throw new core.ArgumentError("Parameter executionId is required.");
1574 } 1730 }
1575 if (stepId == null) { 1731 if (stepId == null) {
1576 throw new core.ArgumentError("Parameter stepId is required."); 1732 throw new core.ArgumentError("Parameter stepId is required.");
1577 } 1733 }
1578 if (sampleSeriesId == null) { 1734 if (sampleSeriesId == null) {
1579 throw new core.ArgumentError("Parameter sampleSeriesId is required."); 1735 throw new core.ArgumentError("Parameter sampleSeriesId is required.");
1580 } 1736 }
1581 if (pageSize != null) { 1737 if (pageSize != null) {
1582 _queryParams["pageSize"] = ["${pageSize}"]; 1738 _queryParams["pageSize"] = ["${pageSize}"];
1583 } 1739 }
1584 if (pageToken != null) { 1740 if (pageToken != null) {
1585 _queryParams["pageToken"] = [pageToken]; 1741 _queryParams["pageToken"] = [pageToken];
1586 } 1742 }
1587 1743
1588 _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'; 1744 _url = commons.Escaper.ecapeVariable('$projectId') +
1745 '/histories/' +
1746 commons.Escaper.ecapeVariable('$historyId') +
1747 '/executions/' +
1748 commons.Escaper.ecapeVariable('$executionId') +
1749 '/steps/' +
1750 commons.Escaper.ecapeVariable('$stepId') +
1751 '/perfSampleSeries/' +
1752 commons.Escaper.ecapeVariable('$sampleSeriesId') +
1753 '/samples';
1589 1754
1590 var _response = _requester.request(_url, 1755 var _response = _requester.request(_url, "GET",
1591 "GET", 1756 body: _body,
1592 body: _body, 1757 queryParams: _queryParams,
1593 queryParams: _queryParams, 1758 uploadOptions: _uploadOptions,
1594 uploadOptions: _uploadOptions, 1759 uploadMedia: _uploadMedia,
1595 uploadMedia: _uploadMedia, 1760 downloadOptions: _downloadOptions);
1596 downloadOptions: _downloadOptions);
1597 return _response.then((data) => new ListPerfSamplesResponse.fromJson(data)); 1761 return _response.then((data) => new ListPerfSamplesResponse.fromJson(data));
1598 } 1762 }
1599
1600 } 1763 }
1601 1764
1602
1603 class ProjectsHistoriesExecutionsStepsThumbnailsResourceApi { 1765 class ProjectsHistoriesExecutionsStepsThumbnailsResourceApi {
1604 final commons.ApiRequester _requester; 1766 final commons.ApiRequester _requester;
1605 1767
1606 ProjectsHistoriesExecutionsStepsThumbnailsResourceApi(commons.ApiRequester cli ent) : 1768 ProjectsHistoriesExecutionsStepsThumbnailsResourceApi(
1607 _requester = client; 1769 commons.ApiRequester client)
1770 : _requester = client;
1608 1771
1609 /** 1772 /// Lists thumbnails of images attached to a step.
1610 * Lists thumbnails of images attached to a step. 1773 ///
1611 * 1774 /// May return any of the following canonical error codes: -
1612 * May return any of the following canonical error codes: - PERMISSION_DENIED 1775 /// PERMISSION_DENIED - if the user is not authorized to read from the
1613 * - if the user is not authorized to read from the project, or from any of 1776 /// project, or from any of the images - INVALID_ARGUMENT - if the request is
1614 * the images - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - 1777 /// malformed - NOT_FOUND - if the step does not exist, or if any of the
1615 * if the step does not exist, or if any of the images do not exist 1778 /// images do not exist
1616 * 1779 ///
1617 * Request parameters: 1780 /// Request parameters:
1618 * 1781 ///
1619 * [projectId] - A Project id. 1782 /// [projectId] - A Project id.
1620 * 1783 ///
1621 * Required. 1784 /// Required.
1622 * 1785 ///
1623 * [historyId] - A History id. 1786 /// [historyId] - A History id.
1624 * 1787 ///
1625 * Required. 1788 /// Required.
1626 * 1789 ///
1627 * [executionId] - An Execution id. 1790 /// [executionId] - An Execution id.
1628 * 1791 ///
1629 * Required. 1792 /// Required.
1630 * 1793 ///
1631 * [stepId] - A Step id. 1794 /// [stepId] - A Step id.
1632 * 1795 ///
1633 * Required. 1796 /// Required.
1634 * 1797 ///
1635 * [pageSize] - The maximum number of thumbnails to fetch. 1798 /// [pageSize] - The maximum number of thumbnails to fetch.
1636 * 1799 ///
1637 * Default value: 50. The server will use this default if the field is not set 1800 /// Default value: 50. The server will use this default if the field is not
1638 * or has a value of 0. 1801 /// set or has a value of 0.
1639 * 1802 ///
1640 * Optional. 1803 /// Optional.
1641 * 1804 ///
1642 * [pageToken] - A continuation token to resume the query at the next item. 1805 /// [pageToken] - A continuation token to resume the query at the next item.
1643 * 1806 ///
1644 * Optional. 1807 /// Optional.
1645 * 1808 ///
1646 * Completes with a [ListStepThumbnailsResponse]. 1809 /// Completes with a [ListStepThumbnailsResponse].
1647 * 1810 ///
1648 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1811 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1649 * error. 1812 /// an error.
1650 * 1813 ///
1651 * If the used [http.Client] completes with an error when making a REST call, 1814 /// If the used [http.Client] completes with an error when making a REST
1652 * this method will complete with the same error. 1815 /// call, this method will complete with the same error.
1653 */ 1816 async.Future<ListStepThumbnailsResponse> list(core.String projectId,
1654 async.Future<ListStepThumbnailsResponse> list(core.String projectId, core.Stri ng historyId, core.String executionId, core.String stepId, {core.int pageSize, c ore.String pageToken}) { 1817 core.String historyId, core.String executionId, core.String stepId,
1818 {core.int pageSize, core.String pageToken}) {
1655 var _url = null; 1819 var _url = null;
1656 var _queryParams = new core.Map(); 1820 var _queryParams = new core.Map();
1657 var _uploadMedia = null; 1821 var _uploadMedia = null;
1658 var _uploadOptions = null; 1822 var _uploadOptions = null;
1659 var _downloadOptions = commons.DownloadOptions.Metadata; 1823 var _downloadOptions = commons.DownloadOptions.Metadata;
1660 var _body = null; 1824 var _body = null;
1661 1825
1662 if (projectId == null) { 1826 if (projectId == null) {
1663 throw new core.ArgumentError("Parameter projectId is required."); 1827 throw new core.ArgumentError("Parameter projectId is required.");
1664 } 1828 }
1665 if (historyId == null) { 1829 if (historyId == null) {
1666 throw new core.ArgumentError("Parameter historyId is required."); 1830 throw new core.ArgumentError("Parameter historyId is required.");
1667 } 1831 }
1668 if (executionId == null) { 1832 if (executionId == null) {
1669 throw new core.ArgumentError("Parameter executionId is required."); 1833 throw new core.ArgumentError("Parameter executionId is required.");
1670 } 1834 }
1671 if (stepId == null) { 1835 if (stepId == null) {
1672 throw new core.ArgumentError("Parameter stepId is required."); 1836 throw new core.ArgumentError("Parameter stepId is required.");
1673 } 1837 }
1674 if (pageSize != null) { 1838 if (pageSize != null) {
1675 _queryParams["pageSize"] = ["${pageSize}"]; 1839 _queryParams["pageSize"] = ["${pageSize}"];
1676 } 1840 }
1677 if (pageToken != null) { 1841 if (pageToken != null) {
1678 _queryParams["pageToken"] = [pageToken]; 1842 _queryParams["pageToken"] = [pageToken];
1679 } 1843 }
1680 1844
1681 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar iable('$executionId') + '/steps/' + commons.Escaper.ecapeVariable('$stepId') + ' /thumbnails'; 1845 _url = commons.Escaper.ecapeVariable('$projectId') +
1846 '/histories/' +
1847 commons.Escaper.ecapeVariable('$historyId') +
1848 '/executions/' +
1849 commons.Escaper.ecapeVariable('$executionId') +
1850 '/steps/' +
1851 commons.Escaper.ecapeVariable('$stepId') +
1852 '/thumbnails';
1682 1853
1683 var _response = _requester.request(_url, 1854 var _response = _requester.request(_url, "GET",
1684 "GET", 1855 body: _body,
1685 body: _body, 1856 queryParams: _queryParams,
1686 queryParams: _queryParams, 1857 uploadOptions: _uploadOptions,
1687 uploadOptions: _uploadOptions, 1858 uploadMedia: _uploadMedia,
1688 uploadMedia: _uploadMedia, 1859 downloadOptions: _downloadOptions);
1689 downloadOptions: _downloadOptions); 1860 return _response
1690 return _response.then((data) => new ListStepThumbnailsResponse.fromJson(data )); 1861 .then((data) => new ListStepThumbnailsResponse.fromJson(data));
1691 } 1862 }
1692
1693 } 1863 }
1694 1864
1865 /// Android app information.
1866 class AndroidAppInfo {
1867 /// The name of the app. Optional
1868 core.String name;
1695 1869
1870 /// The package name of the app. Required.
1871 core.String packageName;
1696 1872
1697 /** Android app information. */ 1873 /// The internal version code of the app. Optional.
1698 class AndroidAppInfo {
1699 /** The name of the app. Optional */
1700 core.String name;
1701 /** The package name of the app. Required. */
1702 core.String packageName;
1703 /** The internal version code of the app. Optional. */
1704 core.String versionCode; 1874 core.String versionCode;
1705 /** The version name of the app. Optional. */ 1875
1876 /// The version name of the app. Optional.
1706 core.String versionName; 1877 core.String versionName;
1707 1878
1708 AndroidAppInfo(); 1879 AndroidAppInfo();
1709 1880
1710 AndroidAppInfo.fromJson(core.Map _json) { 1881 AndroidAppInfo.fromJson(core.Map _json) {
1711 if (_json.containsKey("name")) { 1882 if (_json.containsKey("name")) {
1712 name = _json["name"]; 1883 name = _json["name"];
1713 } 1884 }
1714 if (_json.containsKey("packageName")) { 1885 if (_json.containsKey("packageName")) {
1715 packageName = _json["packageName"]; 1886 packageName = _json["packageName"];
1716 } 1887 }
1717 if (_json.containsKey("versionCode")) { 1888 if (_json.containsKey("versionCode")) {
1718 versionCode = _json["versionCode"]; 1889 versionCode = _json["versionCode"];
1719 } 1890 }
1720 if (_json.containsKey("versionName")) { 1891 if (_json.containsKey("versionName")) {
1721 versionName = _json["versionName"]; 1892 versionName = _json["versionName"];
1722 } 1893 }
1723 } 1894 }
1724 1895
1725 core.Map<core.String, core.Object> toJson() { 1896 core.Map<core.String, core.Object> toJson() {
1726 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1897 final core.Map<core.String, core.Object> _json =
1898 new core.Map<core.String, core.Object>();
1727 if (name != null) { 1899 if (name != null) {
1728 _json["name"] = name; 1900 _json["name"] = name;
1729 } 1901 }
1730 if (packageName != null) { 1902 if (packageName != null) {
1731 _json["packageName"] = packageName; 1903 _json["packageName"] = packageName;
1732 } 1904 }
1733 if (versionCode != null) { 1905 if (versionCode != null) {
1734 _json["versionCode"] = versionCode; 1906 _json["versionCode"] = versionCode;
1735 } 1907 }
1736 if (versionName != null) { 1908 if (versionName != null) {
1737 _json["versionName"] = versionName; 1909 _json["versionName"] = versionName;
1738 } 1910 }
1739 return _json; 1911 return _json;
1740 } 1912 }
1741 } 1913 }
1742 1914
1743 /** 1915 /// A test of an Android application that can control an Android component
1744 * A test of an Android application that can control an Android component 1916 /// independently of its normal lifecycle.
1745 * independently of its normal lifecycle. 1917 ///
1746 * 1918 /// See for more information on types of Android tests.
1747 * See for more information on types of Android tests.
1748 */
1749 class AndroidInstrumentationTest { 1919 class AndroidInstrumentationTest {
1750 /** The java package for the test to be executed. Required */ 1920 /// The java package for the test to be executed. Required
1751 core.String testPackageId; 1921 core.String testPackageId;
1752 /** The InstrumentationTestRunner class. Required */ 1922
1923 /// The InstrumentationTestRunner class. Required
1753 core.String testRunnerClass; 1924 core.String testRunnerClass;
1754 /** 1925
1755 * Each target must be fully qualified with the package name or class name, in 1926 /// Each target must be fully qualified with the package name or class name,
1756 * one of these formats: - "package package_name" - "class 1927 /// in one of these formats: - "package package_name" - "class
1757 * package_name.class_name" - "class package_name.class_name#method_name" 1928 /// package_name.class_name" - "class package_name.class_name#method_name"
1758 * 1929 ///
1759 * If empty, all targets in the module will be run. 1930 /// If empty, all targets in the module will be run.
1760 */
1761 core.List<core.String> testTargets; 1931 core.List<core.String> testTargets;
1762 /** 1932
1763 * The flag indicates whether Android Test Orchestrator will be used to run 1933 /// The flag indicates whether Android Test Orchestrator will be used to run
1764 * test or not. Test orchestrator is used if either: - orchestrator_option 1934 /// test or not. Test orchestrator is used if either: - orchestrator_option
1765 * field is USE_ORCHESTRATOR, and test runner is compatible with orchestrator. 1935 /// field is USE_ORCHESTRATOR, and test runner is compatible with
1766 * Or - orchestrator_option field is unspecified or 1936 /// orchestrator. Or - orchestrator_option field is unspecified or
1767 * ORCHESTRATOR_OPTION_UNSPECIFIED, and test runner is compatible with 1937 /// ORCHESTRATOR_OPTION_UNSPECIFIED, and test runner is compatible with
1768 * orchestrator. 1938 /// orchestrator.
1769 */
1770 core.bool useOrchestrator; 1939 core.bool useOrchestrator;
1771 1940
1772 AndroidInstrumentationTest(); 1941 AndroidInstrumentationTest();
1773 1942
1774 AndroidInstrumentationTest.fromJson(core.Map _json) { 1943 AndroidInstrumentationTest.fromJson(core.Map _json) {
1775 if (_json.containsKey("testPackageId")) { 1944 if (_json.containsKey("testPackageId")) {
1776 testPackageId = _json["testPackageId"]; 1945 testPackageId = _json["testPackageId"];
1777 } 1946 }
1778 if (_json.containsKey("testRunnerClass")) { 1947 if (_json.containsKey("testRunnerClass")) {
1779 testRunnerClass = _json["testRunnerClass"]; 1948 testRunnerClass = _json["testRunnerClass"];
1780 } 1949 }
1781 if (_json.containsKey("testTargets")) { 1950 if (_json.containsKey("testTargets")) {
1782 testTargets = _json["testTargets"]; 1951 testTargets = _json["testTargets"];
1783 } 1952 }
1784 if (_json.containsKey("useOrchestrator")) { 1953 if (_json.containsKey("useOrchestrator")) {
1785 useOrchestrator = _json["useOrchestrator"]; 1954 useOrchestrator = _json["useOrchestrator"];
1786 } 1955 }
1787 } 1956 }
1788 1957
1789 core.Map<core.String, core.Object> toJson() { 1958 core.Map<core.String, core.Object> toJson() {
1790 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1959 final core.Map<core.String, core.Object> _json =
1960 new core.Map<core.String, core.Object>();
1791 if (testPackageId != null) { 1961 if (testPackageId != null) {
1792 _json["testPackageId"] = testPackageId; 1962 _json["testPackageId"] = testPackageId;
1793 } 1963 }
1794 if (testRunnerClass != null) { 1964 if (testRunnerClass != null) {
1795 _json["testRunnerClass"] = testRunnerClass; 1965 _json["testRunnerClass"] = testRunnerClass;
1796 } 1966 }
1797 if (testTargets != null) { 1967 if (testTargets != null) {
1798 _json["testTargets"] = testTargets; 1968 _json["testTargets"] = testTargets;
1799 } 1969 }
1800 if (useOrchestrator != null) { 1970 if (useOrchestrator != null) {
1801 _json["useOrchestrator"] = useOrchestrator; 1971 _json["useOrchestrator"] = useOrchestrator;
1802 } 1972 }
1803 return _json; 1973 return _json;
1804 } 1974 }
1805 } 1975 }
1806 1976
1807 /** 1977 /// A test of an android application that explores the application on a virtual
1808 * A test of an android application that explores the application on a virtual 1978 /// or physical Android device, finding culprits and crashes as it goes.
1809 * or physical Android device, finding culprits and crashes as it goes.
1810 */
1811 class AndroidRoboTest { 1979 class AndroidRoboTest {
1812 /** The initial activity that should be used to start the app. Optional */ 1980 /// The initial activity that should be used to start the app. Optional
1813 core.String appInitialActivity; 1981 core.String appInitialActivity;
1814 /** The java package for the bootstrap. Optional */ 1982
1983 /// The java package for the bootstrap. Optional
1815 core.String bootstrapPackageId; 1984 core.String bootstrapPackageId;
1816 /** The runner class for the bootstrap. Optional */ 1985
1986 /// The runner class for the bootstrap. Optional
1817 core.String bootstrapRunnerClass; 1987 core.String bootstrapRunnerClass;
1818 /** The max depth of the traversal stack Robo can explore. Optional */ 1988
1989 /// The max depth of the traversal stack Robo can explore. Optional
1819 core.int maxDepth; 1990 core.int maxDepth;
1820 /** 1991
1821 * The max number of steps/actions Robo can execute. Default is no limit (0). 1992 /// The max number of steps/actions Robo can execute. Default is no limit
1822 * Optional 1993 /// (0). Optional
1823 */
1824 core.int maxSteps; 1994 core.int maxSteps;
1825 1995
1826 AndroidRoboTest(); 1996 AndroidRoboTest();
1827 1997
1828 AndroidRoboTest.fromJson(core.Map _json) { 1998 AndroidRoboTest.fromJson(core.Map _json) {
1829 if (_json.containsKey("appInitialActivity")) { 1999 if (_json.containsKey("appInitialActivity")) {
1830 appInitialActivity = _json["appInitialActivity"]; 2000 appInitialActivity = _json["appInitialActivity"];
1831 } 2001 }
1832 if (_json.containsKey("bootstrapPackageId")) { 2002 if (_json.containsKey("bootstrapPackageId")) {
1833 bootstrapPackageId = _json["bootstrapPackageId"]; 2003 bootstrapPackageId = _json["bootstrapPackageId"];
1834 } 2004 }
1835 if (_json.containsKey("bootstrapRunnerClass")) { 2005 if (_json.containsKey("bootstrapRunnerClass")) {
1836 bootstrapRunnerClass = _json["bootstrapRunnerClass"]; 2006 bootstrapRunnerClass = _json["bootstrapRunnerClass"];
1837 } 2007 }
1838 if (_json.containsKey("maxDepth")) { 2008 if (_json.containsKey("maxDepth")) {
1839 maxDepth = _json["maxDepth"]; 2009 maxDepth = _json["maxDepth"];
1840 } 2010 }
1841 if (_json.containsKey("maxSteps")) { 2011 if (_json.containsKey("maxSteps")) {
1842 maxSteps = _json["maxSteps"]; 2012 maxSteps = _json["maxSteps"];
1843 } 2013 }
1844 } 2014 }
1845 2015
1846 core.Map<core.String, core.Object> toJson() { 2016 core.Map<core.String, core.Object> toJson() {
1847 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2017 final core.Map<core.String, core.Object> _json =
2018 new core.Map<core.String, core.Object>();
1848 if (appInitialActivity != null) { 2019 if (appInitialActivity != null) {
1849 _json["appInitialActivity"] = appInitialActivity; 2020 _json["appInitialActivity"] = appInitialActivity;
1850 } 2021 }
1851 if (bootstrapPackageId != null) { 2022 if (bootstrapPackageId != null) {
1852 _json["bootstrapPackageId"] = bootstrapPackageId; 2023 _json["bootstrapPackageId"] = bootstrapPackageId;
1853 } 2024 }
1854 if (bootstrapRunnerClass != null) { 2025 if (bootstrapRunnerClass != null) {
1855 _json["bootstrapRunnerClass"] = bootstrapRunnerClass; 2026 _json["bootstrapRunnerClass"] = bootstrapRunnerClass;
1856 } 2027 }
1857 if (maxDepth != null) { 2028 if (maxDepth != null) {
1858 _json["maxDepth"] = maxDepth; 2029 _json["maxDepth"] = maxDepth;
1859 } 2030 }
1860 if (maxSteps != null) { 2031 if (maxSteps != null) {
1861 _json["maxSteps"] = maxSteps; 2032 _json["maxSteps"] = maxSteps;
1862 } 2033 }
1863 return _json; 2034 return _json;
1864 } 2035 }
1865 } 2036 }
1866 2037
1867 /** An Android mobile test specification. */ 2038 /// An Android mobile test specification.
1868 class AndroidTest { 2039 class AndroidTest {
1869 /** Infomation about the application under test. */ 2040 /// Infomation about the application under test.
1870 AndroidAppInfo androidAppInfo; 2041 AndroidAppInfo androidAppInfo;
1871 /** An Android instrumentation test. */ 2042
2043 /// An Android instrumentation test.
1872 AndroidInstrumentationTest androidInstrumentationTest; 2044 AndroidInstrumentationTest androidInstrumentationTest;
1873 /** An Android robo test. */ 2045
2046 /// An Android robo test.
1874 AndroidRoboTest androidRoboTest; 2047 AndroidRoboTest androidRoboTest;
1875 /** 2048
1876 * Max time a test is allowed to run before it is automatically cancelled. 2049 /// Max time a test is allowed to run before it is automatically cancelled.
1877 */
1878 Duration testTimeout; 2050 Duration testTimeout;
1879 2051
1880 AndroidTest(); 2052 AndroidTest();
1881 2053
1882 AndroidTest.fromJson(core.Map _json) { 2054 AndroidTest.fromJson(core.Map _json) {
1883 if (_json.containsKey("androidAppInfo")) { 2055 if (_json.containsKey("androidAppInfo")) {
1884 androidAppInfo = new AndroidAppInfo.fromJson(_json["androidAppInfo"]); 2056 androidAppInfo = new AndroidAppInfo.fromJson(_json["androidAppInfo"]);
1885 } 2057 }
1886 if (_json.containsKey("androidInstrumentationTest")) { 2058 if (_json.containsKey("androidInstrumentationTest")) {
1887 androidInstrumentationTest = new AndroidInstrumentationTest.fromJson(_json ["androidInstrumentationTest"]); 2059 androidInstrumentationTest = new AndroidInstrumentationTest.fromJson(
2060 _json["androidInstrumentationTest"]);
1888 } 2061 }
1889 if (_json.containsKey("androidRoboTest")) { 2062 if (_json.containsKey("androidRoboTest")) {
1890 androidRoboTest = new AndroidRoboTest.fromJson(_json["androidRoboTest"]); 2063 androidRoboTest = new AndroidRoboTest.fromJson(_json["androidRoboTest"]);
1891 } 2064 }
1892 if (_json.containsKey("testTimeout")) { 2065 if (_json.containsKey("testTimeout")) {
1893 testTimeout = new Duration.fromJson(_json["testTimeout"]); 2066 testTimeout = new Duration.fromJson(_json["testTimeout"]);
1894 } 2067 }
1895 } 2068 }
1896 2069
1897 core.Map<core.String, core.Object> toJson() { 2070 core.Map<core.String, core.Object> toJson() {
1898 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2071 final core.Map<core.String, core.Object> _json =
2072 new core.Map<core.String, core.Object>();
1899 if (androidAppInfo != null) { 2073 if (androidAppInfo != null) {
1900 _json["androidAppInfo"] = (androidAppInfo).toJson(); 2074 _json["androidAppInfo"] = (androidAppInfo).toJson();
1901 } 2075 }
1902 if (androidInstrumentationTest != null) { 2076 if (androidInstrumentationTest != null) {
1903 _json["androidInstrumentationTest"] = (androidInstrumentationTest).toJson( ); 2077 _json["androidInstrumentationTest"] =
2078 (androidInstrumentationTest).toJson();
1904 } 2079 }
1905 if (androidRoboTest != null) { 2080 if (androidRoboTest != null) {
1906 _json["androidRoboTest"] = (androidRoboTest).toJson(); 2081 _json["androidRoboTest"] = (androidRoboTest).toJson();
1907 } 2082 }
1908 if (testTimeout != null) { 2083 if (testTimeout != null) {
1909 _json["testTimeout"] = (testTimeout).toJson(); 2084 _json["testTimeout"] = (testTimeout).toJson();
1910 } 2085 }
1911 return _json; 2086 return _json;
1912 } 2087 }
1913 } 2088 }
1914 2089
1915 /** 2090 /// `Any` contains an arbitrary serialized protocol buffer message along with a
1916 * `Any` contains an arbitrary serialized protocol buffer message along with a 2091 /// URL that describes the type of the serialized message.
1917 * URL that describes the type of the serialized message. 2092 ///
1918 * 2093 /// Protobuf library provides support to pack/unpack Any values in the form of
1919 * Protobuf library provides support to pack/unpack Any values in the form of 2094 /// utility functions or additional generated methods of the Any type.
1920 * utility functions or additional generated methods of the Any type. 2095 ///
1921 * 2096 /// Example 1: Pack and unpack a message in C++.
1922 * Example 1: Pack and unpack a message in C++. 2097 ///
1923 * 2098 /// Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) {
1924 * Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ... 2099 /// ... }
1925 * } 2100 ///
1926 * 2101 /// Example 2: Pack and unpack a message in Java.
1927 * Example 2: Pack and unpack a message in Java. 2102 ///
1928 * 2103 /// Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) { foo =
1929 * Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) { foo = 2104 /// any.unpack(Foo.class); }
1930 * any.unpack(Foo.class); } 2105 ///
1931 * 2106 /// Example 3: Pack and unpack a message in Python.
1932 * Example 3: Pack and unpack a message in Python. 2107 ///
1933 * 2108 /// foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR):
1934 * foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR): 2109 /// any.Unpack(foo) ...
1935 * any.Unpack(foo) ... 2110 ///
1936 * 2111 /// Example 4: Pack and unpack a message in Go
1937 * Example 4: Pack and unpack a message in Go 2112 ///
1938 * 2113 /// foo := &pb.Foo{...} any, err := ptypes.MarshalAny(foo) ... foo := &pb.Foo{}
1939 * foo := &pb.Foo{...} any, err := ptypes.MarshalAny(foo) ... foo := &pb.Foo{} 2114 /// if err := ptypes.UnmarshalAny(any, foo); err != nil { ... }
1940 * if err := ptypes.UnmarshalAny(any, foo); err != nil { ... } 2115 ///
1941 * 2116 /// The pack methods provided by protobuf library will by default use
1942 * The pack methods provided by protobuf library will by default use 2117 /// 'type.googleapis.com/full.type.name' as the type URL and the unpack methods
1943 * 'type.googleapis.com/full.type.name' as the type URL and the unpack methods 2118 /// only use the fully qualified type name after the last '/' in the type URL,
1944 * only use the fully qualified type name after the last '/' in the type URL, 2119 /// for example "foo.bar.com/x/y.z" will yield type name "y.z".
1945 * for example "foo.bar.com/x/y.z" will yield type name "y.z". 2120 ///
1946 * 2121 ///
1947 * 2122 ///
1948 * 2123 /// JSON ==== The JSON representation of an `Any` value uses the regular
1949 * JSON ==== The JSON representation of an `Any` value uses the regular 2124 /// representation of the deserialized, embedded message, with an additional
1950 * representation of the deserialized, embedded message, with an additional 2125 /// field `@type` which contains the type URL. Example:
1951 * field `@type` which contains the type URL. Example: 2126 ///
1952 * 2127 /// package google.profile; message Person { string first_name = 1; string
1953 * package google.profile; message Person { string first_name = 1; string 2128 /// last_name = 2; }
1954 * last_name = 2; } 2129 ///
1955 * 2130 /// { "@type": "type.googleapis.com/google.profile.Person", "firstName": ,
1956 * { "@type": "type.googleapis.com/google.profile.Person", "firstName": , 2131 /// "lastName": }
1957 * "lastName": } 2132 ///
1958 * 2133 /// If the embedded message type is well-known and has a custom JSON
1959 * If the embedded message type is well-known and has a custom JSON 2134 /// representation, that representation will be embedded adding a field `value`
1960 * representation, that representation will be embedded adding a field `value` 2135 /// which holds the custom JSON in addition to the `@type` field. Example (for
1961 * which holds the custom JSON in addition to the `@type` field. Example (for 2136 /// message [google.protobuf.Duration][]):
1962 * message [google.protobuf.Duration][]): 2137 ///
1963 * 2138 /// { "@type": "type.googleapis.com/google.protobuf.Duration", "value":
1964 * { "@type": "type.googleapis.com/google.protobuf.Duration", "value": "1.212s" 2139 /// "1.212s" }
1965 * }
1966 */
1967 class Any { 2140 class Any {
1968 /** 2141 /// A URL/resource name whose content describes the type of the serialized
1969 * A URL/resource name whose content describes the type of the serialized 2142 /// protocol buffer message.
1970 * protocol buffer message. 2143 ///
1971 * 2144 /// For URLs which use the scheme `http`, `https`, or no scheme, the
1972 * For URLs which use the scheme `http`, `https`, or no scheme, the following 2145 /// following restrictions and interpretations apply:
1973 * restrictions and interpretations apply: 2146 ///
1974 * 2147 /// * If no scheme is provided, `https` is assumed. * The last segment of the
1975 * * If no scheme is provided, `https` is assumed. * The last segment of the 2148 /// URL's path must represent the fully qualified name of the type (as in
1976 * URL's path must represent the fully qualified name of the type (as in 2149 /// `path/google.protobuf.Duration`). The name should be in a canonical form
1977 * `path/google.protobuf.Duration`). The name should be in a canonical form 2150 /// (e.g., leading "." is not accepted). * An HTTP GET on the URL must yield
1978 * (e.g., leading "." is not accepted). * An HTTP GET on the URL must yield a 2151 /// a [google.protobuf.Type][] value in binary format, or produce an error. *
1979 * [google.protobuf.Type][] value in binary format, or produce an error. * 2152 /// Applications are allowed to cache lookup results based on the URL, or
1980 * Applications are allowed to cache lookup results based on the URL, or have 2153 /// have them precompiled into a binary to avoid any lookup. Therefore,
1981 * them precompiled into a binary to avoid any lookup. Therefore, binary 2154 /// binary compatibility needs to be preserved on changes to types. (Use
1982 * compatibility needs to be preserved on changes to types. (Use versioned 2155 /// versioned type names to manage breaking changes.)
1983 * type names to manage breaking changes.) 2156 ///
1984 * 2157 /// Schemes other than `http`, `https` (or the empty scheme) might be used
1985 * Schemes other than `http`, `https` (or the empty scheme) might be used with 2158 /// with implementation specific semantics.
1986 * implementation specific semantics.
1987 */
1988 core.String typeUrl; 2159 core.String typeUrl;
1989 /** 2160
1990 * Must be a valid serialized protocol buffer of the above specified type. 2161 /// Must be a valid serialized protocol buffer of the above specified type.
1991 */
1992 core.String value; 2162 core.String value;
1993 core.List<core.int> get valueAsBytes { 2163 core.List<core.int> get valueAsBytes {
1994 return convert.BASE64.decode(value); 2164 return convert.BASE64.decode(value);
1995 } 2165 }
1996 2166
1997 void set valueAsBytes(core.List<core.int> _bytes) { 2167 void set valueAsBytes(core.List<core.int> _bytes) {
1998 value = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", " -"); 2168 value =
2169 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
1999 } 2170 }
2000 2171
2001 Any(); 2172 Any();
2002 2173
2003 Any.fromJson(core.Map _json) { 2174 Any.fromJson(core.Map _json) {
2004 if (_json.containsKey("typeUrl")) { 2175 if (_json.containsKey("typeUrl")) {
2005 typeUrl = _json["typeUrl"]; 2176 typeUrl = _json["typeUrl"];
2006 } 2177 }
2007 if (_json.containsKey("value")) { 2178 if (_json.containsKey("value")) {
2008 value = _json["value"]; 2179 value = _json["value"];
2009 } 2180 }
2010 } 2181 }
2011 2182
2012 core.Map<core.String, core.Object> toJson() { 2183 core.Map<core.String, core.Object> toJson() {
2013 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2184 final core.Map<core.String, core.Object> _json =
2185 new core.Map<core.String, core.Object>();
2014 if (typeUrl != null) { 2186 if (typeUrl != null) {
2015 _json["typeUrl"] = typeUrl; 2187 _json["typeUrl"] = typeUrl;
2016 } 2188 }
2017 if (value != null) { 2189 if (value != null) {
2018 _json["value"] = value; 2190 _json["value"] = value;
2019 } 2191 }
2020 return _json; 2192 return _json;
2021 } 2193 }
2022 } 2194 }
2023 2195
2024 class AppStartTime { 2196 class AppStartTime {
2025 /** 2197 /// Optional. The time from app start to reaching the developer-reported
2026 * Optional. The time from app start to reaching the developer-reported "fully 2198 /// "fully drawn" time. This is only stored if the app includes a call to
2027 * drawn" time. This is only stored if the app includes a call to 2199 /// Activity.reportFullyDrawn(). See
2028 * Activity.reportFullyDrawn(). See 2200 /// https://developer.android.com/topic/performance/launch-time.html#time-full
2029 * https://developer.android.com/topic/performance/launch-time.html#time-full
2030 */
2031 Duration fullyDrawnTime; 2201 Duration fullyDrawnTime;
2032 /** 2202
2033 * The time from app start to the first displayed activity being drawn, as 2203 /// The time from app start to the first displayed activity being drawn, as
2034 * reported in Logcat. See 2204 /// reported in Logcat. See
2035 * https://developer.android.com/topic/performance/launch-time.html#time-initi al 2205 /// https://developer.android.com/topic/performance/launch-time.html#time-init ial
2036 */
2037 Duration initialDisplayTime; 2206 Duration initialDisplayTime;
2038 2207
2039 AppStartTime(); 2208 AppStartTime();
2040 2209
2041 AppStartTime.fromJson(core.Map _json) { 2210 AppStartTime.fromJson(core.Map _json) {
2042 if (_json.containsKey("fullyDrawnTime")) { 2211 if (_json.containsKey("fullyDrawnTime")) {
2043 fullyDrawnTime = new Duration.fromJson(_json["fullyDrawnTime"]); 2212 fullyDrawnTime = new Duration.fromJson(_json["fullyDrawnTime"]);
2044 } 2213 }
2045 if (_json.containsKey("initialDisplayTime")) { 2214 if (_json.containsKey("initialDisplayTime")) {
2046 initialDisplayTime = new Duration.fromJson(_json["initialDisplayTime"]); 2215 initialDisplayTime = new Duration.fromJson(_json["initialDisplayTime"]);
2047 } 2216 }
2048 } 2217 }
2049 2218
2050 core.Map<core.String, core.Object> toJson() { 2219 core.Map<core.String, core.Object> toJson() {
2051 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2220 final core.Map<core.String, core.Object> _json =
2221 new core.Map<core.String, core.Object>();
2052 if (fullyDrawnTime != null) { 2222 if (fullyDrawnTime != null) {
2053 _json["fullyDrawnTime"] = (fullyDrawnTime).toJson(); 2223 _json["fullyDrawnTime"] = (fullyDrawnTime).toJson();
2054 } 2224 }
2055 if (initialDisplayTime != null) { 2225 if (initialDisplayTime != null) {
2056 _json["initialDisplayTime"] = (initialDisplayTime).toJson(); 2226 _json["initialDisplayTime"] = (initialDisplayTime).toJson();
2057 } 2227 }
2058 return _json; 2228 return _json;
2059 } 2229 }
2060 } 2230 }
2061 2231
2062 /** 2232 /// Encapsulates the metadata for basic sample series represented by a line
2063 * Encapsulates the metadata for basic sample series represented by a line chart 2233 /// chart
2064 */
2065 class BasicPerfSampleSeries { 2234 class BasicPerfSampleSeries {
2066 /** 2235 ///
2067 * 2236 /// Possible string values are:
2068 * Possible string values are: 2237 /// - "cpu"
2069 * - "cpu" 2238 /// - "graphics"
2070 * - "graphics" 2239 /// - "memory"
2071 * - "memory" 2240 /// - "network"
2072 * - "network" 2241 /// - "perfMetricTypeUnspecified"
2073 * - "perfMetricTypeUnspecified"
2074 */
2075 core.String perfMetricType; 2242 core.String perfMetricType;
2076 /** 2243
2077 * 2244 ///
2078 * Possible string values are: 2245 /// Possible string values are:
2079 * - "byte" 2246 /// - "byte"
2080 * - "bytesPerSecond" 2247 /// - "bytesPerSecond"
2081 * - "framesPerSecond" 2248 /// - "framesPerSecond"
2082 * - "kibibyte" 2249 /// - "kibibyte"
2083 * - "percent" 2250 /// - "percent"
2084 * - "perfUnitUnspecified" 2251 /// - "perfUnitUnspecified"
2085 */
2086 core.String perfUnit; 2252 core.String perfUnit;
2087 /** 2253
2088 * 2254 ///
2089 * Possible string values are: 2255 /// Possible string values are:
2090 * - "cpuKernel" 2256 /// - "cpuKernel"
2091 * - "cpuTotal" 2257 /// - "cpuTotal"
2092 * - "cpuUser" 2258 /// - "cpuUser"
2093 * - "graphicsFrameRate" 2259 /// - "graphicsFrameRate"
2094 * - "memoryRssPrivate" 2260 /// - "memoryRssPrivate"
2095 * - "memoryRssShared" 2261 /// - "memoryRssShared"
2096 * - "memoryRssTotal" 2262 /// - "memoryRssTotal"
2097 * - "memoryTotal" 2263 /// - "memoryTotal"
2098 * - "networkReceived" 2264 /// - "networkReceived"
2099 * - "networkSent" 2265 /// - "networkSent"
2100 * - "ntBytesReceived" 2266 /// - "ntBytesReceived"
2101 * - "ntBytesTransferred" 2267 /// - "ntBytesTransferred"
2102 * - "sampleSeriesTypeUnspecified" 2268 /// - "sampleSeriesTypeUnspecified"
2103 */
2104 core.String sampleSeriesLabel; 2269 core.String sampleSeriesLabel;
2105 2270
2106 BasicPerfSampleSeries(); 2271 BasicPerfSampleSeries();
2107 2272
2108 BasicPerfSampleSeries.fromJson(core.Map _json) { 2273 BasicPerfSampleSeries.fromJson(core.Map _json) {
2109 if (_json.containsKey("perfMetricType")) { 2274 if (_json.containsKey("perfMetricType")) {
2110 perfMetricType = _json["perfMetricType"]; 2275 perfMetricType = _json["perfMetricType"];
2111 } 2276 }
2112 if (_json.containsKey("perfUnit")) { 2277 if (_json.containsKey("perfUnit")) {
2113 perfUnit = _json["perfUnit"]; 2278 perfUnit = _json["perfUnit"];
2114 } 2279 }
2115 if (_json.containsKey("sampleSeriesLabel")) { 2280 if (_json.containsKey("sampleSeriesLabel")) {
2116 sampleSeriesLabel = _json["sampleSeriesLabel"]; 2281 sampleSeriesLabel = _json["sampleSeriesLabel"];
2117 } 2282 }
2118 } 2283 }
2119 2284
2120 core.Map<core.String, core.Object> toJson() { 2285 core.Map<core.String, core.Object> toJson() {
2121 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2286 final core.Map<core.String, core.Object> _json =
2287 new core.Map<core.String, core.Object>();
2122 if (perfMetricType != null) { 2288 if (perfMetricType != null) {
2123 _json["perfMetricType"] = perfMetricType; 2289 _json["perfMetricType"] = perfMetricType;
2124 } 2290 }
2125 if (perfUnit != null) { 2291 if (perfUnit != null) {
2126 _json["perfUnit"] = perfUnit; 2292 _json["perfUnit"] = perfUnit;
2127 } 2293 }
2128 if (sampleSeriesLabel != null) { 2294 if (sampleSeriesLabel != null) {
2129 _json["sampleSeriesLabel"] = sampleSeriesLabel; 2295 _json["sampleSeriesLabel"] = sampleSeriesLabel;
2130 } 2296 }
2131 return _json; 2297 return _json;
2132 } 2298 }
2133 } 2299 }
2134 2300
2135 /** 2301 /// The request must provide up to a maximum of 5000 samples to be created; a
2136 * The request must provide up to a maximum of 5000 samples to be created; a 2302 /// larger sample size will cause an INVALID_ARGUMENT error
2137 * larger sample size will cause an INVALID_ARGUMENT error
2138 */
2139 class BatchCreatePerfSamplesRequest { 2303 class BatchCreatePerfSamplesRequest {
2140 /** 2304 /// The set of PerfSamples to create should not include existing timestamps
2141 * The set of PerfSamples to create should not include existing timestamps
2142 */
2143 core.List<PerfSample> perfSamples; 2305 core.List<PerfSample> perfSamples;
2144 2306
2145 BatchCreatePerfSamplesRequest(); 2307 BatchCreatePerfSamplesRequest();
2146 2308
2147 BatchCreatePerfSamplesRequest.fromJson(core.Map _json) { 2309 BatchCreatePerfSamplesRequest.fromJson(core.Map _json) {
2148 if (_json.containsKey("perfSamples")) { 2310 if (_json.containsKey("perfSamples")) {
2149 perfSamples = _json["perfSamples"].map((value) => new PerfSample.fromJson( value)).toList(); 2311 perfSamples = _json["perfSamples"]
2312 .map((value) => new PerfSample.fromJson(value))
2313 .toList();
2150 } 2314 }
2151 } 2315 }
2152 2316
2153 core.Map<core.String, core.Object> toJson() { 2317 core.Map<core.String, core.Object> toJson() {
2154 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2318 final core.Map<core.String, core.Object> _json =
2319 new core.Map<core.String, core.Object>();
2155 if (perfSamples != null) { 2320 if (perfSamples != null) {
2156 _json["perfSamples"] = perfSamples.map((value) => (value).toJson()).toList (); 2321 _json["perfSamples"] =
2322 perfSamples.map((value) => (value).toJson()).toList();
2157 } 2323 }
2158 return _json; 2324 return _json;
2159 } 2325 }
2160 } 2326 }
2161 2327
2162 class BatchCreatePerfSamplesResponse { 2328 class BatchCreatePerfSamplesResponse {
2163 core.List<PerfSample> perfSamples; 2329 core.List<PerfSample> perfSamples;
2164 2330
2165 BatchCreatePerfSamplesResponse(); 2331 BatchCreatePerfSamplesResponse();
2166 2332
2167 BatchCreatePerfSamplesResponse.fromJson(core.Map _json) { 2333 BatchCreatePerfSamplesResponse.fromJson(core.Map _json) {
2168 if (_json.containsKey("perfSamples")) { 2334 if (_json.containsKey("perfSamples")) {
2169 perfSamples = _json["perfSamples"].map((value) => new PerfSample.fromJson( value)).toList(); 2335 perfSamples = _json["perfSamples"]
2336 .map((value) => new PerfSample.fromJson(value))
2337 .toList();
2170 } 2338 }
2171 } 2339 }
2172 2340
2173 core.Map<core.String, core.Object> toJson() { 2341 core.Map<core.String, core.Object> toJson() {
2174 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2342 final core.Map<core.String, core.Object> _json =
2343 new core.Map<core.String, core.Object>();
2175 if (perfSamples != null) { 2344 if (perfSamples != null) {
2176 _json["perfSamples"] = perfSamples.map((value) => (value).toJson()).toList (); 2345 _json["perfSamples"] =
2346 perfSamples.map((value) => (value).toJson()).toList();
2177 } 2347 }
2178 return _json; 2348 return _json;
2179 } 2349 }
2180 } 2350 }
2181 2351
2182 class CPUInfo { 2352 class CPUInfo {
2183 /** 2353 /// description of the device processor ie '1.8 GHz hexa core 64-bit ARMv8-A'
2184 * description of the device processor ie '1.8 GHz hexa core 64-bit ARMv8-A'
2185 */
2186 core.String cpuProcessor; 2354 core.String cpuProcessor;
2187 /** the CPU clock speed in GHz */ 2355
2356 /// the CPU clock speed in GHz
2188 core.double cpuSpeedInGhz; 2357 core.double cpuSpeedInGhz;
2189 /** the number of CPU cores */ 2358
2359 /// the number of CPU cores
2190 core.int numberOfCores; 2360 core.int numberOfCores;
2191 2361
2192 CPUInfo(); 2362 CPUInfo();
2193 2363
2194 CPUInfo.fromJson(core.Map _json) { 2364 CPUInfo.fromJson(core.Map _json) {
2195 if (_json.containsKey("cpuProcessor")) { 2365 if (_json.containsKey("cpuProcessor")) {
2196 cpuProcessor = _json["cpuProcessor"]; 2366 cpuProcessor = _json["cpuProcessor"];
2197 } 2367 }
2198 if (_json.containsKey("cpuSpeedInGhz")) { 2368 if (_json.containsKey("cpuSpeedInGhz")) {
2199 cpuSpeedInGhz = _json["cpuSpeedInGhz"]; 2369 cpuSpeedInGhz = _json["cpuSpeedInGhz"];
2200 } 2370 }
2201 if (_json.containsKey("numberOfCores")) { 2371 if (_json.containsKey("numberOfCores")) {
2202 numberOfCores = _json["numberOfCores"]; 2372 numberOfCores = _json["numberOfCores"];
2203 } 2373 }
2204 } 2374 }
2205 2375
2206 core.Map<core.String, core.Object> toJson() { 2376 core.Map<core.String, core.Object> toJson() {
2207 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2377 final core.Map<core.String, core.Object> _json =
2378 new core.Map<core.String, core.Object>();
2208 if (cpuProcessor != null) { 2379 if (cpuProcessor != null) {
2209 _json["cpuProcessor"] = cpuProcessor; 2380 _json["cpuProcessor"] = cpuProcessor;
2210 } 2381 }
2211 if (cpuSpeedInGhz != null) { 2382 if (cpuSpeedInGhz != null) {
2212 _json["cpuSpeedInGhz"] = cpuSpeedInGhz; 2383 _json["cpuSpeedInGhz"] = cpuSpeedInGhz;
2213 } 2384 }
2214 if (numberOfCores != null) { 2385 if (numberOfCores != null) {
2215 _json["numberOfCores"] = numberOfCores; 2386 _json["numberOfCores"] = numberOfCores;
2216 } 2387 }
2217 return _json; 2388 return _json;
2218 } 2389 }
2219 } 2390 }
2220 2391
2221 /** 2392 /// A Duration represents a signed, fixed-length span of time represented as a
2222 * A Duration represents a signed, fixed-length span of time represented as a 2393 /// count of seconds and fractions of seconds at nanosecond resolution. It is
2223 * count of seconds and fractions of seconds at nanosecond resolution. It is 2394 /// independent of any calendar and concepts like "day" or "month". It is
2224 * independent of any calendar and concepts like "day" or "month". It is related 2395 /// related to Timestamp in that the difference between two Timestamp values is
2225 * to Timestamp in that the difference between two Timestamp values is a 2396 /// a Duration and it can be added or subtracted from a Timestamp. Range is
2226 * Duration and it can be added or subtracted from a Timestamp. Range is 2397 /// approximately +-10,000 years.
2227 * approximately +-10,000 years. 2398 ///
2228 * 2399 /// # Examples
2229 * # Examples 2400 ///
2230 * 2401 /// Example 1: Compute Duration from two Timestamps in pseudo code.
2231 * Example 1: Compute Duration from two Timestamps in pseudo code. 2402 ///
2232 * 2403 /// Timestamp start = ...; Timestamp end = ...; Duration duration = ...;
2233 * Timestamp start = ...; Timestamp end = ...; Duration duration = ...; 2404 ///
2234 * 2405 /// duration.seconds = end.seconds - start.seconds; duration.nanos = end.nanos
2235 * duration.seconds = end.seconds - start.seconds; duration.nanos = end.nanos - 2406 /// - start.nanos;
2236 * start.nanos; 2407 ///
2237 * 2408 /// if (duration.seconds 0) { duration.seconds += 1; duration.nanos -=
2238 * if (duration.seconds 0) { duration.seconds += 1; duration.nanos -= 2409 /// 1000000000; } else if (durations.seconds > 0 && duration.nanos < 0) {
2239 * 1000000000; } else if (durations.seconds > 0 && duration.nanos < 0) { 2410 /// duration.seconds -= 1; duration.nanos += 1000000000; }
2240 * duration.seconds -= 1; duration.nanos += 1000000000; } 2411 ///
2241 * 2412 /// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
2242 * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. 2413 ///
2243 * 2414 /// Timestamp start = ...; Duration duration = ...; Timestamp end = ...;
2244 * Timestamp start = ...; Duration duration = ...; Timestamp end = ...; 2415 ///
2245 * 2416 /// end.seconds = start.seconds + duration.seconds; end.nanos = start.nanos +
2246 * end.seconds = start.seconds + duration.seconds; end.nanos = start.nanos + 2417 /// duration.nanos;
2247 * duration.nanos; 2418 ///
2248 * 2419 /// if (end.nanos = 1000000000) { end.seconds += 1; end.nanos -= 1000000000; }
2249 * if (end.nanos = 1000000000) { end.seconds += 1; end.nanos -= 1000000000; } 2420 ///
2250 * 2421 /// Example 3: Compute Duration from datetime.timedelta in Python.
2251 * Example 3: Compute Duration from datetime.timedelta in Python. 2422 ///
2252 * 2423 /// td = datetime.timedelta(days=3, minutes=10) duration = Duration()
2253 * td = datetime.timedelta(days=3, minutes=10) duration = Duration() 2424 /// duration.FromTimedelta(td)
2254 * duration.FromTimedelta(td) 2425 ///
2255 * 2426 /// # JSON Mapping
2256 * # JSON Mapping 2427 ///
2257 * 2428 /// In JSON format, the Duration type is encoded as a string rather than an
2258 * In JSON format, the Duration type is encoded as a string rather than an 2429 /// object, where the string ends in the suffix "s" (indicating seconds) and is
2259 * object, where the string ends in the suffix "s" (indicating seconds) and is 2430 /// preceded by the number of seconds, with nanoseconds expressed as fractional
2260 * preceded by the number of seconds, with nanoseconds expressed as fractional 2431 /// seconds. For example, 3 seconds with 0 nanoseconds should be encoded in
2261 * seconds. For example, 3 seconds with 0 nanoseconds should be encoded in JSON 2432 /// JSON format as "3s", while 3 seconds and 1 nanosecond should be expressed
2262 * format as "3s", while 3 seconds and 1 nanosecond should be expressed in JSON 2433 /// in JSON format as "3.000000001s", and 3 seconds and 1 microsecond should be
2263 * format as "3.000000001s", and 3 seconds and 1 microsecond should be expressed 2434 /// expressed in JSON format as "3.000001s".
2264 * in JSON format as "3.000001s".
2265 */
2266 class Duration { 2435 class Duration {
2267 /** 2436 /// Signed fractions of a second at nanosecond resolution of the span of
2268 * Signed fractions of a second at nanosecond resolution of the span of time. 2437 /// time. Durations less than one second are represented with a 0 `seconds`
2269 * Durations less than one second are represented with a 0 `seconds` field and 2438 /// field and a positive or negative `nanos` field. For durations of one
2270 * a positive or negative `nanos` field. For durations of one second or more, 2439 /// second or more, a non-zero value for the `nanos` field must be of the
2271 * a non-zero value for the `nanos` field must be of the same sign as the 2440 /// same sign as the `seconds` field. Must be from -999,999,999 to
2272 * `seconds` field. Must be from -999,999,999 to +999,999,999 inclusive. 2441 /// +999,999,999 inclusive.
2273 */
2274 core.int nanos; 2442 core.int nanos;
2275 /** 2443
2276 * Signed seconds of the span of time. Must be from -315,576,000,000 to 2444 /// Signed seconds of the span of time. Must be from -315,576,000,000 to
2277 * +315,576,000,000 inclusive. Note: these bounds are computed from: 60 2445 /// +315,576,000,000 inclusive. Note: these bounds are computed from: 60
2278 * sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years 2446 /// sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
2279 */
2280 core.String seconds; 2447 core.String seconds;
2281 2448
2282 Duration(); 2449 Duration();
2283 2450
2284 Duration.fromJson(core.Map _json) { 2451 Duration.fromJson(core.Map _json) {
2285 if (_json.containsKey("nanos")) { 2452 if (_json.containsKey("nanos")) {
2286 nanos = _json["nanos"]; 2453 nanos = _json["nanos"];
2287 } 2454 }
2288 if (_json.containsKey("seconds")) { 2455 if (_json.containsKey("seconds")) {
2289 seconds = _json["seconds"]; 2456 seconds = _json["seconds"];
2290 } 2457 }
2291 } 2458 }
2292 2459
2293 core.Map<core.String, core.Object> toJson() { 2460 core.Map<core.String, core.Object> toJson() {
2294 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2461 final core.Map<core.String, core.Object> _json =
2462 new core.Map<core.String, core.Object>();
2295 if (nanos != null) { 2463 if (nanos != null) {
2296 _json["nanos"] = nanos; 2464 _json["nanos"] = nanos;
2297 } 2465 }
2298 if (seconds != null) { 2466 if (seconds != null) {
2299 _json["seconds"] = seconds; 2467 _json["seconds"] = seconds;
2300 } 2468 }
2301 return _json; 2469 return _json;
2302 } 2470 }
2303 } 2471 }
2304 2472
2305 /** 2473 /// An Execution represents a collection of Steps. For instance, it could
2306 * An Execution represents a collection of Steps. For instance, it could 2474 /// represent: - a mobile test executed across a range of device configurations
2307 * represent: - a mobile test executed across a range of device configurations - 2475 /// - a jenkins job with a build step followed by a test step
2308 * a jenkins job with a build step followed by a test step 2476 ///
2309 * 2477 /// The maximum size of an execution message is 1 MiB.
2310 * The maximum size of an execution message is 1 MiB. 2478 ///
2311 * 2479 /// An Execution can be updated until its state is set to COMPLETE at which
2312 * An Execution can be updated until its state is set to COMPLETE at which point 2480 /// point it becomes immutable.
2313 * it becomes immutable.
2314 */
2315 class Execution { 2481 class Execution {
2316 /** 2482 /// The time when the Execution status transitioned to COMPLETE.
2317 * The time when the Execution status transitioned to COMPLETE. 2483 ///
2318 * 2484 /// This value will be set automatically when state transitions to COMPLETE.
2319 * This value will be set automatically when state transitions to COMPLETE. 2485 ///
2320 * 2486 /// - In response: set if the execution state is COMPLETE. - In create/update
2321 * - In response: set if the execution state is COMPLETE. - In create/update 2487 /// request: never set
2322 * request: never set
2323 */
2324 Timestamp completionTime; 2488 Timestamp completionTime;
2325 /** 2489
2326 * The time when the Execution was created. 2490 /// The time when the Execution was created.
2327 * 2491 ///
2328 * This value will be set automatically when CreateExecution is called. 2492 /// This value will be set automatically when CreateExecution is called.
2329 * 2493 ///
2330 * - In response: always set - In create/update request: never set 2494 /// - In response: always set - In create/update request: never set
2331 */
2332 Timestamp creationTime; 2495 Timestamp creationTime;
2333 /** 2496
2334 * A unique identifier within a History for this Execution. 2497 /// A unique identifier within a History for this Execution.
2335 * 2498 ///
2336 * Returns INVALID_ARGUMENT if this field is set or overwritten by the caller. 2499 /// Returns INVALID_ARGUMENT if this field is set or overwritten by the
2337 * 2500 /// caller.
2338 * - In response always set - In create/update request: never set 2501 ///
2339 */ 2502 /// - In response always set - In create/update request: never set
2340 core.String executionId; 2503 core.String executionId;
2341 /** 2504
2342 * Classify the result, for example into SUCCESS or FAILURE 2505 /// Classify the result, for example into SUCCESS or FAILURE
2343 * 2506 ///
2344 * - In response: present if set by create/update request - In create/update 2507 /// - In response: present if set by create/update request - In create/update
2345 * request: optional 2508 /// request: optional
2346 */
2347 Outcome outcome; 2509 Outcome outcome;
2348 /** 2510
2349 * Lightweight information about execution request. 2511 /// Lightweight information about execution request.
2350 * 2512 ///
2351 * - In response: present if set by create - In create: optional - In update: 2513 /// - In response: present if set by create - In create: optional - In
2352 * optional 2514 /// update: optional
2353 */
2354 Specification specification; 2515 Specification specification;
2355 /** 2516
2356 * The initial state is IN_PROGRESS. 2517 /// The initial state is IN_PROGRESS.
2357 * 2518 ///
2358 * The only legal state transitions is from IN_PROGRESS to COMPLETE. 2519 /// The only legal state transitions is from IN_PROGRESS to COMPLETE.
2359 * 2520 ///
2360 * A PRECONDITION_FAILED will be returned if an invalid transition is 2521 /// A PRECONDITION_FAILED will be returned if an invalid transition is
2361 * requested. 2522 /// requested.
2362 * 2523 ///
2363 * The state can only be set to COMPLETE once. A FAILED_PRECONDITION will be 2524 /// The state can only be set to COMPLETE once. A FAILED_PRECONDITION will be
2364 * returned if the state is set to COMPLETE multiple times. 2525 /// returned if the state is set to COMPLETE multiple times.
2365 * 2526 ///
2366 * If the state is set to COMPLETE, all the in-progress steps within the 2527 /// If the state is set to COMPLETE, all the in-progress steps within the
2367 * execution will be set as COMPLETE. If the outcome of the step is not set, 2528 /// execution will be set as COMPLETE. If the outcome of the step is not set,
2368 * the outcome will be set to INCONCLUSIVE. 2529 /// the outcome will be set to INCONCLUSIVE.
2369 * 2530 ///
2370 * - In response always set - In create/update request: optional 2531 /// - In response always set - In create/update request: optional
2371 * Possible string values are: 2532 /// Possible string values are:
2372 * - "complete" 2533 /// - "complete"
2373 * - "inProgress" 2534 /// - "inProgress"
2374 * - "pending" 2535 /// - "pending"
2375 * - "unknownState" 2536 /// - "unknownState"
2376 */
2377 core.String state; 2537 core.String state;
2378 /** 2538
2379 * TestExecution Matrix ID that the TestExecutionService uses. 2539 /// TestExecution Matrix ID that the TestExecutionService uses.
2380 * 2540 ///
2381 * - In response: present if set by create - In create: optional - In update: 2541 /// - In response: present if set by create - In create: optional - In
2382 * never set 2542 /// update: never set
2383 */
2384 core.String testExecutionMatrixId; 2543 core.String testExecutionMatrixId;
2385 2544
2386 Execution(); 2545 Execution();
2387 2546
2388 Execution.fromJson(core.Map _json) { 2547 Execution.fromJson(core.Map _json) {
2389 if (_json.containsKey("completionTime")) { 2548 if (_json.containsKey("completionTime")) {
2390 completionTime = new Timestamp.fromJson(_json["completionTime"]); 2549 completionTime = new Timestamp.fromJson(_json["completionTime"]);
2391 } 2550 }
2392 if (_json.containsKey("creationTime")) { 2551 if (_json.containsKey("creationTime")) {
2393 creationTime = new Timestamp.fromJson(_json["creationTime"]); 2552 creationTime = new Timestamp.fromJson(_json["creationTime"]);
2394 } 2553 }
2395 if (_json.containsKey("executionId")) { 2554 if (_json.containsKey("executionId")) {
2396 executionId = _json["executionId"]; 2555 executionId = _json["executionId"];
2397 } 2556 }
2398 if (_json.containsKey("outcome")) { 2557 if (_json.containsKey("outcome")) {
2399 outcome = new Outcome.fromJson(_json["outcome"]); 2558 outcome = new Outcome.fromJson(_json["outcome"]);
2400 } 2559 }
2401 if (_json.containsKey("specification")) { 2560 if (_json.containsKey("specification")) {
2402 specification = new Specification.fromJson(_json["specification"]); 2561 specification = new Specification.fromJson(_json["specification"]);
2403 } 2562 }
2404 if (_json.containsKey("state")) { 2563 if (_json.containsKey("state")) {
2405 state = _json["state"]; 2564 state = _json["state"];
2406 } 2565 }
2407 if (_json.containsKey("testExecutionMatrixId")) { 2566 if (_json.containsKey("testExecutionMatrixId")) {
2408 testExecutionMatrixId = _json["testExecutionMatrixId"]; 2567 testExecutionMatrixId = _json["testExecutionMatrixId"];
2409 } 2568 }
2410 } 2569 }
2411 2570
2412 core.Map<core.String, core.Object> toJson() { 2571 core.Map<core.String, core.Object> toJson() {
2413 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2572 final core.Map<core.String, core.Object> _json =
2573 new core.Map<core.String, core.Object>();
2414 if (completionTime != null) { 2574 if (completionTime != null) {
2415 _json["completionTime"] = (completionTime).toJson(); 2575 _json["completionTime"] = (completionTime).toJson();
2416 } 2576 }
2417 if (creationTime != null) { 2577 if (creationTime != null) {
2418 _json["creationTime"] = (creationTime).toJson(); 2578 _json["creationTime"] = (creationTime).toJson();
2419 } 2579 }
2420 if (executionId != null) { 2580 if (executionId != null) {
2421 _json["executionId"] = executionId; 2581 _json["executionId"] = executionId;
2422 } 2582 }
2423 if (outcome != null) { 2583 if (outcome != null) {
2424 _json["outcome"] = (outcome).toJson(); 2584 _json["outcome"] = (outcome).toJson();
2425 } 2585 }
2426 if (specification != null) { 2586 if (specification != null) {
2427 _json["specification"] = (specification).toJson(); 2587 _json["specification"] = (specification).toJson();
2428 } 2588 }
2429 if (state != null) { 2589 if (state != null) {
2430 _json["state"] = state; 2590 _json["state"] = state;
2431 } 2591 }
2432 if (testExecutionMatrixId != null) { 2592 if (testExecutionMatrixId != null) {
2433 _json["testExecutionMatrixId"] = testExecutionMatrixId; 2593 _json["testExecutionMatrixId"] = testExecutionMatrixId;
2434 } 2594 }
2435 return _json; 2595 return _json;
2436 } 2596 }
2437 } 2597 }
2438 2598
2439 class FailureDetail { 2599 class FailureDetail {
2440 /** If the failure was severe because the system under test crashed. */ 2600 /// If the failure was severe because the system under test crashed.
2441 core.bool crashed; 2601 core.bool crashed;
2442 /** 2602
2443 * If an app is not installed and thus no test can be run with the app. This 2603 /// If an app is not installed and thus no test can be run with the app. This
2444 * might be caused by trying to run a test on an unsupported platform. 2604 /// might be caused by trying to run a test on an unsupported platform.
2445 */
2446 core.bool notInstalled; 2605 core.bool notInstalled;
2447 /** If a native process other than the app crashed. */ 2606
2607 /// If a native process other than the app crashed.
2448 core.bool otherNativeCrash; 2608 core.bool otherNativeCrash;
2449 /** If the test overran some time limit, and that is why it failed. */ 2609
2610 /// If the test overran some time limit, and that is why it failed.
2450 core.bool timedOut; 2611 core.bool timedOut;
2451 /** 2612
2452 * If the robo was unable to crawl the app; perhaps because the app did not 2613 /// If the robo was unable to crawl the app; perhaps because the app did not
2453 * start. 2614 /// start.
2454 */
2455 core.bool unableToCrawl; 2615 core.bool unableToCrawl;
2456 2616
2457 FailureDetail(); 2617 FailureDetail();
2458 2618
2459 FailureDetail.fromJson(core.Map _json) { 2619 FailureDetail.fromJson(core.Map _json) {
2460 if (_json.containsKey("crashed")) { 2620 if (_json.containsKey("crashed")) {
2461 crashed = _json["crashed"]; 2621 crashed = _json["crashed"];
2462 } 2622 }
2463 if (_json.containsKey("notInstalled")) { 2623 if (_json.containsKey("notInstalled")) {
2464 notInstalled = _json["notInstalled"]; 2624 notInstalled = _json["notInstalled"];
2465 } 2625 }
2466 if (_json.containsKey("otherNativeCrash")) { 2626 if (_json.containsKey("otherNativeCrash")) {
2467 otherNativeCrash = _json["otherNativeCrash"]; 2627 otherNativeCrash = _json["otherNativeCrash"];
2468 } 2628 }
2469 if (_json.containsKey("timedOut")) { 2629 if (_json.containsKey("timedOut")) {
2470 timedOut = _json["timedOut"]; 2630 timedOut = _json["timedOut"];
2471 } 2631 }
2472 if (_json.containsKey("unableToCrawl")) { 2632 if (_json.containsKey("unableToCrawl")) {
2473 unableToCrawl = _json["unableToCrawl"]; 2633 unableToCrawl = _json["unableToCrawl"];
2474 } 2634 }
2475 } 2635 }
2476 2636
2477 core.Map<core.String, core.Object> toJson() { 2637 core.Map<core.String, core.Object> toJson() {
2478 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2638 final core.Map<core.String, core.Object> _json =
2639 new core.Map<core.String, core.Object>();
2479 if (crashed != null) { 2640 if (crashed != null) {
2480 _json["crashed"] = crashed; 2641 _json["crashed"] = crashed;
2481 } 2642 }
2482 if (notInstalled != null) { 2643 if (notInstalled != null) {
2483 _json["notInstalled"] = notInstalled; 2644 _json["notInstalled"] = notInstalled;
2484 } 2645 }
2485 if (otherNativeCrash != null) { 2646 if (otherNativeCrash != null) {
2486 _json["otherNativeCrash"] = otherNativeCrash; 2647 _json["otherNativeCrash"] = otherNativeCrash;
2487 } 2648 }
2488 if (timedOut != null) { 2649 if (timedOut != null) {
2489 _json["timedOut"] = timedOut; 2650 _json["timedOut"] = timedOut;
2490 } 2651 }
2491 if (unableToCrawl != null) { 2652 if (unableToCrawl != null) {
2492 _json["unableToCrawl"] = unableToCrawl; 2653 _json["unableToCrawl"] = unableToCrawl;
2493 } 2654 }
2494 return _json; 2655 return _json;
2495 } 2656 }
2496 } 2657 }
2497 2658
2498 /** A reference to a file. */ 2659 /// A reference to a file.
2499 class FileReference { 2660 class FileReference {
2500 /** 2661 /// The URI of a file stored in Google Cloud Storage.
2501 * The URI of a file stored in Google Cloud Storage. 2662 ///
2502 * 2663 /// For example: http://storage.googleapis.com/mybucket/path/to/test.xml or
2503 * For example: http://storage.googleapis.com/mybucket/path/to/test.xml or in 2664 /// in gsutil format: gs://mybucket/path/to/test.xml with version-specific
2504 * gsutil format: gs://mybucket/path/to/test.xml with version-specific info, 2665 /// info, gs://mybucket/path/to/test.xml#1360383693690000
2505 * gs://mybucket/path/to/test.xml#1360383693690000 2666 ///
2506 * 2667 /// An INVALID_ARGUMENT error will be returned if the URI format is not
2507 * An INVALID_ARGUMENT error will be returned if the URI format is not 2668 /// supported.
2508 * supported. 2669 ///
2509 * 2670 /// - In response: always set - In create/update request: always set
2510 * - In response: always set - In create/update request: always set
2511 */
2512 core.String fileUri; 2671 core.String fileUri;
2513 2672
2514 FileReference(); 2673 FileReference();
2515 2674
2516 FileReference.fromJson(core.Map _json) { 2675 FileReference.fromJson(core.Map _json) {
2517 if (_json.containsKey("fileUri")) { 2676 if (_json.containsKey("fileUri")) {
2518 fileUri = _json["fileUri"]; 2677 fileUri = _json["fileUri"];
2519 } 2678 }
2520 } 2679 }
2521 2680
2522 core.Map<core.String, core.Object> toJson() { 2681 core.Map<core.String, core.Object> toJson() {
2523 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2682 final core.Map<core.String, core.Object> _json =
2683 new core.Map<core.String, core.Object>();
2524 if (fileUri != null) { 2684 if (fileUri != null) {
2525 _json["fileUri"] = fileUri; 2685 _json["fileUri"] = fileUri;
2526 } 2686 }
2527 return _json; 2687 return _json;
2528 } 2688 }
2529 } 2689 }
2530 2690
2531 /** 2691 /// A History represents a sorted list of Executions ordered by the
2532 * A History represents a sorted list of Executions ordered by the 2692 /// start_timestamp_millis field (descending). It can be used to group all the
2533 * start_timestamp_millis field (descending). It can be used to group all the 2693 /// Executions of a continuous build.
2534 * Executions of a continuous build. 2694 ///
2535 * 2695 /// Note that the ordering only operates on one-dimension. If a repository has
2536 * Note that the ordering only operates on one-dimension. If a repository has 2696 /// multiple branches, it means that multiple histories will need to be used in
2537 * multiple branches, it means that multiple histories will need to be used in 2697 /// order to order Executions per branch.
2538 * order to order Executions per branch.
2539 */
2540 class History { 2698 class History {
2541 /** 2699 /// A short human-readable (plain text) name to display in the UI. Maximum of
2542 * A short human-readable (plain text) name to display in the UI. Maximum of 2700 /// 100 characters.
2543 * 100 characters. 2701 ///
2544 * 2702 /// - In response: present if set during create. - In create request:
2545 * - In response: present if set during create. - In create request: optional 2703 /// optional
2546 */
2547 core.String displayName; 2704 core.String displayName;
2548 /** 2705
2549 * A unique identifier within a project for this History. 2706 /// A unique identifier within a project for this History.
2550 * 2707 ///
2551 * Returns INVALID_ARGUMENT if this field is set or overwritten by the caller. 2708 /// Returns INVALID_ARGUMENT if this field is set or overwritten by the
2552 * 2709 /// caller.
2553 * - In response always set - In create request: never set 2710 ///
2554 */ 2711 /// - In response always set - In create request: never set
2555 core.String historyId; 2712 core.String historyId;
2556 /** 2713
2557 * A name to uniquely identify a history within a project. Maximum of 100 2714 /// A name to uniquely identify a history within a project. Maximum of 100
2558 * characters. 2715 /// characters.
2559 * 2716 ///
2560 * - In response always set - In create request: always set 2717 /// - In response always set - In create request: always set
2561 */
2562 core.String name; 2718 core.String name;
2563 2719
2564 History(); 2720 History();
2565 2721
2566 History.fromJson(core.Map _json) { 2722 History.fromJson(core.Map _json) {
2567 if (_json.containsKey("displayName")) { 2723 if (_json.containsKey("displayName")) {
2568 displayName = _json["displayName"]; 2724 displayName = _json["displayName"];
2569 } 2725 }
2570 if (_json.containsKey("historyId")) { 2726 if (_json.containsKey("historyId")) {
2571 historyId = _json["historyId"]; 2727 historyId = _json["historyId"];
2572 } 2728 }
2573 if (_json.containsKey("name")) { 2729 if (_json.containsKey("name")) {
2574 name = _json["name"]; 2730 name = _json["name"];
2575 } 2731 }
2576 } 2732 }
2577 2733
2578 core.Map<core.String, core.Object> toJson() { 2734 core.Map<core.String, core.Object> toJson() {
2579 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2735 final core.Map<core.String, core.Object> _json =
2736 new core.Map<core.String, core.Object>();
2580 if (displayName != null) { 2737 if (displayName != null) {
2581 _json["displayName"] = displayName; 2738 _json["displayName"] = displayName;
2582 } 2739 }
2583 if (historyId != null) { 2740 if (historyId != null) {
2584 _json["historyId"] = historyId; 2741 _json["historyId"] = historyId;
2585 } 2742 }
2586 if (name != null) { 2743 if (name != null) {
2587 _json["name"] = name; 2744 _json["name"] = name;
2588 } 2745 }
2589 return _json; 2746 return _json;
2590 } 2747 }
2591 } 2748 }
2592 2749
2593 /** An image, with a link to the main image and a thumbnail. */ 2750 /// An image, with a link to the main image and a thumbnail.
2594 class Image { 2751 class Image {
2595 /** An error explaining why the thumbnail could not be rendered. */ 2752 /// An error explaining why the thumbnail could not be rendered.
2596 Status error; 2753 Status error;
2597 /** 2754
2598 * A reference to the full-size, original image. 2755 /// A reference to the full-size, original image.
2599 * 2756 ///
2600 * This is the same as the tool_outputs entry for the image under its Step. 2757 /// This is the same as the tool_outputs entry for the image under its Step.
2601 * 2758 ///
2602 * Always set. 2759 /// Always set.
2603 */
2604 ToolOutputReference sourceImage; 2760 ToolOutputReference sourceImage;
2605 /** 2761
2606 * The step to which the image is attached. 2762 /// The step to which the image is attached.
2607 * 2763 ///
2608 * Always set. 2764 /// Always set.
2609 */
2610 core.String stepId; 2765 core.String stepId;
2611 /** The thumbnail. */ 2766
2767 /// The thumbnail.
2612 Thumbnail thumbnail; 2768 Thumbnail thumbnail;
2613 2769
2614 Image(); 2770 Image();
2615 2771
2616 Image.fromJson(core.Map _json) { 2772 Image.fromJson(core.Map _json) {
2617 if (_json.containsKey("error")) { 2773 if (_json.containsKey("error")) {
2618 error = new Status.fromJson(_json["error"]); 2774 error = new Status.fromJson(_json["error"]);
2619 } 2775 }
2620 if (_json.containsKey("sourceImage")) { 2776 if (_json.containsKey("sourceImage")) {
2621 sourceImage = new ToolOutputReference.fromJson(_json["sourceImage"]); 2777 sourceImage = new ToolOutputReference.fromJson(_json["sourceImage"]);
2622 } 2778 }
2623 if (_json.containsKey("stepId")) { 2779 if (_json.containsKey("stepId")) {
2624 stepId = _json["stepId"]; 2780 stepId = _json["stepId"];
2625 } 2781 }
2626 if (_json.containsKey("thumbnail")) { 2782 if (_json.containsKey("thumbnail")) {
2627 thumbnail = new Thumbnail.fromJson(_json["thumbnail"]); 2783 thumbnail = new Thumbnail.fromJson(_json["thumbnail"]);
2628 } 2784 }
2629 } 2785 }
2630 2786
2631 core.Map<core.String, core.Object> toJson() { 2787 core.Map<core.String, core.Object> toJson() {
2632 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2788 final core.Map<core.String, core.Object> _json =
2789 new core.Map<core.String, core.Object>();
2633 if (error != null) { 2790 if (error != null) {
2634 _json["error"] = (error).toJson(); 2791 _json["error"] = (error).toJson();
2635 } 2792 }
2636 if (sourceImage != null) { 2793 if (sourceImage != null) {
2637 _json["sourceImage"] = (sourceImage).toJson(); 2794 _json["sourceImage"] = (sourceImage).toJson();
2638 } 2795 }
2639 if (stepId != null) { 2796 if (stepId != null) {
2640 _json["stepId"] = stepId; 2797 _json["stepId"] = stepId;
2641 } 2798 }
2642 if (thumbnail != null) { 2799 if (thumbnail != null) {
2643 _json["thumbnail"] = (thumbnail).toJson(); 2800 _json["thumbnail"] = (thumbnail).toJson();
2644 } 2801 }
2645 return _json; 2802 return _json;
2646 } 2803 }
2647 } 2804 }
2648 2805
2649 class InconclusiveDetail { 2806 class InconclusiveDetail {
2650 /** 2807 /// If the end user aborted the test execution before a pass or fail could be
2651 * If the end user aborted the test execution before a pass or fail could be 2808 /// determined. For example, the user pressed ctrl-c which sent a kill signal
2652 * determined. For example, the user pressed ctrl-c which sent a kill signal 2809 /// to the test runner while the test was running.
2653 * to the test runner while the test was running.
2654 */
2655 core.bool abortedByUser; 2810 core.bool abortedByUser;
2656 /** 2811
2657 * If the test runner could not determine success or failure because the test 2812 /// If the test runner could not determine success or failure because the
2658 * depends on a component other than the system under test which failed. 2813 /// test depends on a component other than the system under test which
2659 * 2814 /// failed.
2660 * For example, a mobile test requires provisioning a device where the test 2815 ///
2661 * executes, and that provisioning can fail. 2816 /// For example, a mobile test requires provisioning a device where the test
2662 */ 2817 /// executes, and that provisioning can fail.
2663 core.bool infrastructureFailure; 2818 core.bool infrastructureFailure;
2664 2819
2665 InconclusiveDetail(); 2820 InconclusiveDetail();
2666 2821
2667 InconclusiveDetail.fromJson(core.Map _json) { 2822 InconclusiveDetail.fromJson(core.Map _json) {
2668 if (_json.containsKey("abortedByUser")) { 2823 if (_json.containsKey("abortedByUser")) {
2669 abortedByUser = _json["abortedByUser"]; 2824 abortedByUser = _json["abortedByUser"];
2670 } 2825 }
2671 if (_json.containsKey("infrastructureFailure")) { 2826 if (_json.containsKey("infrastructureFailure")) {
2672 infrastructureFailure = _json["infrastructureFailure"]; 2827 infrastructureFailure = _json["infrastructureFailure"];
2673 } 2828 }
2674 } 2829 }
2675 2830
2676 core.Map<core.String, core.Object> toJson() { 2831 core.Map<core.String, core.Object> toJson() {
2677 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2832 final core.Map<core.String, core.Object> _json =
2833 new core.Map<core.String, core.Object>();
2678 if (abortedByUser != null) { 2834 if (abortedByUser != null) {
2679 _json["abortedByUser"] = abortedByUser; 2835 _json["abortedByUser"] = abortedByUser;
2680 } 2836 }
2681 if (infrastructureFailure != null) { 2837 if (infrastructureFailure != null) {
2682 _json["infrastructureFailure"] = infrastructureFailure; 2838 _json["infrastructureFailure"] = infrastructureFailure;
2683 } 2839 }
2684 return _json; 2840 return _json;
2685 } 2841 }
2686 } 2842 }
2687 2843
2688 class ListExecutionsResponse { 2844 class ListExecutionsResponse {
2689 /** 2845 /// Executions.
2690 * Executions. 2846 ///
2691 * 2847 /// Always set.
2692 * Always set.
2693 */
2694 core.List<Execution> executions; 2848 core.List<Execution> executions;
2695 /** 2849
2696 * A continuation token to resume the query at the next item. 2850 /// A continuation token to resume the query at the next item.
2697 * 2851 ///
2698 * Will only be set if there are more Executions to fetch. 2852 /// Will only be set if there are more Executions to fetch.
2699 */
2700 core.String nextPageToken; 2853 core.String nextPageToken;
2701 2854
2702 ListExecutionsResponse(); 2855 ListExecutionsResponse();
2703 2856
2704 ListExecutionsResponse.fromJson(core.Map _json) { 2857 ListExecutionsResponse.fromJson(core.Map _json) {
2705 if (_json.containsKey("executions")) { 2858 if (_json.containsKey("executions")) {
2706 executions = _json["executions"].map((value) => new Execution.fromJson(val ue)).toList(); 2859 executions = _json["executions"]
2860 .map((value) => new Execution.fromJson(value))
2861 .toList();
2707 } 2862 }
2708 if (_json.containsKey("nextPageToken")) { 2863 if (_json.containsKey("nextPageToken")) {
2709 nextPageToken = _json["nextPageToken"]; 2864 nextPageToken = _json["nextPageToken"];
2710 } 2865 }
2711 } 2866 }
2712 2867
2713 core.Map<core.String, core.Object> toJson() { 2868 core.Map<core.String, core.Object> toJson() {
2714 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2869 final core.Map<core.String, core.Object> _json =
2870 new core.Map<core.String, core.Object>();
2715 if (executions != null) { 2871 if (executions != null) {
2716 _json["executions"] = executions.map((value) => (value).toJson()).toList() ; 2872 _json["executions"] =
2873 executions.map((value) => (value).toJson()).toList();
2717 } 2874 }
2718 if (nextPageToken != null) { 2875 if (nextPageToken != null) {
2719 _json["nextPageToken"] = nextPageToken; 2876 _json["nextPageToken"] = nextPageToken;
2720 } 2877 }
2721 return _json; 2878 return _json;
2722 } 2879 }
2723 } 2880 }
2724 2881
2725 /** Response message for HistoryService.List */ 2882 /// Response message for HistoryService.List
2726 class ListHistoriesResponse { 2883 class ListHistoriesResponse {
2727 /** Histories. */ 2884 /// Histories.
2728 core.List<History> histories; 2885 core.List<History> histories;
2729 /** 2886
2730 * A continuation token to resume the query at the next item. 2887 /// A continuation token to resume the query at the next item.
2731 * 2888 ///
2732 * Will only be set if there are more histories to fetch. 2889 /// Will only be set if there are more histories to fetch.
2733 * 2890 ///
2734 * Tokens are valid for up to one hour from the time of the first list 2891 /// Tokens are valid for up to one hour from the time of the first list
2735 * request. For instance, if you make a list request at 1PM and use the token 2892 /// request. For instance, if you make a list request at 1PM and use the
2736 * from this first request 10 minutes later, the token from this second 2893 /// token from this first request 10 minutes later, the token from this
2737 * response will only be valid for 50 minutes. 2894 /// second response will only be valid for 50 minutes.
2738 */
2739 core.String nextPageToken; 2895 core.String nextPageToken;
2740 2896
2741 ListHistoriesResponse(); 2897 ListHistoriesResponse();
2742 2898
2743 ListHistoriesResponse.fromJson(core.Map _json) { 2899 ListHistoriesResponse.fromJson(core.Map _json) {
2744 if (_json.containsKey("histories")) { 2900 if (_json.containsKey("histories")) {
2745 histories = _json["histories"].map((value) => new History.fromJson(value)) .toList(); 2901 histories = _json["histories"]
2902 .map((value) => new History.fromJson(value))
2903 .toList();
2746 } 2904 }
2747 if (_json.containsKey("nextPageToken")) { 2905 if (_json.containsKey("nextPageToken")) {
2748 nextPageToken = _json["nextPageToken"]; 2906 nextPageToken = _json["nextPageToken"];
2749 } 2907 }
2750 } 2908 }
2751 2909
2752 core.Map<core.String, core.Object> toJson() { 2910 core.Map<core.String, core.Object> toJson() {
2753 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2911 final core.Map<core.String, core.Object> _json =
2912 new core.Map<core.String, core.Object>();
2754 if (histories != null) { 2913 if (histories != null) {
2755 _json["histories"] = histories.map((value) => (value).toJson()).toList(); 2914 _json["histories"] = histories.map((value) => (value).toJson()).toList();
2756 } 2915 }
2757 if (nextPageToken != null) { 2916 if (nextPageToken != null) {
2758 _json["nextPageToken"] = nextPageToken; 2917 _json["nextPageToken"] = nextPageToken;
2759 } 2918 }
2760 return _json; 2919 return _json;
2761 } 2920 }
2762 } 2921 }
2763 2922
2764 class ListPerfSampleSeriesResponse { 2923 class ListPerfSampleSeriesResponse {
2765 /** The resulting PerfSampleSeries sorted by id */ 2924 /// The resulting PerfSampleSeries sorted by id
2766 core.List<PerfSampleSeries> perfSampleSeries; 2925 core.List<PerfSampleSeries> perfSampleSeries;
2767 2926
2768 ListPerfSampleSeriesResponse(); 2927 ListPerfSampleSeriesResponse();
2769 2928
2770 ListPerfSampleSeriesResponse.fromJson(core.Map _json) { 2929 ListPerfSampleSeriesResponse.fromJson(core.Map _json) {
2771 if (_json.containsKey("perfSampleSeries")) { 2930 if (_json.containsKey("perfSampleSeries")) {
2772 perfSampleSeries = _json["perfSampleSeries"].map((value) => new PerfSample Series.fromJson(value)).toList(); 2931 perfSampleSeries = _json["perfSampleSeries"]
2932 .map((value) => new PerfSampleSeries.fromJson(value))
2933 .toList();
2773 } 2934 }
2774 } 2935 }
2775 2936
2776 core.Map<core.String, core.Object> toJson() { 2937 core.Map<core.String, core.Object> toJson() {
2777 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2938 final core.Map<core.String, core.Object> _json =
2939 new core.Map<core.String, core.Object>();
2778 if (perfSampleSeries != null) { 2940 if (perfSampleSeries != null) {
2779 _json["perfSampleSeries"] = perfSampleSeries.map((value) => (value).toJson ()).toList(); 2941 _json["perfSampleSeries"] =
2942 perfSampleSeries.map((value) => (value).toJson()).toList();
2780 } 2943 }
2781 return _json; 2944 return _json;
2782 } 2945 }
2783 } 2946 }
2784 2947
2785 class ListPerfSamplesResponse { 2948 class ListPerfSamplesResponse {
2786 /** 2949 /// Optional, returned if result size exceeds the page size specified in the
2787 * Optional, returned if result size exceeds the page size specified in the 2950 /// request (or the default page size, 500, if unspecified). It indicates the
2788 * request (or the default page size, 500, if unspecified). It indicates the 2951 /// last sample timestamp to be used as page_token in subsequent request
2789 * last sample timestamp to be used as page_token in subsequent request
2790 */
2791 core.String nextPageToken; 2952 core.String nextPageToken;
2792 core.List<PerfSample> perfSamples; 2953 core.List<PerfSample> perfSamples;
2793 2954
2794 ListPerfSamplesResponse(); 2955 ListPerfSamplesResponse();
2795 2956
2796 ListPerfSamplesResponse.fromJson(core.Map _json) { 2957 ListPerfSamplesResponse.fromJson(core.Map _json) {
2797 if (_json.containsKey("nextPageToken")) { 2958 if (_json.containsKey("nextPageToken")) {
2798 nextPageToken = _json["nextPageToken"]; 2959 nextPageToken = _json["nextPageToken"];
2799 } 2960 }
2800 if (_json.containsKey("perfSamples")) { 2961 if (_json.containsKey("perfSamples")) {
2801 perfSamples = _json["perfSamples"].map((value) => new PerfSample.fromJson( value)).toList(); 2962 perfSamples = _json["perfSamples"]
2963 .map((value) => new PerfSample.fromJson(value))
2964 .toList();
2802 } 2965 }
2803 } 2966 }
2804 2967
2805 core.Map<core.String, core.Object> toJson() { 2968 core.Map<core.String, core.Object> toJson() {
2806 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2969 final core.Map<core.String, core.Object> _json =
2970 new core.Map<core.String, core.Object>();
2807 if (nextPageToken != null) { 2971 if (nextPageToken != null) {
2808 _json["nextPageToken"] = nextPageToken; 2972 _json["nextPageToken"] = nextPageToken;
2809 } 2973 }
2810 if (perfSamples != null) { 2974 if (perfSamples != null) {
2811 _json["perfSamples"] = perfSamples.map((value) => (value).toJson()).toList (); 2975 _json["perfSamples"] =
2976 perfSamples.map((value) => (value).toJson()).toList();
2812 } 2977 }
2813 return _json; 2978 return _json;
2814 } 2979 }
2815 } 2980 }
2816 2981
2817 class ListScreenshotClustersResponse { 2982 class ListScreenshotClustersResponse {
2818 /** The set of clustres associated with an execution Always set */ 2983 /// The set of clustres associated with an execution Always set
2819 core.List<ScreenshotCluster> clusters; 2984 core.List<ScreenshotCluster> clusters;
2820 2985
2821 ListScreenshotClustersResponse(); 2986 ListScreenshotClustersResponse();
2822 2987
2823 ListScreenshotClustersResponse.fromJson(core.Map _json) { 2988 ListScreenshotClustersResponse.fromJson(core.Map _json) {
2824 if (_json.containsKey("clusters")) { 2989 if (_json.containsKey("clusters")) {
2825 clusters = _json["clusters"].map((value) => new ScreenshotCluster.fromJson (value)).toList(); 2990 clusters = _json["clusters"]
2991 .map((value) => new ScreenshotCluster.fromJson(value))
2992 .toList();
2826 } 2993 }
2827 } 2994 }
2828 2995
2829 core.Map<core.String, core.Object> toJson() { 2996 core.Map<core.String, core.Object> toJson() {
2830 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2997 final core.Map<core.String, core.Object> _json =
2998 new core.Map<core.String, core.Object>();
2831 if (clusters != null) { 2999 if (clusters != null) {
2832 _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); 3000 _json["clusters"] = clusters.map((value) => (value).toJson()).toList();
2833 } 3001 }
2834 return _json; 3002 return _json;
2835 } 3003 }
2836 } 3004 }
2837 3005
2838 /** A response containing the thumbnails in a step. */ 3006 /// A response containing the thumbnails in a step.
2839 class ListStepThumbnailsResponse { 3007 class ListStepThumbnailsResponse {
2840 /** 3008 /// A continuation token to resume the query at the next item.
2841 * A continuation token to resume the query at the next item. 3009 ///
2842 * 3010 /// If set, indicates that there are more thumbnails to read, by calling list
2843 * If set, indicates that there are more thumbnails to read, by calling list 3011 /// again with this value in the page_token field.
2844 * again with this value in the page_token field.
2845 */
2846 core.String nextPageToken; 3012 core.String nextPageToken;
2847 /** 3013
2848 * A list of image data. 3014 /// A list of image data.
2849 * 3015 ///
2850 * Images are returned in a deterministic order; they are ordered by these 3016 /// Images are returned in a deterministic order; they are ordered by these
2851 * factors, in order of importance: * First, by their associated test case. 3017 /// factors, in order of importance: * First, by their associated test case.
2852 * Images without a test case are considered greater than images with one. * 3018 /// Images without a test case are considered greater than images with one. *
2853 * Second, by their creation time. Images without a creation time are greater 3019 /// Second, by their creation time. Images without a creation time are
2854 * than images with one. * Third, by the order in which they were added to the 3020 /// greater than images with one. * Third, by the order in which they were
2855 * step (by calls to CreateStep or UpdateStep). 3021 /// added to the step (by calls to CreateStep or UpdateStep).
2856 */
2857 core.List<Image> thumbnails; 3022 core.List<Image> thumbnails;
2858 3023
2859 ListStepThumbnailsResponse(); 3024 ListStepThumbnailsResponse();
2860 3025
2861 ListStepThumbnailsResponse.fromJson(core.Map _json) { 3026 ListStepThumbnailsResponse.fromJson(core.Map _json) {
2862 if (_json.containsKey("nextPageToken")) { 3027 if (_json.containsKey("nextPageToken")) {
2863 nextPageToken = _json["nextPageToken"]; 3028 nextPageToken = _json["nextPageToken"];
2864 } 3029 }
2865 if (_json.containsKey("thumbnails")) { 3030 if (_json.containsKey("thumbnails")) {
2866 thumbnails = _json["thumbnails"].map((value) => new Image.fromJson(value)) .toList(); 3031 thumbnails = _json["thumbnails"]
3032 .map((value) => new Image.fromJson(value))
3033 .toList();
2867 } 3034 }
2868 } 3035 }
2869 3036
2870 core.Map<core.String, core.Object> toJson() { 3037 core.Map<core.String, core.Object> toJson() {
2871 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3038 final core.Map<core.String, core.Object> _json =
3039 new core.Map<core.String, core.Object>();
2872 if (nextPageToken != null) { 3040 if (nextPageToken != null) {
2873 _json["nextPageToken"] = nextPageToken; 3041 _json["nextPageToken"] = nextPageToken;
2874 } 3042 }
2875 if (thumbnails != null) { 3043 if (thumbnails != null) {
2876 _json["thumbnails"] = thumbnails.map((value) => (value).toJson()).toList() ; 3044 _json["thumbnails"] =
3045 thumbnails.map((value) => (value).toJson()).toList();
2877 } 3046 }
2878 return _json; 3047 return _json;
2879 } 3048 }
2880 } 3049 }
2881 3050
2882 /** Response message for StepService.List. */ 3051 /// Response message for StepService.List.
2883 class ListStepsResponse { 3052 class ListStepsResponse {
2884 /** 3053 /// A continuation token to resume the query at the next item.
2885 * A continuation token to resume the query at the next item. 3054 ///
2886 * 3055 /// If set, indicates that there are more steps to read, by calling list
2887 * If set, indicates that there are more steps to read, by calling list again 3056 /// again with this value in the page_token field.
2888 * with this value in the page_token field.
2889 */
2890 core.String nextPageToken; 3057 core.String nextPageToken;
2891 /** Steps. */ 3058
3059 /// Steps.
2892 core.List<Step> steps; 3060 core.List<Step> steps;
2893 3061
2894 ListStepsResponse(); 3062 ListStepsResponse();
2895 3063
2896 ListStepsResponse.fromJson(core.Map _json) { 3064 ListStepsResponse.fromJson(core.Map _json) {
2897 if (_json.containsKey("nextPageToken")) { 3065 if (_json.containsKey("nextPageToken")) {
2898 nextPageToken = _json["nextPageToken"]; 3066 nextPageToken = _json["nextPageToken"];
2899 } 3067 }
2900 if (_json.containsKey("steps")) { 3068 if (_json.containsKey("steps")) {
2901 steps = _json["steps"].map((value) => new Step.fromJson(value)).toList(); 3069 steps = _json["steps"].map((value) => new Step.fromJson(value)).toList();
2902 } 3070 }
2903 } 3071 }
2904 3072
2905 core.Map<core.String, core.Object> toJson() { 3073 core.Map<core.String, core.Object> toJson() {
2906 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3074 final core.Map<core.String, core.Object> _json =
3075 new core.Map<core.String, core.Object>();
2907 if (nextPageToken != null) { 3076 if (nextPageToken != null) {
2908 _json["nextPageToken"] = nextPageToken; 3077 _json["nextPageToken"] = nextPageToken;
2909 } 3078 }
2910 if (steps != null) { 3079 if (steps != null) {
2911 _json["steps"] = steps.map((value) => (value).toJson()).toList(); 3080 _json["steps"] = steps.map((value) => (value).toJson()).toList();
2912 } 3081 }
2913 return _json; 3082 return _json;
2914 } 3083 }
2915 } 3084 }
2916 3085
2917 class MemoryInfo { 3086 class MemoryInfo {
2918 /** Maximum memory that can be allocated to the process in KiB */ 3087 /// Maximum memory that can be allocated to the process in KiB
2919 core.String memoryCapInKibibyte; 3088 core.String memoryCapInKibibyte;
2920 /** Total memory available on the device in KiB */ 3089
3090 /// Total memory available on the device in KiB
2921 core.String memoryTotalInKibibyte; 3091 core.String memoryTotalInKibibyte;
2922 3092
2923 MemoryInfo(); 3093 MemoryInfo();
2924 3094
2925 MemoryInfo.fromJson(core.Map _json) { 3095 MemoryInfo.fromJson(core.Map _json) {
2926 if (_json.containsKey("memoryCapInKibibyte")) { 3096 if (_json.containsKey("memoryCapInKibibyte")) {
2927 memoryCapInKibibyte = _json["memoryCapInKibibyte"]; 3097 memoryCapInKibibyte = _json["memoryCapInKibibyte"];
2928 } 3098 }
2929 if (_json.containsKey("memoryTotalInKibibyte")) { 3099 if (_json.containsKey("memoryTotalInKibibyte")) {
2930 memoryTotalInKibibyte = _json["memoryTotalInKibibyte"]; 3100 memoryTotalInKibibyte = _json["memoryTotalInKibibyte"];
2931 } 3101 }
2932 } 3102 }
2933 3103
2934 core.Map<core.String, core.Object> toJson() { 3104 core.Map<core.String, core.Object> toJson() {
2935 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3105 final core.Map<core.String, core.Object> _json =
3106 new core.Map<core.String, core.Object>();
2936 if (memoryCapInKibibyte != null) { 3107 if (memoryCapInKibibyte != null) {
2937 _json["memoryCapInKibibyte"] = memoryCapInKibibyte; 3108 _json["memoryCapInKibibyte"] = memoryCapInKibibyte;
2938 } 3109 }
2939 if (memoryTotalInKibibyte != null) { 3110 if (memoryTotalInKibibyte != null) {
2940 _json["memoryTotalInKibibyte"] = memoryTotalInKibibyte; 3111 _json["memoryTotalInKibibyte"] = memoryTotalInKibibyte;
2941 } 3112 }
2942 return _json; 3113 return _json;
2943 } 3114 }
2944 } 3115 }
2945 3116
2946 /** Interprets a result so that humans and machines can act on it. */ 3117 /// Interprets a result so that humans and machines can act on it.
2947 class Outcome { 3118 class Outcome {
2948 /** 3119 /// More information about a FAILURE outcome.
2949 * More information about a FAILURE outcome. 3120 ///
2950 * 3121 /// Returns INVALID_ARGUMENT if this field is set but the summary is not
2951 * Returns INVALID_ARGUMENT if this field is set but the summary is not 3122 /// FAILURE.
2952 * FAILURE. 3123 ///
2953 * 3124 /// Optional
2954 * Optional
2955 */
2956 FailureDetail failureDetail; 3125 FailureDetail failureDetail;
2957 /** 3126
2958 * More information about an INCONCLUSIVE outcome. 3127 /// More information about an INCONCLUSIVE outcome.
2959 * 3128 ///
2960 * Returns INVALID_ARGUMENT if this field is set but the summary is not 3129 /// Returns INVALID_ARGUMENT if this field is set but the summary is not
2961 * INCONCLUSIVE. 3130 /// INCONCLUSIVE.
2962 * 3131 ///
2963 * Optional 3132 /// Optional
2964 */
2965 InconclusiveDetail inconclusiveDetail; 3133 InconclusiveDetail inconclusiveDetail;
2966 /** 3134
2967 * More information about a SKIPPED outcome. 3135 /// More information about a SKIPPED outcome.
2968 * 3136 ///
2969 * Returns INVALID_ARGUMENT if this field is set but the summary is not 3137 /// Returns INVALID_ARGUMENT if this field is set but the summary is not
2970 * SKIPPED. 3138 /// SKIPPED.
2971 * 3139 ///
2972 * Optional 3140 /// Optional
2973 */
2974 SkippedDetail skippedDetail; 3141 SkippedDetail skippedDetail;
2975 /** 3142
2976 * More information about a SUCCESS outcome. 3143 /// More information about a SUCCESS outcome.
2977 * 3144 ///
2978 * Returns INVALID_ARGUMENT if this field is set but the summary is not 3145 /// Returns INVALID_ARGUMENT if this field is set but the summary is not
2979 * SUCCESS. 3146 /// SUCCESS.
2980 * 3147 ///
2981 * Optional 3148 /// Optional
2982 */
2983 SuccessDetail successDetail; 3149 SuccessDetail successDetail;
2984 /** 3150
2985 * The simplest way to interpret a result. 3151 /// The simplest way to interpret a result.
2986 * 3152 ///
2987 * Required 3153 /// Required
2988 * Possible string values are: 3154 /// Possible string values are:
2989 * - "failure" 3155 /// - "failure"
2990 * - "inconclusive" 3156 /// - "inconclusive"
2991 * - "skipped" 3157 /// - "skipped"
2992 * - "success" 3158 /// - "success"
2993 * - "unset" 3159 /// - "unset"
2994 */
2995 core.String summary; 3160 core.String summary;
2996 3161
2997 Outcome(); 3162 Outcome();
2998 3163
2999 Outcome.fromJson(core.Map _json) { 3164 Outcome.fromJson(core.Map _json) {
3000 if (_json.containsKey("failureDetail")) { 3165 if (_json.containsKey("failureDetail")) {
3001 failureDetail = new FailureDetail.fromJson(_json["failureDetail"]); 3166 failureDetail = new FailureDetail.fromJson(_json["failureDetail"]);
3002 } 3167 }
3003 if (_json.containsKey("inconclusiveDetail")) { 3168 if (_json.containsKey("inconclusiveDetail")) {
3004 inconclusiveDetail = new InconclusiveDetail.fromJson(_json["inconclusiveDe tail"]); 3169 inconclusiveDetail =
3170 new InconclusiveDetail.fromJson(_json["inconclusiveDetail"]);
3005 } 3171 }
3006 if (_json.containsKey("skippedDetail")) { 3172 if (_json.containsKey("skippedDetail")) {
3007 skippedDetail = new SkippedDetail.fromJson(_json["skippedDetail"]); 3173 skippedDetail = new SkippedDetail.fromJson(_json["skippedDetail"]);
3008 } 3174 }
3009 if (_json.containsKey("successDetail")) { 3175 if (_json.containsKey("successDetail")) {
3010 successDetail = new SuccessDetail.fromJson(_json["successDetail"]); 3176 successDetail = new SuccessDetail.fromJson(_json["successDetail"]);
3011 } 3177 }
3012 if (_json.containsKey("summary")) { 3178 if (_json.containsKey("summary")) {
3013 summary = _json["summary"]; 3179 summary = _json["summary"];
3014 } 3180 }
3015 } 3181 }
3016 3182
3017 core.Map<core.String, core.Object> toJson() { 3183 core.Map<core.String, core.Object> toJson() {
3018 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3184 final core.Map<core.String, core.Object> _json =
3185 new core.Map<core.String, core.Object>();
3019 if (failureDetail != null) { 3186 if (failureDetail != null) {
3020 _json["failureDetail"] = (failureDetail).toJson(); 3187 _json["failureDetail"] = (failureDetail).toJson();
3021 } 3188 }
3022 if (inconclusiveDetail != null) { 3189 if (inconclusiveDetail != null) {
3023 _json["inconclusiveDetail"] = (inconclusiveDetail).toJson(); 3190 _json["inconclusiveDetail"] = (inconclusiveDetail).toJson();
3024 } 3191 }
3025 if (skippedDetail != null) { 3192 if (skippedDetail != null) {
3026 _json["skippedDetail"] = (skippedDetail).toJson(); 3193 _json["skippedDetail"] = (skippedDetail).toJson();
3027 } 3194 }
3028 if (successDetail != null) { 3195 if (successDetail != null) {
3029 _json["successDetail"] = (successDetail).toJson(); 3196 _json["successDetail"] = (successDetail).toJson();
3030 } 3197 }
3031 if (summary != null) { 3198 if (summary != null) {
3032 _json["summary"] = summary; 3199 _json["summary"] = summary;
3033 } 3200 }
3034 return _json; 3201 return _json;
3035 } 3202 }
3036 } 3203 }
3037 3204
3038 /** Encapsulates performance environment info */ 3205 /// Encapsulates performance environment info
3039 class PerfEnvironment { 3206 class PerfEnvironment {
3040 /** CPU related environment info */ 3207 /// CPU related environment info
3041 CPUInfo cpuInfo; 3208 CPUInfo cpuInfo;
3042 /** Memory related environment info */ 3209
3210 /// Memory related environment info
3043 MemoryInfo memoryInfo; 3211 MemoryInfo memoryInfo;
3044 3212
3045 PerfEnvironment(); 3213 PerfEnvironment();
3046 3214
3047 PerfEnvironment.fromJson(core.Map _json) { 3215 PerfEnvironment.fromJson(core.Map _json) {
3048 if (_json.containsKey("cpuInfo")) { 3216 if (_json.containsKey("cpuInfo")) {
3049 cpuInfo = new CPUInfo.fromJson(_json["cpuInfo"]); 3217 cpuInfo = new CPUInfo.fromJson(_json["cpuInfo"]);
3050 } 3218 }
3051 if (_json.containsKey("memoryInfo")) { 3219 if (_json.containsKey("memoryInfo")) {
3052 memoryInfo = new MemoryInfo.fromJson(_json["memoryInfo"]); 3220 memoryInfo = new MemoryInfo.fromJson(_json["memoryInfo"]);
3053 } 3221 }
3054 } 3222 }
3055 3223
3056 core.Map<core.String, core.Object> toJson() { 3224 core.Map<core.String, core.Object> toJson() {
3057 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3225 final core.Map<core.String, core.Object> _json =
3226 new core.Map<core.String, core.Object>();
3058 if (cpuInfo != null) { 3227 if (cpuInfo != null) {
3059 _json["cpuInfo"] = (cpuInfo).toJson(); 3228 _json["cpuInfo"] = (cpuInfo).toJson();
3060 } 3229 }
3061 if (memoryInfo != null) { 3230 if (memoryInfo != null) {
3062 _json["memoryInfo"] = (memoryInfo).toJson(); 3231 _json["memoryInfo"] = (memoryInfo).toJson();
3063 } 3232 }
3064 return _json; 3233 return _json;
3065 } 3234 }
3066 } 3235 }
3067 3236
3068 /** A summary of perf metrics collected and performance environment info */ 3237 /// A summary of perf metrics collected and performance environment info
3069 class PerfMetricsSummary { 3238 class PerfMetricsSummary {
3070 AppStartTime appStartTime; 3239 AppStartTime appStartTime;
3071 /** A tool results execution ID. */ 3240
3241 /// A tool results execution ID.
3072 core.String executionId; 3242 core.String executionId;
3073 /** A tool results history ID. */ 3243
3244 /// A tool results history ID.
3074 core.String historyId; 3245 core.String historyId;
3075 /** 3246
3076 * Describes the environment in which the performance metrics were collected 3247 /// Describes the environment in which the performance metrics were collected
3077 */
3078 PerfEnvironment perfEnvironment; 3248 PerfEnvironment perfEnvironment;
3079 /** Set of resource collected */ 3249
3250 /// Set of resource collected
3080 core.List<core.String> perfMetrics; 3251 core.List<core.String> perfMetrics;
3081 /** The cloud project */ 3252
3253 /// The cloud project
3082 core.String projectId; 3254 core.String projectId;
3083 /** A tool results step ID. */ 3255
3256 /// A tool results step ID.
3084 core.String stepId; 3257 core.String stepId;
3085 3258
3086 PerfMetricsSummary(); 3259 PerfMetricsSummary();
3087 3260
3088 PerfMetricsSummary.fromJson(core.Map _json) { 3261 PerfMetricsSummary.fromJson(core.Map _json) {
3089 if (_json.containsKey("appStartTime")) { 3262 if (_json.containsKey("appStartTime")) {
3090 appStartTime = new AppStartTime.fromJson(_json["appStartTime"]); 3263 appStartTime = new AppStartTime.fromJson(_json["appStartTime"]);
3091 } 3264 }
3092 if (_json.containsKey("executionId")) { 3265 if (_json.containsKey("executionId")) {
3093 executionId = _json["executionId"]; 3266 executionId = _json["executionId"];
3094 } 3267 }
3095 if (_json.containsKey("historyId")) { 3268 if (_json.containsKey("historyId")) {
3096 historyId = _json["historyId"]; 3269 historyId = _json["historyId"];
3097 } 3270 }
3098 if (_json.containsKey("perfEnvironment")) { 3271 if (_json.containsKey("perfEnvironment")) {
3099 perfEnvironment = new PerfEnvironment.fromJson(_json["perfEnvironment"]); 3272 perfEnvironment = new PerfEnvironment.fromJson(_json["perfEnvironment"]);
3100 } 3273 }
3101 if (_json.containsKey("perfMetrics")) { 3274 if (_json.containsKey("perfMetrics")) {
3102 perfMetrics = _json["perfMetrics"]; 3275 perfMetrics = _json["perfMetrics"];
3103 } 3276 }
3104 if (_json.containsKey("projectId")) { 3277 if (_json.containsKey("projectId")) {
3105 projectId = _json["projectId"]; 3278 projectId = _json["projectId"];
3106 } 3279 }
3107 if (_json.containsKey("stepId")) { 3280 if (_json.containsKey("stepId")) {
3108 stepId = _json["stepId"]; 3281 stepId = _json["stepId"];
3109 } 3282 }
3110 } 3283 }
3111 3284
3112 core.Map<core.String, core.Object> toJson() { 3285 core.Map<core.String, core.Object> toJson() {
3113 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3286 final core.Map<core.String, core.Object> _json =
3287 new core.Map<core.String, core.Object>();
3114 if (appStartTime != null) { 3288 if (appStartTime != null) {
3115 _json["appStartTime"] = (appStartTime).toJson(); 3289 _json["appStartTime"] = (appStartTime).toJson();
3116 } 3290 }
3117 if (executionId != null) { 3291 if (executionId != null) {
3118 _json["executionId"] = executionId; 3292 _json["executionId"] = executionId;
3119 } 3293 }
3120 if (historyId != null) { 3294 if (historyId != null) {
3121 _json["historyId"] = historyId; 3295 _json["historyId"] = historyId;
3122 } 3296 }
3123 if (perfEnvironment != null) { 3297 if (perfEnvironment != null) {
3124 _json["perfEnvironment"] = (perfEnvironment).toJson(); 3298 _json["perfEnvironment"] = (perfEnvironment).toJson();
3125 } 3299 }
3126 if (perfMetrics != null) { 3300 if (perfMetrics != null) {
3127 _json["perfMetrics"] = perfMetrics; 3301 _json["perfMetrics"] = perfMetrics;
3128 } 3302 }
3129 if (projectId != null) { 3303 if (projectId != null) {
3130 _json["projectId"] = projectId; 3304 _json["projectId"] = projectId;
3131 } 3305 }
3132 if (stepId != null) { 3306 if (stepId != null) {
3133 _json["stepId"] = stepId; 3307 _json["stepId"] = stepId;
3134 } 3308 }
3135 return _json; 3309 return _json;
3136 } 3310 }
3137 } 3311 }
3138 3312
3139 /** Resource representing a single performance measure or data point */ 3313 /// Resource representing a single performance measure or data point
3140 class PerfSample { 3314 class PerfSample {
3141 /** Timestamp of collection */ 3315 /// Timestamp of collection
3142 Timestamp sampleTime; 3316 Timestamp sampleTime;
3143 /** Value observed */ 3317
3318 /// Value observed
3144 core.double value; 3319 core.double value;
3145 3320
3146 PerfSample(); 3321 PerfSample();
3147 3322
3148 PerfSample.fromJson(core.Map _json) { 3323 PerfSample.fromJson(core.Map _json) {
3149 if (_json.containsKey("sampleTime")) { 3324 if (_json.containsKey("sampleTime")) {
3150 sampleTime = new Timestamp.fromJson(_json["sampleTime"]); 3325 sampleTime = new Timestamp.fromJson(_json["sampleTime"]);
3151 } 3326 }
3152 if (_json.containsKey("value")) { 3327 if (_json.containsKey("value")) {
3153 value = _json["value"]; 3328 value = _json["value"];
3154 } 3329 }
3155 } 3330 }
3156 3331
3157 core.Map<core.String, core.Object> toJson() { 3332 core.Map<core.String, core.Object> toJson() {
3158 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3333 final core.Map<core.String, core.Object> _json =
3334 new core.Map<core.String, core.Object>();
3159 if (sampleTime != null) { 3335 if (sampleTime != null) {
3160 _json["sampleTime"] = (sampleTime).toJson(); 3336 _json["sampleTime"] = (sampleTime).toJson();
3161 } 3337 }
3162 if (value != null) { 3338 if (value != null) {
3163 _json["value"] = value; 3339 _json["value"] = value;
3164 } 3340 }
3165 return _json; 3341 return _json;
3166 } 3342 }
3167 } 3343 }
3168 3344
3169 /** 3345 /// Resource representing a collection of performance samples (or data points)
3170 * Resource representing a collection of performance samples (or data points)
3171 */
3172 class PerfSampleSeries { 3346 class PerfSampleSeries {
3173 /** Basic series represented by a line chart */ 3347 /// Basic series represented by a line chart
3174 BasicPerfSampleSeries basicPerfSampleSeries; 3348 BasicPerfSampleSeries basicPerfSampleSeries;
3175 /** A tool results execution ID. */ 3349
3350 /// A tool results execution ID.
3176 core.String executionId; 3351 core.String executionId;
3177 /** A tool results history ID. */ 3352
3353 /// A tool results history ID.
3178 core.String historyId; 3354 core.String historyId;
3179 /** The cloud project */ 3355
3356 /// The cloud project
3180 core.String projectId; 3357 core.String projectId;
3181 /** A sample series id */ 3358
3359 /// A sample series id
3182 core.String sampleSeriesId; 3360 core.String sampleSeriesId;
3183 /** A tool results step ID. */ 3361
3362 /// A tool results step ID.
3184 core.String stepId; 3363 core.String stepId;
3185 3364
3186 PerfSampleSeries(); 3365 PerfSampleSeries();
3187 3366
3188 PerfSampleSeries.fromJson(core.Map _json) { 3367 PerfSampleSeries.fromJson(core.Map _json) {
3189 if (_json.containsKey("basicPerfSampleSeries")) { 3368 if (_json.containsKey("basicPerfSampleSeries")) {
3190 basicPerfSampleSeries = new BasicPerfSampleSeries.fromJson(_json["basicPer fSampleSeries"]); 3369 basicPerfSampleSeries =
3370 new BasicPerfSampleSeries.fromJson(_json["basicPerfSampleSeries"]);
3191 } 3371 }
3192 if (_json.containsKey("executionId")) { 3372 if (_json.containsKey("executionId")) {
3193 executionId = _json["executionId"]; 3373 executionId = _json["executionId"];
3194 } 3374 }
3195 if (_json.containsKey("historyId")) { 3375 if (_json.containsKey("historyId")) {
3196 historyId = _json["historyId"]; 3376 historyId = _json["historyId"];
3197 } 3377 }
3198 if (_json.containsKey("projectId")) { 3378 if (_json.containsKey("projectId")) {
3199 projectId = _json["projectId"]; 3379 projectId = _json["projectId"];
3200 } 3380 }
3201 if (_json.containsKey("sampleSeriesId")) { 3381 if (_json.containsKey("sampleSeriesId")) {
3202 sampleSeriesId = _json["sampleSeriesId"]; 3382 sampleSeriesId = _json["sampleSeriesId"];
3203 } 3383 }
3204 if (_json.containsKey("stepId")) { 3384 if (_json.containsKey("stepId")) {
3205 stepId = _json["stepId"]; 3385 stepId = _json["stepId"];
3206 } 3386 }
3207 } 3387 }
3208 3388
3209 core.Map<core.String, core.Object> toJson() { 3389 core.Map<core.String, core.Object> toJson() {
3210 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3390 final core.Map<core.String, core.Object> _json =
3391 new core.Map<core.String, core.Object>();
3211 if (basicPerfSampleSeries != null) { 3392 if (basicPerfSampleSeries != null) {
3212 _json["basicPerfSampleSeries"] = (basicPerfSampleSeries).toJson(); 3393 _json["basicPerfSampleSeries"] = (basicPerfSampleSeries).toJson();
3213 } 3394 }
3214 if (executionId != null) { 3395 if (executionId != null) {
3215 _json["executionId"] = executionId; 3396 _json["executionId"] = executionId;
3216 } 3397 }
3217 if (historyId != null) { 3398 if (historyId != null) {
3218 _json["historyId"] = historyId; 3399 _json["historyId"] = historyId;
3219 } 3400 }
3220 if (projectId != null) { 3401 if (projectId != null) {
3221 _json["projectId"] = projectId; 3402 _json["projectId"] = projectId;
3222 } 3403 }
3223 if (sampleSeriesId != null) { 3404 if (sampleSeriesId != null) {
3224 _json["sampleSeriesId"] = sampleSeriesId; 3405 _json["sampleSeriesId"] = sampleSeriesId;
3225 } 3406 }
3226 if (stepId != null) { 3407 if (stepId != null) {
3227 _json["stepId"] = stepId; 3408 _json["stepId"] = stepId;
3228 } 3409 }
3229 return _json; 3410 return _json;
3230 } 3411 }
3231 } 3412 }
3232 3413
3233 /** Per-project settings for the Tool Results service. */ 3414 /// Per-project settings for the Tool Results service.
3234 class ProjectSettings { 3415 class ProjectSettings {
3235 /** 3416 /// The name of the Google Cloud Storage bucket to which results are written.
3236 * The name of the Google Cloud Storage bucket to which results are written. 3417 ///
3237 * 3418 /// By default, this is unset.
3238 * By default, this is unset. 3419 ///
3239 * 3420 /// In update request: optional In response: optional
3240 * In update request: optional In response: optional
3241 */
3242 core.String defaultBucket; 3421 core.String defaultBucket;
3243 /** 3422
3244 * The name of the project's settings. 3423 /// The name of the project's settings.
3245 * 3424 ///
3246 * Always of the form: projects/{project-id}/settings 3425 /// Always of the form: projects/{project-id}/settings
3247 * 3426 ///
3248 * In update request: never set In response: always set 3427 /// In update request: never set In response: always set
3249 */
3250 core.String name; 3428 core.String name;
3251 3429
3252 ProjectSettings(); 3430 ProjectSettings();
3253 3431
3254 ProjectSettings.fromJson(core.Map _json) { 3432 ProjectSettings.fromJson(core.Map _json) {
3255 if (_json.containsKey("defaultBucket")) { 3433 if (_json.containsKey("defaultBucket")) {
3256 defaultBucket = _json["defaultBucket"]; 3434 defaultBucket = _json["defaultBucket"];
3257 } 3435 }
3258 if (_json.containsKey("name")) { 3436 if (_json.containsKey("name")) {
3259 name = _json["name"]; 3437 name = _json["name"];
3260 } 3438 }
3261 } 3439 }
3262 3440
3263 core.Map<core.String, core.Object> toJson() { 3441 core.Map<core.String, core.Object> toJson() {
3264 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3442 final core.Map<core.String, core.Object> _json =
3443 new core.Map<core.String, core.Object>();
3265 if (defaultBucket != null) { 3444 if (defaultBucket != null) {
3266 _json["defaultBucket"] = defaultBucket; 3445 _json["defaultBucket"] = defaultBucket;
3267 } 3446 }
3268 if (name != null) { 3447 if (name != null) {
3269 _json["name"] = name; 3448 _json["name"] = name;
3270 } 3449 }
3271 return _json; 3450 return _json;
3272 } 3451 }
3273 } 3452 }
3274 3453
3275 /** Request message for StepService.PublishXunitXmlFiles. */ 3454 /// Request message for StepService.PublishXunitXmlFiles.
3276 class PublishXunitXmlFilesRequest { 3455 class PublishXunitXmlFilesRequest {
3277 /** 3456 /// URI of the Xunit XML files to publish.
3278 * URI of the Xunit XML files to publish. 3457 ///
3279 * 3458 /// The maximum size of the file this reference is pointing to is 50MB.
3280 * The maximum size of the file this reference is pointing to is 50MB. 3459 ///
3281 * 3460 /// Required.
3282 * Required.
3283 */
3284 core.List<FileReference> xunitXmlFiles; 3461 core.List<FileReference> xunitXmlFiles;
3285 3462
3286 PublishXunitXmlFilesRequest(); 3463 PublishXunitXmlFilesRequest();
3287 3464
3288 PublishXunitXmlFilesRequest.fromJson(core.Map _json) { 3465 PublishXunitXmlFilesRequest.fromJson(core.Map _json) {
3289 if (_json.containsKey("xunitXmlFiles")) { 3466 if (_json.containsKey("xunitXmlFiles")) {
3290 xunitXmlFiles = _json["xunitXmlFiles"].map((value) => new FileReference.fr omJson(value)).toList(); 3467 xunitXmlFiles = _json["xunitXmlFiles"]
3468 .map((value) => new FileReference.fromJson(value))
3469 .toList();
3291 } 3470 }
3292 } 3471 }
3293 3472
3294 core.Map<core.String, core.Object> toJson() { 3473 core.Map<core.String, core.Object> toJson() {
3295 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3474 final core.Map<core.String, core.Object> _json =
3475 new core.Map<core.String, core.Object>();
3296 if (xunitXmlFiles != null) { 3476 if (xunitXmlFiles != null) {
3297 _json["xunitXmlFiles"] = xunitXmlFiles.map((value) => (value).toJson()).to List(); 3477 _json["xunitXmlFiles"] =
3478 xunitXmlFiles.map((value) => (value).toJson()).toList();
3298 } 3479 }
3299 return _json; 3480 return _json;
3300 } 3481 }
3301 } 3482 }
3302 3483
3303 class Screen { 3484 class Screen {
3304 /** File reference of the png file. Required. */ 3485 /// File reference of the png file. Required.
3305 core.String fileReference; 3486 core.String fileReference;
3306 /** Locale of the device that the screenshot was taken on. Required. */ 3487
3488 /// Locale of the device that the screenshot was taken on. Required.
3307 core.String locale; 3489 core.String locale;
3308 /** Model of the device that the screenshot was taken on. Required. */ 3490
3491 /// Model of the device that the screenshot was taken on. Required.
3309 core.String model; 3492 core.String model;
3310 /** OS version of the device that the screenshot was taken on. Required. */ 3493
3494 /// OS version of the device that the screenshot was taken on. Required.
3311 core.String version; 3495 core.String version;
3312 3496
3313 Screen(); 3497 Screen();
3314 3498
3315 Screen.fromJson(core.Map _json) { 3499 Screen.fromJson(core.Map _json) {
3316 if (_json.containsKey("fileReference")) { 3500 if (_json.containsKey("fileReference")) {
3317 fileReference = _json["fileReference"]; 3501 fileReference = _json["fileReference"];
3318 } 3502 }
3319 if (_json.containsKey("locale")) { 3503 if (_json.containsKey("locale")) {
3320 locale = _json["locale"]; 3504 locale = _json["locale"];
3321 } 3505 }
3322 if (_json.containsKey("model")) { 3506 if (_json.containsKey("model")) {
3323 model = _json["model"]; 3507 model = _json["model"];
3324 } 3508 }
3325 if (_json.containsKey("version")) { 3509 if (_json.containsKey("version")) {
3326 version = _json["version"]; 3510 version = _json["version"];
3327 } 3511 }
3328 } 3512 }
3329 3513
3330 core.Map<core.String, core.Object> toJson() { 3514 core.Map<core.String, core.Object> toJson() {
3331 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3515 final core.Map<core.String, core.Object> _json =
3516 new core.Map<core.String, core.Object>();
3332 if (fileReference != null) { 3517 if (fileReference != null) {
3333 _json["fileReference"] = fileReference; 3518 _json["fileReference"] = fileReference;
3334 } 3519 }
3335 if (locale != null) { 3520 if (locale != null) {
3336 _json["locale"] = locale; 3521 _json["locale"] = locale;
3337 } 3522 }
3338 if (model != null) { 3523 if (model != null) {
3339 _json["model"] = model; 3524 _json["model"] = model;
3340 } 3525 }
3341 if (version != null) { 3526 if (version != null) {
3342 _json["version"] = version; 3527 _json["version"] = version;
3343 } 3528 }
3344 return _json; 3529 return _json;
3345 } 3530 }
3346 } 3531 }
3347 3532
3348 class ScreenshotCluster { 3533 class ScreenshotCluster {
3349 /** A string that describes the activity of every screen in the cluster. */ 3534 /// A string that describes the activity of every screen in the cluster.
3350 core.String activity; 3535 core.String activity;
3351 /** A unique identifier for the cluster. */ 3536
3537 /// A unique identifier for the cluster.
3352 core.String clusterId; 3538 core.String clusterId;
3353 /** 3539
3354 * A singular screen that represents the cluster as a whole. This screen will 3540 /// A singular screen that represents the cluster as a whole. This screen
3355 * act as the "cover" of the entire cluster. When users look at the clusters, 3541 /// will act as the "cover" of the entire cluster. When users look at the
3356 * only the key screen from each cluster will be shown. Which screen is the 3542 /// clusters, only the key screen from each cluster will be shown. Which
3357 * key screen is determined by the ClusteringAlgorithm 3543 /// screen is the key screen is determined by the ClusteringAlgorithm
3358 */
3359 Screen keyScreen; 3544 Screen keyScreen;
3360 /** Full list of screens. */ 3545
3546 /// Full list of screens.
3361 core.List<Screen> screens; 3547 core.List<Screen> screens;
3362 3548
3363 ScreenshotCluster(); 3549 ScreenshotCluster();
3364 3550
3365 ScreenshotCluster.fromJson(core.Map _json) { 3551 ScreenshotCluster.fromJson(core.Map _json) {
3366 if (_json.containsKey("activity")) { 3552 if (_json.containsKey("activity")) {
3367 activity = _json["activity"]; 3553 activity = _json["activity"];
3368 } 3554 }
3369 if (_json.containsKey("clusterId")) { 3555 if (_json.containsKey("clusterId")) {
3370 clusterId = _json["clusterId"]; 3556 clusterId = _json["clusterId"];
3371 } 3557 }
3372 if (_json.containsKey("keyScreen")) { 3558 if (_json.containsKey("keyScreen")) {
3373 keyScreen = new Screen.fromJson(_json["keyScreen"]); 3559 keyScreen = new Screen.fromJson(_json["keyScreen"]);
3374 } 3560 }
3375 if (_json.containsKey("screens")) { 3561 if (_json.containsKey("screens")) {
3376 screens = _json["screens"].map((value) => new Screen.fromJson(value)).toLi st(); 3562 screens =
3563 _json["screens"].map((value) => new Screen.fromJson(value)).toList();
3377 } 3564 }
3378 } 3565 }
3379 3566
3380 core.Map<core.String, core.Object> toJson() { 3567 core.Map<core.String, core.Object> toJson() {
3381 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3568 final core.Map<core.String, core.Object> _json =
3569 new core.Map<core.String, core.Object>();
3382 if (activity != null) { 3570 if (activity != null) {
3383 _json["activity"] = activity; 3571 _json["activity"] = activity;
3384 } 3572 }
3385 if (clusterId != null) { 3573 if (clusterId != null) {
3386 _json["clusterId"] = clusterId; 3574 _json["clusterId"] = clusterId;
3387 } 3575 }
3388 if (keyScreen != null) { 3576 if (keyScreen != null) {
3389 _json["keyScreen"] = (keyScreen).toJson(); 3577 _json["keyScreen"] = (keyScreen).toJson();
3390 } 3578 }
3391 if (screens != null) { 3579 if (screens != null) {
3392 _json["screens"] = screens.map((value) => (value).toJson()).toList(); 3580 _json["screens"] = screens.map((value) => (value).toJson()).toList();
3393 } 3581 }
3394 return _json; 3582 return _json;
3395 } 3583 }
3396 } 3584 }
3397 3585
3398 class SkippedDetail { 3586 class SkippedDetail {
3399 /** If the App doesn't support the specific API level. */ 3587 /// If the App doesn't support the specific API level.
3400 core.bool incompatibleAppVersion; 3588 core.bool incompatibleAppVersion;
3401 /** If the App doesn't run on the specific architecture, for example, x86. */ 3589
3590 /// If the App doesn't run on the specific architecture, for example, x86.
3402 core.bool incompatibleArchitecture; 3591 core.bool incompatibleArchitecture;
3403 /** If the requested OS version doesn't run on the specific device model. */ 3592
3593 /// If the requested OS version doesn't run on the specific device model.
3404 core.bool incompatibleDevice; 3594 core.bool incompatibleDevice;
3405 3595
3406 SkippedDetail(); 3596 SkippedDetail();
3407 3597
3408 SkippedDetail.fromJson(core.Map _json) { 3598 SkippedDetail.fromJson(core.Map _json) {
3409 if (_json.containsKey("incompatibleAppVersion")) { 3599 if (_json.containsKey("incompatibleAppVersion")) {
3410 incompatibleAppVersion = _json["incompatibleAppVersion"]; 3600 incompatibleAppVersion = _json["incompatibleAppVersion"];
3411 } 3601 }
3412 if (_json.containsKey("incompatibleArchitecture")) { 3602 if (_json.containsKey("incompatibleArchitecture")) {
3413 incompatibleArchitecture = _json["incompatibleArchitecture"]; 3603 incompatibleArchitecture = _json["incompatibleArchitecture"];
3414 } 3604 }
3415 if (_json.containsKey("incompatibleDevice")) { 3605 if (_json.containsKey("incompatibleDevice")) {
3416 incompatibleDevice = _json["incompatibleDevice"]; 3606 incompatibleDevice = _json["incompatibleDevice"];
3417 } 3607 }
3418 } 3608 }
3419 3609
3420 core.Map<core.String, core.Object> toJson() { 3610 core.Map<core.String, core.Object> toJson() {
3421 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3611 final core.Map<core.String, core.Object> _json =
3612 new core.Map<core.String, core.Object>();
3422 if (incompatibleAppVersion != null) { 3613 if (incompatibleAppVersion != null) {
3423 _json["incompatibleAppVersion"] = incompatibleAppVersion; 3614 _json["incompatibleAppVersion"] = incompatibleAppVersion;
3424 } 3615 }
3425 if (incompatibleArchitecture != null) { 3616 if (incompatibleArchitecture != null) {
3426 _json["incompatibleArchitecture"] = incompatibleArchitecture; 3617 _json["incompatibleArchitecture"] = incompatibleArchitecture;
3427 } 3618 }
3428 if (incompatibleDevice != null) { 3619 if (incompatibleDevice != null) {
3429 _json["incompatibleDevice"] = incompatibleDevice; 3620 _json["incompatibleDevice"] = incompatibleDevice;
3430 } 3621 }
3431 return _json; 3622 return _json;
3432 } 3623 }
3433 } 3624 }
3434 3625
3435 /** The details about how to run the execution. */ 3626 /// The details about how to run the execution.
3436 class Specification { 3627 class Specification {
3437 /** An Android mobile test execution specification. */ 3628 /// An Android mobile test execution specification.
3438 AndroidTest androidTest; 3629 AndroidTest androidTest;
3439 3630
3440 Specification(); 3631 Specification();
3441 3632
3442 Specification.fromJson(core.Map _json) { 3633 Specification.fromJson(core.Map _json) {
3443 if (_json.containsKey("androidTest")) { 3634 if (_json.containsKey("androidTest")) {
3444 androidTest = new AndroidTest.fromJson(_json["androidTest"]); 3635 androidTest = new AndroidTest.fromJson(_json["androidTest"]);
3445 } 3636 }
3446 } 3637 }
3447 3638
3448 core.Map<core.String, core.Object> toJson() { 3639 core.Map<core.String, core.Object> toJson() {
3449 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3640 final core.Map<core.String, core.Object> _json =
3641 new core.Map<core.String, core.Object>();
3450 if (androidTest != null) { 3642 if (androidTest != null) {
3451 _json["androidTest"] = (androidTest).toJson(); 3643 _json["androidTest"] = (androidTest).toJson();
3452 } 3644 }
3453 return _json; 3645 return _json;
3454 } 3646 }
3455 } 3647 }
3456 3648
3457 /** A stacktrace. */ 3649 /// A stacktrace.
3458 class StackTrace { 3650 class StackTrace {
3459 /** Exception cluster ID */ 3651 /// Exception cluster ID
3460 core.String clusterId; 3652 core.String clusterId;
3461 /** 3653
3462 * The stack trace message. 3654 /// The stack trace message.
3463 * 3655 ///
3464 * Required 3656 /// Required
3465 */
3466 core.String exception; 3657 core.String exception;
3467 /** Exception report ID */ 3658
3659 /// Exception report ID
3468 core.String reportId; 3660 core.String reportId;
3469 3661
3470 StackTrace(); 3662 StackTrace();
3471 3663
3472 StackTrace.fromJson(core.Map _json) { 3664 StackTrace.fromJson(core.Map _json) {
3473 if (_json.containsKey("clusterId")) { 3665 if (_json.containsKey("clusterId")) {
3474 clusterId = _json["clusterId"]; 3666 clusterId = _json["clusterId"];
3475 } 3667 }
3476 if (_json.containsKey("exception")) { 3668 if (_json.containsKey("exception")) {
3477 exception = _json["exception"]; 3669 exception = _json["exception"];
3478 } 3670 }
3479 if (_json.containsKey("reportId")) { 3671 if (_json.containsKey("reportId")) {
3480 reportId = _json["reportId"]; 3672 reportId = _json["reportId"];
3481 } 3673 }
3482 } 3674 }
3483 3675
3484 core.Map<core.String, core.Object> toJson() { 3676 core.Map<core.String, core.Object> toJson() {
3485 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3677 final core.Map<core.String, core.Object> _json =
3678 new core.Map<core.String, core.Object>();
3486 if (clusterId != null) { 3679 if (clusterId != null) {
3487 _json["clusterId"] = clusterId; 3680 _json["clusterId"] = clusterId;
3488 } 3681 }
3489 if (exception != null) { 3682 if (exception != null) {
3490 _json["exception"] = exception; 3683 _json["exception"] = exception;
3491 } 3684 }
3492 if (reportId != null) { 3685 if (reportId != null) {
3493 _json["reportId"] = reportId; 3686 _json["reportId"] = reportId;
3494 } 3687 }
3495 return _json; 3688 return _json;
3496 } 3689 }
3497 } 3690 }
3498 3691
3499 /** 3692 /// The `Status` type defines a logical error model that is suitable for
3500 * The `Status` type defines a logical error model that is suitable for 3693 /// different programming environments, including REST APIs and RPC APIs. It is
3501 * different programming environments, including REST APIs and RPC APIs. It is 3694 /// used by [gRPC](https://github.com/grpc). The error model is designed to be:
3502 * used by [gRPC](https://github.com/grpc). The error model is designed to be: 3695 ///
3503 * 3696 /// - Simple to use and understand for most users - Flexible enough to meet
3504 * - Simple to use and understand for most users - Flexible enough to meet 3697 /// unexpected needs
3505 * unexpected needs 3698 ///
3506 * 3699 /// # Overview
3507 * # Overview 3700 ///
3508 * 3701 /// The `Status` message contains three pieces of data: error code, error
3509 * The `Status` message contains three pieces of data: error code, error 3702 /// message, and error details. The error code should be an enum value of
3510 * message, and error details. The error code should be an enum value of 3703 /// [google.rpc.Code][], but it may accept additional error codes if needed.
3511 * [google.rpc.Code][], but it may accept additional error codes if needed. The 3704 /// The error message should be a developer-facing English message that helps
3512 * error message should be a developer-facing English message that helps 3705 /// developers *understand* and *resolve* the error. If a localized user-facing
3513 * developers *understand* and *resolve* the error. If a localized user-facing 3706 /// error message is needed, put the localized message in the error details or
3514 * error message is needed, put the localized message in the error details or 3707 /// localize it in the client. The optional error details may contain arbitrary
3515 * localize it in the client. The optional error details may contain arbitrary 3708 /// information about the error. There is a predefined set of error detail
3516 * information about the error. There is a predefined set of error detail types 3709 /// types in the package `google.rpc` that can be used for common error
3517 * in the package `google.rpc` that can be used for common error conditions. 3710 /// conditions.
3518 * 3711 ///
3519 * # Language mapping 3712 /// # Language mapping
3520 * 3713 ///
3521 * The `Status` message is the logical representation of the error model, but it 3714 /// The `Status` message is the logical representation of the error model, but
3522 * is not necessarily the actual wire format. When the `Status` message is 3715 /// it is not necessarily the actual wire format. When the `Status` message is
3523 * exposed in different client libraries and different wire protocols, it can be 3716 /// exposed in different client libraries and different wire protocols, it can
3524 * mapped differently. For example, it will likely be mapped to some exceptions 3717 /// be mapped differently. For example, it will likely be mapped to some
3525 * in Java, but more likely mapped to some error codes in C. 3718 /// exceptions in Java, but more likely mapped to some error codes in C.
3526 * 3719 ///
3527 * # Other uses 3720 /// # Other uses
3528 * 3721 ///
3529 * The error model and the `Status` message can be used in a variety of 3722 /// The error model and the `Status` message can be used in a variety of
3530 * environments, either with or without APIs, to provide a consistent developer 3723 /// environments, either with or without APIs, to provide a consistent
3531 * experience across different environments. 3724 /// developer experience across different environments.
3532 * 3725 ///
3533 * Example uses of this error model include: 3726 /// Example uses of this error model include:
3534 * 3727 ///
3535 * - Partial errors. If a service needs to return partial errors to the client, 3728 /// - Partial errors. If a service needs to return partial errors to the
3536 * it may embed the `Status` in the normal response to indicate the partial 3729 /// client, it may embed the `Status` in the normal response to indicate the
3537 * errors. 3730 /// partial errors.
3538 * 3731 ///
3539 * - Workflow errors. A typical workflow has multiple steps. Each step may have 3732 /// - Workflow errors. A typical workflow has multiple steps. Each step may
3540 * a `Status` message for error reporting. 3733 /// have a `Status` message for error reporting.
3541 * 3734 ///
3542 * - Batch operations. If a client uses batch request and batch response, the 3735 /// - Batch operations. If a client uses batch request and batch response, the
3543 * `Status` message should be used directly inside batch response, one for each 3736 /// `Status` message should be used directly inside batch response, one for
3544 * error sub-response. 3737 /// each error sub-response.
3545 * 3738 ///
3546 * - Asynchronous operations. If an API call embeds asynchronous operation 3739 /// - Asynchronous operations. If an API call embeds asynchronous operation
3547 * results in its response, the status of those operations should be represented 3740 /// results in its response, the status of those operations should be
3548 * directly using the `Status` message. 3741 /// represented directly using the `Status` message.
3549 * 3742 ///
3550 * - Logging. If some API errors are stored in logs, the message `Status` could 3743 /// - Logging. If some API errors are stored in logs, the message `Status`
3551 * be used directly after any stripping needed for security/privacy reasons. 3744 /// could be used directly after any stripping needed for security/privacy
3552 */ 3745 /// reasons.
3553 class Status { 3746 class Status {
3554 /** The status code, which should be an enum value of [google.rpc.Code][]. */ 3747 /// The status code, which should be an enum value of [google.rpc.Code][].
3555 core.int code; 3748 core.int code;
3556 /** 3749
3557 * A list of messages that carry the error details. There is a common set of 3750 /// A list of messages that carry the error details. There is a common set of
3558 * message types for APIs to use. 3751 /// message types for APIs to use.
3559 */
3560 core.List<Any> details; 3752 core.List<Any> details;
3561 /** 3753
3562 * A developer-facing error message, which should be in English. Any 3754 /// A developer-facing error message, which should be in English. Any
3563 * user-facing error message should be localized and sent in the 3755 /// user-facing error message should be localized and sent in the
3564 * [google.rpc.Status.details][] field, or localized by the client. 3756 /// [google.rpc.Status.details][] field, or localized by the client.
3565 */
3566 core.String message; 3757 core.String message;
3567 3758
3568 Status(); 3759 Status();
3569 3760
3570 Status.fromJson(core.Map _json) { 3761 Status.fromJson(core.Map _json) {
3571 if (_json.containsKey("code")) { 3762 if (_json.containsKey("code")) {
3572 code = _json["code"]; 3763 code = _json["code"];
3573 } 3764 }
3574 if (_json.containsKey("details")) { 3765 if (_json.containsKey("details")) {
3575 details = _json["details"].map((value) => new Any.fromJson(value)).toList( ); 3766 details =
3767 _json["details"].map((value) => new Any.fromJson(value)).toList();
3576 } 3768 }
3577 if (_json.containsKey("message")) { 3769 if (_json.containsKey("message")) {
3578 message = _json["message"]; 3770 message = _json["message"];
3579 } 3771 }
3580 } 3772 }
3581 3773
3582 core.Map<core.String, core.Object> toJson() { 3774 core.Map<core.String, core.Object> toJson() {
3583 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3775 final core.Map<core.String, core.Object> _json =
3776 new core.Map<core.String, core.Object>();
3584 if (code != null) { 3777 if (code != null) {
3585 _json["code"] = code; 3778 _json["code"] = code;
3586 } 3779 }
3587 if (details != null) { 3780 if (details != null) {
3588 _json["details"] = details.map((value) => (value).toJson()).toList(); 3781 _json["details"] = details.map((value) => (value).toJson()).toList();
3589 } 3782 }
3590 if (message != null) { 3783 if (message != null) {
3591 _json["message"] = message; 3784 _json["message"] = message;
3592 } 3785 }
3593 return _json; 3786 return _json;
3594 } 3787 }
3595 } 3788 }
3596 3789
3597 /** 3790 /// A Step represents a single operation performed as part of Execution. A step
3598 * A Step represents a single operation performed as part of Execution. A step 3791 /// can be used to represent the execution of a tool ( for example a test
3599 * can be used to represent the execution of a tool ( for example a test runner 3792 /// runner execution or an execution of a compiler).
3600 * execution or an execution of a compiler). 3793 ///
3601 * 3794 /// Steps can overlap (for instance two steps might have the same start time if
3602 * Steps can overlap (for instance two steps might have the same start time if 3795 /// some operations are done in parallel).
3603 * some operations are done in parallel). 3796 ///
3604 * 3797 /// Here is an example, let's consider that we have a continuous build is
3605 * Here is an example, let's consider that we have a continuous build is 3798 /// executing a test runner for each iteration. The workflow would look like: -
3606 * executing a test runner for each iteration. The workflow would look like: - 3799 /// user creates a Execution with id 1 - user creates an TestExecutionStep with
3607 * user creates a Execution with id 1 - user creates an TestExecutionStep with 3800 /// id 100 for Execution 1 - user update TestExecutionStep with id 100 to add a
3608 * id 100 for Execution 1 - user update TestExecutionStep with id 100 to add a 3801 /// raw xml log + the service parses the xml logs and returns a
3609 * raw xml log + the service parses the xml logs and returns a TestExecutionStep 3802 /// TestExecutionStep with updated TestResult(s). - user update the status of
3610 * with updated TestResult(s). - user update the status of TestExecutionStep 3803 /// TestExecutionStep with id 100 to COMPLETE
3611 * with id 100 to COMPLETE 3804 ///
3612 * 3805 /// A Step can be updated until its state is set to COMPLETE at which points it
3613 * A Step can be updated until its state is set to COMPLETE at which points it 3806 /// becomes immutable.
3614 * becomes immutable.
3615 */
3616 class Step { 3807 class Step {
3617 /** 3808 /// The time when the step status was set to complete.
3618 * The time when the step status was set to complete. 3809 ///
3619 * 3810 /// This value will be set automatically when state transitions to COMPLETE.
3620 * This value will be set automatically when state transitions to COMPLETE. 3811 ///
3621 * 3812 /// - In response: set if the execution state is COMPLETE. - In create/update
3622 * - In response: set if the execution state is COMPLETE. - In create/update 3813 /// request: never set
3623 * request: never set
3624 */
3625 Timestamp completionTime; 3814 Timestamp completionTime;
3626 /** 3815
3627 * The time when the step was created. 3816 /// The time when the step was created.
3628 * 3817 ///
3629 * - In response: always set - In create/update request: never set 3818 /// - In response: always set - In create/update request: never set
3630 */
3631 Timestamp creationTime; 3819 Timestamp creationTime;
3632 /** 3820
3633 * A description of this tool For example: mvn clean package -D skipTests=true 3821 /// A description of this tool For example: mvn clean package -D
3634 * 3822 /// skipTests=true
3635 * - In response: present if set by create/update request - In create/update 3823 ///
3636 * request: optional 3824 /// - In response: present if set by create/update request - In create/update
3637 */ 3825 /// request: optional
3638 core.String description; 3826 core.String description;
3639 /** 3827
3640 * How much the device resource is used to perform the test. 3828 /// How much the device resource is used to perform the test.
3641 * 3829 ///
3642 * This is the device usage used for billing purpose, which is different from 3830 /// This is the device usage used for billing purpose, which is different
3643 * the run_duration, for example, infrastructure failure won't be charged for 3831 /// from the run_duration, for example, infrastructure failure won't be
3644 * device usage. 3832 /// charged for device usage.
3645 * 3833 ///
3646 * PRECONDITION_FAILED will be returned if one attempts to set a device_usage 3834 /// PRECONDITION_FAILED will be returned if one attempts to set a
3647 * on a step which already has this field set. 3835 /// device_usage on a step which already has this field set.
3648 * 3836 ///
3649 * - In response: present if previously set. - In create request: optional - 3837 /// - In response: present if previously set. - In create request: optional -
3650 * In update request: optional 3838 /// In update request: optional
3651 */
3652 Duration deviceUsageDuration; 3839 Duration deviceUsageDuration;
3653 /** 3840
3654 * If the execution containing this step has any dimension_definition set, 3841 /// If the execution containing this step has any dimension_definition set,
3655 * then this field allows the child to specify the values of the dimensions. 3842 /// then this field allows the child to specify the values of the dimensions.
3656 * 3843 ///
3657 * The keys must exactly match the dimension_definition of the execution. 3844 /// The keys must exactly match the dimension_definition of the execution.
3658 * 3845 ///
3659 * For example, if the execution has `dimension_definition = ['attempt', 3846 /// For example, if the execution has `dimension_definition = ['attempt',
3660 * 'device']` then a step must define values for those dimensions, eg. 3847 /// 'device']` then a step must define values for those dimensions, eg.
3661 * `dimension_value = ['attempt': '1', 'device': 'Nexus 6']` 3848 /// `dimension_value = ['attempt': '1', 'device': 'Nexus 6']`
3662 * 3849 ///
3663 * If a step does not participate in one dimension of the matrix, the value 3850 /// If a step does not participate in one dimension of the matrix, the value
3664 * for that dimension should be empty string. For example, if one of the tests 3851 /// for that dimension should be empty string. For example, if one of the
3665 * is executed by a runner which does not support retries, the step could have 3852 /// tests is executed by a runner which does not support retries, the step
3666 * `dimension_value = ['attempt': '', 'device': 'Nexus 6']` 3853 /// could have `dimension_value = ['attempt': '', 'device': 'Nexus 6']`
3667 * 3854 ///
3668 * If the step does not participate in any dimensions of the matrix, it may 3855 /// If the step does not participate in any dimensions of the matrix, it may
3669 * leave dimension_value unset. 3856 /// leave dimension_value unset.
3670 * 3857 ///
3671 * A PRECONDITION_FAILED will be returned if any of the keys do not exist in 3858 /// A PRECONDITION_FAILED will be returned if any of the keys do not exist in
3672 * the dimension_definition of the execution. 3859 /// the dimension_definition of the execution.
3673 * 3860 ///
3674 * A PRECONDITION_FAILED will be returned if another step in this execution 3861 /// A PRECONDITION_FAILED will be returned if another step in this execution
3675 * already has the same name and dimension_value, but differs on other data 3862 /// already has the same name and dimension_value, but differs on other data
3676 * fields, for example, step field is different. 3863 /// fields, for example, step field is different.
3677 * 3864 ///
3678 * A PRECONDITION_FAILED will be returned if dimension_value is set, and there 3865 /// A PRECONDITION_FAILED will be returned if dimension_value is set, and
3679 * is a dimension_definition in the execution which is not specified as one of 3866 /// there is a dimension_definition in the execution which is not specified
3680 * the keys. 3867 /// as one of the keys.
3681 * 3868 ///
3682 * - In response: present if set by create - In create request: optional - In 3869 /// - In response: present if set by create - In create request: optional -
3683 * update request: never set 3870 /// In update request: never set
3684 */
3685 core.List<StepDimensionValueEntry> dimensionValue; 3871 core.List<StepDimensionValueEntry> dimensionValue;
3686 /** 3872
3687 * Whether any of the outputs of this step are images whose thumbnails can be 3873 /// Whether any of the outputs of this step are images whose thumbnails can
3688 * fetched with ListThumbnails. 3874 /// be fetched with ListThumbnails.
3689 * 3875 ///
3690 * - In response: always set - In create/update request: never set 3876 /// - In response: always set - In create/update request: never set
3691 */
3692 core.bool hasImages; 3877 core.bool hasImages;
3693 /** 3878
3694 * Arbitrary user-supplied key/value pairs that are associated with the step. 3879 /// Arbitrary user-supplied key/value pairs that are associated with the
3695 * 3880 /// step.
3696 * Users are responsible for managing the key namespace such that keys don't 3881 ///
3697 * accidentally collide. 3882 /// Users are responsible for managing the key namespace such that keys don't
3698 * 3883 /// accidentally collide.
3699 * An INVALID_ARGUMENT will be returned if the number of labels exceeds 100 or 3884 ///
3700 * if the length of any of the keys or values exceeds 100 characters. 3885 /// An INVALID_ARGUMENT will be returned if the number of labels exceeds 100
3701 * 3886 /// or if the length of any of the keys or values exceeds 100 characters.
3702 * - In response: always set - In create request: optional - In update 3887 ///
3703 * request: optional; any new key/value pair will be added to the map, and any 3888 /// - In response: always set - In create request: optional - In update
3704 * new value for an existing key will update that key's value 3889 /// request: optional; any new key/value pair will be added to the map, and
3705 */ 3890 /// any new value for an existing key will update that key's value
3706 core.List<StepLabelsEntry> labels; 3891 core.List<StepLabelsEntry> labels;
3707 /** 3892
3708 * A short human-readable name to display in the UI. Maximum of 100 3893 /// A short human-readable name to display in the UI. Maximum of 100
3709 * characters. For example: Clean build 3894 /// characters. For example: Clean build
3710 * 3895 ///
3711 * A PRECONDITION_FAILED will be returned upon creating a new step if it 3896 /// A PRECONDITION_FAILED will be returned upon creating a new step if it
3712 * shares its name and dimension_value with an existing step. If two steps 3897 /// shares its name and dimension_value with an existing step. If two steps
3713 * represent a similar action, but have different dimension values, they 3898 /// represent a similar action, but have different dimension values, they
3714 * should share the same name. For instance, if the same set of tests is run 3899 /// should share the same name. For instance, if the same set of tests is run
3715 * on two different platforms, the two steps should have the same name. 3900 /// on two different platforms, the two steps should have the same name.
3716 * 3901 ///
3717 * - In response: always set - In create request: always set - In update 3902 /// - In response: always set - In create request: always set - In update
3718 * request: never set 3903 /// request: never set
3719 */
3720 core.String name; 3904 core.String name;
3721 /** 3905
3722 * Classification of the result, for example into SUCCESS or FAILURE 3906 /// Classification of the result, for example into SUCCESS or FAILURE
3723 * 3907 ///
3724 * - In response: present if set by create/update request - In create/update 3908 /// - In response: present if set by create/update request - In create/update
3725 * request: optional 3909 /// request: optional
3726 */
3727 Outcome outcome; 3910 Outcome outcome;
3728 /** 3911
3729 * How long it took for this step to run. 3912 /// How long it took for this step to run.
3730 * 3913 ///
3731 * If unset, this is set to the difference between creation_time and 3914 /// If unset, this is set to the difference between creation_time and
3732 * completion_time when the step is set to the COMPLETE state. In some cases, 3915 /// completion_time when the step is set to the COMPLETE state. In some
3733 * it is appropriate to set this value separately: For instance, if a step is 3916 /// cases, it is appropriate to set this value separately: For instance, if a
3734 * created, but the operation it represents is queued for a few minutes before 3917 /// step is created, but the operation it represents is queued for a few
3735 * it executes, it would be appropriate not to include the time spent queued 3918 /// minutes before it executes, it would be appropriate not to include the
3736 * in its run_duration. 3919 /// time spent queued in its run_duration.
3737 * 3920 ///
3738 * PRECONDITION_FAILED will be returned if one attempts to set a run_duration 3921 /// PRECONDITION_FAILED will be returned if one attempts to set a
3739 * on a step which already has this field set. 3922 /// run_duration on a step which already has this field set.
3740 * 3923 ///
3741 * - In response: present if previously set; always present on COMPLETE step - 3924 /// - In response: present if previously set; always present on COMPLETE step
3742 * In create request: optional - In update request: optional 3925 /// - In create request: optional - In update request: optional
3743 */
3744 Duration runDuration; 3926 Duration runDuration;
3745 /** 3927
3746 * The initial state is IN_PROGRESS. The only legal state transitions are * 3928 /// The initial state is IN_PROGRESS. The only legal state transitions are *
3747 * IN_PROGRESS -> COMPLETE 3929 /// IN_PROGRESS -> COMPLETE
3748 * 3930 ///
3749 * A PRECONDITION_FAILED will be returned if an invalid transition is 3931 /// A PRECONDITION_FAILED will be returned if an invalid transition is
3750 * requested. 3932 /// requested.
3751 * 3933 ///
3752 * It is valid to create Step with a state set to COMPLETE. The state can only 3934 /// It is valid to create Step with a state set to COMPLETE. The state can
3753 * be set to COMPLETE once. A PRECONDITION_FAILED will be returned if the 3935 /// only be set to COMPLETE once. A PRECONDITION_FAILED will be returned if
3754 * state is set to COMPLETE multiple times. 3936 /// the state is set to COMPLETE multiple times.
3755 * 3937 ///
3756 * - In response: always set - In create/update request: optional 3938 /// - In response: always set - In create/update request: optional
3757 * Possible string values are: 3939 /// Possible string values are:
3758 * - "complete" 3940 /// - "complete"
3759 * - "inProgress" 3941 /// - "inProgress"
3760 * - "pending" 3942 /// - "pending"
3761 * - "unknownState" 3943 /// - "unknownState"
3762 */
3763 core.String state; 3944 core.String state;
3764 /** 3945
3765 * A unique identifier within a Execution for this Step. 3946 /// A unique identifier within a Execution for this Step.
3766 * 3947 ///
3767 * Returns INVALID_ARGUMENT if this field is set or overwritten by the caller. 3948 /// Returns INVALID_ARGUMENT if this field is set or overwritten by the
3768 * 3949 /// caller.
3769 * - In response: always set - In create/update request: never set 3950 ///
3770 */ 3951 /// - In response: always set - In create/update request: never set
3771 core.String stepId; 3952 core.String stepId;
3772 /** An execution of a test runner. */ 3953
3954 /// An execution of a test runner.
3773 TestExecutionStep testExecutionStep; 3955 TestExecutionStep testExecutionStep;
3774 /** An execution of a tool (used for steps we don't explicitly support). */ 3956
3957 /// An execution of a tool (used for steps we don't explicitly support).
3775 ToolExecutionStep toolExecutionStep; 3958 ToolExecutionStep toolExecutionStep;
3776 3959
3777 Step(); 3960 Step();
3778 3961
3779 Step.fromJson(core.Map _json) { 3962 Step.fromJson(core.Map _json) {
3780 if (_json.containsKey("completionTime")) { 3963 if (_json.containsKey("completionTime")) {
3781 completionTime = new Timestamp.fromJson(_json["completionTime"]); 3964 completionTime = new Timestamp.fromJson(_json["completionTime"]);
3782 } 3965 }
3783 if (_json.containsKey("creationTime")) { 3966 if (_json.containsKey("creationTime")) {
3784 creationTime = new Timestamp.fromJson(_json["creationTime"]); 3967 creationTime = new Timestamp.fromJson(_json["creationTime"]);
3785 } 3968 }
3786 if (_json.containsKey("description")) { 3969 if (_json.containsKey("description")) {
3787 description = _json["description"]; 3970 description = _json["description"];
3788 } 3971 }
3789 if (_json.containsKey("deviceUsageDuration")) { 3972 if (_json.containsKey("deviceUsageDuration")) {
3790 deviceUsageDuration = new Duration.fromJson(_json["deviceUsageDuration"]); 3973 deviceUsageDuration = new Duration.fromJson(_json["deviceUsageDuration"]);
3791 } 3974 }
3792 if (_json.containsKey("dimensionValue")) { 3975 if (_json.containsKey("dimensionValue")) {
3793 dimensionValue = _json["dimensionValue"].map((value) => new StepDimensionV alueEntry.fromJson(value)).toList(); 3976 dimensionValue = _json["dimensionValue"]
3977 .map((value) => new StepDimensionValueEntry.fromJson(value))
3978 .toList();
3794 } 3979 }
3795 if (_json.containsKey("hasImages")) { 3980 if (_json.containsKey("hasImages")) {
3796 hasImages = _json["hasImages"]; 3981 hasImages = _json["hasImages"];
3797 } 3982 }
3798 if (_json.containsKey("labels")) { 3983 if (_json.containsKey("labels")) {
3799 labels = _json["labels"].map((value) => new StepLabelsEntry.fromJson(value )).toList(); 3984 labels = _json["labels"]
3985 .map((value) => new StepLabelsEntry.fromJson(value))
3986 .toList();
3800 } 3987 }
3801 if (_json.containsKey("name")) { 3988 if (_json.containsKey("name")) {
3802 name = _json["name"]; 3989 name = _json["name"];
3803 } 3990 }
3804 if (_json.containsKey("outcome")) { 3991 if (_json.containsKey("outcome")) {
3805 outcome = new Outcome.fromJson(_json["outcome"]); 3992 outcome = new Outcome.fromJson(_json["outcome"]);
3806 } 3993 }
3807 if (_json.containsKey("runDuration")) { 3994 if (_json.containsKey("runDuration")) {
3808 runDuration = new Duration.fromJson(_json["runDuration"]); 3995 runDuration = new Duration.fromJson(_json["runDuration"]);
3809 } 3996 }
3810 if (_json.containsKey("state")) { 3997 if (_json.containsKey("state")) {
3811 state = _json["state"]; 3998 state = _json["state"];
3812 } 3999 }
3813 if (_json.containsKey("stepId")) { 4000 if (_json.containsKey("stepId")) {
3814 stepId = _json["stepId"]; 4001 stepId = _json["stepId"];
3815 } 4002 }
3816 if (_json.containsKey("testExecutionStep")) { 4003 if (_json.containsKey("testExecutionStep")) {
3817 testExecutionStep = new TestExecutionStep.fromJson(_json["testExecutionSte p"]); 4004 testExecutionStep =
4005 new TestExecutionStep.fromJson(_json["testExecutionStep"]);
3818 } 4006 }
3819 if (_json.containsKey("toolExecutionStep")) { 4007 if (_json.containsKey("toolExecutionStep")) {
3820 toolExecutionStep = new ToolExecutionStep.fromJson(_json["toolExecutionSte p"]); 4008 toolExecutionStep =
4009 new ToolExecutionStep.fromJson(_json["toolExecutionStep"]);
3821 } 4010 }
3822 } 4011 }
3823 4012
3824 core.Map<core.String, core.Object> toJson() { 4013 core.Map<core.String, core.Object> toJson() {
3825 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4014 final core.Map<core.String, core.Object> _json =
4015 new core.Map<core.String, core.Object>();
3826 if (completionTime != null) { 4016 if (completionTime != null) {
3827 _json["completionTime"] = (completionTime).toJson(); 4017 _json["completionTime"] = (completionTime).toJson();
3828 } 4018 }
3829 if (creationTime != null) { 4019 if (creationTime != null) {
3830 _json["creationTime"] = (creationTime).toJson(); 4020 _json["creationTime"] = (creationTime).toJson();
3831 } 4021 }
3832 if (description != null) { 4022 if (description != null) {
3833 _json["description"] = description; 4023 _json["description"] = description;
3834 } 4024 }
3835 if (deviceUsageDuration != null) { 4025 if (deviceUsageDuration != null) {
3836 _json["deviceUsageDuration"] = (deviceUsageDuration).toJson(); 4026 _json["deviceUsageDuration"] = (deviceUsageDuration).toJson();
3837 } 4027 }
3838 if (dimensionValue != null) { 4028 if (dimensionValue != null) {
3839 _json["dimensionValue"] = dimensionValue.map((value) => (value).toJson()). toList(); 4029 _json["dimensionValue"] =
4030 dimensionValue.map((value) => (value).toJson()).toList();
3840 } 4031 }
3841 if (hasImages != null) { 4032 if (hasImages != null) {
3842 _json["hasImages"] = hasImages; 4033 _json["hasImages"] = hasImages;
3843 } 4034 }
3844 if (labels != null) { 4035 if (labels != null) {
3845 _json["labels"] = labels.map((value) => (value).toJson()).toList(); 4036 _json["labels"] = labels.map((value) => (value).toJson()).toList();
3846 } 4037 }
3847 if (name != null) { 4038 if (name != null) {
3848 _json["name"] = name; 4039 _json["name"] = name;
3849 } 4040 }
(...skipping 28 matching lines...) Expand all
3878 StepDimensionValueEntry.fromJson(core.Map _json) { 4069 StepDimensionValueEntry.fromJson(core.Map _json) {
3879 if (_json.containsKey("key")) { 4070 if (_json.containsKey("key")) {
3880 key = _json["key"]; 4071 key = _json["key"];
3881 } 4072 }
3882 if (_json.containsKey("value")) { 4073 if (_json.containsKey("value")) {
3883 value = _json["value"]; 4074 value = _json["value"];
3884 } 4075 }
3885 } 4076 }
3886 4077
3887 core.Map<core.String, core.Object> toJson() { 4078 core.Map<core.String, core.Object> toJson() {
3888 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4079 final core.Map<core.String, core.Object> _json =
4080 new core.Map<core.String, core.Object>();
3889 if (key != null) { 4081 if (key != null) {
3890 _json["key"] = key; 4082 _json["key"] = key;
3891 } 4083 }
3892 if (value != null) { 4084 if (value != null) {
3893 _json["value"] = value; 4085 _json["value"] = value;
3894 } 4086 }
3895 return _json; 4087 return _json;
3896 } 4088 }
3897 } 4089 }
3898 4090
3899 class StepLabelsEntry { 4091 class StepLabelsEntry {
3900 core.String key; 4092 core.String key;
3901 core.String value; 4093 core.String value;
3902 4094
3903 StepLabelsEntry(); 4095 StepLabelsEntry();
3904 4096
3905 StepLabelsEntry.fromJson(core.Map _json) { 4097 StepLabelsEntry.fromJson(core.Map _json) {
3906 if (_json.containsKey("key")) { 4098 if (_json.containsKey("key")) {
3907 key = _json["key"]; 4099 key = _json["key"];
3908 } 4100 }
3909 if (_json.containsKey("value")) { 4101 if (_json.containsKey("value")) {
3910 value = _json["value"]; 4102 value = _json["value"];
3911 } 4103 }
3912 } 4104 }
3913 4105
3914 core.Map<core.String, core.Object> toJson() { 4106 core.Map<core.String, core.Object> toJson() {
3915 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4107 final core.Map<core.String, core.Object> _json =
4108 new core.Map<core.String, core.Object>();
3916 if (key != null) { 4109 if (key != null) {
3917 _json["key"] = key; 4110 _json["key"] = key;
3918 } 4111 }
3919 if (value != null) { 4112 if (value != null) {
3920 _json["value"] = value; 4113 _json["value"] = value;
3921 } 4114 }
3922 return _json; 4115 return _json;
3923 } 4116 }
3924 } 4117 }
3925 4118
3926 class SuccessDetail { 4119 class SuccessDetail {
3927 /** If a native process other than the app crashed. */ 4120 /// If a native process other than the app crashed.
3928 core.bool otherNativeCrash; 4121 core.bool otherNativeCrash;
3929 4122
3930 SuccessDetail(); 4123 SuccessDetail();
3931 4124
3932 SuccessDetail.fromJson(core.Map _json) { 4125 SuccessDetail.fromJson(core.Map _json) {
3933 if (_json.containsKey("otherNativeCrash")) { 4126 if (_json.containsKey("otherNativeCrash")) {
3934 otherNativeCrash = _json["otherNativeCrash"]; 4127 otherNativeCrash = _json["otherNativeCrash"];
3935 } 4128 }
3936 } 4129 }
3937 4130
3938 core.Map<core.String, core.Object> toJson() { 4131 core.Map<core.String, core.Object> toJson() {
3939 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4132 final core.Map<core.String, core.Object> _json =
4133 new core.Map<core.String, core.Object>();
3940 if (otherNativeCrash != null) { 4134 if (otherNativeCrash != null) {
3941 _json["otherNativeCrash"] = otherNativeCrash; 4135 _json["otherNativeCrash"] = otherNativeCrash;
3942 } 4136 }
3943 return _json; 4137 return _json;
3944 } 4138 }
3945 } 4139 }
3946 4140
3947 /** 4141 /// A reference to a test case.
3948 * A reference to a test case. 4142 ///
3949 * 4143 /// Test case references are canonically ordered lexicographically by these
3950 * Test case references are canonically ordered lexicographically by these three 4144 /// three factors: * First, by test_suite_name. * Second, by class_name. *
3951 * factors: * First, by test_suite_name. * Second, by class_name. * Third, by 4145 /// Third, by name.
3952 * name.
3953 */
3954 class TestCaseReference { 4146 class TestCaseReference {
3955 /** The name of the class. */ 4147 /// The name of the class.
3956 core.String className; 4148 core.String className;
3957 /** 4149
3958 * The name of the test case. 4150 /// The name of the test case.
3959 * 4151 ///
3960 * Required. 4152 /// Required.
3961 */
3962 core.String name; 4153 core.String name;
3963 /** The name of the test suite to which this test case belongs. */ 4154
4155 /// The name of the test suite to which this test case belongs.
3964 core.String testSuiteName; 4156 core.String testSuiteName;
3965 4157
3966 TestCaseReference(); 4158 TestCaseReference();
3967 4159
3968 TestCaseReference.fromJson(core.Map _json) { 4160 TestCaseReference.fromJson(core.Map _json) {
3969 if (_json.containsKey("className")) { 4161 if (_json.containsKey("className")) {
3970 className = _json["className"]; 4162 className = _json["className"];
3971 } 4163 }
3972 if (_json.containsKey("name")) { 4164 if (_json.containsKey("name")) {
3973 name = _json["name"]; 4165 name = _json["name"];
3974 } 4166 }
3975 if (_json.containsKey("testSuiteName")) { 4167 if (_json.containsKey("testSuiteName")) {
3976 testSuiteName = _json["testSuiteName"]; 4168 testSuiteName = _json["testSuiteName"];
3977 } 4169 }
3978 } 4170 }
3979 4171
3980 core.Map<core.String, core.Object> toJson() { 4172 core.Map<core.String, core.Object> toJson() {
3981 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4173 final core.Map<core.String, core.Object> _json =
4174 new core.Map<core.String, core.Object>();
3982 if (className != null) { 4175 if (className != null) {
3983 _json["className"] = className; 4176 _json["className"] = className;
3984 } 4177 }
3985 if (name != null) { 4178 if (name != null) {
3986 _json["name"] = name; 4179 _json["name"] = name;
3987 } 4180 }
3988 if (testSuiteName != null) { 4181 if (testSuiteName != null) {
3989 _json["testSuiteName"] = testSuiteName; 4182 _json["testSuiteName"] = testSuiteName;
3990 } 4183 }
3991 return _json; 4184 return _json;
3992 } 4185 }
3993 } 4186 }
3994 4187
3995 /** 4188 /// A step that represents running tests.
3996 * A step that represents running tests. 4189 ///
3997 * 4190 /// It accepts ant-junit xml files which will be parsed into structured test
3998 * It accepts ant-junit xml files which will be parsed into structured test 4191 /// results by the service. Xml file paths are updated in order to append more
3999 * results by the service. Xml file paths are updated in order to append more 4192 /// files, however they can't be deleted.
4000 * files, however they can't be deleted. 4193 ///
4001 * 4194 /// Users can also add test results manually by using the test_result field.
4002 * Users can also add test results manually by using the test_result field.
4003 */
4004 class TestExecutionStep { 4195 class TestExecutionStep {
4005 /** 4196 /// Issues observed during the test execution.
4006 * Issues observed during the test execution. 4197 ///
4007 * 4198 /// For example, if the mobile app under test crashed during the test, the
4008 * For example, if the mobile app under test crashed during the test, the 4199 /// error message and the stack trace content can be recorded here to assist
4009 * error message and the stack trace content can be recorded here to assist 4200 /// debugging.
4010 * debugging. 4201 ///
4011 * 4202 /// - In response: present if set by create or update - In create/update
4012 * - In response: present if set by create or update - In create/update 4203 /// request: optional
4013 * request: optional
4014 */
4015 core.List<TestIssue> testIssues; 4204 core.List<TestIssue> testIssues;
4016 /** 4205
4017 * List of test suite overview contents. This could be parsed from xUnit XML 4206 /// List of test suite overview contents. This could be parsed from xUnit XML
4018 * log by server, or uploaded directly by user. This references should only be 4207 /// log by server, or uploaded directly by user. This references should only
4019 * called when test suites are fully parsed or uploaded. 4208 /// be called when test suites are fully parsed or uploaded.
4020 * 4209 ///
4021 * The maximum allowed number of test suite overviews per step is 1000. 4210 /// The maximum allowed number of test suite overviews per step is 1000.
4022 * 4211 ///
4023 * - In response: always set - In create request: optional - In update 4212 /// - In response: always set - In create request: optional - In update
4024 * request: never (use publishXunitXmlFiles custom method instead) 4213 /// request: never (use publishXunitXmlFiles custom method instead)
4025 */
4026 core.List<TestSuiteOverview> testSuiteOverviews; 4214 core.List<TestSuiteOverview> testSuiteOverviews;
4027 /** 4215
4028 * The timing break down of the test execution. 4216 /// The timing break down of the test execution.
4029 * 4217 ///
4030 * - In response: present if set by create or update - In create/update 4218 /// - In response: present if set by create or update - In create/update
4031 * request: optional 4219 /// request: optional
4032 */
4033 TestTiming testTiming; 4220 TestTiming testTiming;
4034 /** 4221
4035 * Represents the execution of the test runner. 4222 /// Represents the execution of the test runner.
4036 * 4223 ///
4037 * The exit code of this tool will be used to determine if the test passed. 4224 /// The exit code of this tool will be used to determine if the test passed.
4038 * 4225 ///
4039 * - In response: always set - In create/update request: optional 4226 /// - In response: always set - In create/update request: optional
4040 */
4041 ToolExecution toolExecution; 4227 ToolExecution toolExecution;
4042 4228
4043 TestExecutionStep(); 4229 TestExecutionStep();
4044 4230
4045 TestExecutionStep.fromJson(core.Map _json) { 4231 TestExecutionStep.fromJson(core.Map _json) {
4046 if (_json.containsKey("testIssues")) { 4232 if (_json.containsKey("testIssues")) {
4047 testIssues = _json["testIssues"].map((value) => new TestIssue.fromJson(val ue)).toList(); 4233 testIssues = _json["testIssues"]
4234 .map((value) => new TestIssue.fromJson(value))
4235 .toList();
4048 } 4236 }
4049 if (_json.containsKey("testSuiteOverviews")) { 4237 if (_json.containsKey("testSuiteOverviews")) {
4050 testSuiteOverviews = _json["testSuiteOverviews"].map((value) => new TestSu iteOverview.fromJson(value)).toList(); 4238 testSuiteOverviews = _json["testSuiteOverviews"]
4239 .map((value) => new TestSuiteOverview.fromJson(value))
4240 .toList();
4051 } 4241 }
4052 if (_json.containsKey("testTiming")) { 4242 if (_json.containsKey("testTiming")) {
4053 testTiming = new TestTiming.fromJson(_json["testTiming"]); 4243 testTiming = new TestTiming.fromJson(_json["testTiming"]);
4054 } 4244 }
4055 if (_json.containsKey("toolExecution")) { 4245 if (_json.containsKey("toolExecution")) {
4056 toolExecution = new ToolExecution.fromJson(_json["toolExecution"]); 4246 toolExecution = new ToolExecution.fromJson(_json["toolExecution"]);
4057 } 4247 }
4058 } 4248 }
4059 4249
4060 core.Map<core.String, core.Object> toJson() { 4250 core.Map<core.String, core.Object> toJson() {
4061 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4251 final core.Map<core.String, core.Object> _json =
4252 new core.Map<core.String, core.Object>();
4062 if (testIssues != null) { 4253 if (testIssues != null) {
4063 _json["testIssues"] = testIssues.map((value) => (value).toJson()).toList() ; 4254 _json["testIssues"] =
4255 testIssues.map((value) => (value).toJson()).toList();
4064 } 4256 }
4065 if (testSuiteOverviews != null) { 4257 if (testSuiteOverviews != null) {
4066 _json["testSuiteOverviews"] = testSuiteOverviews.map((value) => (value).to Json()).toList(); 4258 _json["testSuiteOverviews"] =
4259 testSuiteOverviews.map((value) => (value).toJson()).toList();
4067 } 4260 }
4068 if (testTiming != null) { 4261 if (testTiming != null) {
4069 _json["testTiming"] = (testTiming).toJson(); 4262 _json["testTiming"] = (testTiming).toJson();
4070 } 4263 }
4071 if (toolExecution != null) { 4264 if (toolExecution != null) {
4072 _json["toolExecution"] = (toolExecution).toJson(); 4265 _json["toolExecution"] = (toolExecution).toJson();
4073 } 4266 }
4074 return _json; 4267 return _json;
4075 } 4268 }
4076 } 4269 }
4077 4270
4078 /** An issue detected occurring during a test execution. */ 4271 /// An issue detected occurring during a test execution.
4079 class TestIssue { 4272 class TestIssue {
4080 /** A brief human-readable message describing the issue. Required. */ 4273 /// A brief human-readable message describing the issue. Required.
4081 core.String errorMessage; 4274 core.String errorMessage;
4082 /** 4275
4083 * Severity of issue. Required. 4276 /// Severity of issue. Required.
4084 * Possible string values are: 4277 /// Possible string values are:
4085 * - "info" 4278 /// - "info"
4086 * - "severe" 4279 /// - "severe"
4087 * - "unspecifiedSeverity" 4280 /// - "unspecifiedSeverity"
4088 * - "warning" 4281 /// - "warning"
4089 */
4090 core.String severity; 4282 core.String severity;
4091 /** Deprecated in favor of stack trace fields inside specific warnings. */ 4283
4284 /// Deprecated in favor of stack trace fields inside specific warnings.
4092 StackTrace stackTrace; 4285 StackTrace stackTrace;
4093 /** 4286
4094 * Type of issue. Required. 4287 /// Type of issue. Required.
4095 * Possible string values are: 4288 /// Possible string values are:
4096 * - "anr" 4289 /// - "anr"
4097 * - "fatalException" 4290 /// - "fatalException"
4098 * - "nativeCrash" 4291 /// - "nativeCrash"
4099 * - "unspecifiedType" 4292 /// - "unspecifiedType"
4100 */
4101 core.String type; 4293 core.String type;
4102 /** 4294
4103 * Warning message with additional details of the issue. Should always be a 4295 /// Warning message with additional details of the issue. Should always be a
4104 * message from com.google.devtools.toolresults.v1.warnings Required. 4296 /// message from com.google.devtools.toolresults.v1.warnings Required.
4105 */
4106 Any warning; 4297 Any warning;
4107 4298
4108 TestIssue(); 4299 TestIssue();
4109 4300
4110 TestIssue.fromJson(core.Map _json) { 4301 TestIssue.fromJson(core.Map _json) {
4111 if (_json.containsKey("errorMessage")) { 4302 if (_json.containsKey("errorMessage")) {
4112 errorMessage = _json["errorMessage"]; 4303 errorMessage = _json["errorMessage"];
4113 } 4304 }
4114 if (_json.containsKey("severity")) { 4305 if (_json.containsKey("severity")) {
4115 severity = _json["severity"]; 4306 severity = _json["severity"];
4116 } 4307 }
4117 if (_json.containsKey("stackTrace")) { 4308 if (_json.containsKey("stackTrace")) {
4118 stackTrace = new StackTrace.fromJson(_json["stackTrace"]); 4309 stackTrace = new StackTrace.fromJson(_json["stackTrace"]);
4119 } 4310 }
4120 if (_json.containsKey("type")) { 4311 if (_json.containsKey("type")) {
4121 type = _json["type"]; 4312 type = _json["type"];
4122 } 4313 }
4123 if (_json.containsKey("warning")) { 4314 if (_json.containsKey("warning")) {
4124 warning = new Any.fromJson(_json["warning"]); 4315 warning = new Any.fromJson(_json["warning"]);
4125 } 4316 }
4126 } 4317 }
4127 4318
4128 core.Map<core.String, core.Object> toJson() { 4319 core.Map<core.String, core.Object> toJson() {
4129 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4320 final core.Map<core.String, core.Object> _json =
4321 new core.Map<core.String, core.Object>();
4130 if (errorMessage != null) { 4322 if (errorMessage != null) {
4131 _json["errorMessage"] = errorMessage; 4323 _json["errorMessage"] = errorMessage;
4132 } 4324 }
4133 if (severity != null) { 4325 if (severity != null) {
4134 _json["severity"] = severity; 4326 _json["severity"] = severity;
4135 } 4327 }
4136 if (stackTrace != null) { 4328 if (stackTrace != null) {
4137 _json["stackTrace"] = (stackTrace).toJson(); 4329 _json["stackTrace"] = (stackTrace).toJson();
4138 } 4330 }
4139 if (type != null) { 4331 if (type != null) {
4140 _json["type"] = type; 4332 _json["type"] = type;
4141 } 4333 }
4142 if (warning != null) { 4334 if (warning != null) {
4143 _json["warning"] = (warning).toJson(); 4335 _json["warning"] = (warning).toJson();
4144 } 4336 }
4145 return _json; 4337 return _json;
4146 } 4338 }
4147 } 4339 }
4148 4340
4149 /** 4341 /// A summary of a test suite result either parsed from XML or uploaded
4150 * A summary of a test suite result either parsed from XML or uploaded directly 4342 /// directly by a user.
4151 * by a user. 4343 ///
4152 * 4344 /// Note: the API related comments are for StepService only. This message is
4153 * Note: the API related comments are for StepService only. This message is also 4345 /// also being used in ExecutionService in a read only mode for the
4154 * being used in ExecutionService in a read only mode for the corresponding 4346 /// corresponding step.
4155 * step.
4156 */
4157 class TestSuiteOverview { 4347 class TestSuiteOverview {
4158 /** 4348 /// Number of test cases in error, typically set by the service by parsing
4159 * Number of test cases in error, typically set by the service by parsing the 4349 /// the xml_source.
4160 * xml_source. 4350 ///
4161 * 4351 /// - In create/response: always set - In update request: never
4162 * - In create/response: always set - In update request: never
4163 */
4164 core.int errorCount; 4352 core.int errorCount;
4165 /** 4353
4166 * Number of failed test cases, typically set by the service by parsing the 4354 /// Number of failed test cases, typically set by the service by parsing the
4167 * xml_source. May also be set by the user. 4355 /// xml_source. May also be set by the user.
4168 * 4356 ///
4169 * - In create/response: always set - In update request: never 4357 /// - In create/response: always set - In update request: never
4170 */
4171 core.int failureCount; 4358 core.int failureCount;
4172 /** 4359
4173 * The name of the test suite. 4360 /// The name of the test suite.
4174 * 4361 ///
4175 * - In create/response: always set - In update request: never 4362 /// - In create/response: always set - In update request: never
4176 */
4177 core.String name; 4363 core.String name;
4178 /** 4364
4179 * Number of test cases not run, typically set by the service by parsing the 4365 /// Number of test cases not run, typically set by the service by parsing the
4180 * xml_source. 4366 /// xml_source.
4181 * 4367 ///
4182 * - In create/response: always set - In update request: never 4368 /// - In create/response: always set - In update request: never
4183 */
4184 core.int skippedCount; 4369 core.int skippedCount;
4185 /** 4370
4186 * Number of test cases, typically set by the service by parsing the 4371 /// Number of test cases, typically set by the service by parsing the
4187 * xml_source. 4372 /// xml_source.
4188 * 4373 ///
4189 * - In create/response: always set - In update request: never 4374 /// - In create/response: always set - In update request: never
4190 */
4191 core.int totalCount; 4375 core.int totalCount;
4192 /** 4376
4193 * If this test suite was parsed from XML, this is the URI where the original 4377 /// If this test suite was parsed from XML, this is the URI where the
4194 * XML file is stored. 4378 /// original XML file is stored.
4195 * 4379 ///
4196 * Note: Multiple test suites can share the same xml_source 4380 /// Note: Multiple test suites can share the same xml_source
4197 * 4381 ///
4198 * Returns INVALID_ARGUMENT if the uri format is not supported. 4382 /// Returns INVALID_ARGUMENT if the uri format is not supported.
4199 * 4383 ///
4200 * - In create/response: optional - In update request: never 4384 /// - In create/response: optional - In update request: never
4201 */
4202 FileReference xmlSource; 4385 FileReference xmlSource;
4203 4386
4204 TestSuiteOverview(); 4387 TestSuiteOverview();
4205 4388
4206 TestSuiteOverview.fromJson(core.Map _json) { 4389 TestSuiteOverview.fromJson(core.Map _json) {
4207 if (_json.containsKey("errorCount")) { 4390 if (_json.containsKey("errorCount")) {
4208 errorCount = _json["errorCount"]; 4391 errorCount = _json["errorCount"];
4209 } 4392 }
4210 if (_json.containsKey("failureCount")) { 4393 if (_json.containsKey("failureCount")) {
4211 failureCount = _json["failureCount"]; 4394 failureCount = _json["failureCount"];
4212 } 4395 }
4213 if (_json.containsKey("name")) { 4396 if (_json.containsKey("name")) {
4214 name = _json["name"]; 4397 name = _json["name"];
4215 } 4398 }
4216 if (_json.containsKey("skippedCount")) { 4399 if (_json.containsKey("skippedCount")) {
4217 skippedCount = _json["skippedCount"]; 4400 skippedCount = _json["skippedCount"];
4218 } 4401 }
4219 if (_json.containsKey("totalCount")) { 4402 if (_json.containsKey("totalCount")) {
4220 totalCount = _json["totalCount"]; 4403 totalCount = _json["totalCount"];
4221 } 4404 }
4222 if (_json.containsKey("xmlSource")) { 4405 if (_json.containsKey("xmlSource")) {
4223 xmlSource = new FileReference.fromJson(_json["xmlSource"]); 4406 xmlSource = new FileReference.fromJson(_json["xmlSource"]);
4224 } 4407 }
4225 } 4408 }
4226 4409
4227 core.Map<core.String, core.Object> toJson() { 4410 core.Map<core.String, core.Object> toJson() {
4228 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4411 final core.Map<core.String, core.Object> _json =
4412 new core.Map<core.String, core.Object>();
4229 if (errorCount != null) { 4413 if (errorCount != null) {
4230 _json["errorCount"] = errorCount; 4414 _json["errorCount"] = errorCount;
4231 } 4415 }
4232 if (failureCount != null) { 4416 if (failureCount != null) {
4233 _json["failureCount"] = failureCount; 4417 _json["failureCount"] = failureCount;
4234 } 4418 }
4235 if (name != null) { 4419 if (name != null) {
4236 _json["name"] = name; 4420 _json["name"] = name;
4237 } 4421 }
4238 if (skippedCount != null) { 4422 if (skippedCount != null) {
4239 _json["skippedCount"] = skippedCount; 4423 _json["skippedCount"] = skippedCount;
4240 } 4424 }
4241 if (totalCount != null) { 4425 if (totalCount != null) {
4242 _json["totalCount"] = totalCount; 4426 _json["totalCount"] = totalCount;
4243 } 4427 }
4244 if (xmlSource != null) { 4428 if (xmlSource != null) {
4245 _json["xmlSource"] = (xmlSource).toJson(); 4429 _json["xmlSource"] = (xmlSource).toJson();
4246 } 4430 }
4247 return _json; 4431 return _json;
4248 } 4432 }
4249 } 4433 }
4250 4434
4251 /** Testing timing break down to know phases. */ 4435 /// Testing timing break down to know phases.
4252 class TestTiming { 4436 class TestTiming {
4253 /** 4437 /// How long it took to run the test process.
4254 * How long it took to run the test process. 4438 ///
4255 * 4439 /// - In response: present if previously set. - In create/update request:
4256 * - In response: present if previously set. - In create/update request: 4440 /// optional
4257 * optional
4258 */
4259 Duration testProcessDuration; 4441 Duration testProcessDuration;
4260 4442
4261 TestTiming(); 4443 TestTiming();
4262 4444
4263 TestTiming.fromJson(core.Map _json) { 4445 TestTiming.fromJson(core.Map _json) {
4264 if (_json.containsKey("testProcessDuration")) { 4446 if (_json.containsKey("testProcessDuration")) {
4265 testProcessDuration = new Duration.fromJson(_json["testProcessDuration"]); 4447 testProcessDuration = new Duration.fromJson(_json["testProcessDuration"]);
4266 } 4448 }
4267 } 4449 }
4268 4450
4269 core.Map<core.String, core.Object> toJson() { 4451 core.Map<core.String, core.Object> toJson() {
4270 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4452 final core.Map<core.String, core.Object> _json =
4453 new core.Map<core.String, core.Object>();
4271 if (testProcessDuration != null) { 4454 if (testProcessDuration != null) {
4272 _json["testProcessDuration"] = (testProcessDuration).toJson(); 4455 _json["testProcessDuration"] = (testProcessDuration).toJson();
4273 } 4456 }
4274 return _json; 4457 return _json;
4275 } 4458 }
4276 } 4459 }
4277 4460
4278 /** A single thumbnail, with its size and format. */ 4461 /// A single thumbnail, with its size and format.
4279 class Thumbnail { 4462 class Thumbnail {
4280 /** 4463 /// The thumbnail's content type, i.e. "image/png".
4281 * The thumbnail's content type, i.e. "image/png". 4464 ///
4282 * 4465 /// Always set.
4283 * Always set.
4284 */
4285 core.String contentType; 4466 core.String contentType;
4286 /** 4467
4287 * The thumbnail file itself. 4468 /// The thumbnail file itself.
4288 * 4469 ///
4289 * That is, the bytes here are precisely the bytes that make up the thumbnail 4470 /// That is, the bytes here are precisely the bytes that make up the
4290 * file; they can be served as an image as-is (with the appropriate content 4471 /// thumbnail file; they can be served as an image as-is (with the
4291 * type.) 4472 /// appropriate content type.)
4292 * 4473 ///
4293 * Always set. 4474 /// Always set.
4294 */
4295 core.String data; 4475 core.String data;
4296 core.List<core.int> get dataAsBytes { 4476 core.List<core.int> get dataAsBytes {
4297 return convert.BASE64.decode(data); 4477 return convert.BASE64.decode(data);
4298 } 4478 }
4299 4479
4300 void set dataAsBytes(core.List<core.int> _bytes) { 4480 void set dataAsBytes(core.List<core.int> _bytes) {
4301 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 4481 data =
4482 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
4302 } 4483 }
4303 /** 4484
4304 * The height of the thumbnail, in pixels. 4485 /// The height of the thumbnail, in pixels.
4305 * 4486 ///
4306 * Always set. 4487 /// Always set.
4307 */
4308 core.int heightPx; 4488 core.int heightPx;
4309 /** 4489
4310 * The width of the thumbnail, in pixels. 4490 /// The width of the thumbnail, in pixels.
4311 * 4491 ///
4312 * Always set. 4492 /// Always set.
4313 */
4314 core.int widthPx; 4493 core.int widthPx;
4315 4494
4316 Thumbnail(); 4495 Thumbnail();
4317 4496
4318 Thumbnail.fromJson(core.Map _json) { 4497 Thumbnail.fromJson(core.Map _json) {
4319 if (_json.containsKey("contentType")) { 4498 if (_json.containsKey("contentType")) {
4320 contentType = _json["contentType"]; 4499 contentType = _json["contentType"];
4321 } 4500 }
4322 if (_json.containsKey("data")) { 4501 if (_json.containsKey("data")) {
4323 data = _json["data"]; 4502 data = _json["data"];
4324 } 4503 }
4325 if (_json.containsKey("heightPx")) { 4504 if (_json.containsKey("heightPx")) {
4326 heightPx = _json["heightPx"]; 4505 heightPx = _json["heightPx"];
4327 } 4506 }
4328 if (_json.containsKey("widthPx")) { 4507 if (_json.containsKey("widthPx")) {
4329 widthPx = _json["widthPx"]; 4508 widthPx = _json["widthPx"];
4330 } 4509 }
4331 } 4510 }
4332 4511
4333 core.Map<core.String, core.Object> toJson() { 4512 core.Map<core.String, core.Object> toJson() {
4334 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4513 final core.Map<core.String, core.Object> _json =
4514 new core.Map<core.String, core.Object>();
4335 if (contentType != null) { 4515 if (contentType != null) {
4336 _json["contentType"] = contentType; 4516 _json["contentType"] = contentType;
4337 } 4517 }
4338 if (data != null) { 4518 if (data != null) {
4339 _json["data"] = data; 4519 _json["data"] = data;
4340 } 4520 }
4341 if (heightPx != null) { 4521 if (heightPx != null) {
4342 _json["heightPx"] = heightPx; 4522 _json["heightPx"] = heightPx;
4343 } 4523 }
4344 if (widthPx != null) { 4524 if (widthPx != null) {
4345 _json["widthPx"] = widthPx; 4525 _json["widthPx"] = widthPx;
4346 } 4526 }
4347 return _json; 4527 return _json;
4348 } 4528 }
4349 } 4529 }
4350 4530
4351 /** 4531 /// A Timestamp represents a point in time independent of any time zone or
4352 * A Timestamp represents a point in time independent of any time zone or 4532 /// calendar, represented as seconds and fractions of seconds at nanosecond
4353 * calendar, represented as seconds and fractions of seconds at nanosecond 4533 /// resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian
4354 * resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian 4534 /// Calendar which extends the Gregorian calendar backwards to year one. It is
4355 * Calendar which extends the Gregorian calendar backwards to year one. It is 4535 /// encoded assuming all minutes are 60 seconds long, i.e. leap seconds are
4356 * encoded assuming all minutes are 60 seconds long, i.e. leap seconds are 4536 /// "smeared" so that no leap second table is needed for interpretation. Range
4357 * "smeared" so that no leap second table is needed for interpretation. Range is 4537 /// is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
4358 * from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting 4538 /// restricting to that range, we ensure that we can convert to and from RFC
4359 * to that range, we ensure that we can convert to and from RFC 3339 date 4539 /// 3339 date strings. See
4360 * strings. See 4540 /// [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt) .
4361 * [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). 4541 ///
4362 * 4542 /// # Examples
4363 * # Examples 4543 ///
4364 * 4544 /// Example 1: Compute Timestamp from POSIX `time()`.
4365 * Example 1: Compute Timestamp from POSIX `time()`. 4545 ///
4366 * 4546 /// Timestamp timestamp; timestamp.set_seconds(time(NULL));
4367 * Timestamp timestamp; timestamp.set_seconds(time(NULL)); 4547 /// timestamp.set_nanos(0);
4368 * timestamp.set_nanos(0); 4548 ///
4369 * 4549 /// Example 2: Compute Timestamp from POSIX `gettimeofday()`.
4370 * Example 2: Compute Timestamp from POSIX `gettimeofday()`. 4550 ///
4371 * 4551 /// struct timeval tv; gettimeofday(&tv, NULL);
4372 * struct timeval tv; gettimeofday(&tv, NULL); 4552 ///
4373 * 4553 /// Timestamp timestamp; timestamp.set_seconds(tv.tv_sec);
4374 * Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); 4554 /// timestamp.set_nanos(tv.tv_usec * 1000);
4375 * timestamp.set_nanos(tv.tv_usec * 1000); 4555 ///
4376 * 4556 /// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
4377 * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. 4557 ///
4378 * 4558 /// FILETIME ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks =
4379 * FILETIME ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks = 4559 /// (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
4380 * (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; 4560 ///
4381 * 4561 /// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z //
4382 * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z // 4562 /// is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. Timestamp
4383 * is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. Timestamp 4563 /// timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) -
4384 * timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) - 4564 /// 11644473600LL)); timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
4385 * 11644473600LL)); timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); 4565 ///
4386 * 4566 /// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
4387 * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. 4567 ///
4388 * 4568 /// long millis = System.currentTimeMillis();
4389 * long millis = System.currentTimeMillis(); 4569 ///
4390 * 4570 /// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
4391 * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) 4571 /// .setNanos((int) ((millis % 1000) * 1000000)).build();
4392 * .setNanos((int) ((millis % 1000) * 1000000)).build(); 4572 ///
4393 * 4573 ///
4394 * 4574 ///
4395 * 4575 /// Example 5: Compute Timestamp from current time in Python.
4396 * Example 5: Compute Timestamp from current time in Python. 4576 ///
4397 * 4577 /// timestamp = Timestamp() timestamp.GetCurrentTime()
4398 * timestamp = Timestamp() timestamp.GetCurrentTime() 4578 ///
4399 * 4579 /// # JSON Mapping
4400 * # JSON Mapping 4580 ///
4401 * 4581 /// In JSON format, the Timestamp type is encoded as a string in the [RFC
4402 * In JSON format, the Timestamp type is encoded as a string in the [RFC 4582 /// 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the format is
4403 * 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the format is 4583 /// "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" where {year} is
4404 * "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" where {year} is 4584 /// always expressed using four digits while {month}, {day}, {hour}, {min}, and
4405 * always expressed using four digits while {month}, {day}, {hour}, {min}, and 4585 /// {sec} are zero-padded to two digits each. The fractional seconds, which can
4406 * {sec} are zero-padded to two digits each. The fractional seconds, which can 4586 /// go up to 9 digits (i.e. up to 1 nanosecond resolution), are optional. The
4407 * go up to 9 digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" 4587 /// "Z" suffix indicates the timezone ("UTC"); the timezone is required, though
4408 * suffix indicates the timezone ("UTC"); the timezone is required, though only 4588 /// only UTC (as indicated by "Z") is presently supported.
4409 * UTC (as indicated by "Z") is presently supported. 4589 ///
4410 * 4590 /// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC
4411 * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC 4591 /// on January 15, 2017.
4412 * on January 15, 2017. 4592 ///
4413 * 4593 /// In JavaScript, one can convert a Date object to this format using the
4414 * In JavaScript, one can convert a Date object to this format using the 4594 /// standard
4415 * standard 4595 /// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe rence/Global_Objects/Date/toISOString]
4416 * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refer ence/Global_Objects/Date/toISOString] 4596 /// method. In Python, a standard `datetime.datetime` object can be converted
4417 * method. In Python, a standard `datetime.datetime` object can be converted to 4597 /// to this format using
4418 * this format using 4598 /// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
4419 * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with 4599 /// with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
4420 * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use 4600 /// can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
4421 * the Joda Time's [`ISODateTimeFormat.dateTime()`]( 4601 /// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFor mat.html#dateTime())
4422 * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeForm at.html#dateTime()) 4602 /// to obtain a formatter capable of generating timestamps in this format.
4423 * to obtain a formatter capable of generating timestamps in this format.
4424 */
4425 class Timestamp { 4603 class Timestamp {
4426 /** 4604 /// Non-negative fractions of a second at nanosecond resolution. Negative
4427 * Non-negative fractions of a second at nanosecond resolution. Negative 4605 /// second values with fractions must still have non-negative nanos values
4428 * second values with fractions must still have non-negative nanos values that 4606 /// that count forward in time. Must be from 0 to 999,999,999 inclusive.
4429 * count forward in time. Must be from 0 to 999,999,999 inclusive.
4430 */
4431 core.int nanos; 4607 core.int nanos;
4432 /** 4608
4433 * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must 4609 /// Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z.
4434 * be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive. 4610 /// Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.
4435 */
4436 core.String seconds; 4611 core.String seconds;
4437 4612
4438 Timestamp(); 4613 Timestamp();
4439 4614
4440 Timestamp.fromJson(core.Map _json) { 4615 Timestamp.fromJson(core.Map _json) {
4441 if (_json.containsKey("nanos")) { 4616 if (_json.containsKey("nanos")) {
4442 nanos = _json["nanos"]; 4617 nanos = _json["nanos"];
4443 } 4618 }
4444 if (_json.containsKey("seconds")) { 4619 if (_json.containsKey("seconds")) {
4445 seconds = _json["seconds"]; 4620 seconds = _json["seconds"];
4446 } 4621 }
4447 } 4622 }
4448 4623
4449 core.Map<core.String, core.Object> toJson() { 4624 core.Map<core.String, core.Object> toJson() {
4450 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4625 final core.Map<core.String, core.Object> _json =
4626 new core.Map<core.String, core.Object>();
4451 if (nanos != null) { 4627 if (nanos != null) {
4452 _json["nanos"] = nanos; 4628 _json["nanos"] = nanos;
4453 } 4629 }
4454 if (seconds != null) { 4630 if (seconds != null) {
4455 _json["seconds"] = seconds; 4631 _json["seconds"] = seconds;
4456 } 4632 }
4457 return _json; 4633 return _json;
4458 } 4634 }
4459 } 4635 }
4460 4636
4461 /** 4637 /// An execution of an arbitrary tool. It could be a test runner or a tool
4462 * An execution of an arbitrary tool. It could be a test runner or a tool 4638 /// copying artifacts or deploying code.
4463 * copying artifacts or deploying code.
4464 */
4465 class ToolExecution { 4639 class ToolExecution {
4466 /** 4640 /// The full tokenized command line including the program name (equivalent to
4467 * The full tokenized command line including the program name (equivalent to 4641 /// argv in a C program).
4468 * argv in a C program). 4642 ///
4469 * 4643 /// - In response: present if set by create request - In create request:
4470 * - In response: present if set by create request - In create request: 4644 /// optional - In update request: never set
4471 * optional - In update request: never set
4472 */
4473 core.List<core.String> commandLineArguments; 4645 core.List<core.String> commandLineArguments;
4474 /** 4646
4475 * Tool execution exit code. This field will be set once the tool has exited. 4647 /// Tool execution exit code. This field will be set once the tool has
4476 * 4648 /// exited.
4477 * - In response: present if set by create/update request - In create request: 4649 ///
4478 * optional - In update request: optional, a FAILED_PRECONDITION error will be 4650 /// - In response: present if set by create/update request - In create
4479 * returned if an exit_code is already set. 4651 /// request: optional - In update request: optional, a FAILED_PRECONDITION
4480 */ 4652 /// error will be returned if an exit_code is already set.
4481 ToolExitCode exitCode; 4653 ToolExitCode exitCode;
4482 /** 4654
4483 * References to any plain text logs output the tool execution. 4655 /// References to any plain text logs output the tool execution.
4484 * 4656 ///
4485 * This field can be set before the tool has exited in order to be able to 4657 /// This field can be set before the tool has exited in order to be able to
4486 * have access to a live view of the logs while the tool is running. 4658 /// have access to a live view of the logs while the tool is running.
4487 * 4659 ///
4488 * The maximum allowed number of tool logs per step is 1000. 4660 /// The maximum allowed number of tool logs per step is 1000.
4489 * 4661 ///
4490 * - In response: present if set by create/update request - In create request: 4662 /// - In response: present if set by create/update request - In create
4491 * optional - In update request: optional, any value provided will be appended 4663 /// request: optional - In update request: optional, any value provided will
4492 * to the existing list 4664 /// be appended to the existing list
4493 */
4494 core.List<FileReference> toolLogs; 4665 core.List<FileReference> toolLogs;
4495 /** 4666
4496 * References to opaque files of any format output by the tool execution. 4667 /// References to opaque files of any format output by the tool execution.
4497 * 4668 ///
4498 * The maximum allowed number of tool outputs per step is 1000. 4669 /// The maximum allowed number of tool outputs per step is 1000.
4499 * 4670 ///
4500 * - In response: present if set by create/update request - In create request: 4671 /// - In response: present if set by create/update request - In create
4501 * optional - In update request: optional, any value provided will be appended 4672 /// request: optional - In update request: optional, any value provided will
4502 * to the existing list 4673 /// be appended to the existing list
4503 */
4504 core.List<ToolOutputReference> toolOutputs; 4674 core.List<ToolOutputReference> toolOutputs;
4505 4675
4506 ToolExecution(); 4676 ToolExecution();
4507 4677
4508 ToolExecution.fromJson(core.Map _json) { 4678 ToolExecution.fromJson(core.Map _json) {
4509 if (_json.containsKey("commandLineArguments")) { 4679 if (_json.containsKey("commandLineArguments")) {
4510 commandLineArguments = _json["commandLineArguments"]; 4680 commandLineArguments = _json["commandLineArguments"];
4511 } 4681 }
4512 if (_json.containsKey("exitCode")) { 4682 if (_json.containsKey("exitCode")) {
4513 exitCode = new ToolExitCode.fromJson(_json["exitCode"]); 4683 exitCode = new ToolExitCode.fromJson(_json["exitCode"]);
4514 } 4684 }
4515 if (_json.containsKey("toolLogs")) { 4685 if (_json.containsKey("toolLogs")) {
4516 toolLogs = _json["toolLogs"].map((value) => new FileReference.fromJson(val ue)).toList(); 4686 toolLogs = _json["toolLogs"]
4687 .map((value) => new FileReference.fromJson(value))
4688 .toList();
4517 } 4689 }
4518 if (_json.containsKey("toolOutputs")) { 4690 if (_json.containsKey("toolOutputs")) {
4519 toolOutputs = _json["toolOutputs"].map((value) => new ToolOutputReference. fromJson(value)).toList(); 4691 toolOutputs = _json["toolOutputs"]
4692 .map((value) => new ToolOutputReference.fromJson(value))
4693 .toList();
4520 } 4694 }
4521 } 4695 }
4522 4696
4523 core.Map<core.String, core.Object> toJson() { 4697 core.Map<core.String, core.Object> toJson() {
4524 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4698 final core.Map<core.String, core.Object> _json =
4699 new core.Map<core.String, core.Object>();
4525 if (commandLineArguments != null) { 4700 if (commandLineArguments != null) {
4526 _json["commandLineArguments"] = commandLineArguments; 4701 _json["commandLineArguments"] = commandLineArguments;
4527 } 4702 }
4528 if (exitCode != null) { 4703 if (exitCode != null) {
4529 _json["exitCode"] = (exitCode).toJson(); 4704 _json["exitCode"] = (exitCode).toJson();
4530 } 4705 }
4531 if (toolLogs != null) { 4706 if (toolLogs != null) {
4532 _json["toolLogs"] = toolLogs.map((value) => (value).toJson()).toList(); 4707 _json["toolLogs"] = toolLogs.map((value) => (value).toJson()).toList();
4533 } 4708 }
4534 if (toolOutputs != null) { 4709 if (toolOutputs != null) {
4535 _json["toolOutputs"] = toolOutputs.map((value) => (value).toJson()).toList (); 4710 _json["toolOutputs"] =
4711 toolOutputs.map((value) => (value).toJson()).toList();
4536 } 4712 }
4537 return _json; 4713 return _json;
4538 } 4714 }
4539 } 4715 }
4540 4716
4541 /** 4717 /// Generic tool step to be used for binaries we do not explicitly support. For
4542 * Generic tool step to be used for binaries we do not explicitly support. For 4718 /// example: running cp to copy artifacts from one location to another.
4543 * example: running cp to copy artifacts from one location to another.
4544 */
4545 class ToolExecutionStep { 4719 class ToolExecutionStep {
4546 /** 4720 /// A Tool execution.
4547 * A Tool execution. 4721 ///
4548 * 4722 /// - In response: present if set by create/update request - In create/update
4549 * - In response: present if set by create/update request - In create/update 4723 /// request: optional
4550 * request: optional
4551 */
4552 ToolExecution toolExecution; 4724 ToolExecution toolExecution;
4553 4725
4554 ToolExecutionStep(); 4726 ToolExecutionStep();
4555 4727
4556 ToolExecutionStep.fromJson(core.Map _json) { 4728 ToolExecutionStep.fromJson(core.Map _json) {
4557 if (_json.containsKey("toolExecution")) { 4729 if (_json.containsKey("toolExecution")) {
4558 toolExecution = new ToolExecution.fromJson(_json["toolExecution"]); 4730 toolExecution = new ToolExecution.fromJson(_json["toolExecution"]);
4559 } 4731 }
4560 } 4732 }
4561 4733
4562 core.Map<core.String, core.Object> toJson() { 4734 core.Map<core.String, core.Object> toJson() {
4563 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4735 final core.Map<core.String, core.Object> _json =
4736 new core.Map<core.String, core.Object>();
4564 if (toolExecution != null) { 4737 if (toolExecution != null) {
4565 _json["toolExecution"] = (toolExecution).toJson(); 4738 _json["toolExecution"] = (toolExecution).toJson();
4566 } 4739 }
4567 return _json; 4740 return _json;
4568 } 4741 }
4569 } 4742 }
4570 4743
4571 /** Exit code from a tool execution. */ 4744 /// Exit code from a tool execution.
4572 class ToolExitCode { 4745 class ToolExitCode {
4573 /** 4746 /// Tool execution exit code. A value of 0 means that the execution was
4574 * Tool execution exit code. A value of 0 means that the execution was 4747 /// successful.
4575 * successful. 4748 ///
4576 * 4749 /// - In response: always set - In create/update request: always set
4577 * - In response: always set - In create/update request: always set
4578 */
4579 core.int number; 4750 core.int number;
4580 4751
4581 ToolExitCode(); 4752 ToolExitCode();
4582 4753
4583 ToolExitCode.fromJson(core.Map _json) { 4754 ToolExitCode.fromJson(core.Map _json) {
4584 if (_json.containsKey("number")) { 4755 if (_json.containsKey("number")) {
4585 number = _json["number"]; 4756 number = _json["number"];
4586 } 4757 }
4587 } 4758 }
4588 4759
4589 core.Map<core.String, core.Object> toJson() { 4760 core.Map<core.String, core.Object> toJson() {
4590 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4761 final core.Map<core.String, core.Object> _json =
4762 new core.Map<core.String, core.Object>();
4591 if (number != null) { 4763 if (number != null) {
4592 _json["number"] = number; 4764 _json["number"] = number;
4593 } 4765 }
4594 return _json; 4766 return _json;
4595 } 4767 }
4596 } 4768 }
4597 4769
4598 /** A reference to a ToolExecution output file. */ 4770 /// A reference to a ToolExecution output file.
4599 class ToolOutputReference { 4771 class ToolOutputReference {
4600 /** 4772 /// The creation time of the file.
4601 * The creation time of the file. 4773 ///
4602 * 4774 /// - In response: present if set by create/update request - In create/update
4603 * - In response: present if set by create/update request - In create/update 4775 /// request: optional
4604 * request: optional
4605 */
4606 Timestamp creationTime; 4776 Timestamp creationTime;
4607 /** 4777
4608 * A FileReference to an output file. 4778 /// A FileReference to an output file.
4609 * 4779 ///
4610 * - In response: always set - In create/update request: always set 4780 /// - In response: always set - In create/update request: always set
4611 */
4612 FileReference output; 4781 FileReference output;
4613 /** 4782
4614 * The test case to which this output file belongs. 4783 /// The test case to which this output file belongs.
4615 * 4784 ///
4616 * - In response: present if set by create/update request - In create/update 4785 /// - In response: present if set by create/update request - In create/update
4617 * request: optional 4786 /// request: optional
4618 */
4619 TestCaseReference testCase; 4787 TestCaseReference testCase;
4620 4788
4621 ToolOutputReference(); 4789 ToolOutputReference();
4622 4790
4623 ToolOutputReference.fromJson(core.Map _json) { 4791 ToolOutputReference.fromJson(core.Map _json) {
4624 if (_json.containsKey("creationTime")) { 4792 if (_json.containsKey("creationTime")) {
4625 creationTime = new Timestamp.fromJson(_json["creationTime"]); 4793 creationTime = new Timestamp.fromJson(_json["creationTime"]);
4626 } 4794 }
4627 if (_json.containsKey("output")) { 4795 if (_json.containsKey("output")) {
4628 output = new FileReference.fromJson(_json["output"]); 4796 output = new FileReference.fromJson(_json["output"]);
4629 } 4797 }
4630 if (_json.containsKey("testCase")) { 4798 if (_json.containsKey("testCase")) {
4631 testCase = new TestCaseReference.fromJson(_json["testCase"]); 4799 testCase = new TestCaseReference.fromJson(_json["testCase"]);
4632 } 4800 }
4633 } 4801 }
4634 4802
4635 core.Map<core.String, core.Object> toJson() { 4803 core.Map<core.String, core.Object> toJson() {
4636 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4804 final core.Map<core.String, core.Object> _json =
4805 new core.Map<core.String, core.Object>();
4637 if (creationTime != null) { 4806 if (creationTime != null) {
4638 _json["creationTime"] = (creationTime).toJson(); 4807 _json["creationTime"] = (creationTime).toJson();
4639 } 4808 }
4640 if (output != null) { 4809 if (output != null) {
4641 _json["output"] = (output).toJson(); 4810 _json["output"] = (output).toJson();
4642 } 4811 }
4643 if (testCase != null) { 4812 if (testCase != null) {
4644 _json["testCase"] = (testCase).toJson(); 4813 _json["testCase"] = (testCase).toJson();
4645 } 4814 }
4646 return _json; 4815 return _json;
4647 } 4816 }
4648 } 4817 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/toolresults/v1beta3.dart ('k') | generated/googleapis_beta/lib/videointelligence/v1beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698