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