@googleapis/storage 8.0.0 → 10.0.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/v1.ts CHANGED
@@ -100,11 +100,12 @@ export namespace storage_v1 {
100
100
  */
101
101
  export class Storage {
102
102
  context: APIRequestContext;
103
- anywhereCache: Resource$Anywherecache;
103
+ anywhereCaches: Resource$Anywherecaches;
104
104
  bucketAccessControls: Resource$Bucketaccesscontrols;
105
105
  buckets: Resource$Buckets;
106
106
  channels: Resource$Channels;
107
107
  defaultObjectAccessControls: Resource$Defaultobjectaccesscontrols;
108
+ folders: Resource$Folders;
108
109
  managedFolders: Resource$Managedfolders;
109
110
  notifications: Resource$Notifications;
110
111
  objectAccessControls: Resource$Objectaccesscontrols;
@@ -118,7 +119,7 @@ export namespace storage_v1 {
118
119
  google,
119
120
  };
120
121
 
121
- this.anywhereCache = new Resource$Anywherecache(this.context);
122
+ this.anywhereCaches = new Resource$Anywherecaches(this.context);
122
123
  this.bucketAccessControls = new Resource$Bucketaccesscontrols(
123
124
  this.context
124
125
  );
@@ -126,6 +127,7 @@ export namespace storage_v1 {
126
127
  this.channels = new Resource$Channels(this.context);
127
128
  this.defaultObjectAccessControls =
128
129
  new Resource$Defaultobjectaccesscontrols(this.context);
130
+ this.folders = new Resource$Folders(this.context);
129
131
  this.managedFolders = new Resource$Managedfolders(this.context);
130
132
  this.notifications = new Resource$Notifications(this.context);
131
133
  this.objectAccessControls = new Resource$Objectaccesscontrols(
@@ -185,6 +187,10 @@ export namespace storage_v1 {
185
187
  * The modification time of the cache instance metadata in RFC 3339 format.
186
188
  */
187
189
  updateTime?: string | null;
190
+ /**
191
+ * The zone in which the cache instance is running. For example, us-central1-a.
192
+ */
193
+ zone?: string | null;
188
194
  }
189
195
  /**
190
196
  * A list of Anywhere Caches.
@@ -253,6 +259,10 @@ export namespace storage_v1 {
253
259
  * HTTP 1.1 Entity tag for the bucket.
254
260
  */
255
261
  etag?: string | null;
262
+ /**
263
+ * The bucket's hierarchical namespace configuration.
264
+ */
265
+ hierarchicalNamespace?: {enabled?: boolean} | null;
256
266
  /**
257
267
  * The bucket's IAM configuration.
258
268
  */
@@ -577,6 +587,64 @@ export namespace storage_v1 {
577
587
  */
578
588
  title?: string | null;
579
589
  }
590
+ /**
591
+ * A folder. Only available in buckets with hierarchical namespace enabled.
592
+ */
593
+ export interface Schema$Folder {
594
+ /**
595
+ * The name of the bucket containing this folder.
596
+ */
597
+ bucket?: string | null;
598
+ /**
599
+ * The ID of the folder, including the bucket name, folder name.
600
+ */
601
+ id?: string | null;
602
+ /**
603
+ * The kind of item this is. For folders, this is always storage#folder.
604
+ */
605
+ kind?: string | null;
606
+ /**
607
+ * The version of the metadata for this folder. Used for preconditions and for detecting changes in metadata.
608
+ */
609
+ metageneration?: string | null;
610
+ /**
611
+ * The name of the folder. Required if not specified by URL parameter.
612
+ */
613
+ name?: string | null;
614
+ /**
615
+ * Only present if the folder is part of an ongoing rename folder operation. Contains information which can be used to query the operation status.
616
+ */
617
+ pendingRenameInfo?: {operationId?: string} | null;
618
+ /**
619
+ * The link to this folder.
620
+ */
621
+ selfLink?: string | null;
622
+ /**
623
+ * The creation time of the folder in RFC 3339 format.
624
+ */
625
+ timeCreated?: string | null;
626
+ /**
627
+ * The modification time of the folder metadata in RFC 3339 format.
628
+ */
629
+ updated?: string | null;
630
+ }
631
+ /**
632
+ * A list of folders.
633
+ */
634
+ export interface Schema$Folders {
635
+ /**
636
+ * The list of items.
637
+ */
638
+ items?: Schema$Folder[];
639
+ /**
640
+ * The kind of item this is. For lists of folders, this is always storage#folders.
641
+ */
642
+ kind?: string | null;
643
+ /**
644
+ * The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
645
+ */
646
+ nextPageToken?: string | null;
647
+ }
580
648
  /**
581
649
  * The response message for storage.buckets.operations.list.
582
650
  */
@@ -1174,7 +1242,7 @@ export namespace storage_v1 {
1174
1242
  permissions?: string[] | null;
1175
1243
  }
1176
1244
 
1177
- export class Resource$Anywherecache {
1245
+ export class Resource$Anywherecaches {
1178
1246
  context: APIRequestContext;
1179
1247
  constructor(context: APIRequestContext) {
1180
1248
  this.context = context;
@@ -1189,31 +1257,31 @@ export namespace storage_v1 {
1189
1257
  * @returns A promise if used with async/await, or void if used with a callback.
1190
1258
  */
1191
1259
  disable(
1192
- params: Params$Resource$Anywherecache$Disable,
1260
+ params: Params$Resource$Anywherecaches$Disable,
1193
1261
  options: StreamMethodOptions
1194
1262
  ): GaxiosPromise<Readable>;
1195
1263
  disable(
1196
- params?: Params$Resource$Anywherecache$Disable,
1264
+ params?: Params$Resource$Anywherecaches$Disable,
1197
1265
  options?: MethodOptions
1198
1266
  ): GaxiosPromise<Schema$AnywhereCache>;
1199
1267
  disable(
1200
- params: Params$Resource$Anywherecache$Disable,
1268
+ params: Params$Resource$Anywherecaches$Disable,
1201
1269
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
1202
1270
  callback: BodyResponseCallback<Readable>
1203
1271
  ): void;
1204
1272
  disable(
1205
- params: Params$Resource$Anywherecache$Disable,
1273
+ params: Params$Resource$Anywherecaches$Disable,
1206
1274
  options: MethodOptions | BodyResponseCallback<Schema$AnywhereCache>,
1207
1275
  callback: BodyResponseCallback<Schema$AnywhereCache>
1208
1276
  ): void;
1209
1277
  disable(
1210
- params: Params$Resource$Anywherecache$Disable,
1278
+ params: Params$Resource$Anywherecaches$Disable,
1211
1279
  callback: BodyResponseCallback<Schema$AnywhereCache>
1212
1280
  ): void;
1213
1281
  disable(callback: BodyResponseCallback<Schema$AnywhereCache>): void;
1214
1282
  disable(
1215
1283
  paramsOrCallback?:
1216
- | Params$Resource$Anywherecache$Disable
1284
+ | Params$Resource$Anywherecaches$Disable
1217
1285
  | BodyResponseCallback<Schema$AnywhereCache>
1218
1286
  | BodyResponseCallback<Readable>,
1219
1287
  optionsOrCallback?:
@@ -1226,12 +1294,12 @@ export namespace storage_v1 {
1226
1294
  | BodyResponseCallback<Readable>
1227
1295
  ): void | GaxiosPromise<Schema$AnywhereCache> | GaxiosPromise<Readable> {
1228
1296
  let params = (paramsOrCallback ||
1229
- {}) as Params$Resource$Anywherecache$Disable;
1297
+ {}) as Params$Resource$Anywherecaches$Disable;
1230
1298
  let options = (optionsOrCallback || {}) as MethodOptions;
1231
1299
 
1232
1300
  if (typeof paramsOrCallback === 'function') {
1233
1301
  callback = paramsOrCallback;
1234
- params = {} as Params$Resource$Anywherecache$Disable;
1302
+ params = {} as Params$Resource$Anywherecaches$Disable;
1235
1303
  options = {};
1236
1304
  }
1237
1305
 
@@ -1276,31 +1344,31 @@ export namespace storage_v1 {
1276
1344
  * @returns A promise if used with async/await, or void if used with a callback.
1277
1345
  */
1278
1346
  get(
1279
- params: Params$Resource$Anywherecache$Get,
1347
+ params: Params$Resource$Anywherecaches$Get,
1280
1348
  options: StreamMethodOptions
1281
1349
  ): GaxiosPromise<Readable>;
1282
1350
  get(
1283
- params?: Params$Resource$Anywherecache$Get,
1351
+ params?: Params$Resource$Anywherecaches$Get,
1284
1352
  options?: MethodOptions
1285
1353
  ): GaxiosPromise<Schema$AnywhereCache>;
1286
1354
  get(
1287
- params: Params$Resource$Anywherecache$Get,
1355
+ params: Params$Resource$Anywherecaches$Get,
1288
1356
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
1289
1357
  callback: BodyResponseCallback<Readable>
1290
1358
  ): void;
1291
1359
  get(
1292
- params: Params$Resource$Anywherecache$Get,
1360
+ params: Params$Resource$Anywherecaches$Get,
1293
1361
  options: MethodOptions | BodyResponseCallback<Schema$AnywhereCache>,
1294
1362
  callback: BodyResponseCallback<Schema$AnywhereCache>
1295
1363
  ): void;
1296
1364
  get(
1297
- params: Params$Resource$Anywherecache$Get,
1365
+ params: Params$Resource$Anywherecaches$Get,
1298
1366
  callback: BodyResponseCallback<Schema$AnywhereCache>
1299
1367
  ): void;
1300
1368
  get(callback: BodyResponseCallback<Schema$AnywhereCache>): void;
1301
1369
  get(
1302
1370
  paramsOrCallback?:
1303
- | Params$Resource$Anywherecache$Get
1371
+ | Params$Resource$Anywherecaches$Get
1304
1372
  | BodyResponseCallback<Schema$AnywhereCache>
1305
1373
  | BodyResponseCallback<Readable>,
1306
1374
  optionsOrCallback?:
@@ -1313,12 +1381,12 @@ export namespace storage_v1 {
1313
1381
  | BodyResponseCallback<Readable>
1314
1382
  ): void | GaxiosPromise<Schema$AnywhereCache> | GaxiosPromise<Readable> {
1315
1383
  let params = (paramsOrCallback ||
1316
- {}) as Params$Resource$Anywherecache$Get;
1384
+ {}) as Params$Resource$Anywherecaches$Get;
1317
1385
  let options = (optionsOrCallback || {}) as MethodOptions;
1318
1386
 
1319
1387
  if (typeof paramsOrCallback === 'function') {
1320
1388
  callback = paramsOrCallback;
1321
- params = {} as Params$Resource$Anywherecache$Get;
1389
+ params = {} as Params$Resource$Anywherecaches$Get;
1322
1390
  options = {};
1323
1391
  }
1324
1392
 
@@ -1363,27 +1431,27 @@ export namespace storage_v1 {
1363
1431
  * @returns A promise if used with async/await, or void if used with a callback.
1364
1432
  */
1365
1433
  insert(
1366
- params: Params$Resource$Anywherecache$Insert,
1434
+ params: Params$Resource$Anywherecaches$Insert,
1367
1435
  options: StreamMethodOptions
1368
1436
  ): GaxiosPromise<Readable>;
1369
1437
  insert(
1370
- params?: Params$Resource$Anywherecache$Insert,
1438
+ params?: Params$Resource$Anywherecaches$Insert,
1371
1439
  options?: MethodOptions
1372
1440
  ): GaxiosPromise<Schema$GoogleLongrunningOperation>;
1373
1441
  insert(
1374
- params: Params$Resource$Anywherecache$Insert,
1442
+ params: Params$Resource$Anywherecaches$Insert,
1375
1443
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
1376
1444
  callback: BodyResponseCallback<Readable>
1377
1445
  ): void;
1378
1446
  insert(
1379
- params: Params$Resource$Anywherecache$Insert,
1447
+ params: Params$Resource$Anywherecaches$Insert,
1380
1448
  options:
1381
1449
  | MethodOptions
1382
1450
  | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
1383
1451
  callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
1384
1452
  ): void;
1385
1453
  insert(
1386
- params: Params$Resource$Anywherecache$Insert,
1454
+ params: Params$Resource$Anywherecaches$Insert,
1387
1455
  callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
1388
1456
  ): void;
1389
1457
  insert(
@@ -1391,7 +1459,7 @@ export namespace storage_v1 {
1391
1459
  ): void;
1392
1460
  insert(
1393
1461
  paramsOrCallback?:
1394
- | Params$Resource$Anywherecache$Insert
1462
+ | Params$Resource$Anywherecaches$Insert
1395
1463
  | BodyResponseCallback<Schema$GoogleLongrunningOperation>
1396
1464
  | BodyResponseCallback<Readable>,
1397
1465
  optionsOrCallback?:
@@ -1407,12 +1475,12 @@ export namespace storage_v1 {
1407
1475
  | GaxiosPromise<Schema$GoogleLongrunningOperation>
1408
1476
  | GaxiosPromise<Readable> {
1409
1477
  let params = (paramsOrCallback ||
1410
- {}) as Params$Resource$Anywherecache$Insert;
1478
+ {}) as Params$Resource$Anywherecaches$Insert;
1411
1479
  let options = (optionsOrCallback || {}) as MethodOptions;
1412
1480
 
1413
1481
  if (typeof paramsOrCallback === 'function') {
1414
1482
  callback = paramsOrCallback;
1415
- params = {} as Params$Resource$Anywherecache$Insert;
1483
+ params = {} as Params$Resource$Anywherecaches$Insert;
1416
1484
  options = {};
1417
1485
  }
1418
1486
 
@@ -1457,31 +1525,31 @@ export namespace storage_v1 {
1457
1525
  * @returns A promise if used with async/await, or void if used with a callback.
1458
1526
  */
1459
1527
  list(
1460
- params: Params$Resource$Anywherecache$List,
1528
+ params: Params$Resource$Anywherecaches$List,
1461
1529
  options: StreamMethodOptions
1462
1530
  ): GaxiosPromise<Readable>;
1463
1531
  list(
1464
- params?: Params$Resource$Anywherecache$List,
1532
+ params?: Params$Resource$Anywherecaches$List,
1465
1533
  options?: MethodOptions
1466
1534
  ): GaxiosPromise<Schema$AnywhereCaches>;
1467
1535
  list(
1468
- params: Params$Resource$Anywherecache$List,
1536
+ params: Params$Resource$Anywherecaches$List,
1469
1537
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
1470
1538
  callback: BodyResponseCallback<Readable>
1471
1539
  ): void;
1472
1540
  list(
1473
- params: Params$Resource$Anywherecache$List,
1541
+ params: Params$Resource$Anywherecaches$List,
1474
1542
  options: MethodOptions | BodyResponseCallback<Schema$AnywhereCaches>,
1475
1543
  callback: BodyResponseCallback<Schema$AnywhereCaches>
1476
1544
  ): void;
1477
1545
  list(
1478
- params: Params$Resource$Anywherecache$List,
1546
+ params: Params$Resource$Anywherecaches$List,
1479
1547
  callback: BodyResponseCallback<Schema$AnywhereCaches>
1480
1548
  ): void;
1481
1549
  list(callback: BodyResponseCallback<Schema$AnywhereCaches>): void;
1482
1550
  list(
1483
1551
  paramsOrCallback?:
1484
- | Params$Resource$Anywherecache$List
1552
+ | Params$Resource$Anywherecaches$List
1485
1553
  | BodyResponseCallback<Schema$AnywhereCaches>
1486
1554
  | BodyResponseCallback<Readable>,
1487
1555
  optionsOrCallback?:
@@ -1494,12 +1562,12 @@ export namespace storage_v1 {
1494
1562
  | BodyResponseCallback<Readable>
1495
1563
  ): void | GaxiosPromise<Schema$AnywhereCaches> | GaxiosPromise<Readable> {
1496
1564
  let params = (paramsOrCallback ||
1497
- {}) as Params$Resource$Anywherecache$List;
1565
+ {}) as Params$Resource$Anywherecaches$List;
1498
1566
  let options = (optionsOrCallback || {}) as MethodOptions;
1499
1567
 
1500
1568
  if (typeof paramsOrCallback === 'function') {
1501
1569
  callback = paramsOrCallback;
1502
- params = {} as Params$Resource$Anywherecache$List;
1570
+ params = {} as Params$Resource$Anywherecaches$List;
1503
1571
  options = {};
1504
1572
  }
1505
1573
 
@@ -1544,31 +1612,31 @@ export namespace storage_v1 {
1544
1612
  * @returns A promise if used with async/await, or void if used with a callback.
1545
1613
  */
1546
1614
  pause(
1547
- params: Params$Resource$Anywherecache$Pause,
1615
+ params: Params$Resource$Anywherecaches$Pause,
1548
1616
  options: StreamMethodOptions
1549
1617
  ): GaxiosPromise<Readable>;
1550
1618
  pause(
1551
- params?: Params$Resource$Anywherecache$Pause,
1619
+ params?: Params$Resource$Anywherecaches$Pause,
1552
1620
  options?: MethodOptions
1553
1621
  ): GaxiosPromise<Schema$AnywhereCache>;
1554
1622
  pause(
1555
- params: Params$Resource$Anywherecache$Pause,
1623
+ params: Params$Resource$Anywherecaches$Pause,
1556
1624
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
1557
1625
  callback: BodyResponseCallback<Readable>
1558
1626
  ): void;
1559
1627
  pause(
1560
- params: Params$Resource$Anywherecache$Pause,
1628
+ params: Params$Resource$Anywherecaches$Pause,
1561
1629
  options: MethodOptions | BodyResponseCallback<Schema$AnywhereCache>,
1562
1630
  callback: BodyResponseCallback<Schema$AnywhereCache>
1563
1631
  ): void;
1564
1632
  pause(
1565
- params: Params$Resource$Anywherecache$Pause,
1633
+ params: Params$Resource$Anywherecaches$Pause,
1566
1634
  callback: BodyResponseCallback<Schema$AnywhereCache>
1567
1635
  ): void;
1568
1636
  pause(callback: BodyResponseCallback<Schema$AnywhereCache>): void;
1569
1637
  pause(
1570
1638
  paramsOrCallback?:
1571
- | Params$Resource$Anywherecache$Pause
1639
+ | Params$Resource$Anywherecaches$Pause
1572
1640
  | BodyResponseCallback<Schema$AnywhereCache>
1573
1641
  | BodyResponseCallback<Readable>,
1574
1642
  optionsOrCallback?:
@@ -1581,12 +1649,12 @@ export namespace storage_v1 {
1581
1649
  | BodyResponseCallback<Readable>
1582
1650
  ): void | GaxiosPromise<Schema$AnywhereCache> | GaxiosPromise<Readable> {
1583
1651
  let params = (paramsOrCallback ||
1584
- {}) as Params$Resource$Anywherecache$Pause;
1652
+ {}) as Params$Resource$Anywherecaches$Pause;
1585
1653
  let options = (optionsOrCallback || {}) as MethodOptions;
1586
1654
 
1587
1655
  if (typeof paramsOrCallback === 'function') {
1588
1656
  callback = paramsOrCallback;
1589
- params = {} as Params$Resource$Anywherecache$Pause;
1657
+ params = {} as Params$Resource$Anywherecaches$Pause;
1590
1658
  options = {};
1591
1659
  }
1592
1660
 
@@ -1631,31 +1699,31 @@ export namespace storage_v1 {
1631
1699
  * @returns A promise if used with async/await, or void if used with a callback.
1632
1700
  */
1633
1701
  resume(
1634
- params: Params$Resource$Anywherecache$Resume,
1702
+ params: Params$Resource$Anywherecaches$Resume,
1635
1703
  options: StreamMethodOptions
1636
1704
  ): GaxiosPromise<Readable>;
1637
1705
  resume(
1638
- params?: Params$Resource$Anywherecache$Resume,
1706
+ params?: Params$Resource$Anywherecaches$Resume,
1639
1707
  options?: MethodOptions
1640
1708
  ): GaxiosPromise<Schema$AnywhereCache>;
1641
1709
  resume(
1642
- params: Params$Resource$Anywherecache$Resume,
1710
+ params: Params$Resource$Anywherecaches$Resume,
1643
1711
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
1644
1712
  callback: BodyResponseCallback<Readable>
1645
1713
  ): void;
1646
1714
  resume(
1647
- params: Params$Resource$Anywherecache$Resume,
1715
+ params: Params$Resource$Anywherecaches$Resume,
1648
1716
  options: MethodOptions | BodyResponseCallback<Schema$AnywhereCache>,
1649
1717
  callback: BodyResponseCallback<Schema$AnywhereCache>
1650
1718
  ): void;
1651
1719
  resume(
1652
- params: Params$Resource$Anywherecache$Resume,
1720
+ params: Params$Resource$Anywherecaches$Resume,
1653
1721
  callback: BodyResponseCallback<Schema$AnywhereCache>
1654
1722
  ): void;
1655
1723
  resume(callback: BodyResponseCallback<Schema$AnywhereCache>): void;
1656
1724
  resume(
1657
1725
  paramsOrCallback?:
1658
- | Params$Resource$Anywherecache$Resume
1726
+ | Params$Resource$Anywherecaches$Resume
1659
1727
  | BodyResponseCallback<Schema$AnywhereCache>
1660
1728
  | BodyResponseCallback<Readable>,
1661
1729
  optionsOrCallback?:
@@ -1668,12 +1736,12 @@ export namespace storage_v1 {
1668
1736
  | BodyResponseCallback<Readable>
1669
1737
  ): void | GaxiosPromise<Schema$AnywhereCache> | GaxiosPromise<Readable> {
1670
1738
  let params = (paramsOrCallback ||
1671
- {}) as Params$Resource$Anywherecache$Resume;
1739
+ {}) as Params$Resource$Anywherecaches$Resume;
1672
1740
  let options = (optionsOrCallback || {}) as MethodOptions;
1673
1741
 
1674
1742
  if (typeof paramsOrCallback === 'function') {
1675
1743
  callback = paramsOrCallback;
1676
- params = {} as Params$Resource$Anywherecache$Resume;
1744
+ params = {} as Params$Resource$Anywherecaches$Resume;
1677
1745
  options = {};
1678
1746
  }
1679
1747
 
@@ -1718,27 +1786,27 @@ export namespace storage_v1 {
1718
1786
  * @returns A promise if used with async/await, or void if used with a callback.
1719
1787
  */
1720
1788
  update(
1721
- params: Params$Resource$Anywherecache$Update,
1789
+ params: Params$Resource$Anywherecaches$Update,
1722
1790
  options: StreamMethodOptions
1723
1791
  ): GaxiosPromise<Readable>;
1724
1792
  update(
1725
- params?: Params$Resource$Anywherecache$Update,
1793
+ params?: Params$Resource$Anywherecaches$Update,
1726
1794
  options?: MethodOptions
1727
1795
  ): GaxiosPromise<Schema$GoogleLongrunningOperation>;
1728
1796
  update(
1729
- params: Params$Resource$Anywherecache$Update,
1797
+ params: Params$Resource$Anywherecaches$Update,
1730
1798
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
1731
1799
  callback: BodyResponseCallback<Readable>
1732
1800
  ): void;
1733
1801
  update(
1734
- params: Params$Resource$Anywherecache$Update,
1802
+ params: Params$Resource$Anywherecaches$Update,
1735
1803
  options:
1736
1804
  | MethodOptions
1737
1805
  | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
1738
1806
  callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
1739
1807
  ): void;
1740
1808
  update(
1741
- params: Params$Resource$Anywherecache$Update,
1809
+ params: Params$Resource$Anywherecaches$Update,
1742
1810
  callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
1743
1811
  ): void;
1744
1812
  update(
@@ -1746,7 +1814,7 @@ export namespace storage_v1 {
1746
1814
  ): void;
1747
1815
  update(
1748
1816
  paramsOrCallback?:
1749
- | Params$Resource$Anywherecache$Update
1817
+ | Params$Resource$Anywherecaches$Update
1750
1818
  | BodyResponseCallback<Schema$GoogleLongrunningOperation>
1751
1819
  | BodyResponseCallback<Readable>,
1752
1820
  optionsOrCallback?:
@@ -1762,12 +1830,12 @@ export namespace storage_v1 {
1762
1830
  | GaxiosPromise<Schema$GoogleLongrunningOperation>
1763
1831
  | GaxiosPromise<Readable> {
1764
1832
  let params = (paramsOrCallback ||
1765
- {}) as Params$Resource$Anywherecache$Update;
1833
+ {}) as Params$Resource$Anywherecaches$Update;
1766
1834
  let options = (optionsOrCallback || {}) as MethodOptions;
1767
1835
 
1768
1836
  if (typeof paramsOrCallback === 'function') {
1769
1837
  callback = paramsOrCallback;
1770
- params = {} as Params$Resource$Anywherecache$Update;
1838
+ params = {} as Params$Resource$Anywherecaches$Update;
1771
1839
  options = {};
1772
1840
  }
1773
1841
 
@@ -1804,32 +1872,32 @@ export namespace storage_v1 {
1804
1872
  }
1805
1873
  }
1806
1874
 
1807
- export interface Params$Resource$Anywherecache$Disable
1875
+ export interface Params$Resource$Anywherecaches$Disable
1808
1876
  extends StandardParameters {
1809
1877
  /**
1810
1878
  * The ID of requested Anywhere Cache instance.
1811
1879
  */
1812
1880
  anywhereCacheId?: string;
1813
1881
  /**
1814
- * Name of the partent bucket
1882
+ * Name of the parent bucket.
1815
1883
  */
1816
1884
  bucket?: string;
1817
1885
  }
1818
- export interface Params$Resource$Anywherecache$Get
1886
+ export interface Params$Resource$Anywherecaches$Get
1819
1887
  extends StandardParameters {
1820
1888
  /**
1821
1889
  * The ID of requested Anywhere Cache instance.
1822
1890
  */
1823
1891
  anywhereCacheId?: string;
1824
1892
  /**
1825
- * Name of the partent bucket
1893
+ * Name of the parent bucket.
1826
1894
  */
1827
1895
  bucket?: string;
1828
1896
  }
1829
- export interface Params$Resource$Anywherecache$Insert
1897
+ export interface Params$Resource$Anywherecaches$Insert
1830
1898
  extends StandardParameters {
1831
1899
  /**
1832
- * Name of the partent bucket
1900
+ * Name of the parent bucket.
1833
1901
  */
1834
1902
  bucket?: string;
1835
1903
 
@@ -1838,14 +1906,14 @@ export namespace storage_v1 {
1838
1906
  */
1839
1907
  requestBody?: Schema$AnywhereCache;
1840
1908
  }
1841
- export interface Params$Resource$Anywherecache$List
1909
+ export interface Params$Resource$Anywherecaches$List
1842
1910
  extends StandardParameters {
1843
1911
  /**
1844
- * Name of the partent bucket
1912
+ * Name of the parent bucket.
1845
1913
  */
1846
1914
  bucket?: string;
1847
1915
  /**
1848
- * Maximum number of items return in a single page of responses. Maximum 1000.
1916
+ * Maximum number of items to return in a single page of responses. Maximum 1000.
1849
1917
  */
1850
1918
  pageSize?: number;
1851
1919
  /**
@@ -1853,36 +1921,36 @@ export namespace storage_v1 {
1853
1921
  */
1854
1922
  pageToken?: string;
1855
1923
  }
1856
- export interface Params$Resource$Anywherecache$Pause
1924
+ export interface Params$Resource$Anywherecaches$Pause
1857
1925
  extends StandardParameters {
1858
1926
  /**
1859
1927
  * The ID of requested Anywhere Cache instance.
1860
1928
  */
1861
1929
  anywhereCacheId?: string;
1862
1930
  /**
1863
- * Name of the partent bucket
1931
+ * Name of the parent bucket.
1864
1932
  */
1865
1933
  bucket?: string;
1866
1934
  }
1867
- export interface Params$Resource$Anywherecache$Resume
1935
+ export interface Params$Resource$Anywherecaches$Resume
1868
1936
  extends StandardParameters {
1869
1937
  /**
1870
1938
  * The ID of requested Anywhere Cache instance.
1871
1939
  */
1872
1940
  anywhereCacheId?: string;
1873
1941
  /**
1874
- * Name of the partent bucket
1942
+ * Name of the parent bucket.
1875
1943
  */
1876
1944
  bucket?: string;
1877
1945
  }
1878
- export interface Params$Resource$Anywherecache$Update
1946
+ export interface Params$Resource$Anywherecaches$Update
1879
1947
  extends StandardParameters {
1880
1948
  /**
1881
1949
  * The ID of requested Anywhere Cache instance.
1882
1950
  */
1883
1951
  anywhereCacheId?: string;
1884
1952
  /**
1885
- * Name of the partent bucket
1953
+ * Name of the parent bucket.
1886
1954
  */
1887
1955
  bucket?: string;
1888
1956
 
@@ -4375,6 +4443,552 @@ export namespace storage_v1 {
4375
4443
  requestBody?: Schema$ObjectAccessControl;
4376
4444
  }
4377
4445
 
4446
+ export class Resource$Folders {
4447
+ context: APIRequestContext;
4448
+ constructor(context: APIRequestContext) {
4449
+ this.context = context;
4450
+ }
4451
+
4452
+ /**
4453
+ * Permanently deletes a folder. Only applicable to buckets with hierarchical namespace enabled.
4454
+ *
4455
+ * @param params - Parameters for request
4456
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4457
+ * @param callback - Optional callback that handles the response.
4458
+ * @returns A promise if used with async/await, or void if used with a callback.
4459
+ */
4460
+ delete(
4461
+ params: Params$Resource$Folders$Delete,
4462
+ options: StreamMethodOptions
4463
+ ): GaxiosPromise<Readable>;
4464
+ delete(
4465
+ params?: Params$Resource$Folders$Delete,
4466
+ options?: MethodOptions
4467
+ ): GaxiosPromise<void>;
4468
+ delete(
4469
+ params: Params$Resource$Folders$Delete,
4470
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4471
+ callback: BodyResponseCallback<Readable>
4472
+ ): void;
4473
+ delete(
4474
+ params: Params$Resource$Folders$Delete,
4475
+ options: MethodOptions | BodyResponseCallback<void>,
4476
+ callback: BodyResponseCallback<void>
4477
+ ): void;
4478
+ delete(
4479
+ params: Params$Resource$Folders$Delete,
4480
+ callback: BodyResponseCallback<void>
4481
+ ): void;
4482
+ delete(callback: BodyResponseCallback<void>): void;
4483
+ delete(
4484
+ paramsOrCallback?:
4485
+ | Params$Resource$Folders$Delete
4486
+ | BodyResponseCallback<void>
4487
+ | BodyResponseCallback<Readable>,
4488
+ optionsOrCallback?:
4489
+ | MethodOptions
4490
+ | StreamMethodOptions
4491
+ | BodyResponseCallback<void>
4492
+ | BodyResponseCallback<Readable>,
4493
+ callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
4494
+ ): void | GaxiosPromise<void> | GaxiosPromise<Readable> {
4495
+ let params = (paramsOrCallback || {}) as Params$Resource$Folders$Delete;
4496
+ let options = (optionsOrCallback || {}) as MethodOptions;
4497
+
4498
+ if (typeof paramsOrCallback === 'function') {
4499
+ callback = paramsOrCallback;
4500
+ params = {} as Params$Resource$Folders$Delete;
4501
+ options = {};
4502
+ }
4503
+
4504
+ if (typeof optionsOrCallback === 'function') {
4505
+ callback = optionsOrCallback;
4506
+ options = {};
4507
+ }
4508
+
4509
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
4510
+ const parameters = {
4511
+ options: Object.assign(
4512
+ {
4513
+ url: (rootUrl + '/storage/v1/b/{bucket}/folders/{folder}').replace(
4514
+ /([^:]\/)\/+/g,
4515
+ '$1'
4516
+ ),
4517
+ method: 'DELETE',
4518
+ },
4519
+ options
4520
+ ),
4521
+ params,
4522
+ requiredParams: ['bucket', 'folder'],
4523
+ pathParams: ['bucket', 'folder'],
4524
+ context: this.context,
4525
+ };
4526
+ if (callback) {
4527
+ createAPIRequest<void>(
4528
+ parameters,
4529
+ callback as BodyResponseCallback<unknown>
4530
+ );
4531
+ } else {
4532
+ return createAPIRequest<void>(parameters);
4533
+ }
4534
+ }
4535
+
4536
+ /**
4537
+ * Returns metadata for the specified folder. Only applicable to buckets with hierarchical namespace enabled.
4538
+ *
4539
+ * @param params - Parameters for request
4540
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4541
+ * @param callback - Optional callback that handles the response.
4542
+ * @returns A promise if used with async/await, or void if used with a callback.
4543
+ */
4544
+ get(
4545
+ params: Params$Resource$Folders$Get,
4546
+ options: StreamMethodOptions
4547
+ ): GaxiosPromise<Readable>;
4548
+ get(
4549
+ params?: Params$Resource$Folders$Get,
4550
+ options?: MethodOptions
4551
+ ): GaxiosPromise<Schema$Folder>;
4552
+ get(
4553
+ params: Params$Resource$Folders$Get,
4554
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4555
+ callback: BodyResponseCallback<Readable>
4556
+ ): void;
4557
+ get(
4558
+ params: Params$Resource$Folders$Get,
4559
+ options: MethodOptions | BodyResponseCallback<Schema$Folder>,
4560
+ callback: BodyResponseCallback<Schema$Folder>
4561
+ ): void;
4562
+ get(
4563
+ params: Params$Resource$Folders$Get,
4564
+ callback: BodyResponseCallback<Schema$Folder>
4565
+ ): void;
4566
+ get(callback: BodyResponseCallback<Schema$Folder>): void;
4567
+ get(
4568
+ paramsOrCallback?:
4569
+ | Params$Resource$Folders$Get
4570
+ | BodyResponseCallback<Schema$Folder>
4571
+ | BodyResponseCallback<Readable>,
4572
+ optionsOrCallback?:
4573
+ | MethodOptions
4574
+ | StreamMethodOptions
4575
+ | BodyResponseCallback<Schema$Folder>
4576
+ | BodyResponseCallback<Readable>,
4577
+ callback?:
4578
+ | BodyResponseCallback<Schema$Folder>
4579
+ | BodyResponseCallback<Readable>
4580
+ ): void | GaxiosPromise<Schema$Folder> | GaxiosPromise<Readable> {
4581
+ let params = (paramsOrCallback || {}) as Params$Resource$Folders$Get;
4582
+ let options = (optionsOrCallback || {}) as MethodOptions;
4583
+
4584
+ if (typeof paramsOrCallback === 'function') {
4585
+ callback = paramsOrCallback;
4586
+ params = {} as Params$Resource$Folders$Get;
4587
+ options = {};
4588
+ }
4589
+
4590
+ if (typeof optionsOrCallback === 'function') {
4591
+ callback = optionsOrCallback;
4592
+ options = {};
4593
+ }
4594
+
4595
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
4596
+ const parameters = {
4597
+ options: Object.assign(
4598
+ {
4599
+ url: (rootUrl + '/storage/v1/b/{bucket}/folders/{folder}').replace(
4600
+ /([^:]\/)\/+/g,
4601
+ '$1'
4602
+ ),
4603
+ method: 'GET',
4604
+ },
4605
+ options
4606
+ ),
4607
+ params,
4608
+ requiredParams: ['bucket', 'folder'],
4609
+ pathParams: ['bucket', 'folder'],
4610
+ context: this.context,
4611
+ };
4612
+ if (callback) {
4613
+ createAPIRequest<Schema$Folder>(
4614
+ parameters,
4615
+ callback as BodyResponseCallback<unknown>
4616
+ );
4617
+ } else {
4618
+ return createAPIRequest<Schema$Folder>(parameters);
4619
+ }
4620
+ }
4621
+
4622
+ /**
4623
+ * Creates a new folder. Only applicable to buckets with hierarchical namespace enabled.
4624
+ *
4625
+ * @param params - Parameters for request
4626
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4627
+ * @param callback - Optional callback that handles the response.
4628
+ * @returns A promise if used with async/await, or void if used with a callback.
4629
+ */
4630
+ insert(
4631
+ params: Params$Resource$Folders$Insert,
4632
+ options: StreamMethodOptions
4633
+ ): GaxiosPromise<Readable>;
4634
+ insert(
4635
+ params?: Params$Resource$Folders$Insert,
4636
+ options?: MethodOptions
4637
+ ): GaxiosPromise<Schema$Folder>;
4638
+ insert(
4639
+ params: Params$Resource$Folders$Insert,
4640
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4641
+ callback: BodyResponseCallback<Readable>
4642
+ ): void;
4643
+ insert(
4644
+ params: Params$Resource$Folders$Insert,
4645
+ options: MethodOptions | BodyResponseCallback<Schema$Folder>,
4646
+ callback: BodyResponseCallback<Schema$Folder>
4647
+ ): void;
4648
+ insert(
4649
+ params: Params$Resource$Folders$Insert,
4650
+ callback: BodyResponseCallback<Schema$Folder>
4651
+ ): void;
4652
+ insert(callback: BodyResponseCallback<Schema$Folder>): void;
4653
+ insert(
4654
+ paramsOrCallback?:
4655
+ | Params$Resource$Folders$Insert
4656
+ | BodyResponseCallback<Schema$Folder>
4657
+ | BodyResponseCallback<Readable>,
4658
+ optionsOrCallback?:
4659
+ | MethodOptions
4660
+ | StreamMethodOptions
4661
+ | BodyResponseCallback<Schema$Folder>
4662
+ | BodyResponseCallback<Readable>,
4663
+ callback?:
4664
+ | BodyResponseCallback<Schema$Folder>
4665
+ | BodyResponseCallback<Readable>
4666
+ ): void | GaxiosPromise<Schema$Folder> | GaxiosPromise<Readable> {
4667
+ let params = (paramsOrCallback || {}) as Params$Resource$Folders$Insert;
4668
+ let options = (optionsOrCallback || {}) as MethodOptions;
4669
+
4670
+ if (typeof paramsOrCallback === 'function') {
4671
+ callback = paramsOrCallback;
4672
+ params = {} as Params$Resource$Folders$Insert;
4673
+ options = {};
4674
+ }
4675
+
4676
+ if (typeof optionsOrCallback === 'function') {
4677
+ callback = optionsOrCallback;
4678
+ options = {};
4679
+ }
4680
+
4681
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
4682
+ const parameters = {
4683
+ options: Object.assign(
4684
+ {
4685
+ url: (rootUrl + '/storage/v1/b/{bucket}/folders').replace(
4686
+ /([^:]\/)\/+/g,
4687
+ '$1'
4688
+ ),
4689
+ method: 'POST',
4690
+ },
4691
+ options
4692
+ ),
4693
+ params,
4694
+ requiredParams: ['bucket'],
4695
+ pathParams: ['bucket'],
4696
+ context: this.context,
4697
+ };
4698
+ if (callback) {
4699
+ createAPIRequest<Schema$Folder>(
4700
+ parameters,
4701
+ callback as BodyResponseCallback<unknown>
4702
+ );
4703
+ } else {
4704
+ return createAPIRequest<Schema$Folder>(parameters);
4705
+ }
4706
+ }
4707
+
4708
+ /**
4709
+ * Retrieves a list of folders matching the criteria. Only applicable to buckets with hierarchical namespace enabled.
4710
+ *
4711
+ * @param params - Parameters for request
4712
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4713
+ * @param callback - Optional callback that handles the response.
4714
+ * @returns A promise if used with async/await, or void if used with a callback.
4715
+ */
4716
+ list(
4717
+ params: Params$Resource$Folders$List,
4718
+ options: StreamMethodOptions
4719
+ ): GaxiosPromise<Readable>;
4720
+ list(
4721
+ params?: Params$Resource$Folders$List,
4722
+ options?: MethodOptions
4723
+ ): GaxiosPromise<Schema$Folders>;
4724
+ list(
4725
+ params: Params$Resource$Folders$List,
4726
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4727
+ callback: BodyResponseCallback<Readable>
4728
+ ): void;
4729
+ list(
4730
+ params: Params$Resource$Folders$List,
4731
+ options: MethodOptions | BodyResponseCallback<Schema$Folders>,
4732
+ callback: BodyResponseCallback<Schema$Folders>
4733
+ ): void;
4734
+ list(
4735
+ params: Params$Resource$Folders$List,
4736
+ callback: BodyResponseCallback<Schema$Folders>
4737
+ ): void;
4738
+ list(callback: BodyResponseCallback<Schema$Folders>): void;
4739
+ list(
4740
+ paramsOrCallback?:
4741
+ | Params$Resource$Folders$List
4742
+ | BodyResponseCallback<Schema$Folders>
4743
+ | BodyResponseCallback<Readable>,
4744
+ optionsOrCallback?:
4745
+ | MethodOptions
4746
+ | StreamMethodOptions
4747
+ | BodyResponseCallback<Schema$Folders>
4748
+ | BodyResponseCallback<Readable>,
4749
+ callback?:
4750
+ | BodyResponseCallback<Schema$Folders>
4751
+ | BodyResponseCallback<Readable>
4752
+ ): void | GaxiosPromise<Schema$Folders> | GaxiosPromise<Readable> {
4753
+ let params = (paramsOrCallback || {}) as Params$Resource$Folders$List;
4754
+ let options = (optionsOrCallback || {}) as MethodOptions;
4755
+
4756
+ if (typeof paramsOrCallback === 'function') {
4757
+ callback = paramsOrCallback;
4758
+ params = {} as Params$Resource$Folders$List;
4759
+ options = {};
4760
+ }
4761
+
4762
+ if (typeof optionsOrCallback === 'function') {
4763
+ callback = optionsOrCallback;
4764
+ options = {};
4765
+ }
4766
+
4767
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
4768
+ const parameters = {
4769
+ options: Object.assign(
4770
+ {
4771
+ url: (rootUrl + '/storage/v1/b/{bucket}/folders').replace(
4772
+ /([^:]\/)\/+/g,
4773
+ '$1'
4774
+ ),
4775
+ method: 'GET',
4776
+ },
4777
+ options
4778
+ ),
4779
+ params,
4780
+ requiredParams: ['bucket'],
4781
+ pathParams: ['bucket'],
4782
+ context: this.context,
4783
+ };
4784
+ if (callback) {
4785
+ createAPIRequest<Schema$Folders>(
4786
+ parameters,
4787
+ callback as BodyResponseCallback<unknown>
4788
+ );
4789
+ } else {
4790
+ return createAPIRequest<Schema$Folders>(parameters);
4791
+ }
4792
+ }
4793
+
4794
+ /**
4795
+ * Renames a source folder to a destination folder. Only applicable to buckets with hierarchical namespace enabled.
4796
+ *
4797
+ * @param params - Parameters for request
4798
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4799
+ * @param callback - Optional callback that handles the response.
4800
+ * @returns A promise if used with async/await, or void if used with a callback.
4801
+ */
4802
+ rename(
4803
+ params: Params$Resource$Folders$Rename,
4804
+ options: StreamMethodOptions
4805
+ ): GaxiosPromise<Readable>;
4806
+ rename(
4807
+ params?: Params$Resource$Folders$Rename,
4808
+ options?: MethodOptions
4809
+ ): GaxiosPromise<Schema$GoogleLongrunningOperation>;
4810
+ rename(
4811
+ params: Params$Resource$Folders$Rename,
4812
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4813
+ callback: BodyResponseCallback<Readable>
4814
+ ): void;
4815
+ rename(
4816
+ params: Params$Resource$Folders$Rename,
4817
+ options:
4818
+ | MethodOptions
4819
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
4820
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
4821
+ ): void;
4822
+ rename(
4823
+ params: Params$Resource$Folders$Rename,
4824
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
4825
+ ): void;
4826
+ rename(
4827
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
4828
+ ): void;
4829
+ rename(
4830
+ paramsOrCallback?:
4831
+ | Params$Resource$Folders$Rename
4832
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
4833
+ | BodyResponseCallback<Readable>,
4834
+ optionsOrCallback?:
4835
+ | MethodOptions
4836
+ | StreamMethodOptions
4837
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
4838
+ | BodyResponseCallback<Readable>,
4839
+ callback?:
4840
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
4841
+ | BodyResponseCallback<Readable>
4842
+ ):
4843
+ | void
4844
+ | GaxiosPromise<Schema$GoogleLongrunningOperation>
4845
+ | GaxiosPromise<Readable> {
4846
+ let params = (paramsOrCallback || {}) as Params$Resource$Folders$Rename;
4847
+ let options = (optionsOrCallback || {}) as MethodOptions;
4848
+
4849
+ if (typeof paramsOrCallback === 'function') {
4850
+ callback = paramsOrCallback;
4851
+ params = {} as Params$Resource$Folders$Rename;
4852
+ options = {};
4853
+ }
4854
+
4855
+ if (typeof optionsOrCallback === 'function') {
4856
+ callback = optionsOrCallback;
4857
+ options = {};
4858
+ }
4859
+
4860
+ const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
4861
+ const parameters = {
4862
+ options: Object.assign(
4863
+ {
4864
+ url: (
4865
+ rootUrl +
4866
+ '/storage/v1/b/{bucket}/folders/{sourceFolder}/renameTo/folders/{destinationFolder}'
4867
+ ).replace(/([^:]\/)\/+/g, '$1'),
4868
+ method: 'POST',
4869
+ },
4870
+ options
4871
+ ),
4872
+ params,
4873
+ requiredParams: ['bucket', 'sourceFolder', 'destinationFolder'],
4874
+ pathParams: ['bucket', 'destinationFolder', 'sourceFolder'],
4875
+ context: this.context,
4876
+ };
4877
+ if (callback) {
4878
+ createAPIRequest<Schema$GoogleLongrunningOperation>(
4879
+ parameters,
4880
+ callback as BodyResponseCallback<unknown>
4881
+ );
4882
+ } else {
4883
+ return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
4884
+ }
4885
+ }
4886
+ }
4887
+
4888
+ export interface Params$Resource$Folders$Delete extends StandardParameters {
4889
+ /**
4890
+ * Name of the bucket in which the folder resides.
4891
+ */
4892
+ bucket?: string;
4893
+ /**
4894
+ * Name of a folder.
4895
+ */
4896
+ folder?: string;
4897
+ /**
4898
+ * If set, only deletes the folder if its metageneration matches this value.
4899
+ */
4900
+ ifMetagenerationMatch?: string;
4901
+ /**
4902
+ * If set, only deletes the folder if its metageneration does not match this value.
4903
+ */
4904
+ ifMetagenerationNotMatch?: string;
4905
+ }
4906
+ export interface Params$Resource$Folders$Get extends StandardParameters {
4907
+ /**
4908
+ * Name of the bucket in which the folder resides.
4909
+ */
4910
+ bucket?: string;
4911
+ /**
4912
+ * Name of a folder.
4913
+ */
4914
+ folder?: string;
4915
+ /**
4916
+ * Makes the return of the folder metadata conditional on whether the folder's current metageneration matches the given value.
4917
+ */
4918
+ ifMetagenerationMatch?: string;
4919
+ /**
4920
+ * Makes the return of the folder metadata conditional on whether the folder's current metageneration does not match the given value.
4921
+ */
4922
+ ifMetagenerationNotMatch?: string;
4923
+ }
4924
+ export interface Params$Resource$Folders$Insert extends StandardParameters {
4925
+ /**
4926
+ * Name of the bucket in which the folder resides.
4927
+ */
4928
+ bucket?: string;
4929
+ /**
4930
+ * If true, any parent folder which doesn’t exist will be created automatically.
4931
+ */
4932
+ recursive?: boolean;
4933
+
4934
+ /**
4935
+ * Request body metadata
4936
+ */
4937
+ requestBody?: Schema$Folder;
4938
+ }
4939
+ export interface Params$Resource$Folders$List extends StandardParameters {
4940
+ /**
4941
+ * Name of the bucket in which to look for folders.
4942
+ */
4943
+ bucket?: string;
4944
+ /**
4945
+ * Returns results in a directory-like mode. The only supported value is '/'. If set, items will only contain folders that either exactly match the prefix, or are one level below the prefix.
4946
+ */
4947
+ delimiter?: string;
4948
+ /**
4949
+ * Filter results to folders whose names are lexicographically before endOffset. If startOffset is also set, the folders listed will have names between startOffset (inclusive) and endOffset (exclusive).
4950
+ */
4951
+ endOffset?: string;
4952
+ /**
4953
+ * Maximum number of items to return in a single page of responses.
4954
+ */
4955
+ pageSize?: number;
4956
+ /**
4957
+ * A previously-returned page token representing part of the larger set of results to view.
4958
+ */
4959
+ pageToken?: string;
4960
+ /**
4961
+ * Filter results to folders whose paths begin with this prefix. If set, the value must either be an empty string or end with a '/'.
4962
+ */
4963
+ prefix?: string;
4964
+ /**
4965
+ * Filter results to folders whose names are lexicographically equal to or after startOffset. If endOffset is also set, the folders listed will have names between startOffset (inclusive) and endOffset (exclusive).
4966
+ */
4967
+ startOffset?: string;
4968
+ }
4969
+ export interface Params$Resource$Folders$Rename extends StandardParameters {
4970
+ /**
4971
+ * Name of the bucket in which the folders are in.
4972
+ */
4973
+ bucket?: string;
4974
+ /**
4975
+ * Name of the destination folder.
4976
+ */
4977
+ destinationFolder?: string;
4978
+ /**
4979
+ * Makes the operation conditional on whether the source object's current metageneration matches the given value.
4980
+ */
4981
+ ifSourceMetagenerationMatch?: string;
4982
+ /**
4983
+ * Makes the operation conditional on whether the source object's current metageneration does not match the given value.
4984
+ */
4985
+ ifSourceMetagenerationNotMatch?: string;
4986
+ /**
4987
+ * Name of the source folder.
4988
+ */
4989
+ sourceFolder?: string;
4990
+ }
4991
+
4378
4992
  export class Resource$Managedfolders {
4379
4993
  context: APIRequestContext;
4380
4994
  constructor(context: APIRequestContext) {
@@ -5070,7 +5684,7 @@ export namespace storage_v1 {
5070
5684
  */
5071
5685
  bucket?: string;
5072
5686
  /**
5073
- * Maximum number of items return in a single page of responses.
5687
+ * Maximum number of items to return in a single page of responses.
5074
5688
  */
5075
5689
  pageSize?: number;
5076
5690
  /**