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

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

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis_beta.toolresults.v1beta3firstparty; 3 library googleapis_beta.toolresults.v1beta3firstparty;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 downloadOptions: _downloadOptions); 346 downloadOptions: _downloadOptions);
347 return _response.then((data) => new ListHistoriesResponse.fromJson(data)); 347 return _response.then((data) => new ListHistoriesResponse.fromJson(data));
348 } 348 }
349 349
350 } 350 }
351 351
352 352
353 class ProjectsHistoriesExecutionsResourceApi { 353 class ProjectsHistoriesExecutionsResourceApi {
354 final commons.ApiRequester _requester; 354 final commons.ApiRequester _requester;
355 355
356 ProjectsHistoriesExecutionsClustersResourceApi get clusters => new ProjectsHis toriesExecutionsClustersResourceApi(_requester);
356 ProjectsHistoriesExecutionsStepsResourceApi get steps => new ProjectsHistories ExecutionsStepsResourceApi(_requester); 357 ProjectsHistoriesExecutionsStepsResourceApi get steps => new ProjectsHistories ExecutionsStepsResourceApi(_requester);
357 358
358 ProjectsHistoriesExecutionsResourceApi(commons.ApiRequester client) : 359 ProjectsHistoriesExecutionsResourceApi(commons.ApiRequester client) :
359 _requester = client; 360 _requester = client;
360 361
361 /** 362 /**
362 * Creates an Execution. 363 * Creates an Execution.
363 * 364 *
364 * The returned Execution will have the id set. 365 * The returned Execution will have the id set.
365 * 366 *
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 queryParams: _queryParams, 629 queryParams: _queryParams,
629 uploadOptions: _uploadOptions, 630 uploadOptions: _uploadOptions,
630 uploadMedia: _uploadMedia, 631 uploadMedia: _uploadMedia,
631 downloadOptions: _downloadOptions); 632 downloadOptions: _downloadOptions);
632 return _response.then((data) => new Execution.fromJson(data)); 633 return _response.then((data) => new Execution.fromJson(data));
633 } 634 }
634 635
635 } 636 }
636 637
637 638
639 class ProjectsHistoriesExecutionsClustersResourceApi {
640 final commons.ApiRequester _requester;
641
642 ProjectsHistoriesExecutionsClustersResourceApi(commons.ApiRequester client) :
643 _requester = client;
644
645 /**
646 * Lists Screenshot Clusters
647 *
648 * Returns the list of screenshot clusters corresponding to an execution.
649 * Screenshot clusters are created after the execution is finished. Clusters
650 * are created from a set of screenshots. Between any two screenshots, a
651 * matching score is calculated based off their metadata that determines how
652 * similar they are. Screenshots are placed in the cluster that has screens
653 * which have the highest matching scores.
654 *
655 * Request parameters:
656 *
657 * [projectId] - A Project id.
658 *
659 * Required.
660 *
661 * [historyId] - A History id.
662 *
663 * Required.
664 *
665 * [executionId] - An Execution id.
666 *
667 * Required.
668 *
669 * Completes with a [ListScreenshotClustersResponse].
670 *
671 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
672 * error.
673 *
674 * If the used [http.Client] completes with an error when making a REST call,
675 * this method will complete with the same error.
676 */
677 async.Future<ListScreenshotClustersResponse> list(core.String projectId, core. String historyId, core.String executionId) {
678 var _url = null;
679 var _queryParams = new core.Map();
680 var _uploadMedia = null;
681 var _uploadOptions = null;
682 var _downloadOptions = commons.DownloadOptions.Metadata;
683 var _body = null;
684
685 if (projectId == null) {
686 throw new core.ArgumentError("Parameter projectId is required.");
687 }
688 if (historyId == null) {
689 throw new core.ArgumentError("Parameter historyId is required.");
690 }
691 if (executionId == null) {
692 throw new core.ArgumentError("Parameter executionId is required.");
693 }
694
695 _url = commons.Escaper.ecapeVariable('$projectId') + '/histories/' + commons .Escaper.ecapeVariable('$historyId') + '/executions/' + commons.Escaper.ecapeVar iable('$executionId') + '/clusters';
696
697 var _response = _requester.request(_url,
698 "GET",
699 body: _body,
700 queryParams: _queryParams,
701 uploadOptions: _uploadOptions,
702 uploadMedia: _uploadMedia,
703 downloadOptions: _downloadOptions);
704 return _response.then((data) => new ListScreenshotClustersResponse.fromJson( data));
705 }
706
707 }
708
709
638 class ProjectsHistoriesExecutionsStepsResourceApi { 710 class ProjectsHistoriesExecutionsStepsResourceApi {
639 final commons.ApiRequester _requester; 711 final commons.ApiRequester _requester;
640 712
641 ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi get perfMetricsS ummary => new ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi(_req uester); 713 ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi get perfMetricsS ummary => new ProjectsHistoriesExecutionsStepsPerfMetricsSummaryResourceApi(_req uester);
642 ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi get perfSampleSeri es => new ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi(_requester ); 714 ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi get perfSampleSeri es => new ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi(_requester );
643 ProjectsHistoriesExecutionsStepsThumbnailsResourceApi get thumbnails => new Pr ojectsHistoriesExecutionsStepsThumbnailsResourceApi(_requester); 715 ProjectsHistoriesExecutionsStepsThumbnailsResourceApi get thumbnails => new Pr ojectsHistoriesExecutionsStepsThumbnailsResourceApi(_requester);
644 716
645 ProjectsHistoriesExecutionsStepsResourceApi(commons.ApiRequester client) : 717 ProjectsHistoriesExecutionsStepsResourceApi(commons.ApiRequester client) :
646 _requester = client; 718 _requester = client;
647 719
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 uploadOptions: _uploadOptions, 1687 uploadOptions: _uploadOptions,
1616 uploadMedia: _uploadMedia, 1688 uploadMedia: _uploadMedia,
1617 downloadOptions: _downloadOptions); 1689 downloadOptions: _downloadOptions);
1618 return _response.then((data) => new ListStepThumbnailsResponse.fromJson(data )); 1690 return _response.then((data) => new ListStepThumbnailsResponse.fromJson(data ));
1619 } 1691 }
1620 1692
1621 } 1693 }
1622 1694
1623 1695
1624 1696
1697 /** Android app information. */
1698 class AndroidAppInfo {
1699 /** The name of the app. Optional */
1700 core.String name;
1701 /** The package name of the app. Required. */
1702 core.String packageName;
1703 /** The internal version code of the app. Optional. */
1704 core.String versionCode;
1705 /** The version name of the app. Optional. */
1706 core.String versionName;
1707
1708 AndroidAppInfo();
1709
1710 AndroidAppInfo.fromJson(core.Map _json) {
1711 if (_json.containsKey("name")) {
1712 name = _json["name"];
1713 }
1714 if (_json.containsKey("packageName")) {
1715 packageName = _json["packageName"];
1716 }
1717 if (_json.containsKey("versionCode")) {
1718 versionCode = _json["versionCode"];
1719 }
1720 if (_json.containsKey("versionName")) {
1721 versionName = _json["versionName"];
1722 }
1723 }
1724
1725 core.Map<core.String, core.Object> toJson() {
1726 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1727 if (name != null) {
1728 _json["name"] = name;
1729 }
1730 if (packageName != null) {
1731 _json["packageName"] = packageName;
1732 }
1733 if (versionCode != null) {
1734 _json["versionCode"] = versionCode;
1735 }
1736 if (versionName != null) {
1737 _json["versionName"] = versionName;
1738 }
1739 return _json;
1740 }
1741 }
1742
1743 /**
1744 * A test of an Android application that can control an Android component
1745 * independently of its normal lifecycle.
1746 *
1747 * See for more information on types of Android tests.
1748 */
1749 class AndroidInstrumentationTest {
1750 /** The java package for the test to be executed. Required */
1751 core.String testPackageId;
1752 /** The InstrumentationTestRunner class. Required */
1753 core.String testRunnerClass;
1754 /**
1755 * Each target must be fully qualified with the package name or class name, in
1756 * one of these formats: - "package package_name" - "class
1757 * package_name.class_name" - "class package_name.class_name#method_name"
1758 *
1759 * If empty, all targets in the module will be run.
1760 */
1761 core.List<core.String> testTargets;
1762 /**
1763 * The flag indicates whether Android Test Orchestrator will be used to run
1764 * test or not. Test orchestrator is used if either: - orchestrator_option
1765 * field is USE_ORCHESTRATOR, and test runner is compatible with orchestrator.
1766 * Or - orchestrator_option field is unspecified or
1767 * ORCHESTRATOR_OPTION_UNSPECIFIED, and test runner is compatible with
1768 * orchestrator.
1769 */
1770 core.bool useOrchestrator;
1771
1772 AndroidInstrumentationTest();
1773
1774 AndroidInstrumentationTest.fromJson(core.Map _json) {
1775 if (_json.containsKey("testPackageId")) {
1776 testPackageId = _json["testPackageId"];
1777 }
1778 if (_json.containsKey("testRunnerClass")) {
1779 testRunnerClass = _json["testRunnerClass"];
1780 }
1781 if (_json.containsKey("testTargets")) {
1782 testTargets = _json["testTargets"];
1783 }
1784 if (_json.containsKey("useOrchestrator")) {
1785 useOrchestrator = _json["useOrchestrator"];
1786 }
1787 }
1788
1789 core.Map<core.String, core.Object> toJson() {
1790 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1791 if (testPackageId != null) {
1792 _json["testPackageId"] = testPackageId;
1793 }
1794 if (testRunnerClass != null) {
1795 _json["testRunnerClass"] = testRunnerClass;
1796 }
1797 if (testTargets != null) {
1798 _json["testTargets"] = testTargets;
1799 }
1800 if (useOrchestrator != null) {
1801 _json["useOrchestrator"] = useOrchestrator;
1802 }
1803 return _json;
1804 }
1805 }
1806
1807 /**
1808 * A test of an android application that explores the application on a virtual
1809 * or physical Android device, finding culprits and crashes as it goes.
1810 */
1811 class AndroidRoboTest {
1812 /** The initial activity that should be used to start the app. Optional */
1813 core.String appInitialActivity;
1814 /** The java package for the bootstrap. Optional */
1815 core.String bootstrapPackageId;
1816 /** The runner class for the bootstrap. Optional */
1817 core.String bootstrapRunnerClass;
1818 /** The max depth of the traversal stack Robo can explore. Optional */
1819 core.int maxDepth;
1820 /**
1821 * The max number of steps/actions Robo can execute. Default is no limit (0).
1822 * Optional
1823 */
1824 core.int maxSteps;
1825
1826 AndroidRoboTest();
1827
1828 AndroidRoboTest.fromJson(core.Map _json) {
1829 if (_json.containsKey("appInitialActivity")) {
1830 appInitialActivity = _json["appInitialActivity"];
1831 }
1832 if (_json.containsKey("bootstrapPackageId")) {
1833 bootstrapPackageId = _json["bootstrapPackageId"];
1834 }
1835 if (_json.containsKey("bootstrapRunnerClass")) {
1836 bootstrapRunnerClass = _json["bootstrapRunnerClass"];
1837 }
1838 if (_json.containsKey("maxDepth")) {
1839 maxDepth = _json["maxDepth"];
1840 }
1841 if (_json.containsKey("maxSteps")) {
1842 maxSteps = _json["maxSteps"];
1843 }
1844 }
1845
1846 core.Map<core.String, core.Object> toJson() {
1847 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1848 if (appInitialActivity != null) {
1849 _json["appInitialActivity"] = appInitialActivity;
1850 }
1851 if (bootstrapPackageId != null) {
1852 _json["bootstrapPackageId"] = bootstrapPackageId;
1853 }
1854 if (bootstrapRunnerClass != null) {
1855 _json["bootstrapRunnerClass"] = bootstrapRunnerClass;
1856 }
1857 if (maxDepth != null) {
1858 _json["maxDepth"] = maxDepth;
1859 }
1860 if (maxSteps != null) {
1861 _json["maxSteps"] = maxSteps;
1862 }
1863 return _json;
1864 }
1865 }
1866
1867 /** An Android mobile test specification. */
1868 class AndroidTest {
1869 /** Infomation about the application under test. */
1870 AndroidAppInfo androidAppInfo;
1871 /** An Android instrumentation test. */
1872 AndroidInstrumentationTest androidInstrumentationTest;
1873 /** An Android robo test. */
1874 AndroidRoboTest androidRoboTest;
1875 /**
1876 * Max time a test is allowed to run before it is automatically cancelled.
1877 */
1878 Duration testTimeout;
1879
1880 AndroidTest();
1881
1882 AndroidTest.fromJson(core.Map _json) {
1883 if (_json.containsKey("androidAppInfo")) {
1884 androidAppInfo = new AndroidAppInfo.fromJson(_json["androidAppInfo"]);
1885 }
1886 if (_json.containsKey("androidInstrumentationTest")) {
1887 androidInstrumentationTest = new AndroidInstrumentationTest.fromJson(_json ["androidInstrumentationTest"]);
1888 }
1889 if (_json.containsKey("androidRoboTest")) {
1890 androidRoboTest = new AndroidRoboTest.fromJson(_json["androidRoboTest"]);
1891 }
1892 if (_json.containsKey("testTimeout")) {
1893 testTimeout = new Duration.fromJson(_json["testTimeout"]);
1894 }
1895 }
1896
1897 core.Map<core.String, core.Object> toJson() {
1898 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1899 if (androidAppInfo != null) {
1900 _json["androidAppInfo"] = (androidAppInfo).toJson();
1901 }
1902 if (androidInstrumentationTest != null) {
1903 _json["androidInstrumentationTest"] = (androidInstrumentationTest).toJson( );
1904 }
1905 if (androidRoboTest != null) {
1906 _json["androidRoboTest"] = (androidRoboTest).toJson();
1907 }
1908 if (testTimeout != null) {
1909 _json["testTimeout"] = (testTimeout).toJson();
1910 }
1911 return _json;
1912 }
1913 }
1914
1625 /** 1915 /**
1626 * `Any` contains an arbitrary serialized protocol buffer message along with a 1916 * `Any` contains an arbitrary serialized protocol buffer message along with a
1627 * URL that describes the type of the serialized message. 1917 * URL that describes the type of the serialized message.
1628 * 1918 *
1629 * Protobuf library provides support to pack/unpack Any values in the form of 1919 * Protobuf library provides support to pack/unpack Any values in the form of
1630 * utility functions or additional generated methods of the Any type. 1920 * utility functions or additional generated methods of the Any type.
1631 * 1921 *
1632 * Example 1: Pack and unpack a message in C++. 1922 * Example 1: Pack and unpack a message in C++.
1633 * 1923 *
1634 * Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ... 1924 * Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ...
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
2049 */ 2339 */
2050 core.String executionId; 2340 core.String executionId;
2051 /** 2341 /**
2052 * Classify the result, for example into SUCCESS or FAILURE 2342 * Classify the result, for example into SUCCESS or FAILURE
2053 * 2343 *
2054 * - In response: present if set by create/update request - In create/update 2344 * - In response: present if set by create/update request - In create/update
2055 * request: optional 2345 * request: optional
2056 */ 2346 */
2057 Outcome outcome; 2347 Outcome outcome;
2058 /** 2348 /**
2349 * Lightweight information about execution request.
2350 *
2351 * - In response: present if set by create - In create: optional - In update:
2352 * optional
2353 */
2354 Specification specification;
2355 /**
2059 * The initial state is IN_PROGRESS. 2356 * The initial state is IN_PROGRESS.
2060 * 2357 *
2061 * The only legal state transitions is from IN_PROGRESS to COMPLETE. 2358 * The only legal state transitions is from IN_PROGRESS to COMPLETE.
2062 * 2359 *
2063 * A PRECONDITION_FAILED will be returned if an invalid transition is 2360 * A PRECONDITION_FAILED will be returned if an invalid transition is
2064 * requested. 2361 * requested.
2065 * 2362 *
2066 * The state can only be set to COMPLETE once. A FAILED_PRECONDITION will be 2363 * The state can only be set to COMPLETE once. A FAILED_PRECONDITION will be
2067 * returned if the state is set to COMPLETE multiple times. 2364 * returned if the state is set to COMPLETE multiple times.
2068 * 2365 *
(...skipping 25 matching lines...) Expand all
2094 } 2391 }
2095 if (_json.containsKey("creationTime")) { 2392 if (_json.containsKey("creationTime")) {
2096 creationTime = new Timestamp.fromJson(_json["creationTime"]); 2393 creationTime = new Timestamp.fromJson(_json["creationTime"]);
2097 } 2394 }
2098 if (_json.containsKey("executionId")) { 2395 if (_json.containsKey("executionId")) {
2099 executionId = _json["executionId"]; 2396 executionId = _json["executionId"];
2100 } 2397 }
2101 if (_json.containsKey("outcome")) { 2398 if (_json.containsKey("outcome")) {
2102 outcome = new Outcome.fromJson(_json["outcome"]); 2399 outcome = new Outcome.fromJson(_json["outcome"]);
2103 } 2400 }
2401 if (_json.containsKey("specification")) {
2402 specification = new Specification.fromJson(_json["specification"]);
2403 }
2104 if (_json.containsKey("state")) { 2404 if (_json.containsKey("state")) {
2105 state = _json["state"]; 2405 state = _json["state"];
2106 } 2406 }
2107 if (_json.containsKey("testExecutionMatrixId")) { 2407 if (_json.containsKey("testExecutionMatrixId")) {
2108 testExecutionMatrixId = _json["testExecutionMatrixId"]; 2408 testExecutionMatrixId = _json["testExecutionMatrixId"];
2109 } 2409 }
2110 } 2410 }
2111 2411
2112 core.Map<core.String, core.Object> toJson() { 2412 core.Map<core.String, core.Object> toJson() {
2113 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2413 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2114 if (completionTime != null) { 2414 if (completionTime != null) {
2115 _json["completionTime"] = (completionTime).toJson(); 2415 _json["completionTime"] = (completionTime).toJson();
2116 } 2416 }
2117 if (creationTime != null) { 2417 if (creationTime != null) {
2118 _json["creationTime"] = (creationTime).toJson(); 2418 _json["creationTime"] = (creationTime).toJson();
2119 } 2419 }
2120 if (executionId != null) { 2420 if (executionId != null) {
2121 _json["executionId"] = executionId; 2421 _json["executionId"] = executionId;
2122 } 2422 }
2123 if (outcome != null) { 2423 if (outcome != null) {
2124 _json["outcome"] = (outcome).toJson(); 2424 _json["outcome"] = (outcome).toJson();
2125 } 2425 }
2426 if (specification != null) {
2427 _json["specification"] = (specification).toJson();
2428 }
2126 if (state != null) { 2429 if (state != null) {
2127 _json["state"] = state; 2430 _json["state"] = state;
2128 } 2431 }
2129 if (testExecutionMatrixId != null) { 2432 if (testExecutionMatrixId != null) {
2130 _json["testExecutionMatrixId"] = testExecutionMatrixId; 2433 _json["testExecutionMatrixId"] = testExecutionMatrixId;
2131 } 2434 }
2132 return _json; 2435 return _json;
2133 } 2436 }
2134 } 2437 }
2135 2438
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
2504 if (nextPageToken != null) { 2807 if (nextPageToken != null) {
2505 _json["nextPageToken"] = nextPageToken; 2808 _json["nextPageToken"] = nextPageToken;
2506 } 2809 }
2507 if (perfSamples != null) { 2810 if (perfSamples != null) {
2508 _json["perfSamples"] = perfSamples.map((value) => (value).toJson()).toList (); 2811 _json["perfSamples"] = perfSamples.map((value) => (value).toJson()).toList ();
2509 } 2812 }
2510 return _json; 2813 return _json;
2511 } 2814 }
2512 } 2815 }
2513 2816
2817 class ListScreenshotClustersResponse {
2818 /** The set of clustres associated with an execution Always set */
2819 core.List<ScreenshotCluster> clusters;
2820
2821 ListScreenshotClustersResponse();
2822
2823 ListScreenshotClustersResponse.fromJson(core.Map _json) {
2824 if (_json.containsKey("clusters")) {
2825 clusters = _json["clusters"].map((value) => new ScreenshotCluster.fromJson (value)).toList();
2826 }
2827 }
2828
2829 core.Map<core.String, core.Object> toJson() {
2830 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2831 if (clusters != null) {
2832 _json["clusters"] = clusters.map((value) => (value).toJson()).toList();
2833 }
2834 return _json;
2835 }
2836 }
2837
2514 /** A response containing the thumbnails in a step. */ 2838 /** A response containing the thumbnails in a step. */
2515 class ListStepThumbnailsResponse { 2839 class ListStepThumbnailsResponse {
2516 /** 2840 /**
2517 * A continuation token to resume the query at the next item. 2841 * A continuation token to resume the query at the next item.
2518 * 2842 *
2519 * If set, indicates that there are more thumbnails to read, by calling list 2843 * If set, indicates that there are more thumbnails to read, by calling list
2520 * again with this value in the page_token field. 2844 * again with this value in the page_token field.
2521 */ 2845 */
2522 core.String nextPageToken; 2846 core.String nextPageToken;
2523 /** 2847 /**
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
2969 3293
2970 core.Map<core.String, core.Object> toJson() { 3294 core.Map<core.String, core.Object> toJson() {
2971 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3295 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2972 if (xunitXmlFiles != null) { 3296 if (xunitXmlFiles != null) {
2973 _json["xunitXmlFiles"] = xunitXmlFiles.map((value) => (value).toJson()).to List(); 3297 _json["xunitXmlFiles"] = xunitXmlFiles.map((value) => (value).toJson()).to List();
2974 } 3298 }
2975 return _json; 3299 return _json;
2976 } 3300 }
2977 } 3301 }
2978 3302
3303 class Screen {
3304 /** File reference of the png file. Required. */
3305 core.String fileReference;
3306 /** Locale of the device that the screenshot was taken on. Required. */
3307 core.String locale;
3308 /** Model of the device that the screenshot was taken on. Required. */
3309 core.String model;
3310 /** OS version of the device that the screenshot was taken on. Required. */
3311 core.String version;
3312
3313 Screen();
3314
3315 Screen.fromJson(core.Map _json) {
3316 if (_json.containsKey("fileReference")) {
3317 fileReference = _json["fileReference"];
3318 }
3319 if (_json.containsKey("locale")) {
3320 locale = _json["locale"];
3321 }
3322 if (_json.containsKey("model")) {
3323 model = _json["model"];
3324 }
3325 if (_json.containsKey("version")) {
3326 version = _json["version"];
3327 }
3328 }
3329
3330 core.Map<core.String, core.Object> toJson() {
3331 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3332 if (fileReference != null) {
3333 _json["fileReference"] = fileReference;
3334 }
3335 if (locale != null) {
3336 _json["locale"] = locale;
3337 }
3338 if (model != null) {
3339 _json["model"] = model;
3340 }
3341 if (version != null) {
3342 _json["version"] = version;
3343 }
3344 return _json;
3345 }
3346 }
3347
3348 class ScreenshotCluster {
3349 /** A string that describes the activity of every screen in the cluster. */
3350 core.String activity;
3351 /** A unique identifier for the cluster. */
3352 core.String clusterId;
3353 /**
3354 * A singular screen that represents the cluster as a whole. This screen will
3355 * act as the "cover" of the entire cluster. When users look at the clusters,
3356 * only the key screen from each cluster will be shown. Which screen is the
3357 * key screen is determined by the ClusteringAlgorithm
3358 */
3359 Screen keyScreen;
3360 /** Full list of screens. */
3361 core.List<Screen> screens;
3362
3363 ScreenshotCluster();
3364
3365 ScreenshotCluster.fromJson(core.Map _json) {
3366 if (_json.containsKey("activity")) {
3367 activity = _json["activity"];
3368 }
3369 if (_json.containsKey("clusterId")) {
3370 clusterId = _json["clusterId"];
3371 }
3372 if (_json.containsKey("keyScreen")) {
3373 keyScreen = new Screen.fromJson(_json["keyScreen"]);
3374 }
3375 if (_json.containsKey("screens")) {
3376 screens = _json["screens"].map((value) => new Screen.fromJson(value)).toLi st();
3377 }
3378 }
3379
3380 core.Map<core.String, core.Object> toJson() {
3381 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3382 if (activity != null) {
3383 _json["activity"] = activity;
3384 }
3385 if (clusterId != null) {
3386 _json["clusterId"] = clusterId;
3387 }
3388 if (keyScreen != null) {
3389 _json["keyScreen"] = (keyScreen).toJson();
3390 }
3391 if (screens != null) {
3392 _json["screens"] = screens.map((value) => (value).toJson()).toList();
3393 }
3394 return _json;
3395 }
3396 }
3397
2979 class SkippedDetail { 3398 class SkippedDetail {
2980 /** If the App doesn't support the specific API level. */ 3399 /** If the App doesn't support the specific API level. */
2981 core.bool incompatibleAppVersion; 3400 core.bool incompatibleAppVersion;
2982 /** If the App doesn't run on the specific architecture, for example, x86. */ 3401 /** If the App doesn't run on the specific architecture, for example, x86. */
2983 core.bool incompatibleArchitecture; 3402 core.bool incompatibleArchitecture;
2984 /** If the requested OS version doesn't run on the specific device model. */ 3403 /** If the requested OS version doesn't run on the specific device model. */
2985 core.bool incompatibleDevice; 3404 core.bool incompatibleDevice;
2986 3405
2987 SkippedDetail(); 3406 SkippedDetail();
2988 3407
(...skipping 17 matching lines...) Expand all
3006 if (incompatibleArchitecture != null) { 3425 if (incompatibleArchitecture != null) {
3007 _json["incompatibleArchitecture"] = incompatibleArchitecture; 3426 _json["incompatibleArchitecture"] = incompatibleArchitecture;
3008 } 3427 }
3009 if (incompatibleDevice != null) { 3428 if (incompatibleDevice != null) {
3010 _json["incompatibleDevice"] = incompatibleDevice; 3429 _json["incompatibleDevice"] = incompatibleDevice;
3011 } 3430 }
3012 return _json; 3431 return _json;
3013 } 3432 }
3014 } 3433 }
3015 3434
3435 /** The details about how to run the execution. */
3436 class Specification {
3437 /** An Android mobile test execution specification. */
3438 AndroidTest androidTest;
3439
3440 Specification();
3441
3442 Specification.fromJson(core.Map _json) {
3443 if (_json.containsKey("androidTest")) {
3444 androidTest = new AndroidTest.fromJson(_json["androidTest"]);
3445 }
3446 }
3447
3448 core.Map<core.String, core.Object> toJson() {
3449 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3450 if (androidTest != null) {
3451 _json["androidTest"] = (androidTest).toJson();
3452 }
3453 return _json;
3454 }
3455 }
3456
3016 /** A stacktrace. */ 3457 /** A stacktrace. */
3017 class StackTrace { 3458 class StackTrace {
3018 /** Exception cluster ID */ 3459 /** Exception cluster ID */
3019 core.String clusterId; 3460 core.String clusterId;
3020 /** 3461 /**
3021 * The stack trace message. 3462 * The stack trace message.
3022 * 3463 *
3023 * Required 3464 * Required
3024 */ 3465 */
3025 core.String exception; 3466 core.String exception;
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
3627 if (testTiming != null) { 4068 if (testTiming != null) {
3628 _json["testTiming"] = (testTiming).toJson(); 4069 _json["testTiming"] = (testTiming).toJson();
3629 } 4070 }
3630 if (toolExecution != null) { 4071 if (toolExecution != null) {
3631 _json["toolExecution"] = (toolExecution).toJson(); 4072 _json["toolExecution"] = (toolExecution).toJson();
3632 } 4073 }
3633 return _json; 4074 return _json;
3634 } 4075 }
3635 } 4076 }
3636 4077
3637 /** An abnormal event observed during the test execution. */ 4078 /** An issue detected occurring during a test execution. */
3638 class TestIssue { 4079 class TestIssue {
4080 /** A brief human-readable message describing the issue. Required. */
4081 core.String errorMessage;
3639 /** 4082 /**
3640 * A brief human-readable message describing the abnormal event. 4083 * Severity of issue. Required.
3641 * 4084 * Possible string values are:
3642 * Required. 4085 * - "info"
4086 * - "severe"
4087 * - "unspecifiedSeverity"
4088 * - "warning"
3643 */ 4089 */
3644 core.String errorMessage; 4090 core.String severity;
3645 /** Optional. */ 4091 /** Deprecated in favor of stack trace fields inside specific warnings. */
3646 StackTrace stackTrace; 4092 StackTrace stackTrace;
4093 /**
4094 * Type of issue. Required.
4095 * Possible string values are:
4096 * - "anr"
4097 * - "fatalException"
4098 * - "nativeCrash"
4099 * - "unspecifiedType"
4100 */
4101 core.String type;
4102 /**
4103 * Warning message with additional details of the issue. Should always be a
4104 * message from com.google.devtools.toolresults.v1.warnings Required.
4105 */
4106 Any warning;
3647 4107
3648 TestIssue(); 4108 TestIssue();
3649 4109
3650 TestIssue.fromJson(core.Map _json) { 4110 TestIssue.fromJson(core.Map _json) {
3651 if (_json.containsKey("errorMessage")) { 4111 if (_json.containsKey("errorMessage")) {
3652 errorMessage = _json["errorMessage"]; 4112 errorMessage = _json["errorMessage"];
3653 } 4113 }
4114 if (_json.containsKey("severity")) {
4115 severity = _json["severity"];
4116 }
3654 if (_json.containsKey("stackTrace")) { 4117 if (_json.containsKey("stackTrace")) {
3655 stackTrace = new StackTrace.fromJson(_json["stackTrace"]); 4118 stackTrace = new StackTrace.fromJson(_json["stackTrace"]);
3656 } 4119 }
4120 if (_json.containsKey("type")) {
4121 type = _json["type"];
4122 }
4123 if (_json.containsKey("warning")) {
4124 warning = new Any.fromJson(_json["warning"]);
4125 }
3657 } 4126 }
3658 4127
3659 core.Map<core.String, core.Object> toJson() { 4128 core.Map<core.String, core.Object> toJson() {
3660 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4129 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3661 if (errorMessage != null) { 4130 if (errorMessage != null) {
3662 _json["errorMessage"] = errorMessage; 4131 _json["errorMessage"] = errorMessage;
3663 } 4132 }
4133 if (severity != null) {
4134 _json["severity"] = severity;
4135 }
3664 if (stackTrace != null) { 4136 if (stackTrace != null) {
3665 _json["stackTrace"] = (stackTrace).toJson(); 4137 _json["stackTrace"] = (stackTrace).toJson();
3666 } 4138 }
4139 if (type != null) {
4140 _json["type"] = type;
4141 }
4142 if (warning != null) {
4143 _json["warning"] = (warning).toJson();
4144 }
3667 return _json; 4145 return _json;
3668 } 4146 }
3669 } 4147 }
3670 4148
3671 /** 4149 /**
3672 * A summary of a test suite result either parsed from XML or uploaded directly 4150 * A summary of a test suite result either parsed from XML or uploaded directly
3673 * by a user. 4151 * by a user.
3674 * 4152 *
3675 * Note: the API related comments are for StepService only. This message is also 4153 * Note: the API related comments are for StepService only. This message is also
3676 * being used in ExecutionService in a read only mode for the corresponding 4154 * being used in ExecutionService in a read only mode for the corresponding
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
4161 } 4639 }
4162 if (output != null) { 4640 if (output != null) {
4163 _json["output"] = (output).toJson(); 4641 _json["output"] = (output).toJson();
4164 } 4642 }
4165 if (testCase != null) { 4643 if (testCase != null) {
4166 _json["testCase"] = (testCase).toJson(); 4644 _json["testCase"] = (testCase).toJson();
4167 } 4645 }
4168 return _json; 4646 return _json;
4169 } 4647 }
4170 } 4648 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/toolresults/v1beta3.dart ('k') | generated/googleapis_beta/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698