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

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

Powered by Google App Engine
This is Rietveld 408576698