@googleapis/toolresults 3.0.0 → 3.2.0
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 +14 -0
- package/build/v1beta3.d.ts +8 -1691
- package/build/v1beta3.js.map +1 -1
- package/package.json +1 -1
- package/v1beta3.ts +7 -1691
package/build/v1beta3.d.ts
CHANGED
|
@@ -200,6 +200,11 @@ export declare namespace toolresults_v1beta3 {
|
|
|
200
200
|
*/
|
|
201
201
|
initialDisplayTime?: Schema$Duration;
|
|
202
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* There was an issue with the assets in this test.
|
|
205
|
+
*/
|
|
206
|
+
export interface Schema$AssetIssue {
|
|
207
|
+
}
|
|
203
208
|
/**
|
|
204
209
|
* A suggestion to use deep links for a Robo run.
|
|
205
210
|
*/
|
|
@@ -360,7 +365,7 @@ export declare namespace toolresults_v1beta3 {
|
|
|
360
365
|
value?: string | null;
|
|
361
366
|
}
|
|
362
367
|
/**
|
|
363
|
-
* An Execution represents a collection of Steps. For instance, it could represent: - a mobile test executed across a range of device configurations - a jenkins job with a build step followed by a test step The maximum size of an execution message is 1 MiB. An Execution can be updated until its state is set to COMPLETE at which point it becomes immutable.
|
|
368
|
+
* An Execution represents a collection of Steps. For instance, it could represent: - a mobile test executed across a range of device configurations - a jenkins job with a build step followed by a test step The maximum size of an execution message is 1 MiB. An Execution can be updated until its state is set to COMPLETE at which point it becomes immutable.
|
|
364
369
|
*/
|
|
365
370
|
export interface Schema$Execution {
|
|
366
371
|
/**
|
|
@@ -397,7 +402,7 @@ export declare namespace toolresults_v1beta3 {
|
|
|
397
402
|
testExecutionMatrixId?: string | null;
|
|
398
403
|
}
|
|
399
404
|
/**
|
|
400
|
-
* Failed to install the
|
|
405
|
+
* Failed to install the App.
|
|
401
406
|
*/
|
|
402
407
|
export interface Schema$FailedToInstall {
|
|
403
408
|
}
|
|
@@ -1297,7 +1302,7 @@ export declare namespace toolresults_v1beta3 {
|
|
|
1297
1302
|
message?: string | null;
|
|
1298
1303
|
}
|
|
1299
1304
|
/**
|
|
1300
|
-
* A Step represents a single operation performed as part of Execution. A step can be used to represent the execution of a tool ( for example a test runner execution or an execution of a compiler). Steps can overlap (for instance two steps might have the same start time if some operations are done in parallel). Here is an example, let's consider that we have a continuous build is executing a test runner for each iteration. The workflow would look like: - user creates a Execution with id 1 - user creates a TestExecutionStep with id 100 for Execution 1 - user update TestExecutionStep with id 100 to add a raw xml log + the service parses the xml logs and returns a TestExecutionStep with updated TestResult(s). - user update the status of TestExecutionStep with id 100 to COMPLETE A Step can be updated until its state is set to COMPLETE at which points it becomes immutable.
|
|
1305
|
+
* A Step represents a single operation performed as part of Execution. A step can be used to represent the execution of a tool ( for example a test runner execution or an execution of a compiler). Steps can overlap (for instance two steps might have the same start time if some operations are done in parallel). Here is an example, let's consider that we have a continuous build is executing a test runner for each iteration. The workflow would look like: - user creates a Execution with id 1 - user creates a TestExecutionStep with id 100 for Execution 1 - user update TestExecutionStep with id 100 to add a raw xml log + the service parses the xml logs and returns a TestExecutionStep with updated TestResult(s). - user update the status of TestExecutionStep with id 100 to COMPLETE A Step can be updated until its state is set to COMPLETE at which points it becomes immutable.
|
|
1301
1306
|
*/
|
|
1302
1307
|
export interface Schema$Step {
|
|
1303
1308
|
/**
|
|
@@ -1747,49 +1752,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
1747
1752
|
constructor(context: APIRequestContext);
|
|
1748
1753
|
/**
|
|
1749
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
|
|
1750
|
-
* @example
|
|
1751
|
-
* ```js
|
|
1752
|
-
* // Before running the sample:
|
|
1753
|
-
* // - Enable the API at:
|
|
1754
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
1755
|
-
* // - Login into gcloud by running:
|
|
1756
|
-
* // `$ gcloud auth application-default login`
|
|
1757
|
-
* // - Install the npm module by running:
|
|
1758
|
-
* // `$ npm install googleapis`
|
|
1759
|
-
*
|
|
1760
|
-
* const {google} = require('googleapis');
|
|
1761
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
1762
|
-
*
|
|
1763
|
-
* async function main() {
|
|
1764
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1765
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1766
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
1767
|
-
* });
|
|
1768
|
-
*
|
|
1769
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1770
|
-
* const authClient = await auth.getClient();
|
|
1771
|
-
* google.options({auth: authClient});
|
|
1772
|
-
*
|
|
1773
|
-
* // Do the magic
|
|
1774
|
-
* const res = await toolresults.projects.getSettings({
|
|
1775
|
-
* // A Project id. Required.
|
|
1776
|
-
* projectId: 'placeholder-value',
|
|
1777
|
-
* });
|
|
1778
|
-
* console.log(res.data);
|
|
1779
|
-
*
|
|
1780
|
-
* // Example response
|
|
1781
|
-
* // {
|
|
1782
|
-
* // "defaultBucket": "my_defaultBucket",
|
|
1783
|
-
* // "name": "my_name"
|
|
1784
|
-
* // }
|
|
1785
|
-
* }
|
|
1786
|
-
*
|
|
1787
|
-
* main().catch(e => {
|
|
1788
|
-
* console.error(e);
|
|
1789
|
-
* throw e;
|
|
1790
|
-
* });
|
|
1791
|
-
*
|
|
1792
|
-
* ```
|
|
1793
1755
|
*
|
|
1794
1756
|
* @param params - Parameters for request
|
|
1795
1757
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1804,49 +1766,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
1804
1766
|
getSettings(callback: BodyResponseCallback<Schema$ProjectSettings>): void;
|
|
1805
1767
|
/**
|
|
1806
1768
|
* 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
|
|
1807
|
-
* @example
|
|
1808
|
-
* ```js
|
|
1809
|
-
* // Before running the sample:
|
|
1810
|
-
* // - Enable the API at:
|
|
1811
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
1812
|
-
* // - Login into gcloud by running:
|
|
1813
|
-
* // `$ gcloud auth application-default login`
|
|
1814
|
-
* // - Install the npm module by running:
|
|
1815
|
-
* // `$ npm install googleapis`
|
|
1816
|
-
*
|
|
1817
|
-
* const {google} = require('googleapis');
|
|
1818
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
1819
|
-
*
|
|
1820
|
-
* async function main() {
|
|
1821
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1822
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1823
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
1824
|
-
* });
|
|
1825
|
-
*
|
|
1826
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1827
|
-
* const authClient = await auth.getClient();
|
|
1828
|
-
* google.options({auth: authClient});
|
|
1829
|
-
*
|
|
1830
|
-
* // Do the magic
|
|
1831
|
-
* const res = await toolresults.projects.initializeSettings({
|
|
1832
|
-
* // A Project id. Required.
|
|
1833
|
-
* projectId: 'placeholder-value',
|
|
1834
|
-
* });
|
|
1835
|
-
* console.log(res.data);
|
|
1836
|
-
*
|
|
1837
|
-
* // Example response
|
|
1838
|
-
* // {
|
|
1839
|
-
* // "defaultBucket": "my_defaultBucket",
|
|
1840
|
-
* // "name": "my_name"
|
|
1841
|
-
* // }
|
|
1842
|
-
* }
|
|
1843
|
-
*
|
|
1844
|
-
* main().catch(e => {
|
|
1845
|
-
* console.error(e);
|
|
1846
|
-
* throw e;
|
|
1847
|
-
* });
|
|
1848
|
-
*
|
|
1849
|
-
* ```
|
|
1850
1769
|
*
|
|
1851
1770
|
* @param params - Parameters for request
|
|
1852
1771
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1878,64 +1797,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
1878
1797
|
constructor(context: APIRequestContext);
|
|
1879
1798
|
/**
|
|
1880
1799
|
* 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
|
|
1881
|
-
* @example
|
|
1882
|
-
* ```js
|
|
1883
|
-
* // Before running the sample:
|
|
1884
|
-
* // - Enable the API at:
|
|
1885
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
1886
|
-
* // - Login into gcloud by running:
|
|
1887
|
-
* // `$ gcloud auth application-default login`
|
|
1888
|
-
* // - Install the npm module by running:
|
|
1889
|
-
* // `$ npm install googleapis`
|
|
1890
|
-
*
|
|
1891
|
-
* const {google} = require('googleapis');
|
|
1892
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
1893
|
-
*
|
|
1894
|
-
* async function main() {
|
|
1895
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1896
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1897
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
1898
|
-
* });
|
|
1899
|
-
*
|
|
1900
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1901
|
-
* const authClient = await auth.getClient();
|
|
1902
|
-
* google.options({auth: authClient});
|
|
1903
|
-
*
|
|
1904
|
-
* // Do the magic
|
|
1905
|
-
* const res = await toolresults.projects.histories.create({
|
|
1906
|
-
* // A Project id. Required.
|
|
1907
|
-
* projectId: 'placeholder-value',
|
|
1908
|
-
* // A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
|
|
1909
|
-
* requestId: 'placeholder-value',
|
|
1910
|
-
*
|
|
1911
|
-
* // Request body metadata
|
|
1912
|
-
* requestBody: {
|
|
1913
|
-
* // request body parameters
|
|
1914
|
-
* // {
|
|
1915
|
-
* // "displayName": "my_displayName",
|
|
1916
|
-
* // "historyId": "my_historyId",
|
|
1917
|
-
* // "name": "my_name",
|
|
1918
|
-
* // "testPlatform": "my_testPlatform"
|
|
1919
|
-
* // }
|
|
1920
|
-
* },
|
|
1921
|
-
* });
|
|
1922
|
-
* console.log(res.data);
|
|
1923
|
-
*
|
|
1924
|
-
* // Example response
|
|
1925
|
-
* // {
|
|
1926
|
-
* // "displayName": "my_displayName",
|
|
1927
|
-
* // "historyId": "my_historyId",
|
|
1928
|
-
* // "name": "my_name",
|
|
1929
|
-
* // "testPlatform": "my_testPlatform"
|
|
1930
|
-
* // }
|
|
1931
|
-
* }
|
|
1932
|
-
*
|
|
1933
|
-
* main().catch(e => {
|
|
1934
|
-
* console.error(e);
|
|
1935
|
-
* throw e;
|
|
1936
|
-
* });
|
|
1937
|
-
*
|
|
1938
|
-
* ```
|
|
1939
1800
|
*
|
|
1940
1801
|
* @param params - Parameters for request
|
|
1941
1802
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1950,53 +1811,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
1950
1811
|
create(callback: BodyResponseCallback<Schema$History>): void;
|
|
1951
1812
|
/**
|
|
1952
1813
|
* 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
|
|
1953
|
-
* @example
|
|
1954
|
-
* ```js
|
|
1955
|
-
* // Before running the sample:
|
|
1956
|
-
* // - Enable the API at:
|
|
1957
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
1958
|
-
* // - Login into gcloud by running:
|
|
1959
|
-
* // `$ gcloud auth application-default login`
|
|
1960
|
-
* // - Install the npm module by running:
|
|
1961
|
-
* // `$ npm install googleapis`
|
|
1962
|
-
*
|
|
1963
|
-
* const {google} = require('googleapis');
|
|
1964
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
1965
|
-
*
|
|
1966
|
-
* async function main() {
|
|
1967
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1968
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1969
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
1970
|
-
* });
|
|
1971
|
-
*
|
|
1972
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1973
|
-
* const authClient = await auth.getClient();
|
|
1974
|
-
* google.options({auth: authClient});
|
|
1975
|
-
*
|
|
1976
|
-
* // Do the magic
|
|
1977
|
-
* const res = await toolresults.projects.histories.get({
|
|
1978
|
-
* // A History id. Required.
|
|
1979
|
-
* historyId: 'placeholder-value',
|
|
1980
|
-
* // A Project id. Required.
|
|
1981
|
-
* projectId: 'placeholder-value',
|
|
1982
|
-
* });
|
|
1983
|
-
* console.log(res.data);
|
|
1984
|
-
*
|
|
1985
|
-
* // Example response
|
|
1986
|
-
* // {
|
|
1987
|
-
* // "displayName": "my_displayName",
|
|
1988
|
-
* // "historyId": "my_historyId",
|
|
1989
|
-
* // "name": "my_name",
|
|
1990
|
-
* // "testPlatform": "my_testPlatform"
|
|
1991
|
-
* // }
|
|
1992
|
-
* }
|
|
1993
|
-
*
|
|
1994
|
-
* main().catch(e => {
|
|
1995
|
-
* console.error(e);
|
|
1996
|
-
* throw e;
|
|
1997
|
-
* });
|
|
1998
|
-
*
|
|
1999
|
-
* ```
|
|
2000
1814
|
*
|
|
2001
1815
|
* @param params - Parameters for request
|
|
2002
1816
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2011,55 +1825,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2011
1825
|
get(callback: BodyResponseCallback<Schema$History>): void;
|
|
2012
1826
|
/**
|
|
2013
1827
|
* 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
|
|
2014
|
-
* @example
|
|
2015
|
-
* ```js
|
|
2016
|
-
* // Before running the sample:
|
|
2017
|
-
* // - Enable the API at:
|
|
2018
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2019
|
-
* // - Login into gcloud by running:
|
|
2020
|
-
* // `$ gcloud auth application-default login`
|
|
2021
|
-
* // - Install the npm module by running:
|
|
2022
|
-
* // `$ npm install googleapis`
|
|
2023
|
-
*
|
|
2024
|
-
* const {google} = require('googleapis');
|
|
2025
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
2026
|
-
*
|
|
2027
|
-
* async function main() {
|
|
2028
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2029
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2030
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2031
|
-
* });
|
|
2032
|
-
*
|
|
2033
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2034
|
-
* const authClient = await auth.getClient();
|
|
2035
|
-
* google.options({auth: authClient});
|
|
2036
|
-
*
|
|
2037
|
-
* // Do the magic
|
|
2038
|
-
* const res = await toolresults.projects.histories.list({
|
|
2039
|
-
* // If set, only return histories with the given name. Optional.
|
|
2040
|
-
* filterByName: 'placeholder-value',
|
|
2041
|
-
* // 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.
|
|
2042
|
-
* pageSize: 'placeholder-value',
|
|
2043
|
-
* // A continuation token to resume the query at the next item. Optional.
|
|
2044
|
-
* pageToken: 'placeholder-value',
|
|
2045
|
-
* // A Project id. Required.
|
|
2046
|
-
* projectId: 'placeholder-value',
|
|
2047
|
-
* });
|
|
2048
|
-
* console.log(res.data);
|
|
2049
|
-
*
|
|
2050
|
-
* // Example response
|
|
2051
|
-
* // {
|
|
2052
|
-
* // "histories": [],
|
|
2053
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
2054
|
-
* // }
|
|
2055
|
-
* }
|
|
2056
|
-
*
|
|
2057
|
-
* main().catch(e => {
|
|
2058
|
-
* console.error(e);
|
|
2059
|
-
* throw e;
|
|
2060
|
-
* });
|
|
2061
|
-
*
|
|
2062
|
-
* ```
|
|
2063
1828
|
*
|
|
2064
1829
|
* @param params - Parameters for request
|
|
2065
1830
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2123,74 +1888,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2123
1888
|
constructor(context: APIRequestContext);
|
|
2124
1889
|
/**
|
|
2125
1890
|
* 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
|
|
2126
|
-
* @example
|
|
2127
|
-
* ```js
|
|
2128
|
-
* // Before running the sample:
|
|
2129
|
-
* // - Enable the API at:
|
|
2130
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2131
|
-
* // - Login into gcloud by running:
|
|
2132
|
-
* // `$ gcloud auth application-default login`
|
|
2133
|
-
* // - Install the npm module by running:
|
|
2134
|
-
* // `$ npm install googleapis`
|
|
2135
|
-
*
|
|
2136
|
-
* const {google} = require('googleapis');
|
|
2137
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
2138
|
-
*
|
|
2139
|
-
* async function main() {
|
|
2140
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2141
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2142
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2143
|
-
* });
|
|
2144
|
-
*
|
|
2145
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2146
|
-
* const authClient = await auth.getClient();
|
|
2147
|
-
* google.options({auth: authClient});
|
|
2148
|
-
*
|
|
2149
|
-
* // Do the magic
|
|
2150
|
-
* const res = await toolresults.projects.histories.executions.create({
|
|
2151
|
-
* // A History id. Required.
|
|
2152
|
-
* historyId: 'placeholder-value',
|
|
2153
|
-
* // A Project id. Required.
|
|
2154
|
-
* projectId: 'placeholder-value',
|
|
2155
|
-
* // A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
|
|
2156
|
-
* requestId: 'placeholder-value',
|
|
2157
|
-
*
|
|
2158
|
-
* // Request body metadata
|
|
2159
|
-
* requestBody: {
|
|
2160
|
-
* // request body parameters
|
|
2161
|
-
* // {
|
|
2162
|
-
* // "completionTime": {},
|
|
2163
|
-
* // "creationTime": {},
|
|
2164
|
-
* // "dimensionDefinitions": [],
|
|
2165
|
-
* // "executionId": "my_executionId",
|
|
2166
|
-
* // "outcome": {},
|
|
2167
|
-
* // "specification": {},
|
|
2168
|
-
* // "state": "my_state",
|
|
2169
|
-
* // "testExecutionMatrixId": "my_testExecutionMatrixId"
|
|
2170
|
-
* // }
|
|
2171
|
-
* },
|
|
2172
|
-
* });
|
|
2173
|
-
* console.log(res.data);
|
|
2174
|
-
*
|
|
2175
|
-
* // Example response
|
|
2176
|
-
* // {
|
|
2177
|
-
* // "completionTime": {},
|
|
2178
|
-
* // "creationTime": {},
|
|
2179
|
-
* // "dimensionDefinitions": [],
|
|
2180
|
-
* // "executionId": "my_executionId",
|
|
2181
|
-
* // "outcome": {},
|
|
2182
|
-
* // "specification": {},
|
|
2183
|
-
* // "state": "my_state",
|
|
2184
|
-
* // "testExecutionMatrixId": "my_testExecutionMatrixId"
|
|
2185
|
-
* // }
|
|
2186
|
-
* }
|
|
2187
|
-
*
|
|
2188
|
-
* main().catch(e => {
|
|
2189
|
-
* console.error(e);
|
|
2190
|
-
* throw e;
|
|
2191
|
-
* });
|
|
2192
|
-
*
|
|
2193
|
-
* ```
|
|
2194
1891
|
*
|
|
2195
1892
|
* @param params - Parameters for request
|
|
2196
1893
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2205,59 +1902,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2205
1902
|
create(callback: BodyResponseCallback<Schema$Execution>): void;
|
|
2206
1903
|
/**
|
|
2207
1904
|
* 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
|
|
2208
|
-
* @example
|
|
2209
|
-
* ```js
|
|
2210
|
-
* // Before running the sample:
|
|
2211
|
-
* // - Enable the API at:
|
|
2212
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2213
|
-
* // - Login into gcloud by running:
|
|
2214
|
-
* // `$ gcloud auth application-default login`
|
|
2215
|
-
* // - Install the npm module by running:
|
|
2216
|
-
* // `$ npm install googleapis`
|
|
2217
|
-
*
|
|
2218
|
-
* const {google} = require('googleapis');
|
|
2219
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
2220
|
-
*
|
|
2221
|
-
* async function main() {
|
|
2222
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2223
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2224
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2225
|
-
* });
|
|
2226
|
-
*
|
|
2227
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2228
|
-
* const authClient = await auth.getClient();
|
|
2229
|
-
* google.options({auth: authClient});
|
|
2230
|
-
*
|
|
2231
|
-
* // Do the magic
|
|
2232
|
-
* const res = await toolresults.projects.histories.executions.get({
|
|
2233
|
-
* // An Execution id. Required.
|
|
2234
|
-
* executionId: 'placeholder-value',
|
|
2235
|
-
* // A History id. Required.
|
|
2236
|
-
* historyId: 'placeholder-value',
|
|
2237
|
-
* // A Project id. Required.
|
|
2238
|
-
* projectId: 'placeholder-value',
|
|
2239
|
-
* });
|
|
2240
|
-
* console.log(res.data);
|
|
2241
|
-
*
|
|
2242
|
-
* // Example response
|
|
2243
|
-
* // {
|
|
2244
|
-
* // "completionTime": {},
|
|
2245
|
-
* // "creationTime": {},
|
|
2246
|
-
* // "dimensionDefinitions": [],
|
|
2247
|
-
* // "executionId": "my_executionId",
|
|
2248
|
-
* // "outcome": {},
|
|
2249
|
-
* // "specification": {},
|
|
2250
|
-
* // "state": "my_state",
|
|
2251
|
-
* // "testExecutionMatrixId": "my_testExecutionMatrixId"
|
|
2252
|
-
* // }
|
|
2253
|
-
* }
|
|
2254
|
-
*
|
|
2255
|
-
* main().catch(e => {
|
|
2256
|
-
* console.error(e);
|
|
2257
|
-
* throw e;
|
|
2258
|
-
* });
|
|
2259
|
-
*
|
|
2260
|
-
* ```
|
|
2261
1905
|
*
|
|
2262
1906
|
* @param params - Parameters for request
|
|
2263
1907
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2272,55 +1916,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2272
1916
|
get(callback: BodyResponseCallback<Schema$Execution>): void;
|
|
2273
1917
|
/**
|
|
2274
1918
|
* 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
|
|
2275
|
-
* @example
|
|
2276
|
-
* ```js
|
|
2277
|
-
* // Before running the sample:
|
|
2278
|
-
* // - Enable the API at:
|
|
2279
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2280
|
-
* // - Login into gcloud by running:
|
|
2281
|
-
* // `$ gcloud auth application-default login`
|
|
2282
|
-
* // - Install the npm module by running:
|
|
2283
|
-
* // `$ npm install googleapis`
|
|
2284
|
-
*
|
|
2285
|
-
* const {google} = require('googleapis');
|
|
2286
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
2287
|
-
*
|
|
2288
|
-
* async function main() {
|
|
2289
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2290
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2291
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2292
|
-
* });
|
|
2293
|
-
*
|
|
2294
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2295
|
-
* const authClient = await auth.getClient();
|
|
2296
|
-
* google.options({auth: authClient});
|
|
2297
|
-
*
|
|
2298
|
-
* // Do the magic
|
|
2299
|
-
* const res = await toolresults.projects.histories.executions.list({
|
|
2300
|
-
* // A History id. Required.
|
|
2301
|
-
* historyId: 'placeholder-value',
|
|
2302
|
-
* // 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.
|
|
2303
|
-
* pageSize: 'placeholder-value',
|
|
2304
|
-
* // A continuation token to resume the query at the next item. Optional.
|
|
2305
|
-
* pageToken: 'placeholder-value',
|
|
2306
|
-
* // A Project id. Required.
|
|
2307
|
-
* projectId: 'placeholder-value',
|
|
2308
|
-
* });
|
|
2309
|
-
* console.log(res.data);
|
|
2310
|
-
*
|
|
2311
|
-
* // Example response
|
|
2312
|
-
* // {
|
|
2313
|
-
* // "executions": [],
|
|
2314
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
2315
|
-
* // }
|
|
2316
|
-
* }
|
|
2317
|
-
*
|
|
2318
|
-
* main().catch(e => {
|
|
2319
|
-
* console.error(e);
|
|
2320
|
-
* throw e;
|
|
2321
|
-
* });
|
|
2322
|
-
*
|
|
2323
|
-
* ```
|
|
2324
1919
|
*
|
|
2325
1920
|
* @param params - Parameters for request
|
|
2326
1921
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2335,76 +1930,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2335
1930
|
list(callback: BodyResponseCallback<Schema$ListExecutionsResponse>): void;
|
|
2336
1931
|
/**
|
|
2337
1932
|
* 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
|
|
2338
|
-
* @example
|
|
2339
|
-
* ```js
|
|
2340
|
-
* // Before running the sample:
|
|
2341
|
-
* // - Enable the API at:
|
|
2342
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2343
|
-
* // - Login into gcloud by running:
|
|
2344
|
-
* // `$ gcloud auth application-default login`
|
|
2345
|
-
* // - Install the npm module by running:
|
|
2346
|
-
* // `$ npm install googleapis`
|
|
2347
|
-
*
|
|
2348
|
-
* const {google} = require('googleapis');
|
|
2349
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
2350
|
-
*
|
|
2351
|
-
* async function main() {
|
|
2352
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2353
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2354
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2355
|
-
* });
|
|
2356
|
-
*
|
|
2357
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2358
|
-
* const authClient = await auth.getClient();
|
|
2359
|
-
* google.options({auth: authClient});
|
|
2360
|
-
*
|
|
2361
|
-
* // Do the magic
|
|
2362
|
-
* const res = await toolresults.projects.histories.executions.patch({
|
|
2363
|
-
* // Required.
|
|
2364
|
-
* executionId: 'placeholder-value',
|
|
2365
|
-
* // Required.
|
|
2366
|
-
* historyId: 'placeholder-value',
|
|
2367
|
-
* // A Project id. Required.
|
|
2368
|
-
* projectId: 'placeholder-value',
|
|
2369
|
-
* // A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
|
|
2370
|
-
* requestId: 'placeholder-value',
|
|
2371
|
-
*
|
|
2372
|
-
* // Request body metadata
|
|
2373
|
-
* requestBody: {
|
|
2374
|
-
* // request body parameters
|
|
2375
|
-
* // {
|
|
2376
|
-
* // "completionTime": {},
|
|
2377
|
-
* // "creationTime": {},
|
|
2378
|
-
* // "dimensionDefinitions": [],
|
|
2379
|
-
* // "executionId": "my_executionId",
|
|
2380
|
-
* // "outcome": {},
|
|
2381
|
-
* // "specification": {},
|
|
2382
|
-
* // "state": "my_state",
|
|
2383
|
-
* // "testExecutionMatrixId": "my_testExecutionMatrixId"
|
|
2384
|
-
* // }
|
|
2385
|
-
* },
|
|
2386
|
-
* });
|
|
2387
|
-
* console.log(res.data);
|
|
2388
|
-
*
|
|
2389
|
-
* // Example response
|
|
2390
|
-
* // {
|
|
2391
|
-
* // "completionTime": {},
|
|
2392
|
-
* // "creationTime": {},
|
|
2393
|
-
* // "dimensionDefinitions": [],
|
|
2394
|
-
* // "executionId": "my_executionId",
|
|
2395
|
-
* // "outcome": {},
|
|
2396
|
-
* // "specification": {},
|
|
2397
|
-
* // "state": "my_state",
|
|
2398
|
-
* // "testExecutionMatrixId": "my_testExecutionMatrixId"
|
|
2399
|
-
* // }
|
|
2400
|
-
* }
|
|
2401
|
-
*
|
|
2402
|
-
* main().catch(e => {
|
|
2403
|
-
* console.error(e);
|
|
2404
|
-
* throw e;
|
|
2405
|
-
* });
|
|
2406
|
-
*
|
|
2407
|
-
* ```
|
|
2408
1933
|
*
|
|
2409
1934
|
* @param params - Parameters for request
|
|
2410
1935
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2495,57 +2020,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2495
2020
|
constructor(context: APIRequestContext);
|
|
2496
2021
|
/**
|
|
2497
2022
|
* Retrieves a single screenshot cluster by its ID
|
|
2498
|
-
* @example
|
|
2499
|
-
* ```js
|
|
2500
|
-
* // Before running the sample:
|
|
2501
|
-
* // - Enable the API at:
|
|
2502
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2503
|
-
* // - Login into gcloud by running:
|
|
2504
|
-
* // `$ gcloud auth application-default login`
|
|
2505
|
-
* // - Install the npm module by running:
|
|
2506
|
-
* // `$ npm install googleapis`
|
|
2507
|
-
*
|
|
2508
|
-
* const {google} = require('googleapis');
|
|
2509
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
2510
|
-
*
|
|
2511
|
-
* async function main() {
|
|
2512
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2513
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2514
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2515
|
-
* });
|
|
2516
|
-
*
|
|
2517
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2518
|
-
* const authClient = await auth.getClient();
|
|
2519
|
-
* google.options({auth: authClient});
|
|
2520
|
-
*
|
|
2521
|
-
* // Do the magic
|
|
2522
|
-
* const res = await toolresults.projects.histories.executions.clusters.get({
|
|
2523
|
-
* // A Cluster id Required.
|
|
2524
|
-
* clusterId: 'placeholder-value',
|
|
2525
|
-
* // An Execution id. Required.
|
|
2526
|
-
* executionId: 'placeholder-value',
|
|
2527
|
-
* // A History id. Required.
|
|
2528
|
-
* historyId: 'placeholder-value',
|
|
2529
|
-
* // A Project id. Required.
|
|
2530
|
-
* projectId: 'placeholder-value',
|
|
2531
|
-
* });
|
|
2532
|
-
* console.log(res.data);
|
|
2533
|
-
*
|
|
2534
|
-
* // Example response
|
|
2535
|
-
* // {
|
|
2536
|
-
* // "activity": "my_activity",
|
|
2537
|
-
* // "clusterId": "my_clusterId",
|
|
2538
|
-
* // "keyScreen": {},
|
|
2539
|
-
* // "screens": []
|
|
2540
|
-
* // }
|
|
2541
|
-
* }
|
|
2542
|
-
*
|
|
2543
|
-
* main().catch(e => {
|
|
2544
|
-
* console.error(e);
|
|
2545
|
-
* throw e;
|
|
2546
|
-
* });
|
|
2547
|
-
*
|
|
2548
|
-
* ```
|
|
2549
2023
|
*
|
|
2550
2024
|
* @param params - Parameters for request
|
|
2551
2025
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2560,52 +2034,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2560
2034
|
get(callback: BodyResponseCallback<Schema$ScreenshotCluster>): void;
|
|
2561
2035
|
/**
|
|
2562
2036
|
* 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.
|
|
2563
|
-
* @example
|
|
2564
|
-
* ```js
|
|
2565
|
-
* // Before running the sample:
|
|
2566
|
-
* // - Enable the API at:
|
|
2567
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2568
|
-
* // - Login into gcloud by running:
|
|
2569
|
-
* // `$ gcloud auth application-default login`
|
|
2570
|
-
* // - Install the npm module by running:
|
|
2571
|
-
* // `$ npm install googleapis`
|
|
2572
|
-
*
|
|
2573
|
-
* const {google} = require('googleapis');
|
|
2574
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
2575
|
-
*
|
|
2576
|
-
* async function main() {
|
|
2577
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2578
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2579
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2580
|
-
* });
|
|
2581
|
-
*
|
|
2582
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2583
|
-
* const authClient = await auth.getClient();
|
|
2584
|
-
* google.options({auth: authClient});
|
|
2585
|
-
*
|
|
2586
|
-
* // Do the magic
|
|
2587
|
-
* const res = await toolresults.projects.histories.executions.clusters.list({
|
|
2588
|
-
* // An Execution id. Required.
|
|
2589
|
-
* executionId: 'placeholder-value',
|
|
2590
|
-
* // A History id. Required.
|
|
2591
|
-
* historyId: 'placeholder-value',
|
|
2592
|
-
* // A Project id. Required.
|
|
2593
|
-
* projectId: 'placeholder-value',
|
|
2594
|
-
* });
|
|
2595
|
-
* console.log(res.data);
|
|
2596
|
-
*
|
|
2597
|
-
* // Example response
|
|
2598
|
-
* // {
|
|
2599
|
-
* // "clusters": []
|
|
2600
|
-
* // }
|
|
2601
|
-
* }
|
|
2602
|
-
*
|
|
2603
|
-
* main().catch(e => {
|
|
2604
|
-
* console.error(e);
|
|
2605
|
-
* throw e;
|
|
2606
|
-
* });
|
|
2607
|
-
*
|
|
2608
|
-
* ```
|
|
2609
2037
|
*
|
|
2610
2038
|
* @param params - Parameters for request
|
|
2611
2039
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2656,64 +2084,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2656
2084
|
constructor(context: APIRequestContext);
|
|
2657
2085
|
/**
|
|
2658
2086
|
* 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
|
|
2659
|
-
* @example
|
|
2660
|
-
* ```js
|
|
2661
|
-
* // Before running the sample:
|
|
2662
|
-
* // - Enable the API at:
|
|
2663
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2664
|
-
* // - Login into gcloud by running:
|
|
2665
|
-
* // `$ gcloud auth application-default login`
|
|
2666
|
-
* // - Install the npm module by running:
|
|
2667
|
-
* // `$ npm install googleapis`
|
|
2668
|
-
*
|
|
2669
|
-
* const {google} = require('googleapis');
|
|
2670
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
2671
|
-
*
|
|
2672
|
-
* async function main() {
|
|
2673
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2674
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2675
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2676
|
-
* });
|
|
2677
|
-
*
|
|
2678
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2679
|
-
* const authClient = await auth.getClient();
|
|
2680
|
-
* google.options({auth: authClient});
|
|
2681
|
-
*
|
|
2682
|
-
* // Do the magic
|
|
2683
|
-
* const res = await toolresults.projects.histories.executions.environments.get({
|
|
2684
|
-
* // Required. An Environment id.
|
|
2685
|
-
* environmentId: 'placeholder-value',
|
|
2686
|
-
* // Required. An Execution id.
|
|
2687
|
-
* executionId: 'placeholder-value',
|
|
2688
|
-
* // Required. A History id.
|
|
2689
|
-
* historyId: 'placeholder-value',
|
|
2690
|
-
* // Required. A Project id.
|
|
2691
|
-
* projectId: 'placeholder-value',
|
|
2692
|
-
* });
|
|
2693
|
-
* console.log(res.data);
|
|
2694
|
-
*
|
|
2695
|
-
* // Example response
|
|
2696
|
-
* // {
|
|
2697
|
-
* // "completionTime": {},
|
|
2698
|
-
* // "creationTime": {},
|
|
2699
|
-
* // "dimensionValue": [],
|
|
2700
|
-
* // "displayName": "my_displayName",
|
|
2701
|
-
* // "environmentId": "my_environmentId",
|
|
2702
|
-
* // "environmentResult": {},
|
|
2703
|
-
* // "executionId": "my_executionId",
|
|
2704
|
-
* // "historyId": "my_historyId",
|
|
2705
|
-
* // "projectId": "my_projectId",
|
|
2706
|
-
* // "resultsStorage": {},
|
|
2707
|
-
* // "shardSummaries": []
|
|
2708
|
-
* // }
|
|
2709
|
-
* }
|
|
2710
|
-
*
|
|
2711
|
-
* main().catch(e => {
|
|
2712
|
-
* console.error(e);
|
|
2713
|
-
* throw e;
|
|
2714
|
-
* });
|
|
2715
|
-
*
|
|
2716
|
-
* ```
|
|
2717
2087
|
*
|
|
2718
2088
|
* @param params - Parameters for request
|
|
2719
2089
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2728,62 +2098,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2728
2098
|
get(callback: BodyResponseCallback<Schema$Environment>): void;
|
|
2729
2099
|
/**
|
|
2730
2100
|
* 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
|
|
2731
|
-
* @example
|
|
2732
|
-
* ```js
|
|
2733
|
-
* // Before running the sample:
|
|
2734
|
-
* // - Enable the API at:
|
|
2735
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2736
|
-
* // - Login into gcloud by running:
|
|
2737
|
-
* // `$ gcloud auth application-default login`
|
|
2738
|
-
* // - Install the npm module by running:
|
|
2739
|
-
* // `$ npm install googleapis`
|
|
2740
|
-
*
|
|
2741
|
-
* const {google} = require('googleapis');
|
|
2742
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
2743
|
-
*
|
|
2744
|
-
* async function main() {
|
|
2745
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2746
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2747
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2748
|
-
* });
|
|
2749
|
-
*
|
|
2750
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2751
|
-
* const authClient = await auth.getClient();
|
|
2752
|
-
* google.options({auth: authClient});
|
|
2753
|
-
*
|
|
2754
|
-
* // Do the magic
|
|
2755
|
-
* const res = await toolresults.projects.histories.executions.environments.list(
|
|
2756
|
-
* {
|
|
2757
|
-
* // Required. An Execution id.
|
|
2758
|
-
* executionId: 'placeholder-value',
|
|
2759
|
-
* // Required. A History id.
|
|
2760
|
-
* historyId: 'placeholder-value',
|
|
2761
|
-
* // 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.
|
|
2762
|
-
* pageSize: 'placeholder-value',
|
|
2763
|
-
* // A continuation token to resume the query at the next item.
|
|
2764
|
-
* pageToken: 'placeholder-value',
|
|
2765
|
-
* // Required. A Project id.
|
|
2766
|
-
* projectId: 'placeholder-value',
|
|
2767
|
-
* }
|
|
2768
|
-
* );
|
|
2769
|
-
* console.log(res.data);
|
|
2770
|
-
*
|
|
2771
|
-
* // Example response
|
|
2772
|
-
* // {
|
|
2773
|
-
* // "environments": [],
|
|
2774
|
-
* // "executionId": "my_executionId",
|
|
2775
|
-
* // "historyId": "my_historyId",
|
|
2776
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
2777
|
-
* // "projectId": "my_projectId"
|
|
2778
|
-
* // }
|
|
2779
|
-
* }
|
|
2780
|
-
*
|
|
2781
|
-
* main().catch(e => {
|
|
2782
|
-
* console.error(e);
|
|
2783
|
-
* throw e;
|
|
2784
|
-
* });
|
|
2785
|
-
*
|
|
2786
|
-
* ```
|
|
2787
2101
|
*
|
|
2788
2102
|
* @param params - Parameters for request
|
|
2789
2103
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2846,54 +2160,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2846
2160
|
constructor(context: APIRequestContext);
|
|
2847
2161
|
/**
|
|
2848
2162
|
* 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
|
|
2849
|
-
* @example
|
|
2850
|
-
* ```js
|
|
2851
|
-
* // Before running the sample:
|
|
2852
|
-
* // - Enable the API at:
|
|
2853
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2854
|
-
* // - Login into gcloud by running:
|
|
2855
|
-
* // `$ gcloud auth application-default login`
|
|
2856
|
-
* // - Install the npm module by running:
|
|
2857
|
-
* // `$ npm install googleapis`
|
|
2858
|
-
*
|
|
2859
|
-
* const {google} = require('googleapis');
|
|
2860
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
2861
|
-
*
|
|
2862
|
-
* async function main() {
|
|
2863
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2864
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2865
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2866
|
-
* });
|
|
2867
|
-
*
|
|
2868
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2869
|
-
* const authClient = await auth.getClient();
|
|
2870
|
-
* google.options({auth: authClient});
|
|
2871
|
-
*
|
|
2872
|
-
* // Do the magic
|
|
2873
|
-
* const res =
|
|
2874
|
-
* await toolresults.projects.histories.executions.steps.accessibilityClusters(
|
|
2875
|
-
* {
|
|
2876
|
-
* // 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.
|
|
2877
|
-
* locale: 'placeholder-value',
|
|
2878
|
-
* // A full resource name of the step. For example, projects/my-project/histories/bh.1234567890abcdef/executions/ 1234567890123456789/steps/bs.1234567890abcdef Required.
|
|
2879
|
-
* name: 'projects/my-project/histories/my-historie/executions/my-execution/steps/my-step',
|
|
2880
|
-
* }
|
|
2881
|
-
* );
|
|
2882
|
-
* console.log(res.data);
|
|
2883
|
-
*
|
|
2884
|
-
* // Example response
|
|
2885
|
-
* // {
|
|
2886
|
-
* // "clusters": [],
|
|
2887
|
-
* // "name": "my_name"
|
|
2888
|
-
* // }
|
|
2889
|
-
* }
|
|
2890
|
-
*
|
|
2891
|
-
* main().catch(e => {
|
|
2892
|
-
* console.error(e);
|
|
2893
|
-
* throw e;
|
|
2894
|
-
* });
|
|
2895
|
-
*
|
|
2896
|
-
* ```
|
|
2897
2163
|
*
|
|
2898
2164
|
* @param params - Parameters for request
|
|
2899
2165
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2908,90 +2174,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
2908
2174
|
accessibilityClusters(callback: BodyResponseCallback<Schema$ListStepAccessibilityClustersResponse>): void;
|
|
2909
2175
|
/**
|
|
2910
2176
|
* 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
|
|
2911
|
-
* @example
|
|
2912
|
-
* ```js
|
|
2913
|
-
* // Before running the sample:
|
|
2914
|
-
* // - Enable the API at:
|
|
2915
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
2916
|
-
* // - Login into gcloud by running:
|
|
2917
|
-
* // `$ gcloud auth application-default login`
|
|
2918
|
-
* // - Install the npm module by running:
|
|
2919
|
-
* // `$ npm install googleapis`
|
|
2920
|
-
*
|
|
2921
|
-
* const {google} = require('googleapis');
|
|
2922
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
2923
|
-
*
|
|
2924
|
-
* async function main() {
|
|
2925
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2926
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2927
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2928
|
-
* });
|
|
2929
|
-
*
|
|
2930
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2931
|
-
* const authClient = await auth.getClient();
|
|
2932
|
-
* google.options({auth: authClient});
|
|
2933
|
-
*
|
|
2934
|
-
* // Do the magic
|
|
2935
|
-
* const res = await toolresults.projects.histories.executions.steps.create({
|
|
2936
|
-
* // Required. An Execution id.
|
|
2937
|
-
* executionId: 'placeholder-value',
|
|
2938
|
-
* // Required. A History id.
|
|
2939
|
-
* historyId: 'placeholder-value',
|
|
2940
|
-
* // Required. A Project id.
|
|
2941
|
-
* projectId: 'placeholder-value',
|
|
2942
|
-
* // A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
|
|
2943
|
-
* requestId: 'placeholder-value',
|
|
2944
|
-
*
|
|
2945
|
-
* // Request body metadata
|
|
2946
|
-
* requestBody: {
|
|
2947
|
-
* // request body parameters
|
|
2948
|
-
* // {
|
|
2949
|
-
* // "completionTime": {},
|
|
2950
|
-
* // "creationTime": {},
|
|
2951
|
-
* // "description": "my_description",
|
|
2952
|
-
* // "deviceUsageDuration": {},
|
|
2953
|
-
* // "dimensionValue": [],
|
|
2954
|
-
* // "hasImages": false,
|
|
2955
|
-
* // "labels": [],
|
|
2956
|
-
* // "multiStep": {},
|
|
2957
|
-
* // "name": "my_name",
|
|
2958
|
-
* // "outcome": {},
|
|
2959
|
-
* // "runDuration": {},
|
|
2960
|
-
* // "state": "my_state",
|
|
2961
|
-
* // "stepId": "my_stepId",
|
|
2962
|
-
* // "testExecutionStep": {},
|
|
2963
|
-
* // "toolExecutionStep": {}
|
|
2964
|
-
* // }
|
|
2965
|
-
* },
|
|
2966
|
-
* });
|
|
2967
|
-
* console.log(res.data);
|
|
2968
|
-
*
|
|
2969
|
-
* // Example response
|
|
2970
|
-
* // {
|
|
2971
|
-
* // "completionTime": {},
|
|
2972
|
-
* // "creationTime": {},
|
|
2973
|
-
* // "description": "my_description",
|
|
2974
|
-
* // "deviceUsageDuration": {},
|
|
2975
|
-
* // "dimensionValue": [],
|
|
2976
|
-
* // "hasImages": false,
|
|
2977
|
-
* // "labels": [],
|
|
2978
|
-
* // "multiStep": {},
|
|
2979
|
-
* // "name": "my_name",
|
|
2980
|
-
* // "outcome": {},
|
|
2981
|
-
* // "runDuration": {},
|
|
2982
|
-
* // "state": "my_state",
|
|
2983
|
-
* // "stepId": "my_stepId",
|
|
2984
|
-
* // "testExecutionStep": {},
|
|
2985
|
-
* // "toolExecutionStep": {}
|
|
2986
|
-
* // }
|
|
2987
|
-
* }
|
|
2988
|
-
*
|
|
2989
|
-
* main().catch(e => {
|
|
2990
|
-
* console.error(e);
|
|
2991
|
-
* throw e;
|
|
2992
|
-
* });
|
|
2993
|
-
*
|
|
2994
|
-
* ```
|
|
2995
2177
|
*
|
|
2996
2178
|
* @param params - Parameters for request
|
|
2997
2179
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3006,68 +2188,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
3006
2188
|
create(callback: BodyResponseCallback<Schema$Step>): void;
|
|
3007
2189
|
/**
|
|
3008
2190
|
* 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
|
|
3009
|
-
* @example
|
|
3010
|
-
* ```js
|
|
3011
|
-
* // Before running the sample:
|
|
3012
|
-
* // - Enable the API at:
|
|
3013
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3014
|
-
* // - Login into gcloud by running:
|
|
3015
|
-
* // `$ gcloud auth application-default login`
|
|
3016
|
-
* // - Install the npm module by running:
|
|
3017
|
-
* // `$ npm install googleapis`
|
|
3018
|
-
*
|
|
3019
|
-
* const {google} = require('googleapis');
|
|
3020
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
3021
|
-
*
|
|
3022
|
-
* async function main() {
|
|
3023
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3024
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3025
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3026
|
-
* });
|
|
3027
|
-
*
|
|
3028
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3029
|
-
* const authClient = await auth.getClient();
|
|
3030
|
-
* google.options({auth: authClient});
|
|
3031
|
-
*
|
|
3032
|
-
* // Do the magic
|
|
3033
|
-
* const res = await toolresults.projects.histories.executions.steps.get({
|
|
3034
|
-
* // A Execution id. Required.
|
|
3035
|
-
* executionId: 'placeholder-value',
|
|
3036
|
-
* // A History id. Required.
|
|
3037
|
-
* historyId: 'placeholder-value',
|
|
3038
|
-
* // A Project id. Required.
|
|
3039
|
-
* projectId: 'placeholder-value',
|
|
3040
|
-
* // A Step id. Required.
|
|
3041
|
-
* stepId: 'placeholder-value',
|
|
3042
|
-
* });
|
|
3043
|
-
* console.log(res.data);
|
|
3044
|
-
*
|
|
3045
|
-
* // Example response
|
|
3046
|
-
* // {
|
|
3047
|
-
* // "completionTime": {},
|
|
3048
|
-
* // "creationTime": {},
|
|
3049
|
-
* // "description": "my_description",
|
|
3050
|
-
* // "deviceUsageDuration": {},
|
|
3051
|
-
* // "dimensionValue": [],
|
|
3052
|
-
* // "hasImages": false,
|
|
3053
|
-
* // "labels": [],
|
|
3054
|
-
* // "multiStep": {},
|
|
3055
|
-
* // "name": "my_name",
|
|
3056
|
-
* // "outcome": {},
|
|
3057
|
-
* // "runDuration": {},
|
|
3058
|
-
* // "state": "my_state",
|
|
3059
|
-
* // "stepId": "my_stepId",
|
|
3060
|
-
* // "testExecutionStep": {},
|
|
3061
|
-
* // "toolExecutionStep": {}
|
|
3062
|
-
* // }
|
|
3063
|
-
* }
|
|
3064
|
-
*
|
|
3065
|
-
* main().catch(e => {
|
|
3066
|
-
* console.error(e);
|
|
3067
|
-
* throw e;
|
|
3068
|
-
* });
|
|
3069
|
-
*
|
|
3070
|
-
* ```
|
|
3071
2191
|
*
|
|
3072
2192
|
* @param params - Parameters for request
|
|
3073
2193
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3082,64 +2202,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
3082
2202
|
get(callback: BodyResponseCallback<Schema$Step>): void;
|
|
3083
2203
|
/**
|
|
3084
2204
|
* Retrieves a PerfMetricsSummary. May return any of the following error code(s): - NOT_FOUND - The specified PerfMetricsSummary does not exist
|
|
3085
|
-
* @example
|
|
3086
|
-
* ```js
|
|
3087
|
-
* // Before running the sample:
|
|
3088
|
-
* // - Enable the API at:
|
|
3089
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3090
|
-
* // - Login into gcloud by running:
|
|
3091
|
-
* // `$ gcloud auth application-default login`
|
|
3092
|
-
* // - Install the npm module by running:
|
|
3093
|
-
* // `$ npm install googleapis`
|
|
3094
|
-
*
|
|
3095
|
-
* const {google} = require('googleapis');
|
|
3096
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
3097
|
-
*
|
|
3098
|
-
* async function main() {
|
|
3099
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3100
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3101
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3102
|
-
* });
|
|
3103
|
-
*
|
|
3104
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3105
|
-
* const authClient = await auth.getClient();
|
|
3106
|
-
* google.options({auth: authClient});
|
|
3107
|
-
*
|
|
3108
|
-
* // Do the magic
|
|
3109
|
-
* const res =
|
|
3110
|
-
* await toolresults.projects.histories.executions.steps.getPerfMetricsSummary(
|
|
3111
|
-
* {
|
|
3112
|
-
* // A tool results execution ID.
|
|
3113
|
-
* executionId: 'placeholder-value',
|
|
3114
|
-
* // A tool results history ID.
|
|
3115
|
-
* historyId: 'placeholder-value',
|
|
3116
|
-
* // The cloud project
|
|
3117
|
-
* projectId: 'placeholder-value',
|
|
3118
|
-
* // A tool results step ID.
|
|
3119
|
-
* stepId: 'placeholder-value',
|
|
3120
|
-
* }
|
|
3121
|
-
* );
|
|
3122
|
-
* console.log(res.data);
|
|
3123
|
-
*
|
|
3124
|
-
* // Example response
|
|
3125
|
-
* // {
|
|
3126
|
-
* // "appStartTime": {},
|
|
3127
|
-
* // "executionId": "my_executionId",
|
|
3128
|
-
* // "graphicsStats": {},
|
|
3129
|
-
* // "historyId": "my_historyId",
|
|
3130
|
-
* // "perfEnvironment": {},
|
|
3131
|
-
* // "perfMetrics": [],
|
|
3132
|
-
* // "projectId": "my_projectId",
|
|
3133
|
-
* // "stepId": "my_stepId"
|
|
3134
|
-
* // }
|
|
3135
|
-
* }
|
|
3136
|
-
*
|
|
3137
|
-
* main().catch(e => {
|
|
3138
|
-
* console.error(e);
|
|
3139
|
-
* throw e;
|
|
3140
|
-
* });
|
|
3141
|
-
*
|
|
3142
|
-
* ```
|
|
3143
2205
|
*
|
|
3144
2206
|
* @param params - Parameters for request
|
|
3145
2207
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3154,57 +2216,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
3154
2216
|
getPerfMetricsSummary(callback: BodyResponseCallback<Schema$PerfMetricsSummary>): void;
|
|
3155
2217
|
/**
|
|
3156
2218
|
* 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
|
|
3157
|
-
* @example
|
|
3158
|
-
* ```js
|
|
3159
|
-
* // Before running the sample:
|
|
3160
|
-
* // - Enable the API at:
|
|
3161
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3162
|
-
* // - Login into gcloud by running:
|
|
3163
|
-
* // `$ gcloud auth application-default login`
|
|
3164
|
-
* // - Install the npm module by running:
|
|
3165
|
-
* // `$ npm install googleapis`
|
|
3166
|
-
*
|
|
3167
|
-
* const {google} = require('googleapis');
|
|
3168
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
3169
|
-
*
|
|
3170
|
-
* async function main() {
|
|
3171
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3172
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3173
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3174
|
-
* });
|
|
3175
|
-
*
|
|
3176
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3177
|
-
* const authClient = await auth.getClient();
|
|
3178
|
-
* google.options({auth: authClient});
|
|
3179
|
-
*
|
|
3180
|
-
* // Do the magic
|
|
3181
|
-
* const res = await toolresults.projects.histories.executions.steps.list({
|
|
3182
|
-
* // A Execution id. Required.
|
|
3183
|
-
* executionId: 'placeholder-value',
|
|
3184
|
-
* // A History id. Required.
|
|
3185
|
-
* historyId: 'placeholder-value',
|
|
3186
|
-
* // 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.
|
|
3187
|
-
* pageSize: 'placeholder-value',
|
|
3188
|
-
* // A continuation token to resume the query at the next item. Optional.
|
|
3189
|
-
* pageToken: 'placeholder-value',
|
|
3190
|
-
* // A Project id. Required.
|
|
3191
|
-
* projectId: 'placeholder-value',
|
|
3192
|
-
* });
|
|
3193
|
-
* console.log(res.data);
|
|
3194
|
-
*
|
|
3195
|
-
* // Example response
|
|
3196
|
-
* // {
|
|
3197
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
3198
|
-
* // "steps": []
|
|
3199
|
-
* // }
|
|
3200
|
-
* }
|
|
3201
|
-
*
|
|
3202
|
-
* main().catch(e => {
|
|
3203
|
-
* console.error(e);
|
|
3204
|
-
* throw e;
|
|
3205
|
-
* });
|
|
3206
|
-
*
|
|
3207
|
-
* ```
|
|
3208
2219
|
*
|
|
3209
2220
|
* @param params - Parameters for request
|
|
3210
2221
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3219,92 +2230,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
3219
2230
|
list(callback: BodyResponseCallback<Schema$ListStepsResponse>): void;
|
|
3220
2231
|
/**
|
|
3221
2232
|
* 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
|
|
3222
|
-
* @example
|
|
3223
|
-
* ```js
|
|
3224
|
-
* // Before running the sample:
|
|
3225
|
-
* // - Enable the API at:
|
|
3226
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3227
|
-
* // - Login into gcloud by running:
|
|
3228
|
-
* // `$ gcloud auth application-default login`
|
|
3229
|
-
* // - Install the npm module by running:
|
|
3230
|
-
* // `$ npm install googleapis`
|
|
3231
|
-
*
|
|
3232
|
-
* const {google} = require('googleapis');
|
|
3233
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
3234
|
-
*
|
|
3235
|
-
* async function main() {
|
|
3236
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3237
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3238
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3239
|
-
* });
|
|
3240
|
-
*
|
|
3241
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3242
|
-
* const authClient = await auth.getClient();
|
|
3243
|
-
* google.options({auth: authClient});
|
|
3244
|
-
*
|
|
3245
|
-
* // Do the magic
|
|
3246
|
-
* const res = await toolresults.projects.histories.executions.steps.patch({
|
|
3247
|
-
* // A Execution id. Required.
|
|
3248
|
-
* executionId: 'placeholder-value',
|
|
3249
|
-
* // A History id. Required.
|
|
3250
|
-
* historyId: 'placeholder-value',
|
|
3251
|
-
* // A Project id. Required.
|
|
3252
|
-
* projectId: 'placeholder-value',
|
|
3253
|
-
* // A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
|
|
3254
|
-
* requestId: 'placeholder-value',
|
|
3255
|
-
* // A Step id. Required.
|
|
3256
|
-
* stepId: 'placeholder-value',
|
|
3257
|
-
*
|
|
3258
|
-
* // Request body metadata
|
|
3259
|
-
* requestBody: {
|
|
3260
|
-
* // request body parameters
|
|
3261
|
-
* // {
|
|
3262
|
-
* // "completionTime": {},
|
|
3263
|
-
* // "creationTime": {},
|
|
3264
|
-
* // "description": "my_description",
|
|
3265
|
-
* // "deviceUsageDuration": {},
|
|
3266
|
-
* // "dimensionValue": [],
|
|
3267
|
-
* // "hasImages": false,
|
|
3268
|
-
* // "labels": [],
|
|
3269
|
-
* // "multiStep": {},
|
|
3270
|
-
* // "name": "my_name",
|
|
3271
|
-
* // "outcome": {},
|
|
3272
|
-
* // "runDuration": {},
|
|
3273
|
-
* // "state": "my_state",
|
|
3274
|
-
* // "stepId": "my_stepId",
|
|
3275
|
-
* // "testExecutionStep": {},
|
|
3276
|
-
* // "toolExecutionStep": {}
|
|
3277
|
-
* // }
|
|
3278
|
-
* },
|
|
3279
|
-
* });
|
|
3280
|
-
* console.log(res.data);
|
|
3281
|
-
*
|
|
3282
|
-
* // Example response
|
|
3283
|
-
* // {
|
|
3284
|
-
* // "completionTime": {},
|
|
3285
|
-
* // "creationTime": {},
|
|
3286
|
-
* // "description": "my_description",
|
|
3287
|
-
* // "deviceUsageDuration": {},
|
|
3288
|
-
* // "dimensionValue": [],
|
|
3289
|
-
* // "hasImages": false,
|
|
3290
|
-
* // "labels": [],
|
|
3291
|
-
* // "multiStep": {},
|
|
3292
|
-
* // "name": "my_name",
|
|
3293
|
-
* // "outcome": {},
|
|
3294
|
-
* // "runDuration": {},
|
|
3295
|
-
* // "state": "my_state",
|
|
3296
|
-
* // "stepId": "my_stepId",
|
|
3297
|
-
* // "testExecutionStep": {},
|
|
3298
|
-
* // "toolExecutionStep": {}
|
|
3299
|
-
* // }
|
|
3300
|
-
* }
|
|
3301
|
-
*
|
|
3302
|
-
* main().catch(e => {
|
|
3303
|
-
* console.error(e);
|
|
3304
|
-
* throw e;
|
|
3305
|
-
* });
|
|
3306
|
-
*
|
|
3307
|
-
* ```
|
|
3308
2233
|
*
|
|
3309
2234
|
* @param params - Parameters for request
|
|
3310
2235
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3319,77 +2244,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
3319
2244
|
patch(callback: BodyResponseCallback<Schema$Step>): void;
|
|
3320
2245
|
/**
|
|
3321
2246
|
* 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
|
|
3322
|
-
* @example
|
|
3323
|
-
* ```js
|
|
3324
|
-
* // Before running the sample:
|
|
3325
|
-
* // - Enable the API at:
|
|
3326
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3327
|
-
* // - Login into gcloud by running:
|
|
3328
|
-
* // `$ gcloud auth application-default login`
|
|
3329
|
-
* // - Install the npm module by running:
|
|
3330
|
-
* // `$ npm install googleapis`
|
|
3331
|
-
*
|
|
3332
|
-
* const {google} = require('googleapis');
|
|
3333
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
3334
|
-
*
|
|
3335
|
-
* async function main() {
|
|
3336
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3337
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3338
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3339
|
-
* });
|
|
3340
|
-
*
|
|
3341
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3342
|
-
* const authClient = await auth.getClient();
|
|
3343
|
-
* google.options({auth: authClient});
|
|
3344
|
-
*
|
|
3345
|
-
* // Do the magic
|
|
3346
|
-
* const res =
|
|
3347
|
-
* await toolresults.projects.histories.executions.steps.publishXunitXmlFiles({
|
|
3348
|
-
* // A Execution id. Required.
|
|
3349
|
-
* executionId: 'placeholder-value',
|
|
3350
|
-
* // A History id. Required.
|
|
3351
|
-
* historyId: 'placeholder-value',
|
|
3352
|
-
* // A Project id. Required.
|
|
3353
|
-
* projectId: 'placeholder-value',
|
|
3354
|
-
* // A Step id. Note: This step must include a TestExecutionStep. Required.
|
|
3355
|
-
* stepId: 'placeholder-value',
|
|
3356
|
-
*
|
|
3357
|
-
* // Request body metadata
|
|
3358
|
-
* requestBody: {
|
|
3359
|
-
* // request body parameters
|
|
3360
|
-
* // {
|
|
3361
|
-
* // "xunitXmlFiles": []
|
|
3362
|
-
* // }
|
|
3363
|
-
* },
|
|
3364
|
-
* });
|
|
3365
|
-
* console.log(res.data);
|
|
3366
|
-
*
|
|
3367
|
-
* // Example response
|
|
3368
|
-
* // {
|
|
3369
|
-
* // "completionTime": {},
|
|
3370
|
-
* // "creationTime": {},
|
|
3371
|
-
* // "description": "my_description",
|
|
3372
|
-
* // "deviceUsageDuration": {},
|
|
3373
|
-
* // "dimensionValue": [],
|
|
3374
|
-
* // "hasImages": false,
|
|
3375
|
-
* // "labels": [],
|
|
3376
|
-
* // "multiStep": {},
|
|
3377
|
-
* // "name": "my_name",
|
|
3378
|
-
* // "outcome": {},
|
|
3379
|
-
* // "runDuration": {},
|
|
3380
|
-
* // "state": "my_state",
|
|
3381
|
-
* // "stepId": "my_stepId",
|
|
3382
|
-
* // "testExecutionStep": {},
|
|
3383
|
-
* // "toolExecutionStep": {}
|
|
3384
|
-
* // }
|
|
3385
|
-
* }
|
|
3386
|
-
*
|
|
3387
|
-
* main().catch(e => {
|
|
3388
|
-
* console.error(e);
|
|
3389
|
-
* throw e;
|
|
3390
|
-
* });
|
|
3391
|
-
*
|
|
3392
|
-
* ```
|
|
3393
2247
|
*
|
|
3394
2248
|
* @param params - Parameters for request
|
|
3395
2249
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3546,79 +2400,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
3546
2400
|
constructor(context: APIRequestContext);
|
|
3547
2401
|
/**
|
|
3548
2402
|
* 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
|
|
3549
|
-
* @example
|
|
3550
|
-
* ```js
|
|
3551
|
-
* // Before running the sample:
|
|
3552
|
-
* // - Enable the API at:
|
|
3553
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3554
|
-
* // - Login into gcloud by running:
|
|
3555
|
-
* // `$ gcloud auth application-default login`
|
|
3556
|
-
* // - Install the npm module by running:
|
|
3557
|
-
* // `$ npm install googleapis`
|
|
3558
|
-
*
|
|
3559
|
-
* const {google} = require('googleapis');
|
|
3560
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
3561
|
-
*
|
|
3562
|
-
* async function main() {
|
|
3563
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3564
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3565
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3566
|
-
* });
|
|
3567
|
-
*
|
|
3568
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3569
|
-
* const authClient = await auth.getClient();
|
|
3570
|
-
* google.options({auth: authClient});
|
|
3571
|
-
*
|
|
3572
|
-
* // Do the magic
|
|
3573
|
-
* const res =
|
|
3574
|
-
* await toolresults.projects.histories.executions.steps.perfMetricsSummary.create(
|
|
3575
|
-
* {
|
|
3576
|
-
* // A tool results execution ID.
|
|
3577
|
-
* executionId: 'placeholder-value',
|
|
3578
|
-
* // A tool results history ID.
|
|
3579
|
-
* historyId: 'placeholder-value',
|
|
3580
|
-
* // The cloud project
|
|
3581
|
-
* projectId: 'placeholder-value',
|
|
3582
|
-
* // A tool results step ID.
|
|
3583
|
-
* stepId: 'placeholder-value',
|
|
3584
|
-
*
|
|
3585
|
-
* // Request body metadata
|
|
3586
|
-
* requestBody: {
|
|
3587
|
-
* // request body parameters
|
|
3588
|
-
* // {
|
|
3589
|
-
* // "appStartTime": {},
|
|
3590
|
-
* // "executionId": "my_executionId",
|
|
3591
|
-
* // "graphicsStats": {},
|
|
3592
|
-
* // "historyId": "my_historyId",
|
|
3593
|
-
* // "perfEnvironment": {},
|
|
3594
|
-
* // "perfMetrics": [],
|
|
3595
|
-
* // "projectId": "my_projectId",
|
|
3596
|
-
* // "stepId": "my_stepId"
|
|
3597
|
-
* // }
|
|
3598
|
-
* },
|
|
3599
|
-
* }
|
|
3600
|
-
* );
|
|
3601
|
-
* console.log(res.data);
|
|
3602
|
-
*
|
|
3603
|
-
* // Example response
|
|
3604
|
-
* // {
|
|
3605
|
-
* // "appStartTime": {},
|
|
3606
|
-
* // "executionId": "my_executionId",
|
|
3607
|
-
* // "graphicsStats": {},
|
|
3608
|
-
* // "historyId": "my_historyId",
|
|
3609
|
-
* // "perfEnvironment": {},
|
|
3610
|
-
* // "perfMetrics": [],
|
|
3611
|
-
* // "projectId": "my_projectId",
|
|
3612
|
-
* // "stepId": "my_stepId"
|
|
3613
|
-
* // }
|
|
3614
|
-
* }
|
|
3615
|
-
*
|
|
3616
|
-
* main().catch(e => {
|
|
3617
|
-
* console.error(e);
|
|
3618
|
-
* throw e;
|
|
3619
|
-
* });
|
|
3620
|
-
*
|
|
3621
|
-
* ```
|
|
3622
2403
|
*
|
|
3623
2404
|
* @param params - Parameters for request
|
|
3624
2405
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3660,75 +2441,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
3660
2441
|
constructor(context: APIRequestContext);
|
|
3661
2442
|
/**
|
|
3662
2443
|
* 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
|
|
3663
|
-
* @example
|
|
3664
|
-
* ```js
|
|
3665
|
-
* // Before running the sample:
|
|
3666
|
-
* // - Enable the API at:
|
|
3667
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3668
|
-
* // - Login into gcloud by running:
|
|
3669
|
-
* // `$ gcloud auth application-default login`
|
|
3670
|
-
* // - Install the npm module by running:
|
|
3671
|
-
* // `$ npm install googleapis`
|
|
3672
|
-
*
|
|
3673
|
-
* const {google} = require('googleapis');
|
|
3674
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
3675
|
-
*
|
|
3676
|
-
* async function main() {
|
|
3677
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3678
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3679
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3680
|
-
* });
|
|
3681
|
-
*
|
|
3682
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3683
|
-
* const authClient = await auth.getClient();
|
|
3684
|
-
* google.options({auth: authClient});
|
|
3685
|
-
*
|
|
3686
|
-
* // Do the magic
|
|
3687
|
-
* const res =
|
|
3688
|
-
* await toolresults.projects.histories.executions.steps.perfSampleSeries.create(
|
|
3689
|
-
* {
|
|
3690
|
-
* // A tool results execution ID.
|
|
3691
|
-
* executionId: 'placeholder-value',
|
|
3692
|
-
* // A tool results history ID.
|
|
3693
|
-
* historyId: 'placeholder-value',
|
|
3694
|
-
* // The cloud project
|
|
3695
|
-
* projectId: 'placeholder-value',
|
|
3696
|
-
* // A tool results step ID.
|
|
3697
|
-
* stepId: 'placeholder-value',
|
|
3698
|
-
*
|
|
3699
|
-
* // Request body metadata
|
|
3700
|
-
* requestBody: {
|
|
3701
|
-
* // request body parameters
|
|
3702
|
-
* // {
|
|
3703
|
-
* // "basicPerfSampleSeries": {},
|
|
3704
|
-
* // "executionId": "my_executionId",
|
|
3705
|
-
* // "historyId": "my_historyId",
|
|
3706
|
-
* // "projectId": "my_projectId",
|
|
3707
|
-
* // "sampleSeriesId": "my_sampleSeriesId",
|
|
3708
|
-
* // "stepId": "my_stepId"
|
|
3709
|
-
* // }
|
|
3710
|
-
* },
|
|
3711
|
-
* }
|
|
3712
|
-
* );
|
|
3713
|
-
* console.log(res.data);
|
|
3714
|
-
*
|
|
3715
|
-
* // Example response
|
|
3716
|
-
* // {
|
|
3717
|
-
* // "basicPerfSampleSeries": {},
|
|
3718
|
-
* // "executionId": "my_executionId",
|
|
3719
|
-
* // "historyId": "my_historyId",
|
|
3720
|
-
* // "projectId": "my_projectId",
|
|
3721
|
-
* // "sampleSeriesId": "my_sampleSeriesId",
|
|
3722
|
-
* // "stepId": "my_stepId"
|
|
3723
|
-
* // }
|
|
3724
|
-
* }
|
|
3725
|
-
*
|
|
3726
|
-
* main().catch(e => {
|
|
3727
|
-
* console.error(e);
|
|
3728
|
-
* throw e;
|
|
3729
|
-
* });
|
|
3730
|
-
*
|
|
3731
|
-
* ```
|
|
3732
2444
|
*
|
|
3733
2445
|
* @param params - Parameters for request
|
|
3734
2446
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3743,62 +2455,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
3743
2455
|
create(callback: BodyResponseCallback<Schema$PerfSampleSeries>): void;
|
|
3744
2456
|
/**
|
|
3745
2457
|
* Gets a PerfSampleSeries. May return any of the following error code(s): - NOT_FOUND - The specified PerfSampleSeries does not exist
|
|
3746
|
-
* @example
|
|
3747
|
-
* ```js
|
|
3748
|
-
* // Before running the sample:
|
|
3749
|
-
* // - Enable the API at:
|
|
3750
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3751
|
-
* // - Login into gcloud by running:
|
|
3752
|
-
* // `$ gcloud auth application-default login`
|
|
3753
|
-
* // - Install the npm module by running:
|
|
3754
|
-
* // `$ npm install googleapis`
|
|
3755
|
-
*
|
|
3756
|
-
* const {google} = require('googleapis');
|
|
3757
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
3758
|
-
*
|
|
3759
|
-
* async function main() {
|
|
3760
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3761
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3762
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3763
|
-
* });
|
|
3764
|
-
*
|
|
3765
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3766
|
-
* const authClient = await auth.getClient();
|
|
3767
|
-
* google.options({auth: authClient});
|
|
3768
|
-
*
|
|
3769
|
-
* // Do the magic
|
|
3770
|
-
* const res =
|
|
3771
|
-
* await toolresults.projects.histories.executions.steps.perfSampleSeries.get({
|
|
3772
|
-
* // A tool results execution ID.
|
|
3773
|
-
* executionId: 'placeholder-value',
|
|
3774
|
-
* // A tool results history ID.
|
|
3775
|
-
* historyId: 'placeholder-value',
|
|
3776
|
-
* // The cloud project
|
|
3777
|
-
* projectId: 'placeholder-value',
|
|
3778
|
-
* // A sample series id
|
|
3779
|
-
* sampleSeriesId: 'placeholder-value',
|
|
3780
|
-
* // A tool results step ID.
|
|
3781
|
-
* stepId: 'placeholder-value',
|
|
3782
|
-
* });
|
|
3783
|
-
* console.log(res.data);
|
|
3784
|
-
*
|
|
3785
|
-
* // Example response
|
|
3786
|
-
* // {
|
|
3787
|
-
* // "basicPerfSampleSeries": {},
|
|
3788
|
-
* // "executionId": "my_executionId",
|
|
3789
|
-
* // "historyId": "my_historyId",
|
|
3790
|
-
* // "projectId": "my_projectId",
|
|
3791
|
-
* // "sampleSeriesId": "my_sampleSeriesId",
|
|
3792
|
-
* // "stepId": "my_stepId"
|
|
3793
|
-
* // }
|
|
3794
|
-
* }
|
|
3795
|
-
*
|
|
3796
|
-
* main().catch(e => {
|
|
3797
|
-
* console.error(e);
|
|
3798
|
-
* throw e;
|
|
3799
|
-
* });
|
|
3800
|
-
*
|
|
3801
|
-
* ```
|
|
3802
2458
|
*
|
|
3803
2459
|
* @param params - Parameters for request
|
|
3804
2460
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3813,59 +2469,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
3813
2469
|
get(callback: BodyResponseCallback<Schema$PerfSampleSeries>): void;
|
|
3814
2470
|
/**
|
|
3815
2471
|
* 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
|
|
3816
|
-
* @example
|
|
3817
|
-
* ```js
|
|
3818
|
-
* // Before running the sample:
|
|
3819
|
-
* // - Enable the API at:
|
|
3820
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3821
|
-
* // - Login into gcloud by running:
|
|
3822
|
-
* // `$ gcloud auth application-default login`
|
|
3823
|
-
* // - Install the npm module by running:
|
|
3824
|
-
* // `$ npm install googleapis`
|
|
3825
|
-
*
|
|
3826
|
-
* const {google} = require('googleapis');
|
|
3827
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
3828
|
-
*
|
|
3829
|
-
* async function main() {
|
|
3830
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3831
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3832
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3833
|
-
* });
|
|
3834
|
-
*
|
|
3835
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3836
|
-
* const authClient = await auth.getClient();
|
|
3837
|
-
* google.options({auth: authClient});
|
|
3838
|
-
*
|
|
3839
|
-
* // Do the magic
|
|
3840
|
-
* const res =
|
|
3841
|
-
* await toolresults.projects.histories.executions.steps.perfSampleSeries.list(
|
|
3842
|
-
* {
|
|
3843
|
-
* // A tool results execution ID.
|
|
3844
|
-
* executionId: 'placeholder-value',
|
|
3845
|
-
* // Specify one or more PerfMetricType values such as CPU to filter the result
|
|
3846
|
-
* filter: 'placeholder-value',
|
|
3847
|
-
* // A tool results history ID.
|
|
3848
|
-
* historyId: 'placeholder-value',
|
|
3849
|
-
* // The cloud project
|
|
3850
|
-
* projectId: 'placeholder-value',
|
|
3851
|
-
* // A tool results step ID.
|
|
3852
|
-
* stepId: 'placeholder-value',
|
|
3853
|
-
* }
|
|
3854
|
-
* );
|
|
3855
|
-
* console.log(res.data);
|
|
3856
|
-
*
|
|
3857
|
-
* // Example response
|
|
3858
|
-
* // {
|
|
3859
|
-
* // "perfSampleSeries": []
|
|
3860
|
-
* // }
|
|
3861
|
-
* }
|
|
3862
|
-
*
|
|
3863
|
-
* main().catch(e => {
|
|
3864
|
-
* console.error(e);
|
|
3865
|
-
* throw e;
|
|
3866
|
-
* });
|
|
3867
|
-
*
|
|
3868
|
-
* ```
|
|
3869
2472
|
*
|
|
3870
2473
|
* @param params - Parameters for request
|
|
3871
2474
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3950,67 +2553,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
3950
2553
|
constructor(context: APIRequestContext);
|
|
3951
2554
|
/**
|
|
3952
2555
|
* 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
|
|
3953
|
-
* @example
|
|
3954
|
-
* ```js
|
|
3955
|
-
* // Before running the sample:
|
|
3956
|
-
* // - Enable the API at:
|
|
3957
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
3958
|
-
* // - Login into gcloud by running:
|
|
3959
|
-
* // `$ gcloud auth application-default login`
|
|
3960
|
-
* // - Install the npm module by running:
|
|
3961
|
-
* // `$ npm install googleapis`
|
|
3962
|
-
*
|
|
3963
|
-
* const {google} = require('googleapis');
|
|
3964
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
3965
|
-
*
|
|
3966
|
-
* async function main() {
|
|
3967
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3968
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3969
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3970
|
-
* });
|
|
3971
|
-
*
|
|
3972
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3973
|
-
* const authClient = await auth.getClient();
|
|
3974
|
-
* google.options({auth: authClient});
|
|
3975
|
-
*
|
|
3976
|
-
* // Do the magic
|
|
3977
|
-
* const res =
|
|
3978
|
-
* await toolresults.projects.histories.executions.steps.perfSampleSeries.samples.batchCreate(
|
|
3979
|
-
* {
|
|
3980
|
-
* // A tool results execution ID.
|
|
3981
|
-
* executionId: 'placeholder-value',
|
|
3982
|
-
* // A tool results history ID.
|
|
3983
|
-
* historyId: 'placeholder-value',
|
|
3984
|
-
* // The cloud project
|
|
3985
|
-
* projectId: 'placeholder-value',
|
|
3986
|
-
* // A sample series id
|
|
3987
|
-
* sampleSeriesId: 'placeholder-value',
|
|
3988
|
-
* // A tool results step ID.
|
|
3989
|
-
* stepId: 'placeholder-value',
|
|
3990
|
-
*
|
|
3991
|
-
* // Request body metadata
|
|
3992
|
-
* requestBody: {
|
|
3993
|
-
* // request body parameters
|
|
3994
|
-
* // {
|
|
3995
|
-
* // "perfSamples": []
|
|
3996
|
-
* // }
|
|
3997
|
-
* },
|
|
3998
|
-
* }
|
|
3999
|
-
* );
|
|
4000
|
-
* console.log(res.data);
|
|
4001
|
-
*
|
|
4002
|
-
* // Example response
|
|
4003
|
-
* // {
|
|
4004
|
-
* // "perfSamples": []
|
|
4005
|
-
* // }
|
|
4006
|
-
* }
|
|
4007
|
-
*
|
|
4008
|
-
* main().catch(e => {
|
|
4009
|
-
* console.error(e);
|
|
4010
|
-
* throw e;
|
|
4011
|
-
* });
|
|
4012
|
-
*
|
|
4013
|
-
* ```
|
|
4014
2556
|
*
|
|
4015
2557
|
* @param params - Parameters for request
|
|
4016
2558
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4025,64 +2567,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
4025
2567
|
batchCreate(callback: BodyResponseCallback<Schema$BatchCreatePerfSamplesResponse>): void;
|
|
4026
2568
|
/**
|
|
4027
2569
|
* 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
|
|
4028
|
-
* @example
|
|
4029
|
-
* ```js
|
|
4030
|
-
* // Before running the sample:
|
|
4031
|
-
* // - Enable the API at:
|
|
4032
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
4033
|
-
* // - Login into gcloud by running:
|
|
4034
|
-
* // `$ gcloud auth application-default login`
|
|
4035
|
-
* // - Install the npm module by running:
|
|
4036
|
-
* // `$ npm install googleapis`
|
|
4037
|
-
*
|
|
4038
|
-
* const {google} = require('googleapis');
|
|
4039
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
4040
|
-
*
|
|
4041
|
-
* async function main() {
|
|
4042
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4043
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4044
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
4045
|
-
* });
|
|
4046
|
-
*
|
|
4047
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4048
|
-
* const authClient = await auth.getClient();
|
|
4049
|
-
* google.options({auth: authClient});
|
|
4050
|
-
*
|
|
4051
|
-
* // Do the magic
|
|
4052
|
-
* const res =
|
|
4053
|
-
* await toolresults.projects.histories.executions.steps.perfSampleSeries.samples.list(
|
|
4054
|
-
* {
|
|
4055
|
-
* // A tool results execution ID.
|
|
4056
|
-
* executionId: 'placeholder-value',
|
|
4057
|
-
* // A tool results history ID.
|
|
4058
|
-
* historyId: 'placeholder-value',
|
|
4059
|
-
* // 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
|
|
4060
|
-
* pageSize: 'placeholder-value',
|
|
4061
|
-
* // Optional, the next_page_token returned in the previous response
|
|
4062
|
-
* pageToken: 'placeholder-value',
|
|
4063
|
-
* // The cloud project
|
|
4064
|
-
* projectId: 'placeholder-value',
|
|
4065
|
-
* // A sample series id
|
|
4066
|
-
* sampleSeriesId: 'placeholder-value',
|
|
4067
|
-
* // A tool results step ID.
|
|
4068
|
-
* stepId: 'placeholder-value',
|
|
4069
|
-
* }
|
|
4070
|
-
* );
|
|
4071
|
-
* console.log(res.data);
|
|
4072
|
-
*
|
|
4073
|
-
* // Example response
|
|
4074
|
-
* // {
|
|
4075
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
4076
|
-
* // "perfSamples": []
|
|
4077
|
-
* // }
|
|
4078
|
-
* }
|
|
4079
|
-
*
|
|
4080
|
-
* main().catch(e => {
|
|
4081
|
-
* console.error(e);
|
|
4082
|
-
* throw e;
|
|
4083
|
-
* });
|
|
4084
|
-
*
|
|
4085
|
-
* ```
|
|
4086
2570
|
*
|
|
4087
2571
|
* @param params - Parameters for request
|
|
4088
2572
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4157,65 +2641,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
4157
2641
|
constructor(context: APIRequestContext);
|
|
4158
2642
|
/**
|
|
4159
2643
|
* 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
|
|
4160
|
-
* @example
|
|
4161
|
-
* ```js
|
|
4162
|
-
* // Before running the sample:
|
|
4163
|
-
* // - Enable the API at:
|
|
4164
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
4165
|
-
* // - Login into gcloud by running:
|
|
4166
|
-
* // `$ gcloud auth application-default login`
|
|
4167
|
-
* // - Install the npm module by running:
|
|
4168
|
-
* // `$ npm install googleapis`
|
|
4169
|
-
*
|
|
4170
|
-
* const {google} = require('googleapis');
|
|
4171
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
4172
|
-
*
|
|
4173
|
-
* async function main() {
|
|
4174
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4175
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4176
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
4177
|
-
* });
|
|
4178
|
-
*
|
|
4179
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4180
|
-
* const authClient = await auth.getClient();
|
|
4181
|
-
* google.options({auth: authClient});
|
|
4182
|
-
*
|
|
4183
|
-
* // Do the magic
|
|
4184
|
-
* const res =
|
|
4185
|
-
* await toolresults.projects.histories.executions.steps.testCases.get({
|
|
4186
|
-
* // A Execution id Required.
|
|
4187
|
-
* executionId: 'placeholder-value',
|
|
4188
|
-
* // A History id. Required.
|
|
4189
|
-
* historyId: 'placeholder-value',
|
|
4190
|
-
* // A Project id. Required.
|
|
4191
|
-
* projectId: 'placeholder-value',
|
|
4192
|
-
* // A Step id. Note: This step must include a TestExecutionStep. Required.
|
|
4193
|
-
* stepId: 'placeholder-value',
|
|
4194
|
-
* // A Test Case id. Required.
|
|
4195
|
-
* testCaseId: 'placeholder-value',
|
|
4196
|
-
* });
|
|
4197
|
-
* console.log(res.data);
|
|
4198
|
-
*
|
|
4199
|
-
* // Example response
|
|
4200
|
-
* // {
|
|
4201
|
-
* // "elapsedTime": {},
|
|
4202
|
-
* // "endTime": {},
|
|
4203
|
-
* // "skippedMessage": "my_skippedMessage",
|
|
4204
|
-
* // "stackTraces": [],
|
|
4205
|
-
* // "startTime": {},
|
|
4206
|
-
* // "status": "my_status",
|
|
4207
|
-
* // "testCaseId": "my_testCaseId",
|
|
4208
|
-
* // "testCaseReference": {},
|
|
4209
|
-
* // "toolOutputs": []
|
|
4210
|
-
* // }
|
|
4211
|
-
* }
|
|
4212
|
-
*
|
|
4213
|
-
* main().catch(e => {
|
|
4214
|
-
* console.error(e);
|
|
4215
|
-
* throw e;
|
|
4216
|
-
* });
|
|
4217
|
-
*
|
|
4218
|
-
* ```
|
|
4219
2644
|
*
|
|
4220
2645
|
* @param params - Parameters for request
|
|
4221
2646
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4230,60 +2655,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
4230
2655
|
get(callback: BodyResponseCallback<Schema$TestCase>): void;
|
|
4231
2656
|
/**
|
|
4232
2657
|
* 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
|
|
4233
|
-
* @example
|
|
4234
|
-
* ```js
|
|
4235
|
-
* // Before running the sample:
|
|
4236
|
-
* // - Enable the API at:
|
|
4237
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
4238
|
-
* // - Login into gcloud by running:
|
|
4239
|
-
* // `$ gcloud auth application-default login`
|
|
4240
|
-
* // - Install the npm module by running:
|
|
4241
|
-
* // `$ npm install googleapis`
|
|
4242
|
-
*
|
|
4243
|
-
* const {google} = require('googleapis');
|
|
4244
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
4245
|
-
*
|
|
4246
|
-
* async function main() {
|
|
4247
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4248
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4249
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
4250
|
-
* });
|
|
4251
|
-
*
|
|
4252
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4253
|
-
* const authClient = await auth.getClient();
|
|
4254
|
-
* google.options({auth: authClient});
|
|
4255
|
-
*
|
|
4256
|
-
* // Do the magic
|
|
4257
|
-
* const res =
|
|
4258
|
-
* await toolresults.projects.histories.executions.steps.testCases.list({
|
|
4259
|
-
* // A Execution id Required.
|
|
4260
|
-
* executionId: 'placeholder-value',
|
|
4261
|
-
* // A History id. Required.
|
|
4262
|
-
* historyId: 'placeholder-value',
|
|
4263
|
-
* // 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.
|
|
4264
|
-
* pageSize: 'placeholder-value',
|
|
4265
|
-
* // A continuation token to resume the query at the next item. Optional.
|
|
4266
|
-
* pageToken: 'placeholder-value',
|
|
4267
|
-
* // A Project id. Required.
|
|
4268
|
-
* projectId: 'placeholder-value',
|
|
4269
|
-
* // A Step id. Note: This step must include a TestExecutionStep. Required.
|
|
4270
|
-
* stepId: 'placeholder-value',
|
|
4271
|
-
* });
|
|
4272
|
-
* console.log(res.data);
|
|
4273
|
-
*
|
|
4274
|
-
* // Example response
|
|
4275
|
-
* // {
|
|
4276
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
4277
|
-
* // "testCases": []
|
|
4278
|
-
* // }
|
|
4279
|
-
* }
|
|
4280
|
-
*
|
|
4281
|
-
* main().catch(e => {
|
|
4282
|
-
* console.error(e);
|
|
4283
|
-
* throw e;
|
|
4284
|
-
* });
|
|
4285
|
-
*
|
|
4286
|
-
* ```
|
|
4287
2658
|
*
|
|
4288
2659
|
* @param params - Parameters for request
|
|
4289
2660
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4350,60 +2721,6 @@ export declare namespace toolresults_v1beta3 {
|
|
|
4350
2721
|
constructor(context: APIRequestContext);
|
|
4351
2722
|
/**
|
|
4352
2723
|
* 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
|
|
4353
|
-
* @example
|
|
4354
|
-
* ```js
|
|
4355
|
-
* // Before running the sample:
|
|
4356
|
-
* // - Enable the API at:
|
|
4357
|
-
* // https://console.developers.google.com/apis/api/toolresults.googleapis.com
|
|
4358
|
-
* // - Login into gcloud by running:
|
|
4359
|
-
* // `$ gcloud auth application-default login`
|
|
4360
|
-
* // - Install the npm module by running:
|
|
4361
|
-
* // `$ npm install googleapis`
|
|
4362
|
-
*
|
|
4363
|
-
* const {google} = require('googleapis');
|
|
4364
|
-
* const toolresults = google.toolresults('v1beta3');
|
|
4365
|
-
*
|
|
4366
|
-
* async function main() {
|
|
4367
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4368
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4369
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
4370
|
-
* });
|
|
4371
|
-
*
|
|
4372
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4373
|
-
* const authClient = await auth.getClient();
|
|
4374
|
-
* google.options({auth: authClient});
|
|
4375
|
-
*
|
|
4376
|
-
* // Do the magic
|
|
4377
|
-
* const res =
|
|
4378
|
-
* await toolresults.projects.histories.executions.steps.thumbnails.list({
|
|
4379
|
-
* // An Execution id. Required.
|
|
4380
|
-
* executionId: 'placeholder-value',
|
|
4381
|
-
* // A History id. Required.
|
|
4382
|
-
* historyId: 'placeholder-value',
|
|
4383
|
-
* // 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.
|
|
4384
|
-
* pageSize: 'placeholder-value',
|
|
4385
|
-
* // A continuation token to resume the query at the next item. Optional.
|
|
4386
|
-
* pageToken: 'placeholder-value',
|
|
4387
|
-
* // A Project id. Required.
|
|
4388
|
-
* projectId: 'placeholder-value',
|
|
4389
|
-
* // A Step id. Required.
|
|
4390
|
-
* stepId: 'placeholder-value',
|
|
4391
|
-
* });
|
|
4392
|
-
* console.log(res.data);
|
|
4393
|
-
*
|
|
4394
|
-
* // Example response
|
|
4395
|
-
* // {
|
|
4396
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
4397
|
-
* // "thumbnails": []
|
|
4398
|
-
* // }
|
|
4399
|
-
* }
|
|
4400
|
-
*
|
|
4401
|
-
* main().catch(e => {
|
|
4402
|
-
* console.error(e);
|
|
4403
|
-
* throw e;
|
|
4404
|
-
* });
|
|
4405
|
-
*
|
|
4406
|
-
* ```
|
|
4407
2724
|
*
|
|
4408
2725
|
* @param params - Parameters for request
|
|
4409
2726
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|