@googleapis/toolresults 4.0.1 → 5.0.1
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/CHANGELOG.md +25 -0
- package/build/v1beta3.d.ts +1804 -0
- package/build/v1beta3.js.map +1 -1
- package/package.json +1 -1
- package/v1beta3.ts +1804 -0
package/build/v1beta3.d.ts
CHANGED
|
@@ -1752,6 +1752,53 @@ export declare namespace toolresults_v1beta3 {
|
|
|
1752
1752
|
constructor(context: APIRequestContext);
|
|
1753
1753
|
/**
|
|
1754
1754
|
* 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
|
|
1755
|
+
* @example
|
|
1756
|
+
* ```js
|
|
1757
|
+
* // Before running the sample:
|
|
1758
|
+
* // - Enable the API at:
|
|
1759
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
1760
|
+
* // - Login into gcloud by running:
|
|
1761
|
+
* // ```sh
|
|
1762
|
+
* // $ gcloud auth application-default login
|
|
1763
|
+
* // ```
|
|
1764
|
+
* // - Install the npm module by running:
|
|
1765
|
+
* // ```sh
|
|
1766
|
+
* // $ npm install googleapis
|
|
1767
|
+
* // ```
|
|
1768
|
+
*
|
|
1769
|
+
* const {google} = require('googleapis');
|
|
1770
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
1771
|
+
*
|
|
1772
|
+
* async function main() {
|
|
1773
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1774
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1775
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
1776
|
+
* });
|
|
1777
|
+
*
|
|
1778
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1779
|
+
* const authClient = await auth.getClient();
|
|
1780
|
+
* google.options({auth: authClient});
|
|
1781
|
+
*
|
|
1782
|
+
* // Do the magic
|
|
1783
|
+
* const res = await toolresults.projects.getSettings({
|
|
1784
|
+
* // A Project id. Required.
|
|
1785
|
+
* projectId: 'placeholder-value',
|
|
1786
|
+
* });
|
|
1787
|
+
* console.log(res.data);
|
|
1788
|
+
*
|
|
1789
|
+
* // Example response
|
|
1790
|
+
* // {
|
|
1791
|
+
* // "defaultBucket": "my_defaultBucket",
|
|
1792
|
+
* // "name": "my_name"
|
|
1793
|
+
* // }
|
|
1794
|
+
* }
|
|
1795
|
+
*
|
|
1796
|
+
* main().catch(e => {
|
|
1797
|
+
* console.error(e);
|
|
1798
|
+
* throw e;
|
|
1799
|
+
* });
|
|
1800
|
+
*
|
|
1801
|
+
* ```
|
|
1755
1802
|
*
|
|
1756
1803
|
* @param params - Parameters for request
|
|
1757
1804
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1766,6 +1813,53 @@ export declare namespace toolresults_v1beta3 {
|
|
|
1766
1813
|
getSettings(callback: BodyResponseCallback<Schema$ProjectSettings>): void;
|
|
1767
1814
|
/**
|
|
1768
1815
|
* 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. 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 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 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 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. 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 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 - Any error code raised by Google Cloud Storage
|
|
1816
|
+
* @example
|
|
1817
|
+
* ```js
|
|
1818
|
+
* // Before running the sample:
|
|
1819
|
+
* // - Enable the API at:
|
|
1820
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
1821
|
+
* // - Login into gcloud by running:
|
|
1822
|
+
* // ```sh
|
|
1823
|
+
* // $ gcloud auth application-default login
|
|
1824
|
+
* // ```
|
|
1825
|
+
* // - Install the npm module by running:
|
|
1826
|
+
* // ```sh
|
|
1827
|
+
* // $ npm install googleapis
|
|
1828
|
+
* // ```
|
|
1829
|
+
*
|
|
1830
|
+
* const {google} = require('googleapis');
|
|
1831
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
1832
|
+
*
|
|
1833
|
+
* async function main() {
|
|
1834
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1835
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1836
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
1837
|
+
* });
|
|
1838
|
+
*
|
|
1839
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1840
|
+
* const authClient = await auth.getClient();
|
|
1841
|
+
* google.options({auth: authClient});
|
|
1842
|
+
*
|
|
1843
|
+
* // Do the magic
|
|
1844
|
+
* const res = await toolresults.projects.initializeSettings({
|
|
1845
|
+
* // A Project id. Required.
|
|
1846
|
+
* projectId: 'placeholder-value',
|
|
1847
|
+
* });
|
|
1848
|
+
* console.log(res.data);
|
|
1849
|
+
*
|
|
1850
|
+
* // Example response
|
|
1851
|
+
* // {
|
|
1852
|
+
* // "defaultBucket": "my_defaultBucket",
|
|
1853
|
+
* // "name": "my_name"
|
|
1854
|
+
* // }
|
|
1855
|
+
* }
|
|
1856
|
+
*
|
|
1857
|
+
* main().catch(e => {
|
|
1858
|
+
* console.error(e);
|
|
1859
|
+
* throw e;
|
|
1860
|
+
* });
|
|
1861
|
+
*
|
|
1862
|
+
* ```
|
|
1769
1863
|
*
|
|
1770
1864
|
* @param params - Parameters for request
|
|
1771
1865
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1797,6 +1891,68 @@ export declare namespace toolresults_v1beta3 {
|
|
|
1797
1891
|
constructor(context: APIRequestContext);
|
|
1798
1892
|
/**
|
|
1799
1893
|
* 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 project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing project does not exist
|
|
1894
|
+
* @example
|
|
1895
|
+
* ```js
|
|
1896
|
+
* // Before running the sample:
|
|
1897
|
+
* // - Enable the API at:
|
|
1898
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
1899
|
+
* // - Login into gcloud by running:
|
|
1900
|
+
* // ```sh
|
|
1901
|
+
* // $ gcloud auth application-default login
|
|
1902
|
+
* // ```
|
|
1903
|
+
* // - Install the npm module by running:
|
|
1904
|
+
* // ```sh
|
|
1905
|
+
* // $ npm install googleapis
|
|
1906
|
+
* // ```
|
|
1907
|
+
*
|
|
1908
|
+
* const {google} = require('googleapis');
|
|
1909
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
1910
|
+
*
|
|
1911
|
+
* async function main() {
|
|
1912
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1913
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1914
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
1915
|
+
* });
|
|
1916
|
+
*
|
|
1917
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1918
|
+
* const authClient = await auth.getClient();
|
|
1919
|
+
* google.options({auth: authClient});
|
|
1920
|
+
*
|
|
1921
|
+
* // Do the magic
|
|
1922
|
+
* const res = await toolresults.projects.histories.create({
|
|
1923
|
+
* // A Project id. Required.
|
|
1924
|
+
* projectId: 'placeholder-value',
|
|
1925
|
+
* // A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
|
|
1926
|
+
* requestId: 'placeholder-value',
|
|
1927
|
+
*
|
|
1928
|
+
* // Request body metadata
|
|
1929
|
+
* requestBody: {
|
|
1930
|
+
* // request body parameters
|
|
1931
|
+
* // {
|
|
1932
|
+
* // "displayName": "my_displayName",
|
|
1933
|
+
* // "historyId": "my_historyId",
|
|
1934
|
+
* // "name": "my_name",
|
|
1935
|
+
* // "testPlatform": "my_testPlatform"
|
|
1936
|
+
* // }
|
|
1937
|
+
* },
|
|
1938
|
+
* });
|
|
1939
|
+
* console.log(res.data);
|
|
1940
|
+
*
|
|
1941
|
+
* // Example response
|
|
1942
|
+
* // {
|
|
1943
|
+
* // "displayName": "my_displayName",
|
|
1944
|
+
* // "historyId": "my_historyId",
|
|
1945
|
+
* // "name": "my_name",
|
|
1946
|
+
* // "testPlatform": "my_testPlatform"
|
|
1947
|
+
* // }
|
|
1948
|
+
* }
|
|
1949
|
+
*
|
|
1950
|
+
* main().catch(e => {
|
|
1951
|
+
* console.error(e);
|
|
1952
|
+
* throw e;
|
|
1953
|
+
* });
|
|
1954
|
+
*
|
|
1955
|
+
* ```
|
|
1800
1956
|
*
|
|
1801
1957
|
* @param params - Parameters for request
|
|
1802
1958
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1811,6 +1967,57 @@ export declare namespace toolresults_v1beta3 {
|
|
|
1811
1967
|
create(callback: BodyResponseCallback<Schema$History>): void;
|
|
1812
1968
|
/**
|
|
1813
1969
|
* 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 malformed - NOT_FOUND - if the History does not exist
|
|
1970
|
+
* @example
|
|
1971
|
+
* ```js
|
|
1972
|
+
* // Before running the sample:
|
|
1973
|
+
* // - Enable the API at:
|
|
1974
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
1975
|
+
* // - Login into gcloud by running:
|
|
1976
|
+
* // ```sh
|
|
1977
|
+
* // $ gcloud auth application-default login
|
|
1978
|
+
* // ```
|
|
1979
|
+
* // - Install the npm module by running:
|
|
1980
|
+
* // ```sh
|
|
1981
|
+
* // $ npm install googleapis
|
|
1982
|
+
* // ```
|
|
1983
|
+
*
|
|
1984
|
+
* const {google} = require('googleapis');
|
|
1985
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
1986
|
+
*
|
|
1987
|
+
* async function main() {
|
|
1988
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1989
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1990
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
1991
|
+
* });
|
|
1992
|
+
*
|
|
1993
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1994
|
+
* const authClient = await auth.getClient();
|
|
1995
|
+
* google.options({auth: authClient});
|
|
1996
|
+
*
|
|
1997
|
+
* // Do the magic
|
|
1998
|
+
* const res = await toolresults.projects.histories.get({
|
|
1999
|
+
* // A History id. Required.
|
|
2000
|
+
* historyId: 'placeholder-value',
|
|
2001
|
+
* // A Project id. Required.
|
|
2002
|
+
* projectId: 'placeholder-value',
|
|
2003
|
+
* });
|
|
2004
|
+
* console.log(res.data);
|
|
2005
|
+
*
|
|
2006
|
+
* // Example response
|
|
2007
|
+
* // {
|
|
2008
|
+
* // "displayName": "my_displayName",
|
|
2009
|
+
* // "historyId": "my_historyId",
|
|
2010
|
+
* // "name": "my_name",
|
|
2011
|
+
* // "testPlatform": "my_testPlatform"
|
|
2012
|
+
* // }
|
|
2013
|
+
* }
|
|
2014
|
+
*
|
|
2015
|
+
* main().catch(e => {
|
|
2016
|
+
* console.error(e);
|
|
2017
|
+
* throw e;
|
|
2018
|
+
* });
|
|
2019
|
+
*
|
|
2020
|
+
* ```
|
|
1814
2021
|
*
|
|
1815
2022
|
* @param params - Parameters for request
|
|
1816
2023
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1825,6 +2032,59 @@ export declare namespace toolresults_v1beta3 {
|
|
|
1825
2032
|
get(callback: BodyResponseCallback<Schema$History>): void;
|
|
1826
2033
|
/**
|
|
1827
2034
|
* 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 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 - NOT_FOUND - if the History does not exist
|
|
2035
|
+
* @example
|
|
2036
|
+
* ```js
|
|
2037
|
+
* // Before running the sample:
|
|
2038
|
+
* // - Enable the API at:
|
|
2039
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2040
|
+
* // - Login into gcloud by running:
|
|
2041
|
+
* // ```sh
|
|
2042
|
+
* // $ gcloud auth application-default login
|
|
2043
|
+
* // ```
|
|
2044
|
+
* // - Install the npm module by running:
|
|
2045
|
+
* // ```sh
|
|
2046
|
+
* // $ npm install googleapis
|
|
2047
|
+
* // ```
|
|
2048
|
+
*
|
|
2049
|
+
* const {google} = require('googleapis');
|
|
2050
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
2051
|
+
*
|
|
2052
|
+
* async function main() {
|
|
2053
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2054
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2055
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2056
|
+
* });
|
|
2057
|
+
*
|
|
2058
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2059
|
+
* const authClient = await auth.getClient();
|
|
2060
|
+
* google.options({auth: authClient});
|
|
2061
|
+
*
|
|
2062
|
+
* // Do the magic
|
|
2063
|
+
* const res = await toolresults.projects.histories.list({
|
|
2064
|
+
* // If set, only return histories with the given name. Optional.
|
|
2065
|
+
* filterByName: 'placeholder-value',
|
|
2066
|
+
* // The maximum number of Histories to fetch. Default value: 20. The server will use this default if the field is not set or has a value of 0. Any value greater than 100 will be treated as 100. Optional.
|
|
2067
|
+
* pageSize: 'placeholder-value',
|
|
2068
|
+
* // A continuation token to resume the query at the next item. Optional.
|
|
2069
|
+
* pageToken: 'placeholder-value',
|
|
2070
|
+
* // A Project id. Required.
|
|
2071
|
+
* projectId: 'placeholder-value',
|
|
2072
|
+
* });
|
|
2073
|
+
* console.log(res.data);
|
|
2074
|
+
*
|
|
2075
|
+
* // Example response
|
|
2076
|
+
* // {
|
|
2077
|
+
* // "histories": [],
|
|
2078
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
2079
|
+
* // }
|
|
2080
|
+
* }
|
|
2081
|
+
*
|
|
2082
|
+
* main().catch(e => {
|
|
2083
|
+
* console.error(e);
|
|
2084
|
+
* throw e;
|
|
2085
|
+
* });
|
|
2086
|
+
*
|
|
2087
|
+
* ```
|
|
1828
2088
|
*
|
|
1829
2089
|
* @param params - Parameters for request
|
|
1830
2090
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1888,6 +2148,78 @@ export declare namespace toolresults_v1beta3 {
|
|
|
1888
2148
|
constructor(context: APIRequestContext);
|
|
1889
2149
|
/**
|
|
1890
2150
|
* 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 project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing History does not exist
|
|
2151
|
+
* @example
|
|
2152
|
+
* ```js
|
|
2153
|
+
* // Before running the sample:
|
|
2154
|
+
* // - Enable the API at:
|
|
2155
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2156
|
+
* // - Login into gcloud by running:
|
|
2157
|
+
* // ```sh
|
|
2158
|
+
* // $ gcloud auth application-default login
|
|
2159
|
+
* // ```
|
|
2160
|
+
* // - Install the npm module by running:
|
|
2161
|
+
* // ```sh
|
|
2162
|
+
* // $ npm install googleapis
|
|
2163
|
+
* // ```
|
|
2164
|
+
*
|
|
2165
|
+
* const {google} = require('googleapis');
|
|
2166
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
2167
|
+
*
|
|
2168
|
+
* async function main() {
|
|
2169
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2170
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2171
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2172
|
+
* });
|
|
2173
|
+
*
|
|
2174
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2175
|
+
* const authClient = await auth.getClient();
|
|
2176
|
+
* google.options({auth: authClient});
|
|
2177
|
+
*
|
|
2178
|
+
* // Do the magic
|
|
2179
|
+
* const res = await toolresults.projects.histories.executions.create({
|
|
2180
|
+
* // A History id. Required.
|
|
2181
|
+
* historyId: 'placeholder-value',
|
|
2182
|
+
* // A Project id. Required.
|
|
2183
|
+
* projectId: 'placeholder-value',
|
|
2184
|
+
* // A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
|
|
2185
|
+
* requestId: 'placeholder-value',
|
|
2186
|
+
*
|
|
2187
|
+
* // Request body metadata
|
|
2188
|
+
* requestBody: {
|
|
2189
|
+
* // request body parameters
|
|
2190
|
+
* // {
|
|
2191
|
+
* // "completionTime": {},
|
|
2192
|
+
* // "creationTime": {},
|
|
2193
|
+
* // "dimensionDefinitions": [],
|
|
2194
|
+
* // "executionId": "my_executionId",
|
|
2195
|
+
* // "outcome": {},
|
|
2196
|
+
* // "specification": {},
|
|
2197
|
+
* // "state": "my_state",
|
|
2198
|
+
* // "testExecutionMatrixId": "my_testExecutionMatrixId"
|
|
2199
|
+
* // }
|
|
2200
|
+
* },
|
|
2201
|
+
* });
|
|
2202
|
+
* console.log(res.data);
|
|
2203
|
+
*
|
|
2204
|
+
* // Example response
|
|
2205
|
+
* // {
|
|
2206
|
+
* // "completionTime": {},
|
|
2207
|
+
* // "creationTime": {},
|
|
2208
|
+
* // "dimensionDefinitions": [],
|
|
2209
|
+
* // "executionId": "my_executionId",
|
|
2210
|
+
* // "outcome": {},
|
|
2211
|
+
* // "specification": {},
|
|
2212
|
+
* // "state": "my_state",
|
|
2213
|
+
* // "testExecutionMatrixId": "my_testExecutionMatrixId"
|
|
2214
|
+
* // }
|
|
2215
|
+
* }
|
|
2216
|
+
*
|
|
2217
|
+
* main().catch(e => {
|
|
2218
|
+
* console.error(e);
|
|
2219
|
+
* throw e;
|
|
2220
|
+
* });
|
|
2221
|
+
*
|
|
2222
|
+
* ```
|
|
1891
2223
|
*
|
|
1892
2224
|
* @param params - Parameters for request
|
|
1893
2225
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1902,6 +2234,63 @@ export declare namespace toolresults_v1beta3 {
|
|
|
1902
2234
|
create(callback: BodyResponseCallback<Schema$Execution>): void;
|
|
1903
2235
|
/**
|
|
1904
2236
|
* 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 malformed - NOT_FOUND - if the Execution does not exist
|
|
2237
|
+
* @example
|
|
2238
|
+
* ```js
|
|
2239
|
+
* // Before running the sample:
|
|
2240
|
+
* // - Enable the API at:
|
|
2241
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2242
|
+
* // - Login into gcloud by running:
|
|
2243
|
+
* // ```sh
|
|
2244
|
+
* // $ gcloud auth application-default login
|
|
2245
|
+
* // ```
|
|
2246
|
+
* // - Install the npm module by running:
|
|
2247
|
+
* // ```sh
|
|
2248
|
+
* // $ npm install googleapis
|
|
2249
|
+
* // ```
|
|
2250
|
+
*
|
|
2251
|
+
* const {google} = require('googleapis');
|
|
2252
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
2253
|
+
*
|
|
2254
|
+
* async function main() {
|
|
2255
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2256
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2257
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2258
|
+
* });
|
|
2259
|
+
*
|
|
2260
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2261
|
+
* const authClient = await auth.getClient();
|
|
2262
|
+
* google.options({auth: authClient});
|
|
2263
|
+
*
|
|
2264
|
+
* // Do the magic
|
|
2265
|
+
* const res = await toolresults.projects.histories.executions.get({
|
|
2266
|
+
* // An Execution id. Required.
|
|
2267
|
+
* executionId: 'placeholder-value',
|
|
2268
|
+
* // A History id. Required.
|
|
2269
|
+
* historyId: 'placeholder-value',
|
|
2270
|
+
* // A Project id. Required.
|
|
2271
|
+
* projectId: 'placeholder-value',
|
|
2272
|
+
* });
|
|
2273
|
+
* console.log(res.data);
|
|
2274
|
+
*
|
|
2275
|
+
* // Example response
|
|
2276
|
+
* // {
|
|
2277
|
+
* // "completionTime": {},
|
|
2278
|
+
* // "creationTime": {},
|
|
2279
|
+
* // "dimensionDefinitions": [],
|
|
2280
|
+
* // "executionId": "my_executionId",
|
|
2281
|
+
* // "outcome": {},
|
|
2282
|
+
* // "specification": {},
|
|
2283
|
+
* // "state": "my_state",
|
|
2284
|
+
* // "testExecutionMatrixId": "my_testExecutionMatrixId"
|
|
2285
|
+
* // }
|
|
2286
|
+
* }
|
|
2287
|
+
*
|
|
2288
|
+
* main().catch(e => {
|
|
2289
|
+
* console.error(e);
|
|
2290
|
+
* throw e;
|
|
2291
|
+
* });
|
|
2292
|
+
*
|
|
2293
|
+
* ```
|
|
1905
2294
|
*
|
|
1906
2295
|
* @param params - Parameters for request
|
|
1907
2296
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1916,6 +2305,59 @@ export declare namespace toolresults_v1beta3 {
|
|
|
1916
2305
|
get(callback: BodyResponseCallback<Schema$Execution>): void;
|
|
1917
2306
|
/**
|
|
1918
2307
|
* 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 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 malformed - NOT_FOUND - if the containing History does not exist
|
|
2308
|
+
* @example
|
|
2309
|
+
* ```js
|
|
2310
|
+
* // Before running the sample:
|
|
2311
|
+
* // - Enable the API at:
|
|
2312
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2313
|
+
* // - Login into gcloud by running:
|
|
2314
|
+
* // ```sh
|
|
2315
|
+
* // $ gcloud auth application-default login
|
|
2316
|
+
* // ```
|
|
2317
|
+
* // - Install the npm module by running:
|
|
2318
|
+
* // ```sh
|
|
2319
|
+
* // $ npm install googleapis
|
|
2320
|
+
* // ```
|
|
2321
|
+
*
|
|
2322
|
+
* const {google} = require('googleapis');
|
|
2323
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
2324
|
+
*
|
|
2325
|
+
* async function main() {
|
|
2326
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2327
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2328
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2329
|
+
* });
|
|
2330
|
+
*
|
|
2331
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2332
|
+
* const authClient = await auth.getClient();
|
|
2333
|
+
* google.options({auth: authClient});
|
|
2334
|
+
*
|
|
2335
|
+
* // Do the magic
|
|
2336
|
+
* const res = await toolresults.projects.histories.executions.list({
|
|
2337
|
+
* // A History id. Required.
|
|
2338
|
+
* historyId: 'placeholder-value',
|
|
2339
|
+
* // The maximum number of Executions to fetch. Default value: 25. The server will use this default if the field is not set or has a value of 0. Optional.
|
|
2340
|
+
* pageSize: 'placeholder-value',
|
|
2341
|
+
* // A continuation token to resume the query at the next item. Optional.
|
|
2342
|
+
* pageToken: 'placeholder-value',
|
|
2343
|
+
* // A Project id. Required.
|
|
2344
|
+
* projectId: 'placeholder-value',
|
|
2345
|
+
* });
|
|
2346
|
+
* console.log(res.data);
|
|
2347
|
+
*
|
|
2348
|
+
* // Example response
|
|
2349
|
+
* // {
|
|
2350
|
+
* // "executions": [],
|
|
2351
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
2352
|
+
* // }
|
|
2353
|
+
* }
|
|
2354
|
+
*
|
|
2355
|
+
* main().catch(e => {
|
|
2356
|
+
* console.error(e);
|
|
2357
|
+
* throw e;
|
|
2358
|
+
* });
|
|
2359
|
+
*
|
|
2360
|
+
* ```
|
|
1919
2361
|
*
|
|
1920
2362
|
* @param params - Parameters for request
|
|
1921
2363
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1930,6 +2372,80 @@ export declare namespace toolresults_v1beta3 {
|
|
|
1930
2372
|
list(callback: BodyResponseCallback<Schema$ListExecutionsResponse>): void;
|
|
1931
2373
|
/**
|
|
1932
2374
|
* 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 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
|
|
2375
|
+
* @example
|
|
2376
|
+
* ```js
|
|
2377
|
+
* // Before running the sample:
|
|
2378
|
+
* // - Enable the API at:
|
|
2379
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2380
|
+
* // - Login into gcloud by running:
|
|
2381
|
+
* // ```sh
|
|
2382
|
+
* // $ gcloud auth application-default login
|
|
2383
|
+
* // ```
|
|
2384
|
+
* // - Install the npm module by running:
|
|
2385
|
+
* // ```sh
|
|
2386
|
+
* // $ npm install googleapis
|
|
2387
|
+
* // ```
|
|
2388
|
+
*
|
|
2389
|
+
* const {google} = require('googleapis');
|
|
2390
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
2391
|
+
*
|
|
2392
|
+
* async function main() {
|
|
2393
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2394
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2395
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2396
|
+
* });
|
|
2397
|
+
*
|
|
2398
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2399
|
+
* const authClient = await auth.getClient();
|
|
2400
|
+
* google.options({auth: authClient});
|
|
2401
|
+
*
|
|
2402
|
+
* // Do the magic
|
|
2403
|
+
* const res = await toolresults.projects.histories.executions.patch({
|
|
2404
|
+
* // Required.
|
|
2405
|
+
* executionId: 'placeholder-value',
|
|
2406
|
+
* // Required.
|
|
2407
|
+
* historyId: 'placeholder-value',
|
|
2408
|
+
* // A Project id. Required.
|
|
2409
|
+
* projectId: 'placeholder-value',
|
|
2410
|
+
* // A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
|
|
2411
|
+
* requestId: 'placeholder-value',
|
|
2412
|
+
*
|
|
2413
|
+
* // Request body metadata
|
|
2414
|
+
* requestBody: {
|
|
2415
|
+
* // request body parameters
|
|
2416
|
+
* // {
|
|
2417
|
+
* // "completionTime": {},
|
|
2418
|
+
* // "creationTime": {},
|
|
2419
|
+
* // "dimensionDefinitions": [],
|
|
2420
|
+
* // "executionId": "my_executionId",
|
|
2421
|
+
* // "outcome": {},
|
|
2422
|
+
* // "specification": {},
|
|
2423
|
+
* // "state": "my_state",
|
|
2424
|
+
* // "testExecutionMatrixId": "my_testExecutionMatrixId"
|
|
2425
|
+
* // }
|
|
2426
|
+
* },
|
|
2427
|
+
* });
|
|
2428
|
+
* console.log(res.data);
|
|
2429
|
+
*
|
|
2430
|
+
* // Example response
|
|
2431
|
+
* // {
|
|
2432
|
+
* // "completionTime": {},
|
|
2433
|
+
* // "creationTime": {},
|
|
2434
|
+
* // "dimensionDefinitions": [],
|
|
2435
|
+
* // "executionId": "my_executionId",
|
|
2436
|
+
* // "outcome": {},
|
|
2437
|
+
* // "specification": {},
|
|
2438
|
+
* // "state": "my_state",
|
|
2439
|
+
* // "testExecutionMatrixId": "my_testExecutionMatrixId"
|
|
2440
|
+
* // }
|
|
2441
|
+
* }
|
|
2442
|
+
*
|
|
2443
|
+
* main().catch(e => {
|
|
2444
|
+
* console.error(e);
|
|
2445
|
+
* throw e;
|
|
2446
|
+
* });
|
|
2447
|
+
*
|
|
2448
|
+
* ```
|
|
1933
2449
|
*
|
|
1934
2450
|
* @param params - Parameters for request
|
|
1935
2451
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2020,6 +2536,61 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2020
2536
|
constructor(context: APIRequestContext);
|
|
2021
2537
|
/**
|
|
2022
2538
|
* Retrieves a single screenshot cluster by its ID
|
|
2539
|
+
* @example
|
|
2540
|
+
* ```js
|
|
2541
|
+
* // Before running the sample:
|
|
2542
|
+
* // - Enable the API at:
|
|
2543
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2544
|
+
* // - Login into gcloud by running:
|
|
2545
|
+
* // ```sh
|
|
2546
|
+
* // $ gcloud auth application-default login
|
|
2547
|
+
* // ```
|
|
2548
|
+
* // - Install the npm module by running:
|
|
2549
|
+
* // ```sh
|
|
2550
|
+
* // $ npm install googleapis
|
|
2551
|
+
* // ```
|
|
2552
|
+
*
|
|
2553
|
+
* const {google} = require('googleapis');
|
|
2554
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
2555
|
+
*
|
|
2556
|
+
* async function main() {
|
|
2557
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2558
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2559
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2560
|
+
* });
|
|
2561
|
+
*
|
|
2562
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2563
|
+
* const authClient = await auth.getClient();
|
|
2564
|
+
* google.options({auth: authClient});
|
|
2565
|
+
*
|
|
2566
|
+
* // Do the magic
|
|
2567
|
+
* const res = await toolresults.projects.histories.executions.clusters.get({
|
|
2568
|
+
* // A Cluster id Required.
|
|
2569
|
+
* clusterId: 'placeholder-value',
|
|
2570
|
+
* // An Execution id. Required.
|
|
2571
|
+
* executionId: 'placeholder-value',
|
|
2572
|
+
* // A History id. Required.
|
|
2573
|
+
* historyId: 'placeholder-value',
|
|
2574
|
+
* // A Project id. Required.
|
|
2575
|
+
* projectId: 'placeholder-value',
|
|
2576
|
+
* });
|
|
2577
|
+
* console.log(res.data);
|
|
2578
|
+
*
|
|
2579
|
+
* // Example response
|
|
2580
|
+
* // {
|
|
2581
|
+
* // "activity": "my_activity",
|
|
2582
|
+
* // "clusterId": "my_clusterId",
|
|
2583
|
+
* // "keyScreen": {},
|
|
2584
|
+
* // "screens": []
|
|
2585
|
+
* // }
|
|
2586
|
+
* }
|
|
2587
|
+
*
|
|
2588
|
+
* main().catch(e => {
|
|
2589
|
+
* console.error(e);
|
|
2590
|
+
* throw e;
|
|
2591
|
+
* });
|
|
2592
|
+
*
|
|
2593
|
+
* ```
|
|
2023
2594
|
*
|
|
2024
2595
|
* @param params - Parameters for request
|
|
2025
2596
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2034,6 +2605,56 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2034
2605
|
get(callback: BodyResponseCallback<Schema$ScreenshotCluster>): void;
|
|
2035
2606
|
/**
|
|
2036
2607
|
* 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 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 cluster that has screens which have the highest matching scores.
|
|
2608
|
+
* @example
|
|
2609
|
+
* ```js
|
|
2610
|
+
* // Before running the sample:
|
|
2611
|
+
* // - Enable the API at:
|
|
2612
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2613
|
+
* // - Login into gcloud by running:
|
|
2614
|
+
* // ```sh
|
|
2615
|
+
* // $ gcloud auth application-default login
|
|
2616
|
+
* // ```
|
|
2617
|
+
* // - Install the npm module by running:
|
|
2618
|
+
* // ```sh
|
|
2619
|
+
* // $ npm install googleapis
|
|
2620
|
+
* // ```
|
|
2621
|
+
*
|
|
2622
|
+
* const {google} = require('googleapis');
|
|
2623
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
2624
|
+
*
|
|
2625
|
+
* async function main() {
|
|
2626
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2627
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2628
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2629
|
+
* });
|
|
2630
|
+
*
|
|
2631
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2632
|
+
* const authClient = await auth.getClient();
|
|
2633
|
+
* google.options({auth: authClient});
|
|
2634
|
+
*
|
|
2635
|
+
* // Do the magic
|
|
2636
|
+
* const res = await toolresults.projects.histories.executions.clusters.list({
|
|
2637
|
+
* // An Execution id. Required.
|
|
2638
|
+
* executionId: 'placeholder-value',
|
|
2639
|
+
* // A History id. Required.
|
|
2640
|
+
* historyId: 'placeholder-value',
|
|
2641
|
+
* // A Project id. Required.
|
|
2642
|
+
* projectId: 'placeholder-value',
|
|
2643
|
+
* });
|
|
2644
|
+
* console.log(res.data);
|
|
2645
|
+
*
|
|
2646
|
+
* // Example response
|
|
2647
|
+
* // {
|
|
2648
|
+
* // "clusters": []
|
|
2649
|
+
* // }
|
|
2650
|
+
* }
|
|
2651
|
+
*
|
|
2652
|
+
* main().catch(e => {
|
|
2653
|
+
* console.error(e);
|
|
2654
|
+
* throw e;
|
|
2655
|
+
* });
|
|
2656
|
+
*
|
|
2657
|
+
* ```
|
|
2037
2658
|
*
|
|
2038
2659
|
* @param params - Parameters for request
|
|
2039
2660
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2084,6 +2705,68 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2084
2705
|
constructor(context: APIRequestContext);
|
|
2085
2706
|
/**
|
|
2086
2707
|
* 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 malformed - NOT_FOUND - if the Environment does not exist
|
|
2708
|
+
* @example
|
|
2709
|
+
* ```js
|
|
2710
|
+
* // Before running the sample:
|
|
2711
|
+
* // - Enable the API at:
|
|
2712
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2713
|
+
* // - Login into gcloud by running:
|
|
2714
|
+
* // ```sh
|
|
2715
|
+
* // $ gcloud auth application-default login
|
|
2716
|
+
* // ```
|
|
2717
|
+
* // - Install the npm module by running:
|
|
2718
|
+
* // ```sh
|
|
2719
|
+
* // $ npm install googleapis
|
|
2720
|
+
* // ```
|
|
2721
|
+
*
|
|
2722
|
+
* const {google} = require('googleapis');
|
|
2723
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
2724
|
+
*
|
|
2725
|
+
* async function main() {
|
|
2726
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2727
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2728
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2729
|
+
* });
|
|
2730
|
+
*
|
|
2731
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2732
|
+
* const authClient = await auth.getClient();
|
|
2733
|
+
* google.options({auth: authClient});
|
|
2734
|
+
*
|
|
2735
|
+
* // Do the magic
|
|
2736
|
+
* const res = await toolresults.projects.histories.executions.environments.get({
|
|
2737
|
+
* // Required. An Environment id.
|
|
2738
|
+
* environmentId: 'placeholder-value',
|
|
2739
|
+
* // Required. An Execution id.
|
|
2740
|
+
* executionId: 'placeholder-value',
|
|
2741
|
+
* // Required. A History id.
|
|
2742
|
+
* historyId: 'placeholder-value',
|
|
2743
|
+
* // Required. A Project id.
|
|
2744
|
+
* projectId: 'placeholder-value',
|
|
2745
|
+
* });
|
|
2746
|
+
* console.log(res.data);
|
|
2747
|
+
*
|
|
2748
|
+
* // Example response
|
|
2749
|
+
* // {
|
|
2750
|
+
* // "completionTime": {},
|
|
2751
|
+
* // "creationTime": {},
|
|
2752
|
+
* // "dimensionValue": [],
|
|
2753
|
+
* // "displayName": "my_displayName",
|
|
2754
|
+
* // "environmentId": "my_environmentId",
|
|
2755
|
+
* // "environmentResult": {},
|
|
2756
|
+
* // "executionId": "my_executionId",
|
|
2757
|
+
* // "historyId": "my_historyId",
|
|
2758
|
+
* // "projectId": "my_projectId",
|
|
2759
|
+
* // "resultsStorage": {},
|
|
2760
|
+
* // "shardSummaries": []
|
|
2761
|
+
* // }
|
|
2762
|
+
* }
|
|
2763
|
+
*
|
|
2764
|
+
* main().catch(e => {
|
|
2765
|
+
* console.error(e);
|
|
2766
|
+
* throw e;
|
|
2767
|
+
* });
|
|
2768
|
+
*
|
|
2769
|
+
* ```
|
|
2087
2770
|
*
|
|
2088
2771
|
* @param params - Parameters for request
|
|
2089
2772
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2098,6 +2781,66 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2098
2781
|
get(callback: BodyResponseCallback<Schema$Environment>): void;
|
|
2099
2782
|
/**
|
|
2100
2783
|
* 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 authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing Execution does not exist
|
|
2784
|
+
* @example
|
|
2785
|
+
* ```js
|
|
2786
|
+
* // Before running the sample:
|
|
2787
|
+
* // - Enable the API at:
|
|
2788
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2789
|
+
* // - Login into gcloud by running:
|
|
2790
|
+
* // ```sh
|
|
2791
|
+
* // $ gcloud auth application-default login
|
|
2792
|
+
* // ```
|
|
2793
|
+
* // - Install the npm module by running:
|
|
2794
|
+
* // ```sh
|
|
2795
|
+
* // $ npm install googleapis
|
|
2796
|
+
* // ```
|
|
2797
|
+
*
|
|
2798
|
+
* const {google} = require('googleapis');
|
|
2799
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
2800
|
+
*
|
|
2801
|
+
* async function main() {
|
|
2802
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2803
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2804
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2805
|
+
* });
|
|
2806
|
+
*
|
|
2807
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2808
|
+
* const authClient = await auth.getClient();
|
|
2809
|
+
* google.options({auth: authClient});
|
|
2810
|
+
*
|
|
2811
|
+
* // Do the magic
|
|
2812
|
+
* const res = await toolresults.projects.histories.executions.environments.list(
|
|
2813
|
+
* {
|
|
2814
|
+
* // Required. An Execution id.
|
|
2815
|
+
* executionId: 'placeholder-value',
|
|
2816
|
+
* // Required. A History id.
|
|
2817
|
+
* historyId: 'placeholder-value',
|
|
2818
|
+
* // The maximum number of Environments to fetch. Default value: 25. The server will use this default if the field is not set or has a value of 0.
|
|
2819
|
+
* pageSize: 'placeholder-value',
|
|
2820
|
+
* // A continuation token to resume the query at the next item.
|
|
2821
|
+
* pageToken: 'placeholder-value',
|
|
2822
|
+
* // Required. A Project id.
|
|
2823
|
+
* projectId: 'placeholder-value',
|
|
2824
|
+
* },
|
|
2825
|
+
* );
|
|
2826
|
+
* console.log(res.data);
|
|
2827
|
+
*
|
|
2828
|
+
* // Example response
|
|
2829
|
+
* // {
|
|
2830
|
+
* // "environments": [],
|
|
2831
|
+
* // "executionId": "my_executionId",
|
|
2832
|
+
* // "historyId": "my_historyId",
|
|
2833
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
2834
|
+
* // "projectId": "my_projectId"
|
|
2835
|
+
* // }
|
|
2836
|
+
* }
|
|
2837
|
+
*
|
|
2838
|
+
* main().catch(e => {
|
|
2839
|
+
* console.error(e);
|
|
2840
|
+
* throw e;
|
|
2841
|
+
* });
|
|
2842
|
+
*
|
|
2843
|
+
* ```
|
|
2101
2844
|
*
|
|
2102
2845
|
* @param params - Parameters for request
|
|
2103
2846
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2160,6 +2903,58 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2160
2903
|
constructor(context: APIRequestContext);
|
|
2161
2904
|
/**
|
|
2162
2905
|
* 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 - 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 containing Step does not exist
|
|
2906
|
+
* @example
|
|
2907
|
+
* ```js
|
|
2908
|
+
* // Before running the sample:
|
|
2909
|
+
* // - Enable the API at:
|
|
2910
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2911
|
+
* // - Login into gcloud by running:
|
|
2912
|
+
* // ```sh
|
|
2913
|
+
* // $ gcloud auth application-default login
|
|
2914
|
+
* // ```
|
|
2915
|
+
* // - Install the npm module by running:
|
|
2916
|
+
* // ```sh
|
|
2917
|
+
* // $ npm install googleapis
|
|
2918
|
+
* // ```
|
|
2919
|
+
*
|
|
2920
|
+
* const {google} = require('googleapis');
|
|
2921
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
2922
|
+
*
|
|
2923
|
+
* async function main() {
|
|
2924
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2925
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2926
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2927
|
+
* });
|
|
2928
|
+
*
|
|
2929
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2930
|
+
* const authClient = await auth.getClient();
|
|
2931
|
+
* google.options({auth: authClient});
|
|
2932
|
+
*
|
|
2933
|
+
* // Do the magic
|
|
2934
|
+
* const res =
|
|
2935
|
+
* await toolresults.projects.histories.executions.steps.accessibilityClusters(
|
|
2936
|
+
* {
|
|
2937
|
+
* // The accepted format is the canonical Unicode format with hyphen as a delimiter. Language must be lowercase, Language Script - Capitalized, Region - UPPERCASE. See http://www.unicode.org/reports/tr35/#Unicode_locale_identifier for details. Required.
|
|
2938
|
+
* locale: 'placeholder-value',
|
|
2939
|
+
* // A full resource name of the step. For example, projects/my-project/histories/bh.1234567890abcdef/executions/ 1234567890123456789/steps/bs.1234567890abcdef Required.
|
|
2940
|
+
* name: 'projects/my-project/histories/my-historie/executions/my-execution/steps/my-step',
|
|
2941
|
+
* },
|
|
2942
|
+
* );
|
|
2943
|
+
* console.log(res.data);
|
|
2944
|
+
*
|
|
2945
|
+
* // Example response
|
|
2946
|
+
* // {
|
|
2947
|
+
* // "clusters": [],
|
|
2948
|
+
* // "name": "my_name"
|
|
2949
|
+
* // }
|
|
2950
|
+
* }
|
|
2951
|
+
*
|
|
2952
|
+
* main().catch(e => {
|
|
2953
|
+
* console.error(e);
|
|
2954
|
+
* throw e;
|
|
2955
|
+
* });
|
|
2956
|
+
*
|
|
2957
|
+
* ```
|
|
2163
2958
|
*
|
|
2164
2959
|
* @param params - Parameters for request
|
|
2165
2960
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2174,6 +2969,94 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2174
2969
|
accessibilityClusters(callback: BodyResponseCallback<Schema$ListStepAccessibilityClustersResponse>): void;
|
|
2175
2970
|
/**
|
|
2176
2971
|
* 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 - 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
|
|
2972
|
+
* @example
|
|
2973
|
+
* ```js
|
|
2974
|
+
* // Before running the sample:
|
|
2975
|
+
* // - Enable the API at:
|
|
2976
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2977
|
+
* // - Login into gcloud by running:
|
|
2978
|
+
* // ```sh
|
|
2979
|
+
* // $ gcloud auth application-default login
|
|
2980
|
+
* // ```
|
|
2981
|
+
* // - Install the npm module by running:
|
|
2982
|
+
* // ```sh
|
|
2983
|
+
* // $ npm install googleapis
|
|
2984
|
+
* // ```
|
|
2985
|
+
*
|
|
2986
|
+
* const {google} = require('googleapis');
|
|
2987
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
2988
|
+
*
|
|
2989
|
+
* async function main() {
|
|
2990
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2991
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2992
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2993
|
+
* });
|
|
2994
|
+
*
|
|
2995
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2996
|
+
* const authClient = await auth.getClient();
|
|
2997
|
+
* google.options({auth: authClient});
|
|
2998
|
+
*
|
|
2999
|
+
* // Do the magic
|
|
3000
|
+
* const res = await toolresults.projects.histories.executions.steps.create({
|
|
3001
|
+
* // Required. An Execution id.
|
|
3002
|
+
* executionId: 'placeholder-value',
|
|
3003
|
+
* // Required. A History id.
|
|
3004
|
+
* historyId: 'placeholder-value',
|
|
3005
|
+
* // Required. A Project id.
|
|
3006
|
+
* projectId: 'placeholder-value',
|
|
3007
|
+
* // A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
|
|
3008
|
+
* requestId: 'placeholder-value',
|
|
3009
|
+
*
|
|
3010
|
+
* // Request body metadata
|
|
3011
|
+
* requestBody: {
|
|
3012
|
+
* // request body parameters
|
|
3013
|
+
* // {
|
|
3014
|
+
* // "completionTime": {},
|
|
3015
|
+
* // "creationTime": {},
|
|
3016
|
+
* // "description": "my_description",
|
|
3017
|
+
* // "deviceUsageDuration": {},
|
|
3018
|
+
* // "dimensionValue": [],
|
|
3019
|
+
* // "hasImages": false,
|
|
3020
|
+
* // "labels": [],
|
|
3021
|
+
* // "multiStep": {},
|
|
3022
|
+
* // "name": "my_name",
|
|
3023
|
+
* // "outcome": {},
|
|
3024
|
+
* // "runDuration": {},
|
|
3025
|
+
* // "state": "my_state",
|
|
3026
|
+
* // "stepId": "my_stepId",
|
|
3027
|
+
* // "testExecutionStep": {},
|
|
3028
|
+
* // "toolExecutionStep": {}
|
|
3029
|
+
* // }
|
|
3030
|
+
* },
|
|
3031
|
+
* });
|
|
3032
|
+
* console.log(res.data);
|
|
3033
|
+
*
|
|
3034
|
+
* // Example response
|
|
3035
|
+
* // {
|
|
3036
|
+
* // "completionTime": {},
|
|
3037
|
+
* // "creationTime": {},
|
|
3038
|
+
* // "description": "my_description",
|
|
3039
|
+
* // "deviceUsageDuration": {},
|
|
3040
|
+
* // "dimensionValue": [],
|
|
3041
|
+
* // "hasImages": false,
|
|
3042
|
+
* // "labels": [],
|
|
3043
|
+
* // "multiStep": {},
|
|
3044
|
+
* // "name": "my_name",
|
|
3045
|
+
* // "outcome": {},
|
|
3046
|
+
* // "runDuration": {},
|
|
3047
|
+
* // "state": "my_state",
|
|
3048
|
+
* // "stepId": "my_stepId",
|
|
3049
|
+
* // "testExecutionStep": {},
|
|
3050
|
+
* // "toolExecutionStep": {}
|
|
3051
|
+
* // }
|
|
3052
|
+
* }
|
|
3053
|
+
*
|
|
3054
|
+
* main().catch(e => {
|
|
3055
|
+
* console.error(e);
|
|
3056
|
+
* throw e;
|
|
3057
|
+
* });
|
|
3058
|
+
*
|
|
3059
|
+
* ```
|
|
2177
3060
|
*
|
|
2178
3061
|
* @param params - Parameters for request
|
|
2179
3062
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2188,6 +3071,72 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2188
3071
|
create(callback: BodyResponseCallback<Schema$Step>): void;
|
|
2189
3072
|
/**
|
|
2190
3073
|
* 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 - NOT_FOUND - if the Step does not exist
|
|
3074
|
+
* @example
|
|
3075
|
+
* ```js
|
|
3076
|
+
* // Before running the sample:
|
|
3077
|
+
* // - Enable the API at:
|
|
3078
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3079
|
+
* // - Login into gcloud by running:
|
|
3080
|
+
* // ```sh
|
|
3081
|
+
* // $ gcloud auth application-default login
|
|
3082
|
+
* // ```
|
|
3083
|
+
* // - Install the npm module by running:
|
|
3084
|
+
* // ```sh
|
|
3085
|
+
* // $ npm install googleapis
|
|
3086
|
+
* // ```
|
|
3087
|
+
*
|
|
3088
|
+
* const {google} = require('googleapis');
|
|
3089
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
3090
|
+
*
|
|
3091
|
+
* async function main() {
|
|
3092
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3093
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3094
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3095
|
+
* });
|
|
3096
|
+
*
|
|
3097
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3098
|
+
* const authClient = await auth.getClient();
|
|
3099
|
+
* google.options({auth: authClient});
|
|
3100
|
+
*
|
|
3101
|
+
* // Do the magic
|
|
3102
|
+
* const res = await toolresults.projects.histories.executions.steps.get({
|
|
3103
|
+
* // A Execution id. Required.
|
|
3104
|
+
* executionId: 'placeholder-value',
|
|
3105
|
+
* // A History id. Required.
|
|
3106
|
+
* historyId: 'placeholder-value',
|
|
3107
|
+
* // A Project id. Required.
|
|
3108
|
+
* projectId: 'placeholder-value',
|
|
3109
|
+
* // A Step id. Required.
|
|
3110
|
+
* stepId: 'placeholder-value',
|
|
3111
|
+
* });
|
|
3112
|
+
* console.log(res.data);
|
|
3113
|
+
*
|
|
3114
|
+
* // Example response
|
|
3115
|
+
* // {
|
|
3116
|
+
* // "completionTime": {},
|
|
3117
|
+
* // "creationTime": {},
|
|
3118
|
+
* // "description": "my_description",
|
|
3119
|
+
* // "deviceUsageDuration": {},
|
|
3120
|
+
* // "dimensionValue": [],
|
|
3121
|
+
* // "hasImages": false,
|
|
3122
|
+
* // "labels": [],
|
|
3123
|
+
* // "multiStep": {},
|
|
3124
|
+
* // "name": "my_name",
|
|
3125
|
+
* // "outcome": {},
|
|
3126
|
+
* // "runDuration": {},
|
|
3127
|
+
* // "state": "my_state",
|
|
3128
|
+
* // "stepId": "my_stepId",
|
|
3129
|
+
* // "testExecutionStep": {},
|
|
3130
|
+
* // "toolExecutionStep": {}
|
|
3131
|
+
* // }
|
|
3132
|
+
* }
|
|
3133
|
+
*
|
|
3134
|
+
* main().catch(e => {
|
|
3135
|
+
* console.error(e);
|
|
3136
|
+
* throw e;
|
|
3137
|
+
* });
|
|
3138
|
+
*
|
|
3139
|
+
* ```
|
|
2191
3140
|
*
|
|
2192
3141
|
* @param params - Parameters for request
|
|
2193
3142
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2202,6 +3151,68 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2202
3151
|
get(callback: BodyResponseCallback<Schema$Step>): void;
|
|
2203
3152
|
/**
|
|
2204
3153
|
* Retrieves a PerfMetricsSummary. May return any of the following error code(s): - NOT_FOUND - The specified PerfMetricsSummary does not exist
|
|
3154
|
+
* @example
|
|
3155
|
+
* ```js
|
|
3156
|
+
* // Before running the sample:
|
|
3157
|
+
* // - Enable the API at:
|
|
3158
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3159
|
+
* // - Login into gcloud by running:
|
|
3160
|
+
* // ```sh
|
|
3161
|
+
* // $ gcloud auth application-default login
|
|
3162
|
+
* // ```
|
|
3163
|
+
* // - Install the npm module by running:
|
|
3164
|
+
* // ```sh
|
|
3165
|
+
* // $ npm install googleapis
|
|
3166
|
+
* // ```
|
|
3167
|
+
*
|
|
3168
|
+
* const {google} = require('googleapis');
|
|
3169
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
3170
|
+
*
|
|
3171
|
+
* async function main() {
|
|
3172
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3173
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3174
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3175
|
+
* });
|
|
3176
|
+
*
|
|
3177
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3178
|
+
* const authClient = await auth.getClient();
|
|
3179
|
+
* google.options({auth: authClient});
|
|
3180
|
+
*
|
|
3181
|
+
* // Do the magic
|
|
3182
|
+
* const res =
|
|
3183
|
+
* await toolresults.projects.histories.executions.steps.getPerfMetricsSummary(
|
|
3184
|
+
* {
|
|
3185
|
+
* // A tool results execution ID.
|
|
3186
|
+
* executionId: 'placeholder-value',
|
|
3187
|
+
* // A tool results history ID.
|
|
3188
|
+
* historyId: 'placeholder-value',
|
|
3189
|
+
* // The cloud project
|
|
3190
|
+
* projectId: 'placeholder-value',
|
|
3191
|
+
* // A tool results step ID.
|
|
3192
|
+
* stepId: 'placeholder-value',
|
|
3193
|
+
* },
|
|
3194
|
+
* );
|
|
3195
|
+
* console.log(res.data);
|
|
3196
|
+
*
|
|
3197
|
+
* // Example response
|
|
3198
|
+
* // {
|
|
3199
|
+
* // "appStartTime": {},
|
|
3200
|
+
* // "executionId": "my_executionId",
|
|
3201
|
+
* // "graphicsStats": {},
|
|
3202
|
+
* // "historyId": "my_historyId",
|
|
3203
|
+
* // "perfEnvironment": {},
|
|
3204
|
+
* // "perfMetrics": [],
|
|
3205
|
+
* // "projectId": "my_projectId",
|
|
3206
|
+
* // "stepId": "my_stepId"
|
|
3207
|
+
* // }
|
|
3208
|
+
* }
|
|
3209
|
+
*
|
|
3210
|
+
* main().catch(e => {
|
|
3211
|
+
* console.error(e);
|
|
3212
|
+
* throw e;
|
|
3213
|
+
* });
|
|
3214
|
+
*
|
|
3215
|
+
* ```
|
|
2205
3216
|
*
|
|
2206
3217
|
* @param params - Parameters for request
|
|
2207
3218
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2216,6 +3227,61 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2216
3227
|
getPerfMetricsSummary(callback: BodyResponseCallback<Schema$PerfMetricsSummary>): void;
|
|
2217
3228
|
/**
|
|
2218
3229
|
* 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 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 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
|
|
3230
|
+
* @example
|
|
3231
|
+
* ```js
|
|
3232
|
+
* // Before running the sample:
|
|
3233
|
+
* // - Enable the API at:
|
|
3234
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3235
|
+
* // - Login into gcloud by running:
|
|
3236
|
+
* // ```sh
|
|
3237
|
+
* // $ gcloud auth application-default login
|
|
3238
|
+
* // ```
|
|
3239
|
+
* // - Install the npm module by running:
|
|
3240
|
+
* // ```sh
|
|
3241
|
+
* // $ npm install googleapis
|
|
3242
|
+
* // ```
|
|
3243
|
+
*
|
|
3244
|
+
* const {google} = require('googleapis');
|
|
3245
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
3246
|
+
*
|
|
3247
|
+
* async function main() {
|
|
3248
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3249
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3250
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3251
|
+
* });
|
|
3252
|
+
*
|
|
3253
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3254
|
+
* const authClient = await auth.getClient();
|
|
3255
|
+
* google.options({auth: authClient});
|
|
3256
|
+
*
|
|
3257
|
+
* // Do the magic
|
|
3258
|
+
* const res = await toolresults.projects.histories.executions.steps.list({
|
|
3259
|
+
* // A Execution id. Required.
|
|
3260
|
+
* executionId: 'placeholder-value',
|
|
3261
|
+
* // A History id. Required.
|
|
3262
|
+
* historyId: 'placeholder-value',
|
|
3263
|
+
* // The maximum number of Steps to fetch. Default value: 25. The server will use this default if the field is not set or has a value of 0. Optional.
|
|
3264
|
+
* pageSize: 'placeholder-value',
|
|
3265
|
+
* // A continuation token to resume the query at the next item. Optional.
|
|
3266
|
+
* pageToken: 'placeholder-value',
|
|
3267
|
+
* // A Project id. Required.
|
|
3268
|
+
* projectId: 'placeholder-value',
|
|
3269
|
+
* });
|
|
3270
|
+
* console.log(res.data);
|
|
3271
|
+
*
|
|
3272
|
+
* // Example response
|
|
3273
|
+
* // {
|
|
3274
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3275
|
+
* // "steps": []
|
|
3276
|
+
* // }
|
|
3277
|
+
* }
|
|
3278
|
+
*
|
|
3279
|
+
* main().catch(e => {
|
|
3280
|
+
* console.error(e);
|
|
3281
|
+
* throw e;
|
|
3282
|
+
* });
|
|
3283
|
+
*
|
|
3284
|
+
* ```
|
|
2219
3285
|
*
|
|
2220
3286
|
* @param params - Parameters for request
|
|
2221
3287
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2230,6 +3296,96 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2230
3296
|
list(callback: BodyResponseCallback<Schema$ListStepsResponse>): void;
|
|
2231
3297
|
/**
|
|
2232
3298
|
* 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 - 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 large (more than 10Mib) - NOT_FOUND - if the containing Execution does not exist
|
|
3299
|
+
* @example
|
|
3300
|
+
* ```js
|
|
3301
|
+
* // Before running the sample:
|
|
3302
|
+
* // - Enable the API at:
|
|
3303
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3304
|
+
* // - Login into gcloud by running:
|
|
3305
|
+
* // ```sh
|
|
3306
|
+
* // $ gcloud auth application-default login
|
|
3307
|
+
* // ```
|
|
3308
|
+
* // - Install the npm module by running:
|
|
3309
|
+
* // ```sh
|
|
3310
|
+
* // $ npm install googleapis
|
|
3311
|
+
* // ```
|
|
3312
|
+
*
|
|
3313
|
+
* const {google} = require('googleapis');
|
|
3314
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
3315
|
+
*
|
|
3316
|
+
* async function main() {
|
|
3317
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3318
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3319
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3320
|
+
* });
|
|
3321
|
+
*
|
|
3322
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3323
|
+
* const authClient = await auth.getClient();
|
|
3324
|
+
* google.options({auth: authClient});
|
|
3325
|
+
*
|
|
3326
|
+
* // Do the magic
|
|
3327
|
+
* const res = await toolresults.projects.histories.executions.steps.patch({
|
|
3328
|
+
* // A Execution id. Required.
|
|
3329
|
+
* executionId: 'placeholder-value',
|
|
3330
|
+
* // A History id. Required.
|
|
3331
|
+
* historyId: 'placeholder-value',
|
|
3332
|
+
* // A Project id. Required.
|
|
3333
|
+
* projectId: 'placeholder-value',
|
|
3334
|
+
* // A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
|
|
3335
|
+
* requestId: 'placeholder-value',
|
|
3336
|
+
* // A Step id. Required.
|
|
3337
|
+
* stepId: 'placeholder-value',
|
|
3338
|
+
*
|
|
3339
|
+
* // Request body metadata
|
|
3340
|
+
* requestBody: {
|
|
3341
|
+
* // request body parameters
|
|
3342
|
+
* // {
|
|
3343
|
+
* // "completionTime": {},
|
|
3344
|
+
* // "creationTime": {},
|
|
3345
|
+
* // "description": "my_description",
|
|
3346
|
+
* // "deviceUsageDuration": {},
|
|
3347
|
+
* // "dimensionValue": [],
|
|
3348
|
+
* // "hasImages": false,
|
|
3349
|
+
* // "labels": [],
|
|
3350
|
+
* // "multiStep": {},
|
|
3351
|
+
* // "name": "my_name",
|
|
3352
|
+
* // "outcome": {},
|
|
3353
|
+
* // "runDuration": {},
|
|
3354
|
+
* // "state": "my_state",
|
|
3355
|
+
* // "stepId": "my_stepId",
|
|
3356
|
+
* // "testExecutionStep": {},
|
|
3357
|
+
* // "toolExecutionStep": {}
|
|
3358
|
+
* // }
|
|
3359
|
+
* },
|
|
3360
|
+
* });
|
|
3361
|
+
* console.log(res.data);
|
|
3362
|
+
*
|
|
3363
|
+
* // Example response
|
|
3364
|
+
* // {
|
|
3365
|
+
* // "completionTime": {},
|
|
3366
|
+
* // "creationTime": {},
|
|
3367
|
+
* // "description": "my_description",
|
|
3368
|
+
* // "deviceUsageDuration": {},
|
|
3369
|
+
* // "dimensionValue": [],
|
|
3370
|
+
* // "hasImages": false,
|
|
3371
|
+
* // "labels": [],
|
|
3372
|
+
* // "multiStep": {},
|
|
3373
|
+
* // "name": "my_name",
|
|
3374
|
+
* // "outcome": {},
|
|
3375
|
+
* // "runDuration": {},
|
|
3376
|
+
* // "state": "my_state",
|
|
3377
|
+
* // "stepId": "my_stepId",
|
|
3378
|
+
* // "testExecutionStep": {},
|
|
3379
|
+
* // "toolExecutionStep": {}
|
|
3380
|
+
* // }
|
|
3381
|
+
* }
|
|
3382
|
+
*
|
|
3383
|
+
* main().catch(e => {
|
|
3384
|
+
* console.error(e);
|
|
3385
|
+
* throw e;
|
|
3386
|
+
* });
|
|
3387
|
+
*
|
|
3388
|
+
* ```
|
|
2233
3389
|
*
|
|
2234
3390
|
* @param params - Parameters for request
|
|
2235
3391
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2244,6 +3400,81 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2244
3400
|
patch(callback: BodyResponseCallback<Schema$Step>): void;
|
|
2245
3401
|
/**
|
|
2246
3402
|
* 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 - 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 containing Execution does not exist
|
|
3403
|
+
* @example
|
|
3404
|
+
* ```js
|
|
3405
|
+
* // Before running the sample:
|
|
3406
|
+
* // - Enable the API at:
|
|
3407
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3408
|
+
* // - Login into gcloud by running:
|
|
3409
|
+
* // ```sh
|
|
3410
|
+
* // $ gcloud auth application-default login
|
|
3411
|
+
* // ```
|
|
3412
|
+
* // - Install the npm module by running:
|
|
3413
|
+
* // ```sh
|
|
3414
|
+
* // $ npm install googleapis
|
|
3415
|
+
* // ```
|
|
3416
|
+
*
|
|
3417
|
+
* const {google} = require('googleapis');
|
|
3418
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
3419
|
+
*
|
|
3420
|
+
* async function main() {
|
|
3421
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3422
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3423
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3424
|
+
* });
|
|
3425
|
+
*
|
|
3426
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3427
|
+
* const authClient = await auth.getClient();
|
|
3428
|
+
* google.options({auth: authClient});
|
|
3429
|
+
*
|
|
3430
|
+
* // Do the magic
|
|
3431
|
+
* const res =
|
|
3432
|
+
* await toolresults.projects.histories.executions.steps.publishXunitXmlFiles({
|
|
3433
|
+
* // A Execution id. Required.
|
|
3434
|
+
* executionId: 'placeholder-value',
|
|
3435
|
+
* // A History id. Required.
|
|
3436
|
+
* historyId: 'placeholder-value',
|
|
3437
|
+
* // A Project id. Required.
|
|
3438
|
+
* projectId: 'placeholder-value',
|
|
3439
|
+
* // A Step id. Note: This step must include a TestExecutionStep. Required.
|
|
3440
|
+
* stepId: 'placeholder-value',
|
|
3441
|
+
*
|
|
3442
|
+
* // Request body metadata
|
|
3443
|
+
* requestBody: {
|
|
3444
|
+
* // request body parameters
|
|
3445
|
+
* // {
|
|
3446
|
+
* // "xunitXmlFiles": []
|
|
3447
|
+
* // }
|
|
3448
|
+
* },
|
|
3449
|
+
* });
|
|
3450
|
+
* console.log(res.data);
|
|
3451
|
+
*
|
|
3452
|
+
* // Example response
|
|
3453
|
+
* // {
|
|
3454
|
+
* // "completionTime": {},
|
|
3455
|
+
* // "creationTime": {},
|
|
3456
|
+
* // "description": "my_description",
|
|
3457
|
+
* // "deviceUsageDuration": {},
|
|
3458
|
+
* // "dimensionValue": [],
|
|
3459
|
+
* // "hasImages": false,
|
|
3460
|
+
* // "labels": [],
|
|
3461
|
+
* // "multiStep": {},
|
|
3462
|
+
* // "name": "my_name",
|
|
3463
|
+
* // "outcome": {},
|
|
3464
|
+
* // "runDuration": {},
|
|
3465
|
+
* // "state": "my_state",
|
|
3466
|
+
* // "stepId": "my_stepId",
|
|
3467
|
+
* // "testExecutionStep": {},
|
|
3468
|
+
* // "toolExecutionStep": {}
|
|
3469
|
+
* // }
|
|
3470
|
+
* }
|
|
3471
|
+
*
|
|
3472
|
+
* main().catch(e => {
|
|
3473
|
+
* console.error(e);
|
|
3474
|
+
* throw e;
|
|
3475
|
+
* });
|
|
3476
|
+
*
|
|
3477
|
+
* ```
|
|
2247
3478
|
*
|
|
2248
3479
|
* @param params - Parameters for request
|
|
2249
3480
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2400,6 +3631,83 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2400
3631
|
constructor(context: APIRequestContext);
|
|
2401
3632
|
/**
|
|
2402
3633
|
* 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 exist
|
|
3634
|
+
* @example
|
|
3635
|
+
* ```js
|
|
3636
|
+
* // Before running the sample:
|
|
3637
|
+
* // - Enable the API at:
|
|
3638
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3639
|
+
* // - Login into gcloud by running:
|
|
3640
|
+
* // ```sh
|
|
3641
|
+
* // $ gcloud auth application-default login
|
|
3642
|
+
* // ```
|
|
3643
|
+
* // - Install the npm module by running:
|
|
3644
|
+
* // ```sh
|
|
3645
|
+
* // $ npm install googleapis
|
|
3646
|
+
* // ```
|
|
3647
|
+
*
|
|
3648
|
+
* const {google} = require('googleapis');
|
|
3649
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
3650
|
+
*
|
|
3651
|
+
* async function main() {
|
|
3652
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3653
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3654
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3655
|
+
* });
|
|
3656
|
+
*
|
|
3657
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3658
|
+
* const authClient = await auth.getClient();
|
|
3659
|
+
* google.options({auth: authClient});
|
|
3660
|
+
*
|
|
3661
|
+
* // Do the magic
|
|
3662
|
+
* const res =
|
|
3663
|
+
* await toolresults.projects.histories.executions.steps.perfMetricsSummary.create(
|
|
3664
|
+
* {
|
|
3665
|
+
* // A tool results execution ID.
|
|
3666
|
+
* executionId: 'placeholder-value',
|
|
3667
|
+
* // A tool results history ID.
|
|
3668
|
+
* historyId: 'placeholder-value',
|
|
3669
|
+
* // The cloud project
|
|
3670
|
+
* projectId: 'placeholder-value',
|
|
3671
|
+
* // A tool results step ID.
|
|
3672
|
+
* stepId: 'placeholder-value',
|
|
3673
|
+
*
|
|
3674
|
+
* // Request body metadata
|
|
3675
|
+
* requestBody: {
|
|
3676
|
+
* // request body parameters
|
|
3677
|
+
* // {
|
|
3678
|
+
* // "appStartTime": {},
|
|
3679
|
+
* // "executionId": "my_executionId",
|
|
3680
|
+
* // "graphicsStats": {},
|
|
3681
|
+
* // "historyId": "my_historyId",
|
|
3682
|
+
* // "perfEnvironment": {},
|
|
3683
|
+
* // "perfMetrics": [],
|
|
3684
|
+
* // "projectId": "my_projectId",
|
|
3685
|
+
* // "stepId": "my_stepId"
|
|
3686
|
+
* // }
|
|
3687
|
+
* },
|
|
3688
|
+
* },
|
|
3689
|
+
* );
|
|
3690
|
+
* console.log(res.data);
|
|
3691
|
+
*
|
|
3692
|
+
* // Example response
|
|
3693
|
+
* // {
|
|
3694
|
+
* // "appStartTime": {},
|
|
3695
|
+
* // "executionId": "my_executionId",
|
|
3696
|
+
* // "graphicsStats": {},
|
|
3697
|
+
* // "historyId": "my_historyId",
|
|
3698
|
+
* // "perfEnvironment": {},
|
|
3699
|
+
* // "perfMetrics": [],
|
|
3700
|
+
* // "projectId": "my_projectId",
|
|
3701
|
+
* // "stepId": "my_stepId"
|
|
3702
|
+
* // }
|
|
3703
|
+
* }
|
|
3704
|
+
*
|
|
3705
|
+
* main().catch(e => {
|
|
3706
|
+
* console.error(e);
|
|
3707
|
+
* throw e;
|
|
3708
|
+
* });
|
|
3709
|
+
*
|
|
3710
|
+
* ```
|
|
2403
3711
|
*
|
|
2404
3712
|
* @param params - Parameters for request
|
|
2405
3713
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2441,6 +3749,79 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2441
3749
|
constructor(context: APIRequestContext);
|
|
2442
3750
|
/**
|
|
2443
3751
|
* 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 not exist
|
|
3752
|
+
* @example
|
|
3753
|
+
* ```js
|
|
3754
|
+
* // Before running the sample:
|
|
3755
|
+
* // - Enable the API at:
|
|
3756
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3757
|
+
* // - Login into gcloud by running:
|
|
3758
|
+
* // ```sh
|
|
3759
|
+
* // $ gcloud auth application-default login
|
|
3760
|
+
* // ```
|
|
3761
|
+
* // - Install the npm module by running:
|
|
3762
|
+
* // ```sh
|
|
3763
|
+
* // $ npm install googleapis
|
|
3764
|
+
* // ```
|
|
3765
|
+
*
|
|
3766
|
+
* const {google} = require('googleapis');
|
|
3767
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
3768
|
+
*
|
|
3769
|
+
* async function main() {
|
|
3770
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3771
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3772
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3773
|
+
* });
|
|
3774
|
+
*
|
|
3775
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3776
|
+
* const authClient = await auth.getClient();
|
|
3777
|
+
* google.options({auth: authClient});
|
|
3778
|
+
*
|
|
3779
|
+
* // Do the magic
|
|
3780
|
+
* const res =
|
|
3781
|
+
* await toolresults.projects.histories.executions.steps.perfSampleSeries.create(
|
|
3782
|
+
* {
|
|
3783
|
+
* // A tool results execution ID.
|
|
3784
|
+
* executionId: 'placeholder-value',
|
|
3785
|
+
* // A tool results history ID.
|
|
3786
|
+
* historyId: 'placeholder-value',
|
|
3787
|
+
* // The cloud project
|
|
3788
|
+
* projectId: 'placeholder-value',
|
|
3789
|
+
* // A tool results step ID.
|
|
3790
|
+
* stepId: 'placeholder-value',
|
|
3791
|
+
*
|
|
3792
|
+
* // Request body metadata
|
|
3793
|
+
* requestBody: {
|
|
3794
|
+
* // request body parameters
|
|
3795
|
+
* // {
|
|
3796
|
+
* // "basicPerfSampleSeries": {},
|
|
3797
|
+
* // "executionId": "my_executionId",
|
|
3798
|
+
* // "historyId": "my_historyId",
|
|
3799
|
+
* // "projectId": "my_projectId",
|
|
3800
|
+
* // "sampleSeriesId": "my_sampleSeriesId",
|
|
3801
|
+
* // "stepId": "my_stepId"
|
|
3802
|
+
* // }
|
|
3803
|
+
* },
|
|
3804
|
+
* },
|
|
3805
|
+
* );
|
|
3806
|
+
* console.log(res.data);
|
|
3807
|
+
*
|
|
3808
|
+
* // Example response
|
|
3809
|
+
* // {
|
|
3810
|
+
* // "basicPerfSampleSeries": {},
|
|
3811
|
+
* // "executionId": "my_executionId",
|
|
3812
|
+
* // "historyId": "my_historyId",
|
|
3813
|
+
* // "projectId": "my_projectId",
|
|
3814
|
+
* // "sampleSeriesId": "my_sampleSeriesId",
|
|
3815
|
+
* // "stepId": "my_stepId"
|
|
3816
|
+
* // }
|
|
3817
|
+
* }
|
|
3818
|
+
*
|
|
3819
|
+
* main().catch(e => {
|
|
3820
|
+
* console.error(e);
|
|
3821
|
+
* throw e;
|
|
3822
|
+
* });
|
|
3823
|
+
*
|
|
3824
|
+
* ```
|
|
2444
3825
|
*
|
|
2445
3826
|
* @param params - Parameters for request
|
|
2446
3827
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2455,6 +3836,66 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2455
3836
|
create(callback: BodyResponseCallback<Schema$PerfSampleSeries>): void;
|
|
2456
3837
|
/**
|
|
2457
3838
|
* Gets a PerfSampleSeries. May return any of the following error code(s): - NOT_FOUND - The specified PerfSampleSeries does not exist
|
|
3839
|
+
* @example
|
|
3840
|
+
* ```js
|
|
3841
|
+
* // Before running the sample:
|
|
3842
|
+
* // - Enable the API at:
|
|
3843
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3844
|
+
* // - Login into gcloud by running:
|
|
3845
|
+
* // ```sh
|
|
3846
|
+
* // $ gcloud auth application-default login
|
|
3847
|
+
* // ```
|
|
3848
|
+
* // - Install the npm module by running:
|
|
3849
|
+
* // ```sh
|
|
3850
|
+
* // $ npm install googleapis
|
|
3851
|
+
* // ```
|
|
3852
|
+
*
|
|
3853
|
+
* const {google} = require('googleapis');
|
|
3854
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
3855
|
+
*
|
|
3856
|
+
* async function main() {
|
|
3857
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3858
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3859
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3860
|
+
* });
|
|
3861
|
+
*
|
|
3862
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3863
|
+
* const authClient = await auth.getClient();
|
|
3864
|
+
* google.options({auth: authClient});
|
|
3865
|
+
*
|
|
3866
|
+
* // Do the magic
|
|
3867
|
+
* const res =
|
|
3868
|
+
* await toolresults.projects.histories.executions.steps.perfSampleSeries.get({
|
|
3869
|
+
* // A tool results execution ID.
|
|
3870
|
+
* executionId: 'placeholder-value',
|
|
3871
|
+
* // A tool results history ID.
|
|
3872
|
+
* historyId: 'placeholder-value',
|
|
3873
|
+
* // The cloud project
|
|
3874
|
+
* projectId: 'placeholder-value',
|
|
3875
|
+
* // A sample series id
|
|
3876
|
+
* sampleSeriesId: 'placeholder-value',
|
|
3877
|
+
* // A tool results step ID.
|
|
3878
|
+
* stepId: 'placeholder-value',
|
|
3879
|
+
* });
|
|
3880
|
+
* console.log(res.data);
|
|
3881
|
+
*
|
|
3882
|
+
* // Example response
|
|
3883
|
+
* // {
|
|
3884
|
+
* // "basicPerfSampleSeries": {},
|
|
3885
|
+
* // "executionId": "my_executionId",
|
|
3886
|
+
* // "historyId": "my_historyId",
|
|
3887
|
+
* // "projectId": "my_projectId",
|
|
3888
|
+
* // "sampleSeriesId": "my_sampleSeriesId",
|
|
3889
|
+
* // "stepId": "my_stepId"
|
|
3890
|
+
* // }
|
|
3891
|
+
* }
|
|
3892
|
+
*
|
|
3893
|
+
* main().catch(e => {
|
|
3894
|
+
* console.error(e);
|
|
3895
|
+
* throw e;
|
|
3896
|
+
* });
|
|
3897
|
+
*
|
|
3898
|
+
* ```
|
|
2458
3899
|
*
|
|
2459
3900
|
* @param params - Parameters for request
|
|
2460
3901
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2469,6 +3910,63 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2469
3910
|
get(callback: BodyResponseCallback<Schema$PerfSampleSeries>): void;
|
|
2470
3911
|
/**
|
|
2471
3912
|
* 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 PerfSampleSeries are sorted by ids. May return any of the following canonical error codes: - NOT_FOUND - The containing Step does not exist
|
|
3913
|
+
* @example
|
|
3914
|
+
* ```js
|
|
3915
|
+
* // Before running the sample:
|
|
3916
|
+
* // - Enable the API at:
|
|
3917
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3918
|
+
* // - Login into gcloud by running:
|
|
3919
|
+
* // ```sh
|
|
3920
|
+
* // $ gcloud auth application-default login
|
|
3921
|
+
* // ```
|
|
3922
|
+
* // - Install the npm module by running:
|
|
3923
|
+
* // ```sh
|
|
3924
|
+
* // $ npm install googleapis
|
|
3925
|
+
* // ```
|
|
3926
|
+
*
|
|
3927
|
+
* const {google} = require('googleapis');
|
|
3928
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
3929
|
+
*
|
|
3930
|
+
* async function main() {
|
|
3931
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3932
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3933
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3934
|
+
* });
|
|
3935
|
+
*
|
|
3936
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3937
|
+
* const authClient = await auth.getClient();
|
|
3938
|
+
* google.options({auth: authClient});
|
|
3939
|
+
*
|
|
3940
|
+
* // Do the magic
|
|
3941
|
+
* const res =
|
|
3942
|
+
* await toolresults.projects.histories.executions.steps.perfSampleSeries.list(
|
|
3943
|
+
* {
|
|
3944
|
+
* // A tool results execution ID.
|
|
3945
|
+
* executionId: 'placeholder-value',
|
|
3946
|
+
* // Specify one or more PerfMetricType values such as CPU to filter the result
|
|
3947
|
+
* filter: 'placeholder-value',
|
|
3948
|
+
* // A tool results history ID.
|
|
3949
|
+
* historyId: 'placeholder-value',
|
|
3950
|
+
* // The cloud project
|
|
3951
|
+
* projectId: 'placeholder-value',
|
|
3952
|
+
* // A tool results step ID.
|
|
3953
|
+
* stepId: 'placeholder-value',
|
|
3954
|
+
* },
|
|
3955
|
+
* );
|
|
3956
|
+
* console.log(res.data);
|
|
3957
|
+
*
|
|
3958
|
+
* // Example response
|
|
3959
|
+
* // {
|
|
3960
|
+
* // "perfSampleSeries": []
|
|
3961
|
+
* // }
|
|
3962
|
+
* }
|
|
3963
|
+
*
|
|
3964
|
+
* main().catch(e => {
|
|
3965
|
+
* console.error(e);
|
|
3966
|
+
* throw e;
|
|
3967
|
+
* });
|
|
3968
|
+
*
|
|
3969
|
+
* ```
|
|
2472
3970
|
*
|
|
2473
3971
|
* @param params - Parameters for request
|
|
2474
3972
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2553,6 +4051,71 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2553
4051
|
constructor(context: APIRequestContext);
|
|
2554
4052
|
/**
|
|
2555
4053
|
* 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 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 already existed in the database). May return any of the following canonical error codes: - NOT_FOUND - The containing PerfSampleSeries does not exist
|
|
4054
|
+
* @example
|
|
4055
|
+
* ```js
|
|
4056
|
+
* // Before running the sample:
|
|
4057
|
+
* // - Enable the API at:
|
|
4058
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
4059
|
+
* // - Login into gcloud by running:
|
|
4060
|
+
* // ```sh
|
|
4061
|
+
* // $ gcloud auth application-default login
|
|
4062
|
+
* // ```
|
|
4063
|
+
* // - Install the npm module by running:
|
|
4064
|
+
* // ```sh
|
|
4065
|
+
* // $ npm install googleapis
|
|
4066
|
+
* // ```
|
|
4067
|
+
*
|
|
4068
|
+
* const {google} = require('googleapis');
|
|
4069
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
4070
|
+
*
|
|
4071
|
+
* async function main() {
|
|
4072
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4073
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4074
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
4075
|
+
* });
|
|
4076
|
+
*
|
|
4077
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4078
|
+
* const authClient = await auth.getClient();
|
|
4079
|
+
* google.options({auth: authClient});
|
|
4080
|
+
*
|
|
4081
|
+
* // Do the magic
|
|
4082
|
+
* const res =
|
|
4083
|
+
* await toolresults.projects.histories.executions.steps.perfSampleSeries.samples.batchCreate(
|
|
4084
|
+
* {
|
|
4085
|
+
* // A tool results execution ID.
|
|
4086
|
+
* executionId: 'placeholder-value',
|
|
4087
|
+
* // A tool results history ID.
|
|
4088
|
+
* historyId: 'placeholder-value',
|
|
4089
|
+
* // The cloud project
|
|
4090
|
+
* projectId: 'placeholder-value',
|
|
4091
|
+
* // A sample series id
|
|
4092
|
+
* sampleSeriesId: 'placeholder-value',
|
|
4093
|
+
* // A tool results step ID.
|
|
4094
|
+
* stepId: 'placeholder-value',
|
|
4095
|
+
*
|
|
4096
|
+
* // Request body metadata
|
|
4097
|
+
* requestBody: {
|
|
4098
|
+
* // request body parameters
|
|
4099
|
+
* // {
|
|
4100
|
+
* // "perfSamples": []
|
|
4101
|
+
* // }
|
|
4102
|
+
* },
|
|
4103
|
+
* },
|
|
4104
|
+
* );
|
|
4105
|
+
* console.log(res.data);
|
|
4106
|
+
*
|
|
4107
|
+
* // Example response
|
|
4108
|
+
* // {
|
|
4109
|
+
* // "perfSamples": []
|
|
4110
|
+
* // }
|
|
4111
|
+
* }
|
|
4112
|
+
*
|
|
4113
|
+
* main().catch(e => {
|
|
4114
|
+
* console.error(e);
|
|
4115
|
+
* throw e;
|
|
4116
|
+
* });
|
|
4117
|
+
*
|
|
4118
|
+
* ```
|
|
2556
4119
|
*
|
|
2557
4120
|
* @param params - Parameters for request
|
|
2558
4121
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2567,6 +4130,68 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2567
4130
|
batchCreate(callback: BodyResponseCallback<Schema$BatchCreatePerfSamplesResponse>): void;
|
|
2568
4131
|
/**
|
|
2569
4132
|
* 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 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 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 containing PerfSampleSeries does not exist
|
|
4133
|
+
* @example
|
|
4134
|
+
* ```js
|
|
4135
|
+
* // Before running the sample:
|
|
4136
|
+
* // - Enable the API at:
|
|
4137
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
4138
|
+
* // - Login into gcloud by running:
|
|
4139
|
+
* // ```sh
|
|
4140
|
+
* // $ gcloud auth application-default login
|
|
4141
|
+
* // ```
|
|
4142
|
+
* // - Install the npm module by running:
|
|
4143
|
+
* // ```sh
|
|
4144
|
+
* // $ npm install googleapis
|
|
4145
|
+
* // ```
|
|
4146
|
+
*
|
|
4147
|
+
* const {google} = require('googleapis');
|
|
4148
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
4149
|
+
*
|
|
4150
|
+
* async function main() {
|
|
4151
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4152
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4153
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
4154
|
+
* });
|
|
4155
|
+
*
|
|
4156
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4157
|
+
* const authClient = await auth.getClient();
|
|
4158
|
+
* google.options({auth: authClient});
|
|
4159
|
+
*
|
|
4160
|
+
* // Do the magic
|
|
4161
|
+
* const res =
|
|
4162
|
+
* await toolresults.projects.histories.executions.steps.perfSampleSeries.samples.list(
|
|
4163
|
+
* {
|
|
4164
|
+
* // A tool results execution ID.
|
|
4165
|
+
* executionId: 'placeholder-value',
|
|
4166
|
+
* // A tool results history ID.
|
|
4167
|
+
* historyId: 'placeholder-value',
|
|
4168
|
+
* // The default page size is 500 samples, and the maximum size is 5000. If the page_size is greater than 5000, the effective page size will be 5000
|
|
4169
|
+
* pageSize: 'placeholder-value',
|
|
4170
|
+
* // Optional, the next_page_token returned in the previous response
|
|
4171
|
+
* pageToken: 'placeholder-value',
|
|
4172
|
+
* // The cloud project
|
|
4173
|
+
* projectId: 'placeholder-value',
|
|
4174
|
+
* // A sample series id
|
|
4175
|
+
* sampleSeriesId: 'placeholder-value',
|
|
4176
|
+
* // A tool results step ID.
|
|
4177
|
+
* stepId: 'placeholder-value',
|
|
4178
|
+
* },
|
|
4179
|
+
* );
|
|
4180
|
+
* console.log(res.data);
|
|
4181
|
+
*
|
|
4182
|
+
* // Example response
|
|
4183
|
+
* // {
|
|
4184
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4185
|
+
* // "perfSamples": []
|
|
4186
|
+
* // }
|
|
4187
|
+
* }
|
|
4188
|
+
*
|
|
4189
|
+
* main().catch(e => {
|
|
4190
|
+
* console.error(e);
|
|
4191
|
+
* throw e;
|
|
4192
|
+
* });
|
|
4193
|
+
*
|
|
4194
|
+
* ```
|
|
2570
4195
|
*
|
|
2571
4196
|
* @param params - Parameters for request
|
|
2572
4197
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2641,6 +4266,69 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2641
4266
|
constructor(context: APIRequestContext);
|
|
2642
4267
|
/**
|
|
2643
4268
|
* 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 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
|
|
4269
|
+
* @example
|
|
4270
|
+
* ```js
|
|
4271
|
+
* // Before running the sample:
|
|
4272
|
+
* // - Enable the API at:
|
|
4273
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
4274
|
+
* // - Login into gcloud by running:
|
|
4275
|
+
* // ```sh
|
|
4276
|
+
* // $ gcloud auth application-default login
|
|
4277
|
+
* // ```
|
|
4278
|
+
* // - Install the npm module by running:
|
|
4279
|
+
* // ```sh
|
|
4280
|
+
* // $ npm install googleapis
|
|
4281
|
+
* // ```
|
|
4282
|
+
*
|
|
4283
|
+
* const {google} = require('googleapis');
|
|
4284
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
4285
|
+
*
|
|
4286
|
+
* async function main() {
|
|
4287
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4288
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4289
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
4290
|
+
* });
|
|
4291
|
+
*
|
|
4292
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4293
|
+
* const authClient = await auth.getClient();
|
|
4294
|
+
* google.options({auth: authClient});
|
|
4295
|
+
*
|
|
4296
|
+
* // Do the magic
|
|
4297
|
+
* const res =
|
|
4298
|
+
* await toolresults.projects.histories.executions.steps.testCases.get({
|
|
4299
|
+
* // A Execution id Required.
|
|
4300
|
+
* executionId: 'placeholder-value',
|
|
4301
|
+
* // A History id. Required.
|
|
4302
|
+
* historyId: 'placeholder-value',
|
|
4303
|
+
* // A Project id. Required.
|
|
4304
|
+
* projectId: 'placeholder-value',
|
|
4305
|
+
* // A Step id. Note: This step must include a TestExecutionStep. Required.
|
|
4306
|
+
* stepId: 'placeholder-value',
|
|
4307
|
+
* // A Test Case id. Required.
|
|
4308
|
+
* testCaseId: 'placeholder-value',
|
|
4309
|
+
* });
|
|
4310
|
+
* console.log(res.data);
|
|
4311
|
+
*
|
|
4312
|
+
* // Example response
|
|
4313
|
+
* // {
|
|
4314
|
+
* // "elapsedTime": {},
|
|
4315
|
+
* // "endTime": {},
|
|
4316
|
+
* // "skippedMessage": "my_skippedMessage",
|
|
4317
|
+
* // "stackTraces": [],
|
|
4318
|
+
* // "startTime": {},
|
|
4319
|
+
* // "status": "my_status",
|
|
4320
|
+
* // "testCaseId": "my_testCaseId",
|
|
4321
|
+
* // "testCaseReference": {},
|
|
4322
|
+
* // "toolOutputs": []
|
|
4323
|
+
* // }
|
|
4324
|
+
* }
|
|
4325
|
+
*
|
|
4326
|
+
* main().catch(e => {
|
|
4327
|
+
* console.error(e);
|
|
4328
|
+
* throw e;
|
|
4329
|
+
* });
|
|
4330
|
+
*
|
|
4331
|
+
* ```
|
|
2644
4332
|
*
|
|
2645
4333
|
* @param params - Parameters for request
|
|
2646
4334
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2655,6 +4343,64 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2655
4343
|
get(callback: BodyResponseCallback<Schema$TestCase>): void;
|
|
2656
4344
|
/**
|
|
2657
4345
|
* 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 is not authorized to write to project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the containing Step does not exist
|
|
4346
|
+
* @example
|
|
4347
|
+
* ```js
|
|
4348
|
+
* // Before running the sample:
|
|
4349
|
+
* // - Enable the API at:
|
|
4350
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
4351
|
+
* // - Login into gcloud by running:
|
|
4352
|
+
* // ```sh
|
|
4353
|
+
* // $ gcloud auth application-default login
|
|
4354
|
+
* // ```
|
|
4355
|
+
* // - Install the npm module by running:
|
|
4356
|
+
* // ```sh
|
|
4357
|
+
* // $ npm install googleapis
|
|
4358
|
+
* // ```
|
|
4359
|
+
*
|
|
4360
|
+
* const {google} = require('googleapis');
|
|
4361
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
4362
|
+
*
|
|
4363
|
+
* async function main() {
|
|
4364
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4365
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4366
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
4367
|
+
* });
|
|
4368
|
+
*
|
|
4369
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4370
|
+
* const authClient = await auth.getClient();
|
|
4371
|
+
* google.options({auth: authClient});
|
|
4372
|
+
*
|
|
4373
|
+
* // Do the magic
|
|
4374
|
+
* const res =
|
|
4375
|
+
* await toolresults.projects.histories.executions.steps.testCases.list({
|
|
4376
|
+
* // A Execution id Required.
|
|
4377
|
+
* executionId: 'placeholder-value',
|
|
4378
|
+
* // A History id. Required.
|
|
4379
|
+
* historyId: 'placeholder-value',
|
|
4380
|
+
* // The maximum number of TestCases to fetch. Default value: 100. The server will use this default if the field is not set or has a value of 0. Optional.
|
|
4381
|
+
* pageSize: 'placeholder-value',
|
|
4382
|
+
* // A continuation token to resume the query at the next item. Optional.
|
|
4383
|
+
* pageToken: 'placeholder-value',
|
|
4384
|
+
* // A Project id. Required.
|
|
4385
|
+
* projectId: 'placeholder-value',
|
|
4386
|
+
* // A Step id. Note: This step must include a TestExecutionStep. Required.
|
|
4387
|
+
* stepId: 'placeholder-value',
|
|
4388
|
+
* });
|
|
4389
|
+
* console.log(res.data);
|
|
4390
|
+
*
|
|
4391
|
+
* // Example response
|
|
4392
|
+
* // {
|
|
4393
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4394
|
+
* // "testCases": []
|
|
4395
|
+
* // }
|
|
4396
|
+
* }
|
|
4397
|
+
*
|
|
4398
|
+
* main().catch(e => {
|
|
4399
|
+
* console.error(e);
|
|
4400
|
+
* throw e;
|
|
4401
|
+
* });
|
|
4402
|
+
*
|
|
4403
|
+
* ```
|
|
2658
4404
|
*
|
|
2659
4405
|
* @param params - Parameters for request
|
|
2660
4406
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2721,6 +4467,64 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2721
4467
|
constructor(context: APIRequestContext);
|
|
2722
4468
|
/**
|
|
2723
4469
|
* 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 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
|
|
4470
|
+
* @example
|
|
4471
|
+
* ```js
|
|
4472
|
+
* // Before running the sample:
|
|
4473
|
+
* // - Enable the API at:
|
|
4474
|
+
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
4475
|
+
* // - Login into gcloud by running:
|
|
4476
|
+
* // ```sh
|
|
4477
|
+
* // $ gcloud auth application-default login
|
|
4478
|
+
* // ```
|
|
4479
|
+
* // - Install the npm module by running:
|
|
4480
|
+
* // ```sh
|
|
4481
|
+
* // $ npm install googleapis
|
|
4482
|
+
* // ```
|
|
4483
|
+
*
|
|
4484
|
+
* const {google} = require('googleapis');
|
|
4485
|
+
* const toolresults = google.toolresults('v1beta3');
|
|
4486
|
+
*
|
|
4487
|
+
* async function main() {
|
|
4488
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4489
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4490
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
4491
|
+
* });
|
|
4492
|
+
*
|
|
4493
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4494
|
+
* const authClient = await auth.getClient();
|
|
4495
|
+
* google.options({auth: authClient});
|
|
4496
|
+
*
|
|
4497
|
+
* // Do the magic
|
|
4498
|
+
* const res =
|
|
4499
|
+
* await toolresults.projects.histories.executions.steps.thumbnails.list({
|
|
4500
|
+
* // An Execution id. Required.
|
|
4501
|
+
* executionId: 'placeholder-value',
|
|
4502
|
+
* // A History id. Required.
|
|
4503
|
+
* historyId: 'placeholder-value',
|
|
4504
|
+
* // The maximum number of thumbnails to fetch. Default value: 50. The server will use this default if the field is not set or has a value of 0. Optional.
|
|
4505
|
+
* pageSize: 'placeholder-value',
|
|
4506
|
+
* // A continuation token to resume the query at the next item. Optional.
|
|
4507
|
+
* pageToken: 'placeholder-value',
|
|
4508
|
+
* // A Project id. Required.
|
|
4509
|
+
* projectId: 'placeholder-value',
|
|
4510
|
+
* // A Step id. Required.
|
|
4511
|
+
* stepId: 'placeholder-value',
|
|
4512
|
+
* });
|
|
4513
|
+
* console.log(res.data);
|
|
4514
|
+
*
|
|
4515
|
+
* // Example response
|
|
4516
|
+
* // {
|
|
4517
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4518
|
+
* // "thumbnails": []
|
|
4519
|
+
* // }
|
|
4520
|
+
* }
|
|
4521
|
+
*
|
|
4522
|
+
* main().catch(e => {
|
|
4523
|
+
* console.error(e);
|
|
4524
|
+
* throw e;
|
|
4525
|
+
* });
|
|
4526
|
+
*
|
|
4527
|
+
* ```
|
|
2724
4528
|
*
|
|
2725
4529
|
* @param params - Parameters for request
|
|
2726
4530
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|