@maxim_mazurok/gapi.client.toolresults-v1beta3 0.0.20231115 → 0.0.20231130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/tests.ts DELETED
@@ -1,940 +0,0 @@
1
- /* This is stub file for gapi.client.toolresults-v1beta3 definition tests */
2
- // IMPORTANT
3
- // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
- // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
-
6
- // Revision: 20231115
7
-
8
- gapi.load('client', async () => {
9
- /** now we can use gapi.client */
10
-
11
- await gapi.client.load('https://toolresults.googleapis.com/$discovery/rest?version=v1beta3');
12
- /** now we can use gapi.client.toolresults */
13
-
14
- /** don't forget to authenticate your client before sending any request to resources: */
15
- /** declare client_id registered in Google Developers Console */
16
- const client_id = '<<PUT YOUR CLIENT ID HERE>>';
17
- const scope = [
18
- /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
19
- 'https://www.googleapis.com/auth/cloud-platform',
20
- ];
21
- const immediate = false;
22
- gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
23
- if (authResult && !authResult.error) {
24
- /** handle successful authorization */
25
- run();
26
- } else {
27
- /** handle authorization error */
28
- }
29
- });
30
-
31
- async function run() {
32
- /** Gets the Tool Results settings for a project. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read from project */
33
- await gapi.client.toolresults.projects.getSettings({
34
- projectId: "Test string",
35
- });
36
- /**
37
- * Creates resources for settings which have not yet been set. Currently, this creates a single resource: a Google Cloud Storage bucket, to be used as the default bucket for this project.
38
- * The bucket is created in an FTL-own storage project. Except for in rare cases, calling this method in parallel from multiple clients will only create a single bucket. In order to avoid
39
- * unnecessary storage charges, the bucket is configured to automatically delete objects older than 90 days. The bucket is created with the following permissions: - Owner access for owners
40
- * of central storage project (FTL-owned) - Writer access for owners/editors of customer project - Reader access for viewers of customer project The default ACL on objects created in the
41
- * bucket is: - Owner access for owners of central storage project - Reader access for owners/editors/viewers of customer project See Google Cloud Storage documentation for more details.
42
- * If there is already a default bucket set and the project can access the bucket, this call does nothing. However, if the project doesn't have the permission to access the bucket or the
43
- * bucket is deleted, a new bucket will be created. May return any canonical error codes, including the following: - PERMISSION_DENIED - if the user is not authorized to write to project -
44
- * Any error code raised by Google Cloud Storage
45
- */
46
- await gapi.client.toolresults.projects.initializeSettings({
47
- projectId: "Test string",
48
- });
49
- /**
50
- * Creates a History. The returned History will have the id set. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to
51
- * project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing project does not exist
52
- */
53
- await gapi.client.toolresults.projects.histories.create({
54
- projectId: "Test string",
55
- requestId: "Test string",
56
- }, {
57
- displayName: "Test string",
58
- historyId: "Test string",
59
- name: "Test string",
60
- testPlatform: "Test string",
61
- });
62
- /**
63
- * Gets a History. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is
64
- * malformed - NOT_FOUND - if the History does not exist
65
- */
66
- await gapi.client.toolresults.projects.histories.get({
67
- historyId: "Test string",
68
- projectId: "Test string",
69
- });
70
- /**
71
- * Lists Histories for a given Project. The histories are sorted by modification time in descending order. The history_id key will be used to order the history with the same modification
72
- * time. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed -
73
- * NOT_FOUND - if the History does not exist
74
- */
75
- await gapi.client.toolresults.projects.histories.list({
76
- filterByName: "Test string",
77
- pageSize: 42,
78
- pageToken: "Test string",
79
- projectId: "Test string",
80
- });
81
- /**
82
- * Creates an Execution. The returned Execution will have the id set. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to
83
- * project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing History does not exist
84
- */
85
- await gapi.client.toolresults.projects.histories.executions.create({
86
- historyId: "Test string",
87
- projectId: "Test string",
88
- requestId: "Test string",
89
- }, {
90
- completionTime: {
91
- nanos: 42,
92
- seconds: "Test string",
93
- },
94
- creationTime: {
95
- nanos: 42,
96
- seconds: "Test string",
97
- },
98
- dimensionDefinitions: [
99
- {
100
- }
101
- ],
102
- executionId: "Test string",
103
- outcome: {
104
- failureDetail: {
105
- crashed: true,
106
- deviceOutOfMemory: true,
107
- failedRoboscript: true,
108
- notInstalled: true,
109
- otherNativeCrash: true,
110
- timedOut: true,
111
- unableToCrawl: true,
112
- },
113
- inconclusiveDetail: {
114
- abortedByUser: true,
115
- hasErrorLogs: true,
116
- infrastructureFailure: true,
117
- },
118
- skippedDetail: {
119
- incompatibleAppVersion: true,
120
- incompatibleArchitecture: true,
121
- incompatibleDevice: true,
122
- },
123
- successDetail: {
124
- otherNativeCrash: true,
125
- },
126
- summary: "Test string",
127
- },
128
- specification: {
129
- androidTest: {
130
- androidAppInfo: {
131
- name: "Test string",
132
- packageName: "Test string",
133
- versionCode: "Test string",
134
- versionName: "Test string",
135
- },
136
- androidInstrumentationTest: {
137
- testPackageId: "Test string",
138
- testRunnerClass: "Test string",
139
- testTargets: [
140
- "Test string"
141
- ],
142
- useOrchestrator: true,
143
- },
144
- androidRoboTest: {
145
- appInitialActivity: "Test string",
146
- bootstrapPackageId: "Test string",
147
- bootstrapRunnerClass: "Test string",
148
- maxDepth: 42,
149
- maxSteps: 42,
150
- },
151
- androidTestLoop: {
152
- },
153
- testTimeout: {
154
- nanos: 42,
155
- seconds: "Test string",
156
- },
157
- },
158
- iosTest: {
159
- iosAppInfo: {
160
- name: "Test string",
161
- },
162
- iosRoboTest: {
163
- },
164
- iosTestLoop: {
165
- bundleId: "Test string",
166
- },
167
- iosXcTest: {
168
- bundleId: "Test string",
169
- xcodeVersion: "Test string",
170
- },
171
- testTimeout: {
172
- nanos: 42,
173
- seconds: "Test string",
174
- },
175
- },
176
- },
177
- state: "Test string",
178
- testExecutionMatrixId: "Test string",
179
- });
180
- /**
181
- * Gets an Execution. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is
182
- * malformed - NOT_FOUND - if the Execution does not exist
183
- */
184
- await gapi.client.toolresults.projects.histories.executions.get({
185
- executionId: "Test string",
186
- historyId: "Test string",
187
- projectId: "Test string",
188
- });
189
- /**
190
- * Lists Executions for a given History. The executions are sorted by creation_time in descending order. The execution_id key will be used to order the executions with the same
191
- * creation_time. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is
192
- * malformed - NOT_FOUND - if the containing History does not exist
193
- */
194
- await gapi.client.toolresults.projects.histories.executions.list({
195
- historyId: "Test string",
196
- pageSize: 42,
197
- pageToken: "Test string",
198
- projectId: "Test string",
199
- });
200
- /**
201
- * Updates an existing Execution with the supplied partial entity. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to
202
- * project - INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if the requested state transition is illegal - NOT_FOUND - if the containing History does not exist
203
- */
204
- await gapi.client.toolresults.projects.histories.executions.patch({
205
- executionId: "Test string",
206
- historyId: "Test string",
207
- projectId: "Test string",
208
- requestId: "Test string",
209
- }, {
210
- completionTime: {
211
- nanos: 42,
212
- seconds: "Test string",
213
- },
214
- creationTime: {
215
- nanos: 42,
216
- seconds: "Test string",
217
- },
218
- dimensionDefinitions: [
219
- {
220
- }
221
- ],
222
- executionId: "Test string",
223
- outcome: {
224
- failureDetail: {
225
- crashed: true,
226
- deviceOutOfMemory: true,
227
- failedRoboscript: true,
228
- notInstalled: true,
229
- otherNativeCrash: true,
230
- timedOut: true,
231
- unableToCrawl: true,
232
- },
233
- inconclusiveDetail: {
234
- abortedByUser: true,
235
- hasErrorLogs: true,
236
- infrastructureFailure: true,
237
- },
238
- skippedDetail: {
239
- incompatibleAppVersion: true,
240
- incompatibleArchitecture: true,
241
- incompatibleDevice: true,
242
- },
243
- successDetail: {
244
- otherNativeCrash: true,
245
- },
246
- summary: "Test string",
247
- },
248
- specification: {
249
- androidTest: {
250
- androidAppInfo: {
251
- name: "Test string",
252
- packageName: "Test string",
253
- versionCode: "Test string",
254
- versionName: "Test string",
255
- },
256
- androidInstrumentationTest: {
257
- testPackageId: "Test string",
258
- testRunnerClass: "Test string",
259
- testTargets: [
260
- "Test string"
261
- ],
262
- useOrchestrator: true,
263
- },
264
- androidRoboTest: {
265
- appInitialActivity: "Test string",
266
- bootstrapPackageId: "Test string",
267
- bootstrapRunnerClass: "Test string",
268
- maxDepth: 42,
269
- maxSteps: 42,
270
- },
271
- androidTestLoop: {
272
- },
273
- testTimeout: {
274
- nanos: 42,
275
- seconds: "Test string",
276
- },
277
- },
278
- iosTest: {
279
- iosAppInfo: {
280
- name: "Test string",
281
- },
282
- iosRoboTest: {
283
- },
284
- iosTestLoop: {
285
- bundleId: "Test string",
286
- },
287
- iosXcTest: {
288
- bundleId: "Test string",
289
- xcodeVersion: "Test string",
290
- },
291
- testTimeout: {
292
- nanos: 42,
293
- seconds: "Test string",
294
- },
295
- },
296
- },
297
- state: "Test string",
298
- testExecutionMatrixId: "Test string",
299
- });
300
- /** Retrieves a single screenshot cluster by its ID */
301
- await gapi.client.toolresults.projects.histories.executions.clusters.get({
302
- clusterId: "Test string",
303
- executionId: "Test string",
304
- historyId: "Test string",
305
- projectId: "Test string",
306
- });
307
- /**
308
- * Lists Screenshot Clusters Returns the list of screenshot clusters corresponding to an execution. Screenshot clusters are created after the execution is finished. Clusters are created
309
- * from a set of screenshots. Between any two screenshots, a matching score is calculated based off their metadata that determines how similar they are. Screenshots are placed in the
310
- * cluster that has screens which have the highest matching scores.
311
- */
312
- await gapi.client.toolresults.projects.histories.executions.clusters.list({
313
- executionId: "Test string",
314
- historyId: "Test string",
315
- projectId: "Test string",
316
- });
317
- /**
318
- * Gets an Environment. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is
319
- * malformed - NOT_FOUND - if the Environment does not exist
320
- */
321
- await gapi.client.toolresults.projects.histories.executions.environments.get({
322
- environmentId: "Test string",
323
- executionId: "Test string",
324
- historyId: "Test string",
325
- projectId: "Test string",
326
- });
327
- /**
328
- * Lists Environments for a given Execution. The Environments are sorted by display name. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not
329
- * authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing Execution does not exist
330
- */
331
- await gapi.client.toolresults.projects.histories.executions.environments.list({
332
- executionId: "Test string",
333
- historyId: "Test string",
334
- pageSize: 42,
335
- pageToken: "Test string",
336
- projectId: "Test string",
337
- });
338
- /**
339
- * Lists accessibility clusters for a given Step May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project -
340
- * INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if an argument in the request happens to be invalid; e.g. if the locale format is incorrect - NOT_FOUND - if the
341
- * containing Step does not exist
342
- */
343
- await gapi.client.toolresults.projects.histories.executions.steps.accessibilityClusters({
344
- locale: "Test string",
345
- name: "Test string",
346
- });
347
- /**
348
- * Creates a Step. The returned Step will have the id set. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project -
349
- * INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if the step is too large (more than 10Mib) - NOT_FOUND - if the containing Execution does not exist
350
- */
351
- await gapi.client.toolresults.projects.histories.executions.steps.create({
352
- executionId: "Test string",
353
- historyId: "Test string",
354
- projectId: "Test string",
355
- requestId: "Test string",
356
- }, {
357
- completionTime: {
358
- nanos: 42,
359
- seconds: "Test string",
360
- },
361
- creationTime: {
362
- nanos: 42,
363
- seconds: "Test string",
364
- },
365
- description: "Test string",
366
- deviceUsageDuration: {
367
- nanos: 42,
368
- seconds: "Test string",
369
- },
370
- dimensionValue: [
371
- {
372
- key: "Test string",
373
- value: "Test string",
374
- }
375
- ],
376
- hasImages: true,
377
- labels: [
378
- {
379
- key: "Test string",
380
- value: "Test string",
381
- }
382
- ],
383
- multiStep: {
384
- multistepNumber: 42,
385
- primaryStep: {
386
- individualOutcome: [
387
- {
388
- multistepNumber: 42,
389
- outcomeSummary: "Test string",
390
- runDuration: {
391
- nanos: 42,
392
- seconds: "Test string",
393
- },
394
- stepId: "Test string",
395
- }
396
- ],
397
- rollUp: "Test string",
398
- },
399
- primaryStepId: "Test string",
400
- },
401
- name: "Test string",
402
- outcome: {
403
- failureDetail: {
404
- crashed: true,
405
- deviceOutOfMemory: true,
406
- failedRoboscript: true,
407
- notInstalled: true,
408
- otherNativeCrash: true,
409
- timedOut: true,
410
- unableToCrawl: true,
411
- },
412
- inconclusiveDetail: {
413
- abortedByUser: true,
414
- hasErrorLogs: true,
415
- infrastructureFailure: true,
416
- },
417
- skippedDetail: {
418
- incompatibleAppVersion: true,
419
- incompatibleArchitecture: true,
420
- incompatibleDevice: true,
421
- },
422
- successDetail: {
423
- otherNativeCrash: true,
424
- },
425
- summary: "Test string",
426
- },
427
- runDuration: {
428
- nanos: 42,
429
- seconds: "Test string",
430
- },
431
- state: "Test string",
432
- stepId: "Test string",
433
- testExecutionStep: {
434
- testIssues: [
435
- {
436
- category: "Test string",
437
- errorMessage: "Test string",
438
- severity: "Test string",
439
- stackTrace: {
440
- exception: "Test string",
441
- },
442
- type: "Test string",
443
- warning: {
444
- typeUrl: "Test string",
445
- value: "Test string",
446
- },
447
- }
448
- ],
449
- testSuiteOverviews: [
450
- {
451
- elapsedTime: {
452
- nanos: 42,
453
- seconds: "Test string",
454
- },
455
- errorCount: 42,
456
- failureCount: 42,
457
- flakyCount: 42,
458
- name: "Test string",
459
- skippedCount: 42,
460
- totalCount: 42,
461
- xmlSource: {
462
- fileUri: "Test string",
463
- },
464
- }
465
- ],
466
- testTiming: {
467
- testProcessDuration: {
468
- nanos: 42,
469
- seconds: "Test string",
470
- },
471
- },
472
- toolExecution: {
473
- commandLineArguments: [
474
- "Test string"
475
- ],
476
- exitCode: {
477
- number: 42,
478
- },
479
- toolLogs: [
480
- {
481
- fileUri: "Test string",
482
- }
483
- ],
484
- toolOutputs: [
485
- {
486
- creationTime: {
487
- nanos: 42,
488
- seconds: "Test string",
489
- },
490
- output: {
491
- fileUri: "Test string",
492
- },
493
- testCase: {
494
- className: "Test string",
495
- name: "Test string",
496
- testSuiteName: "Test string",
497
- },
498
- }
499
- ],
500
- },
501
- },
502
- toolExecutionStep: {
503
- toolExecution: {
504
- commandLineArguments: [
505
- "Test string"
506
- ],
507
- exitCode: {
508
- number: 42,
509
- },
510
- toolLogs: [
511
- {
512
- fileUri: "Test string",
513
- }
514
- ],
515
- toolOutputs: [
516
- {
517
- creationTime: {
518
- nanos: 42,
519
- seconds: "Test string",
520
- },
521
- output: {
522
- fileUri: "Test string",
523
- },
524
- testCase: {
525
- className: "Test string",
526
- name: "Test string",
527
- testSuiteName: "Test string",
528
- },
529
- }
530
- ],
531
- },
532
- },
533
- });
534
- /**
535
- * Gets a Step. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed
536
- * - NOT_FOUND - if the Step does not exist
537
- */
538
- await gapi.client.toolresults.projects.histories.executions.steps.get({
539
- executionId: "Test string",
540
- historyId: "Test string",
541
- projectId: "Test string",
542
- stepId: "Test string",
543
- });
544
- /** Retrieves a PerfMetricsSummary. May return any of the following error code(s): - NOT_FOUND - The specified PerfMetricsSummary does not exist */
545
- await gapi.client.toolresults.projects.histories.executions.steps.getPerfMetricsSummary({
546
- executionId: "Test string",
547
- historyId: "Test string",
548
- projectId: "Test string",
549
- stepId: "Test string",
550
- });
551
- /**
552
- * Lists Steps for a given Execution. The steps are sorted by creation_time in descending order. The step_id key will be used to order the steps with the same creation_time. May return any
553
- * of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if
554
- * an argument in the request happens to be invalid; e.g. if an attempt is made to list the children of a nonexistent Step - NOT_FOUND - if the containing Execution does not exist
555
- */
556
- await gapi.client.toolresults.projects.histories.executions.steps.list({
557
- executionId: "Test string",
558
- historyId: "Test string",
559
- pageSize: 42,
560
- pageToken: "Test string",
561
- projectId: "Test string",
562
- });
563
- /**
564
- * Updates an existing Step with the supplied partial entity. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write project -
565
- * INVALID_ARGUMENT - if the request is malformed - FAILED_PRECONDITION - if the requested state transition is illegal (e.g try to upload a duplicate xml file), if the updated step is too
566
- * large (more than 10Mib) - NOT_FOUND - if the containing Execution does not exist
567
- */
568
- await gapi.client.toolresults.projects.histories.executions.steps.patch({
569
- executionId: "Test string",
570
- historyId: "Test string",
571
- projectId: "Test string",
572
- requestId: "Test string",
573
- stepId: "Test string",
574
- }, {
575
- completionTime: {
576
- nanos: 42,
577
- seconds: "Test string",
578
- },
579
- creationTime: {
580
- nanos: 42,
581
- seconds: "Test string",
582
- },
583
- description: "Test string",
584
- deviceUsageDuration: {
585
- nanos: 42,
586
- seconds: "Test string",
587
- },
588
- dimensionValue: [
589
- {
590
- key: "Test string",
591
- value: "Test string",
592
- }
593
- ],
594
- hasImages: true,
595
- labels: [
596
- {
597
- key: "Test string",
598
- value: "Test string",
599
- }
600
- ],
601
- multiStep: {
602
- multistepNumber: 42,
603
- primaryStep: {
604
- individualOutcome: [
605
- {
606
- multistepNumber: 42,
607
- outcomeSummary: "Test string",
608
- runDuration: {
609
- nanos: 42,
610
- seconds: "Test string",
611
- },
612
- stepId: "Test string",
613
- }
614
- ],
615
- rollUp: "Test string",
616
- },
617
- primaryStepId: "Test string",
618
- },
619
- name: "Test string",
620
- outcome: {
621
- failureDetail: {
622
- crashed: true,
623
- deviceOutOfMemory: true,
624
- failedRoboscript: true,
625
- notInstalled: true,
626
- otherNativeCrash: true,
627
- timedOut: true,
628
- unableToCrawl: true,
629
- },
630
- inconclusiveDetail: {
631
- abortedByUser: true,
632
- hasErrorLogs: true,
633
- infrastructureFailure: true,
634
- },
635
- skippedDetail: {
636
- incompatibleAppVersion: true,
637
- incompatibleArchitecture: true,
638
- incompatibleDevice: true,
639
- },
640
- successDetail: {
641
- otherNativeCrash: true,
642
- },
643
- summary: "Test string",
644
- },
645
- runDuration: {
646
- nanos: 42,
647
- seconds: "Test string",
648
- },
649
- state: "Test string",
650
- stepId: "Test string",
651
- testExecutionStep: {
652
- testIssues: [
653
- {
654
- category: "Test string",
655
- errorMessage: "Test string",
656
- severity: "Test string",
657
- stackTrace: {
658
- exception: "Test string",
659
- },
660
- type: "Test string",
661
- warning: {
662
- typeUrl: "Test string",
663
- value: "Test string",
664
- },
665
- }
666
- ],
667
- testSuiteOverviews: [
668
- {
669
- elapsedTime: {
670
- nanos: 42,
671
- seconds: "Test string",
672
- },
673
- errorCount: 42,
674
- failureCount: 42,
675
- flakyCount: 42,
676
- name: "Test string",
677
- skippedCount: 42,
678
- totalCount: 42,
679
- xmlSource: {
680
- fileUri: "Test string",
681
- },
682
- }
683
- ],
684
- testTiming: {
685
- testProcessDuration: {
686
- nanos: 42,
687
- seconds: "Test string",
688
- },
689
- },
690
- toolExecution: {
691
- commandLineArguments: [
692
- "Test string"
693
- ],
694
- exitCode: {
695
- number: 42,
696
- },
697
- toolLogs: [
698
- {
699
- fileUri: "Test string",
700
- }
701
- ],
702
- toolOutputs: [
703
- {
704
- creationTime: {
705
- nanos: 42,
706
- seconds: "Test string",
707
- },
708
- output: {
709
- fileUri: "Test string",
710
- },
711
- testCase: {
712
- className: "Test string",
713
- name: "Test string",
714
- testSuiteName: "Test string",
715
- },
716
- }
717
- ],
718
- },
719
- },
720
- toolExecutionStep: {
721
- toolExecution: {
722
- commandLineArguments: [
723
- "Test string"
724
- ],
725
- exitCode: {
726
- number: 42,
727
- },
728
- toolLogs: [
729
- {
730
- fileUri: "Test string",
731
- }
732
- ],
733
- toolOutputs: [
734
- {
735
- creationTime: {
736
- nanos: 42,
737
- seconds: "Test string",
738
- },
739
- output: {
740
- fileUri: "Test string",
741
- },
742
- testCase: {
743
- className: "Test string",
744
- name: "Test string",
745
- testSuiteName: "Test string",
746
- },
747
- }
748
- ],
749
- },
750
- },
751
- });
752
- /**
753
- * Publish xml files to an existing Step. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write project - INVALID_ARGUMENT -
754
- * if the request is malformed - FAILED_PRECONDITION - if the requested state transition is illegal, e.g. try to upload a duplicate xml file or a file too large. - NOT_FOUND - if the
755
- * containing Execution does not exist
756
- */
757
- await gapi.client.toolresults.projects.histories.executions.steps.publishXunitXmlFiles({
758
- executionId: "Test string",
759
- historyId: "Test string",
760
- projectId: "Test string",
761
- stepId: "Test string",
762
- }, {
763
- xunitXmlFiles: [
764
- {
765
- fileUri: "Test string",
766
- }
767
- ],
768
- });
769
- /**
770
- * Creates a PerfMetricsSummary resource. Returns the existing one if it has already been created. May return any of the following error code(s): - NOT_FOUND - The containing Step does not
771
- * exist
772
- */
773
- await gapi.client.toolresults.projects.histories.executions.steps.perfMetricsSummary.create({
774
- executionId: "Test string",
775
- historyId: "Test string",
776
- projectId: "Test string",
777
- stepId: "Test string",
778
- }, {
779
- appStartTime: {
780
- fullyDrawnTime: {
781
- nanos: 42,
782
- seconds: "Test string",
783
- },
784
- initialDisplayTime: {
785
- nanos: 42,
786
- seconds: "Test string",
787
- },
788
- },
789
- executionId: "Test string",
790
- graphicsStats: {
791
- buckets: [
792
- {
793
- frameCount: "Test string",
794
- renderMillis: "Test string",
795
- }
796
- ],
797
- highInputLatencyCount: "Test string",
798
- jankyFrames: "Test string",
799
- missedVsyncCount: "Test string",
800
- p50Millis: "Test string",
801
- p90Millis: "Test string",
802
- p95Millis: "Test string",
803
- p99Millis: "Test string",
804
- slowBitmapUploadCount: "Test string",
805
- slowDrawCount: "Test string",
806
- slowUiThreadCount: "Test string",
807
- totalFrames: "Test string",
808
- },
809
- historyId: "Test string",
810
- perfEnvironment: {
811
- cpuInfo: {
812
- cpuProcessor: "Test string",
813
- cpuSpeedInGhz: 42,
814
- numberOfCores: 42,
815
- },
816
- memoryInfo: {
817
- memoryCapInKibibyte: "Test string",
818
- memoryTotalInKibibyte: "Test string",
819
- },
820
- },
821
- perfMetrics: [
822
- "Test string"
823
- ],
824
- projectId: "Test string",
825
- stepId: "Test string",
826
- });
827
- /**
828
- * Creates a PerfSampleSeries. May return any of the following error code(s): - ALREADY_EXISTS - PerfMetricSummary already exists for the given Step - NOT_FOUND - The containing Step does
829
- * not exist
830
- */
831
- await gapi.client.toolresults.projects.histories.executions.steps.perfSampleSeries.create({
832
- executionId: "Test string",
833
- historyId: "Test string",
834
- projectId: "Test string",
835
- stepId: "Test string",
836
- }, {
837
- basicPerfSampleSeries: {
838
- perfMetricType: "Test string",
839
- perfUnit: "Test string",
840
- sampleSeriesLabel: "Test string",
841
- },
842
- executionId: "Test string",
843
- historyId: "Test string",
844
- projectId: "Test string",
845
- sampleSeriesId: "Test string",
846
- stepId: "Test string",
847
- });
848
- /** Gets a PerfSampleSeries. May return any of the following error code(s): - NOT_FOUND - The specified PerfSampleSeries does not exist */
849
- await gapi.client.toolresults.projects.histories.executions.steps.perfSampleSeries.get({
850
- executionId: "Test string",
851
- historyId: "Test string",
852
- projectId: "Test string",
853
- sampleSeriesId: "Test string",
854
- stepId: "Test string",
855
- });
856
- /**
857
- * Lists PerfSampleSeries for a given Step. The request provides an optional filter which specifies one or more PerfMetricsType to include in the result; if none returns all. The resulting
858
- * PerfSampleSeries are sorted by ids. May return any of the following canonical error codes: - NOT_FOUND - The containing Step does not exist
859
- */
860
- await gapi.client.toolresults.projects.histories.executions.steps.perfSampleSeries.list({
861
- executionId: "Test string",
862
- filter: "Test string",
863
- historyId: "Test string",
864
- projectId: "Test string",
865
- stepId: "Test string",
866
- });
867
- /**
868
- * Creates a batch of PerfSamples - a client can submit multiple batches of Perf Samples through repeated calls to this method in order to split up a large request payload - duplicates and
869
- * existing timestamp entries will be ignored. - the batch operation may partially succeed - the set of elements successfully inserted is returned in the response (omits items which
870
- * already existed in the database). May return any of the following canonical error codes: - NOT_FOUND - The containing PerfSampleSeries does not exist
871
- */
872
- await gapi.client.toolresults.projects.histories.executions.steps.perfSampleSeries.samples.batchCreate({
873
- executionId: "Test string",
874
- historyId: "Test string",
875
- projectId: "Test string",
876
- sampleSeriesId: "Test string",
877
- stepId: "Test string",
878
- }, {
879
- perfSamples: [
880
- {
881
- sampleTime: {
882
- nanos: 42,
883
- seconds: "Test string",
884
- },
885
- value: 42,
886
- }
887
- ],
888
- });
889
- /**
890
- * Lists the Performance Samples of a given Sample Series - The list results are sorted by timestamps ascending - The default page size is 500 samples; and maximum size allowed 5000 - The
891
- * response token indicates the last returned PerfSample timestamp - When the results size exceeds the page size, submit a subsequent request including the page token to return the rest of
892
- * the samples up to the page limit May return any of the following canonical error codes: - OUT_OF_RANGE - The specified request page_token is out of valid range - NOT_FOUND - The
893
- * containing PerfSampleSeries does not exist
894
- */
895
- await gapi.client.toolresults.projects.histories.executions.steps.perfSampleSeries.samples.list({
896
- executionId: "Test string",
897
- historyId: "Test string",
898
- pageSize: 42,
899
- pageToken: "Test string",
900
- projectId: "Test string",
901
- sampleSeriesId: "Test string",
902
- stepId: "Test string",
903
- });
904
- /**
905
- * Gets details of a Test Case for a Step. Experimental test cases API. Still in active development. May return any of the following canonical error codes: - PERMISSION_DENIED - if the
906
- * user is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing Test Case does not exist
907
- */
908
- await gapi.client.toolresults.projects.histories.executions.steps.testCases.get({
909
- executionId: "Test string",
910
- historyId: "Test string",
911
- projectId: "Test string",
912
- stepId: "Test string",
913
- testCaseId: "Test string",
914
- });
915
- /**
916
- * Lists Test Cases attached to a Step. Experimental test cases API. Still in active development. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user
917
- * is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing Step does not exist
918
- */
919
- await gapi.client.toolresults.projects.histories.executions.steps.testCases.list({
920
- executionId: "Test string",
921
- historyId: "Test string",
922
- pageSize: 42,
923
- pageToken: "Test string",
924
- projectId: "Test string",
925
- stepId: "Test string",
926
- });
927
- /**
928
- * Lists thumbnails of images attached to a step. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to read from the project, or
929
- * from any of the images - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the step does not exist, or if any of the images do not exist
930
- */
931
- await gapi.client.toolresults.projects.histories.executions.steps.thumbnails.list({
932
- executionId: "Test string",
933
- historyId: "Test string",
934
- pageSize: 42,
935
- pageToken: "Test string",
936
- projectId: "Test string",
937
- stepId: "Test string",
938
- });
939
- }
940
- });