@googleapis/storage 21.3.0 → 22.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/CHANGELOG.md +11 -0
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +2 -162
- package/build/v1.js +0 -31
- package/build/v1.js.map +1 -1
- package/index.ts +1 -4
- package/package.json +1 -1
- package/v1.ts +60 -336
package/v1.ts
CHANGED
|
@@ -354,6 +354,8 @@ export namespace storage_v1 {
|
|
|
354
354
|
matchesSuffix?: string[];
|
|
355
355
|
noncurrentTimeBefore?: string;
|
|
356
356
|
numNewerVersions?: number;
|
|
357
|
+
sizeAboveBytes?: string;
|
|
358
|
+
sizeBelowBytes?: string;
|
|
357
359
|
};
|
|
358
360
|
}>;
|
|
359
361
|
} | null;
|
|
@@ -1386,26 +1388,26 @@ export namespace storage_v1 {
|
|
|
1386
1388
|
*/
|
|
1387
1389
|
kind?: string | null;
|
|
1388
1390
|
/**
|
|
1389
|
-
* The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets, objects, or managedFolders. The supported permissions are as follows:
|
|
1390
|
-
* - storage.buckets.delete - Delete bucket.
|
|
1391
|
-
* - storage.buckets.get - Read bucket metadata.
|
|
1392
|
-
* - storage.buckets.getIamPolicy - Read bucket IAM policy.
|
|
1393
|
-
* - storage.buckets.create - Create bucket.
|
|
1394
|
-
* - storage.buckets.list - List buckets.
|
|
1395
|
-
* - storage.buckets.setIamPolicy - Update bucket IAM policy.
|
|
1396
|
-
* - storage.buckets.update - Update bucket metadata.
|
|
1397
|
-
* - storage.objects.delete - Delete object.
|
|
1398
|
-
* - storage.objects.get - Read object data and metadata.
|
|
1399
|
-
* - storage.objects.getIamPolicy - Read object IAM policy.
|
|
1400
|
-
* - storage.objects.create - Create object.
|
|
1401
|
-
* - storage.objects.list - List objects.
|
|
1402
|
-
* - storage.objects.setIamPolicy - Update object IAM policy.
|
|
1391
|
+
* The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets, objects, or managedFolders. The supported permissions are as follows:
|
|
1392
|
+
* - storage.buckets.delete - Delete bucket.
|
|
1393
|
+
* - storage.buckets.get - Read bucket metadata.
|
|
1394
|
+
* - storage.buckets.getIamPolicy - Read bucket IAM policy.
|
|
1395
|
+
* - storage.buckets.create - Create bucket.
|
|
1396
|
+
* - storage.buckets.list - List buckets.
|
|
1397
|
+
* - storage.buckets.setIamPolicy - Update bucket IAM policy.
|
|
1398
|
+
* - storage.buckets.update - Update bucket metadata.
|
|
1399
|
+
* - storage.objects.delete - Delete object.
|
|
1400
|
+
* - storage.objects.get - Read object data and metadata.
|
|
1401
|
+
* - storage.objects.getIamPolicy - Read object IAM policy.
|
|
1402
|
+
* - storage.objects.create - Create object.
|
|
1403
|
+
* - storage.objects.list - List objects.
|
|
1404
|
+
* - storage.objects.setIamPolicy - Update object IAM policy.
|
|
1403
1405
|
* - storage.objects.update - Update object metadata.
|
|
1404
|
-
* - storage.managedFolders.delete - Delete managed folder.
|
|
1405
|
-
* - storage.managedFolders.get - Read managed folder metadata.
|
|
1406
|
-
* - storage.managedFolders.getIamPolicy - Read managed folder IAM policy.
|
|
1407
|
-
* - storage.managedFolders.create - Create managed folder.
|
|
1408
|
-
* - storage.managedFolders.list - List managed folders.
|
|
1406
|
+
* - storage.managedFolders.delete - Delete managed folder.
|
|
1407
|
+
* - storage.managedFolders.get - Read managed folder metadata.
|
|
1408
|
+
* - storage.managedFolders.getIamPolicy - Read managed folder IAM policy.
|
|
1409
|
+
* - storage.managedFolders.create - Create managed folder.
|
|
1410
|
+
* - storage.managedFolders.list - List managed folders.
|
|
1409
1411
|
* - storage.managedFolders.setIamPolicy - Update managed folder IAM policy.
|
|
1410
1412
|
*/
|
|
1411
1413
|
permissions?: string[] | null;
|
|
@@ -1829,8 +1831,7 @@ export namespace storage_v1 {
|
|
|
1829
1831
|
insert(
|
|
1830
1832
|
params: Params$Resource$Anywherecaches$Insert,
|
|
1831
1833
|
options:
|
|
1832
|
-
|
|
|
1833
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
1834
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
1834
1835
|
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
1835
1836
|
): void;
|
|
1836
1837
|
insert(
|
|
@@ -2461,8 +2462,7 @@ export namespace storage_v1 {
|
|
|
2461
2462
|
update(
|
|
2462
2463
|
params: Params$Resource$Anywherecaches$Update,
|
|
2463
2464
|
options:
|
|
2464
|
-
|
|
|
2465
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
2465
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
2466
2466
|
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
2467
2467
|
): void;
|
|
2468
2468
|
update(
|
|
@@ -3157,8 +3157,7 @@ export namespace storage_v1 {
|
|
|
3157
3157
|
list(
|
|
3158
3158
|
params: Params$Resource$Bucketaccesscontrols$List,
|
|
3159
3159
|
options:
|
|
3160
|
-
|
|
|
3161
|
-
| BodyResponseCallback<Schema$BucketAccessControls>,
|
|
3160
|
+
MethodOptions | BodyResponseCallback<Schema$BucketAccessControls>,
|
|
3162
3161
|
callback: BodyResponseCallback<Schema$BucketAccessControls>
|
|
3163
3162
|
): void;
|
|
3164
3163
|
list(
|
|
@@ -3951,8 +3950,7 @@ export namespace storage_v1 {
|
|
|
3951
3950
|
| BodyResponseCallback<Schema$Bucket>
|
|
3952
3951
|
| BodyResponseCallback<Readable>,
|
|
3953
3952
|
callback?:
|
|
3954
|
-
|
|
3955
|
-
| BodyResponseCallback<Readable>
|
|
3953
|
+
BodyResponseCallback<Schema$Bucket> | BodyResponseCallback<Readable>
|
|
3956
3954
|
):
|
|
3957
3955
|
| void
|
|
3958
3956
|
| Promise<GaxiosResponseWithHTTP2<Schema$Bucket>>
|
|
@@ -4098,8 +4096,7 @@ export namespace storage_v1 {
|
|
|
4098
4096
|
| BodyResponseCallback<Schema$Policy>
|
|
4099
4097
|
| BodyResponseCallback<Readable>,
|
|
4100
4098
|
callback?:
|
|
4101
|
-
|
|
4102
|
-
| BodyResponseCallback<Readable>
|
|
4099
|
+
BodyResponseCallback<Schema$Policy> | BodyResponseCallback<Readable>
|
|
4103
4100
|
):
|
|
4104
4101
|
| void
|
|
4105
4102
|
| Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
|
|
@@ -4483,8 +4480,7 @@ export namespace storage_v1 {
|
|
|
4483
4480
|
| BodyResponseCallback<Schema$Bucket>
|
|
4484
4481
|
| BodyResponseCallback<Readable>,
|
|
4485
4482
|
callback?:
|
|
4486
|
-
|
|
4487
|
-
| BodyResponseCallback<Readable>
|
|
4483
|
+
BodyResponseCallback<Schema$Bucket> | BodyResponseCallback<Readable>
|
|
4488
4484
|
):
|
|
4489
4485
|
| void
|
|
4490
4486
|
| Promise<GaxiosResponseWithHTTP2<Schema$Bucket>>
|
|
@@ -4639,8 +4635,7 @@ export namespace storage_v1 {
|
|
|
4639
4635
|
| BodyResponseCallback<Schema$Buckets>
|
|
4640
4636
|
| BodyResponseCallback<Readable>,
|
|
4641
4637
|
callback?:
|
|
4642
|
-
|
|
4643
|
-
| BodyResponseCallback<Readable>
|
|
4638
|
+
BodyResponseCallback<Schema$Buckets> | BodyResponseCallback<Readable>
|
|
4644
4639
|
):
|
|
4645
4640
|
| void
|
|
4646
4641
|
| Promise<GaxiosResponseWithHTTP2<Schema$Buckets>>
|
|
@@ -4817,8 +4812,7 @@ export namespace storage_v1 {
|
|
|
4817
4812
|
| BodyResponseCallback<Schema$Bucket>
|
|
4818
4813
|
| BodyResponseCallback<Readable>,
|
|
4819
4814
|
callback?:
|
|
4820
|
-
|
|
4821
|
-
| BodyResponseCallback<Readable>
|
|
4815
|
+
BodyResponseCallback<Schema$Bucket> | BodyResponseCallback<Readable>
|
|
4822
4816
|
):
|
|
4823
4817
|
| void
|
|
4824
4818
|
| Promise<GaxiosResponseWithHTTP2<Schema$Bucket>>
|
|
@@ -5050,8 +5044,7 @@ export namespace storage_v1 {
|
|
|
5050
5044
|
| BodyResponseCallback<Schema$Bucket>
|
|
5051
5045
|
| BodyResponseCallback<Readable>,
|
|
5052
5046
|
callback?:
|
|
5053
|
-
|
|
5054
|
-
| BodyResponseCallback<Readable>
|
|
5047
|
+
BodyResponseCallback<Schema$Bucket> | BodyResponseCallback<Readable>
|
|
5055
5048
|
):
|
|
5056
5049
|
| void
|
|
5057
5050
|
| Promise<GaxiosResponseWithHTTP2<Schema$Bucket>>
|
|
@@ -5189,8 +5182,7 @@ export namespace storage_v1 {
|
|
|
5189
5182
|
relocate(
|
|
5190
5183
|
params: Params$Resource$Buckets$Relocate,
|
|
5191
5184
|
options:
|
|
5192
|
-
|
|
|
5193
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
5185
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
5194
5186
|
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
5195
5187
|
): void;
|
|
5196
5188
|
relocate(
|
|
@@ -5394,8 +5386,7 @@ export namespace storage_v1 {
|
|
|
5394
5386
|
| BodyResponseCallback<Schema$Bucket>
|
|
5395
5387
|
| BodyResponseCallback<Readable>,
|
|
5396
5388
|
callback?:
|
|
5397
|
-
|
|
5398
|
-
| BodyResponseCallback<Readable>
|
|
5389
|
+
BodyResponseCallback<Schema$Bucket> | BodyResponseCallback<Readable>
|
|
5399
5390
|
):
|
|
5400
5391
|
| void
|
|
5401
5392
|
| Promise<GaxiosResponseWithHTTP2<Schema$Bucket>>
|
|
@@ -5551,8 +5542,7 @@ export namespace storage_v1 {
|
|
|
5551
5542
|
| BodyResponseCallback<Schema$Policy>
|
|
5552
5543
|
| BodyResponseCallback<Readable>,
|
|
5553
5544
|
callback?:
|
|
5554
|
-
|
|
5555
|
-
| BodyResponseCallback<Readable>
|
|
5545
|
+
BodyResponseCallback<Schema$Policy> | BodyResponseCallback<Readable>
|
|
5556
5546
|
):
|
|
5557
5547
|
| void
|
|
5558
5548
|
| Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
|
|
@@ -5681,8 +5671,7 @@ export namespace storage_v1 {
|
|
|
5681
5671
|
testIamPermissions(
|
|
5682
5672
|
params: Params$Resource$Buckets$Testiampermissions,
|
|
5683
5673
|
options:
|
|
5684
|
-
|
|
|
5685
|
-
| BodyResponseCallback<Schema$TestIamPermissionsResponse>,
|
|
5674
|
+
MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>,
|
|
5686
5675
|
callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>
|
|
5687
5676
|
): void;
|
|
5688
5677
|
testIamPermissions(
|
|
@@ -5936,8 +5925,7 @@ export namespace storage_v1 {
|
|
|
5936
5925
|
| BodyResponseCallback<Schema$Bucket>
|
|
5937
5926
|
| BodyResponseCallback<Readable>,
|
|
5938
5927
|
callback?:
|
|
5939
|
-
|
|
5940
|
-
| BodyResponseCallback<Readable>
|
|
5928
|
+
BodyResponseCallback<Schema$Bucket> | BodyResponseCallback<Readable>
|
|
5941
5929
|
):
|
|
5942
5930
|
| void
|
|
5943
5931
|
| Promise<GaxiosResponseWithHTTP2<Schema$Bucket>>
|
|
@@ -6979,8 +6967,7 @@ export namespace storage_v1 {
|
|
|
6979
6967
|
list(
|
|
6980
6968
|
params: Params$Resource$Defaultobjectaccesscontrols$List,
|
|
6981
6969
|
options:
|
|
6982
|
-
|
|
|
6983
|
-
| BodyResponseCallback<Schema$ObjectAccessControls>,
|
|
6970
|
+
MethodOptions | BodyResponseCallback<Schema$ObjectAccessControls>,
|
|
6984
6971
|
callback: BodyResponseCallback<Schema$ObjectAccessControls>
|
|
6985
6972
|
): void;
|
|
6986
6973
|
list(
|
|
@@ -7730,8 +7717,7 @@ export namespace storage_v1 {
|
|
|
7730
7717
|
deleteRecursive(
|
|
7731
7718
|
params: Params$Resource$Folders$Deleterecursive,
|
|
7732
7719
|
options:
|
|
7733
|
-
|
|
|
7734
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
7720
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
7735
7721
|
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
7736
7722
|
): void;
|
|
7737
7723
|
deleteRecursive(
|
|
@@ -7909,8 +7895,7 @@ export namespace storage_v1 {
|
|
|
7909
7895
|
| BodyResponseCallback<Schema$Folder>
|
|
7910
7896
|
| BodyResponseCallback<Readable>,
|
|
7911
7897
|
callback?:
|
|
7912
|
-
|
|
7913
|
-
| BodyResponseCallback<Readable>
|
|
7898
|
+
BodyResponseCallback<Schema$Folder> | BodyResponseCallback<Readable>
|
|
7914
7899
|
):
|
|
7915
7900
|
| void
|
|
7916
7901
|
| Promise<GaxiosResponseWithHTTP2<Schema$Folder>>
|
|
@@ -8075,8 +8060,7 @@ export namespace storage_v1 {
|
|
|
8075
8060
|
| BodyResponseCallback<Schema$Folder>
|
|
8076
8061
|
| BodyResponseCallback<Readable>,
|
|
8077
8062
|
callback?:
|
|
8078
|
-
|
|
8079
|
-
| BodyResponseCallback<Readable>
|
|
8063
|
+
BodyResponseCallback<Schema$Folder> | BodyResponseCallback<Readable>
|
|
8080
8064
|
):
|
|
8081
8065
|
| void
|
|
8082
8066
|
| Promise<GaxiosResponseWithHTTP2<Schema$Folder>>
|
|
@@ -8231,8 +8215,7 @@ export namespace storage_v1 {
|
|
|
8231
8215
|
| BodyResponseCallback<Schema$Folders>
|
|
8232
8216
|
| BodyResponseCallback<Readable>,
|
|
8233
8217
|
callback?:
|
|
8234
|
-
|
|
8235
|
-
| BodyResponseCallback<Readable>
|
|
8218
|
+
BodyResponseCallback<Schema$Folders> | BodyResponseCallback<Readable>
|
|
8236
8219
|
):
|
|
8237
8220
|
| void
|
|
8238
8221
|
| Promise<GaxiosResponseWithHTTP2<Schema$Folders>>
|
|
@@ -8367,8 +8350,7 @@ export namespace storage_v1 {
|
|
|
8367
8350
|
rename(
|
|
8368
8351
|
params: Params$Resource$Folders$Rename,
|
|
8369
8352
|
options:
|
|
8370
|
-
|
|
|
8371
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
8353
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
8372
8354
|
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
8373
8355
|
): void;
|
|
8374
8356
|
rename(
|
|
@@ -8966,8 +8948,7 @@ export namespace storage_v1 {
|
|
|
8966
8948
|
| BodyResponseCallback<Schema$Policy>
|
|
8967
8949
|
| BodyResponseCallback<Readable>,
|
|
8968
8950
|
callback?:
|
|
8969
|
-
|
|
8970
|
-
| BodyResponseCallback<Readable>
|
|
8951
|
+
BodyResponseCallback<Schema$Policy> | BodyResponseCallback<Readable>
|
|
8971
8952
|
):
|
|
8972
8953
|
| void
|
|
8973
8954
|
| Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
|
|
@@ -9440,8 +9421,7 @@ export namespace storage_v1 {
|
|
|
9440
9421
|
| BodyResponseCallback<Schema$Policy>
|
|
9441
9422
|
| BodyResponseCallback<Readable>,
|
|
9442
9423
|
callback?:
|
|
9443
|
-
|
|
9444
|
-
| BodyResponseCallback<Readable>
|
|
9424
|
+
BodyResponseCallback<Schema$Policy> | BodyResponseCallback<Readable>
|
|
9445
9425
|
):
|
|
9446
9426
|
| void
|
|
9447
9427
|
| Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
|
|
@@ -9572,8 +9552,7 @@ export namespace storage_v1 {
|
|
|
9572
9552
|
testIamPermissions(
|
|
9573
9553
|
params: Params$Resource$Managedfolders$Testiampermissions,
|
|
9574
9554
|
options:
|
|
9575
|
-
|
|
|
9576
|
-
| BodyResponseCallback<Schema$TestIamPermissionsResponse>,
|
|
9555
|
+
MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>,
|
|
9577
9556
|
callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>
|
|
9578
9557
|
): void;
|
|
9579
9558
|
testIamPermissions(
|
|
@@ -10997,8 +10976,7 @@ export namespace storage_v1 {
|
|
|
10997
10976
|
list(
|
|
10998
10977
|
params: Params$Resource$Objectaccesscontrols$List,
|
|
10999
10978
|
options:
|
|
11000
|
-
|
|
|
11001
|
-
| BodyResponseCallback<Schema$ObjectAccessControls>,
|
|
10979
|
+
MethodOptions | BodyResponseCallback<Schema$ObjectAccessControls>,
|
|
11002
10980
|
callback: BodyResponseCallback<Schema$ObjectAccessControls>
|
|
11003
10981
|
): void;
|
|
11004
10982
|
list(
|
|
@@ -11665,8 +11643,7 @@ export namespace storage_v1 {
|
|
|
11665
11643
|
bulkRestore(
|
|
11666
11644
|
params: Params$Resource$Objects$Bulkrestore,
|
|
11667
11645
|
options:
|
|
11668
|
-
|
|
|
11669
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
11646
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
11670
11647
|
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
11671
11648
|
): void;
|
|
11672
11649
|
bulkRestore(
|
|
@@ -11890,8 +11867,7 @@ export namespace storage_v1 {
|
|
|
11890
11867
|
| BodyResponseCallback<Schema$Object>
|
|
11891
11868
|
| BodyResponseCallback<Readable>,
|
|
11892
11869
|
callback?:
|
|
11893
|
-
|
|
11894
|
-
| BodyResponseCallback<Readable>
|
|
11870
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
11895
11871
|
):
|
|
11896
11872
|
| void
|
|
11897
11873
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -12144,8 +12120,7 @@ export namespace storage_v1 {
|
|
|
12144
12120
|
| BodyResponseCallback<Schema$Object>
|
|
12145
12121
|
| BodyResponseCallback<Readable>,
|
|
12146
12122
|
callback?:
|
|
12147
|
-
|
|
12148
|
-
| BodyResponseCallback<Readable>
|
|
12123
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
12149
12124
|
):
|
|
12150
12125
|
| void
|
|
12151
12126
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -12500,8 +12475,7 @@ export namespace storage_v1 {
|
|
|
12500
12475
|
| BodyResponseCallback<Schema$Object>
|
|
12501
12476
|
| BodyResponseCallback<Readable>,
|
|
12502
12477
|
callback?:
|
|
12503
|
-
|
|
12504
|
-
| BodyResponseCallback<Readable>
|
|
12478
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
12505
12479
|
):
|
|
12506
12480
|
| void
|
|
12507
12481
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -12652,8 +12626,7 @@ export namespace storage_v1 {
|
|
|
12652
12626
|
| BodyResponseCallback<Schema$Policy>
|
|
12653
12627
|
| BodyResponseCallback<Readable>,
|
|
12654
12628
|
callback?:
|
|
12655
|
-
|
|
12656
|
-
| BodyResponseCallback<Readable>
|
|
12629
|
+
BodyResponseCallback<Schema$Policy> | BodyResponseCallback<Readable>
|
|
12657
12630
|
):
|
|
12658
12631
|
| void
|
|
12659
12632
|
| Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
|
|
@@ -12899,8 +12872,7 @@ export namespace storage_v1 {
|
|
|
12899
12872
|
| BodyResponseCallback<Schema$Object>
|
|
12900
12873
|
| BodyResponseCallback<Readable>,
|
|
12901
12874
|
callback?:
|
|
12902
|
-
|
|
12903
|
-
| BodyResponseCallback<Readable>
|
|
12875
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
12904
12876
|
):
|
|
12905
12877
|
| void
|
|
12906
12878
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -13076,8 +13048,7 @@ export namespace storage_v1 {
|
|
|
13076
13048
|
| BodyResponseCallback<Schema$Objects>
|
|
13077
13049
|
| BodyResponseCallback<Readable>,
|
|
13078
13050
|
callback?:
|
|
13079
|
-
|
|
13080
|
-
| BodyResponseCallback<Readable>
|
|
13051
|
+
BodyResponseCallback<Schema$Objects> | BodyResponseCallback<Readable>
|
|
13081
13052
|
):
|
|
13082
13053
|
| void
|
|
13083
13054
|
| Promise<GaxiosResponseWithHTTP2<Schema$Objects>>
|
|
@@ -13277,8 +13248,7 @@ export namespace storage_v1 {
|
|
|
13277
13248
|
| BodyResponseCallback<Schema$Object>
|
|
13278
13249
|
| BodyResponseCallback<Readable>,
|
|
13279
13250
|
callback?:
|
|
13280
|
-
|
|
13281
|
-
| BodyResponseCallback<Readable>
|
|
13251
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
13282
13252
|
):
|
|
13283
13253
|
| void
|
|
13284
13254
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -13518,8 +13488,7 @@ export namespace storage_v1 {
|
|
|
13518
13488
|
| BodyResponseCallback<Schema$Object>
|
|
13519
13489
|
| BodyResponseCallback<Readable>,
|
|
13520
13490
|
callback?:
|
|
13521
|
-
|
|
13522
|
-
| BodyResponseCallback<Readable>
|
|
13491
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
13523
13492
|
):
|
|
13524
13493
|
| void
|
|
13525
13494
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -13714,8 +13683,7 @@ export namespace storage_v1 {
|
|
|
13714
13683
|
| BodyResponseCallback<Schema$Object>
|
|
13715
13684
|
| BodyResponseCallback<Readable>,
|
|
13716
13685
|
callback?:
|
|
13717
|
-
|
|
13718
|
-
| BodyResponseCallback<Readable>
|
|
13686
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
13719
13687
|
):
|
|
13720
13688
|
| void
|
|
13721
13689
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -14113,8 +14081,7 @@ export namespace storage_v1 {
|
|
|
14113
14081
|
| BodyResponseCallback<Schema$Policy>
|
|
14114
14082
|
| BodyResponseCallback<Readable>,
|
|
14115
14083
|
callback?:
|
|
14116
|
-
|
|
14117
|
-
| BodyResponseCallback<Readable>
|
|
14084
|
+
BodyResponseCallback<Schema$Policy> | BodyResponseCallback<Readable>
|
|
14118
14085
|
):
|
|
14119
14086
|
| void
|
|
14120
14087
|
| Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
|
|
@@ -14247,8 +14214,7 @@ export namespace storage_v1 {
|
|
|
14247
14214
|
testIamPermissions(
|
|
14248
14215
|
params: Params$Resource$Objects$Testiampermissions,
|
|
14249
14216
|
options:
|
|
14250
|
-
|
|
|
14251
|
-
| BodyResponseCallback<Schema$TestIamPermissionsResponse>,
|
|
14217
|
+
MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>,
|
|
14252
14218
|
callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>
|
|
14253
14219
|
): void;
|
|
14254
14220
|
testIamPermissions(
|
|
@@ -14510,8 +14476,7 @@ export namespace storage_v1 {
|
|
|
14510
14476
|
| BodyResponseCallback<Schema$Object>
|
|
14511
14477
|
| BodyResponseCallback<Readable>,
|
|
14512
14478
|
callback?:
|
|
14513
|
-
|
|
14514
|
-
| BodyResponseCallback<Readable>
|
|
14479
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
14515
14480
|
):
|
|
14516
14481
|
| void
|
|
14517
14482
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -14557,194 +14522,6 @@ export namespace storage_v1 {
|
|
|
14557
14522
|
return createAPIRequest<Schema$Object>(parameters);
|
|
14558
14523
|
}
|
|
14559
14524
|
}
|
|
14560
|
-
|
|
14561
|
-
/**
|
|
14562
|
-
* Watch for changes on all objects in a bucket.
|
|
14563
|
-
* @example
|
|
14564
|
-
* ```js
|
|
14565
|
-
* // Before running the sample:
|
|
14566
|
-
* // - Enable the API at:
|
|
14567
|
-
* // https://console.developers.google.com/apis/api/storage.googleapis.com
|
|
14568
|
-
* // - Login into gcloud by running:
|
|
14569
|
-
* // ```sh
|
|
14570
|
-
* // $ gcloud auth application-default login
|
|
14571
|
-
* // ```
|
|
14572
|
-
* // - Install the npm module by running:
|
|
14573
|
-
* // ```sh
|
|
14574
|
-
* // $ npm install googleapis
|
|
14575
|
-
* // ```
|
|
14576
|
-
*
|
|
14577
|
-
* const {google} = require('googleapis');
|
|
14578
|
-
* const storage = google.storage('v1');
|
|
14579
|
-
*
|
|
14580
|
-
* async function main() {
|
|
14581
|
-
* const auth = new google.auth.GoogleAuth({
|
|
14582
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
14583
|
-
* scopes: [
|
|
14584
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
14585
|
-
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
14586
|
-
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
14587
|
-
* 'https://www.googleapis.com/auth/devstorage.read_only',
|
|
14588
|
-
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
14589
|
-
* ],
|
|
14590
|
-
* });
|
|
14591
|
-
*
|
|
14592
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
14593
|
-
* const authClient = await auth.getClient();
|
|
14594
|
-
* google.options({auth: authClient});
|
|
14595
|
-
*
|
|
14596
|
-
* // Do the magic
|
|
14597
|
-
* const res = await storage.objects.watchAll({
|
|
14598
|
-
* // Name of the bucket in which to look for objects.
|
|
14599
|
-
* bucket: 'placeholder-value',
|
|
14600
|
-
* // Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
|
|
14601
|
-
* delimiter: 'placeholder-value',
|
|
14602
|
-
* // Filter results to objects whose names are lexicographically before endOffset. If startOffset is also set, the objects listed will have names between startOffset (inclusive) and endOffset (exclusive).
|
|
14603
|
-
* endOffset: 'placeholder-value',
|
|
14604
|
-
* // If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes.
|
|
14605
|
-
* includeTrailingDelimiter: 'placeholder-value',
|
|
14606
|
-
* // Maximum number of items plus prefixes to return in a single page of responses. As duplicate prefixes are omitted, fewer total results may be returned than requested. The service will use this parameter or 1,000 items, whichever is smaller.
|
|
14607
|
-
* maxResults: 'placeholder-value',
|
|
14608
|
-
* // A previously-returned page token representing part of the larger set of results to view.
|
|
14609
|
-
* pageToken: 'placeholder-value',
|
|
14610
|
-
* // Filter results to objects whose names begin with this prefix.
|
|
14611
|
-
* prefix: 'placeholder-value',
|
|
14612
|
-
* // Set of properties to return. Defaults to noAcl.
|
|
14613
|
-
* projection: 'placeholder-value',
|
|
14614
|
-
* // Filter results to objects whose names are lexicographically equal to or after startOffset. If endOffset is also set, the objects listed will have names between startOffset (inclusive) and endOffset (exclusive).
|
|
14615
|
-
* startOffset: 'placeholder-value',
|
|
14616
|
-
* // The project to be billed for this request. Required for Requester Pays buckets.
|
|
14617
|
-
* userProject: 'placeholder-value',
|
|
14618
|
-
* // If true, lists all versions of an object as distinct results. The default is false. For more information, see [Object Versioning](https://cloud.google.com/storage/docs/object-versioning).
|
|
14619
|
-
* versions: 'placeholder-value',
|
|
14620
|
-
*
|
|
14621
|
-
* // Request body metadata
|
|
14622
|
-
* requestBody: {
|
|
14623
|
-
* // request body parameters
|
|
14624
|
-
* // {
|
|
14625
|
-
* // "address": "my_address",
|
|
14626
|
-
* // "expiration": "my_expiration",
|
|
14627
|
-
* // "id": "my_id",
|
|
14628
|
-
* // "kind": "my_kind",
|
|
14629
|
-
* // "params": {},
|
|
14630
|
-
* // "payload": false,
|
|
14631
|
-
* // "resourceId": "my_resourceId",
|
|
14632
|
-
* // "resourceUri": "my_resourceUri",
|
|
14633
|
-
* // "token": "my_token",
|
|
14634
|
-
* // "type": "my_type"
|
|
14635
|
-
* // }
|
|
14636
|
-
* },
|
|
14637
|
-
* });
|
|
14638
|
-
* console.log(res.data);
|
|
14639
|
-
*
|
|
14640
|
-
* // Example response
|
|
14641
|
-
* // {
|
|
14642
|
-
* // "address": "my_address",
|
|
14643
|
-
* // "expiration": "my_expiration",
|
|
14644
|
-
* // "id": "my_id",
|
|
14645
|
-
* // "kind": "my_kind",
|
|
14646
|
-
* // "params": {},
|
|
14647
|
-
* // "payload": false,
|
|
14648
|
-
* // "resourceId": "my_resourceId",
|
|
14649
|
-
* // "resourceUri": "my_resourceUri",
|
|
14650
|
-
* // "token": "my_token",
|
|
14651
|
-
* // "type": "my_type"
|
|
14652
|
-
* // }
|
|
14653
|
-
* }
|
|
14654
|
-
*
|
|
14655
|
-
* main().catch(e => {
|
|
14656
|
-
* console.error(e);
|
|
14657
|
-
* throw e;
|
|
14658
|
-
* });
|
|
14659
|
-
*
|
|
14660
|
-
* ```
|
|
14661
|
-
*
|
|
14662
|
-
* @param params - Parameters for request
|
|
14663
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
14664
|
-
* @param callback - Optional callback that handles the response.
|
|
14665
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
14666
|
-
*/
|
|
14667
|
-
watchAll(
|
|
14668
|
-
params: Params$Resource$Objects$Watchall,
|
|
14669
|
-
options: StreamMethodOptions
|
|
14670
|
-
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
14671
|
-
watchAll(
|
|
14672
|
-
params?: Params$Resource$Objects$Watchall,
|
|
14673
|
-
options?: MethodOptions
|
|
14674
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$Channel>>;
|
|
14675
|
-
watchAll(
|
|
14676
|
-
params: Params$Resource$Objects$Watchall,
|
|
14677
|
-
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
14678
|
-
callback: BodyResponseCallback<Readable>
|
|
14679
|
-
): void;
|
|
14680
|
-
watchAll(
|
|
14681
|
-
params: Params$Resource$Objects$Watchall,
|
|
14682
|
-
options: MethodOptions | BodyResponseCallback<Schema$Channel>,
|
|
14683
|
-
callback: BodyResponseCallback<Schema$Channel>
|
|
14684
|
-
): void;
|
|
14685
|
-
watchAll(
|
|
14686
|
-
params: Params$Resource$Objects$Watchall,
|
|
14687
|
-
callback: BodyResponseCallback<Schema$Channel>
|
|
14688
|
-
): void;
|
|
14689
|
-
watchAll(callback: BodyResponseCallback<Schema$Channel>): void;
|
|
14690
|
-
watchAll(
|
|
14691
|
-
paramsOrCallback?:
|
|
14692
|
-
| Params$Resource$Objects$Watchall
|
|
14693
|
-
| BodyResponseCallback<Schema$Channel>
|
|
14694
|
-
| BodyResponseCallback<Readable>,
|
|
14695
|
-
optionsOrCallback?:
|
|
14696
|
-
| MethodOptions
|
|
14697
|
-
| StreamMethodOptions
|
|
14698
|
-
| BodyResponseCallback<Schema$Channel>
|
|
14699
|
-
| BodyResponseCallback<Readable>,
|
|
14700
|
-
callback?:
|
|
14701
|
-
| BodyResponseCallback<Schema$Channel>
|
|
14702
|
-
| BodyResponseCallback<Readable>
|
|
14703
|
-
):
|
|
14704
|
-
| void
|
|
14705
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$Channel>>
|
|
14706
|
-
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
14707
|
-
let params = (paramsOrCallback || {}) as Params$Resource$Objects$Watchall;
|
|
14708
|
-
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
14709
|
-
|
|
14710
|
-
if (typeof paramsOrCallback === 'function') {
|
|
14711
|
-
callback = paramsOrCallback;
|
|
14712
|
-
params = {} as Params$Resource$Objects$Watchall;
|
|
14713
|
-
options = {};
|
|
14714
|
-
}
|
|
14715
|
-
|
|
14716
|
-
if (typeof optionsOrCallback === 'function') {
|
|
14717
|
-
callback = optionsOrCallback;
|
|
14718
|
-
options = {};
|
|
14719
|
-
}
|
|
14720
|
-
|
|
14721
|
-
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
14722
|
-
const parameters = {
|
|
14723
|
-
options: Object.assign(
|
|
14724
|
-
{
|
|
14725
|
-
url: (rootUrl + '/storage/v1/b/{bucket}/o/watch').replace(
|
|
14726
|
-
/([^:]\/)\/+/g,
|
|
14727
|
-
'$1'
|
|
14728
|
-
),
|
|
14729
|
-
method: 'POST',
|
|
14730
|
-
apiVersion: '',
|
|
14731
|
-
},
|
|
14732
|
-
options
|
|
14733
|
-
),
|
|
14734
|
-
params,
|
|
14735
|
-
requiredParams: ['bucket'],
|
|
14736
|
-
pathParams: ['bucket'],
|
|
14737
|
-
context: this.context,
|
|
14738
|
-
};
|
|
14739
|
-
if (callback) {
|
|
14740
|
-
createAPIRequest<Schema$Channel>(
|
|
14741
|
-
parameters,
|
|
14742
|
-
callback as BodyResponseCallback<unknown>
|
|
14743
|
-
);
|
|
14744
|
-
} else {
|
|
14745
|
-
return createAPIRequest<Schema$Channel>(parameters);
|
|
14746
|
-
}
|
|
14747
|
-
}
|
|
14748
14525
|
}
|
|
14749
14526
|
|
|
14750
14527
|
export interface Params$Resource$Objects$Bulkrestore extends StandardParameters {
|
|
@@ -15432,57 +15209,6 @@ export namespace storage_v1 {
|
|
|
15432
15209
|
*/
|
|
15433
15210
|
requestBody?: Schema$Object;
|
|
15434
15211
|
}
|
|
15435
|
-
export interface Params$Resource$Objects$Watchall extends StandardParameters {
|
|
15436
|
-
/**
|
|
15437
|
-
* Name of the bucket in which to look for objects.
|
|
15438
|
-
*/
|
|
15439
|
-
bucket?: string;
|
|
15440
|
-
/**
|
|
15441
|
-
* Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
|
|
15442
|
-
*/
|
|
15443
|
-
delimiter?: string;
|
|
15444
|
-
/**
|
|
15445
|
-
* Filter results to objects whose names are lexicographically before endOffset. If startOffset is also set, the objects listed will have names between startOffset (inclusive) and endOffset (exclusive).
|
|
15446
|
-
*/
|
|
15447
|
-
endOffset?: string;
|
|
15448
|
-
/**
|
|
15449
|
-
* If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes.
|
|
15450
|
-
*/
|
|
15451
|
-
includeTrailingDelimiter?: boolean;
|
|
15452
|
-
/**
|
|
15453
|
-
* Maximum number of items plus prefixes to return in a single page of responses. As duplicate prefixes are omitted, fewer total results may be returned than requested. The service will use this parameter or 1,000 items, whichever is smaller.
|
|
15454
|
-
*/
|
|
15455
|
-
maxResults?: number;
|
|
15456
|
-
/**
|
|
15457
|
-
* A previously-returned page token representing part of the larger set of results to view.
|
|
15458
|
-
*/
|
|
15459
|
-
pageToken?: string;
|
|
15460
|
-
/**
|
|
15461
|
-
* Filter results to objects whose names begin with this prefix.
|
|
15462
|
-
*/
|
|
15463
|
-
prefix?: string;
|
|
15464
|
-
/**
|
|
15465
|
-
* Set of properties to return. Defaults to noAcl.
|
|
15466
|
-
*/
|
|
15467
|
-
projection?: string;
|
|
15468
|
-
/**
|
|
15469
|
-
* Filter results to objects whose names are lexicographically equal to or after startOffset. If endOffset is also set, the objects listed will have names between startOffset (inclusive) and endOffset (exclusive).
|
|
15470
|
-
*/
|
|
15471
|
-
startOffset?: string;
|
|
15472
|
-
/**
|
|
15473
|
-
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
15474
|
-
*/
|
|
15475
|
-
userProject?: string;
|
|
15476
|
-
/**
|
|
15477
|
-
* If true, lists all versions of an object as distinct results. The default is false. For more information, see [Object Versioning](https://cloud.google.com/storage/docs/object-versioning).
|
|
15478
|
-
*/
|
|
15479
|
-
versions?: boolean;
|
|
15480
|
-
|
|
15481
|
-
/**
|
|
15482
|
-
* Request body metadata
|
|
15483
|
-
*/
|
|
15484
|
-
requestBody?: Schema$Channel;
|
|
15485
|
-
}
|
|
15486
15212
|
|
|
15487
15213
|
export class Resource$Operations {
|
|
15488
15214
|
context: APIRequestContext;
|
|
@@ -15854,8 +15580,7 @@ export namespace storage_v1 {
|
|
|
15854
15580
|
get(
|
|
15855
15581
|
params: Params$Resource$Operations$Get,
|
|
15856
15582
|
options:
|
|
15857
|
-
|
|
|
15858
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
15583
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
15859
15584
|
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
15860
15585
|
): void;
|
|
15861
15586
|
get(
|
|
@@ -16252,8 +15977,7 @@ export namespace storage_v1 {
|
|
|
16252
15977
|
| BodyResponseCallback<Schema$HmacKey>
|
|
16253
15978
|
| BodyResponseCallback<Readable>,
|
|
16254
15979
|
callback?:
|
|
16255
|
-
|
|
16256
|
-
| BodyResponseCallback<Readable>
|
|
15980
|
+
BodyResponseCallback<Schema$HmacKey> | BodyResponseCallback<Readable>
|
|
16257
15981
|
):
|
|
16258
15982
|
| void
|
|
16259
15983
|
| Promise<GaxiosResponseWithHTTP2<Schema$HmacKey>>
|