@googleapis/toolresults 3.1.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v1beta3.ts CHANGED
@@ -252,6 +252,10 @@ export namespace toolresults_v1beta3 {
252
252
  */
253
253
  initialDisplayTime?: Schema$Duration;
254
254
  }
255
+ /**
256
+ * There was an issue with the assets in this test.
257
+ */
258
+ export interface Schema$AssetIssue {}
255
259
  /**
256
260
  * A suggestion to use deep links for a Robo run.
257
261
  */
@@ -446,7 +450,7 @@ export namespace toolresults_v1beta3 {
446
450
  testExecutionMatrixId?: string | null;
447
451
  }
448
452
  /**
449
- * Failed to install the APK.
453
+ * Failed to install the App.
450
454
  */
451
455
  export interface Schema$FailedToInstall {}
452
456
  /**
@@ -1790,49 +1794,6 @@ export namespace toolresults_v1beta3 {
1790
1794
 
1791
1795
  /**
1792
1796
  * 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
1793
- * @example
1794
- * ```js
1795
- * // Before running the sample:
1796
- * // - Enable the API at:
1797
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
1798
- * // - Login into gcloud by running:
1799
- * // `$ gcloud auth application-default login`
1800
- * // - Install the npm module by running:
1801
- * // `$ npm install googleapis`
1802
- *
1803
- * const {google} = require('googleapis');
1804
- * const toolresults = google.toolresults('v1beta3');
1805
- *
1806
- * async function main() {
1807
- * const auth = new google.auth.GoogleAuth({
1808
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1809
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1810
- * });
1811
- *
1812
- * // Acquire an auth client, and bind it to all future calls
1813
- * const authClient = await auth.getClient();
1814
- * google.options({auth: authClient});
1815
- *
1816
- * // Do the magic
1817
- * const res = await toolresults.projects.getSettings({
1818
- * // A Project id. Required.
1819
- * projectId: 'placeholder-value',
1820
- * });
1821
- * console.log(res.data);
1822
- *
1823
- * // Example response
1824
- * // {
1825
- * // "defaultBucket": "my_defaultBucket",
1826
- * // "name": "my_name"
1827
- * // }
1828
- * }
1829
- *
1830
- * main().catch(e => {
1831
- * console.error(e);
1832
- * throw e;
1833
- * });
1834
- *
1835
- * ```
1836
1797
  *
1837
1798
  * @param params - Parameters for request
1838
1799
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -1919,49 +1880,6 @@ export namespace toolresults_v1beta3 {
1919
1880
 
1920
1881
  /**
1921
1882
  * 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
1922
- * @example
1923
- * ```js
1924
- * // Before running the sample:
1925
- * // - Enable the API at:
1926
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
1927
- * // - Login into gcloud by running:
1928
- * // `$ gcloud auth application-default login`
1929
- * // - Install the npm module by running:
1930
- * // `$ npm install googleapis`
1931
- *
1932
- * const {google} = require('googleapis');
1933
- * const toolresults = google.toolresults('v1beta3');
1934
- *
1935
- * async function main() {
1936
- * const auth = new google.auth.GoogleAuth({
1937
- * // Scopes can be specified either as an array or as a single, space-delimited string.
1938
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
1939
- * });
1940
- *
1941
- * // Acquire an auth client, and bind it to all future calls
1942
- * const authClient = await auth.getClient();
1943
- * google.options({auth: authClient});
1944
- *
1945
- * // Do the magic
1946
- * const res = await toolresults.projects.initializeSettings({
1947
- * // A Project id. Required.
1948
- * projectId: 'placeholder-value',
1949
- * });
1950
- * console.log(res.data);
1951
- *
1952
- * // Example response
1953
- * // {
1954
- * // "defaultBucket": "my_defaultBucket",
1955
- * // "name": "my_name"
1956
- * // }
1957
- * }
1958
- *
1959
- * main().catch(e => {
1960
- * console.error(e);
1961
- * throw e;
1962
- * });
1963
- *
1964
- * ```
1965
1883
  *
1966
1884
  * @param params - Parameters for request
1967
1885
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2077,64 +1995,6 @@ export namespace toolresults_v1beta3 {
2077
1995
 
2078
1996
  /**
2079
1997
  * 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
2080
- * @example
2081
- * ```js
2082
- * // Before running the sample:
2083
- * // - Enable the API at:
2084
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
2085
- * // - Login into gcloud by running:
2086
- * // `$ gcloud auth application-default login`
2087
- * // - Install the npm module by running:
2088
- * // `$ npm install googleapis`
2089
- *
2090
- * const {google} = require('googleapis');
2091
- * const toolresults = google.toolresults('v1beta3');
2092
- *
2093
- * async function main() {
2094
- * const auth = new google.auth.GoogleAuth({
2095
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2096
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2097
- * });
2098
- *
2099
- * // Acquire an auth client, and bind it to all future calls
2100
- * const authClient = await auth.getClient();
2101
- * google.options({auth: authClient});
2102
- *
2103
- * // Do the magic
2104
- * const res = await toolresults.projects.histories.create({
2105
- * // A Project id. Required.
2106
- * projectId: 'placeholder-value',
2107
- * // A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
2108
- * requestId: 'placeholder-value',
2109
- *
2110
- * // Request body metadata
2111
- * requestBody: {
2112
- * // request body parameters
2113
- * // {
2114
- * // "displayName": "my_displayName",
2115
- * // "historyId": "my_historyId",
2116
- * // "name": "my_name",
2117
- * // "testPlatform": "my_testPlatform"
2118
- * // }
2119
- * },
2120
- * });
2121
- * console.log(res.data);
2122
- *
2123
- * // Example response
2124
- * // {
2125
- * // "displayName": "my_displayName",
2126
- * // "historyId": "my_historyId",
2127
- * // "name": "my_name",
2128
- * // "testPlatform": "my_testPlatform"
2129
- * // }
2130
- * }
2131
- *
2132
- * main().catch(e => {
2133
- * console.error(e);
2134
- * throw e;
2135
- * });
2136
- *
2137
- * ```
2138
1998
  *
2139
1999
  * @param params - Parameters for request
2140
2000
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2221,53 +2081,6 @@ export namespace toolresults_v1beta3 {
2221
2081
 
2222
2082
  /**
2223
2083
  * 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
2224
- * @example
2225
- * ```js
2226
- * // Before running the sample:
2227
- * // - Enable the API at:
2228
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
2229
- * // - Login into gcloud by running:
2230
- * // `$ gcloud auth application-default login`
2231
- * // - Install the npm module by running:
2232
- * // `$ npm install googleapis`
2233
- *
2234
- * const {google} = require('googleapis');
2235
- * const toolresults = google.toolresults('v1beta3');
2236
- *
2237
- * async function main() {
2238
- * const auth = new google.auth.GoogleAuth({
2239
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2240
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2241
- * });
2242
- *
2243
- * // Acquire an auth client, and bind it to all future calls
2244
- * const authClient = await auth.getClient();
2245
- * google.options({auth: authClient});
2246
- *
2247
- * // Do the magic
2248
- * const res = await toolresults.projects.histories.get({
2249
- * // A History id. Required.
2250
- * historyId: 'placeholder-value',
2251
- * // A Project id. Required.
2252
- * projectId: 'placeholder-value',
2253
- * });
2254
- * console.log(res.data);
2255
- *
2256
- * // Example response
2257
- * // {
2258
- * // "displayName": "my_displayName",
2259
- * // "historyId": "my_historyId",
2260
- * // "name": "my_name",
2261
- * // "testPlatform": "my_testPlatform"
2262
- * // }
2263
- * }
2264
- *
2265
- * main().catch(e => {
2266
- * console.error(e);
2267
- * throw e;
2268
- * });
2269
- *
2270
- * ```
2271
2084
  *
2272
2085
  * @param params - Parameters for request
2273
2086
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2355,55 +2168,6 @@ export namespace toolresults_v1beta3 {
2355
2168
 
2356
2169
  /**
2357
2170
  * 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
2358
- * @example
2359
- * ```js
2360
- * // Before running the sample:
2361
- * // - Enable the API at:
2362
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
2363
- * // - Login into gcloud by running:
2364
- * // `$ gcloud auth application-default login`
2365
- * // - Install the npm module by running:
2366
- * // `$ npm install googleapis`
2367
- *
2368
- * const {google} = require('googleapis');
2369
- * const toolresults = google.toolresults('v1beta3');
2370
- *
2371
- * async function main() {
2372
- * const auth = new google.auth.GoogleAuth({
2373
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2374
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2375
- * });
2376
- *
2377
- * // Acquire an auth client, and bind it to all future calls
2378
- * const authClient = await auth.getClient();
2379
- * google.options({auth: authClient});
2380
- *
2381
- * // Do the magic
2382
- * const res = await toolresults.projects.histories.list({
2383
- * // If set, only return histories with the given name. Optional.
2384
- * filterByName: 'placeholder-value',
2385
- * // 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.
2386
- * pageSize: 'placeholder-value',
2387
- * // A continuation token to resume the query at the next item. Optional.
2388
- * pageToken: 'placeholder-value',
2389
- * // A Project id. Required.
2390
- * projectId: 'placeholder-value',
2391
- * });
2392
- * console.log(res.data);
2393
- *
2394
- * // Example response
2395
- * // {
2396
- * // "histories": [],
2397
- * // "nextPageToken": "my_nextPageToken"
2398
- * // }
2399
- * }
2400
- *
2401
- * main().catch(e => {
2402
- * console.error(e);
2403
- * throw e;
2404
- * });
2405
- *
2406
- * ```
2407
2171
  *
2408
2172
  * @param params - Parameters for request
2409
2173
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2560,74 +2324,6 @@ export namespace toolresults_v1beta3 {
2560
2324
 
2561
2325
  /**
2562
2326
  * 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
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.create({
2588
- * // A History id. Required.
2589
- * historyId: 'placeholder-value',
2590
- * // A Project id. Required.
2591
- * projectId: 'placeholder-value',
2592
- * // A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
2593
- * requestId: 'placeholder-value',
2594
- *
2595
- * // Request body metadata
2596
- * requestBody: {
2597
- * // request body parameters
2598
- * // {
2599
- * // "completionTime": {},
2600
- * // "creationTime": {},
2601
- * // "dimensionDefinitions": [],
2602
- * // "executionId": "my_executionId",
2603
- * // "outcome": {},
2604
- * // "specification": {},
2605
- * // "state": "my_state",
2606
- * // "testExecutionMatrixId": "my_testExecutionMatrixId"
2607
- * // }
2608
- * },
2609
- * });
2610
- * console.log(res.data);
2611
- *
2612
- * // Example response
2613
- * // {
2614
- * // "completionTime": {},
2615
- * // "creationTime": {},
2616
- * // "dimensionDefinitions": [],
2617
- * // "executionId": "my_executionId",
2618
- * // "outcome": {},
2619
- * // "specification": {},
2620
- * // "state": "my_state",
2621
- * // "testExecutionMatrixId": "my_testExecutionMatrixId"
2622
- * // }
2623
- * }
2624
- *
2625
- * main().catch(e => {
2626
- * console.error(e);
2627
- * throw e;
2628
- * });
2629
- *
2630
- * ```
2631
2327
  *
2632
2328
  * @param params - Parameters for request
2633
2329
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2715,59 +2411,6 @@ export namespace toolresults_v1beta3 {
2715
2411
 
2716
2412
  /**
2717
2413
  * 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
2718
- * @example
2719
- * ```js
2720
- * // Before running the sample:
2721
- * // - Enable the API at:
2722
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
2723
- * // - Login into gcloud by running:
2724
- * // `$ gcloud auth application-default login`
2725
- * // - Install the npm module by running:
2726
- * // `$ npm install googleapis`
2727
- *
2728
- * const {google} = require('googleapis');
2729
- * const toolresults = google.toolresults('v1beta3');
2730
- *
2731
- * async function main() {
2732
- * const auth = new google.auth.GoogleAuth({
2733
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2734
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2735
- * });
2736
- *
2737
- * // Acquire an auth client, and bind it to all future calls
2738
- * const authClient = await auth.getClient();
2739
- * google.options({auth: authClient});
2740
- *
2741
- * // Do the magic
2742
- * const res = await toolresults.projects.histories.executions.get({
2743
- * // An Execution id. Required.
2744
- * executionId: 'placeholder-value',
2745
- * // A History id. Required.
2746
- * historyId: 'placeholder-value',
2747
- * // A Project id. Required.
2748
- * projectId: 'placeholder-value',
2749
- * });
2750
- * console.log(res.data);
2751
- *
2752
- * // Example response
2753
- * // {
2754
- * // "completionTime": {},
2755
- * // "creationTime": {},
2756
- * // "dimensionDefinitions": [],
2757
- * // "executionId": "my_executionId",
2758
- * // "outcome": {},
2759
- * // "specification": {},
2760
- * // "state": "my_state",
2761
- * // "testExecutionMatrixId": "my_testExecutionMatrixId"
2762
- * // }
2763
- * }
2764
- *
2765
- * main().catch(e => {
2766
- * console.error(e);
2767
- * throw e;
2768
- * });
2769
- *
2770
- * ```
2771
2414
  *
2772
2415
  * @param params - Parameters for request
2773
2416
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2855,55 +2498,6 @@ export namespace toolresults_v1beta3 {
2855
2498
 
2856
2499
  /**
2857
2500
  * 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
2858
- * @example
2859
- * ```js
2860
- * // Before running the sample:
2861
- * // - Enable the API at:
2862
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
2863
- * // - Login into gcloud by running:
2864
- * // `$ gcloud auth application-default login`
2865
- * // - Install the npm module by running:
2866
- * // `$ npm install googleapis`
2867
- *
2868
- * const {google} = require('googleapis');
2869
- * const toolresults = google.toolresults('v1beta3');
2870
- *
2871
- * async function main() {
2872
- * const auth = new google.auth.GoogleAuth({
2873
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2874
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
2875
- * });
2876
- *
2877
- * // Acquire an auth client, and bind it to all future calls
2878
- * const authClient = await auth.getClient();
2879
- * google.options({auth: authClient});
2880
- *
2881
- * // Do the magic
2882
- * const res = await toolresults.projects.histories.executions.list({
2883
- * // A History id. Required.
2884
- * historyId: 'placeholder-value',
2885
- * // 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.
2886
- * pageSize: 'placeholder-value',
2887
- * // A continuation token to resume the query at the next item. Optional.
2888
- * pageToken: 'placeholder-value',
2889
- * // A Project id. Required.
2890
- * projectId: 'placeholder-value',
2891
- * });
2892
- * console.log(res.data);
2893
- *
2894
- * // Example response
2895
- * // {
2896
- * // "executions": [],
2897
- * // "nextPageToken": "my_nextPageToken"
2898
- * // }
2899
- * }
2900
- *
2901
- * main().catch(e => {
2902
- * console.error(e);
2903
- * throw e;
2904
- * });
2905
- *
2906
- * ```
2907
2501
  *
2908
2502
  * @param params - Parameters for request
2909
2503
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2996,76 +2590,6 @@ export namespace toolresults_v1beta3 {
2996
2590
 
2997
2591
  /**
2998
2592
  * 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
2999
- * @example
3000
- * ```js
3001
- * // Before running the sample:
3002
- * // - Enable the API at:
3003
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
3004
- * // - Login into gcloud by running:
3005
- * // `$ gcloud auth application-default login`
3006
- * // - Install the npm module by running:
3007
- * // `$ npm install googleapis`
3008
- *
3009
- * const {google} = require('googleapis');
3010
- * const toolresults = google.toolresults('v1beta3');
3011
- *
3012
- * async function main() {
3013
- * const auth = new google.auth.GoogleAuth({
3014
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3015
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3016
- * });
3017
- *
3018
- * // Acquire an auth client, and bind it to all future calls
3019
- * const authClient = await auth.getClient();
3020
- * google.options({auth: authClient});
3021
- *
3022
- * // Do the magic
3023
- * const res = await toolresults.projects.histories.executions.patch({
3024
- * // Required.
3025
- * executionId: 'placeholder-value',
3026
- * // Required.
3027
- * historyId: 'placeholder-value',
3028
- * // A Project id. Required.
3029
- * projectId: 'placeholder-value',
3030
- * // A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
3031
- * requestId: 'placeholder-value',
3032
- *
3033
- * // Request body metadata
3034
- * requestBody: {
3035
- * // request body parameters
3036
- * // {
3037
- * // "completionTime": {},
3038
- * // "creationTime": {},
3039
- * // "dimensionDefinitions": [],
3040
- * // "executionId": "my_executionId",
3041
- * // "outcome": {},
3042
- * // "specification": {},
3043
- * // "state": "my_state",
3044
- * // "testExecutionMatrixId": "my_testExecutionMatrixId"
3045
- * // }
3046
- * },
3047
- * });
3048
- * console.log(res.data);
3049
- *
3050
- * // Example response
3051
- * // {
3052
- * // "completionTime": {},
3053
- * // "creationTime": {},
3054
- * // "dimensionDefinitions": [],
3055
- * // "executionId": "my_executionId",
3056
- * // "outcome": {},
3057
- * // "specification": {},
3058
- * // "state": "my_state",
3059
- * // "testExecutionMatrixId": "my_testExecutionMatrixId"
3060
- * // }
3061
- * }
3062
- *
3063
- * main().catch(e => {
3064
- * console.error(e);
3065
- * throw e;
3066
- * });
3067
- *
3068
- * ```
3069
2593
  *
3070
2594
  * @param params - Parameters for request
3071
2595
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3239,57 +2763,6 @@ export namespace toolresults_v1beta3 {
3239
2763
 
3240
2764
  /**
3241
2765
  * Retrieves a single screenshot cluster by its ID
3242
- * @example
3243
- * ```js
3244
- * // Before running the sample:
3245
- * // - Enable the API at:
3246
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
3247
- * // - Login into gcloud by running:
3248
- * // `$ gcloud auth application-default login`
3249
- * // - Install the npm module by running:
3250
- * // `$ npm install googleapis`
3251
- *
3252
- * const {google} = require('googleapis');
3253
- * const toolresults = google.toolresults('v1beta3');
3254
- *
3255
- * async function main() {
3256
- * const auth = new google.auth.GoogleAuth({
3257
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3258
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3259
- * });
3260
- *
3261
- * // Acquire an auth client, and bind it to all future calls
3262
- * const authClient = await auth.getClient();
3263
- * google.options({auth: authClient});
3264
- *
3265
- * // Do the magic
3266
- * const res = await toolresults.projects.histories.executions.clusters.get({
3267
- * // A Cluster id Required.
3268
- * clusterId: 'placeholder-value',
3269
- * // An Execution id. Required.
3270
- * executionId: 'placeholder-value',
3271
- * // A History id. Required.
3272
- * historyId: 'placeholder-value',
3273
- * // A Project id. Required.
3274
- * projectId: 'placeholder-value',
3275
- * });
3276
- * console.log(res.data);
3277
- *
3278
- * // Example response
3279
- * // {
3280
- * // "activity": "my_activity",
3281
- * // "clusterId": "my_clusterId",
3282
- * // "keyScreen": {},
3283
- * // "screens": []
3284
- * // }
3285
- * }
3286
- *
3287
- * main().catch(e => {
3288
- * console.error(e);
3289
- * throw e;
3290
- * });
3291
- *
3292
- * ```
3293
2766
  *
3294
2767
  * @param params - Parameters for request
3295
2768
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3381,52 +2854,6 @@ export namespace toolresults_v1beta3 {
3381
2854
 
3382
2855
  /**
3383
2856
  * 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.
3384
- * @example
3385
- * ```js
3386
- * // Before running the sample:
3387
- * // - Enable the API at:
3388
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
3389
- * // - Login into gcloud by running:
3390
- * // `$ gcloud auth application-default login`
3391
- * // - Install the npm module by running:
3392
- * // `$ npm install googleapis`
3393
- *
3394
- * const {google} = require('googleapis');
3395
- * const toolresults = google.toolresults('v1beta3');
3396
- *
3397
- * async function main() {
3398
- * const auth = new google.auth.GoogleAuth({
3399
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3400
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3401
- * });
3402
- *
3403
- * // Acquire an auth client, and bind it to all future calls
3404
- * const authClient = await auth.getClient();
3405
- * google.options({auth: authClient});
3406
- *
3407
- * // Do the magic
3408
- * const res = await toolresults.projects.histories.executions.clusters.list({
3409
- * // An Execution id. Required.
3410
- * executionId: 'placeholder-value',
3411
- * // A History id. Required.
3412
- * historyId: 'placeholder-value',
3413
- * // A Project id. Required.
3414
- * projectId: 'placeholder-value',
3415
- * });
3416
- * console.log(res.data);
3417
- *
3418
- * // Example response
3419
- * // {
3420
- * // "clusters": []
3421
- * // }
3422
- * }
3423
- *
3424
- * main().catch(e => {
3425
- * console.error(e);
3426
- * throw e;
3427
- * });
3428
- *
3429
- * ```
3430
2857
  *
3431
2858
  * @param params - Parameters for request
3432
2859
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3566,64 +2993,6 @@ export namespace toolresults_v1beta3 {
3566
2993
 
3567
2994
  /**
3568
2995
  * 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
3569
- * @example
3570
- * ```js
3571
- * // Before running the sample:
3572
- * // - Enable the API at:
3573
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
3574
- * // - Login into gcloud by running:
3575
- * // `$ gcloud auth application-default login`
3576
- * // - Install the npm module by running:
3577
- * // `$ npm install googleapis`
3578
- *
3579
- * const {google} = require('googleapis');
3580
- * const toolresults = google.toolresults('v1beta3');
3581
- *
3582
- * async function main() {
3583
- * const auth = new google.auth.GoogleAuth({
3584
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3585
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3586
- * });
3587
- *
3588
- * // Acquire an auth client, and bind it to all future calls
3589
- * const authClient = await auth.getClient();
3590
- * google.options({auth: authClient});
3591
- *
3592
- * // Do the magic
3593
- * const res = await toolresults.projects.histories.executions.environments.get({
3594
- * // Required. An Environment id.
3595
- * environmentId: 'placeholder-value',
3596
- * // Required. An Execution id.
3597
- * executionId: 'placeholder-value',
3598
- * // Required. A History id.
3599
- * historyId: 'placeholder-value',
3600
- * // Required. A Project id.
3601
- * projectId: 'placeholder-value',
3602
- * });
3603
- * console.log(res.data);
3604
- *
3605
- * // Example response
3606
- * // {
3607
- * // "completionTime": {},
3608
- * // "creationTime": {},
3609
- * // "dimensionValue": [],
3610
- * // "displayName": "my_displayName",
3611
- * // "environmentId": "my_environmentId",
3612
- * // "environmentResult": {},
3613
- * // "executionId": "my_executionId",
3614
- * // "historyId": "my_historyId",
3615
- * // "projectId": "my_projectId",
3616
- * // "resultsStorage": {},
3617
- * // "shardSummaries": []
3618
- * // }
3619
- * }
3620
- *
3621
- * main().catch(e => {
3622
- * console.error(e);
3623
- * throw e;
3624
- * });
3625
- *
3626
- * ```
3627
2996
  *
3628
2997
  * @param params - Parameters for request
3629
2998
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3717,62 +3086,6 @@ export namespace toolresults_v1beta3 {
3717
3086
 
3718
3087
  /**
3719
3088
  * 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
3720
- * @example
3721
- * ```js
3722
- * // Before running the sample:
3723
- * // - Enable the API at:
3724
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
3725
- * // - Login into gcloud by running:
3726
- * // `$ gcloud auth application-default login`
3727
- * // - Install the npm module by running:
3728
- * // `$ npm install googleapis`
3729
- *
3730
- * const {google} = require('googleapis');
3731
- * const toolresults = google.toolresults('v1beta3');
3732
- *
3733
- * async function main() {
3734
- * const auth = new google.auth.GoogleAuth({
3735
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3736
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3737
- * });
3738
- *
3739
- * // Acquire an auth client, and bind it to all future calls
3740
- * const authClient = await auth.getClient();
3741
- * google.options({auth: authClient});
3742
- *
3743
- * // Do the magic
3744
- * const res = await toolresults.projects.histories.executions.environments.list(
3745
- * {
3746
- * // Required. An Execution id.
3747
- * executionId: 'placeholder-value',
3748
- * // Required. A History id.
3749
- * historyId: 'placeholder-value',
3750
- * // 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.
3751
- * pageSize: 'placeholder-value',
3752
- * // A continuation token to resume the query at the next item.
3753
- * pageToken: 'placeholder-value',
3754
- * // Required. A Project id.
3755
- * projectId: 'placeholder-value',
3756
- * }
3757
- * );
3758
- * console.log(res.data);
3759
- *
3760
- * // Example response
3761
- * // {
3762
- * // "environments": [],
3763
- * // "executionId": "my_executionId",
3764
- * // "historyId": "my_historyId",
3765
- * // "nextPageToken": "my_nextPageToken",
3766
- * // "projectId": "my_projectId"
3767
- * // }
3768
- * }
3769
- *
3770
- * main().catch(e => {
3771
- * console.error(e);
3772
- * throw e;
3773
- * });
3774
- *
3775
- * ```
3776
3089
  *
3777
3090
  * @param params - Parameters for request
3778
3091
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3936,54 +3249,6 @@ export namespace toolresults_v1beta3 {
3936
3249
 
3937
3250
  /**
3938
3251
  * 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
3939
- * @example
3940
- * ```js
3941
- * // Before running the sample:
3942
- * // - Enable the API at:
3943
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
3944
- * // - Login into gcloud by running:
3945
- * // `$ gcloud auth application-default login`
3946
- * // - Install the npm module by running:
3947
- * // `$ npm install googleapis`
3948
- *
3949
- * const {google} = require('googleapis');
3950
- * const toolresults = google.toolresults('v1beta3');
3951
- *
3952
- * async function main() {
3953
- * const auth = new google.auth.GoogleAuth({
3954
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3955
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
3956
- * });
3957
- *
3958
- * // Acquire an auth client, and bind it to all future calls
3959
- * const authClient = await auth.getClient();
3960
- * google.options({auth: authClient});
3961
- *
3962
- * // Do the magic
3963
- * const res =
3964
- * await toolresults.projects.histories.executions.steps.accessibilityClusters(
3965
- * {
3966
- * // 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.
3967
- * locale: 'placeholder-value',
3968
- * // A full resource name of the step. For example, projects/my-project/histories/bh.1234567890abcdef/executions/ 1234567890123456789/steps/bs.1234567890abcdef Required.
3969
- * name: 'projects/my-project/histories/my-historie/executions/my-execution/steps/my-step',
3970
- * }
3971
- * );
3972
- * console.log(res.data);
3973
- *
3974
- * // Example response
3975
- * // {
3976
- * // "clusters": [],
3977
- * // "name": "my_name"
3978
- * // }
3979
- * }
3980
- *
3981
- * main().catch(e => {
3982
- * console.error(e);
3983
- * throw e;
3984
- * });
3985
- *
3986
- * ```
3987
3252
  *
3988
3253
  * @param params - Parameters for request
3989
3254
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4080,90 +3345,6 @@ export namespace toolresults_v1beta3 {
4080
3345
 
4081
3346
  /**
4082
3347
  * 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
4083
- * @example
4084
- * ```js
4085
- * // Before running the sample:
4086
- * // - Enable the API at:
4087
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
4088
- * // - Login into gcloud by running:
4089
- * // `$ gcloud auth application-default login`
4090
- * // - Install the npm module by running:
4091
- * // `$ npm install googleapis`
4092
- *
4093
- * const {google} = require('googleapis');
4094
- * const toolresults = google.toolresults('v1beta3');
4095
- *
4096
- * async function main() {
4097
- * const auth = new google.auth.GoogleAuth({
4098
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4099
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4100
- * });
4101
- *
4102
- * // Acquire an auth client, and bind it to all future calls
4103
- * const authClient = await auth.getClient();
4104
- * google.options({auth: authClient});
4105
- *
4106
- * // Do the magic
4107
- * const res = await toolresults.projects.histories.executions.steps.create({
4108
- * // Required. An Execution id.
4109
- * executionId: 'placeholder-value',
4110
- * // Required. A History id.
4111
- * historyId: 'placeholder-value',
4112
- * // Required. A Project id.
4113
- * projectId: 'placeholder-value',
4114
- * // A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
4115
- * requestId: 'placeholder-value',
4116
- *
4117
- * // Request body metadata
4118
- * requestBody: {
4119
- * // request body parameters
4120
- * // {
4121
- * // "completionTime": {},
4122
- * // "creationTime": {},
4123
- * // "description": "my_description",
4124
- * // "deviceUsageDuration": {},
4125
- * // "dimensionValue": [],
4126
- * // "hasImages": false,
4127
- * // "labels": [],
4128
- * // "multiStep": {},
4129
- * // "name": "my_name",
4130
- * // "outcome": {},
4131
- * // "runDuration": {},
4132
- * // "state": "my_state",
4133
- * // "stepId": "my_stepId",
4134
- * // "testExecutionStep": {},
4135
- * // "toolExecutionStep": {}
4136
- * // }
4137
- * },
4138
- * });
4139
- * console.log(res.data);
4140
- *
4141
- * // Example response
4142
- * // {
4143
- * // "completionTime": {},
4144
- * // "creationTime": {},
4145
- * // "description": "my_description",
4146
- * // "deviceUsageDuration": {},
4147
- * // "dimensionValue": [],
4148
- * // "hasImages": false,
4149
- * // "labels": [],
4150
- * // "multiStep": {},
4151
- * // "name": "my_name",
4152
- * // "outcome": {},
4153
- * // "runDuration": {},
4154
- * // "state": "my_state",
4155
- * // "stepId": "my_stepId",
4156
- * // "testExecutionStep": {},
4157
- * // "toolExecutionStep": {}
4158
- * // }
4159
- * }
4160
- *
4161
- * main().catch(e => {
4162
- * console.error(e);
4163
- * throw e;
4164
- * });
4165
- *
4166
- * ```
4167
3348
  *
4168
3349
  * @param params - Parameters for request
4169
3350
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4252,68 +3433,6 @@ export namespace toolresults_v1beta3 {
4252
3433
 
4253
3434
  /**
4254
3435
  * 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
4255
- * @example
4256
- * ```js
4257
- * // Before running the sample:
4258
- * // - Enable the API at:
4259
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
4260
- * // - Login into gcloud by running:
4261
- * // `$ gcloud auth application-default login`
4262
- * // - Install the npm module by running:
4263
- * // `$ npm install googleapis`
4264
- *
4265
- * const {google} = require('googleapis');
4266
- * const toolresults = google.toolresults('v1beta3');
4267
- *
4268
- * async function main() {
4269
- * const auth = new google.auth.GoogleAuth({
4270
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4271
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4272
- * });
4273
- *
4274
- * // Acquire an auth client, and bind it to all future calls
4275
- * const authClient = await auth.getClient();
4276
- * google.options({auth: authClient});
4277
- *
4278
- * // Do the magic
4279
- * const res = await toolresults.projects.histories.executions.steps.get({
4280
- * // A Execution id. Required.
4281
- * executionId: 'placeholder-value',
4282
- * // A History id. Required.
4283
- * historyId: 'placeholder-value',
4284
- * // A Project id. Required.
4285
- * projectId: 'placeholder-value',
4286
- * // A Step id. Required.
4287
- * stepId: 'placeholder-value',
4288
- * });
4289
- * console.log(res.data);
4290
- *
4291
- * // Example response
4292
- * // {
4293
- * // "completionTime": {},
4294
- * // "creationTime": {},
4295
- * // "description": "my_description",
4296
- * // "deviceUsageDuration": {},
4297
- * // "dimensionValue": [],
4298
- * // "hasImages": false,
4299
- * // "labels": [],
4300
- * // "multiStep": {},
4301
- * // "name": "my_name",
4302
- * // "outcome": {},
4303
- * // "runDuration": {},
4304
- * // "state": "my_state",
4305
- * // "stepId": "my_stepId",
4306
- * // "testExecutionStep": {},
4307
- * // "toolExecutionStep": {}
4308
- * // }
4309
- * }
4310
- *
4311
- * main().catch(e => {
4312
- * console.error(e);
4313
- * throw e;
4314
- * });
4315
- *
4316
- * ```
4317
3436
  *
4318
3437
  * @param params - Parameters for request
4319
3438
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4401,64 +3520,6 @@ export namespace toolresults_v1beta3 {
4401
3520
 
4402
3521
  /**
4403
3522
  * Retrieves a PerfMetricsSummary. May return any of the following error code(s): - NOT_FOUND - The specified PerfMetricsSummary does not exist
4404
- * @example
4405
- * ```js
4406
- * // Before running the sample:
4407
- * // - Enable the API at:
4408
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
4409
- * // - Login into gcloud by running:
4410
- * // `$ gcloud auth application-default login`
4411
- * // - Install the npm module by running:
4412
- * // `$ npm install googleapis`
4413
- *
4414
- * const {google} = require('googleapis');
4415
- * const toolresults = google.toolresults('v1beta3');
4416
- *
4417
- * async function main() {
4418
- * const auth = new google.auth.GoogleAuth({
4419
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4420
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4421
- * });
4422
- *
4423
- * // Acquire an auth client, and bind it to all future calls
4424
- * const authClient = await auth.getClient();
4425
- * google.options({auth: authClient});
4426
- *
4427
- * // Do the magic
4428
- * const res =
4429
- * await toolresults.projects.histories.executions.steps.getPerfMetricsSummary(
4430
- * {
4431
- * // A tool results execution ID.
4432
- * executionId: 'placeholder-value',
4433
- * // A tool results history ID.
4434
- * historyId: 'placeholder-value',
4435
- * // The cloud project
4436
- * projectId: 'placeholder-value',
4437
- * // A tool results step ID.
4438
- * stepId: 'placeholder-value',
4439
- * }
4440
- * );
4441
- * console.log(res.data);
4442
- *
4443
- * // Example response
4444
- * // {
4445
- * // "appStartTime": {},
4446
- * // "executionId": "my_executionId",
4447
- * // "graphicsStats": {},
4448
- * // "historyId": "my_historyId",
4449
- * // "perfEnvironment": {},
4450
- * // "perfMetrics": [],
4451
- * // "projectId": "my_projectId",
4452
- * // "stepId": "my_stepId"
4453
- * // }
4454
- * }
4455
- *
4456
- * main().catch(e => {
4457
- * console.error(e);
4458
- * throw e;
4459
- * });
4460
- *
4461
- * ```
4462
3523
  *
4463
3524
  * @param params - Parameters for request
4464
3525
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4552,57 +3613,6 @@ export namespace toolresults_v1beta3 {
4552
3613
 
4553
3614
  /**
4554
3615
  * 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
4555
- * @example
4556
- * ```js
4557
- * // Before running the sample:
4558
- * // - Enable the API at:
4559
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
4560
- * // - Login into gcloud by running:
4561
- * // `$ gcloud auth application-default login`
4562
- * // - Install the npm module by running:
4563
- * // `$ npm install googleapis`
4564
- *
4565
- * const {google} = require('googleapis');
4566
- * const toolresults = google.toolresults('v1beta3');
4567
- *
4568
- * async function main() {
4569
- * const auth = new google.auth.GoogleAuth({
4570
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4571
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4572
- * });
4573
- *
4574
- * // Acquire an auth client, and bind it to all future calls
4575
- * const authClient = await auth.getClient();
4576
- * google.options({auth: authClient});
4577
- *
4578
- * // Do the magic
4579
- * const res = await toolresults.projects.histories.executions.steps.list({
4580
- * // A Execution id. Required.
4581
- * executionId: 'placeholder-value',
4582
- * // A History id. Required.
4583
- * historyId: 'placeholder-value',
4584
- * // 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.
4585
- * pageSize: 'placeholder-value',
4586
- * // A continuation token to resume the query at the next item. Optional.
4587
- * pageToken: 'placeholder-value',
4588
- * // A Project id. Required.
4589
- * projectId: 'placeholder-value',
4590
- * });
4591
- * console.log(res.data);
4592
- *
4593
- * // Example response
4594
- * // {
4595
- * // "nextPageToken": "my_nextPageToken",
4596
- * // "steps": []
4597
- * // }
4598
- * }
4599
- *
4600
- * main().catch(e => {
4601
- * console.error(e);
4602
- * throw e;
4603
- * });
4604
- *
4605
- * ```
4606
3616
  *
4607
3617
  * @param params - Parameters for request
4608
3618
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4693,92 +3703,6 @@ export namespace toolresults_v1beta3 {
4693
3703
 
4694
3704
  /**
4695
3705
  * 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
4696
- * @example
4697
- * ```js
4698
- * // Before running the sample:
4699
- * // - Enable the API at:
4700
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
4701
- * // - Login into gcloud by running:
4702
- * // `$ gcloud auth application-default login`
4703
- * // - Install the npm module by running:
4704
- * // `$ npm install googleapis`
4705
- *
4706
- * const {google} = require('googleapis');
4707
- * const toolresults = google.toolresults('v1beta3');
4708
- *
4709
- * async function main() {
4710
- * const auth = new google.auth.GoogleAuth({
4711
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4712
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4713
- * });
4714
- *
4715
- * // Acquire an auth client, and bind it to all future calls
4716
- * const authClient = await auth.getClient();
4717
- * google.options({auth: authClient});
4718
- *
4719
- * // Do the magic
4720
- * const res = await toolresults.projects.histories.executions.steps.patch({
4721
- * // A Execution id. Required.
4722
- * executionId: 'placeholder-value',
4723
- * // A History id. Required.
4724
- * historyId: 'placeholder-value',
4725
- * // A Project id. Required.
4726
- * projectId: 'placeholder-value',
4727
- * // A unique request ID for server to detect duplicated requests. For example, a UUID. Optional, but strongly recommended.
4728
- * requestId: 'placeholder-value',
4729
- * // A Step id. Required.
4730
- * stepId: 'placeholder-value',
4731
- *
4732
- * // Request body metadata
4733
- * requestBody: {
4734
- * // request body parameters
4735
- * // {
4736
- * // "completionTime": {},
4737
- * // "creationTime": {},
4738
- * // "description": "my_description",
4739
- * // "deviceUsageDuration": {},
4740
- * // "dimensionValue": [],
4741
- * // "hasImages": false,
4742
- * // "labels": [],
4743
- * // "multiStep": {},
4744
- * // "name": "my_name",
4745
- * // "outcome": {},
4746
- * // "runDuration": {},
4747
- * // "state": "my_state",
4748
- * // "stepId": "my_stepId",
4749
- * // "testExecutionStep": {},
4750
- * // "toolExecutionStep": {}
4751
- * // }
4752
- * },
4753
- * });
4754
- * console.log(res.data);
4755
- *
4756
- * // Example response
4757
- * // {
4758
- * // "completionTime": {},
4759
- * // "creationTime": {},
4760
- * // "description": "my_description",
4761
- * // "deviceUsageDuration": {},
4762
- * // "dimensionValue": [],
4763
- * // "hasImages": false,
4764
- * // "labels": [],
4765
- * // "multiStep": {},
4766
- * // "name": "my_name",
4767
- * // "outcome": {},
4768
- * // "runDuration": {},
4769
- * // "state": "my_state",
4770
- * // "stepId": "my_stepId",
4771
- * // "testExecutionStep": {},
4772
- * // "toolExecutionStep": {}
4773
- * // }
4774
- * }
4775
- *
4776
- * main().catch(e => {
4777
- * console.error(e);
4778
- * throw e;
4779
- * });
4780
- *
4781
- * ```
4782
3706
  *
4783
3707
  * @param params - Parameters for request
4784
3708
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4867,77 +3791,6 @@ export namespace toolresults_v1beta3 {
4867
3791
 
4868
3792
  /**
4869
3793
  * 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
4870
- * @example
4871
- * ```js
4872
- * // Before running the sample:
4873
- * // - Enable the API at:
4874
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
4875
- * // - Login into gcloud by running:
4876
- * // `$ gcloud auth application-default login`
4877
- * // - Install the npm module by running:
4878
- * // `$ npm install googleapis`
4879
- *
4880
- * const {google} = require('googleapis');
4881
- * const toolresults = google.toolresults('v1beta3');
4882
- *
4883
- * async function main() {
4884
- * const auth = new google.auth.GoogleAuth({
4885
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4886
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
4887
- * });
4888
- *
4889
- * // Acquire an auth client, and bind it to all future calls
4890
- * const authClient = await auth.getClient();
4891
- * google.options({auth: authClient});
4892
- *
4893
- * // Do the magic
4894
- * const res =
4895
- * await toolresults.projects.histories.executions.steps.publishXunitXmlFiles({
4896
- * // A Execution id. Required.
4897
- * executionId: 'placeholder-value',
4898
- * // A History id. Required.
4899
- * historyId: 'placeholder-value',
4900
- * // A Project id. Required.
4901
- * projectId: 'placeholder-value',
4902
- * // A Step id. Note: This step must include a TestExecutionStep. Required.
4903
- * stepId: 'placeholder-value',
4904
- *
4905
- * // Request body metadata
4906
- * requestBody: {
4907
- * // request body parameters
4908
- * // {
4909
- * // "xunitXmlFiles": []
4910
- * // }
4911
- * },
4912
- * });
4913
- * console.log(res.data);
4914
- *
4915
- * // Example response
4916
- * // {
4917
- * // "completionTime": {},
4918
- * // "creationTime": {},
4919
- * // "description": "my_description",
4920
- * // "deviceUsageDuration": {},
4921
- * // "dimensionValue": [],
4922
- * // "hasImages": false,
4923
- * // "labels": [],
4924
- * // "multiStep": {},
4925
- * // "name": "my_name",
4926
- * // "outcome": {},
4927
- * // "runDuration": {},
4928
- * // "state": "my_state",
4929
- * // "stepId": "my_stepId",
4930
- * // "testExecutionStep": {},
4931
- * // "toolExecutionStep": {}
4932
- * // }
4933
- * }
4934
- *
4935
- * main().catch(e => {
4936
- * console.error(e);
4937
- * throw e;
4938
- * });
4939
- *
4940
- * ```
4941
3794
  *
4942
3795
  * @param params - Parameters for request
4943
3796
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5182,79 +4035,6 @@ export namespace toolresults_v1beta3 {
5182
4035
 
5183
4036
  /**
5184
4037
  * 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
5185
- * @example
5186
- * ```js
5187
- * // Before running the sample:
5188
- * // - Enable the API at:
5189
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
5190
- * // - Login into gcloud by running:
5191
- * // `$ gcloud auth application-default login`
5192
- * // - Install the npm module by running:
5193
- * // `$ npm install googleapis`
5194
- *
5195
- * const {google} = require('googleapis');
5196
- * const toolresults = google.toolresults('v1beta3');
5197
- *
5198
- * async function main() {
5199
- * const auth = new google.auth.GoogleAuth({
5200
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5201
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5202
- * });
5203
- *
5204
- * // Acquire an auth client, and bind it to all future calls
5205
- * const authClient = await auth.getClient();
5206
- * google.options({auth: authClient});
5207
- *
5208
- * // Do the magic
5209
- * const res =
5210
- * await toolresults.projects.histories.executions.steps.perfMetricsSummary.create(
5211
- * {
5212
- * // A tool results execution ID.
5213
- * executionId: 'placeholder-value',
5214
- * // A tool results history ID.
5215
- * historyId: 'placeholder-value',
5216
- * // The cloud project
5217
- * projectId: 'placeholder-value',
5218
- * // A tool results step ID.
5219
- * stepId: 'placeholder-value',
5220
- *
5221
- * // Request body metadata
5222
- * requestBody: {
5223
- * // request body parameters
5224
- * // {
5225
- * // "appStartTime": {},
5226
- * // "executionId": "my_executionId",
5227
- * // "graphicsStats": {},
5228
- * // "historyId": "my_historyId",
5229
- * // "perfEnvironment": {},
5230
- * // "perfMetrics": [],
5231
- * // "projectId": "my_projectId",
5232
- * // "stepId": "my_stepId"
5233
- * // }
5234
- * },
5235
- * }
5236
- * );
5237
- * console.log(res.data);
5238
- *
5239
- * // Example response
5240
- * // {
5241
- * // "appStartTime": {},
5242
- * // "executionId": "my_executionId",
5243
- * // "graphicsStats": {},
5244
- * // "historyId": "my_historyId",
5245
- * // "perfEnvironment": {},
5246
- * // "perfMetrics": [],
5247
- * // "projectId": "my_projectId",
5248
- * // "stepId": "my_stepId"
5249
- * // }
5250
- * }
5251
- *
5252
- * main().catch(e => {
5253
- * console.error(e);
5254
- * throw e;
5255
- * });
5256
- *
5257
- * ```
5258
4038
  *
5259
4039
  * @param params - Parameters for request
5260
4040
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5383,75 +4163,6 @@ export namespace toolresults_v1beta3 {
5383
4163
 
5384
4164
  /**
5385
4165
  * 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
5386
- * @example
5387
- * ```js
5388
- * // Before running the sample:
5389
- * // - Enable the API at:
5390
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
5391
- * // - Login into gcloud by running:
5392
- * // `$ gcloud auth application-default login`
5393
- * // - Install the npm module by running:
5394
- * // `$ npm install googleapis`
5395
- *
5396
- * const {google} = require('googleapis');
5397
- * const toolresults = google.toolresults('v1beta3');
5398
- *
5399
- * async function main() {
5400
- * const auth = new google.auth.GoogleAuth({
5401
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5402
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5403
- * });
5404
- *
5405
- * // Acquire an auth client, and bind it to all future calls
5406
- * const authClient = await auth.getClient();
5407
- * google.options({auth: authClient});
5408
- *
5409
- * // Do the magic
5410
- * const res =
5411
- * await toolresults.projects.histories.executions.steps.perfSampleSeries.create(
5412
- * {
5413
- * // A tool results execution ID.
5414
- * executionId: 'placeholder-value',
5415
- * // A tool results history ID.
5416
- * historyId: 'placeholder-value',
5417
- * // The cloud project
5418
- * projectId: 'placeholder-value',
5419
- * // A tool results step ID.
5420
- * stepId: 'placeholder-value',
5421
- *
5422
- * // Request body metadata
5423
- * requestBody: {
5424
- * // request body parameters
5425
- * // {
5426
- * // "basicPerfSampleSeries": {},
5427
- * // "executionId": "my_executionId",
5428
- * // "historyId": "my_historyId",
5429
- * // "projectId": "my_projectId",
5430
- * // "sampleSeriesId": "my_sampleSeriesId",
5431
- * // "stepId": "my_stepId"
5432
- * // }
5433
- * },
5434
- * }
5435
- * );
5436
- * console.log(res.data);
5437
- *
5438
- * // Example response
5439
- * // {
5440
- * // "basicPerfSampleSeries": {},
5441
- * // "executionId": "my_executionId",
5442
- * // "historyId": "my_historyId",
5443
- * // "projectId": "my_projectId",
5444
- * // "sampleSeriesId": "my_sampleSeriesId",
5445
- * // "stepId": "my_stepId"
5446
- * // }
5447
- * }
5448
- *
5449
- * main().catch(e => {
5450
- * console.error(e);
5451
- * throw e;
5452
- * });
5453
- *
5454
- * ```
5455
4166
  *
5456
4167
  * @param params - Parameters for request
5457
4168
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5540,62 +4251,6 @@ export namespace toolresults_v1beta3 {
5540
4251
 
5541
4252
  /**
5542
4253
  * Gets a PerfSampleSeries. May return any of the following error code(s): - NOT_FOUND - The specified PerfSampleSeries does not exist
5543
- * @example
5544
- * ```js
5545
- * // Before running the sample:
5546
- * // - Enable the API at:
5547
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
5548
- * // - Login into gcloud by running:
5549
- * // `$ gcloud auth application-default login`
5550
- * // - Install the npm module by running:
5551
- * // `$ npm install googleapis`
5552
- *
5553
- * const {google} = require('googleapis');
5554
- * const toolresults = google.toolresults('v1beta3');
5555
- *
5556
- * async function main() {
5557
- * const auth = new google.auth.GoogleAuth({
5558
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5559
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5560
- * });
5561
- *
5562
- * // Acquire an auth client, and bind it to all future calls
5563
- * const authClient = await auth.getClient();
5564
- * google.options({auth: authClient});
5565
- *
5566
- * // Do the magic
5567
- * const res =
5568
- * await toolresults.projects.histories.executions.steps.perfSampleSeries.get({
5569
- * // A tool results execution ID.
5570
- * executionId: 'placeholder-value',
5571
- * // A tool results history ID.
5572
- * historyId: 'placeholder-value',
5573
- * // The cloud project
5574
- * projectId: 'placeholder-value',
5575
- * // A sample series id
5576
- * sampleSeriesId: 'placeholder-value',
5577
- * // A tool results step ID.
5578
- * stepId: 'placeholder-value',
5579
- * });
5580
- * console.log(res.data);
5581
- *
5582
- * // Example response
5583
- * // {
5584
- * // "basicPerfSampleSeries": {},
5585
- * // "executionId": "my_executionId",
5586
- * // "historyId": "my_historyId",
5587
- * // "projectId": "my_projectId",
5588
- * // "sampleSeriesId": "my_sampleSeriesId",
5589
- * // "stepId": "my_stepId"
5590
- * // }
5591
- * }
5592
- *
5593
- * main().catch(e => {
5594
- * console.error(e);
5595
- * throw e;
5596
- * });
5597
- *
5598
- * ```
5599
4254
  *
5600
4255
  * @param params - Parameters for request
5601
4256
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5696,59 +4351,6 @@ export namespace toolresults_v1beta3 {
5696
4351
 
5697
4352
  /**
5698
4353
  * 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
5699
- * @example
5700
- * ```js
5701
- * // Before running the sample:
5702
- * // - Enable the API at:
5703
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
5704
- * // - Login into gcloud by running:
5705
- * // `$ gcloud auth application-default login`
5706
- * // - Install the npm module by running:
5707
- * // `$ npm install googleapis`
5708
- *
5709
- * const {google} = require('googleapis');
5710
- * const toolresults = google.toolresults('v1beta3');
5711
- *
5712
- * async function main() {
5713
- * const auth = new google.auth.GoogleAuth({
5714
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5715
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5716
- * });
5717
- *
5718
- * // Acquire an auth client, and bind it to all future calls
5719
- * const authClient = await auth.getClient();
5720
- * google.options({auth: authClient});
5721
- *
5722
- * // Do the magic
5723
- * const res =
5724
- * await toolresults.projects.histories.executions.steps.perfSampleSeries.list(
5725
- * {
5726
- * // A tool results execution ID.
5727
- * executionId: 'placeholder-value',
5728
- * // Specify one or more PerfMetricType values such as CPU to filter the result
5729
- * filter: 'placeholder-value',
5730
- * // A tool results history ID.
5731
- * historyId: 'placeholder-value',
5732
- * // The cloud project
5733
- * projectId: 'placeholder-value',
5734
- * // A tool results step ID.
5735
- * stepId: 'placeholder-value',
5736
- * }
5737
- * );
5738
- * console.log(res.data);
5739
- *
5740
- * // Example response
5741
- * // {
5742
- * // "perfSampleSeries": []
5743
- * // }
5744
- * }
5745
- *
5746
- * main().catch(e => {
5747
- * console.error(e);
5748
- * throw e;
5749
- * });
5750
- *
5751
- * ```
5752
4354
  *
5753
4355
  * @param params - Parameters for request
5754
4356
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5924,67 +4526,6 @@ export namespace toolresults_v1beta3 {
5924
4526
 
5925
4527
  /**
5926
4528
  * 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
5927
- * @example
5928
- * ```js
5929
- * // Before running the sample:
5930
- * // - Enable the API at:
5931
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
5932
- * // - Login into gcloud by running:
5933
- * // `$ gcloud auth application-default login`
5934
- * // - Install the npm module by running:
5935
- * // `$ npm install googleapis`
5936
- *
5937
- * const {google} = require('googleapis');
5938
- * const toolresults = google.toolresults('v1beta3');
5939
- *
5940
- * async function main() {
5941
- * const auth = new google.auth.GoogleAuth({
5942
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5943
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5944
- * });
5945
- *
5946
- * // Acquire an auth client, and bind it to all future calls
5947
- * const authClient = await auth.getClient();
5948
- * google.options({auth: authClient});
5949
- *
5950
- * // Do the magic
5951
- * const res =
5952
- * await toolresults.projects.histories.executions.steps.perfSampleSeries.samples.batchCreate(
5953
- * {
5954
- * // A tool results execution ID.
5955
- * executionId: 'placeholder-value',
5956
- * // A tool results history ID.
5957
- * historyId: 'placeholder-value',
5958
- * // The cloud project
5959
- * projectId: 'placeholder-value',
5960
- * // A sample series id
5961
- * sampleSeriesId: 'placeholder-value',
5962
- * // A tool results step ID.
5963
- * stepId: 'placeholder-value',
5964
- *
5965
- * // Request body metadata
5966
- * requestBody: {
5967
- * // request body parameters
5968
- * // {
5969
- * // "perfSamples": []
5970
- * // }
5971
- * },
5972
- * }
5973
- * );
5974
- * console.log(res.data);
5975
- *
5976
- * // Example response
5977
- * // {
5978
- * // "perfSamples": []
5979
- * // }
5980
- * }
5981
- *
5982
- * main().catch(e => {
5983
- * console.error(e);
5984
- * throw e;
5985
- * });
5986
- *
5987
- * ```
5988
4529
  *
5989
4530
  * @param params - Parameters for request
5990
4531
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6094,64 +4635,6 @@ export namespace toolresults_v1beta3 {
6094
4635
 
6095
4636
  /**
6096
4637
  * 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
6097
- * @example
6098
- * ```js
6099
- * // Before running the sample:
6100
- * // - Enable the API at:
6101
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
6102
- * // - Login into gcloud by running:
6103
- * // `$ gcloud auth application-default login`
6104
- * // - Install the npm module by running:
6105
- * // `$ npm install googleapis`
6106
- *
6107
- * const {google} = require('googleapis');
6108
- * const toolresults = google.toolresults('v1beta3');
6109
- *
6110
- * async function main() {
6111
- * const auth = new google.auth.GoogleAuth({
6112
- * // Scopes can be specified either as an array or as a single, space-delimited string.
6113
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6114
- * });
6115
- *
6116
- * // Acquire an auth client, and bind it to all future calls
6117
- * const authClient = await auth.getClient();
6118
- * google.options({auth: authClient});
6119
- *
6120
- * // Do the magic
6121
- * const res =
6122
- * await toolresults.projects.histories.executions.steps.perfSampleSeries.samples.list(
6123
- * {
6124
- * // A tool results execution ID.
6125
- * executionId: 'placeholder-value',
6126
- * // A tool results history ID.
6127
- * historyId: 'placeholder-value',
6128
- * // 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
6129
- * pageSize: 'placeholder-value',
6130
- * // Optional, the next_page_token returned in the previous response
6131
- * pageToken: 'placeholder-value',
6132
- * // The cloud project
6133
- * projectId: 'placeholder-value',
6134
- * // A sample series id
6135
- * sampleSeriesId: 'placeholder-value',
6136
- * // A tool results step ID.
6137
- * stepId: 'placeholder-value',
6138
- * }
6139
- * );
6140
- * console.log(res.data);
6141
- *
6142
- * // Example response
6143
- * // {
6144
- * // "nextPageToken": "my_nextPageToken",
6145
- * // "perfSamples": []
6146
- * // }
6147
- * }
6148
- *
6149
- * main().catch(e => {
6150
- * console.error(e);
6151
- * throw e;
6152
- * });
6153
- *
6154
- * ```
6155
4638
  *
6156
4639
  * @param params - Parameters for request
6157
4640
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6324,65 +4807,6 @@ export namespace toolresults_v1beta3 {
6324
4807
 
6325
4808
  /**
6326
4809
  * 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
6327
- * @example
6328
- * ```js
6329
- * // Before running the sample:
6330
- * // - Enable the API at:
6331
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
6332
- * // - Login into gcloud by running:
6333
- * // `$ gcloud auth application-default login`
6334
- * // - Install the npm module by running:
6335
- * // `$ npm install googleapis`
6336
- *
6337
- * const {google} = require('googleapis');
6338
- * const toolresults = google.toolresults('v1beta3');
6339
- *
6340
- * async function main() {
6341
- * const auth = new google.auth.GoogleAuth({
6342
- * // Scopes can be specified either as an array or as a single, space-delimited string.
6343
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6344
- * });
6345
- *
6346
- * // Acquire an auth client, and bind it to all future calls
6347
- * const authClient = await auth.getClient();
6348
- * google.options({auth: authClient});
6349
- *
6350
- * // Do the magic
6351
- * const res =
6352
- * await toolresults.projects.histories.executions.steps.testCases.get({
6353
- * // A Execution id Required.
6354
- * executionId: 'placeholder-value',
6355
- * // A History id. Required.
6356
- * historyId: 'placeholder-value',
6357
- * // A Project id. Required.
6358
- * projectId: 'placeholder-value',
6359
- * // A Step id. Note: This step must include a TestExecutionStep. Required.
6360
- * stepId: 'placeholder-value',
6361
- * // A Test Case id. Required.
6362
- * testCaseId: 'placeholder-value',
6363
- * });
6364
- * console.log(res.data);
6365
- *
6366
- * // Example response
6367
- * // {
6368
- * // "elapsedTime": {},
6369
- * // "endTime": {},
6370
- * // "skippedMessage": "my_skippedMessage",
6371
- * // "stackTraces": [],
6372
- * // "startTime": {},
6373
- * // "status": "my_status",
6374
- * // "testCaseId": "my_testCaseId",
6375
- * // "testCaseReference": {},
6376
- * // "toolOutputs": []
6377
- * // }
6378
- * }
6379
- *
6380
- * main().catch(e => {
6381
- * console.error(e);
6382
- * throw e;
6383
- * });
6384
- *
6385
- * ```
6386
4810
  *
6387
4811
  * @param params - Parameters for request
6388
4812
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6483,60 +4907,6 @@ export namespace toolresults_v1beta3 {
6483
4907
 
6484
4908
  /**
6485
4909
  * 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
6486
- * @example
6487
- * ```js
6488
- * // Before running the sample:
6489
- * // - Enable the API at:
6490
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
6491
- * // - Login into gcloud by running:
6492
- * // `$ gcloud auth application-default login`
6493
- * // - Install the npm module by running:
6494
- * // `$ npm install googleapis`
6495
- *
6496
- * const {google} = require('googleapis');
6497
- * const toolresults = google.toolresults('v1beta3');
6498
- *
6499
- * async function main() {
6500
- * const auth = new google.auth.GoogleAuth({
6501
- * // Scopes can be specified either as an array or as a single, space-delimited string.
6502
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6503
- * });
6504
- *
6505
- * // Acquire an auth client, and bind it to all future calls
6506
- * const authClient = await auth.getClient();
6507
- * google.options({auth: authClient});
6508
- *
6509
- * // Do the magic
6510
- * const res =
6511
- * await toolresults.projects.histories.executions.steps.testCases.list({
6512
- * // A Execution id Required.
6513
- * executionId: 'placeholder-value',
6514
- * // A History id. Required.
6515
- * historyId: 'placeholder-value',
6516
- * // 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.
6517
- * pageSize: 'placeholder-value',
6518
- * // A continuation token to resume the query at the next item. Optional.
6519
- * pageToken: 'placeholder-value',
6520
- * // A Project id. Required.
6521
- * projectId: 'placeholder-value',
6522
- * // A Step id. Note: This step must include a TestExecutionStep. Required.
6523
- * stepId: 'placeholder-value',
6524
- * });
6525
- * console.log(res.data);
6526
- *
6527
- * // Example response
6528
- * // {
6529
- * // "nextPageToken": "my_nextPageToken",
6530
- * // "testCases": []
6531
- * // }
6532
- * }
6533
- *
6534
- * main().catch(e => {
6535
- * console.error(e);
6536
- * throw e;
6537
- * });
6538
- *
6539
- * ```
6540
4910
  *
6541
4911
  * @param params - Parameters for request
6542
4912
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6688,60 +5058,6 @@ export namespace toolresults_v1beta3 {
6688
5058
 
6689
5059
  /**
6690
5060
  * 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
6691
- * @example
6692
- * ```js
6693
- * // Before running the sample:
6694
- * // - Enable the API at:
6695
- * // https://console.developers.google.com/apis/api/toolresults.googleapis.com
6696
- * // - Login into gcloud by running:
6697
- * // `$ gcloud auth application-default login`
6698
- * // - Install the npm module by running:
6699
- * // `$ npm install googleapis`
6700
- *
6701
- * const {google} = require('googleapis');
6702
- * const toolresults = google.toolresults('v1beta3');
6703
- *
6704
- * async function main() {
6705
- * const auth = new google.auth.GoogleAuth({
6706
- * // Scopes can be specified either as an array or as a single, space-delimited string.
6707
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
6708
- * });
6709
- *
6710
- * // Acquire an auth client, and bind it to all future calls
6711
- * const authClient = await auth.getClient();
6712
- * google.options({auth: authClient});
6713
- *
6714
- * // Do the magic
6715
- * const res =
6716
- * await toolresults.projects.histories.executions.steps.thumbnails.list({
6717
- * // An Execution id. Required.
6718
- * executionId: 'placeholder-value',
6719
- * // A History id. Required.
6720
- * historyId: 'placeholder-value',
6721
- * // 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.
6722
- * pageSize: 'placeholder-value',
6723
- * // A continuation token to resume the query at the next item. Optional.
6724
- * pageToken: 'placeholder-value',
6725
- * // A Project id. Required.
6726
- * projectId: 'placeholder-value',
6727
- * // A Step id. Required.
6728
- * stepId: 'placeholder-value',
6729
- * });
6730
- * console.log(res.data);
6731
- *
6732
- * // Example response
6733
- * // {
6734
- * // "nextPageToken": "my_nextPageToken",
6735
- * // "thumbnails": []
6736
- * // }
6737
- * }
6738
- *
6739
- * main().catch(e => {
6740
- * console.error(e);
6741
- * throw e;
6742
- * });
6743
- *
6744
- * ```
6745
5061
  *
6746
5062
  * @param params - Parameters for request
6747
5063
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.