| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis_beta.toolresults.v1beta3; | 3 library googleapis_beta.toolresults.v1beta3firstparty; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
| 14 | 14 |
| 15 const core.String USER_AGENT = 'dart-api-client toolresults/v1beta3'; | 15 const core.String USER_AGENT = 'dart-api-client toolresults/v1beta3firstparty'; |
| 16 | 16 |
| 17 /** Reads and publishes results from Firebase Test Lab. */ | 17 /** Reads and publishes results from Firebase Test Lab. */ |
| 18 class ToolresultsApi { | 18 class ToolresultsApi { |
| 19 /** View and manage your data across Google Cloud Platform services */ | |
| 20 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | |
| 21 | |
| 22 | 19 |
| 23 final commons.ApiRequester _requester; | 20 final commons.ApiRequester _requester; |
| 24 | 21 |
| 25 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); | 22 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
| 26 | 23 |
| 27 ToolresultsApi(http.Client client, {core.String rootUrl: "https://www.googleap
is.com/", core.String servicePath: "toolresults/v1beta3/projects/"}) : | 24 ToolresultsApi(http.Client client, {core.String rootUrl: "https://www.googleap
is.com/", core.String servicePath: "toolresults/v1beta3firstparty/projects/"}) : |
| 28 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 25 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 29 } | 26 } |
| 30 | 27 |
| 31 | 28 |
| 32 class ProjectsResourceApi { | 29 class ProjectsResourceApi { |
| 33 final commons.ApiRequester _requester; | 30 final commons.ApiRequester _requester; |
| 34 | 31 |
| 35 ProjectsHistoriesResourceApi get histories => new ProjectsHistoriesResourceApi
(_requester); | 32 ProjectsHistoriesResourceApi get histories => new ProjectsHistoriesResourceApi
(_requester); |
| 36 | 33 |
| 37 ProjectsResourceApi(commons.ApiRequester client) : | 34 ProjectsResourceApi(commons.ApiRequester client) : |
| (...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1727 if (typeUrl != null) { | 1724 if (typeUrl != null) { |
| 1728 _json["typeUrl"] = typeUrl; | 1725 _json["typeUrl"] = typeUrl; |
| 1729 } | 1726 } |
| 1730 if (value != null) { | 1727 if (value != null) { |
| 1731 _json["value"] = value; | 1728 _json["value"] = value; |
| 1732 } | 1729 } |
| 1733 return _json; | 1730 return _json; |
| 1734 } | 1731 } |
| 1735 } | 1732 } |
| 1736 | 1733 |
| 1734 class AppStartTime { |
| 1735 /** |
| 1736 * Optional. The time from app start to reaching the developer-reported "fully |
| 1737 * drawn" time. This is only stored if the app includes a call to |
| 1738 * Activity.reportFullyDrawn(). See |
| 1739 * https://developer.android.com/topic/performance/launch-time.html#time-full |
| 1740 */ |
| 1741 Duration fullyDrawnTime; |
| 1742 /** |
| 1743 * The time from app start to the first displayed activity being drawn, as |
| 1744 * reported in Logcat. See |
| 1745 * https://developer.android.com/topic/performance/launch-time.html#time-initi
al |
| 1746 */ |
| 1747 Duration initialDisplayTime; |
| 1748 |
| 1749 AppStartTime(); |
| 1750 |
| 1751 AppStartTime.fromJson(core.Map _json) { |
| 1752 if (_json.containsKey("fullyDrawnTime")) { |
| 1753 fullyDrawnTime = new Duration.fromJson(_json["fullyDrawnTime"]); |
| 1754 } |
| 1755 if (_json.containsKey("initialDisplayTime")) { |
| 1756 initialDisplayTime = new Duration.fromJson(_json["initialDisplayTime"]); |
| 1757 } |
| 1758 } |
| 1759 |
| 1760 core.Map<core.String, core.Object> toJson() { |
| 1761 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1762 if (fullyDrawnTime != null) { |
| 1763 _json["fullyDrawnTime"] = (fullyDrawnTime).toJson(); |
| 1764 } |
| 1765 if (initialDisplayTime != null) { |
| 1766 _json["initialDisplayTime"] = (initialDisplayTime).toJson(); |
| 1767 } |
| 1768 return _json; |
| 1769 } |
| 1770 } |
| 1771 |
| 1737 /** | 1772 /** |
| 1738 * Encapsulates the metadata for basic sample series represented by a line chart | 1773 * Encapsulates the metadata for basic sample series represented by a line chart |
| 1739 */ | 1774 */ |
| 1740 class BasicPerfSampleSeries { | 1775 class BasicPerfSampleSeries { |
| 1741 /** | 1776 /** |
| 1742 * | 1777 * |
| 1743 * Possible string values are: | 1778 * Possible string values are: |
| 1744 * - "cpu" | 1779 * - "cpu" |
| 1745 * - "graphics" | 1780 * - "graphics" |
| 1746 * - "memory" | 1781 * - "memory" |
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2701 } | 2736 } |
| 2702 if (memoryInfo != null) { | 2737 if (memoryInfo != null) { |
| 2703 _json["memoryInfo"] = (memoryInfo).toJson(); | 2738 _json["memoryInfo"] = (memoryInfo).toJson(); |
| 2704 } | 2739 } |
| 2705 return _json; | 2740 return _json; |
| 2706 } | 2741 } |
| 2707 } | 2742 } |
| 2708 | 2743 |
| 2709 /** A summary of perf metrics collected and performance environment info */ | 2744 /** A summary of perf metrics collected and performance environment info */ |
| 2710 class PerfMetricsSummary { | 2745 class PerfMetricsSummary { |
| 2746 AppStartTime appStartTime; |
| 2711 /** A tool results execution ID. */ | 2747 /** A tool results execution ID. */ |
| 2712 core.String executionId; | 2748 core.String executionId; |
| 2713 /** A tool results history ID. */ | 2749 /** A tool results history ID. */ |
| 2714 core.String historyId; | 2750 core.String historyId; |
| 2715 /** | 2751 /** |
| 2716 * Describes the environment in which the performance metrics were collected | 2752 * Describes the environment in which the performance metrics were collected |
| 2717 */ | 2753 */ |
| 2718 PerfEnvironment perfEnvironment; | 2754 PerfEnvironment perfEnvironment; |
| 2719 /** Set of resource collected */ | 2755 /** Set of resource collected */ |
| 2720 core.List<core.String> perfMetrics; | 2756 core.List<core.String> perfMetrics; |
| 2721 /** The cloud project */ | 2757 /** The cloud project */ |
| 2722 core.String projectId; | 2758 core.String projectId; |
| 2723 /** A tool results step ID. */ | 2759 /** A tool results step ID. */ |
| 2724 core.String stepId; | 2760 core.String stepId; |
| 2725 | 2761 |
| 2726 PerfMetricsSummary(); | 2762 PerfMetricsSummary(); |
| 2727 | 2763 |
| 2728 PerfMetricsSummary.fromJson(core.Map _json) { | 2764 PerfMetricsSummary.fromJson(core.Map _json) { |
| 2765 if (_json.containsKey("appStartTime")) { |
| 2766 appStartTime = new AppStartTime.fromJson(_json["appStartTime"]); |
| 2767 } |
| 2729 if (_json.containsKey("executionId")) { | 2768 if (_json.containsKey("executionId")) { |
| 2730 executionId = _json["executionId"]; | 2769 executionId = _json["executionId"]; |
| 2731 } | 2770 } |
| 2732 if (_json.containsKey("historyId")) { | 2771 if (_json.containsKey("historyId")) { |
| 2733 historyId = _json["historyId"]; | 2772 historyId = _json["historyId"]; |
| 2734 } | 2773 } |
| 2735 if (_json.containsKey("perfEnvironment")) { | 2774 if (_json.containsKey("perfEnvironment")) { |
| 2736 perfEnvironment = new PerfEnvironment.fromJson(_json["perfEnvironment"]); | 2775 perfEnvironment = new PerfEnvironment.fromJson(_json["perfEnvironment"]); |
| 2737 } | 2776 } |
| 2738 if (_json.containsKey("perfMetrics")) { | 2777 if (_json.containsKey("perfMetrics")) { |
| 2739 perfMetrics = _json["perfMetrics"]; | 2778 perfMetrics = _json["perfMetrics"]; |
| 2740 } | 2779 } |
| 2741 if (_json.containsKey("projectId")) { | 2780 if (_json.containsKey("projectId")) { |
| 2742 projectId = _json["projectId"]; | 2781 projectId = _json["projectId"]; |
| 2743 } | 2782 } |
| 2744 if (_json.containsKey("stepId")) { | 2783 if (_json.containsKey("stepId")) { |
| 2745 stepId = _json["stepId"]; | 2784 stepId = _json["stepId"]; |
| 2746 } | 2785 } |
| 2747 } | 2786 } |
| 2748 | 2787 |
| 2749 core.Map<core.String, core.Object> toJson() { | 2788 core.Map<core.String, core.Object> toJson() { |
| 2750 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2789 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2790 if (appStartTime != null) { |
| 2791 _json["appStartTime"] = (appStartTime).toJson(); |
| 2792 } |
| 2751 if (executionId != null) { | 2793 if (executionId != null) { |
| 2752 _json["executionId"] = executionId; | 2794 _json["executionId"] = executionId; |
| 2753 } | 2795 } |
| 2754 if (historyId != null) { | 2796 if (historyId != null) { |
| 2755 _json["historyId"] = historyId; | 2797 _json["historyId"] = historyId; |
| 2756 } | 2798 } |
| 2757 if (perfEnvironment != null) { | 2799 if (perfEnvironment != null) { |
| 2758 _json["perfEnvironment"] = (perfEnvironment).toJson(); | 2800 _json["perfEnvironment"] = (perfEnvironment).toJson(); |
| 2759 } | 2801 } |
| 2760 if (perfMetrics != null) { | 2802 if (perfMetrics != null) { |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3048 * results in its response, the status of those operations should be represented | 3090 * results in its response, the status of those operations should be represented |
| 3049 * directly using the `Status` message. | 3091 * directly using the `Status` message. |
| 3050 * | 3092 * |
| 3051 * - Logging. If some API errors are stored in logs, the message `Status` could | 3093 * - Logging. If some API errors are stored in logs, the message `Status` could |
| 3052 * be used directly after any stripping needed for security/privacy reasons. | 3094 * be used directly after any stripping needed for security/privacy reasons. |
| 3053 */ | 3095 */ |
| 3054 class Status { | 3096 class Status { |
| 3055 /** The status code, which should be an enum value of [google.rpc.Code][]. */ | 3097 /** The status code, which should be an enum value of [google.rpc.Code][]. */ |
| 3056 core.int code; | 3098 core.int code; |
| 3057 /** | 3099 /** |
| 3058 * A list of messages that carry the error details. There will be a common set | 3100 * A list of messages that carry the error details. There is a common set of |
| 3059 * of message types for APIs to use. | 3101 * message types for APIs to use. |
| 3060 */ | 3102 */ |
| 3061 core.List<Any> details; | 3103 core.List<Any> details; |
| 3062 /** | 3104 /** |
| 3063 * A developer-facing error message, which should be in English. Any | 3105 * A developer-facing error message, which should be in English. Any |
| 3064 * user-facing error message should be localized and sent in the | 3106 * user-facing error message should be localized and sent in the |
| 3065 * [google.rpc.Status.details][] field, or localized by the client. | 3107 * [google.rpc.Status.details][] field, or localized by the client. |
| 3066 */ | 3108 */ |
| 3067 core.String message; | 3109 core.String message; |
| 3068 | 3110 |
| 3069 Status(); | 3111 Status(); |
| (...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4103 } | 4145 } |
| 4104 if (output != null) { | 4146 if (output != null) { |
| 4105 _json["output"] = (output).toJson(); | 4147 _json["output"] = (output).toJson(); |
| 4106 } | 4148 } |
| 4107 if (testCase != null) { | 4149 if (testCase != null) { |
| 4108 _json["testCase"] = (testCase).toJson(); | 4150 _json["testCase"] = (testCase).toJson(); |
| 4109 } | 4151 } |
| 4110 return _json; | 4152 return _json; |
| 4111 } | 4153 } |
| 4112 } | 4154 } |
| OLD | NEW |