@maxim_mazurok/gapi.client.testing-v1 0.0.20230822 → 0.0.20230901
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/index.d.ts +424 -1
- package/package.json +1 -1
- package/tests.ts +96 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://testing.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230901
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -302,6 +302,9 @@ declare namespace gapi.client {
|
|
|
302
302
|
bundleLocation?:
|
|
303
303
|
FileReference;
|
|
304
304
|
}
|
|
305
|
+
// tslint:disable-next-line:no-empty-interface
|
|
306
|
+
interface CancelDeviceSessionRequest {
|
|
307
|
+
}
|
|
305
308
|
interface CancelTestMatrixResponse {
|
|
306
309
|
/** The current rolled-up state of the test matrix. If this state is already final, then the cancelation request will have no effect. */
|
|
307
310
|
testState?:
|
|
@@ -358,6 +361,55 @@ declare namespace gapi.client {
|
|
|
358
361
|
ipBlocks?:
|
|
359
362
|
DeviceIpBlock[];
|
|
360
363
|
}
|
|
364
|
+
interface DeviceSession {
|
|
365
|
+
/** Output only. The timestamp that the session first became ACTIVE. */
|
|
366
|
+
activeStartTime?:
|
|
367
|
+
string;
|
|
368
|
+
/** Required. The requested device */
|
|
369
|
+
androidDevice?:
|
|
370
|
+
AndroidDevice;
|
|
371
|
+
/** Optional. The list of requested devices. At most two devices may be simultaneously requested. */
|
|
372
|
+
androidDeviceList?:
|
|
373
|
+
AndroidDeviceList;
|
|
374
|
+
/** Output only. The time that the Session was created. */
|
|
375
|
+
createTime?:
|
|
376
|
+
string;
|
|
377
|
+
/** Output only. The title of the DeviceSession to be presented in the UI. */
|
|
378
|
+
displayName?:
|
|
379
|
+
string;
|
|
380
|
+
/** Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED. */
|
|
381
|
+
expireTime?:
|
|
382
|
+
string;
|
|
383
|
+
/** Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY. */
|
|
384
|
+
inactivityTimeout?:
|
|
385
|
+
string;
|
|
386
|
+
/** Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" */
|
|
387
|
+
name?:
|
|
388
|
+
string;
|
|
389
|
+
/** Output only. Current state of the DeviceSession. */
|
|
390
|
+
state?:
|
|
391
|
+
string;
|
|
392
|
+
/** Output only. The historical state transitions of the session_state message including the current session state. */
|
|
393
|
+
stateHistories?:
|
|
394
|
+
SessionStateEvent[];
|
|
395
|
+
/** Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the ExtendDeviceSession RPC. Default: 3 hours. */
|
|
396
|
+
ttl?:
|
|
397
|
+
string;
|
|
398
|
+
}
|
|
399
|
+
interface DirectAccessVersionInfo {
|
|
400
|
+
/**
|
|
401
|
+
* Whether direct access is supported at all. Clients are expected to filter down the device list to only android models and versions which support Direct Access when that is the user
|
|
402
|
+
* intent.
|
|
403
|
+
*/
|
|
404
|
+
directAccessSupported?:
|
|
405
|
+
boolean;
|
|
406
|
+
/**
|
|
407
|
+
* Output only. Indicates client-device compatibility, where a device is known to work only with certain workarounds implemented in the Android Studio client. Expected format
|
|
408
|
+
* "major.minor.micro.patch", e.g. "5921.22.2211.8881706".
|
|
409
|
+
*/
|
|
410
|
+
minimumAndroidStudioVersion?:
|
|
411
|
+
string;
|
|
412
|
+
}
|
|
361
413
|
interface Distribution {
|
|
362
414
|
/** Output only. The estimated fraction (0-1) of the total market with this configuration. */
|
|
363
415
|
marketShare?:
|
|
@@ -366,6 +418,9 @@ declare namespace gapi.client {
|
|
|
366
418
|
measurementTime?:
|
|
367
419
|
string;
|
|
368
420
|
}
|
|
421
|
+
// tslint:disable-next-line:no-empty-interface
|
|
422
|
+
interface Empty {
|
|
423
|
+
}
|
|
369
424
|
interface Environment {
|
|
370
425
|
/** An Android device which must be used with an Android test. */
|
|
371
426
|
androidDevice?:
|
|
@@ -600,6 +655,14 @@ declare namespace gapi.client {
|
|
|
600
655
|
// tslint:disable-next-line:no-empty-interface
|
|
601
656
|
interface LauncherActivityIntent {
|
|
602
657
|
}
|
|
658
|
+
interface ListDeviceSessionsResponse {
|
|
659
|
+
/** The sessions matching the specified filter in the given cloud project. */
|
|
660
|
+
deviceSessions?:
|
|
661
|
+
DeviceSession[];
|
|
662
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
663
|
+
nextPageToken?:
|
|
664
|
+
string;
|
|
665
|
+
}
|
|
603
666
|
interface Locale {
|
|
604
667
|
/** The id for this locale. Example: "en_US". */
|
|
605
668
|
id?:
|
|
@@ -675,6 +738,9 @@ declare namespace gapi.client {
|
|
|
675
738
|
/** The number of online devices for an Android version. */
|
|
676
739
|
deviceCapacity?:
|
|
677
740
|
string;
|
|
741
|
+
/** Output only. Identifies supported clients for DirectAccess for this Android version. */
|
|
742
|
+
directAccessVersionInfo?:
|
|
743
|
+
DirectAccessVersionInfo;
|
|
678
744
|
/** An Android version. */
|
|
679
745
|
versionId?:
|
|
680
746
|
string;
|
|
@@ -765,6 +831,17 @@ declare namespace gapi.client {
|
|
|
765
831
|
name?:
|
|
766
832
|
string;
|
|
767
833
|
}
|
|
834
|
+
interface SessionStateEvent {
|
|
835
|
+
/** Output only. The time that the session_state first encountered that state. */
|
|
836
|
+
eventTime?:
|
|
837
|
+
string;
|
|
838
|
+
/** Output only. The session_state tracked by this event */
|
|
839
|
+
sessionState?:
|
|
840
|
+
string;
|
|
841
|
+
/** Output only. A human-readable message to explain the state. */
|
|
842
|
+
stateMessage?:
|
|
843
|
+
string;
|
|
844
|
+
}
|
|
768
845
|
interface Shard {
|
|
769
846
|
/** Output only. The estimated shard duration based on previous test case timing records, if available. */
|
|
770
847
|
estimatedShardDuration?:
|
|
@@ -1161,6 +1238,350 @@ declare namespace gapi.client {
|
|
|
1161
1238
|
},
|
|
1162
1239
|
body: FileReference): Request<GetApkDetailsResponse>;
|
|
1163
1240
|
}
|
|
1241
|
+
interface DeviceSessionsResource {
|
|
1242
|
+
/**
|
|
1243
|
+
* POST /v1/projects/{project_id}/deviceSessions/{device_session_id}:cancel Changes the DeviceSession to state FINISHED and terminates all connections. Canceled sessions are not
|
|
1244
|
+
* deleted and can be retrieved or listed by the user until they expire based on the 28 day deletion policy.
|
|
1245
|
+
*/
|
|
1246
|
+
cancel(request: {
|
|
1247
|
+
/** V1 error format. */
|
|
1248
|
+
"$.xgafv"?:
|
|
1249
|
+
string;
|
|
1250
|
+
/** OAuth access token. */
|
|
1251
|
+
access_token?:
|
|
1252
|
+
string;
|
|
1253
|
+
/** Data format for response. */
|
|
1254
|
+
alt?:
|
|
1255
|
+
string;
|
|
1256
|
+
/** JSONP */
|
|
1257
|
+
callback?:
|
|
1258
|
+
string;
|
|
1259
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1260
|
+
fields?:
|
|
1261
|
+
string;
|
|
1262
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1263
|
+
key?:
|
|
1264
|
+
string;
|
|
1265
|
+
/** Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" */
|
|
1266
|
+
name:
|
|
1267
|
+
string;
|
|
1268
|
+
/** OAuth 2.0 token for the current user. */
|
|
1269
|
+
oauth_token?:
|
|
1270
|
+
string;
|
|
1271
|
+
/** Returns response with indentations and line breaks. */
|
|
1272
|
+
prettyPrint?:
|
|
1273
|
+
boolean;
|
|
1274
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1275
|
+
quotaUser?:
|
|
1276
|
+
string;
|
|
1277
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1278
|
+
upload_protocol?:
|
|
1279
|
+
string;
|
|
1280
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1281
|
+
uploadType?:
|
|
1282
|
+
string;
|
|
1283
|
+
/** Request body */
|
|
1284
|
+
resource:
|
|
1285
|
+
CancelDeviceSessionRequest;
|
|
1286
|
+
}): Request<{}>;
|
|
1287
|
+
cancel(request: {
|
|
1288
|
+
/** V1 error format. */
|
|
1289
|
+
"$.xgafv"?:
|
|
1290
|
+
string;
|
|
1291
|
+
/** OAuth access token. */
|
|
1292
|
+
access_token?:
|
|
1293
|
+
string;
|
|
1294
|
+
/** Data format for response. */
|
|
1295
|
+
alt?:
|
|
1296
|
+
string;
|
|
1297
|
+
/** JSONP */
|
|
1298
|
+
callback?:
|
|
1299
|
+
string;
|
|
1300
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1301
|
+
fields?:
|
|
1302
|
+
string;
|
|
1303
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1304
|
+
key?:
|
|
1305
|
+
string;
|
|
1306
|
+
/** Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" */
|
|
1307
|
+
name:
|
|
1308
|
+
string;
|
|
1309
|
+
/** OAuth 2.0 token for the current user. */
|
|
1310
|
+
oauth_token?:
|
|
1311
|
+
string;
|
|
1312
|
+
/** Returns response with indentations and line breaks. */
|
|
1313
|
+
prettyPrint?:
|
|
1314
|
+
boolean;
|
|
1315
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1316
|
+
quotaUser?:
|
|
1317
|
+
string;
|
|
1318
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1319
|
+
upload_protocol?:
|
|
1320
|
+
string;
|
|
1321
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1322
|
+
uploadType?:
|
|
1323
|
+
string;
|
|
1324
|
+
},
|
|
1325
|
+
body: CancelDeviceSessionRequest): Request<{}>;
|
|
1326
|
+
/** POST /v1/projects/{project_id}/deviceSessions */
|
|
1327
|
+
create(request: {
|
|
1328
|
+
/** V1 error format. */
|
|
1329
|
+
"$.xgafv"?:
|
|
1330
|
+
string;
|
|
1331
|
+
/** OAuth access token. */
|
|
1332
|
+
access_token?:
|
|
1333
|
+
string;
|
|
1334
|
+
/** Data format for response. */
|
|
1335
|
+
alt?:
|
|
1336
|
+
string;
|
|
1337
|
+
/** JSONP */
|
|
1338
|
+
callback?:
|
|
1339
|
+
string;
|
|
1340
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1341
|
+
fields?:
|
|
1342
|
+
string;
|
|
1343
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1344
|
+
key?:
|
|
1345
|
+
string;
|
|
1346
|
+
/** OAuth 2.0 token for the current user. */
|
|
1347
|
+
oauth_token?:
|
|
1348
|
+
string;
|
|
1349
|
+
/** Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}" */
|
|
1350
|
+
parent:
|
|
1351
|
+
string;
|
|
1352
|
+
/** Returns response with indentations and line breaks. */
|
|
1353
|
+
prettyPrint?:
|
|
1354
|
+
boolean;
|
|
1355
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1356
|
+
quotaUser?:
|
|
1357
|
+
string;
|
|
1358
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1359
|
+
upload_protocol?:
|
|
1360
|
+
string;
|
|
1361
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1362
|
+
uploadType?:
|
|
1363
|
+
string;
|
|
1364
|
+
/** Request body */
|
|
1365
|
+
resource:
|
|
1366
|
+
DeviceSession;
|
|
1367
|
+
}): Request<DeviceSession>;
|
|
1368
|
+
create(request: {
|
|
1369
|
+
/** V1 error format. */
|
|
1370
|
+
"$.xgafv"?:
|
|
1371
|
+
string;
|
|
1372
|
+
/** OAuth access token. */
|
|
1373
|
+
access_token?:
|
|
1374
|
+
string;
|
|
1375
|
+
/** Data format for response. */
|
|
1376
|
+
alt?:
|
|
1377
|
+
string;
|
|
1378
|
+
/** JSONP */
|
|
1379
|
+
callback?:
|
|
1380
|
+
string;
|
|
1381
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1382
|
+
fields?:
|
|
1383
|
+
string;
|
|
1384
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1385
|
+
key?:
|
|
1386
|
+
string;
|
|
1387
|
+
/** OAuth 2.0 token for the current user. */
|
|
1388
|
+
oauth_token?:
|
|
1389
|
+
string;
|
|
1390
|
+
/** Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}" */
|
|
1391
|
+
parent:
|
|
1392
|
+
string;
|
|
1393
|
+
/** Returns response with indentations and line breaks. */
|
|
1394
|
+
prettyPrint?:
|
|
1395
|
+
boolean;
|
|
1396
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1397
|
+
quotaUser?:
|
|
1398
|
+
string;
|
|
1399
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1400
|
+
upload_protocol?:
|
|
1401
|
+
string;
|
|
1402
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1403
|
+
uploadType?:
|
|
1404
|
+
string;
|
|
1405
|
+
},
|
|
1406
|
+
body: DeviceSession): Request<DeviceSession>;
|
|
1407
|
+
/**
|
|
1408
|
+
* GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making
|
|
1409
|
+
* requests from this API must poll GetDeviceSession.
|
|
1410
|
+
*/
|
|
1411
|
+
get(request?: {
|
|
1412
|
+
/** V1 error format. */
|
|
1413
|
+
"$.xgafv"?:
|
|
1414
|
+
string;
|
|
1415
|
+
/** OAuth access token. */
|
|
1416
|
+
access_token?:
|
|
1417
|
+
string;
|
|
1418
|
+
/** Data format for response. */
|
|
1419
|
+
alt?:
|
|
1420
|
+
string;
|
|
1421
|
+
/** JSONP */
|
|
1422
|
+
callback?:
|
|
1423
|
+
string;
|
|
1424
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1425
|
+
fields?:
|
|
1426
|
+
string;
|
|
1427
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1428
|
+
key?:
|
|
1429
|
+
string;
|
|
1430
|
+
/** Required. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" */
|
|
1431
|
+
name:
|
|
1432
|
+
string;
|
|
1433
|
+
/** OAuth 2.0 token for the current user. */
|
|
1434
|
+
oauth_token?:
|
|
1435
|
+
string;
|
|
1436
|
+
/** Returns response with indentations and line breaks. */
|
|
1437
|
+
prettyPrint?:
|
|
1438
|
+
boolean;
|
|
1439
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1440
|
+
quotaUser?:
|
|
1441
|
+
string;
|
|
1442
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1443
|
+
upload_protocol?:
|
|
1444
|
+
string;
|
|
1445
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1446
|
+
uploadType?:
|
|
1447
|
+
string;
|
|
1448
|
+
}): Request<DeviceSession>;
|
|
1449
|
+
/** GET /v1/projects/{project_id}/deviceSessions Lists device Sessions owned by the project user. */
|
|
1450
|
+
list(request?: {
|
|
1451
|
+
/** V1 error format. */
|
|
1452
|
+
"$.xgafv"?:
|
|
1453
|
+
string;
|
|
1454
|
+
/** OAuth access token. */
|
|
1455
|
+
access_token?:
|
|
1456
|
+
string;
|
|
1457
|
+
/** Data format for response. */
|
|
1458
|
+
alt?:
|
|
1459
|
+
string;
|
|
1460
|
+
/** JSONP */
|
|
1461
|
+
callback?:
|
|
1462
|
+
string;
|
|
1463
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1464
|
+
fields?:
|
|
1465
|
+
string;
|
|
1466
|
+
/** Optional. If specified, responses will be filtered by the given filter. Allowed fields are: session_state. */
|
|
1467
|
+
filter?:
|
|
1468
|
+
string;
|
|
1469
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1470
|
+
key?:
|
|
1471
|
+
string;
|
|
1472
|
+
/** OAuth 2.0 token for the current user. */
|
|
1473
|
+
oauth_token?:
|
|
1474
|
+
string;
|
|
1475
|
+
/** Optional. The maximum number of DeviceSessions to return. */
|
|
1476
|
+
pageSize?:
|
|
1477
|
+
number;
|
|
1478
|
+
/** Optional. A continuation token for paging. */
|
|
1479
|
+
pageToken?:
|
|
1480
|
+
string;
|
|
1481
|
+
/** Required. The name of the parent to request, e.g. "projects/{project_id}" */
|
|
1482
|
+
parent:
|
|
1483
|
+
string;
|
|
1484
|
+
/** Returns response with indentations and line breaks. */
|
|
1485
|
+
prettyPrint?:
|
|
1486
|
+
boolean;
|
|
1487
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1488
|
+
quotaUser?:
|
|
1489
|
+
string;
|
|
1490
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1491
|
+
upload_protocol?:
|
|
1492
|
+
string;
|
|
1493
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1494
|
+
uploadType?:
|
|
1495
|
+
string;
|
|
1496
|
+
}): Request<ListDeviceSessionsResponse>;
|
|
1497
|
+
/** PATCH /v1/projects/{projectId}/deviceSessions/deviceSessionId}:updateDeviceSession Updates the current device session to the fields described by the update_mask. */
|
|
1498
|
+
patch(request: {
|
|
1499
|
+
/** V1 error format. */
|
|
1500
|
+
"$.xgafv"?:
|
|
1501
|
+
string;
|
|
1502
|
+
/** OAuth access token. */
|
|
1503
|
+
access_token?:
|
|
1504
|
+
string;
|
|
1505
|
+
/** Data format for response. */
|
|
1506
|
+
alt?:
|
|
1507
|
+
string;
|
|
1508
|
+
/** JSONP */
|
|
1509
|
+
callback?:
|
|
1510
|
+
string;
|
|
1511
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1512
|
+
fields?:
|
|
1513
|
+
string;
|
|
1514
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1515
|
+
key?:
|
|
1516
|
+
string;
|
|
1517
|
+
/** Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" */
|
|
1518
|
+
name:
|
|
1519
|
+
string;
|
|
1520
|
+
/** OAuth 2.0 token for the current user. */
|
|
1521
|
+
oauth_token?:
|
|
1522
|
+
string;
|
|
1523
|
+
/** Returns response with indentations and line breaks. */
|
|
1524
|
+
prettyPrint?:
|
|
1525
|
+
boolean;
|
|
1526
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1527
|
+
quotaUser?:
|
|
1528
|
+
string;
|
|
1529
|
+
/** Required. The list of fields to update. */
|
|
1530
|
+
updateMask?:
|
|
1531
|
+
string;
|
|
1532
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1533
|
+
upload_protocol?:
|
|
1534
|
+
string;
|
|
1535
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1536
|
+
uploadType?:
|
|
1537
|
+
string;
|
|
1538
|
+
/** Request body */
|
|
1539
|
+
resource:
|
|
1540
|
+
DeviceSession;
|
|
1541
|
+
}): Request<DeviceSession>;
|
|
1542
|
+
patch(request: {
|
|
1543
|
+
/** V1 error format. */
|
|
1544
|
+
"$.xgafv"?:
|
|
1545
|
+
string;
|
|
1546
|
+
/** OAuth access token. */
|
|
1547
|
+
access_token?:
|
|
1548
|
+
string;
|
|
1549
|
+
/** Data format for response. */
|
|
1550
|
+
alt?:
|
|
1551
|
+
string;
|
|
1552
|
+
/** JSONP */
|
|
1553
|
+
callback?:
|
|
1554
|
+
string;
|
|
1555
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1556
|
+
fields?:
|
|
1557
|
+
string;
|
|
1558
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1559
|
+
key?:
|
|
1560
|
+
string;
|
|
1561
|
+
/** Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}" */
|
|
1562
|
+
name:
|
|
1563
|
+
string;
|
|
1564
|
+
/** OAuth 2.0 token for the current user. */
|
|
1565
|
+
oauth_token?:
|
|
1566
|
+
string;
|
|
1567
|
+
/** Returns response with indentations and line breaks. */
|
|
1568
|
+
prettyPrint?:
|
|
1569
|
+
boolean;
|
|
1570
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1571
|
+
quotaUser?:
|
|
1572
|
+
string;
|
|
1573
|
+
/** Required. The list of fields to update. */
|
|
1574
|
+
updateMask?:
|
|
1575
|
+
string;
|
|
1576
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1577
|
+
upload_protocol?:
|
|
1578
|
+
string;
|
|
1579
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1580
|
+
uploadType?:
|
|
1581
|
+
string;
|
|
1582
|
+
},
|
|
1583
|
+
body: DeviceSession): Request<DeviceSession>;
|
|
1584
|
+
}
|
|
1164
1585
|
interface TestMatricesResource {
|
|
1165
1586
|
/**
|
|
1166
1587
|
* Cancels unfinished test executions in a test matrix. This call returns immediately and cancellation proceeds asynchronously. If the matrix is already final, this operation will have
|
|
@@ -1354,6 +1775,8 @@ declare namespace gapi.client {
|
|
|
1354
1775
|
}): Request<TestMatrix>;
|
|
1355
1776
|
}
|
|
1356
1777
|
interface ProjectsResource {
|
|
1778
|
+
deviceSessions:
|
|
1779
|
+
DeviceSessionsResource;
|
|
1357
1780
|
testMatrices:
|
|
1358
1781
|
TestMatricesResource;
|
|
1359
1782
|
}
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230901
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -36,6 +36,101 @@ gapi.load('client', async () => {
|
|
|
36
36
|
}, {
|
|
37
37
|
gcsPath: "Test string",
|
|
38
38
|
});
|
|
39
|
+
/**
|
|
40
|
+
* POST /v1/projects/{project_id}/deviceSessions/{device_session_id}:cancel Changes the DeviceSession to state FINISHED and terminates all connections. Canceled sessions are not deleted
|
|
41
|
+
* and can be retrieved or listed by the user until they expire based on the 28 day deletion policy.
|
|
42
|
+
*/
|
|
43
|
+
await gapi.client.testing.projects.deviceSessions.cancel({
|
|
44
|
+
name: "Test string",
|
|
45
|
+
}, {
|
|
46
|
+
});
|
|
47
|
+
/** POST /v1/projects/{project_id}/deviceSessions */
|
|
48
|
+
await gapi.client.testing.projects.deviceSessions.create({
|
|
49
|
+
parent: "Test string",
|
|
50
|
+
}, {
|
|
51
|
+
activeStartTime: "Test string",
|
|
52
|
+
androidDevice: {
|
|
53
|
+
androidModelId: "Test string",
|
|
54
|
+
androidVersionId: "Test string",
|
|
55
|
+
locale: "Test string",
|
|
56
|
+
orientation: "Test string",
|
|
57
|
+
},
|
|
58
|
+
androidDeviceList: {
|
|
59
|
+
androidDevices: [
|
|
60
|
+
{
|
|
61
|
+
androidModelId: "Test string",
|
|
62
|
+
androidVersionId: "Test string",
|
|
63
|
+
locale: "Test string",
|
|
64
|
+
orientation: "Test string",
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
createTime: "Test string",
|
|
69
|
+
displayName: "Test string",
|
|
70
|
+
expireTime: "Test string",
|
|
71
|
+
inactivityTimeout: "Test string",
|
|
72
|
+
name: "Test string",
|
|
73
|
+
state: "Test string",
|
|
74
|
+
stateHistories: [
|
|
75
|
+
{
|
|
76
|
+
eventTime: "Test string",
|
|
77
|
+
sessionState: "Test string",
|
|
78
|
+
stateMessage: "Test string",
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
ttl: "Test string",
|
|
82
|
+
});
|
|
83
|
+
/**
|
|
84
|
+
* GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making
|
|
85
|
+
* requests from this API must poll GetDeviceSession.
|
|
86
|
+
*/
|
|
87
|
+
await gapi.client.testing.projects.deviceSessions.get({
|
|
88
|
+
name: "Test string",
|
|
89
|
+
});
|
|
90
|
+
/** GET /v1/projects/{project_id}/deviceSessions Lists device Sessions owned by the project user. */
|
|
91
|
+
await gapi.client.testing.projects.deviceSessions.list({
|
|
92
|
+
filter: "Test string",
|
|
93
|
+
pageSize: 42,
|
|
94
|
+
pageToken: "Test string",
|
|
95
|
+
parent: "Test string",
|
|
96
|
+
});
|
|
97
|
+
/** PATCH /v1/projects/{projectId}/deviceSessions/deviceSessionId}:updateDeviceSession Updates the current device session to the fields described by the update_mask. */
|
|
98
|
+
await gapi.client.testing.projects.deviceSessions.patch({
|
|
99
|
+
name: "Test string",
|
|
100
|
+
updateMask: "Test string",
|
|
101
|
+
}, {
|
|
102
|
+
activeStartTime: "Test string",
|
|
103
|
+
androidDevice: {
|
|
104
|
+
androidModelId: "Test string",
|
|
105
|
+
androidVersionId: "Test string",
|
|
106
|
+
locale: "Test string",
|
|
107
|
+
orientation: "Test string",
|
|
108
|
+
},
|
|
109
|
+
androidDeviceList: {
|
|
110
|
+
androidDevices: [
|
|
111
|
+
{
|
|
112
|
+
androidModelId: "Test string",
|
|
113
|
+
androidVersionId: "Test string",
|
|
114
|
+
locale: "Test string",
|
|
115
|
+
orientation: "Test string",
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
createTime: "Test string",
|
|
120
|
+
displayName: "Test string",
|
|
121
|
+
expireTime: "Test string",
|
|
122
|
+
inactivityTimeout: "Test string",
|
|
123
|
+
name: "Test string",
|
|
124
|
+
state: "Test string",
|
|
125
|
+
stateHistories: [
|
|
126
|
+
{
|
|
127
|
+
eventTime: "Test string",
|
|
128
|
+
sessionState: "Test string",
|
|
129
|
+
stateMessage: "Test string",
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
ttl: "Test string",
|
|
133
|
+
});
|
|
39
134
|
/**
|
|
40
135
|
* Cancels unfinished test executions in a test matrix. This call returns immediately and cancellation proceeds asynchronously. If the matrix is already final, this operation will have no
|
|
41
136
|
* effect. 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 -
|