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