@googleapis/vault 4.0.0 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +49 -0
- package/build/index.d.ts +1 -1
- package/build/index.js.map +1 -1
- package/build/v1.d.ts +1914 -67
- package/build/v1.js.map +1 -1
- package/index.ts +0 -1
- package/package.json +2 -2
- package/v1.ts +2026 -110
package/v1.ts
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
Compute,
|
|
24
24
|
UserRefreshClient,
|
|
25
25
|
BaseExternalAccountClient,
|
|
26
|
-
|
|
26
|
+
GaxiosResponseWithHTTP2,
|
|
27
27
|
GoogleConfigurable,
|
|
28
28
|
createAPIRequest,
|
|
29
29
|
MethodOptions,
|
|
@@ -417,6 +417,10 @@ export namespace vault_v1 {
|
|
|
417
417
|
* Set to true to include Team Drive.
|
|
418
418
|
*/
|
|
419
419
|
includeTeamDrives?: boolean | null;
|
|
420
|
+
/**
|
|
421
|
+
* Optional. Options to include or exclude documents in shared drives. We recommend using this field over include_shared_drives. This field overrides include_shared_drives and include_team_drives when set.
|
|
422
|
+
*/
|
|
423
|
+
sharedDrivesOption?: string | null;
|
|
420
424
|
/**
|
|
421
425
|
* Search the current version of the Drive file, but export the contents of the last version saved before 12:00 AM UTC on the specified date. Enter the date in UTC.
|
|
422
426
|
*/
|
|
@@ -1200,6 +1204,63 @@ export namespace vault_v1 {
|
|
|
1200
1204
|
|
|
1201
1205
|
/**
|
|
1202
1206
|
* Adds an account as a matter collaborator.
|
|
1207
|
+
* @example
|
|
1208
|
+
* ```js
|
|
1209
|
+
* // Before running the sample:
|
|
1210
|
+
* // - Enable the API at:
|
|
1211
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
1212
|
+
* // - Login into gcloud by running:
|
|
1213
|
+
* // ```sh
|
|
1214
|
+
* // $ gcloud auth application-default login
|
|
1215
|
+
* // ```
|
|
1216
|
+
* // - Install the npm module by running:
|
|
1217
|
+
* // ```sh
|
|
1218
|
+
* // $ npm install googleapis
|
|
1219
|
+
* // ```
|
|
1220
|
+
*
|
|
1221
|
+
* const {google} = require('googleapis');
|
|
1222
|
+
* const vault = google.vault('v1');
|
|
1223
|
+
*
|
|
1224
|
+
* async function main() {
|
|
1225
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1226
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1227
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
1228
|
+
* });
|
|
1229
|
+
*
|
|
1230
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1231
|
+
* const authClient = await auth.getClient();
|
|
1232
|
+
* google.options({auth: authClient});
|
|
1233
|
+
*
|
|
1234
|
+
* // Do the magic
|
|
1235
|
+
* const res = await vault.matters.addPermissions({
|
|
1236
|
+
* // The matter ID.
|
|
1237
|
+
* matterId: 'placeholder-value',
|
|
1238
|
+
*
|
|
1239
|
+
* // Request body metadata
|
|
1240
|
+
* requestBody: {
|
|
1241
|
+
* // request body parameters
|
|
1242
|
+
* // {
|
|
1243
|
+
* // "ccMe": false,
|
|
1244
|
+
* // "matterPermission": {},
|
|
1245
|
+
* // "sendEmails": false
|
|
1246
|
+
* // }
|
|
1247
|
+
* },
|
|
1248
|
+
* });
|
|
1249
|
+
* console.log(res.data);
|
|
1250
|
+
*
|
|
1251
|
+
* // Example response
|
|
1252
|
+
* // {
|
|
1253
|
+
* // "accountId": "my_accountId",
|
|
1254
|
+
* // "role": "my_role"
|
|
1255
|
+
* // }
|
|
1256
|
+
* }
|
|
1257
|
+
*
|
|
1258
|
+
* main().catch(e => {
|
|
1259
|
+
* console.error(e);
|
|
1260
|
+
* throw e;
|
|
1261
|
+
* });
|
|
1262
|
+
*
|
|
1263
|
+
* ```
|
|
1203
1264
|
*
|
|
1204
1265
|
* @param params - Parameters for request
|
|
1205
1266
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1209,11 +1270,11 @@ export namespace vault_v1 {
|
|
|
1209
1270
|
addPermissions(
|
|
1210
1271
|
params: Params$Resource$Matters$Addpermissions,
|
|
1211
1272
|
options: StreamMethodOptions
|
|
1212
|
-
):
|
|
1273
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1213
1274
|
addPermissions(
|
|
1214
1275
|
params?: Params$Resource$Matters$Addpermissions,
|
|
1215
1276
|
options?: MethodOptions
|
|
1216
|
-
):
|
|
1277
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$MatterPermission>>;
|
|
1217
1278
|
addPermissions(
|
|
1218
1279
|
params: Params$Resource$Matters$Addpermissions,
|
|
1219
1280
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -1244,7 +1305,10 @@ export namespace vault_v1 {
|
|
|
1244
1305
|
callback?:
|
|
1245
1306
|
| BodyResponseCallback<Schema$MatterPermission>
|
|
1246
1307
|
| BodyResponseCallback<Readable>
|
|
1247
|
-
):
|
|
1308
|
+
):
|
|
1309
|
+
| void
|
|
1310
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$MatterPermission>>
|
|
1311
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
1248
1312
|
let params = (paramsOrCallback ||
|
|
1249
1313
|
{}) as Params$Resource$Matters$Addpermissions;
|
|
1250
1314
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -1290,6 +1354,58 @@ export namespace vault_v1 {
|
|
|
1290
1354
|
|
|
1291
1355
|
/**
|
|
1292
1356
|
* Closes the specified matter. Returns the matter with updated state.
|
|
1357
|
+
* @example
|
|
1358
|
+
* ```js
|
|
1359
|
+
* // Before running the sample:
|
|
1360
|
+
* // - Enable the API at:
|
|
1361
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
1362
|
+
* // - Login into gcloud by running:
|
|
1363
|
+
* // ```sh
|
|
1364
|
+
* // $ gcloud auth application-default login
|
|
1365
|
+
* // ```
|
|
1366
|
+
* // - Install the npm module by running:
|
|
1367
|
+
* // ```sh
|
|
1368
|
+
* // $ npm install googleapis
|
|
1369
|
+
* // ```
|
|
1370
|
+
*
|
|
1371
|
+
* const {google} = require('googleapis');
|
|
1372
|
+
* const vault = google.vault('v1');
|
|
1373
|
+
*
|
|
1374
|
+
* async function main() {
|
|
1375
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1376
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1377
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
1378
|
+
* });
|
|
1379
|
+
*
|
|
1380
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1381
|
+
* const authClient = await auth.getClient();
|
|
1382
|
+
* google.options({auth: authClient});
|
|
1383
|
+
*
|
|
1384
|
+
* // Do the magic
|
|
1385
|
+
* const res = await vault.matters.close({
|
|
1386
|
+
* // The matter ID.
|
|
1387
|
+
* matterId: 'placeholder-value',
|
|
1388
|
+
*
|
|
1389
|
+
* // Request body metadata
|
|
1390
|
+
* requestBody: {
|
|
1391
|
+
* // request body parameters
|
|
1392
|
+
* // {}
|
|
1393
|
+
* },
|
|
1394
|
+
* });
|
|
1395
|
+
* console.log(res.data);
|
|
1396
|
+
*
|
|
1397
|
+
* // Example response
|
|
1398
|
+
* // {
|
|
1399
|
+
* // "matter": {}
|
|
1400
|
+
* // }
|
|
1401
|
+
* }
|
|
1402
|
+
*
|
|
1403
|
+
* main().catch(e => {
|
|
1404
|
+
* console.error(e);
|
|
1405
|
+
* throw e;
|
|
1406
|
+
* });
|
|
1407
|
+
*
|
|
1408
|
+
* ```
|
|
1293
1409
|
*
|
|
1294
1410
|
* @param params - Parameters for request
|
|
1295
1411
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1299,11 +1415,11 @@ export namespace vault_v1 {
|
|
|
1299
1415
|
close(
|
|
1300
1416
|
params: Params$Resource$Matters$Close,
|
|
1301
1417
|
options: StreamMethodOptions
|
|
1302
|
-
):
|
|
1418
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1303
1419
|
close(
|
|
1304
1420
|
params?: Params$Resource$Matters$Close,
|
|
1305
1421
|
options?: MethodOptions
|
|
1306
|
-
):
|
|
1422
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$CloseMatterResponse>>;
|
|
1307
1423
|
close(
|
|
1308
1424
|
params: Params$Resource$Matters$Close,
|
|
1309
1425
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -1334,8 +1450,8 @@ export namespace vault_v1 {
|
|
|
1334
1450
|
| BodyResponseCallback<Readable>
|
|
1335
1451
|
):
|
|
1336
1452
|
| void
|
|
1337
|
-
|
|
|
1338
|
-
|
|
|
1453
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$CloseMatterResponse>>
|
|
1454
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
1339
1455
|
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Close;
|
|
1340
1456
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
1341
1457
|
|
|
@@ -1380,6 +1496,65 @@ export namespace vault_v1 {
|
|
|
1380
1496
|
|
|
1381
1497
|
/**
|
|
1382
1498
|
* Counts the accounts processed by the specified query.
|
|
1499
|
+
* @example
|
|
1500
|
+
* ```js
|
|
1501
|
+
* // Before running the sample:
|
|
1502
|
+
* // - Enable the API at:
|
|
1503
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
1504
|
+
* // - Login into gcloud by running:
|
|
1505
|
+
* // ```sh
|
|
1506
|
+
* // $ gcloud auth application-default login
|
|
1507
|
+
* // ```
|
|
1508
|
+
* // - Install the npm module by running:
|
|
1509
|
+
* // ```sh
|
|
1510
|
+
* // $ npm install googleapis
|
|
1511
|
+
* // ```
|
|
1512
|
+
*
|
|
1513
|
+
* const {google} = require('googleapis');
|
|
1514
|
+
* const vault = google.vault('v1');
|
|
1515
|
+
*
|
|
1516
|
+
* async function main() {
|
|
1517
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1518
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1519
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
1520
|
+
* });
|
|
1521
|
+
*
|
|
1522
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1523
|
+
* const authClient = await auth.getClient();
|
|
1524
|
+
* google.options({auth: authClient});
|
|
1525
|
+
*
|
|
1526
|
+
* // Do the magic
|
|
1527
|
+
* const res = await vault.matters.count({
|
|
1528
|
+
* // The matter ID.
|
|
1529
|
+
* matterId: 'placeholder-value',
|
|
1530
|
+
*
|
|
1531
|
+
* // Request body metadata
|
|
1532
|
+
* requestBody: {
|
|
1533
|
+
* // request body parameters
|
|
1534
|
+
* // {
|
|
1535
|
+
* // "query": {},
|
|
1536
|
+
* // "view": "my_view"
|
|
1537
|
+
* // }
|
|
1538
|
+
* },
|
|
1539
|
+
* });
|
|
1540
|
+
* console.log(res.data);
|
|
1541
|
+
*
|
|
1542
|
+
* // Example response
|
|
1543
|
+
* // {
|
|
1544
|
+
* // "done": false,
|
|
1545
|
+
* // "error": {},
|
|
1546
|
+
* // "metadata": {},
|
|
1547
|
+
* // "name": "my_name",
|
|
1548
|
+
* // "response": {}
|
|
1549
|
+
* // }
|
|
1550
|
+
* }
|
|
1551
|
+
*
|
|
1552
|
+
* main().catch(e => {
|
|
1553
|
+
* console.error(e);
|
|
1554
|
+
* throw e;
|
|
1555
|
+
* });
|
|
1556
|
+
*
|
|
1557
|
+
* ```
|
|
1383
1558
|
*
|
|
1384
1559
|
* @param params - Parameters for request
|
|
1385
1560
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1389,11 +1564,11 @@ export namespace vault_v1 {
|
|
|
1389
1564
|
count(
|
|
1390
1565
|
params: Params$Resource$Matters$Count,
|
|
1391
1566
|
options: StreamMethodOptions
|
|
1392
|
-
):
|
|
1567
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1393
1568
|
count(
|
|
1394
1569
|
params?: Params$Resource$Matters$Count,
|
|
1395
1570
|
options?: MethodOptions
|
|
1396
|
-
):
|
|
1571
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
1397
1572
|
count(
|
|
1398
1573
|
params: Params$Resource$Matters$Count,
|
|
1399
1574
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -1422,7 +1597,10 @@ export namespace vault_v1 {
|
|
|
1422
1597
|
callback?:
|
|
1423
1598
|
| BodyResponseCallback<Schema$Operation>
|
|
1424
1599
|
| BodyResponseCallback<Readable>
|
|
1425
|
-
):
|
|
1600
|
+
):
|
|
1601
|
+
| void
|
|
1602
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
1603
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
1426
1604
|
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Count;
|
|
1427
1605
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
1428
1606
|
|
|
@@ -1467,6 +1645,67 @@ export namespace vault_v1 {
|
|
|
1467
1645
|
|
|
1468
1646
|
/**
|
|
1469
1647
|
* Creates a matter with the given name and description. The initial state is open, and the owner is the method caller. Returns the created matter with default view.
|
|
1648
|
+
* @example
|
|
1649
|
+
* ```js
|
|
1650
|
+
* // Before running the sample:
|
|
1651
|
+
* // - Enable the API at:
|
|
1652
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
1653
|
+
* // - Login into gcloud by running:
|
|
1654
|
+
* // ```sh
|
|
1655
|
+
* // $ gcloud auth application-default login
|
|
1656
|
+
* // ```
|
|
1657
|
+
* // - Install the npm module by running:
|
|
1658
|
+
* // ```sh
|
|
1659
|
+
* // $ npm install googleapis
|
|
1660
|
+
* // ```
|
|
1661
|
+
*
|
|
1662
|
+
* const {google} = require('googleapis');
|
|
1663
|
+
* const vault = google.vault('v1');
|
|
1664
|
+
*
|
|
1665
|
+
* async function main() {
|
|
1666
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1667
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1668
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
1669
|
+
* });
|
|
1670
|
+
*
|
|
1671
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1672
|
+
* const authClient = await auth.getClient();
|
|
1673
|
+
* google.options({auth: authClient});
|
|
1674
|
+
*
|
|
1675
|
+
* // Do the magic
|
|
1676
|
+
* const res = await vault.matters.create({
|
|
1677
|
+
* // Request body metadata
|
|
1678
|
+
* requestBody: {
|
|
1679
|
+
* // request body parameters
|
|
1680
|
+
* // {
|
|
1681
|
+
* // "description": "my_description",
|
|
1682
|
+
* // "matterId": "my_matterId",
|
|
1683
|
+
* // "matterPermissions": [],
|
|
1684
|
+
* // "matterRegion": "my_matterRegion",
|
|
1685
|
+
* // "name": "my_name",
|
|
1686
|
+
* // "state": "my_state"
|
|
1687
|
+
* // }
|
|
1688
|
+
* },
|
|
1689
|
+
* });
|
|
1690
|
+
* console.log(res.data);
|
|
1691
|
+
*
|
|
1692
|
+
* // Example response
|
|
1693
|
+
* // {
|
|
1694
|
+
* // "description": "my_description",
|
|
1695
|
+
* // "matterId": "my_matterId",
|
|
1696
|
+
* // "matterPermissions": [],
|
|
1697
|
+
* // "matterRegion": "my_matterRegion",
|
|
1698
|
+
* // "name": "my_name",
|
|
1699
|
+
* // "state": "my_state"
|
|
1700
|
+
* // }
|
|
1701
|
+
* }
|
|
1702
|
+
*
|
|
1703
|
+
* main().catch(e => {
|
|
1704
|
+
* console.error(e);
|
|
1705
|
+
* throw e;
|
|
1706
|
+
* });
|
|
1707
|
+
*
|
|
1708
|
+
* ```
|
|
1470
1709
|
*
|
|
1471
1710
|
* @param params - Parameters for request
|
|
1472
1711
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1476,11 +1715,11 @@ export namespace vault_v1 {
|
|
|
1476
1715
|
create(
|
|
1477
1716
|
params: Params$Resource$Matters$Create,
|
|
1478
1717
|
options: StreamMethodOptions
|
|
1479
|
-
):
|
|
1718
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1480
1719
|
create(
|
|
1481
1720
|
params?: Params$Resource$Matters$Create,
|
|
1482
1721
|
options?: MethodOptions
|
|
1483
|
-
):
|
|
1722
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Matter>>;
|
|
1484
1723
|
create(
|
|
1485
1724
|
params: Params$Resource$Matters$Create,
|
|
1486
1725
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -1509,7 +1748,10 @@ export namespace vault_v1 {
|
|
|
1509
1748
|
callback?:
|
|
1510
1749
|
| BodyResponseCallback<Schema$Matter>
|
|
1511
1750
|
| BodyResponseCallback<Readable>
|
|
1512
|
-
):
|
|
1751
|
+
):
|
|
1752
|
+
| void
|
|
1753
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Matter>>
|
|
1754
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
1513
1755
|
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Create;
|
|
1514
1756
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
1515
1757
|
|
|
@@ -1551,6 +1793,57 @@ export namespace vault_v1 {
|
|
|
1551
1793
|
|
|
1552
1794
|
/**
|
|
1553
1795
|
* Deletes the specified matter. Returns the matter with updated state.
|
|
1796
|
+
* @example
|
|
1797
|
+
* ```js
|
|
1798
|
+
* // Before running the sample:
|
|
1799
|
+
* // - Enable the API at:
|
|
1800
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
1801
|
+
* // - Login into gcloud by running:
|
|
1802
|
+
* // ```sh
|
|
1803
|
+
* // $ gcloud auth application-default login
|
|
1804
|
+
* // ```
|
|
1805
|
+
* // - Install the npm module by running:
|
|
1806
|
+
* // ```sh
|
|
1807
|
+
* // $ npm install googleapis
|
|
1808
|
+
* // ```
|
|
1809
|
+
*
|
|
1810
|
+
* const {google} = require('googleapis');
|
|
1811
|
+
* const vault = google.vault('v1');
|
|
1812
|
+
*
|
|
1813
|
+
* async function main() {
|
|
1814
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1815
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1816
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
1817
|
+
* });
|
|
1818
|
+
*
|
|
1819
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1820
|
+
* const authClient = await auth.getClient();
|
|
1821
|
+
* google.options({auth: authClient});
|
|
1822
|
+
*
|
|
1823
|
+
* // Do the magic
|
|
1824
|
+
* const res = await vault.matters.delete({
|
|
1825
|
+
* // The matter ID
|
|
1826
|
+
* matterId: 'placeholder-value',
|
|
1827
|
+
* });
|
|
1828
|
+
* console.log(res.data);
|
|
1829
|
+
*
|
|
1830
|
+
* // Example response
|
|
1831
|
+
* // {
|
|
1832
|
+
* // "description": "my_description",
|
|
1833
|
+
* // "matterId": "my_matterId",
|
|
1834
|
+
* // "matterPermissions": [],
|
|
1835
|
+
* // "matterRegion": "my_matterRegion",
|
|
1836
|
+
* // "name": "my_name",
|
|
1837
|
+
* // "state": "my_state"
|
|
1838
|
+
* // }
|
|
1839
|
+
* }
|
|
1840
|
+
*
|
|
1841
|
+
* main().catch(e => {
|
|
1842
|
+
* console.error(e);
|
|
1843
|
+
* throw e;
|
|
1844
|
+
* });
|
|
1845
|
+
*
|
|
1846
|
+
* ```
|
|
1554
1847
|
*
|
|
1555
1848
|
* @param params - Parameters for request
|
|
1556
1849
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1560,11 +1853,11 @@ export namespace vault_v1 {
|
|
|
1560
1853
|
delete(
|
|
1561
1854
|
params: Params$Resource$Matters$Delete,
|
|
1562
1855
|
options: StreamMethodOptions
|
|
1563
|
-
):
|
|
1856
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1564
1857
|
delete(
|
|
1565
1858
|
params?: Params$Resource$Matters$Delete,
|
|
1566
1859
|
options?: MethodOptions
|
|
1567
|
-
):
|
|
1860
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Matter>>;
|
|
1568
1861
|
delete(
|
|
1569
1862
|
params: Params$Resource$Matters$Delete,
|
|
1570
1863
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -1593,7 +1886,10 @@ export namespace vault_v1 {
|
|
|
1593
1886
|
callback?:
|
|
1594
1887
|
| BodyResponseCallback<Schema$Matter>
|
|
1595
1888
|
| BodyResponseCallback<Readable>
|
|
1596
|
-
):
|
|
1889
|
+
):
|
|
1890
|
+
| void
|
|
1891
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Matter>>
|
|
1892
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
1597
1893
|
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Delete;
|
|
1598
1894
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
1599
1895
|
|
|
@@ -1638,6 +1934,62 @@ export namespace vault_v1 {
|
|
|
1638
1934
|
|
|
1639
1935
|
/**
|
|
1640
1936
|
* Gets the specified matter.
|
|
1937
|
+
* @example
|
|
1938
|
+
* ```js
|
|
1939
|
+
* // Before running the sample:
|
|
1940
|
+
* // - Enable the API at:
|
|
1941
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
1942
|
+
* // - Login into gcloud by running:
|
|
1943
|
+
* // ```sh
|
|
1944
|
+
* // $ gcloud auth application-default login
|
|
1945
|
+
* // ```
|
|
1946
|
+
* // - Install the npm module by running:
|
|
1947
|
+
* // ```sh
|
|
1948
|
+
* // $ npm install googleapis
|
|
1949
|
+
* // ```
|
|
1950
|
+
*
|
|
1951
|
+
* const {google} = require('googleapis');
|
|
1952
|
+
* const vault = google.vault('v1');
|
|
1953
|
+
*
|
|
1954
|
+
* async function main() {
|
|
1955
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1956
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1957
|
+
* scopes: [
|
|
1958
|
+
* 'https://www.googleapis.com/auth/ediscovery',
|
|
1959
|
+
* 'https://www.googleapis.com/auth/ediscovery.readonly',
|
|
1960
|
+
* ],
|
|
1961
|
+
* });
|
|
1962
|
+
*
|
|
1963
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1964
|
+
* const authClient = await auth.getClient();
|
|
1965
|
+
* google.options({auth: authClient});
|
|
1966
|
+
*
|
|
1967
|
+
* // Do the magic
|
|
1968
|
+
* const res = await vault.matters.get({
|
|
1969
|
+
* // The matter ID.
|
|
1970
|
+
* matterId: 'placeholder-value',
|
|
1971
|
+
* // Specifies how much information about the matter to return in the response.
|
|
1972
|
+
* view: 'placeholder-value',
|
|
1973
|
+
* });
|
|
1974
|
+
* console.log(res.data);
|
|
1975
|
+
*
|
|
1976
|
+
* // Example response
|
|
1977
|
+
* // {
|
|
1978
|
+
* // "description": "my_description",
|
|
1979
|
+
* // "matterId": "my_matterId",
|
|
1980
|
+
* // "matterPermissions": [],
|
|
1981
|
+
* // "matterRegion": "my_matterRegion",
|
|
1982
|
+
* // "name": "my_name",
|
|
1983
|
+
* // "state": "my_state"
|
|
1984
|
+
* // }
|
|
1985
|
+
* }
|
|
1986
|
+
*
|
|
1987
|
+
* main().catch(e => {
|
|
1988
|
+
* console.error(e);
|
|
1989
|
+
* throw e;
|
|
1990
|
+
* });
|
|
1991
|
+
*
|
|
1992
|
+
* ```
|
|
1641
1993
|
*
|
|
1642
1994
|
* @param params - Parameters for request
|
|
1643
1995
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1647,11 +1999,11 @@ export namespace vault_v1 {
|
|
|
1647
1999
|
get(
|
|
1648
2000
|
params: Params$Resource$Matters$Get,
|
|
1649
2001
|
options: StreamMethodOptions
|
|
1650
|
-
):
|
|
2002
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1651
2003
|
get(
|
|
1652
2004
|
params?: Params$Resource$Matters$Get,
|
|
1653
2005
|
options?: MethodOptions
|
|
1654
|
-
):
|
|
2006
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Matter>>;
|
|
1655
2007
|
get(
|
|
1656
2008
|
params: Params$Resource$Matters$Get,
|
|
1657
2009
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -1680,7 +2032,10 @@ export namespace vault_v1 {
|
|
|
1680
2032
|
callback?:
|
|
1681
2033
|
| BodyResponseCallback<Schema$Matter>
|
|
1682
2034
|
| BodyResponseCallback<Readable>
|
|
1683
|
-
):
|
|
2035
|
+
):
|
|
2036
|
+
| void
|
|
2037
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Matter>>
|
|
2038
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
1684
2039
|
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Get;
|
|
1685
2040
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
1686
2041
|
|
|
@@ -1725,6 +2080,62 @@ export namespace vault_v1 {
|
|
|
1725
2080
|
|
|
1726
2081
|
/**
|
|
1727
2082
|
* Lists matters the requestor has access to.
|
|
2083
|
+
* @example
|
|
2084
|
+
* ```js
|
|
2085
|
+
* // Before running the sample:
|
|
2086
|
+
* // - Enable the API at:
|
|
2087
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
2088
|
+
* // - Login into gcloud by running:
|
|
2089
|
+
* // ```sh
|
|
2090
|
+
* // $ gcloud auth application-default login
|
|
2091
|
+
* // ```
|
|
2092
|
+
* // - Install the npm module by running:
|
|
2093
|
+
* // ```sh
|
|
2094
|
+
* // $ npm install googleapis
|
|
2095
|
+
* // ```
|
|
2096
|
+
*
|
|
2097
|
+
* const {google} = require('googleapis');
|
|
2098
|
+
* const vault = google.vault('v1');
|
|
2099
|
+
*
|
|
2100
|
+
* async function main() {
|
|
2101
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2102
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2103
|
+
* scopes: [
|
|
2104
|
+
* 'https://www.googleapis.com/auth/ediscovery',
|
|
2105
|
+
* 'https://www.googleapis.com/auth/ediscovery.readonly',
|
|
2106
|
+
* ],
|
|
2107
|
+
* });
|
|
2108
|
+
*
|
|
2109
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2110
|
+
* const authClient = await auth.getClient();
|
|
2111
|
+
* google.options({auth: authClient});
|
|
2112
|
+
*
|
|
2113
|
+
* // Do the magic
|
|
2114
|
+
* const res = await vault.matters.list({
|
|
2115
|
+
* // The number of matters to return in the response. Default and maximum are 100.
|
|
2116
|
+
* pageSize: 'placeholder-value',
|
|
2117
|
+
* // The pagination token as returned in the response.
|
|
2118
|
+
* pageToken: 'placeholder-value',
|
|
2119
|
+
* // If set, lists only matters with the specified state. The default lists matters of all states.
|
|
2120
|
+
* state: 'placeholder-value',
|
|
2121
|
+
* // Specifies how much information about the matter to return in response.
|
|
2122
|
+
* view: 'placeholder-value',
|
|
2123
|
+
* });
|
|
2124
|
+
* console.log(res.data);
|
|
2125
|
+
*
|
|
2126
|
+
* // Example response
|
|
2127
|
+
* // {
|
|
2128
|
+
* // "matters": [],
|
|
2129
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
2130
|
+
* // }
|
|
2131
|
+
* }
|
|
2132
|
+
*
|
|
2133
|
+
* main().catch(e => {
|
|
2134
|
+
* console.error(e);
|
|
2135
|
+
* throw e;
|
|
2136
|
+
* });
|
|
2137
|
+
*
|
|
2138
|
+
* ```
|
|
1728
2139
|
*
|
|
1729
2140
|
* @param params - Parameters for request
|
|
1730
2141
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1734,11 +2145,11 @@ export namespace vault_v1 {
|
|
|
1734
2145
|
list(
|
|
1735
2146
|
params: Params$Resource$Matters$List,
|
|
1736
2147
|
options: StreamMethodOptions
|
|
1737
|
-
):
|
|
2148
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1738
2149
|
list(
|
|
1739
2150
|
params?: Params$Resource$Matters$List,
|
|
1740
2151
|
options?: MethodOptions
|
|
1741
|
-
):
|
|
2152
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListMattersResponse>>;
|
|
1742
2153
|
list(
|
|
1743
2154
|
params: Params$Resource$Matters$List,
|
|
1744
2155
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -1769,8 +2180,8 @@ export namespace vault_v1 {
|
|
|
1769
2180
|
| BodyResponseCallback<Readable>
|
|
1770
2181
|
):
|
|
1771
2182
|
| void
|
|
1772
|
-
|
|
|
1773
|
-
|
|
|
2183
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListMattersResponse>>
|
|
2184
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
1774
2185
|
let params = (paramsOrCallback || {}) as Params$Resource$Matters$List;
|
|
1775
2186
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
1776
2187
|
|
|
@@ -1812,6 +2223,58 @@ export namespace vault_v1 {
|
|
|
1812
2223
|
|
|
1813
2224
|
/**
|
|
1814
2225
|
* Removes an account as a matter collaborator.
|
|
2226
|
+
* @example
|
|
2227
|
+
* ```js
|
|
2228
|
+
* // Before running the sample:
|
|
2229
|
+
* // - Enable the API at:
|
|
2230
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
2231
|
+
* // - Login into gcloud by running:
|
|
2232
|
+
* // ```sh
|
|
2233
|
+
* // $ gcloud auth application-default login
|
|
2234
|
+
* // ```
|
|
2235
|
+
* // - Install the npm module by running:
|
|
2236
|
+
* // ```sh
|
|
2237
|
+
* // $ npm install googleapis
|
|
2238
|
+
* // ```
|
|
2239
|
+
*
|
|
2240
|
+
* const {google} = require('googleapis');
|
|
2241
|
+
* const vault = google.vault('v1');
|
|
2242
|
+
*
|
|
2243
|
+
* async function main() {
|
|
2244
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2245
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2246
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
2247
|
+
* });
|
|
2248
|
+
*
|
|
2249
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2250
|
+
* const authClient = await auth.getClient();
|
|
2251
|
+
* google.options({auth: authClient});
|
|
2252
|
+
*
|
|
2253
|
+
* // Do the magic
|
|
2254
|
+
* const res = await vault.matters.removePermissions({
|
|
2255
|
+
* // The matter ID.
|
|
2256
|
+
* matterId: 'placeholder-value',
|
|
2257
|
+
*
|
|
2258
|
+
* // Request body metadata
|
|
2259
|
+
* requestBody: {
|
|
2260
|
+
* // request body parameters
|
|
2261
|
+
* // {
|
|
2262
|
+
* // "accountId": "my_accountId"
|
|
2263
|
+
* // }
|
|
2264
|
+
* },
|
|
2265
|
+
* });
|
|
2266
|
+
* console.log(res.data);
|
|
2267
|
+
*
|
|
2268
|
+
* // Example response
|
|
2269
|
+
* // {}
|
|
2270
|
+
* }
|
|
2271
|
+
*
|
|
2272
|
+
* main().catch(e => {
|
|
2273
|
+
* console.error(e);
|
|
2274
|
+
* throw e;
|
|
2275
|
+
* });
|
|
2276
|
+
*
|
|
2277
|
+
* ```
|
|
1815
2278
|
*
|
|
1816
2279
|
* @param params - Parameters for request
|
|
1817
2280
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1821,11 +2284,11 @@ export namespace vault_v1 {
|
|
|
1821
2284
|
removePermissions(
|
|
1822
2285
|
params: Params$Resource$Matters$Removepermissions,
|
|
1823
2286
|
options: StreamMethodOptions
|
|
1824
|
-
):
|
|
2287
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1825
2288
|
removePermissions(
|
|
1826
2289
|
params?: Params$Resource$Matters$Removepermissions,
|
|
1827
2290
|
options?: MethodOptions
|
|
1828
|
-
):
|
|
2291
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
1829
2292
|
removePermissions(
|
|
1830
2293
|
params: Params$Resource$Matters$Removepermissions,
|
|
1831
2294
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -1854,7 +2317,10 @@ export namespace vault_v1 {
|
|
|
1854
2317
|
callback?:
|
|
1855
2318
|
| BodyResponseCallback<Schema$Empty>
|
|
1856
2319
|
| BodyResponseCallback<Readable>
|
|
1857
|
-
):
|
|
2320
|
+
):
|
|
2321
|
+
| void
|
|
2322
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
2323
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
1858
2324
|
let params = (paramsOrCallback ||
|
|
1859
2325
|
{}) as Params$Resource$Matters$Removepermissions;
|
|
1860
2326
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -1900,6 +2366,58 @@ export namespace vault_v1 {
|
|
|
1900
2366
|
|
|
1901
2367
|
/**
|
|
1902
2368
|
* Reopens the specified matter. Returns the matter with updated state.
|
|
2369
|
+
* @example
|
|
2370
|
+
* ```js
|
|
2371
|
+
* // Before running the sample:
|
|
2372
|
+
* // - Enable the API at:
|
|
2373
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
2374
|
+
* // - Login into gcloud by running:
|
|
2375
|
+
* // ```sh
|
|
2376
|
+
* // $ gcloud auth application-default login
|
|
2377
|
+
* // ```
|
|
2378
|
+
* // - Install the npm module by running:
|
|
2379
|
+
* // ```sh
|
|
2380
|
+
* // $ npm install googleapis
|
|
2381
|
+
* // ```
|
|
2382
|
+
*
|
|
2383
|
+
* const {google} = require('googleapis');
|
|
2384
|
+
* const vault = google.vault('v1');
|
|
2385
|
+
*
|
|
2386
|
+
* async function main() {
|
|
2387
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2388
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2389
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
2390
|
+
* });
|
|
2391
|
+
*
|
|
2392
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2393
|
+
* const authClient = await auth.getClient();
|
|
2394
|
+
* google.options({auth: authClient});
|
|
2395
|
+
*
|
|
2396
|
+
* // Do the magic
|
|
2397
|
+
* const res = await vault.matters.reopen({
|
|
2398
|
+
* // The matter ID.
|
|
2399
|
+
* matterId: 'placeholder-value',
|
|
2400
|
+
*
|
|
2401
|
+
* // Request body metadata
|
|
2402
|
+
* requestBody: {
|
|
2403
|
+
* // request body parameters
|
|
2404
|
+
* // {}
|
|
2405
|
+
* },
|
|
2406
|
+
* });
|
|
2407
|
+
* console.log(res.data);
|
|
2408
|
+
*
|
|
2409
|
+
* // Example response
|
|
2410
|
+
* // {
|
|
2411
|
+
* // "matter": {}
|
|
2412
|
+
* // }
|
|
2413
|
+
* }
|
|
2414
|
+
*
|
|
2415
|
+
* main().catch(e => {
|
|
2416
|
+
* console.error(e);
|
|
2417
|
+
* throw e;
|
|
2418
|
+
* });
|
|
2419
|
+
*
|
|
2420
|
+
* ```
|
|
1903
2421
|
*
|
|
1904
2422
|
* @param params - Parameters for request
|
|
1905
2423
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1909,11 +2427,11 @@ export namespace vault_v1 {
|
|
|
1909
2427
|
reopen(
|
|
1910
2428
|
params: Params$Resource$Matters$Reopen,
|
|
1911
2429
|
options: StreamMethodOptions
|
|
1912
|
-
):
|
|
2430
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
1913
2431
|
reopen(
|
|
1914
2432
|
params?: Params$Resource$Matters$Reopen,
|
|
1915
2433
|
options?: MethodOptions
|
|
1916
|
-
):
|
|
2434
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ReopenMatterResponse>>;
|
|
1917
2435
|
reopen(
|
|
1918
2436
|
params: Params$Resource$Matters$Reopen,
|
|
1919
2437
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -1946,8 +2464,8 @@ export namespace vault_v1 {
|
|
|
1946
2464
|
| BodyResponseCallback<Readable>
|
|
1947
2465
|
):
|
|
1948
2466
|
| void
|
|
1949
|
-
|
|
|
1950
|
-
|
|
|
2467
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ReopenMatterResponse>>
|
|
2468
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
1951
2469
|
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Reopen;
|
|
1952
2470
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
1953
2471
|
|
|
@@ -1992,6 +2510,63 @@ export namespace vault_v1 {
|
|
|
1992
2510
|
|
|
1993
2511
|
/**
|
|
1994
2512
|
* Undeletes the specified matter. Returns the matter with updated state.
|
|
2513
|
+
* @example
|
|
2514
|
+
* ```js
|
|
2515
|
+
* // Before running the sample:
|
|
2516
|
+
* // - Enable the API at:
|
|
2517
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
2518
|
+
* // - Login into gcloud by running:
|
|
2519
|
+
* // ```sh
|
|
2520
|
+
* // $ gcloud auth application-default login
|
|
2521
|
+
* // ```
|
|
2522
|
+
* // - Install the npm module by running:
|
|
2523
|
+
* // ```sh
|
|
2524
|
+
* // $ npm install googleapis
|
|
2525
|
+
* // ```
|
|
2526
|
+
*
|
|
2527
|
+
* const {google} = require('googleapis');
|
|
2528
|
+
* const vault = google.vault('v1');
|
|
2529
|
+
*
|
|
2530
|
+
* async function main() {
|
|
2531
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2532
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2533
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
2534
|
+
* });
|
|
2535
|
+
*
|
|
2536
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2537
|
+
* const authClient = await auth.getClient();
|
|
2538
|
+
* google.options({auth: authClient});
|
|
2539
|
+
*
|
|
2540
|
+
* // Do the magic
|
|
2541
|
+
* const res = await vault.matters.undelete({
|
|
2542
|
+
* // The matter ID.
|
|
2543
|
+
* matterId: 'placeholder-value',
|
|
2544
|
+
*
|
|
2545
|
+
* // Request body metadata
|
|
2546
|
+
* requestBody: {
|
|
2547
|
+
* // request body parameters
|
|
2548
|
+
* // {}
|
|
2549
|
+
* },
|
|
2550
|
+
* });
|
|
2551
|
+
* console.log(res.data);
|
|
2552
|
+
*
|
|
2553
|
+
* // Example response
|
|
2554
|
+
* // {
|
|
2555
|
+
* // "description": "my_description",
|
|
2556
|
+
* // "matterId": "my_matterId",
|
|
2557
|
+
* // "matterPermissions": [],
|
|
2558
|
+
* // "matterRegion": "my_matterRegion",
|
|
2559
|
+
* // "name": "my_name",
|
|
2560
|
+
* // "state": "my_state"
|
|
2561
|
+
* // }
|
|
2562
|
+
* }
|
|
2563
|
+
*
|
|
2564
|
+
* main().catch(e => {
|
|
2565
|
+
* console.error(e);
|
|
2566
|
+
* throw e;
|
|
2567
|
+
* });
|
|
2568
|
+
*
|
|
2569
|
+
* ```
|
|
1995
2570
|
*
|
|
1996
2571
|
* @param params - Parameters for request
|
|
1997
2572
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2001,11 +2576,11 @@ export namespace vault_v1 {
|
|
|
2001
2576
|
undelete(
|
|
2002
2577
|
params: Params$Resource$Matters$Undelete,
|
|
2003
2578
|
options: StreamMethodOptions
|
|
2004
|
-
):
|
|
2579
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2005
2580
|
undelete(
|
|
2006
2581
|
params?: Params$Resource$Matters$Undelete,
|
|
2007
2582
|
options?: MethodOptions
|
|
2008
|
-
):
|
|
2583
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Matter>>;
|
|
2009
2584
|
undelete(
|
|
2010
2585
|
params: Params$Resource$Matters$Undelete,
|
|
2011
2586
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -2034,7 +2609,10 @@ export namespace vault_v1 {
|
|
|
2034
2609
|
callback?:
|
|
2035
2610
|
| BodyResponseCallback<Schema$Matter>
|
|
2036
2611
|
| BodyResponseCallback<Readable>
|
|
2037
|
-
):
|
|
2612
|
+
):
|
|
2613
|
+
| void
|
|
2614
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Matter>>
|
|
2615
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2038
2616
|
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Undelete;
|
|
2039
2617
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2040
2618
|
|
|
@@ -2079,6 +2657,70 @@ export namespace vault_v1 {
|
|
|
2079
2657
|
|
|
2080
2658
|
/**
|
|
2081
2659
|
* Updates the specified matter. This updates only the name and description of the matter, identified by matter ID. Changes to any other fields are ignored. Returns the default view of the matter.
|
|
2660
|
+
* @example
|
|
2661
|
+
* ```js
|
|
2662
|
+
* // Before running the sample:
|
|
2663
|
+
* // - Enable the API at:
|
|
2664
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
2665
|
+
* // - Login into gcloud by running:
|
|
2666
|
+
* // ```sh
|
|
2667
|
+
* // $ gcloud auth application-default login
|
|
2668
|
+
* // ```
|
|
2669
|
+
* // - Install the npm module by running:
|
|
2670
|
+
* // ```sh
|
|
2671
|
+
* // $ npm install googleapis
|
|
2672
|
+
* // ```
|
|
2673
|
+
*
|
|
2674
|
+
* const {google} = require('googleapis');
|
|
2675
|
+
* const vault = google.vault('v1');
|
|
2676
|
+
*
|
|
2677
|
+
* async function main() {
|
|
2678
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2679
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2680
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
2681
|
+
* });
|
|
2682
|
+
*
|
|
2683
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2684
|
+
* const authClient = await auth.getClient();
|
|
2685
|
+
* google.options({auth: authClient});
|
|
2686
|
+
*
|
|
2687
|
+
* // Do the magic
|
|
2688
|
+
* const res = await vault.matters.update({
|
|
2689
|
+
* // The matter ID.
|
|
2690
|
+
* matterId: 'placeholder-value',
|
|
2691
|
+
*
|
|
2692
|
+
* // Request body metadata
|
|
2693
|
+
* requestBody: {
|
|
2694
|
+
* // request body parameters
|
|
2695
|
+
* // {
|
|
2696
|
+
* // "description": "my_description",
|
|
2697
|
+
* // "matterId": "my_matterId",
|
|
2698
|
+
* // "matterPermissions": [],
|
|
2699
|
+
* // "matterRegion": "my_matterRegion",
|
|
2700
|
+
* // "name": "my_name",
|
|
2701
|
+
* // "state": "my_state"
|
|
2702
|
+
* // }
|
|
2703
|
+
* },
|
|
2704
|
+
* });
|
|
2705
|
+
* console.log(res.data);
|
|
2706
|
+
*
|
|
2707
|
+
* // Example response
|
|
2708
|
+
* // {
|
|
2709
|
+
* // "description": "my_description",
|
|
2710
|
+
* // "matterId": "my_matterId",
|
|
2711
|
+
* // "matterPermissions": [],
|
|
2712
|
+
* // "matterRegion": "my_matterRegion",
|
|
2713
|
+
* // "name": "my_name",
|
|
2714
|
+
* // "state": "my_state"
|
|
2715
|
+
* // }
|
|
2716
|
+
* }
|
|
2717
|
+
*
|
|
2718
|
+
* main().catch(e => {
|
|
2719
|
+
* console.error(e);
|
|
2720
|
+
* throw e;
|
|
2721
|
+
* });
|
|
2722
|
+
*
|
|
2723
|
+
* ```
|
|
2082
2724
|
*
|
|
2083
2725
|
* @param params - Parameters for request
|
|
2084
2726
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2088,11 +2730,11 @@ export namespace vault_v1 {
|
|
|
2088
2730
|
update(
|
|
2089
2731
|
params: Params$Resource$Matters$Update,
|
|
2090
2732
|
options: StreamMethodOptions
|
|
2091
|
-
):
|
|
2733
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2092
2734
|
update(
|
|
2093
2735
|
params?: Params$Resource$Matters$Update,
|
|
2094
2736
|
options?: MethodOptions
|
|
2095
|
-
):
|
|
2737
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Matter>>;
|
|
2096
2738
|
update(
|
|
2097
2739
|
params: Params$Resource$Matters$Update,
|
|
2098
2740
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -2121,7 +2763,10 @@ export namespace vault_v1 {
|
|
|
2121
2763
|
callback?:
|
|
2122
2764
|
| BodyResponseCallback<Schema$Matter>
|
|
2123
2765
|
| BodyResponseCallback<Readable>
|
|
2124
|
-
):
|
|
2766
|
+
):
|
|
2767
|
+
| void
|
|
2768
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Matter>>
|
|
2769
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2125
2770
|
let params = (paramsOrCallback || {}) as Params$Resource$Matters$Update;
|
|
2126
2771
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2127
2772
|
|
|
@@ -2293,6 +2938,80 @@ export namespace vault_v1 {
|
|
|
2293
2938
|
|
|
2294
2939
|
/**
|
|
2295
2940
|
* Creates an export.
|
|
2941
|
+
* @example
|
|
2942
|
+
* ```js
|
|
2943
|
+
* // Before running the sample:
|
|
2944
|
+
* // - Enable the API at:
|
|
2945
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
2946
|
+
* // - Login into gcloud by running:
|
|
2947
|
+
* // ```sh
|
|
2948
|
+
* // $ gcloud auth application-default login
|
|
2949
|
+
* // ```
|
|
2950
|
+
* // - Install the npm module by running:
|
|
2951
|
+
* // ```sh
|
|
2952
|
+
* // $ npm install googleapis
|
|
2953
|
+
* // ```
|
|
2954
|
+
*
|
|
2955
|
+
* const {google} = require('googleapis');
|
|
2956
|
+
* const vault = google.vault('v1');
|
|
2957
|
+
*
|
|
2958
|
+
* async function main() {
|
|
2959
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2960
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2961
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
2962
|
+
* });
|
|
2963
|
+
*
|
|
2964
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2965
|
+
* const authClient = await auth.getClient();
|
|
2966
|
+
* google.options({auth: authClient});
|
|
2967
|
+
*
|
|
2968
|
+
* // Do the magic
|
|
2969
|
+
* const res = await vault.matters.exports.create({
|
|
2970
|
+
* // The matter ID.
|
|
2971
|
+
* matterId: 'placeholder-value',
|
|
2972
|
+
*
|
|
2973
|
+
* // Request body metadata
|
|
2974
|
+
* requestBody: {
|
|
2975
|
+
* // request body parameters
|
|
2976
|
+
* // {
|
|
2977
|
+
* // "cloudStorageSink": {},
|
|
2978
|
+
* // "createTime": "my_createTime",
|
|
2979
|
+
* // "exportOptions": {},
|
|
2980
|
+
* // "id": "my_id",
|
|
2981
|
+
* // "matterId": "my_matterId",
|
|
2982
|
+
* // "name": "my_name",
|
|
2983
|
+
* // "parentExportId": "my_parentExportId",
|
|
2984
|
+
* // "query": {},
|
|
2985
|
+
* // "requester": {},
|
|
2986
|
+
* // "stats": {},
|
|
2987
|
+
* // "status": "my_status"
|
|
2988
|
+
* // }
|
|
2989
|
+
* },
|
|
2990
|
+
* });
|
|
2991
|
+
* console.log(res.data);
|
|
2992
|
+
*
|
|
2993
|
+
* // Example response
|
|
2994
|
+
* // {
|
|
2995
|
+
* // "cloudStorageSink": {},
|
|
2996
|
+
* // "createTime": "my_createTime",
|
|
2997
|
+
* // "exportOptions": {},
|
|
2998
|
+
* // "id": "my_id",
|
|
2999
|
+
* // "matterId": "my_matterId",
|
|
3000
|
+
* // "name": "my_name",
|
|
3001
|
+
* // "parentExportId": "my_parentExportId",
|
|
3002
|
+
* // "query": {},
|
|
3003
|
+
* // "requester": {},
|
|
3004
|
+
* // "stats": {},
|
|
3005
|
+
* // "status": "my_status"
|
|
3006
|
+
* // }
|
|
3007
|
+
* }
|
|
3008
|
+
*
|
|
3009
|
+
* main().catch(e => {
|
|
3010
|
+
* console.error(e);
|
|
3011
|
+
* throw e;
|
|
3012
|
+
* });
|
|
3013
|
+
*
|
|
3014
|
+
* ```
|
|
2296
3015
|
*
|
|
2297
3016
|
* @param params - Parameters for request
|
|
2298
3017
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2302,11 +3021,11 @@ export namespace vault_v1 {
|
|
|
2302
3021
|
create(
|
|
2303
3022
|
params: Params$Resource$Matters$Exports$Create,
|
|
2304
3023
|
options: StreamMethodOptions
|
|
2305
|
-
):
|
|
3024
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2306
3025
|
create(
|
|
2307
3026
|
params?: Params$Resource$Matters$Exports$Create,
|
|
2308
3027
|
options?: MethodOptions
|
|
2309
|
-
):
|
|
3028
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Export>>;
|
|
2310
3029
|
create(
|
|
2311
3030
|
params: Params$Resource$Matters$Exports$Create,
|
|
2312
3031
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -2335,7 +3054,10 @@ export namespace vault_v1 {
|
|
|
2335
3054
|
callback?:
|
|
2336
3055
|
| BodyResponseCallback<Schema$Export>
|
|
2337
3056
|
| BodyResponseCallback<Readable>
|
|
2338
|
-
):
|
|
3057
|
+
):
|
|
3058
|
+
| void
|
|
3059
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Export>>
|
|
3060
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2339
3061
|
let params = (paramsOrCallback ||
|
|
2340
3062
|
{}) as Params$Resource$Matters$Exports$Create;
|
|
2341
3063
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -2381,6 +3103,52 @@ export namespace vault_v1 {
|
|
|
2381
3103
|
|
|
2382
3104
|
/**
|
|
2383
3105
|
* Deletes an export.
|
|
3106
|
+
* @example
|
|
3107
|
+
* ```js
|
|
3108
|
+
* // Before running the sample:
|
|
3109
|
+
* // - Enable the API at:
|
|
3110
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
3111
|
+
* // - Login into gcloud by running:
|
|
3112
|
+
* // ```sh
|
|
3113
|
+
* // $ gcloud auth application-default login
|
|
3114
|
+
* // ```
|
|
3115
|
+
* // - Install the npm module by running:
|
|
3116
|
+
* // ```sh
|
|
3117
|
+
* // $ npm install googleapis
|
|
3118
|
+
* // ```
|
|
3119
|
+
*
|
|
3120
|
+
* const {google} = require('googleapis');
|
|
3121
|
+
* const vault = google.vault('v1');
|
|
3122
|
+
*
|
|
3123
|
+
* async function main() {
|
|
3124
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3125
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3126
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
3127
|
+
* });
|
|
3128
|
+
*
|
|
3129
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3130
|
+
* const authClient = await auth.getClient();
|
|
3131
|
+
* google.options({auth: authClient});
|
|
3132
|
+
*
|
|
3133
|
+
* // Do the magic
|
|
3134
|
+
* const res = await vault.matters.exports.delete({
|
|
3135
|
+
* // The export ID.
|
|
3136
|
+
* exportId: 'placeholder-value',
|
|
3137
|
+
* // The matter ID.
|
|
3138
|
+
* matterId: 'placeholder-value',
|
|
3139
|
+
* });
|
|
3140
|
+
* console.log(res.data);
|
|
3141
|
+
*
|
|
3142
|
+
* // Example response
|
|
3143
|
+
* // {}
|
|
3144
|
+
* }
|
|
3145
|
+
*
|
|
3146
|
+
* main().catch(e => {
|
|
3147
|
+
* console.error(e);
|
|
3148
|
+
* throw e;
|
|
3149
|
+
* });
|
|
3150
|
+
*
|
|
3151
|
+
* ```
|
|
2384
3152
|
*
|
|
2385
3153
|
* @param params - Parameters for request
|
|
2386
3154
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2390,11 +3158,11 @@ export namespace vault_v1 {
|
|
|
2390
3158
|
delete(
|
|
2391
3159
|
params: Params$Resource$Matters$Exports$Delete,
|
|
2392
3160
|
options: StreamMethodOptions
|
|
2393
|
-
):
|
|
3161
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2394
3162
|
delete(
|
|
2395
3163
|
params?: Params$Resource$Matters$Exports$Delete,
|
|
2396
3164
|
options?: MethodOptions
|
|
2397
|
-
):
|
|
3165
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
2398
3166
|
delete(
|
|
2399
3167
|
params: Params$Resource$Matters$Exports$Delete,
|
|
2400
3168
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -2423,7 +3191,10 @@ export namespace vault_v1 {
|
|
|
2423
3191
|
callback?:
|
|
2424
3192
|
| BodyResponseCallback<Schema$Empty>
|
|
2425
3193
|
| BodyResponseCallback<Readable>
|
|
2426
|
-
):
|
|
3194
|
+
):
|
|
3195
|
+
| void
|
|
3196
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
3197
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2427
3198
|
let params = (paramsOrCallback ||
|
|
2428
3199
|
{}) as Params$Resource$Matters$Exports$Delete;
|
|
2429
3200
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -2468,6 +3239,67 @@ export namespace vault_v1 {
|
|
|
2468
3239
|
|
|
2469
3240
|
/**
|
|
2470
3241
|
* Gets an export.
|
|
3242
|
+
* @example
|
|
3243
|
+
* ```js
|
|
3244
|
+
* // Before running the sample:
|
|
3245
|
+
* // - Enable the API at:
|
|
3246
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
3247
|
+
* // - Login into gcloud by running:
|
|
3248
|
+
* // ```sh
|
|
3249
|
+
* // $ gcloud auth application-default login
|
|
3250
|
+
* // ```
|
|
3251
|
+
* // - Install the npm module by running:
|
|
3252
|
+
* // ```sh
|
|
3253
|
+
* // $ npm install googleapis
|
|
3254
|
+
* // ```
|
|
3255
|
+
*
|
|
3256
|
+
* const {google} = require('googleapis');
|
|
3257
|
+
* const vault = google.vault('v1');
|
|
3258
|
+
*
|
|
3259
|
+
* async function main() {
|
|
3260
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3261
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3262
|
+
* scopes: [
|
|
3263
|
+
* 'https://www.googleapis.com/auth/ediscovery',
|
|
3264
|
+
* 'https://www.googleapis.com/auth/ediscovery.readonly',
|
|
3265
|
+
* ],
|
|
3266
|
+
* });
|
|
3267
|
+
*
|
|
3268
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3269
|
+
* const authClient = await auth.getClient();
|
|
3270
|
+
* google.options({auth: authClient});
|
|
3271
|
+
*
|
|
3272
|
+
* // Do the magic
|
|
3273
|
+
* const res = await vault.matters.exports.get({
|
|
3274
|
+
* // The export ID.
|
|
3275
|
+
* exportId: 'placeholder-value',
|
|
3276
|
+
* // The matter ID.
|
|
3277
|
+
* matterId: 'placeholder-value',
|
|
3278
|
+
* });
|
|
3279
|
+
* console.log(res.data);
|
|
3280
|
+
*
|
|
3281
|
+
* // Example response
|
|
3282
|
+
* // {
|
|
3283
|
+
* // "cloudStorageSink": {},
|
|
3284
|
+
* // "createTime": "my_createTime",
|
|
3285
|
+
* // "exportOptions": {},
|
|
3286
|
+
* // "id": "my_id",
|
|
3287
|
+
* // "matterId": "my_matterId",
|
|
3288
|
+
* // "name": "my_name",
|
|
3289
|
+
* // "parentExportId": "my_parentExportId",
|
|
3290
|
+
* // "query": {},
|
|
3291
|
+
* // "requester": {},
|
|
3292
|
+
* // "stats": {},
|
|
3293
|
+
* // "status": "my_status"
|
|
3294
|
+
* // }
|
|
3295
|
+
* }
|
|
3296
|
+
*
|
|
3297
|
+
* main().catch(e => {
|
|
3298
|
+
* console.error(e);
|
|
3299
|
+
* throw e;
|
|
3300
|
+
* });
|
|
3301
|
+
*
|
|
3302
|
+
* ```
|
|
2471
3303
|
*
|
|
2472
3304
|
* @param params - Parameters for request
|
|
2473
3305
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2477,11 +3309,11 @@ export namespace vault_v1 {
|
|
|
2477
3309
|
get(
|
|
2478
3310
|
params: Params$Resource$Matters$Exports$Get,
|
|
2479
3311
|
options: StreamMethodOptions
|
|
2480
|
-
):
|
|
3312
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2481
3313
|
get(
|
|
2482
3314
|
params?: Params$Resource$Matters$Exports$Get,
|
|
2483
3315
|
options?: MethodOptions
|
|
2484
|
-
):
|
|
3316
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Export>>;
|
|
2485
3317
|
get(
|
|
2486
3318
|
params: Params$Resource$Matters$Exports$Get,
|
|
2487
3319
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -2510,7 +3342,10 @@ export namespace vault_v1 {
|
|
|
2510
3342
|
callback?:
|
|
2511
3343
|
| BodyResponseCallback<Schema$Export>
|
|
2512
3344
|
| BodyResponseCallback<Readable>
|
|
2513
|
-
):
|
|
3345
|
+
):
|
|
3346
|
+
| void
|
|
3347
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Export>>
|
|
3348
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2514
3349
|
let params = (paramsOrCallback ||
|
|
2515
3350
|
{}) as Params$Resource$Matters$Exports$Get;
|
|
2516
3351
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -2555,6 +3390,60 @@ export namespace vault_v1 {
|
|
|
2555
3390
|
|
|
2556
3391
|
/**
|
|
2557
3392
|
* Lists details about the exports in the specified matter.
|
|
3393
|
+
* @example
|
|
3394
|
+
* ```js
|
|
3395
|
+
* // Before running the sample:
|
|
3396
|
+
* // - Enable the API at:
|
|
3397
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
3398
|
+
* // - Login into gcloud by running:
|
|
3399
|
+
* // ```sh
|
|
3400
|
+
* // $ gcloud auth application-default login
|
|
3401
|
+
* // ```
|
|
3402
|
+
* // - Install the npm module by running:
|
|
3403
|
+
* // ```sh
|
|
3404
|
+
* // $ npm install googleapis
|
|
3405
|
+
* // ```
|
|
3406
|
+
*
|
|
3407
|
+
* const {google} = require('googleapis');
|
|
3408
|
+
* const vault = google.vault('v1');
|
|
3409
|
+
*
|
|
3410
|
+
* async function main() {
|
|
3411
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3412
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3413
|
+
* scopes: [
|
|
3414
|
+
* 'https://www.googleapis.com/auth/ediscovery',
|
|
3415
|
+
* 'https://www.googleapis.com/auth/ediscovery.readonly',
|
|
3416
|
+
* ],
|
|
3417
|
+
* });
|
|
3418
|
+
*
|
|
3419
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3420
|
+
* const authClient = await auth.getClient();
|
|
3421
|
+
* google.options({auth: authClient});
|
|
3422
|
+
*
|
|
3423
|
+
* // Do the magic
|
|
3424
|
+
* const res = await vault.matters.exports.list({
|
|
3425
|
+
* // The matter ID.
|
|
3426
|
+
* matterId: 'placeholder-value',
|
|
3427
|
+
* // The number of exports to return in the response.
|
|
3428
|
+
* pageSize: 'placeholder-value',
|
|
3429
|
+
* // The pagination token as returned in the response.
|
|
3430
|
+
* pageToken: 'placeholder-value',
|
|
3431
|
+
* });
|
|
3432
|
+
* console.log(res.data);
|
|
3433
|
+
*
|
|
3434
|
+
* // Example response
|
|
3435
|
+
* // {
|
|
3436
|
+
* // "exports": [],
|
|
3437
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
3438
|
+
* // }
|
|
3439
|
+
* }
|
|
3440
|
+
*
|
|
3441
|
+
* main().catch(e => {
|
|
3442
|
+
* console.error(e);
|
|
3443
|
+
* throw e;
|
|
3444
|
+
* });
|
|
3445
|
+
*
|
|
3446
|
+
* ```
|
|
2558
3447
|
*
|
|
2559
3448
|
* @param params - Parameters for request
|
|
2560
3449
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2564,11 +3453,11 @@ export namespace vault_v1 {
|
|
|
2564
3453
|
list(
|
|
2565
3454
|
params: Params$Resource$Matters$Exports$List,
|
|
2566
3455
|
options: StreamMethodOptions
|
|
2567
|
-
):
|
|
3456
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2568
3457
|
list(
|
|
2569
3458
|
params?: Params$Resource$Matters$Exports$List,
|
|
2570
3459
|
options?: MethodOptions
|
|
2571
|
-
):
|
|
3460
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListExportsResponse>>;
|
|
2572
3461
|
list(
|
|
2573
3462
|
params: Params$Resource$Matters$Exports$List,
|
|
2574
3463
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -2599,8 +3488,8 @@ export namespace vault_v1 {
|
|
|
2599
3488
|
| BodyResponseCallback<Readable>
|
|
2600
3489
|
):
|
|
2601
3490
|
| void
|
|
2602
|
-
|
|
|
2603
|
-
|
|
|
3491
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListExportsResponse>>
|
|
3492
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2604
3493
|
let params = (paramsOrCallback ||
|
|
2605
3494
|
{}) as Params$Resource$Matters$Exports$List;
|
|
2606
3495
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -2705,6 +3594,63 @@ export namespace vault_v1 {
|
|
|
2705
3594
|
|
|
2706
3595
|
/**
|
|
2707
3596
|
* Adds accounts to a hold. Returns a list of accounts that have been successfully added. Accounts can be added only to an existing account-based hold.
|
|
3597
|
+
* @example
|
|
3598
|
+
* ```js
|
|
3599
|
+
* // Before running the sample:
|
|
3600
|
+
* // - Enable the API at:
|
|
3601
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
3602
|
+
* // - Login into gcloud by running:
|
|
3603
|
+
* // ```sh
|
|
3604
|
+
* // $ gcloud auth application-default login
|
|
3605
|
+
* // ```
|
|
3606
|
+
* // - Install the npm module by running:
|
|
3607
|
+
* // ```sh
|
|
3608
|
+
* // $ npm install googleapis
|
|
3609
|
+
* // ```
|
|
3610
|
+
*
|
|
3611
|
+
* const {google} = require('googleapis');
|
|
3612
|
+
* const vault = google.vault('v1');
|
|
3613
|
+
*
|
|
3614
|
+
* async function main() {
|
|
3615
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3616
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3617
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
3618
|
+
* });
|
|
3619
|
+
*
|
|
3620
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3621
|
+
* const authClient = await auth.getClient();
|
|
3622
|
+
* google.options({auth: authClient});
|
|
3623
|
+
*
|
|
3624
|
+
* // Do the magic
|
|
3625
|
+
* const res = await vault.matters.holds.addHeldAccounts({
|
|
3626
|
+
* // The hold ID.
|
|
3627
|
+
* holdId: 'placeholder-value',
|
|
3628
|
+
* // The matter ID.
|
|
3629
|
+
* matterId: 'placeholder-value',
|
|
3630
|
+
*
|
|
3631
|
+
* // Request body metadata
|
|
3632
|
+
* requestBody: {
|
|
3633
|
+
* // request body parameters
|
|
3634
|
+
* // {
|
|
3635
|
+
* // "accountIds": [],
|
|
3636
|
+
* // "emails": []
|
|
3637
|
+
* // }
|
|
3638
|
+
* },
|
|
3639
|
+
* });
|
|
3640
|
+
* console.log(res.data);
|
|
3641
|
+
*
|
|
3642
|
+
* // Example response
|
|
3643
|
+
* // {
|
|
3644
|
+
* // "responses": []
|
|
3645
|
+
* // }
|
|
3646
|
+
* }
|
|
3647
|
+
*
|
|
3648
|
+
* main().catch(e => {
|
|
3649
|
+
* console.error(e);
|
|
3650
|
+
* throw e;
|
|
3651
|
+
* });
|
|
3652
|
+
*
|
|
3653
|
+
* ```
|
|
2708
3654
|
*
|
|
2709
3655
|
* @param params - Parameters for request
|
|
2710
3656
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2714,11 +3660,11 @@ export namespace vault_v1 {
|
|
|
2714
3660
|
addHeldAccounts(
|
|
2715
3661
|
params: Params$Resource$Matters$Holds$Addheldaccounts,
|
|
2716
3662
|
options: StreamMethodOptions
|
|
2717
|
-
):
|
|
3663
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2718
3664
|
addHeldAccounts(
|
|
2719
3665
|
params?: Params$Resource$Matters$Holds$Addheldaccounts,
|
|
2720
3666
|
options?: MethodOptions
|
|
2721
|
-
):
|
|
3667
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$AddHeldAccountsResponse>>;
|
|
2722
3668
|
addHeldAccounts(
|
|
2723
3669
|
params: Params$Resource$Matters$Holds$Addheldaccounts,
|
|
2724
3670
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -2753,8 +3699,8 @@ export namespace vault_v1 {
|
|
|
2753
3699
|
| BodyResponseCallback<Readable>
|
|
2754
3700
|
):
|
|
2755
3701
|
| void
|
|
2756
|
-
|
|
|
2757
|
-
|
|
|
3702
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$AddHeldAccountsResponse>>
|
|
3703
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2758
3704
|
let params = (paramsOrCallback ||
|
|
2759
3705
|
{}) as Params$Resource$Matters$Holds$Addheldaccounts;
|
|
2760
3706
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -2799,6 +3745,72 @@ export namespace vault_v1 {
|
|
|
2799
3745
|
|
|
2800
3746
|
/**
|
|
2801
3747
|
* Creates a hold in the specified matter.
|
|
3748
|
+
* @example
|
|
3749
|
+
* ```js
|
|
3750
|
+
* // Before running the sample:
|
|
3751
|
+
* // - Enable the API at:
|
|
3752
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
3753
|
+
* // - Login into gcloud by running:
|
|
3754
|
+
* // ```sh
|
|
3755
|
+
* // $ gcloud auth application-default login
|
|
3756
|
+
* // ```
|
|
3757
|
+
* // - Install the npm module by running:
|
|
3758
|
+
* // ```sh
|
|
3759
|
+
* // $ npm install googleapis
|
|
3760
|
+
* // ```
|
|
3761
|
+
*
|
|
3762
|
+
* const {google} = require('googleapis');
|
|
3763
|
+
* const vault = google.vault('v1');
|
|
3764
|
+
*
|
|
3765
|
+
* async function main() {
|
|
3766
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3767
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3768
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
3769
|
+
* });
|
|
3770
|
+
*
|
|
3771
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3772
|
+
* const authClient = await auth.getClient();
|
|
3773
|
+
* google.options({auth: authClient});
|
|
3774
|
+
*
|
|
3775
|
+
* // Do the magic
|
|
3776
|
+
* const res = await vault.matters.holds.create({
|
|
3777
|
+
* // The matter ID.
|
|
3778
|
+
* matterId: 'placeholder-value',
|
|
3779
|
+
*
|
|
3780
|
+
* // Request body metadata
|
|
3781
|
+
* requestBody: {
|
|
3782
|
+
* // request body parameters
|
|
3783
|
+
* // {
|
|
3784
|
+
* // "accounts": [],
|
|
3785
|
+
* // "corpus": "my_corpus",
|
|
3786
|
+
* // "holdId": "my_holdId",
|
|
3787
|
+
* // "name": "my_name",
|
|
3788
|
+
* // "orgUnit": {},
|
|
3789
|
+
* // "query": {},
|
|
3790
|
+
* // "updateTime": "my_updateTime"
|
|
3791
|
+
* // }
|
|
3792
|
+
* },
|
|
3793
|
+
* });
|
|
3794
|
+
* console.log(res.data);
|
|
3795
|
+
*
|
|
3796
|
+
* // Example response
|
|
3797
|
+
* // {
|
|
3798
|
+
* // "accounts": [],
|
|
3799
|
+
* // "corpus": "my_corpus",
|
|
3800
|
+
* // "holdId": "my_holdId",
|
|
3801
|
+
* // "name": "my_name",
|
|
3802
|
+
* // "orgUnit": {},
|
|
3803
|
+
* // "query": {},
|
|
3804
|
+
* // "updateTime": "my_updateTime"
|
|
3805
|
+
* // }
|
|
3806
|
+
* }
|
|
3807
|
+
*
|
|
3808
|
+
* main().catch(e => {
|
|
3809
|
+
* console.error(e);
|
|
3810
|
+
* throw e;
|
|
3811
|
+
* });
|
|
3812
|
+
*
|
|
3813
|
+
* ```
|
|
2802
3814
|
*
|
|
2803
3815
|
* @param params - Parameters for request
|
|
2804
3816
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2808,11 +3820,11 @@ export namespace vault_v1 {
|
|
|
2808
3820
|
create(
|
|
2809
3821
|
params: Params$Resource$Matters$Holds$Create,
|
|
2810
3822
|
options: StreamMethodOptions
|
|
2811
|
-
):
|
|
3823
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2812
3824
|
create(
|
|
2813
3825
|
params?: Params$Resource$Matters$Holds$Create,
|
|
2814
3826
|
options?: MethodOptions
|
|
2815
|
-
):
|
|
3827
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Hold>>;
|
|
2816
3828
|
create(
|
|
2817
3829
|
params: Params$Resource$Matters$Holds$Create,
|
|
2818
3830
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -2841,7 +3853,10 @@ export namespace vault_v1 {
|
|
|
2841
3853
|
callback?:
|
|
2842
3854
|
| BodyResponseCallback<Schema$Hold>
|
|
2843
3855
|
| BodyResponseCallback<Readable>
|
|
2844
|
-
):
|
|
3856
|
+
):
|
|
3857
|
+
| void
|
|
3858
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Hold>>
|
|
3859
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2845
3860
|
let params = (paramsOrCallback ||
|
|
2846
3861
|
{}) as Params$Resource$Matters$Holds$Create;
|
|
2847
3862
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -2887,6 +3902,52 @@ export namespace vault_v1 {
|
|
|
2887
3902
|
|
|
2888
3903
|
/**
|
|
2889
3904
|
* Removes the specified hold and releases the accounts or organizational unit covered by the hold. If the data is not preserved by another hold or retention rule, it might be purged.
|
|
3905
|
+
* @example
|
|
3906
|
+
* ```js
|
|
3907
|
+
* // Before running the sample:
|
|
3908
|
+
* // - Enable the API at:
|
|
3909
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
3910
|
+
* // - Login into gcloud by running:
|
|
3911
|
+
* // ```sh
|
|
3912
|
+
* // $ gcloud auth application-default login
|
|
3913
|
+
* // ```
|
|
3914
|
+
* // - Install the npm module by running:
|
|
3915
|
+
* // ```sh
|
|
3916
|
+
* // $ npm install googleapis
|
|
3917
|
+
* // ```
|
|
3918
|
+
*
|
|
3919
|
+
* const {google} = require('googleapis');
|
|
3920
|
+
* const vault = google.vault('v1');
|
|
3921
|
+
*
|
|
3922
|
+
* async function main() {
|
|
3923
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3924
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3925
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
3926
|
+
* });
|
|
3927
|
+
*
|
|
3928
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3929
|
+
* const authClient = await auth.getClient();
|
|
3930
|
+
* google.options({auth: authClient});
|
|
3931
|
+
*
|
|
3932
|
+
* // Do the magic
|
|
3933
|
+
* const res = await vault.matters.holds.delete({
|
|
3934
|
+
* // The hold ID.
|
|
3935
|
+
* holdId: 'placeholder-value',
|
|
3936
|
+
* // The matter ID.
|
|
3937
|
+
* matterId: 'placeholder-value',
|
|
3938
|
+
* });
|
|
3939
|
+
* console.log(res.data);
|
|
3940
|
+
*
|
|
3941
|
+
* // Example response
|
|
3942
|
+
* // {}
|
|
3943
|
+
* }
|
|
3944
|
+
*
|
|
3945
|
+
* main().catch(e => {
|
|
3946
|
+
* console.error(e);
|
|
3947
|
+
* throw e;
|
|
3948
|
+
* });
|
|
3949
|
+
*
|
|
3950
|
+
* ```
|
|
2890
3951
|
*
|
|
2891
3952
|
* @param params - Parameters for request
|
|
2892
3953
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2896,11 +3957,11 @@ export namespace vault_v1 {
|
|
|
2896
3957
|
delete(
|
|
2897
3958
|
params: Params$Resource$Matters$Holds$Delete,
|
|
2898
3959
|
options: StreamMethodOptions
|
|
2899
|
-
):
|
|
3960
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2900
3961
|
delete(
|
|
2901
3962
|
params?: Params$Resource$Matters$Holds$Delete,
|
|
2902
3963
|
options?: MethodOptions
|
|
2903
|
-
):
|
|
3964
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
2904
3965
|
delete(
|
|
2905
3966
|
params: Params$Resource$Matters$Holds$Delete,
|
|
2906
3967
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -2929,7 +3990,10 @@ export namespace vault_v1 {
|
|
|
2929
3990
|
callback?:
|
|
2930
3991
|
| BodyResponseCallback<Schema$Empty>
|
|
2931
3992
|
| BodyResponseCallback<Readable>
|
|
2932
|
-
):
|
|
3993
|
+
):
|
|
3994
|
+
| void
|
|
3995
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
3996
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2933
3997
|
let params = (paramsOrCallback ||
|
|
2934
3998
|
{}) as Params$Resource$Matters$Holds$Delete;
|
|
2935
3999
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -2975,6 +4039,65 @@ export namespace vault_v1 {
|
|
|
2975
4039
|
|
|
2976
4040
|
/**
|
|
2977
4041
|
* Gets the specified hold.
|
|
4042
|
+
* @example
|
|
4043
|
+
* ```js
|
|
4044
|
+
* // Before running the sample:
|
|
4045
|
+
* // - Enable the API at:
|
|
4046
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
4047
|
+
* // - Login into gcloud by running:
|
|
4048
|
+
* // ```sh
|
|
4049
|
+
* // $ gcloud auth application-default login
|
|
4050
|
+
* // ```
|
|
4051
|
+
* // - Install the npm module by running:
|
|
4052
|
+
* // ```sh
|
|
4053
|
+
* // $ npm install googleapis
|
|
4054
|
+
* // ```
|
|
4055
|
+
*
|
|
4056
|
+
* const {google} = require('googleapis');
|
|
4057
|
+
* const vault = google.vault('v1');
|
|
4058
|
+
*
|
|
4059
|
+
* async function main() {
|
|
4060
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4061
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4062
|
+
* scopes: [
|
|
4063
|
+
* 'https://www.googleapis.com/auth/ediscovery',
|
|
4064
|
+
* 'https://www.googleapis.com/auth/ediscovery.readonly',
|
|
4065
|
+
* ],
|
|
4066
|
+
* });
|
|
4067
|
+
*
|
|
4068
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4069
|
+
* const authClient = await auth.getClient();
|
|
4070
|
+
* google.options({auth: authClient});
|
|
4071
|
+
*
|
|
4072
|
+
* // Do the magic
|
|
4073
|
+
* const res = await vault.matters.holds.get({
|
|
4074
|
+
* // The hold ID.
|
|
4075
|
+
* holdId: 'placeholder-value',
|
|
4076
|
+
* // The matter ID.
|
|
4077
|
+
* matterId: 'placeholder-value',
|
|
4078
|
+
* // The amount of detail to return for a hold.
|
|
4079
|
+
* view: 'placeholder-value',
|
|
4080
|
+
* });
|
|
4081
|
+
* console.log(res.data);
|
|
4082
|
+
*
|
|
4083
|
+
* // Example response
|
|
4084
|
+
* // {
|
|
4085
|
+
* // "accounts": [],
|
|
4086
|
+
* // "corpus": "my_corpus",
|
|
4087
|
+
* // "holdId": "my_holdId",
|
|
4088
|
+
* // "name": "my_name",
|
|
4089
|
+
* // "orgUnit": {},
|
|
4090
|
+
* // "query": {},
|
|
4091
|
+
* // "updateTime": "my_updateTime"
|
|
4092
|
+
* // }
|
|
4093
|
+
* }
|
|
4094
|
+
*
|
|
4095
|
+
* main().catch(e => {
|
|
4096
|
+
* console.error(e);
|
|
4097
|
+
* throw e;
|
|
4098
|
+
* });
|
|
4099
|
+
*
|
|
4100
|
+
* ```
|
|
2978
4101
|
*
|
|
2979
4102
|
* @param params - Parameters for request
|
|
2980
4103
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2984,11 +4107,11 @@ export namespace vault_v1 {
|
|
|
2984
4107
|
get(
|
|
2985
4108
|
params: Params$Resource$Matters$Holds$Get,
|
|
2986
4109
|
options: StreamMethodOptions
|
|
2987
|
-
):
|
|
4110
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2988
4111
|
get(
|
|
2989
4112
|
params?: Params$Resource$Matters$Holds$Get,
|
|
2990
4113
|
options?: MethodOptions
|
|
2991
|
-
):
|
|
4114
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Hold>>;
|
|
2992
4115
|
get(
|
|
2993
4116
|
params: Params$Resource$Matters$Holds$Get,
|
|
2994
4117
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -3017,7 +4140,10 @@ export namespace vault_v1 {
|
|
|
3017
4140
|
callback?:
|
|
3018
4141
|
| BodyResponseCallback<Schema$Hold>
|
|
3019
4142
|
| BodyResponseCallback<Readable>
|
|
3020
|
-
):
|
|
4143
|
+
):
|
|
4144
|
+
| void
|
|
4145
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Hold>>
|
|
4146
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3021
4147
|
let params = (paramsOrCallback ||
|
|
3022
4148
|
{}) as Params$Resource$Matters$Holds$Get;
|
|
3023
4149
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -3063,6 +4189,62 @@ export namespace vault_v1 {
|
|
|
3063
4189
|
|
|
3064
4190
|
/**
|
|
3065
4191
|
* Lists the holds in a matter.
|
|
4192
|
+
* @example
|
|
4193
|
+
* ```js
|
|
4194
|
+
* // Before running the sample:
|
|
4195
|
+
* // - Enable the API at:
|
|
4196
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
4197
|
+
* // - Login into gcloud by running:
|
|
4198
|
+
* // ```sh
|
|
4199
|
+
* // $ gcloud auth application-default login
|
|
4200
|
+
* // ```
|
|
4201
|
+
* // - Install the npm module by running:
|
|
4202
|
+
* // ```sh
|
|
4203
|
+
* // $ npm install googleapis
|
|
4204
|
+
* // ```
|
|
4205
|
+
*
|
|
4206
|
+
* const {google} = require('googleapis');
|
|
4207
|
+
* const vault = google.vault('v1');
|
|
4208
|
+
*
|
|
4209
|
+
* async function main() {
|
|
4210
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4211
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4212
|
+
* scopes: [
|
|
4213
|
+
* 'https://www.googleapis.com/auth/ediscovery',
|
|
4214
|
+
* 'https://www.googleapis.com/auth/ediscovery.readonly',
|
|
4215
|
+
* ],
|
|
4216
|
+
* });
|
|
4217
|
+
*
|
|
4218
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4219
|
+
* const authClient = await auth.getClient();
|
|
4220
|
+
* google.options({auth: authClient});
|
|
4221
|
+
*
|
|
4222
|
+
* // Do the magic
|
|
4223
|
+
* const res = await vault.matters.holds.list({
|
|
4224
|
+
* // The matter ID.
|
|
4225
|
+
* matterId: 'placeholder-value',
|
|
4226
|
+
* // The number of holds to return in the response, between 0 and 100 inclusive. Leaving this empty, or as 0, is the same as **page_size** = 100.
|
|
4227
|
+
* pageSize: 'placeholder-value',
|
|
4228
|
+
* // The pagination token as returned in the response. An empty token means start from the beginning.
|
|
4229
|
+
* pageToken: 'placeholder-value',
|
|
4230
|
+
* // The amount of detail to return for a hold.
|
|
4231
|
+
* view: 'placeholder-value',
|
|
4232
|
+
* });
|
|
4233
|
+
* console.log(res.data);
|
|
4234
|
+
*
|
|
4235
|
+
* // Example response
|
|
4236
|
+
* // {
|
|
4237
|
+
* // "holds": [],
|
|
4238
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
4239
|
+
* // }
|
|
4240
|
+
* }
|
|
4241
|
+
*
|
|
4242
|
+
* main().catch(e => {
|
|
4243
|
+
* console.error(e);
|
|
4244
|
+
* throw e;
|
|
4245
|
+
* });
|
|
4246
|
+
*
|
|
4247
|
+
* ```
|
|
3066
4248
|
*
|
|
3067
4249
|
* @param params - Parameters for request
|
|
3068
4250
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3072,11 +4254,11 @@ export namespace vault_v1 {
|
|
|
3072
4254
|
list(
|
|
3073
4255
|
params: Params$Resource$Matters$Holds$List,
|
|
3074
4256
|
options: StreamMethodOptions
|
|
3075
|
-
):
|
|
4257
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3076
4258
|
list(
|
|
3077
4259
|
params?: Params$Resource$Matters$Holds$List,
|
|
3078
4260
|
options?: MethodOptions
|
|
3079
|
-
):
|
|
4261
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListHoldsResponse>>;
|
|
3080
4262
|
list(
|
|
3081
4263
|
params: Params$Resource$Matters$Holds$List,
|
|
3082
4264
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -3107,8 +4289,8 @@ export namespace vault_v1 {
|
|
|
3107
4289
|
| BodyResponseCallback<Readable>
|
|
3108
4290
|
):
|
|
3109
4291
|
| void
|
|
3110
|
-
|
|
|
3111
|
-
|
|
|
4292
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListHoldsResponse>>
|
|
4293
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3112
4294
|
let params = (paramsOrCallback ||
|
|
3113
4295
|
{}) as Params$Resource$Matters$Holds$List;
|
|
3114
4296
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -3154,6 +4336,62 @@ export namespace vault_v1 {
|
|
|
3154
4336
|
|
|
3155
4337
|
/**
|
|
3156
4338
|
* Removes the specified accounts from a hold. Returns a list of statuses in the same order as the request.
|
|
4339
|
+
* @example
|
|
4340
|
+
* ```js
|
|
4341
|
+
* // Before running the sample:
|
|
4342
|
+
* // - Enable the API at:
|
|
4343
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
4344
|
+
* // - Login into gcloud by running:
|
|
4345
|
+
* // ```sh
|
|
4346
|
+
* // $ gcloud auth application-default login
|
|
4347
|
+
* // ```
|
|
4348
|
+
* // - Install the npm module by running:
|
|
4349
|
+
* // ```sh
|
|
4350
|
+
* // $ npm install googleapis
|
|
4351
|
+
* // ```
|
|
4352
|
+
*
|
|
4353
|
+
* const {google} = require('googleapis');
|
|
4354
|
+
* const vault = google.vault('v1');
|
|
4355
|
+
*
|
|
4356
|
+
* async function main() {
|
|
4357
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4358
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4359
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
4360
|
+
* });
|
|
4361
|
+
*
|
|
4362
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4363
|
+
* const authClient = await auth.getClient();
|
|
4364
|
+
* google.options({auth: authClient});
|
|
4365
|
+
*
|
|
4366
|
+
* // Do the magic
|
|
4367
|
+
* const res = await vault.matters.holds.removeHeldAccounts({
|
|
4368
|
+
* // The hold ID.
|
|
4369
|
+
* holdId: 'placeholder-value',
|
|
4370
|
+
* // The matter ID.
|
|
4371
|
+
* matterId: 'placeholder-value',
|
|
4372
|
+
*
|
|
4373
|
+
* // Request body metadata
|
|
4374
|
+
* requestBody: {
|
|
4375
|
+
* // request body parameters
|
|
4376
|
+
* // {
|
|
4377
|
+
* // "accountIds": []
|
|
4378
|
+
* // }
|
|
4379
|
+
* },
|
|
4380
|
+
* });
|
|
4381
|
+
* console.log(res.data);
|
|
4382
|
+
*
|
|
4383
|
+
* // Example response
|
|
4384
|
+
* // {
|
|
4385
|
+
* // "statuses": []
|
|
4386
|
+
* // }
|
|
4387
|
+
* }
|
|
4388
|
+
*
|
|
4389
|
+
* main().catch(e => {
|
|
4390
|
+
* console.error(e);
|
|
4391
|
+
* throw e;
|
|
4392
|
+
* });
|
|
4393
|
+
*
|
|
4394
|
+
* ```
|
|
3157
4395
|
*
|
|
3158
4396
|
* @param params - Parameters for request
|
|
3159
4397
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3163,11 +4401,11 @@ export namespace vault_v1 {
|
|
|
3163
4401
|
removeHeldAccounts(
|
|
3164
4402
|
params: Params$Resource$Matters$Holds$Removeheldaccounts,
|
|
3165
4403
|
options: StreamMethodOptions
|
|
3166
|
-
):
|
|
4404
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3167
4405
|
removeHeldAccounts(
|
|
3168
4406
|
params?: Params$Resource$Matters$Holds$Removeheldaccounts,
|
|
3169
4407
|
options?: MethodOptions
|
|
3170
|
-
):
|
|
4408
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$RemoveHeldAccountsResponse>>;
|
|
3171
4409
|
removeHeldAccounts(
|
|
3172
4410
|
params: Params$Resource$Matters$Holds$Removeheldaccounts,
|
|
3173
4411
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -3202,8 +4440,8 @@ export namespace vault_v1 {
|
|
|
3202
4440
|
| BodyResponseCallback<Readable>
|
|
3203
4441
|
):
|
|
3204
4442
|
| void
|
|
3205
|
-
|
|
|
3206
|
-
|
|
|
4443
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$RemoveHeldAccountsResponse>>
|
|
4444
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3207
4445
|
let params = (paramsOrCallback ||
|
|
3208
4446
|
{}) as Params$Resource$Matters$Holds$Removeheldaccounts;
|
|
3209
4447
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -3249,6 +4487,74 @@ export namespace vault_v1 {
|
|
|
3249
4487
|
|
|
3250
4488
|
/**
|
|
3251
4489
|
* Updates the scope (organizational unit or accounts) and query parameters of a hold. You cannot add accounts to a hold that covers an organizational unit, nor can you add organizational units to a hold that covers individual accounts. If you try, the unsupported values are ignored.
|
|
4490
|
+
* @example
|
|
4491
|
+
* ```js
|
|
4492
|
+
* // Before running the sample:
|
|
4493
|
+
* // - Enable the API at:
|
|
4494
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
4495
|
+
* // - Login into gcloud by running:
|
|
4496
|
+
* // ```sh
|
|
4497
|
+
* // $ gcloud auth application-default login
|
|
4498
|
+
* // ```
|
|
4499
|
+
* // - Install the npm module by running:
|
|
4500
|
+
* // ```sh
|
|
4501
|
+
* // $ npm install googleapis
|
|
4502
|
+
* // ```
|
|
4503
|
+
*
|
|
4504
|
+
* const {google} = require('googleapis');
|
|
4505
|
+
* const vault = google.vault('v1');
|
|
4506
|
+
*
|
|
4507
|
+
* async function main() {
|
|
4508
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4509
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4510
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
4511
|
+
* });
|
|
4512
|
+
*
|
|
4513
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4514
|
+
* const authClient = await auth.getClient();
|
|
4515
|
+
* google.options({auth: authClient});
|
|
4516
|
+
*
|
|
4517
|
+
* // Do the magic
|
|
4518
|
+
* const res = await vault.matters.holds.update({
|
|
4519
|
+
* // The ID of the hold.
|
|
4520
|
+
* holdId: 'placeholder-value',
|
|
4521
|
+
* // The matter ID.
|
|
4522
|
+
* matterId: 'placeholder-value',
|
|
4523
|
+
*
|
|
4524
|
+
* // Request body metadata
|
|
4525
|
+
* requestBody: {
|
|
4526
|
+
* // request body parameters
|
|
4527
|
+
* // {
|
|
4528
|
+
* // "accounts": [],
|
|
4529
|
+
* // "corpus": "my_corpus",
|
|
4530
|
+
* // "holdId": "my_holdId",
|
|
4531
|
+
* // "name": "my_name",
|
|
4532
|
+
* // "orgUnit": {},
|
|
4533
|
+
* // "query": {},
|
|
4534
|
+
* // "updateTime": "my_updateTime"
|
|
4535
|
+
* // }
|
|
4536
|
+
* },
|
|
4537
|
+
* });
|
|
4538
|
+
* console.log(res.data);
|
|
4539
|
+
*
|
|
4540
|
+
* // Example response
|
|
4541
|
+
* // {
|
|
4542
|
+
* // "accounts": [],
|
|
4543
|
+
* // "corpus": "my_corpus",
|
|
4544
|
+
* // "holdId": "my_holdId",
|
|
4545
|
+
* // "name": "my_name",
|
|
4546
|
+
* // "orgUnit": {},
|
|
4547
|
+
* // "query": {},
|
|
4548
|
+
* // "updateTime": "my_updateTime"
|
|
4549
|
+
* // }
|
|
4550
|
+
* }
|
|
4551
|
+
*
|
|
4552
|
+
* main().catch(e => {
|
|
4553
|
+
* console.error(e);
|
|
4554
|
+
* throw e;
|
|
4555
|
+
* });
|
|
4556
|
+
*
|
|
4557
|
+
* ```
|
|
3252
4558
|
*
|
|
3253
4559
|
* @param params - Parameters for request
|
|
3254
4560
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3258,11 +4564,11 @@ export namespace vault_v1 {
|
|
|
3258
4564
|
update(
|
|
3259
4565
|
params: Params$Resource$Matters$Holds$Update,
|
|
3260
4566
|
options: StreamMethodOptions
|
|
3261
|
-
):
|
|
4567
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3262
4568
|
update(
|
|
3263
4569
|
params?: Params$Resource$Matters$Holds$Update,
|
|
3264
4570
|
options?: MethodOptions
|
|
3265
|
-
):
|
|
4571
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Hold>>;
|
|
3266
4572
|
update(
|
|
3267
4573
|
params: Params$Resource$Matters$Holds$Update,
|
|
3268
4574
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -3291,7 +4597,10 @@ export namespace vault_v1 {
|
|
|
3291
4597
|
callback?:
|
|
3292
4598
|
| BodyResponseCallback<Schema$Hold>
|
|
3293
4599
|
| BodyResponseCallback<Readable>
|
|
3294
|
-
):
|
|
4600
|
+
):
|
|
4601
|
+
| void
|
|
4602
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Hold>>
|
|
4603
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3295
4604
|
let params = (paramsOrCallback ||
|
|
3296
4605
|
{}) as Params$Resource$Matters$Holds$Update;
|
|
3297
4606
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -3450,6 +4759,70 @@ export namespace vault_v1 {
|
|
|
3450
4759
|
|
|
3451
4760
|
/**
|
|
3452
4761
|
* Adds an account to a hold. Accounts can be added only to a hold that does not have an organizational unit set. If you try to add an account to an organizational unit-based hold, an error is returned.
|
|
4762
|
+
* @example
|
|
4763
|
+
* ```js
|
|
4764
|
+
* // Before running the sample:
|
|
4765
|
+
* // - Enable the API at:
|
|
4766
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
4767
|
+
* // - Login into gcloud by running:
|
|
4768
|
+
* // ```sh
|
|
4769
|
+
* // $ gcloud auth application-default login
|
|
4770
|
+
* // ```
|
|
4771
|
+
* // - Install the npm module by running:
|
|
4772
|
+
* // ```sh
|
|
4773
|
+
* // $ npm install googleapis
|
|
4774
|
+
* // ```
|
|
4775
|
+
*
|
|
4776
|
+
* const {google} = require('googleapis');
|
|
4777
|
+
* const vault = google.vault('v1');
|
|
4778
|
+
*
|
|
4779
|
+
* async function main() {
|
|
4780
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4781
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4782
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
4783
|
+
* });
|
|
4784
|
+
*
|
|
4785
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4786
|
+
* const authClient = await auth.getClient();
|
|
4787
|
+
* google.options({auth: authClient});
|
|
4788
|
+
*
|
|
4789
|
+
* // Do the magic
|
|
4790
|
+
* const res = await vault.matters.holds.accounts.create({
|
|
4791
|
+
* // The hold ID.
|
|
4792
|
+
* holdId: 'placeholder-value',
|
|
4793
|
+
* // The matter ID.
|
|
4794
|
+
* matterId: 'placeholder-value',
|
|
4795
|
+
*
|
|
4796
|
+
* // Request body metadata
|
|
4797
|
+
* requestBody: {
|
|
4798
|
+
* // request body parameters
|
|
4799
|
+
* // {
|
|
4800
|
+
* // "accountId": "my_accountId",
|
|
4801
|
+
* // "email": "my_email",
|
|
4802
|
+
* // "firstName": "my_firstName",
|
|
4803
|
+
* // "holdTime": "my_holdTime",
|
|
4804
|
+
* // "lastName": "my_lastName"
|
|
4805
|
+
* // }
|
|
4806
|
+
* },
|
|
4807
|
+
* });
|
|
4808
|
+
* console.log(res.data);
|
|
4809
|
+
*
|
|
4810
|
+
* // Example response
|
|
4811
|
+
* // {
|
|
4812
|
+
* // "accountId": "my_accountId",
|
|
4813
|
+
* // "email": "my_email",
|
|
4814
|
+
* // "firstName": "my_firstName",
|
|
4815
|
+
* // "holdTime": "my_holdTime",
|
|
4816
|
+
* // "lastName": "my_lastName"
|
|
4817
|
+
* // }
|
|
4818
|
+
* }
|
|
4819
|
+
*
|
|
4820
|
+
* main().catch(e => {
|
|
4821
|
+
* console.error(e);
|
|
4822
|
+
* throw e;
|
|
4823
|
+
* });
|
|
4824
|
+
*
|
|
4825
|
+
* ```
|
|
3453
4826
|
*
|
|
3454
4827
|
* @param params - Parameters for request
|
|
3455
4828
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3459,11 +4832,11 @@ export namespace vault_v1 {
|
|
|
3459
4832
|
create(
|
|
3460
4833
|
params: Params$Resource$Matters$Holds$Accounts$Create,
|
|
3461
4834
|
options: StreamMethodOptions
|
|
3462
|
-
):
|
|
4835
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3463
4836
|
create(
|
|
3464
4837
|
params?: Params$Resource$Matters$Holds$Accounts$Create,
|
|
3465
4838
|
options?: MethodOptions
|
|
3466
|
-
):
|
|
4839
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$HeldAccount>>;
|
|
3467
4840
|
create(
|
|
3468
4841
|
params: Params$Resource$Matters$Holds$Accounts$Create,
|
|
3469
4842
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -3492,7 +4865,10 @@ export namespace vault_v1 {
|
|
|
3492
4865
|
callback?:
|
|
3493
4866
|
| BodyResponseCallback<Schema$HeldAccount>
|
|
3494
4867
|
| BodyResponseCallback<Readable>
|
|
3495
|
-
):
|
|
4868
|
+
):
|
|
4869
|
+
| void
|
|
4870
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$HeldAccount>>
|
|
4871
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3496
4872
|
let params = (paramsOrCallback ||
|
|
3497
4873
|
{}) as Params$Resource$Matters$Holds$Accounts$Create;
|
|
3498
4874
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -3537,6 +4913,54 @@ export namespace vault_v1 {
|
|
|
3537
4913
|
|
|
3538
4914
|
/**
|
|
3539
4915
|
* Removes an account from a hold.
|
|
4916
|
+
* @example
|
|
4917
|
+
* ```js
|
|
4918
|
+
* // Before running the sample:
|
|
4919
|
+
* // - Enable the API at:
|
|
4920
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
4921
|
+
* // - Login into gcloud by running:
|
|
4922
|
+
* // ```sh
|
|
4923
|
+
* // $ gcloud auth application-default login
|
|
4924
|
+
* // ```
|
|
4925
|
+
* // - Install the npm module by running:
|
|
4926
|
+
* // ```sh
|
|
4927
|
+
* // $ npm install googleapis
|
|
4928
|
+
* // ```
|
|
4929
|
+
*
|
|
4930
|
+
* const {google} = require('googleapis');
|
|
4931
|
+
* const vault = google.vault('v1');
|
|
4932
|
+
*
|
|
4933
|
+
* async function main() {
|
|
4934
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4935
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4936
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
4937
|
+
* });
|
|
4938
|
+
*
|
|
4939
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4940
|
+
* const authClient = await auth.getClient();
|
|
4941
|
+
* google.options({auth: authClient});
|
|
4942
|
+
*
|
|
4943
|
+
* // Do the magic
|
|
4944
|
+
* const res = await vault.matters.holds.accounts.delete({
|
|
4945
|
+
* // The ID of the account to remove from the hold.
|
|
4946
|
+
* accountId: 'placeholder-value',
|
|
4947
|
+
* // The hold ID.
|
|
4948
|
+
* holdId: 'placeholder-value',
|
|
4949
|
+
* // The matter ID.
|
|
4950
|
+
* matterId: 'placeholder-value',
|
|
4951
|
+
* });
|
|
4952
|
+
* console.log(res.data);
|
|
4953
|
+
*
|
|
4954
|
+
* // Example response
|
|
4955
|
+
* // {}
|
|
4956
|
+
* }
|
|
4957
|
+
*
|
|
4958
|
+
* main().catch(e => {
|
|
4959
|
+
* console.error(e);
|
|
4960
|
+
* throw e;
|
|
4961
|
+
* });
|
|
4962
|
+
*
|
|
4963
|
+
* ```
|
|
3540
4964
|
*
|
|
3541
4965
|
* @param params - Parameters for request
|
|
3542
4966
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3546,11 +4970,11 @@ export namespace vault_v1 {
|
|
|
3546
4970
|
delete(
|
|
3547
4971
|
params: Params$Resource$Matters$Holds$Accounts$Delete,
|
|
3548
4972
|
options: StreamMethodOptions
|
|
3549
|
-
):
|
|
4973
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3550
4974
|
delete(
|
|
3551
4975
|
params?: Params$Resource$Matters$Holds$Accounts$Delete,
|
|
3552
4976
|
options?: MethodOptions
|
|
3553
|
-
):
|
|
4977
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
3554
4978
|
delete(
|
|
3555
4979
|
params: Params$Resource$Matters$Holds$Accounts$Delete,
|
|
3556
4980
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -3579,7 +5003,10 @@ export namespace vault_v1 {
|
|
|
3579
5003
|
callback?:
|
|
3580
5004
|
| BodyResponseCallback<Schema$Empty>
|
|
3581
5005
|
| BodyResponseCallback<Readable>
|
|
3582
|
-
):
|
|
5006
|
+
):
|
|
5007
|
+
| void
|
|
5008
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
5009
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3583
5010
|
let params = (paramsOrCallback ||
|
|
3584
5011
|
{}) as Params$Resource$Matters$Holds$Accounts$Delete;
|
|
3585
5012
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -3625,6 +5052,57 @@ export namespace vault_v1 {
|
|
|
3625
5052
|
|
|
3626
5053
|
/**
|
|
3627
5054
|
* Lists the accounts covered by a hold. This can list only individually-specified accounts covered by the hold. If the hold covers an organizational unit, use the [Admin SDK](https://developers.google.com/admin-sdk/). to list the members of the organizational unit on hold.
|
|
5055
|
+
* @example
|
|
5056
|
+
* ```js
|
|
5057
|
+
* // Before running the sample:
|
|
5058
|
+
* // - Enable the API at:
|
|
5059
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
5060
|
+
* // - Login into gcloud by running:
|
|
5061
|
+
* // ```sh
|
|
5062
|
+
* // $ gcloud auth application-default login
|
|
5063
|
+
* // ```
|
|
5064
|
+
* // - Install the npm module by running:
|
|
5065
|
+
* // ```sh
|
|
5066
|
+
* // $ npm install googleapis
|
|
5067
|
+
* // ```
|
|
5068
|
+
*
|
|
5069
|
+
* const {google} = require('googleapis');
|
|
5070
|
+
* const vault = google.vault('v1');
|
|
5071
|
+
*
|
|
5072
|
+
* async function main() {
|
|
5073
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5074
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5075
|
+
* scopes: [
|
|
5076
|
+
* 'https://www.googleapis.com/auth/ediscovery',
|
|
5077
|
+
* 'https://www.googleapis.com/auth/ediscovery.readonly',
|
|
5078
|
+
* ],
|
|
5079
|
+
* });
|
|
5080
|
+
*
|
|
5081
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5082
|
+
* const authClient = await auth.getClient();
|
|
5083
|
+
* google.options({auth: authClient});
|
|
5084
|
+
*
|
|
5085
|
+
* // Do the magic
|
|
5086
|
+
* const res = await vault.matters.holds.accounts.list({
|
|
5087
|
+
* // The hold ID.
|
|
5088
|
+
* holdId: 'placeholder-value',
|
|
5089
|
+
* // The matter ID.
|
|
5090
|
+
* matterId: 'placeholder-value',
|
|
5091
|
+
* });
|
|
5092
|
+
* console.log(res.data);
|
|
5093
|
+
*
|
|
5094
|
+
* // Example response
|
|
5095
|
+
* // {
|
|
5096
|
+
* // "accounts": []
|
|
5097
|
+
* // }
|
|
5098
|
+
* }
|
|
5099
|
+
*
|
|
5100
|
+
* main().catch(e => {
|
|
5101
|
+
* console.error(e);
|
|
5102
|
+
* throw e;
|
|
5103
|
+
* });
|
|
5104
|
+
*
|
|
5105
|
+
* ```
|
|
3628
5106
|
*
|
|
3629
5107
|
* @param params - Parameters for request
|
|
3630
5108
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3634,11 +5112,11 @@ export namespace vault_v1 {
|
|
|
3634
5112
|
list(
|
|
3635
5113
|
params: Params$Resource$Matters$Holds$Accounts$List,
|
|
3636
5114
|
options: StreamMethodOptions
|
|
3637
|
-
):
|
|
5115
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3638
5116
|
list(
|
|
3639
5117
|
params?: Params$Resource$Matters$Holds$Accounts$List,
|
|
3640
5118
|
options?: MethodOptions
|
|
3641
|
-
):
|
|
5119
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListHeldAccountsResponse>>;
|
|
3642
5120
|
list(
|
|
3643
5121
|
params: Params$Resource$Matters$Holds$Accounts$List,
|
|
3644
5122
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -3671,8 +5149,8 @@ export namespace vault_v1 {
|
|
|
3671
5149
|
| BodyResponseCallback<Readable>
|
|
3672
5150
|
):
|
|
3673
5151
|
| void
|
|
3674
|
-
|
|
|
3675
|
-
|
|
|
5152
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListHeldAccountsResponse>>
|
|
5153
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3676
5154
|
let params = (paramsOrCallback ||
|
|
3677
5155
|
{}) as Params$Resource$Matters$Holds$Accounts$List;
|
|
3678
5156
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -3767,6 +5245,68 @@ export namespace vault_v1 {
|
|
|
3767
5245
|
|
|
3768
5246
|
/**
|
|
3769
5247
|
* Creates a saved query.
|
|
5248
|
+
* @example
|
|
5249
|
+
* ```js
|
|
5250
|
+
* // Before running the sample:
|
|
5251
|
+
* // - Enable the API at:
|
|
5252
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
5253
|
+
* // - Login into gcloud by running:
|
|
5254
|
+
* // ```sh
|
|
5255
|
+
* // $ gcloud auth application-default login
|
|
5256
|
+
* // ```
|
|
5257
|
+
* // - Install the npm module by running:
|
|
5258
|
+
* // ```sh
|
|
5259
|
+
* // $ npm install googleapis
|
|
5260
|
+
* // ```
|
|
5261
|
+
*
|
|
5262
|
+
* const {google} = require('googleapis');
|
|
5263
|
+
* const vault = google.vault('v1');
|
|
5264
|
+
*
|
|
5265
|
+
* async function main() {
|
|
5266
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5267
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5268
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
5269
|
+
* });
|
|
5270
|
+
*
|
|
5271
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5272
|
+
* const authClient = await auth.getClient();
|
|
5273
|
+
* google.options({auth: authClient});
|
|
5274
|
+
*
|
|
5275
|
+
* // Do the magic
|
|
5276
|
+
* const res = await vault.matters.savedQueries.create({
|
|
5277
|
+
* // The ID of the matter to create the saved query in.
|
|
5278
|
+
* matterId: 'placeholder-value',
|
|
5279
|
+
*
|
|
5280
|
+
* // Request body metadata
|
|
5281
|
+
* requestBody: {
|
|
5282
|
+
* // request body parameters
|
|
5283
|
+
* // {
|
|
5284
|
+
* // "createTime": "my_createTime",
|
|
5285
|
+
* // "displayName": "my_displayName",
|
|
5286
|
+
* // "matterId": "my_matterId",
|
|
5287
|
+
* // "query": {},
|
|
5288
|
+
* // "savedQueryId": "my_savedQueryId"
|
|
5289
|
+
* // }
|
|
5290
|
+
* },
|
|
5291
|
+
* });
|
|
5292
|
+
* console.log(res.data);
|
|
5293
|
+
*
|
|
5294
|
+
* // Example response
|
|
5295
|
+
* // {
|
|
5296
|
+
* // "createTime": "my_createTime",
|
|
5297
|
+
* // "displayName": "my_displayName",
|
|
5298
|
+
* // "matterId": "my_matterId",
|
|
5299
|
+
* // "query": {},
|
|
5300
|
+
* // "savedQueryId": "my_savedQueryId"
|
|
5301
|
+
* // }
|
|
5302
|
+
* }
|
|
5303
|
+
*
|
|
5304
|
+
* main().catch(e => {
|
|
5305
|
+
* console.error(e);
|
|
5306
|
+
* throw e;
|
|
5307
|
+
* });
|
|
5308
|
+
*
|
|
5309
|
+
* ```
|
|
3770
5310
|
*
|
|
3771
5311
|
* @param params - Parameters for request
|
|
3772
5312
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3776,11 +5316,11 @@ export namespace vault_v1 {
|
|
|
3776
5316
|
create(
|
|
3777
5317
|
params: Params$Resource$Matters$Savedqueries$Create,
|
|
3778
5318
|
options: StreamMethodOptions
|
|
3779
|
-
):
|
|
5319
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3780
5320
|
create(
|
|
3781
5321
|
params?: Params$Resource$Matters$Savedqueries$Create,
|
|
3782
5322
|
options?: MethodOptions
|
|
3783
|
-
):
|
|
5323
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$SavedQuery>>;
|
|
3784
5324
|
create(
|
|
3785
5325
|
params: Params$Resource$Matters$Savedqueries$Create,
|
|
3786
5326
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -3809,7 +5349,10 @@ export namespace vault_v1 {
|
|
|
3809
5349
|
callback?:
|
|
3810
5350
|
| BodyResponseCallback<Schema$SavedQuery>
|
|
3811
5351
|
| BodyResponseCallback<Readable>
|
|
3812
|
-
):
|
|
5352
|
+
):
|
|
5353
|
+
| void
|
|
5354
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$SavedQuery>>
|
|
5355
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3813
5356
|
let params = (paramsOrCallback ||
|
|
3814
5357
|
{}) as Params$Resource$Matters$Savedqueries$Create;
|
|
3815
5358
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -3855,6 +5398,52 @@ export namespace vault_v1 {
|
|
|
3855
5398
|
|
|
3856
5399
|
/**
|
|
3857
5400
|
* Deletes the specified saved query.
|
|
5401
|
+
* @example
|
|
5402
|
+
* ```js
|
|
5403
|
+
* // Before running the sample:
|
|
5404
|
+
* // - Enable the API at:
|
|
5405
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
5406
|
+
* // - Login into gcloud by running:
|
|
5407
|
+
* // ```sh
|
|
5408
|
+
* // $ gcloud auth application-default login
|
|
5409
|
+
* // ```
|
|
5410
|
+
* // - Install the npm module by running:
|
|
5411
|
+
* // ```sh
|
|
5412
|
+
* // $ npm install googleapis
|
|
5413
|
+
* // ```
|
|
5414
|
+
*
|
|
5415
|
+
* const {google} = require('googleapis');
|
|
5416
|
+
* const vault = google.vault('v1');
|
|
5417
|
+
*
|
|
5418
|
+
* async function main() {
|
|
5419
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5420
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5421
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
5422
|
+
* });
|
|
5423
|
+
*
|
|
5424
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5425
|
+
* const authClient = await auth.getClient();
|
|
5426
|
+
* google.options({auth: authClient});
|
|
5427
|
+
*
|
|
5428
|
+
* // Do the magic
|
|
5429
|
+
* const res = await vault.matters.savedQueries.delete({
|
|
5430
|
+
* // The ID of the matter to delete the saved query from.
|
|
5431
|
+
* matterId: 'placeholder-value',
|
|
5432
|
+
* // ID of the saved query to delete.
|
|
5433
|
+
* savedQueryId: 'placeholder-value',
|
|
5434
|
+
* });
|
|
5435
|
+
* console.log(res.data);
|
|
5436
|
+
*
|
|
5437
|
+
* // Example response
|
|
5438
|
+
* // {}
|
|
5439
|
+
* }
|
|
5440
|
+
*
|
|
5441
|
+
* main().catch(e => {
|
|
5442
|
+
* console.error(e);
|
|
5443
|
+
* throw e;
|
|
5444
|
+
* });
|
|
5445
|
+
*
|
|
5446
|
+
* ```
|
|
3858
5447
|
*
|
|
3859
5448
|
* @param params - Parameters for request
|
|
3860
5449
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3864,11 +5453,11 @@ export namespace vault_v1 {
|
|
|
3864
5453
|
delete(
|
|
3865
5454
|
params: Params$Resource$Matters$Savedqueries$Delete,
|
|
3866
5455
|
options: StreamMethodOptions
|
|
3867
|
-
):
|
|
5456
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3868
5457
|
delete(
|
|
3869
5458
|
params?: Params$Resource$Matters$Savedqueries$Delete,
|
|
3870
5459
|
options?: MethodOptions
|
|
3871
|
-
):
|
|
5460
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
3872
5461
|
delete(
|
|
3873
5462
|
params: Params$Resource$Matters$Savedqueries$Delete,
|
|
3874
5463
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -3897,7 +5486,10 @@ export namespace vault_v1 {
|
|
|
3897
5486
|
callback?:
|
|
3898
5487
|
| BodyResponseCallback<Schema$Empty>
|
|
3899
5488
|
| BodyResponseCallback<Readable>
|
|
3900
|
-
):
|
|
5489
|
+
):
|
|
5490
|
+
| void
|
|
5491
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
5492
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3901
5493
|
let params = (paramsOrCallback ||
|
|
3902
5494
|
{}) as Params$Resource$Matters$Savedqueries$Delete;
|
|
3903
5495
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -3942,6 +5534,61 @@ export namespace vault_v1 {
|
|
|
3942
5534
|
|
|
3943
5535
|
/**
|
|
3944
5536
|
* Retrieves the specified saved query.
|
|
5537
|
+
* @example
|
|
5538
|
+
* ```js
|
|
5539
|
+
* // Before running the sample:
|
|
5540
|
+
* // - Enable the API at:
|
|
5541
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
5542
|
+
* // - Login into gcloud by running:
|
|
5543
|
+
* // ```sh
|
|
5544
|
+
* // $ gcloud auth application-default login
|
|
5545
|
+
* // ```
|
|
5546
|
+
* // - Install the npm module by running:
|
|
5547
|
+
* // ```sh
|
|
5548
|
+
* // $ npm install googleapis
|
|
5549
|
+
* // ```
|
|
5550
|
+
*
|
|
5551
|
+
* const {google} = require('googleapis');
|
|
5552
|
+
* const vault = google.vault('v1');
|
|
5553
|
+
*
|
|
5554
|
+
* async function main() {
|
|
5555
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5556
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5557
|
+
* scopes: [
|
|
5558
|
+
* 'https://www.googleapis.com/auth/ediscovery',
|
|
5559
|
+
* 'https://www.googleapis.com/auth/ediscovery.readonly',
|
|
5560
|
+
* ],
|
|
5561
|
+
* });
|
|
5562
|
+
*
|
|
5563
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5564
|
+
* const authClient = await auth.getClient();
|
|
5565
|
+
* google.options({auth: authClient});
|
|
5566
|
+
*
|
|
5567
|
+
* // Do the magic
|
|
5568
|
+
* const res = await vault.matters.savedQueries.get({
|
|
5569
|
+
* // The ID of the matter to get the saved query from.
|
|
5570
|
+
* matterId: 'placeholder-value',
|
|
5571
|
+
* // ID of the saved query to retrieve.
|
|
5572
|
+
* savedQueryId: 'placeholder-value',
|
|
5573
|
+
* });
|
|
5574
|
+
* console.log(res.data);
|
|
5575
|
+
*
|
|
5576
|
+
* // Example response
|
|
5577
|
+
* // {
|
|
5578
|
+
* // "createTime": "my_createTime",
|
|
5579
|
+
* // "displayName": "my_displayName",
|
|
5580
|
+
* // "matterId": "my_matterId",
|
|
5581
|
+
* // "query": {},
|
|
5582
|
+
* // "savedQueryId": "my_savedQueryId"
|
|
5583
|
+
* // }
|
|
5584
|
+
* }
|
|
5585
|
+
*
|
|
5586
|
+
* main().catch(e => {
|
|
5587
|
+
* console.error(e);
|
|
5588
|
+
* throw e;
|
|
5589
|
+
* });
|
|
5590
|
+
*
|
|
5591
|
+
* ```
|
|
3945
5592
|
*
|
|
3946
5593
|
* @param params - Parameters for request
|
|
3947
5594
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3951,11 +5598,11 @@ export namespace vault_v1 {
|
|
|
3951
5598
|
get(
|
|
3952
5599
|
params: Params$Resource$Matters$Savedqueries$Get,
|
|
3953
5600
|
options: StreamMethodOptions
|
|
3954
|
-
):
|
|
5601
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3955
5602
|
get(
|
|
3956
5603
|
params?: Params$Resource$Matters$Savedqueries$Get,
|
|
3957
5604
|
options?: MethodOptions
|
|
3958
|
-
):
|
|
5605
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$SavedQuery>>;
|
|
3959
5606
|
get(
|
|
3960
5607
|
params: Params$Resource$Matters$Savedqueries$Get,
|
|
3961
5608
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -3984,7 +5631,10 @@ export namespace vault_v1 {
|
|
|
3984
5631
|
callback?:
|
|
3985
5632
|
| BodyResponseCallback<Schema$SavedQuery>
|
|
3986
5633
|
| BodyResponseCallback<Readable>
|
|
3987
|
-
):
|
|
5634
|
+
):
|
|
5635
|
+
| void
|
|
5636
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$SavedQuery>>
|
|
5637
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3988
5638
|
let params = (paramsOrCallback ||
|
|
3989
5639
|
{}) as Params$Resource$Matters$Savedqueries$Get;
|
|
3990
5640
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -4029,6 +5679,60 @@ export namespace vault_v1 {
|
|
|
4029
5679
|
|
|
4030
5680
|
/**
|
|
4031
5681
|
* Lists the saved queries in a matter.
|
|
5682
|
+
* @example
|
|
5683
|
+
* ```js
|
|
5684
|
+
* // Before running the sample:
|
|
5685
|
+
* // - Enable the API at:
|
|
5686
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
5687
|
+
* // - Login into gcloud by running:
|
|
5688
|
+
* // ```sh
|
|
5689
|
+
* // $ gcloud auth application-default login
|
|
5690
|
+
* // ```
|
|
5691
|
+
* // - Install the npm module by running:
|
|
5692
|
+
* // ```sh
|
|
5693
|
+
* // $ npm install googleapis
|
|
5694
|
+
* // ```
|
|
5695
|
+
*
|
|
5696
|
+
* const {google} = require('googleapis');
|
|
5697
|
+
* const vault = google.vault('v1');
|
|
5698
|
+
*
|
|
5699
|
+
* async function main() {
|
|
5700
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5701
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5702
|
+
* scopes: [
|
|
5703
|
+
* 'https://www.googleapis.com/auth/ediscovery',
|
|
5704
|
+
* 'https://www.googleapis.com/auth/ediscovery.readonly',
|
|
5705
|
+
* ],
|
|
5706
|
+
* });
|
|
5707
|
+
*
|
|
5708
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5709
|
+
* const authClient = await auth.getClient();
|
|
5710
|
+
* google.options({auth: authClient});
|
|
5711
|
+
*
|
|
5712
|
+
* // Do the magic
|
|
5713
|
+
* const res = await vault.matters.savedQueries.list({
|
|
5714
|
+
* // The ID of the matter to get the saved queries for.
|
|
5715
|
+
* matterId: 'placeholder-value',
|
|
5716
|
+
* // The maximum number of saved queries to return.
|
|
5717
|
+
* pageSize: 'placeholder-value',
|
|
5718
|
+
* // The pagination token as returned in the previous response. An empty token means start from the beginning.
|
|
5719
|
+
* pageToken: 'placeholder-value',
|
|
5720
|
+
* });
|
|
5721
|
+
* console.log(res.data);
|
|
5722
|
+
*
|
|
5723
|
+
* // Example response
|
|
5724
|
+
* // {
|
|
5725
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
5726
|
+
* // "savedQueries": []
|
|
5727
|
+
* // }
|
|
5728
|
+
* }
|
|
5729
|
+
*
|
|
5730
|
+
* main().catch(e => {
|
|
5731
|
+
* console.error(e);
|
|
5732
|
+
* throw e;
|
|
5733
|
+
* });
|
|
5734
|
+
*
|
|
5735
|
+
* ```
|
|
4032
5736
|
*
|
|
4033
5737
|
* @param params - Parameters for request
|
|
4034
5738
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4038,11 +5742,11 @@ export namespace vault_v1 {
|
|
|
4038
5742
|
list(
|
|
4039
5743
|
params: Params$Resource$Matters$Savedqueries$List,
|
|
4040
5744
|
options: StreamMethodOptions
|
|
4041
|
-
):
|
|
5745
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4042
5746
|
list(
|
|
4043
5747
|
params?: Params$Resource$Matters$Savedqueries$List,
|
|
4044
5748
|
options?: MethodOptions
|
|
4045
|
-
):
|
|
5749
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListSavedQueriesResponse>>;
|
|
4046
5750
|
list(
|
|
4047
5751
|
params: Params$Resource$Matters$Savedqueries$List,
|
|
4048
5752
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -4075,8 +5779,8 @@ export namespace vault_v1 {
|
|
|
4075
5779
|
| BodyResponseCallback<Readable>
|
|
4076
5780
|
):
|
|
4077
5781
|
| void
|
|
4078
|
-
|
|
|
4079
|
-
|
|
|
5782
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListSavedQueriesResponse>>
|
|
5783
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4080
5784
|
let params = (paramsOrCallback ||
|
|
4081
5785
|
{}) as Params$Resource$Matters$Savedqueries$List;
|
|
4082
5786
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -4179,6 +5883,56 @@ export namespace vault_v1 {
|
|
|
4179
5883
|
|
|
4180
5884
|
/**
|
|
4181
5885
|
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
|
|
5886
|
+
* @example
|
|
5887
|
+
* ```js
|
|
5888
|
+
* // Before running the sample:
|
|
5889
|
+
* // - Enable the API at:
|
|
5890
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
5891
|
+
* // - Login into gcloud by running:
|
|
5892
|
+
* // ```sh
|
|
5893
|
+
* // $ gcloud auth application-default login
|
|
5894
|
+
* // ```
|
|
5895
|
+
* // - Install the npm module by running:
|
|
5896
|
+
* // ```sh
|
|
5897
|
+
* // $ npm install googleapis
|
|
5898
|
+
* // ```
|
|
5899
|
+
*
|
|
5900
|
+
* const {google} = require('googleapis');
|
|
5901
|
+
* const vault = google.vault('v1');
|
|
5902
|
+
*
|
|
5903
|
+
* async function main() {
|
|
5904
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5905
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5906
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
5907
|
+
* });
|
|
5908
|
+
*
|
|
5909
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5910
|
+
* const authClient = await auth.getClient();
|
|
5911
|
+
* google.options({auth: authClient});
|
|
5912
|
+
*
|
|
5913
|
+
* // Do the magic
|
|
5914
|
+
* const res = await vault.operations.cancel({
|
|
5915
|
+
* // The name of the operation resource to be cancelled.
|
|
5916
|
+
* name: 'operations/.*',
|
|
5917
|
+
*
|
|
5918
|
+
* // Request body metadata
|
|
5919
|
+
* requestBody: {
|
|
5920
|
+
* // request body parameters
|
|
5921
|
+
* // {}
|
|
5922
|
+
* },
|
|
5923
|
+
* });
|
|
5924
|
+
* console.log(res.data);
|
|
5925
|
+
*
|
|
5926
|
+
* // Example response
|
|
5927
|
+
* // {}
|
|
5928
|
+
* }
|
|
5929
|
+
*
|
|
5930
|
+
* main().catch(e => {
|
|
5931
|
+
* console.error(e);
|
|
5932
|
+
* throw e;
|
|
5933
|
+
* });
|
|
5934
|
+
*
|
|
5935
|
+
* ```
|
|
4182
5936
|
*
|
|
4183
5937
|
* @param params - Parameters for request
|
|
4184
5938
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4188,11 +5942,11 @@ export namespace vault_v1 {
|
|
|
4188
5942
|
cancel(
|
|
4189
5943
|
params: Params$Resource$Operations$Cancel,
|
|
4190
5944
|
options: StreamMethodOptions
|
|
4191
|
-
):
|
|
5945
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4192
5946
|
cancel(
|
|
4193
5947
|
params?: Params$Resource$Operations$Cancel,
|
|
4194
5948
|
options?: MethodOptions
|
|
4195
|
-
):
|
|
5949
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
4196
5950
|
cancel(
|
|
4197
5951
|
params: Params$Resource$Operations$Cancel,
|
|
4198
5952
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -4221,7 +5975,10 @@ export namespace vault_v1 {
|
|
|
4221
5975
|
callback?:
|
|
4222
5976
|
| BodyResponseCallback<Schema$Empty>
|
|
4223
5977
|
| BodyResponseCallback<Readable>
|
|
4224
|
-
):
|
|
5978
|
+
):
|
|
5979
|
+
| void
|
|
5980
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
5981
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4225
5982
|
let params = (paramsOrCallback ||
|
|
4226
5983
|
{}) as Params$Resource$Operations$Cancel;
|
|
4227
5984
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -4264,6 +6021,50 @@ export namespace vault_v1 {
|
|
|
4264
6021
|
|
|
4265
6022
|
/**
|
|
4266
6023
|
* Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
6024
|
+
* @example
|
|
6025
|
+
* ```js
|
|
6026
|
+
* // Before running the sample:
|
|
6027
|
+
* // - Enable the API at:
|
|
6028
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
6029
|
+
* // - Login into gcloud by running:
|
|
6030
|
+
* // ```sh
|
|
6031
|
+
* // $ gcloud auth application-default login
|
|
6032
|
+
* // ```
|
|
6033
|
+
* // - Install the npm module by running:
|
|
6034
|
+
* // ```sh
|
|
6035
|
+
* // $ npm install googleapis
|
|
6036
|
+
* // ```
|
|
6037
|
+
*
|
|
6038
|
+
* const {google} = require('googleapis');
|
|
6039
|
+
* const vault = google.vault('v1');
|
|
6040
|
+
*
|
|
6041
|
+
* async function main() {
|
|
6042
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6043
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6044
|
+
* scopes: ['https://www.googleapis.com/auth/ediscovery'],
|
|
6045
|
+
* });
|
|
6046
|
+
*
|
|
6047
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6048
|
+
* const authClient = await auth.getClient();
|
|
6049
|
+
* google.options({auth: authClient});
|
|
6050
|
+
*
|
|
6051
|
+
* // Do the magic
|
|
6052
|
+
* const res = await vault.operations.delete({
|
|
6053
|
+
* // The name of the operation resource to be deleted.
|
|
6054
|
+
* name: 'operations/.*',
|
|
6055
|
+
* });
|
|
6056
|
+
* console.log(res.data);
|
|
6057
|
+
*
|
|
6058
|
+
* // Example response
|
|
6059
|
+
* // {}
|
|
6060
|
+
* }
|
|
6061
|
+
*
|
|
6062
|
+
* main().catch(e => {
|
|
6063
|
+
* console.error(e);
|
|
6064
|
+
* throw e;
|
|
6065
|
+
* });
|
|
6066
|
+
*
|
|
6067
|
+
* ```
|
|
4267
6068
|
*
|
|
4268
6069
|
* @param params - Parameters for request
|
|
4269
6070
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4273,11 +6074,11 @@ export namespace vault_v1 {
|
|
|
4273
6074
|
delete(
|
|
4274
6075
|
params: Params$Resource$Operations$Delete,
|
|
4275
6076
|
options: StreamMethodOptions
|
|
4276
|
-
):
|
|
6077
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4277
6078
|
delete(
|
|
4278
6079
|
params?: Params$Resource$Operations$Delete,
|
|
4279
6080
|
options?: MethodOptions
|
|
4280
|
-
):
|
|
6081
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
4281
6082
|
delete(
|
|
4282
6083
|
params: Params$Resource$Operations$Delete,
|
|
4283
6084
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -4306,7 +6107,10 @@ export namespace vault_v1 {
|
|
|
4306
6107
|
callback?:
|
|
4307
6108
|
| BodyResponseCallback<Schema$Empty>
|
|
4308
6109
|
| BodyResponseCallback<Readable>
|
|
4309
|
-
):
|
|
6110
|
+
):
|
|
6111
|
+
| void
|
|
6112
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
6113
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4310
6114
|
let params = (paramsOrCallback ||
|
|
4311
6115
|
{}) as Params$Resource$Operations$Delete;
|
|
4312
6116
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -4349,6 +6153,59 @@ export namespace vault_v1 {
|
|
|
4349
6153
|
|
|
4350
6154
|
/**
|
|
4351
6155
|
* Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
|
|
6156
|
+
* @example
|
|
6157
|
+
* ```js
|
|
6158
|
+
* // Before running the sample:
|
|
6159
|
+
* // - Enable the API at:
|
|
6160
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
6161
|
+
* // - Login into gcloud by running:
|
|
6162
|
+
* // ```sh
|
|
6163
|
+
* // $ gcloud auth application-default login
|
|
6164
|
+
* // ```
|
|
6165
|
+
* // - Install the npm module by running:
|
|
6166
|
+
* // ```sh
|
|
6167
|
+
* // $ npm install googleapis
|
|
6168
|
+
* // ```
|
|
6169
|
+
*
|
|
6170
|
+
* const {google} = require('googleapis');
|
|
6171
|
+
* const vault = google.vault('v1');
|
|
6172
|
+
*
|
|
6173
|
+
* async function main() {
|
|
6174
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6175
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6176
|
+
* scopes: [
|
|
6177
|
+
* 'https://www.googleapis.com/auth/ediscovery',
|
|
6178
|
+
* 'https://www.googleapis.com/auth/ediscovery.readonly',
|
|
6179
|
+
* ],
|
|
6180
|
+
* });
|
|
6181
|
+
*
|
|
6182
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6183
|
+
* const authClient = await auth.getClient();
|
|
6184
|
+
* google.options({auth: authClient});
|
|
6185
|
+
*
|
|
6186
|
+
* // Do the magic
|
|
6187
|
+
* const res = await vault.operations.get({
|
|
6188
|
+
* // The name of the operation resource.
|
|
6189
|
+
* name: 'operations/.*',
|
|
6190
|
+
* });
|
|
6191
|
+
* console.log(res.data);
|
|
6192
|
+
*
|
|
6193
|
+
* // Example response
|
|
6194
|
+
* // {
|
|
6195
|
+
* // "done": false,
|
|
6196
|
+
* // "error": {},
|
|
6197
|
+
* // "metadata": {},
|
|
6198
|
+
* // "name": "my_name",
|
|
6199
|
+
* // "response": {}
|
|
6200
|
+
* // }
|
|
6201
|
+
* }
|
|
6202
|
+
*
|
|
6203
|
+
* main().catch(e => {
|
|
6204
|
+
* console.error(e);
|
|
6205
|
+
* throw e;
|
|
6206
|
+
* });
|
|
6207
|
+
*
|
|
6208
|
+
* ```
|
|
4352
6209
|
*
|
|
4353
6210
|
* @param params - Parameters for request
|
|
4354
6211
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4358,11 +6215,11 @@ export namespace vault_v1 {
|
|
|
4358
6215
|
get(
|
|
4359
6216
|
params: Params$Resource$Operations$Get,
|
|
4360
6217
|
options: StreamMethodOptions
|
|
4361
|
-
):
|
|
6218
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4362
6219
|
get(
|
|
4363
6220
|
params?: Params$Resource$Operations$Get,
|
|
4364
6221
|
options?: MethodOptions
|
|
4365
|
-
):
|
|
6222
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
4366
6223
|
get(
|
|
4367
6224
|
params: Params$Resource$Operations$Get,
|
|
4368
6225
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -4391,7 +6248,10 @@ export namespace vault_v1 {
|
|
|
4391
6248
|
callback?:
|
|
4392
6249
|
| BodyResponseCallback<Schema$Operation>
|
|
4393
6250
|
| BodyResponseCallback<Readable>
|
|
4394
|
-
):
|
|
6251
|
+
):
|
|
6252
|
+
| void
|
|
6253
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
6254
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4395
6255
|
let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get;
|
|
4396
6256
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4397
6257
|
|
|
@@ -4433,6 +6293,62 @@ export namespace vault_v1 {
|
|
|
4433
6293
|
|
|
4434
6294
|
/**
|
|
4435
6295
|
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
6296
|
+
* @example
|
|
6297
|
+
* ```js
|
|
6298
|
+
* // Before running the sample:
|
|
6299
|
+
* // - Enable the API at:
|
|
6300
|
+
* // https://console.developers.google.com/apis/api/vault.googleapis.com
|
|
6301
|
+
* // - Login into gcloud by running:
|
|
6302
|
+
* // ```sh
|
|
6303
|
+
* // $ gcloud auth application-default login
|
|
6304
|
+
* // ```
|
|
6305
|
+
* // - Install the npm module by running:
|
|
6306
|
+
* // ```sh
|
|
6307
|
+
* // $ npm install googleapis
|
|
6308
|
+
* // ```
|
|
6309
|
+
*
|
|
6310
|
+
* const {google} = require('googleapis');
|
|
6311
|
+
* const vault = google.vault('v1');
|
|
6312
|
+
*
|
|
6313
|
+
* async function main() {
|
|
6314
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6315
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6316
|
+
* scopes: [
|
|
6317
|
+
* 'https://www.googleapis.com/auth/ediscovery',
|
|
6318
|
+
* 'https://www.googleapis.com/auth/ediscovery.readonly',
|
|
6319
|
+
* ],
|
|
6320
|
+
* });
|
|
6321
|
+
*
|
|
6322
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6323
|
+
* const authClient = await auth.getClient();
|
|
6324
|
+
* google.options({auth: authClient});
|
|
6325
|
+
*
|
|
6326
|
+
* // Do the magic
|
|
6327
|
+
* const res = await vault.operations.list({
|
|
6328
|
+
* // The standard list filter.
|
|
6329
|
+
* filter: 'placeholder-value',
|
|
6330
|
+
* // The name of the operation's parent resource.
|
|
6331
|
+
* name: 'operations',
|
|
6332
|
+
* // The standard list page size.
|
|
6333
|
+
* pageSize: 'placeholder-value',
|
|
6334
|
+
* // The standard list page token.
|
|
6335
|
+
* pageToken: 'placeholder-value',
|
|
6336
|
+
* });
|
|
6337
|
+
* console.log(res.data);
|
|
6338
|
+
*
|
|
6339
|
+
* // Example response
|
|
6340
|
+
* // {
|
|
6341
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
6342
|
+
* // "operations": []
|
|
6343
|
+
* // }
|
|
6344
|
+
* }
|
|
6345
|
+
*
|
|
6346
|
+
* main().catch(e => {
|
|
6347
|
+
* console.error(e);
|
|
6348
|
+
* throw e;
|
|
6349
|
+
* });
|
|
6350
|
+
*
|
|
6351
|
+
* ```
|
|
4436
6352
|
*
|
|
4437
6353
|
* @param params - Parameters for request
|
|
4438
6354
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4442,11 +6358,11 @@ export namespace vault_v1 {
|
|
|
4442
6358
|
list(
|
|
4443
6359
|
params: Params$Resource$Operations$List,
|
|
4444
6360
|
options: StreamMethodOptions
|
|
4445
|
-
):
|
|
6361
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4446
6362
|
list(
|
|
4447
6363
|
params?: Params$Resource$Operations$List,
|
|
4448
6364
|
options?: MethodOptions
|
|
4449
|
-
):
|
|
6365
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
|
|
4450
6366
|
list(
|
|
4451
6367
|
params: Params$Resource$Operations$List,
|
|
4452
6368
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -4479,8 +6395,8 @@ export namespace vault_v1 {
|
|
|
4479
6395
|
| BodyResponseCallback<Readable>
|
|
4480
6396
|
):
|
|
4481
6397
|
| void
|
|
4482
|
-
|
|
|
4483
|
-
|
|
|
6398
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>
|
|
6399
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4484
6400
|
let params = (paramsOrCallback || {}) as Params$Resource$Operations$List;
|
|
4485
6401
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4486
6402
|
|