@googleapis/storage 21.3.0 → 22.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +701 -164
- package/build/v1.js +200 -31
- package/build/v1.js.map +1 -1
- package/index.ts +1 -4
- package/package.json +1 -1
- package/v1.ts +1978 -1086
package/v1.ts
CHANGED
|
@@ -112,6 +112,7 @@ export namespace storage_v1 {
|
|
|
112
112
|
objects: Resource$Objects;
|
|
113
113
|
operations: Resource$Operations;
|
|
114
114
|
projects: Resource$Projects;
|
|
115
|
+
rapidCaches: Resource$Rapidcaches;
|
|
115
116
|
|
|
116
117
|
constructor(options: GlobalOptions, google?: GoogleConfigurable) {
|
|
117
118
|
this.context = {
|
|
@@ -136,6 +137,7 @@ export namespace storage_v1 {
|
|
|
136
137
|
this.objects = new Resource$Objects(this.context);
|
|
137
138
|
this.operations = new Resource$Operations(this.context);
|
|
138
139
|
this.projects = new Resource$Projects(this.context);
|
|
140
|
+
this.rapidCaches = new Resource$Rapidcaches(this.context);
|
|
139
141
|
}
|
|
140
142
|
}
|
|
141
143
|
|
|
@@ -354,6 +356,8 @@ export namespace storage_v1 {
|
|
|
354
356
|
matchesSuffix?: string[];
|
|
355
357
|
noncurrentTimeBefore?: string;
|
|
356
358
|
numNewerVersions?: number;
|
|
359
|
+
sizeAboveBytes?: string;
|
|
360
|
+
sizeBelowBytes?: string;
|
|
357
361
|
};
|
|
358
362
|
}>;
|
|
359
363
|
} | null;
|
|
@@ -924,6 +928,10 @@ export namespace storage_v1 {
|
|
|
924
928
|
* The name of the managed folder. Required if not specified by URL parameter.
|
|
925
929
|
*/
|
|
926
930
|
name?: string | null;
|
|
931
|
+
/**
|
|
932
|
+
* The rapid cache configuration for the managed folder.
|
|
933
|
+
*/
|
|
934
|
+
rapidCacheConfig?: Schema$RapidCacheConfig;
|
|
927
935
|
/**
|
|
928
936
|
* The link to this managed folder.
|
|
929
937
|
*/
|
|
@@ -1314,6 +1322,106 @@ export namespace storage_v1 {
|
|
|
1314
1322
|
*/
|
|
1315
1323
|
version?: number | null;
|
|
1316
1324
|
}
|
|
1325
|
+
/**
|
|
1326
|
+
* A Rapid Cache instance.
|
|
1327
|
+
*/
|
|
1328
|
+
export interface Schema$RapidCache {
|
|
1329
|
+
/**
|
|
1330
|
+
* The cache-level entry admission policy.
|
|
1331
|
+
*/
|
|
1332
|
+
admissionPolicy?: string | null;
|
|
1333
|
+
/**
|
|
1334
|
+
* The name of the bucket containing this cache instance.
|
|
1335
|
+
*/
|
|
1336
|
+
bucket?: string | null;
|
|
1337
|
+
/**
|
|
1338
|
+
* The type of Rapid Cache this represents. Valid values include: "rapid-cache" and "rapid-cache-ultra".
|
|
1339
|
+
*/
|
|
1340
|
+
cacheType?: string | null;
|
|
1341
|
+
/**
|
|
1342
|
+
* The creation time of the cache instance in RFC 3339 format.
|
|
1343
|
+
*/
|
|
1344
|
+
createTime?: string | null;
|
|
1345
|
+
/**
|
|
1346
|
+
* The ID of the resource, including the project number, bucket name and rapid cache ID.
|
|
1347
|
+
*/
|
|
1348
|
+
id?: string | null;
|
|
1349
|
+
/**
|
|
1350
|
+
* Specifies whether objects are ingested into the cache upon write.
|
|
1351
|
+
*/
|
|
1352
|
+
ingestOnWrite?: boolean | null;
|
|
1353
|
+
/**
|
|
1354
|
+
* The kind of item this is. For Rapid Cache, this is always storage#rapidCache.
|
|
1355
|
+
*/
|
|
1356
|
+
kind?: string | null;
|
|
1357
|
+
/**
|
|
1358
|
+
* True if the cache instance has an active Update long-running operation.
|
|
1359
|
+
*/
|
|
1360
|
+
pendingUpdate?: boolean | null;
|
|
1361
|
+
/**
|
|
1362
|
+
* The ID of the Rapid cache instance.
|
|
1363
|
+
*/
|
|
1364
|
+
rapidCacheId?: string | null;
|
|
1365
|
+
/**
|
|
1366
|
+
* The link to this cache instance.
|
|
1367
|
+
*/
|
|
1368
|
+
selfLink?: string | null;
|
|
1369
|
+
/**
|
|
1370
|
+
* The current state of the cache instance.
|
|
1371
|
+
*/
|
|
1372
|
+
state?: string | null;
|
|
1373
|
+
/**
|
|
1374
|
+
* The TTL of all cache entries in whole seconds. e.g., "7200s".
|
|
1375
|
+
*/
|
|
1376
|
+
ttl?: string | null;
|
|
1377
|
+
/**
|
|
1378
|
+
* The modification time of the cache instance metadata in RFC 3339 format.
|
|
1379
|
+
*/
|
|
1380
|
+
updateTime?: string | null;
|
|
1381
|
+
/**
|
|
1382
|
+
* The zone in which the cache instance is running. For example, us-central1-a.
|
|
1383
|
+
*/
|
|
1384
|
+
zone?: string | null;
|
|
1385
|
+
}
|
|
1386
|
+
/**
|
|
1387
|
+
* Configuration options for the rapid cache of a managed folder.
|
|
1388
|
+
*/
|
|
1389
|
+
export interface Schema$RapidCacheConfig {
|
|
1390
|
+
/**
|
|
1391
|
+
* A map of rapid cache IDs to the corresponding `RapidCachePolicy` configurations for a managed folder.
|
|
1392
|
+
*/
|
|
1393
|
+
policies?: {[key: string]: Schema$RapidCachePolicy} | null;
|
|
1394
|
+
}
|
|
1395
|
+
/**
|
|
1396
|
+
* The rapid cache policy configuration for a managed folder.
|
|
1397
|
+
*/
|
|
1398
|
+
export interface Schema$RapidCachePolicy {
|
|
1399
|
+
/**
|
|
1400
|
+
* The ingest-on-write policy for objects in the managed folder. When set to `enabled`, objects are automatically ingested into the cache when they are written to the managed folder.
|
|
1401
|
+
*/
|
|
1402
|
+
ingestOnWrite?: string | null;
|
|
1403
|
+
/**
|
|
1404
|
+
* The unique identifier of the rapid cache.
|
|
1405
|
+
*/
|
|
1406
|
+
rapidCacheId?: string | null;
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* A list of Rapid Caches.
|
|
1410
|
+
*/
|
|
1411
|
+
export interface Schema$RapidCaches {
|
|
1412
|
+
/**
|
|
1413
|
+
* The list of items.
|
|
1414
|
+
*/
|
|
1415
|
+
items?: Schema$RapidCache[];
|
|
1416
|
+
/**
|
|
1417
|
+
* The kind of item this is. For lists of Rapid Caches, this is always storage#rapidCaches.
|
|
1418
|
+
*/
|
|
1419
|
+
kind?: string | null;
|
|
1420
|
+
/**
|
|
1421
|
+
* The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
|
|
1422
|
+
*/
|
|
1423
|
+
nextPageToken?: string | null;
|
|
1424
|
+
}
|
|
1317
1425
|
/**
|
|
1318
1426
|
* A Relocate Bucket request.
|
|
1319
1427
|
*/
|
|
@@ -1386,26 +1494,26 @@ export namespace storage_v1 {
|
|
|
1386
1494
|
*/
|
|
1387
1495
|
kind?: string | null;
|
|
1388
1496
|
/**
|
|
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.
|
|
1497
|
+
* 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:
|
|
1498
|
+
* - storage.buckets.delete - Delete bucket.
|
|
1499
|
+
* - storage.buckets.get - Read bucket metadata.
|
|
1500
|
+
* - storage.buckets.getIamPolicy - Read bucket IAM policy.
|
|
1501
|
+
* - storage.buckets.create - Create bucket.
|
|
1502
|
+
* - storage.buckets.list - List buckets.
|
|
1503
|
+
* - storage.buckets.setIamPolicy - Update bucket IAM policy.
|
|
1504
|
+
* - storage.buckets.update - Update bucket metadata.
|
|
1505
|
+
* - storage.objects.delete - Delete object.
|
|
1506
|
+
* - storage.objects.get - Read object data and metadata.
|
|
1507
|
+
* - storage.objects.getIamPolicy - Read object IAM policy.
|
|
1508
|
+
* - storage.objects.create - Create object.
|
|
1509
|
+
* - storage.objects.list - List objects.
|
|
1510
|
+
* - storage.objects.setIamPolicy - Update object IAM policy.
|
|
1403
1511
|
* - 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.
|
|
1512
|
+
* - storage.managedFolders.delete - Delete managed folder.
|
|
1513
|
+
* - storage.managedFolders.get - Read managed folder metadata.
|
|
1514
|
+
* - storage.managedFolders.getIamPolicy - Read managed folder IAM policy.
|
|
1515
|
+
* - storage.managedFolders.create - Create managed folder.
|
|
1516
|
+
* - storage.managedFolders.list - List managed folders.
|
|
1409
1517
|
* - storage.managedFolders.setIamPolicy - Update managed folder IAM policy.
|
|
1410
1518
|
*/
|
|
1411
1519
|
permissions?: string[] | null;
|
|
@@ -1829,8 +1937,7 @@ export namespace storage_v1 {
|
|
|
1829
1937
|
insert(
|
|
1830
1938
|
params: Params$Resource$Anywherecaches$Insert,
|
|
1831
1939
|
options:
|
|
1832
|
-
|
|
|
1833
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
1940
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
1834
1941
|
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
1835
1942
|
): void;
|
|
1836
1943
|
insert(
|
|
@@ -2461,8 +2568,7 @@ export namespace storage_v1 {
|
|
|
2461
2568
|
update(
|
|
2462
2569
|
params: Params$Resource$Anywherecaches$Update,
|
|
2463
2570
|
options:
|
|
2464
|
-
|
|
|
2465
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
2571
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
2466
2572
|
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
2467
2573
|
): void;
|
|
2468
2574
|
update(
|
|
@@ -3157,8 +3263,7 @@ export namespace storage_v1 {
|
|
|
3157
3263
|
list(
|
|
3158
3264
|
params: Params$Resource$Bucketaccesscontrols$List,
|
|
3159
3265
|
options:
|
|
3160
|
-
|
|
|
3161
|
-
| BodyResponseCallback<Schema$BucketAccessControls>,
|
|
3266
|
+
MethodOptions | BodyResponseCallback<Schema$BucketAccessControls>,
|
|
3162
3267
|
callback: BodyResponseCallback<Schema$BucketAccessControls>
|
|
3163
3268
|
): void;
|
|
3164
3269
|
list(
|
|
@@ -3951,8 +4056,7 @@ export namespace storage_v1 {
|
|
|
3951
4056
|
| BodyResponseCallback<Schema$Bucket>
|
|
3952
4057
|
| BodyResponseCallback<Readable>,
|
|
3953
4058
|
callback?:
|
|
3954
|
-
|
|
3955
|
-
| BodyResponseCallback<Readable>
|
|
4059
|
+
BodyResponseCallback<Schema$Bucket> | BodyResponseCallback<Readable>
|
|
3956
4060
|
):
|
|
3957
4061
|
| void
|
|
3958
4062
|
| Promise<GaxiosResponseWithHTTP2<Schema$Bucket>>
|
|
@@ -4098,8 +4202,7 @@ export namespace storage_v1 {
|
|
|
4098
4202
|
| BodyResponseCallback<Schema$Policy>
|
|
4099
4203
|
| BodyResponseCallback<Readable>,
|
|
4100
4204
|
callback?:
|
|
4101
|
-
|
|
4102
|
-
| BodyResponseCallback<Readable>
|
|
4205
|
+
BodyResponseCallback<Schema$Policy> | BodyResponseCallback<Readable>
|
|
4103
4206
|
):
|
|
4104
4207
|
| void
|
|
4105
4208
|
| Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
|
|
@@ -4483,8 +4586,7 @@ export namespace storage_v1 {
|
|
|
4483
4586
|
| BodyResponseCallback<Schema$Bucket>
|
|
4484
4587
|
| BodyResponseCallback<Readable>,
|
|
4485
4588
|
callback?:
|
|
4486
|
-
|
|
4487
|
-
| BodyResponseCallback<Readable>
|
|
4589
|
+
BodyResponseCallback<Schema$Bucket> | BodyResponseCallback<Readable>
|
|
4488
4590
|
):
|
|
4489
4591
|
| void
|
|
4490
4592
|
| Promise<GaxiosResponseWithHTTP2<Schema$Bucket>>
|
|
@@ -4639,8 +4741,7 @@ export namespace storage_v1 {
|
|
|
4639
4741
|
| BodyResponseCallback<Schema$Buckets>
|
|
4640
4742
|
| BodyResponseCallback<Readable>,
|
|
4641
4743
|
callback?:
|
|
4642
|
-
|
|
4643
|
-
| BodyResponseCallback<Readable>
|
|
4744
|
+
BodyResponseCallback<Schema$Buckets> | BodyResponseCallback<Readable>
|
|
4644
4745
|
):
|
|
4645
4746
|
| void
|
|
4646
4747
|
| Promise<GaxiosResponseWithHTTP2<Schema$Buckets>>
|
|
@@ -4817,8 +4918,7 @@ export namespace storage_v1 {
|
|
|
4817
4918
|
| BodyResponseCallback<Schema$Bucket>
|
|
4818
4919
|
| BodyResponseCallback<Readable>,
|
|
4819
4920
|
callback?:
|
|
4820
|
-
|
|
4821
|
-
| BodyResponseCallback<Readable>
|
|
4921
|
+
BodyResponseCallback<Schema$Bucket> | BodyResponseCallback<Readable>
|
|
4822
4922
|
):
|
|
4823
4923
|
| void
|
|
4824
4924
|
| Promise<GaxiosResponseWithHTTP2<Schema$Bucket>>
|
|
@@ -5050,8 +5150,7 @@ export namespace storage_v1 {
|
|
|
5050
5150
|
| BodyResponseCallback<Schema$Bucket>
|
|
5051
5151
|
| BodyResponseCallback<Readable>,
|
|
5052
5152
|
callback?:
|
|
5053
|
-
|
|
5054
|
-
| BodyResponseCallback<Readable>
|
|
5153
|
+
BodyResponseCallback<Schema$Bucket> | BodyResponseCallback<Readable>
|
|
5055
5154
|
):
|
|
5056
5155
|
| void
|
|
5057
5156
|
| Promise<GaxiosResponseWithHTTP2<Schema$Bucket>>
|
|
@@ -5189,8 +5288,7 @@ export namespace storage_v1 {
|
|
|
5189
5288
|
relocate(
|
|
5190
5289
|
params: Params$Resource$Buckets$Relocate,
|
|
5191
5290
|
options:
|
|
5192
|
-
|
|
|
5193
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
5291
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
5194
5292
|
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
5195
5293
|
): void;
|
|
5196
5294
|
relocate(
|
|
@@ -5394,8 +5492,7 @@ export namespace storage_v1 {
|
|
|
5394
5492
|
| BodyResponseCallback<Schema$Bucket>
|
|
5395
5493
|
| BodyResponseCallback<Readable>,
|
|
5396
5494
|
callback?:
|
|
5397
|
-
|
|
5398
|
-
| BodyResponseCallback<Readable>
|
|
5495
|
+
BodyResponseCallback<Schema$Bucket> | BodyResponseCallback<Readable>
|
|
5399
5496
|
):
|
|
5400
5497
|
| void
|
|
5401
5498
|
| Promise<GaxiosResponseWithHTTP2<Schema$Bucket>>
|
|
@@ -5551,8 +5648,7 @@ export namespace storage_v1 {
|
|
|
5551
5648
|
| BodyResponseCallback<Schema$Policy>
|
|
5552
5649
|
| BodyResponseCallback<Readable>,
|
|
5553
5650
|
callback?:
|
|
5554
|
-
|
|
5555
|
-
| BodyResponseCallback<Readable>
|
|
5651
|
+
BodyResponseCallback<Schema$Policy> | BodyResponseCallback<Readable>
|
|
5556
5652
|
):
|
|
5557
5653
|
| void
|
|
5558
5654
|
| Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
|
|
@@ -5681,8 +5777,7 @@ export namespace storage_v1 {
|
|
|
5681
5777
|
testIamPermissions(
|
|
5682
5778
|
params: Params$Resource$Buckets$Testiampermissions,
|
|
5683
5779
|
options:
|
|
5684
|
-
|
|
|
5685
|
-
| BodyResponseCallback<Schema$TestIamPermissionsResponse>,
|
|
5780
|
+
MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>,
|
|
5686
5781
|
callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>
|
|
5687
5782
|
): void;
|
|
5688
5783
|
testIamPermissions(
|
|
@@ -5936,8 +6031,7 @@ export namespace storage_v1 {
|
|
|
5936
6031
|
| BodyResponseCallback<Schema$Bucket>
|
|
5937
6032
|
| BodyResponseCallback<Readable>,
|
|
5938
6033
|
callback?:
|
|
5939
|
-
|
|
5940
|
-
| BodyResponseCallback<Readable>
|
|
6034
|
+
BodyResponseCallback<Schema$Bucket> | BodyResponseCallback<Readable>
|
|
5941
6035
|
):
|
|
5942
6036
|
| void
|
|
5943
6037
|
| Promise<GaxiosResponseWithHTTP2<Schema$Bucket>>
|
|
@@ -6979,8 +7073,7 @@ export namespace storage_v1 {
|
|
|
6979
7073
|
list(
|
|
6980
7074
|
params: Params$Resource$Defaultobjectaccesscontrols$List,
|
|
6981
7075
|
options:
|
|
6982
|
-
|
|
|
6983
|
-
| BodyResponseCallback<Schema$ObjectAccessControls>,
|
|
7076
|
+
MethodOptions | BodyResponseCallback<Schema$ObjectAccessControls>,
|
|
6984
7077
|
callback: BodyResponseCallback<Schema$ObjectAccessControls>
|
|
6985
7078
|
): void;
|
|
6986
7079
|
list(
|
|
@@ -7730,8 +7823,7 @@ export namespace storage_v1 {
|
|
|
7730
7823
|
deleteRecursive(
|
|
7731
7824
|
params: Params$Resource$Folders$Deleterecursive,
|
|
7732
7825
|
options:
|
|
7733
|
-
|
|
|
7734
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
7826
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
7735
7827
|
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
7736
7828
|
): void;
|
|
7737
7829
|
deleteRecursive(
|
|
@@ -7909,8 +8001,7 @@ export namespace storage_v1 {
|
|
|
7909
8001
|
| BodyResponseCallback<Schema$Folder>
|
|
7910
8002
|
| BodyResponseCallback<Readable>,
|
|
7911
8003
|
callback?:
|
|
7912
|
-
|
|
7913
|
-
| BodyResponseCallback<Readable>
|
|
8004
|
+
BodyResponseCallback<Schema$Folder> | BodyResponseCallback<Readable>
|
|
7914
8005
|
):
|
|
7915
8006
|
| void
|
|
7916
8007
|
| Promise<GaxiosResponseWithHTTP2<Schema$Folder>>
|
|
@@ -8075,8 +8166,7 @@ export namespace storage_v1 {
|
|
|
8075
8166
|
| BodyResponseCallback<Schema$Folder>
|
|
8076
8167
|
| BodyResponseCallback<Readable>,
|
|
8077
8168
|
callback?:
|
|
8078
|
-
|
|
8079
|
-
| BodyResponseCallback<Readable>
|
|
8169
|
+
BodyResponseCallback<Schema$Folder> | BodyResponseCallback<Readable>
|
|
8080
8170
|
):
|
|
8081
8171
|
| void
|
|
8082
8172
|
| Promise<GaxiosResponseWithHTTP2<Schema$Folder>>
|
|
@@ -8231,8 +8321,7 @@ export namespace storage_v1 {
|
|
|
8231
8321
|
| BodyResponseCallback<Schema$Folders>
|
|
8232
8322
|
| BodyResponseCallback<Readable>,
|
|
8233
8323
|
callback?:
|
|
8234
|
-
|
|
8235
|
-
| BodyResponseCallback<Readable>
|
|
8324
|
+
BodyResponseCallback<Schema$Folders> | BodyResponseCallback<Readable>
|
|
8236
8325
|
):
|
|
8237
8326
|
| void
|
|
8238
8327
|
| Promise<GaxiosResponseWithHTTP2<Schema$Folders>>
|
|
@@ -8367,8 +8456,7 @@ export namespace storage_v1 {
|
|
|
8367
8456
|
rename(
|
|
8368
8457
|
params: Params$Resource$Folders$Rename,
|
|
8369
8458
|
options:
|
|
8370
|
-
|
|
|
8371
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
8459
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
8372
8460
|
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
8373
8461
|
): void;
|
|
8374
8462
|
rename(
|
|
@@ -8763,6 +8851,7 @@ export namespace storage_v1 {
|
|
|
8763
8851
|
* // "kind": "my_kind",
|
|
8764
8852
|
* // "metageneration": "my_metageneration",
|
|
8765
8853
|
* // "name": "my_name",
|
|
8854
|
+
* // "rapidCacheConfig": {},
|
|
8766
8855
|
* // "selfLink": "my_selfLink",
|
|
8767
8856
|
* // "updateTime": "my_updateTime"
|
|
8768
8857
|
* // }
|
|
@@ -8966,8 +9055,7 @@ export namespace storage_v1 {
|
|
|
8966
9055
|
| BodyResponseCallback<Schema$Policy>
|
|
8967
9056
|
| BodyResponseCallback<Readable>,
|
|
8968
9057
|
callback?:
|
|
8969
|
-
|
|
8970
|
-
| BodyResponseCallback<Readable>
|
|
9058
|
+
BodyResponseCallback<Schema$Policy> | BodyResponseCallback<Readable>
|
|
8971
9059
|
):
|
|
8972
9060
|
| void
|
|
8973
9061
|
| Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
|
|
@@ -9063,6 +9151,7 @@ export namespace storage_v1 {
|
|
|
9063
9151
|
* // "kind": "my_kind",
|
|
9064
9152
|
* // "metageneration": "my_metageneration",
|
|
9065
9153
|
* // "name": "my_name",
|
|
9154
|
+
* // "rapidCacheConfig": {},
|
|
9066
9155
|
* // "selfLink": "my_selfLink",
|
|
9067
9156
|
* // "updateTime": "my_updateTime"
|
|
9068
9157
|
* // }
|
|
@@ -9078,6 +9167,7 @@ export namespace storage_v1 {
|
|
|
9078
9167
|
* // "kind": "my_kind",
|
|
9079
9168
|
* // "metageneration": "my_metageneration",
|
|
9080
9169
|
* // "name": "my_name",
|
|
9170
|
+
* // "rapidCacheConfig": {},
|
|
9081
9171
|
* // "selfLink": "my_selfLink",
|
|
9082
9172
|
* // "updateTime": "my_updateTime"
|
|
9083
9173
|
* // }
|
|
@@ -9440,8 +9530,7 @@ export namespace storage_v1 {
|
|
|
9440
9530
|
| BodyResponseCallback<Schema$Policy>
|
|
9441
9531
|
| BodyResponseCallback<Readable>,
|
|
9442
9532
|
callback?:
|
|
9443
|
-
|
|
9444
|
-
| BodyResponseCallback<Readable>
|
|
9533
|
+
BodyResponseCallback<Schema$Policy> | BodyResponseCallback<Readable>
|
|
9445
9534
|
):
|
|
9446
9535
|
| void
|
|
9447
9536
|
| Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
|
|
@@ -9572,8 +9661,7 @@ export namespace storage_v1 {
|
|
|
9572
9661
|
testIamPermissions(
|
|
9573
9662
|
params: Params$Resource$Managedfolders$Testiampermissions,
|
|
9574
9663
|
options:
|
|
9575
|
-
|
|
|
9576
|
-
| BodyResponseCallback<Schema$TestIamPermissionsResponse>,
|
|
9664
|
+
MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>,
|
|
9577
9665
|
callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>
|
|
9578
9666
|
): void;
|
|
9579
9667
|
testIamPermissions(
|
|
@@ -9642,141 +9730,9 @@ export namespace storage_v1 {
|
|
|
9642
9730
|
return createAPIRequest<Schema$TestIamPermissionsResponse>(parameters);
|
|
9643
9731
|
}
|
|
9644
9732
|
}
|
|
9645
|
-
}
|
|
9646
|
-
|
|
9647
|
-
export interface Params$Resource$Managedfolders$Delete extends StandardParameters {
|
|
9648
|
-
/**
|
|
9649
|
-
* Allows the deletion of a managed folder even if it is not empty. A managed folder is empty if there are no objects or managed folders that it applies to. Callers must have storage.managedFolders.setIamPolicy permission.
|
|
9650
|
-
*/
|
|
9651
|
-
allowNonEmpty?: boolean;
|
|
9652
|
-
/**
|
|
9653
|
-
* Name of the bucket containing the managed folder.
|
|
9654
|
-
*/
|
|
9655
|
-
bucket?: string;
|
|
9656
|
-
/**
|
|
9657
|
-
* If set, only deletes the managed folder if its metageneration matches this value.
|
|
9658
|
-
*/
|
|
9659
|
-
ifMetagenerationMatch?: string;
|
|
9660
|
-
/**
|
|
9661
|
-
* If set, only deletes the managed folder if its metageneration does not match this value.
|
|
9662
|
-
*/
|
|
9663
|
-
ifMetagenerationNotMatch?: string;
|
|
9664
|
-
/**
|
|
9665
|
-
* The managed folder name/path.
|
|
9666
|
-
*/
|
|
9667
|
-
managedFolder?: string;
|
|
9668
|
-
}
|
|
9669
|
-
export interface Params$Resource$Managedfolders$Get extends StandardParameters {
|
|
9670
|
-
/**
|
|
9671
|
-
* Name of the bucket containing the managed folder.
|
|
9672
|
-
*/
|
|
9673
|
-
bucket?: string;
|
|
9674
|
-
/**
|
|
9675
|
-
* Makes the return of the managed folder metadata conditional on whether the managed folder's current metageneration matches the given value.
|
|
9676
|
-
*/
|
|
9677
|
-
ifMetagenerationMatch?: string;
|
|
9678
|
-
/**
|
|
9679
|
-
* Makes the return of the managed folder metadata conditional on whether the managed folder's current metageneration does not match the given value.
|
|
9680
|
-
*/
|
|
9681
|
-
ifMetagenerationNotMatch?: string;
|
|
9682
|
-
/**
|
|
9683
|
-
* The managed folder name/path.
|
|
9684
|
-
*/
|
|
9685
|
-
managedFolder?: string;
|
|
9686
|
-
}
|
|
9687
|
-
export interface Params$Resource$Managedfolders$Getiampolicy extends StandardParameters {
|
|
9688
|
-
/**
|
|
9689
|
-
* Name of the bucket containing the managed folder.
|
|
9690
|
-
*/
|
|
9691
|
-
bucket?: string;
|
|
9692
|
-
/**
|
|
9693
|
-
* The managed folder name/path.
|
|
9694
|
-
*/
|
|
9695
|
-
managedFolder?: string;
|
|
9696
|
-
/**
|
|
9697
|
-
* The IAM policy format version to be returned. If the optionsRequestedPolicyVersion is for an older version that doesn't support part of the requested IAM policy, the request fails.
|
|
9698
|
-
*/
|
|
9699
|
-
optionsRequestedPolicyVersion?: number;
|
|
9700
|
-
/**
|
|
9701
|
-
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
9702
|
-
*/
|
|
9703
|
-
userProject?: string;
|
|
9704
|
-
}
|
|
9705
|
-
export interface Params$Resource$Managedfolders$Insert extends StandardParameters {
|
|
9706
|
-
/**
|
|
9707
|
-
* Name of the bucket containing the managed folder.
|
|
9708
|
-
*/
|
|
9709
|
-
bucket?: string;
|
|
9710
|
-
|
|
9711
|
-
/**
|
|
9712
|
-
* Request body metadata
|
|
9713
|
-
*/
|
|
9714
|
-
requestBody?: Schema$ManagedFolder;
|
|
9715
|
-
}
|
|
9716
|
-
export interface Params$Resource$Managedfolders$List extends StandardParameters {
|
|
9717
|
-
/**
|
|
9718
|
-
* Name of the bucket containing the managed folder.
|
|
9719
|
-
*/
|
|
9720
|
-
bucket?: string;
|
|
9721
|
-
/**
|
|
9722
|
-
* Maximum number of items to return in a single page of responses.
|
|
9723
|
-
*/
|
|
9724
|
-
pageSize?: number;
|
|
9725
|
-
/**
|
|
9726
|
-
* A previously-returned page token representing part of the larger set of results to view.
|
|
9727
|
-
*/
|
|
9728
|
-
pageToken?: string;
|
|
9729
|
-
/**
|
|
9730
|
-
* The managed folder name/path prefix to filter the output list of results.
|
|
9731
|
-
*/
|
|
9732
|
-
prefix?: string;
|
|
9733
|
-
}
|
|
9734
|
-
export interface Params$Resource$Managedfolders$Setiampolicy extends StandardParameters {
|
|
9735
|
-
/**
|
|
9736
|
-
* Name of the bucket containing the managed folder.
|
|
9737
|
-
*/
|
|
9738
|
-
bucket?: string;
|
|
9739
|
-
/**
|
|
9740
|
-
* The managed folder name/path.
|
|
9741
|
-
*/
|
|
9742
|
-
managedFolder?: string;
|
|
9743
|
-
/**
|
|
9744
|
-
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
9745
|
-
*/
|
|
9746
|
-
userProject?: string;
|
|
9747
|
-
|
|
9748
|
-
/**
|
|
9749
|
-
* Request body metadata
|
|
9750
|
-
*/
|
|
9751
|
-
requestBody?: Schema$Policy;
|
|
9752
|
-
}
|
|
9753
|
-
export interface Params$Resource$Managedfolders$Testiampermissions extends StandardParameters {
|
|
9754
|
-
/**
|
|
9755
|
-
* Name of the bucket containing the managed folder.
|
|
9756
|
-
*/
|
|
9757
|
-
bucket?: string;
|
|
9758
|
-
/**
|
|
9759
|
-
* The managed folder name/path.
|
|
9760
|
-
*/
|
|
9761
|
-
managedFolder?: string;
|
|
9762
|
-
/**
|
|
9763
|
-
* Permissions to test.
|
|
9764
|
-
*/
|
|
9765
|
-
permissions?: string[];
|
|
9766
|
-
/**
|
|
9767
|
-
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
9768
|
-
*/
|
|
9769
|
-
userProject?: string;
|
|
9770
|
-
}
|
|
9771
|
-
|
|
9772
|
-
export class Resource$Notifications {
|
|
9773
|
-
context: APIRequestContext;
|
|
9774
|
-
constructor(context: APIRequestContext) {
|
|
9775
|
-
this.context = context;
|
|
9776
|
-
}
|
|
9777
9733
|
|
|
9778
9734
|
/**
|
|
9779
|
-
*
|
|
9735
|
+
* Updates a managed folder using patch semantics.
|
|
9780
9736
|
* @example
|
|
9781
9737
|
* ```js
|
|
9782
9738
|
* // Before running the sample:
|
|
@@ -9809,15 +9765,46 @@ export namespace storage_v1 {
|
|
|
9809
9765
|
* google.options({auth: authClient});
|
|
9810
9766
|
*
|
|
9811
9767
|
* // Do the magic
|
|
9812
|
-
* const res = await storage.
|
|
9813
|
-
* // The
|
|
9768
|
+
* const res = await storage.managedFolders.update({
|
|
9769
|
+
* // The name of the bucket containing the managed folder.
|
|
9814
9770
|
* bucket: 'placeholder-value',
|
|
9815
|
-
* //
|
|
9816
|
-
*
|
|
9817
|
-
* //
|
|
9818
|
-
*
|
|
9771
|
+
* // Makes the operation conditional on whether the metageneration of the managed folder matches the specified value.
|
|
9772
|
+
* ifMetagenerationMatch: 'placeholder-value',
|
|
9773
|
+
* // Makes the operation conditional on whether the metageneration of the managed folder doesn't match the specified value.
|
|
9774
|
+
* ifMetagenerationNotMatch: 'placeholder-value',
|
|
9775
|
+
* // The name of the managed folder.
|
|
9776
|
+
* managedFolder: 'placeholder-value',
|
|
9777
|
+
*
|
|
9778
|
+
* // Request body metadata
|
|
9779
|
+
* requestBody: {
|
|
9780
|
+
* // request body parameters
|
|
9781
|
+
* // {
|
|
9782
|
+
* // "bucket": "my_bucket",
|
|
9783
|
+
* // "createTime": "my_createTime",
|
|
9784
|
+
* // "id": "my_id",
|
|
9785
|
+
* // "kind": "my_kind",
|
|
9786
|
+
* // "metageneration": "my_metageneration",
|
|
9787
|
+
* // "name": "my_name",
|
|
9788
|
+
* // "rapidCacheConfig": {},
|
|
9789
|
+
* // "selfLink": "my_selfLink",
|
|
9790
|
+
* // "updateTime": "my_updateTime"
|
|
9791
|
+
* // }
|
|
9792
|
+
* },
|
|
9819
9793
|
* });
|
|
9820
9794
|
* console.log(res.data);
|
|
9795
|
+
*
|
|
9796
|
+
* // Example response
|
|
9797
|
+
* // {
|
|
9798
|
+
* // "bucket": "my_bucket",
|
|
9799
|
+
* // "createTime": "my_createTime",
|
|
9800
|
+
* // "id": "my_id",
|
|
9801
|
+
* // "kind": "my_kind",
|
|
9802
|
+
* // "metageneration": "my_metageneration",
|
|
9803
|
+
* // "name": "my_name",
|
|
9804
|
+
* // "rapidCacheConfig": {},
|
|
9805
|
+
* // "selfLink": "my_selfLink",
|
|
9806
|
+
* // "updateTime": "my_updateTime"
|
|
9807
|
+
* // }
|
|
9821
9808
|
* }
|
|
9822
9809
|
*
|
|
9823
9810
|
* main().catch(e => {
|
|
@@ -9832,51 +9819,53 @@ export namespace storage_v1 {
|
|
|
9832
9819
|
* @param callback - Optional callback that handles the response.
|
|
9833
9820
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9834
9821
|
*/
|
|
9835
|
-
|
|
9836
|
-
params: Params$Resource$
|
|
9822
|
+
update(
|
|
9823
|
+
params: Params$Resource$Managedfolders$Update,
|
|
9837
9824
|
options: StreamMethodOptions
|
|
9838
9825
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9839
|
-
|
|
9840
|
-
params?: Params$Resource$
|
|
9826
|
+
update(
|
|
9827
|
+
params?: Params$Resource$Managedfolders$Update,
|
|
9841
9828
|
options?: MethodOptions
|
|
9842
|
-
): Promise<GaxiosResponseWithHTTP2<
|
|
9843
|
-
|
|
9844
|
-
params: Params$Resource$
|
|
9829
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ManagedFolder>>;
|
|
9830
|
+
update(
|
|
9831
|
+
params: Params$Resource$Managedfolders$Update,
|
|
9845
9832
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9846
9833
|
callback: BodyResponseCallback<Readable>
|
|
9847
9834
|
): void;
|
|
9848
|
-
|
|
9849
|
-
params: Params$Resource$
|
|
9850
|
-
options: MethodOptions | BodyResponseCallback<
|
|
9851
|
-
callback: BodyResponseCallback<
|
|
9835
|
+
update(
|
|
9836
|
+
params: Params$Resource$Managedfolders$Update,
|
|
9837
|
+
options: MethodOptions | BodyResponseCallback<Schema$ManagedFolder>,
|
|
9838
|
+
callback: BodyResponseCallback<Schema$ManagedFolder>
|
|
9852
9839
|
): void;
|
|
9853
|
-
|
|
9854
|
-
params: Params$Resource$
|
|
9855
|
-
callback: BodyResponseCallback<
|
|
9840
|
+
update(
|
|
9841
|
+
params: Params$Resource$Managedfolders$Update,
|
|
9842
|
+
callback: BodyResponseCallback<Schema$ManagedFolder>
|
|
9856
9843
|
): void;
|
|
9857
|
-
|
|
9858
|
-
|
|
9844
|
+
update(callback: BodyResponseCallback<Schema$ManagedFolder>): void;
|
|
9845
|
+
update(
|
|
9859
9846
|
paramsOrCallback?:
|
|
9860
|
-
| Params$Resource$
|
|
9861
|
-
| BodyResponseCallback<
|
|
9847
|
+
| Params$Resource$Managedfolders$Update
|
|
9848
|
+
| BodyResponseCallback<Schema$ManagedFolder>
|
|
9862
9849
|
| BodyResponseCallback<Readable>,
|
|
9863
9850
|
optionsOrCallback?:
|
|
9864
9851
|
| MethodOptions
|
|
9865
9852
|
| StreamMethodOptions
|
|
9866
|
-
| BodyResponseCallback<
|
|
9853
|
+
| BodyResponseCallback<Schema$ManagedFolder>
|
|
9867
9854
|
| BodyResponseCallback<Readable>,
|
|
9868
|
-
callback?:
|
|
9855
|
+
callback?:
|
|
9856
|
+
| BodyResponseCallback<Schema$ManagedFolder>
|
|
9857
|
+
| BodyResponseCallback<Readable>
|
|
9869
9858
|
):
|
|
9870
9859
|
| void
|
|
9871
|
-
| Promise<GaxiosResponseWithHTTP2<
|
|
9860
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ManagedFolder>>
|
|
9872
9861
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9873
9862
|
let params = (paramsOrCallback ||
|
|
9874
|
-
{}) as Params$Resource$
|
|
9863
|
+
{}) as Params$Resource$Managedfolders$Update;
|
|
9875
9864
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9876
9865
|
|
|
9877
9866
|
if (typeof paramsOrCallback === 'function') {
|
|
9878
9867
|
callback = paramsOrCallback;
|
|
9879
|
-
params = {} as Params$Resource$
|
|
9868
|
+
params = {} as Params$Resource$Managedfolders$Update;
|
|
9880
9869
|
options = {};
|
|
9881
9870
|
}
|
|
9882
9871
|
|
|
@@ -9890,31 +9879,185 @@ export namespace storage_v1 {
|
|
|
9890
9879
|
options: Object.assign(
|
|
9891
9880
|
{
|
|
9892
9881
|
url: (
|
|
9893
|
-
rootUrl +
|
|
9894
|
-
'/storage/v1/b/{bucket}/notificationConfigs/{notification}'
|
|
9882
|
+
rootUrl + '/storage/v1/b/{bucket}/managedFolders/{managedFolder}'
|
|
9895
9883
|
).replace(/([^:]\/)\/+/g, '$1'),
|
|
9896
|
-
method: '
|
|
9884
|
+
method: 'PATCH',
|
|
9897
9885
|
apiVersion: '',
|
|
9898
9886
|
},
|
|
9899
9887
|
options
|
|
9900
9888
|
),
|
|
9901
9889
|
params,
|
|
9902
|
-
requiredParams: ['bucket', '
|
|
9903
|
-
pathParams: ['bucket', '
|
|
9890
|
+
requiredParams: ['bucket', 'managedFolder'],
|
|
9891
|
+
pathParams: ['bucket', 'managedFolder'],
|
|
9904
9892
|
context: this.context,
|
|
9905
9893
|
};
|
|
9906
9894
|
if (callback) {
|
|
9907
|
-
createAPIRequest<
|
|
9895
|
+
createAPIRequest<Schema$ManagedFolder>(
|
|
9908
9896
|
parameters,
|
|
9909
9897
|
callback as BodyResponseCallback<unknown>
|
|
9910
9898
|
);
|
|
9911
9899
|
} else {
|
|
9912
|
-
return createAPIRequest<
|
|
9900
|
+
return createAPIRequest<Schema$ManagedFolder>(parameters);
|
|
9913
9901
|
}
|
|
9914
9902
|
}
|
|
9903
|
+
}
|
|
9915
9904
|
|
|
9905
|
+
export interface Params$Resource$Managedfolders$Delete extends StandardParameters {
|
|
9916
9906
|
/**
|
|
9917
|
-
*
|
|
9907
|
+
* Allows the deletion of a managed folder even if it is not empty. A managed folder is empty if there are no objects or managed folders that it applies to. Callers must have storage.managedFolders.setIamPolicy permission.
|
|
9908
|
+
*/
|
|
9909
|
+
allowNonEmpty?: boolean;
|
|
9910
|
+
/**
|
|
9911
|
+
* Name of the bucket containing the managed folder.
|
|
9912
|
+
*/
|
|
9913
|
+
bucket?: string;
|
|
9914
|
+
/**
|
|
9915
|
+
* If set, only deletes the managed folder if its metageneration matches this value.
|
|
9916
|
+
*/
|
|
9917
|
+
ifMetagenerationMatch?: string;
|
|
9918
|
+
/**
|
|
9919
|
+
* If set, only deletes the managed folder if its metageneration does not match this value.
|
|
9920
|
+
*/
|
|
9921
|
+
ifMetagenerationNotMatch?: string;
|
|
9922
|
+
/**
|
|
9923
|
+
* The managed folder name/path.
|
|
9924
|
+
*/
|
|
9925
|
+
managedFolder?: string;
|
|
9926
|
+
}
|
|
9927
|
+
export interface Params$Resource$Managedfolders$Get extends StandardParameters {
|
|
9928
|
+
/**
|
|
9929
|
+
* Name of the bucket containing the managed folder.
|
|
9930
|
+
*/
|
|
9931
|
+
bucket?: string;
|
|
9932
|
+
/**
|
|
9933
|
+
* Makes the return of the managed folder metadata conditional on whether the managed folder's current metageneration matches the given value.
|
|
9934
|
+
*/
|
|
9935
|
+
ifMetagenerationMatch?: string;
|
|
9936
|
+
/**
|
|
9937
|
+
* Makes the return of the managed folder metadata conditional on whether the managed folder's current metageneration does not match the given value.
|
|
9938
|
+
*/
|
|
9939
|
+
ifMetagenerationNotMatch?: string;
|
|
9940
|
+
/**
|
|
9941
|
+
* The managed folder name/path.
|
|
9942
|
+
*/
|
|
9943
|
+
managedFolder?: string;
|
|
9944
|
+
}
|
|
9945
|
+
export interface Params$Resource$Managedfolders$Getiampolicy extends StandardParameters {
|
|
9946
|
+
/**
|
|
9947
|
+
* Name of the bucket containing the managed folder.
|
|
9948
|
+
*/
|
|
9949
|
+
bucket?: string;
|
|
9950
|
+
/**
|
|
9951
|
+
* The managed folder name/path.
|
|
9952
|
+
*/
|
|
9953
|
+
managedFolder?: string;
|
|
9954
|
+
/**
|
|
9955
|
+
* The IAM policy format version to be returned. If the optionsRequestedPolicyVersion is for an older version that doesn't support part of the requested IAM policy, the request fails.
|
|
9956
|
+
*/
|
|
9957
|
+
optionsRequestedPolicyVersion?: number;
|
|
9958
|
+
/**
|
|
9959
|
+
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
9960
|
+
*/
|
|
9961
|
+
userProject?: string;
|
|
9962
|
+
}
|
|
9963
|
+
export interface Params$Resource$Managedfolders$Insert extends StandardParameters {
|
|
9964
|
+
/**
|
|
9965
|
+
* Name of the bucket containing the managed folder.
|
|
9966
|
+
*/
|
|
9967
|
+
bucket?: string;
|
|
9968
|
+
|
|
9969
|
+
/**
|
|
9970
|
+
* Request body metadata
|
|
9971
|
+
*/
|
|
9972
|
+
requestBody?: Schema$ManagedFolder;
|
|
9973
|
+
}
|
|
9974
|
+
export interface Params$Resource$Managedfolders$List extends StandardParameters {
|
|
9975
|
+
/**
|
|
9976
|
+
* Name of the bucket containing the managed folder.
|
|
9977
|
+
*/
|
|
9978
|
+
bucket?: string;
|
|
9979
|
+
/**
|
|
9980
|
+
* Maximum number of items to return in a single page of responses.
|
|
9981
|
+
*/
|
|
9982
|
+
pageSize?: number;
|
|
9983
|
+
/**
|
|
9984
|
+
* A previously-returned page token representing part of the larger set of results to view.
|
|
9985
|
+
*/
|
|
9986
|
+
pageToken?: string;
|
|
9987
|
+
/**
|
|
9988
|
+
* The managed folder name/path prefix to filter the output list of results.
|
|
9989
|
+
*/
|
|
9990
|
+
prefix?: string;
|
|
9991
|
+
}
|
|
9992
|
+
export interface Params$Resource$Managedfolders$Setiampolicy extends StandardParameters {
|
|
9993
|
+
/**
|
|
9994
|
+
* Name of the bucket containing the managed folder.
|
|
9995
|
+
*/
|
|
9996
|
+
bucket?: string;
|
|
9997
|
+
/**
|
|
9998
|
+
* The managed folder name/path.
|
|
9999
|
+
*/
|
|
10000
|
+
managedFolder?: string;
|
|
10001
|
+
/**
|
|
10002
|
+
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
10003
|
+
*/
|
|
10004
|
+
userProject?: string;
|
|
10005
|
+
|
|
10006
|
+
/**
|
|
10007
|
+
* Request body metadata
|
|
10008
|
+
*/
|
|
10009
|
+
requestBody?: Schema$Policy;
|
|
10010
|
+
}
|
|
10011
|
+
export interface Params$Resource$Managedfolders$Testiampermissions extends StandardParameters {
|
|
10012
|
+
/**
|
|
10013
|
+
* Name of the bucket containing the managed folder.
|
|
10014
|
+
*/
|
|
10015
|
+
bucket?: string;
|
|
10016
|
+
/**
|
|
10017
|
+
* The managed folder name/path.
|
|
10018
|
+
*/
|
|
10019
|
+
managedFolder?: string;
|
|
10020
|
+
/**
|
|
10021
|
+
* Permissions to test.
|
|
10022
|
+
*/
|
|
10023
|
+
permissions?: string[];
|
|
10024
|
+
/**
|
|
10025
|
+
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
10026
|
+
*/
|
|
10027
|
+
userProject?: string;
|
|
10028
|
+
}
|
|
10029
|
+
export interface Params$Resource$Managedfolders$Update extends StandardParameters {
|
|
10030
|
+
/**
|
|
10031
|
+
* The name of the bucket containing the managed folder.
|
|
10032
|
+
*/
|
|
10033
|
+
bucket?: string;
|
|
10034
|
+
/**
|
|
10035
|
+
* Makes the operation conditional on whether the metageneration of the managed folder matches the specified value.
|
|
10036
|
+
*/
|
|
10037
|
+
ifMetagenerationMatch?: string;
|
|
10038
|
+
/**
|
|
10039
|
+
* Makes the operation conditional on whether the metageneration of the managed folder doesn't match the specified value.
|
|
10040
|
+
*/
|
|
10041
|
+
ifMetagenerationNotMatch?: string;
|
|
10042
|
+
/**
|
|
10043
|
+
* The name of the managed folder.
|
|
10044
|
+
*/
|
|
10045
|
+
managedFolder?: string;
|
|
10046
|
+
|
|
10047
|
+
/**
|
|
10048
|
+
* Request body metadata
|
|
10049
|
+
*/
|
|
10050
|
+
requestBody?: Schema$ManagedFolder;
|
|
10051
|
+
}
|
|
10052
|
+
|
|
10053
|
+
export class Resource$Notifications {
|
|
10054
|
+
context: APIRequestContext;
|
|
10055
|
+
constructor(context: APIRequestContext) {
|
|
10056
|
+
this.context = context;
|
|
10057
|
+
}
|
|
10058
|
+
|
|
10059
|
+
/**
|
|
10060
|
+
* Permanently deletes a notification subscription.
|
|
9918
10061
|
* @example
|
|
9919
10062
|
* ```js
|
|
9920
10063
|
* // Before running the sample:
|
|
@@ -9937,9 +10080,7 @@ export namespace storage_v1 {
|
|
|
9937
10080
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9938
10081
|
* scopes: [
|
|
9939
10082
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
9940
|
-
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
9941
10083
|
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
9942
|
-
* 'https://www.googleapis.com/auth/devstorage.read_only',
|
|
9943
10084
|
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
9944
10085
|
* ],
|
|
9945
10086
|
* });
|
|
@@ -9949,28 +10090,15 @@ export namespace storage_v1 {
|
|
|
9949
10090
|
* google.options({auth: authClient});
|
|
9950
10091
|
*
|
|
9951
10092
|
* // Do the magic
|
|
9952
|
-
* const res = await storage.notifications.
|
|
10093
|
+
* const res = await storage.notifications.delete({
|
|
9953
10094
|
* // The parent bucket of the notification.
|
|
9954
10095
|
* bucket: 'placeholder-value',
|
|
9955
|
-
* //
|
|
10096
|
+
* // ID of the notification to delete.
|
|
9956
10097
|
* notification: 'placeholder-value',
|
|
9957
10098
|
* // The project to be billed for this request. Required for Requester Pays buckets.
|
|
9958
10099
|
* userProject: 'placeholder-value',
|
|
9959
10100
|
* });
|
|
9960
10101
|
* console.log(res.data);
|
|
9961
|
-
*
|
|
9962
|
-
* // Example response
|
|
9963
|
-
* // {
|
|
9964
|
-
* // "custom_attributes": {},
|
|
9965
|
-
* // "etag": "my_etag",
|
|
9966
|
-
* // "event_types": [],
|
|
9967
|
-
* // "id": "my_id",
|
|
9968
|
-
* // "kind": "my_kind",
|
|
9969
|
-
* // "object_name_prefix": "my_object_name_prefix",
|
|
9970
|
-
* // "payload_format": "my_payload_format",
|
|
9971
|
-
* // "selfLink": "my_selfLink",
|
|
9972
|
-
* // "topic": "my_topic"
|
|
9973
|
-
* // }
|
|
9974
10102
|
* }
|
|
9975
10103
|
*
|
|
9976
10104
|
* main().catch(e => {
|
|
@@ -9985,9 +10113,162 @@ export namespace storage_v1 {
|
|
|
9985
10113
|
* @param callback - Optional callback that handles the response.
|
|
9986
10114
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9987
10115
|
*/
|
|
9988
|
-
|
|
9989
|
-
params: Params$Resource$Notifications$
|
|
9990
|
-
options: StreamMethodOptions
|
|
10116
|
+
delete(
|
|
10117
|
+
params: Params$Resource$Notifications$Delete,
|
|
10118
|
+
options: StreamMethodOptions
|
|
10119
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
10120
|
+
delete(
|
|
10121
|
+
params?: Params$Resource$Notifications$Delete,
|
|
10122
|
+
options?: MethodOptions
|
|
10123
|
+
): Promise<GaxiosResponseWithHTTP2<void>>;
|
|
10124
|
+
delete(
|
|
10125
|
+
params: Params$Resource$Notifications$Delete,
|
|
10126
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
10127
|
+
callback: BodyResponseCallback<Readable>
|
|
10128
|
+
): void;
|
|
10129
|
+
delete(
|
|
10130
|
+
params: Params$Resource$Notifications$Delete,
|
|
10131
|
+
options: MethodOptions | BodyResponseCallback<void>,
|
|
10132
|
+
callback: BodyResponseCallback<void>
|
|
10133
|
+
): void;
|
|
10134
|
+
delete(
|
|
10135
|
+
params: Params$Resource$Notifications$Delete,
|
|
10136
|
+
callback: BodyResponseCallback<void>
|
|
10137
|
+
): void;
|
|
10138
|
+
delete(callback: BodyResponseCallback<void>): void;
|
|
10139
|
+
delete(
|
|
10140
|
+
paramsOrCallback?:
|
|
10141
|
+
| Params$Resource$Notifications$Delete
|
|
10142
|
+
| BodyResponseCallback<void>
|
|
10143
|
+
| BodyResponseCallback<Readable>,
|
|
10144
|
+
optionsOrCallback?:
|
|
10145
|
+
| MethodOptions
|
|
10146
|
+
| StreamMethodOptions
|
|
10147
|
+
| BodyResponseCallback<void>
|
|
10148
|
+
| BodyResponseCallback<Readable>,
|
|
10149
|
+
callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
|
|
10150
|
+
):
|
|
10151
|
+
| void
|
|
10152
|
+
| Promise<GaxiosResponseWithHTTP2<void>>
|
|
10153
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
10154
|
+
let params = (paramsOrCallback ||
|
|
10155
|
+
{}) as Params$Resource$Notifications$Delete;
|
|
10156
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
10157
|
+
|
|
10158
|
+
if (typeof paramsOrCallback === 'function') {
|
|
10159
|
+
callback = paramsOrCallback;
|
|
10160
|
+
params = {} as Params$Resource$Notifications$Delete;
|
|
10161
|
+
options = {};
|
|
10162
|
+
}
|
|
10163
|
+
|
|
10164
|
+
if (typeof optionsOrCallback === 'function') {
|
|
10165
|
+
callback = optionsOrCallback;
|
|
10166
|
+
options = {};
|
|
10167
|
+
}
|
|
10168
|
+
|
|
10169
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
10170
|
+
const parameters = {
|
|
10171
|
+
options: Object.assign(
|
|
10172
|
+
{
|
|
10173
|
+
url: (
|
|
10174
|
+
rootUrl +
|
|
10175
|
+
'/storage/v1/b/{bucket}/notificationConfigs/{notification}'
|
|
10176
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
10177
|
+
method: 'DELETE',
|
|
10178
|
+
apiVersion: '',
|
|
10179
|
+
},
|
|
10180
|
+
options
|
|
10181
|
+
),
|
|
10182
|
+
params,
|
|
10183
|
+
requiredParams: ['bucket', 'notification'],
|
|
10184
|
+
pathParams: ['bucket', 'notification'],
|
|
10185
|
+
context: this.context,
|
|
10186
|
+
};
|
|
10187
|
+
if (callback) {
|
|
10188
|
+
createAPIRequest<void>(
|
|
10189
|
+
parameters,
|
|
10190
|
+
callback as BodyResponseCallback<unknown>
|
|
10191
|
+
);
|
|
10192
|
+
} else {
|
|
10193
|
+
return createAPIRequest<void>(parameters);
|
|
10194
|
+
}
|
|
10195
|
+
}
|
|
10196
|
+
|
|
10197
|
+
/**
|
|
10198
|
+
* View a notification configuration.
|
|
10199
|
+
* @example
|
|
10200
|
+
* ```js
|
|
10201
|
+
* // Before running the sample:
|
|
10202
|
+
* // - Enable the API at:
|
|
10203
|
+
* // https://console.developers.google.com/apis/api/storage.googleapis.com
|
|
10204
|
+
* // - Login into gcloud by running:
|
|
10205
|
+
* // ```sh
|
|
10206
|
+
* // $ gcloud auth application-default login
|
|
10207
|
+
* // ```
|
|
10208
|
+
* // - Install the npm module by running:
|
|
10209
|
+
* // ```sh
|
|
10210
|
+
* // $ npm install googleapis
|
|
10211
|
+
* // ```
|
|
10212
|
+
*
|
|
10213
|
+
* const {google} = require('googleapis');
|
|
10214
|
+
* const storage = google.storage('v1');
|
|
10215
|
+
*
|
|
10216
|
+
* async function main() {
|
|
10217
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10218
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10219
|
+
* scopes: [
|
|
10220
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
10221
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
10222
|
+
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
10223
|
+
* 'https://www.googleapis.com/auth/devstorage.read_only',
|
|
10224
|
+
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
10225
|
+
* ],
|
|
10226
|
+
* });
|
|
10227
|
+
*
|
|
10228
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10229
|
+
* const authClient = await auth.getClient();
|
|
10230
|
+
* google.options({auth: authClient});
|
|
10231
|
+
*
|
|
10232
|
+
* // Do the magic
|
|
10233
|
+
* const res = await storage.notifications.get({
|
|
10234
|
+
* // The parent bucket of the notification.
|
|
10235
|
+
* bucket: 'placeholder-value',
|
|
10236
|
+
* // Notification ID
|
|
10237
|
+
* notification: 'placeholder-value',
|
|
10238
|
+
* // The project to be billed for this request. Required for Requester Pays buckets.
|
|
10239
|
+
* userProject: 'placeholder-value',
|
|
10240
|
+
* });
|
|
10241
|
+
* console.log(res.data);
|
|
10242
|
+
*
|
|
10243
|
+
* // Example response
|
|
10244
|
+
* // {
|
|
10245
|
+
* // "custom_attributes": {},
|
|
10246
|
+
* // "etag": "my_etag",
|
|
10247
|
+
* // "event_types": [],
|
|
10248
|
+
* // "id": "my_id",
|
|
10249
|
+
* // "kind": "my_kind",
|
|
10250
|
+
* // "object_name_prefix": "my_object_name_prefix",
|
|
10251
|
+
* // "payload_format": "my_payload_format",
|
|
10252
|
+
* // "selfLink": "my_selfLink",
|
|
10253
|
+
* // "topic": "my_topic"
|
|
10254
|
+
* // }
|
|
10255
|
+
* }
|
|
10256
|
+
*
|
|
10257
|
+
* main().catch(e => {
|
|
10258
|
+
* console.error(e);
|
|
10259
|
+
* throw e;
|
|
10260
|
+
* });
|
|
10261
|
+
*
|
|
10262
|
+
* ```
|
|
10263
|
+
*
|
|
10264
|
+
* @param params - Parameters for request
|
|
10265
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
10266
|
+
* @param callback - Optional callback that handles the response.
|
|
10267
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
10268
|
+
*/
|
|
10269
|
+
get(
|
|
10270
|
+
params: Params$Resource$Notifications$Get,
|
|
10271
|
+
options: StreamMethodOptions
|
|
9991
10272
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9992
10273
|
get(
|
|
9993
10274
|
params?: Params$Resource$Notifications$Get,
|
|
@@ -10997,8 +11278,7 @@ export namespace storage_v1 {
|
|
|
10997
11278
|
list(
|
|
10998
11279
|
params: Params$Resource$Objectaccesscontrols$List,
|
|
10999
11280
|
options:
|
|
11000
|
-
|
|
|
11001
|
-
| BodyResponseCallback<Schema$ObjectAccessControls>,
|
|
11281
|
+
MethodOptions | BodyResponseCallback<Schema$ObjectAccessControls>,
|
|
11002
11282
|
callback: BodyResponseCallback<Schema$ObjectAccessControls>
|
|
11003
11283
|
): void;
|
|
11004
11284
|
list(
|
|
@@ -11665,8 +11945,7 @@ export namespace storage_v1 {
|
|
|
11665
11945
|
bulkRestore(
|
|
11666
11946
|
params: Params$Resource$Objects$Bulkrestore,
|
|
11667
11947
|
options:
|
|
11668
|
-
|
|
|
11669
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
11948
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
11670
11949
|
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
11671
11950
|
): void;
|
|
11672
11951
|
bulkRestore(
|
|
@@ -11890,8 +12169,7 @@ export namespace storage_v1 {
|
|
|
11890
12169
|
| BodyResponseCallback<Schema$Object>
|
|
11891
12170
|
| BodyResponseCallback<Readable>,
|
|
11892
12171
|
callback?:
|
|
11893
|
-
|
|
11894
|
-
| BodyResponseCallback<Readable>
|
|
12172
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
11895
12173
|
):
|
|
11896
12174
|
| void
|
|
11897
12175
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -12144,8 +12422,7 @@ export namespace storage_v1 {
|
|
|
12144
12422
|
| BodyResponseCallback<Schema$Object>
|
|
12145
12423
|
| BodyResponseCallback<Readable>,
|
|
12146
12424
|
callback?:
|
|
12147
|
-
|
|
12148
|
-
| BodyResponseCallback<Readable>
|
|
12425
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
12149
12426
|
):
|
|
12150
12427
|
| void
|
|
12151
12428
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -12500,8 +12777,7 @@ export namespace storage_v1 {
|
|
|
12500
12777
|
| BodyResponseCallback<Schema$Object>
|
|
12501
12778
|
| BodyResponseCallback<Readable>,
|
|
12502
12779
|
callback?:
|
|
12503
|
-
|
|
12504
|
-
| BodyResponseCallback<Readable>
|
|
12780
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
12505
12781
|
):
|
|
12506
12782
|
| void
|
|
12507
12783
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -12652,8 +12928,7 @@ export namespace storage_v1 {
|
|
|
12652
12928
|
| BodyResponseCallback<Schema$Policy>
|
|
12653
12929
|
| BodyResponseCallback<Readable>,
|
|
12654
12930
|
callback?:
|
|
12655
|
-
|
|
12656
|
-
| BodyResponseCallback<Readable>
|
|
12931
|
+
BodyResponseCallback<Schema$Policy> | BodyResponseCallback<Readable>
|
|
12657
12932
|
):
|
|
12658
12933
|
| void
|
|
12659
12934
|
| Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
|
|
@@ -12899,8 +13174,7 @@ export namespace storage_v1 {
|
|
|
12899
13174
|
| BodyResponseCallback<Schema$Object>
|
|
12900
13175
|
| BodyResponseCallback<Readable>,
|
|
12901
13176
|
callback?:
|
|
12902
|
-
|
|
12903
|
-
| BodyResponseCallback<Readable>
|
|
13177
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
12904
13178
|
):
|
|
12905
13179
|
| void
|
|
12906
13180
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -13076,8 +13350,7 @@ export namespace storage_v1 {
|
|
|
13076
13350
|
| BodyResponseCallback<Schema$Objects>
|
|
13077
13351
|
| BodyResponseCallback<Readable>,
|
|
13078
13352
|
callback?:
|
|
13079
|
-
|
|
13080
|
-
| BodyResponseCallback<Readable>
|
|
13353
|
+
BodyResponseCallback<Schema$Objects> | BodyResponseCallback<Readable>
|
|
13081
13354
|
):
|
|
13082
13355
|
| void
|
|
13083
13356
|
| Promise<GaxiosResponseWithHTTP2<Schema$Objects>>
|
|
@@ -13277,8 +13550,7 @@ export namespace storage_v1 {
|
|
|
13277
13550
|
| BodyResponseCallback<Schema$Object>
|
|
13278
13551
|
| BodyResponseCallback<Readable>,
|
|
13279
13552
|
callback?:
|
|
13280
|
-
|
|
13281
|
-
| BodyResponseCallback<Readable>
|
|
13553
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
13282
13554
|
):
|
|
13283
13555
|
| void
|
|
13284
13556
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -13518,8 +13790,7 @@ export namespace storage_v1 {
|
|
|
13518
13790
|
| BodyResponseCallback<Schema$Object>
|
|
13519
13791
|
| BodyResponseCallback<Readable>,
|
|
13520
13792
|
callback?:
|
|
13521
|
-
|
|
13522
|
-
| BodyResponseCallback<Readable>
|
|
13793
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
13523
13794
|
):
|
|
13524
13795
|
| void
|
|
13525
13796
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -13714,8 +13985,7 @@ export namespace storage_v1 {
|
|
|
13714
13985
|
| BodyResponseCallback<Schema$Object>
|
|
13715
13986
|
| BodyResponseCallback<Readable>,
|
|
13716
13987
|
callback?:
|
|
13717
|
-
|
|
13718
|
-
| BodyResponseCallback<Readable>
|
|
13988
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
13719
13989
|
):
|
|
13720
13990
|
| void
|
|
13721
13991
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -14113,8 +14383,7 @@ export namespace storage_v1 {
|
|
|
14113
14383
|
| BodyResponseCallback<Schema$Policy>
|
|
14114
14384
|
| BodyResponseCallback<Readable>,
|
|
14115
14385
|
callback?:
|
|
14116
|
-
|
|
14117
|
-
| BodyResponseCallback<Readable>
|
|
14386
|
+
BodyResponseCallback<Schema$Policy> | BodyResponseCallback<Readable>
|
|
14118
14387
|
):
|
|
14119
14388
|
| void
|
|
14120
14389
|
| Promise<GaxiosResponseWithHTTP2<Schema$Policy>>
|
|
@@ -14247,8 +14516,7 @@ export namespace storage_v1 {
|
|
|
14247
14516
|
testIamPermissions(
|
|
14248
14517
|
params: Params$Resource$Objects$Testiampermissions,
|
|
14249
14518
|
options:
|
|
14250
|
-
|
|
|
14251
|
-
| BodyResponseCallback<Schema$TestIamPermissionsResponse>,
|
|
14519
|
+
MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>,
|
|
14252
14520
|
callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>
|
|
14253
14521
|
): void;
|
|
14254
14522
|
testIamPermissions(
|
|
@@ -14510,8 +14778,7 @@ export namespace storage_v1 {
|
|
|
14510
14778
|
| BodyResponseCallback<Schema$Object>
|
|
14511
14779
|
| BodyResponseCallback<Readable>,
|
|
14512
14780
|
callback?:
|
|
14513
|
-
|
|
14514
|
-
| BodyResponseCallback<Readable>
|
|
14781
|
+
BodyResponseCallback<Schema$Object> | BodyResponseCallback<Readable>
|
|
14515
14782
|
):
|
|
14516
14783
|
| void
|
|
14517
14784
|
| Promise<GaxiosResponseWithHTTP2<Schema$Object>>
|
|
@@ -14557,197 +14824,9 @@ export namespace storage_v1 {
|
|
|
14557
14824
|
return createAPIRequest<Schema$Object>(parameters);
|
|
14558
14825
|
}
|
|
14559
14826
|
}
|
|
14827
|
+
}
|
|
14560
14828
|
|
|
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
|
-
}
|
|
14749
|
-
|
|
14750
|
-
export interface Params$Resource$Objects$Bulkrestore extends StandardParameters {
|
|
14829
|
+
export interface Params$Resource$Objects$Bulkrestore extends StandardParameters {
|
|
14751
14830
|
/**
|
|
14752
14831
|
* Name of the bucket in which the object resides.
|
|
14753
14832
|
*/
|
|
@@ -15432,66 +15511,679 @@ export namespace storage_v1 {
|
|
|
15432
15511
|
*/
|
|
15433
15512
|
requestBody?: Schema$Object;
|
|
15434
15513
|
}
|
|
15435
|
-
|
|
15436
|
-
|
|
15437
|
-
|
|
15438
|
-
|
|
15439
|
-
|
|
15440
|
-
|
|
15441
|
-
|
|
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;
|
|
15514
|
+
|
|
15515
|
+
export class Resource$Operations {
|
|
15516
|
+
context: APIRequestContext;
|
|
15517
|
+
constructor(context: APIRequestContext) {
|
|
15518
|
+
this.context = context;
|
|
15519
|
+
}
|
|
15520
|
+
|
|
15452
15521
|
/**
|
|
15453
|
-
*
|
|
15522
|
+
* Starts asynchronous advancement of the relocate bucket operation in the case of required write downtime, to allow it to lock the bucket at the source location, and proceed with the bucket location swap. The server makes a best effort to advance the relocate bucket operation, but success is not guaranteed.
|
|
15523
|
+
* @example
|
|
15524
|
+
* ```js
|
|
15525
|
+
* // Before running the sample:
|
|
15526
|
+
* // - Enable the API at:
|
|
15527
|
+
* // https://console.developers.google.com/apis/api/storage.googleapis.com
|
|
15528
|
+
* // - Login into gcloud by running:
|
|
15529
|
+
* // ```sh
|
|
15530
|
+
* // $ gcloud auth application-default login
|
|
15531
|
+
* // ```
|
|
15532
|
+
* // - Install the npm module by running:
|
|
15533
|
+
* // ```sh
|
|
15534
|
+
* // $ npm install googleapis
|
|
15535
|
+
* // ```
|
|
15536
|
+
*
|
|
15537
|
+
* const {google} = require('googleapis');
|
|
15538
|
+
* const storage = google.storage('v1');
|
|
15539
|
+
*
|
|
15540
|
+
* async function main() {
|
|
15541
|
+
* const auth = new google.auth.GoogleAuth({
|
|
15542
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
15543
|
+
* scopes: [
|
|
15544
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
15545
|
+
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
15546
|
+
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
15547
|
+
* ],
|
|
15548
|
+
* });
|
|
15549
|
+
*
|
|
15550
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
15551
|
+
* const authClient = await auth.getClient();
|
|
15552
|
+
* google.options({auth: authClient});
|
|
15553
|
+
*
|
|
15554
|
+
* // Do the magic
|
|
15555
|
+
* const res = await storage.buckets.operations.advanceRelocateBucket({
|
|
15556
|
+
* // Name of the bucket to advance the relocate for.
|
|
15557
|
+
* bucket: 'placeholder-value',
|
|
15558
|
+
* // ID of the operation resource.
|
|
15559
|
+
* operationId: 'placeholder-value',
|
|
15560
|
+
*
|
|
15561
|
+
* // Request body metadata
|
|
15562
|
+
* requestBody: {
|
|
15563
|
+
* // request body parameters
|
|
15564
|
+
* // {
|
|
15565
|
+
* // "expireTime": "my_expireTime",
|
|
15566
|
+
* // "ttl": "my_ttl"
|
|
15567
|
+
* // }
|
|
15568
|
+
* },
|
|
15569
|
+
* });
|
|
15570
|
+
* console.log(res.data);
|
|
15571
|
+
* }
|
|
15572
|
+
*
|
|
15573
|
+
* main().catch(e => {
|
|
15574
|
+
* console.error(e);
|
|
15575
|
+
* throw e;
|
|
15576
|
+
* });
|
|
15577
|
+
*
|
|
15578
|
+
* ```
|
|
15579
|
+
*
|
|
15580
|
+
* @param params - Parameters for request
|
|
15581
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
15582
|
+
* @param callback - Optional callback that handles the response.
|
|
15583
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
15454
15584
|
*/
|
|
15455
|
-
|
|
15585
|
+
advanceRelocateBucket(
|
|
15586
|
+
params: Params$Resource$Operations$Advancerelocatebucket,
|
|
15587
|
+
options: StreamMethodOptions
|
|
15588
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
15589
|
+
advanceRelocateBucket(
|
|
15590
|
+
params?: Params$Resource$Operations$Advancerelocatebucket,
|
|
15591
|
+
options?: MethodOptions
|
|
15592
|
+
): Promise<GaxiosResponseWithHTTP2<void>>;
|
|
15593
|
+
advanceRelocateBucket(
|
|
15594
|
+
params: Params$Resource$Operations$Advancerelocatebucket,
|
|
15595
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
15596
|
+
callback: BodyResponseCallback<Readable>
|
|
15597
|
+
): void;
|
|
15598
|
+
advanceRelocateBucket(
|
|
15599
|
+
params: Params$Resource$Operations$Advancerelocatebucket,
|
|
15600
|
+
options: MethodOptions | BodyResponseCallback<void>,
|
|
15601
|
+
callback: BodyResponseCallback<void>
|
|
15602
|
+
): void;
|
|
15603
|
+
advanceRelocateBucket(
|
|
15604
|
+
params: Params$Resource$Operations$Advancerelocatebucket,
|
|
15605
|
+
callback: BodyResponseCallback<void>
|
|
15606
|
+
): void;
|
|
15607
|
+
advanceRelocateBucket(callback: BodyResponseCallback<void>): void;
|
|
15608
|
+
advanceRelocateBucket(
|
|
15609
|
+
paramsOrCallback?:
|
|
15610
|
+
| Params$Resource$Operations$Advancerelocatebucket
|
|
15611
|
+
| BodyResponseCallback<void>
|
|
15612
|
+
| BodyResponseCallback<Readable>,
|
|
15613
|
+
optionsOrCallback?:
|
|
15614
|
+
| MethodOptions
|
|
15615
|
+
| StreamMethodOptions
|
|
15616
|
+
| BodyResponseCallback<void>
|
|
15617
|
+
| BodyResponseCallback<Readable>,
|
|
15618
|
+
callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
|
|
15619
|
+
):
|
|
15620
|
+
| void
|
|
15621
|
+
| Promise<GaxiosResponseWithHTTP2<void>>
|
|
15622
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
15623
|
+
let params = (paramsOrCallback ||
|
|
15624
|
+
{}) as Params$Resource$Operations$Advancerelocatebucket;
|
|
15625
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
15626
|
+
|
|
15627
|
+
if (typeof paramsOrCallback === 'function') {
|
|
15628
|
+
callback = paramsOrCallback;
|
|
15629
|
+
params = {} as Params$Resource$Operations$Advancerelocatebucket;
|
|
15630
|
+
options = {};
|
|
15631
|
+
}
|
|
15632
|
+
|
|
15633
|
+
if (typeof optionsOrCallback === 'function') {
|
|
15634
|
+
callback = optionsOrCallback;
|
|
15635
|
+
options = {};
|
|
15636
|
+
}
|
|
15637
|
+
|
|
15638
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
15639
|
+
const parameters = {
|
|
15640
|
+
options: Object.assign(
|
|
15641
|
+
{
|
|
15642
|
+
url: (
|
|
15643
|
+
rootUrl +
|
|
15644
|
+
'/storage/v1/b/{bucket}/operations/{operationId}/advanceRelocateBucket'
|
|
15645
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
15646
|
+
method: 'POST',
|
|
15647
|
+
apiVersion: '',
|
|
15648
|
+
},
|
|
15649
|
+
options
|
|
15650
|
+
),
|
|
15651
|
+
params,
|
|
15652
|
+
requiredParams: ['bucket', 'operationId'],
|
|
15653
|
+
pathParams: ['bucket', 'operationId'],
|
|
15654
|
+
context: this.context,
|
|
15655
|
+
};
|
|
15656
|
+
if (callback) {
|
|
15657
|
+
createAPIRequest<void>(
|
|
15658
|
+
parameters,
|
|
15659
|
+
callback as BodyResponseCallback<unknown>
|
|
15660
|
+
);
|
|
15661
|
+
} else {
|
|
15662
|
+
return createAPIRequest<void>(parameters);
|
|
15663
|
+
}
|
|
15664
|
+
}
|
|
15665
|
+
|
|
15456
15666
|
/**
|
|
15457
|
-
*
|
|
15458
|
-
|
|
15459
|
-
|
|
15667
|
+
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed.
|
|
15668
|
+
* @example
|
|
15669
|
+
* ```js
|
|
15670
|
+
* // Before running the sample:
|
|
15671
|
+
* // - Enable the API at:
|
|
15672
|
+
* // https://console.developers.google.com/apis/api/storage.googleapis.com
|
|
15673
|
+
* // - Login into gcloud by running:
|
|
15674
|
+
* // ```sh
|
|
15675
|
+
* // $ gcloud auth application-default login
|
|
15676
|
+
* // ```
|
|
15677
|
+
* // - Install the npm module by running:
|
|
15678
|
+
* // ```sh
|
|
15679
|
+
* // $ npm install googleapis
|
|
15680
|
+
* // ```
|
|
15681
|
+
*
|
|
15682
|
+
* const {google} = require('googleapis');
|
|
15683
|
+
* const storage = google.storage('v1');
|
|
15684
|
+
*
|
|
15685
|
+
* async function main() {
|
|
15686
|
+
* const auth = new google.auth.GoogleAuth({
|
|
15687
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
15688
|
+
* scopes: [
|
|
15689
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
15690
|
+
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
15691
|
+
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
15692
|
+
* ],
|
|
15693
|
+
* });
|
|
15694
|
+
*
|
|
15695
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
15696
|
+
* const authClient = await auth.getClient();
|
|
15697
|
+
* google.options({auth: authClient});
|
|
15698
|
+
*
|
|
15699
|
+
* // Do the magic
|
|
15700
|
+
* const res = await storage.buckets.operations.cancel({
|
|
15701
|
+
* // The parent bucket of the operation resource.
|
|
15702
|
+
* bucket: 'placeholder-value',
|
|
15703
|
+
* // The ID of the operation resource.
|
|
15704
|
+
* operationId: 'placeholder-value',
|
|
15705
|
+
* });
|
|
15706
|
+
* console.log(res.data);
|
|
15707
|
+
* }
|
|
15708
|
+
*
|
|
15709
|
+
* main().catch(e => {
|
|
15710
|
+
* console.error(e);
|
|
15711
|
+
* throw e;
|
|
15712
|
+
* });
|
|
15713
|
+
*
|
|
15714
|
+
* ```
|
|
15715
|
+
*
|
|
15716
|
+
* @param params - Parameters for request
|
|
15717
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
15718
|
+
* @param callback - Optional callback that handles the response.
|
|
15719
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
15720
|
+
*/
|
|
15721
|
+
cancel(
|
|
15722
|
+
params: Params$Resource$Operations$Cancel,
|
|
15723
|
+
options: StreamMethodOptions
|
|
15724
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
15725
|
+
cancel(
|
|
15726
|
+
params?: Params$Resource$Operations$Cancel,
|
|
15727
|
+
options?: MethodOptions
|
|
15728
|
+
): Promise<GaxiosResponseWithHTTP2<void>>;
|
|
15729
|
+
cancel(
|
|
15730
|
+
params: Params$Resource$Operations$Cancel,
|
|
15731
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
15732
|
+
callback: BodyResponseCallback<Readable>
|
|
15733
|
+
): void;
|
|
15734
|
+
cancel(
|
|
15735
|
+
params: Params$Resource$Operations$Cancel,
|
|
15736
|
+
options: MethodOptions | BodyResponseCallback<void>,
|
|
15737
|
+
callback: BodyResponseCallback<void>
|
|
15738
|
+
): void;
|
|
15739
|
+
cancel(
|
|
15740
|
+
params: Params$Resource$Operations$Cancel,
|
|
15741
|
+
callback: BodyResponseCallback<void>
|
|
15742
|
+
): void;
|
|
15743
|
+
cancel(callback: BodyResponseCallback<void>): void;
|
|
15744
|
+
cancel(
|
|
15745
|
+
paramsOrCallback?:
|
|
15746
|
+
| Params$Resource$Operations$Cancel
|
|
15747
|
+
| BodyResponseCallback<void>
|
|
15748
|
+
| BodyResponseCallback<Readable>,
|
|
15749
|
+
optionsOrCallback?:
|
|
15750
|
+
| MethodOptions
|
|
15751
|
+
| StreamMethodOptions
|
|
15752
|
+
| BodyResponseCallback<void>
|
|
15753
|
+
| BodyResponseCallback<Readable>,
|
|
15754
|
+
callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
|
|
15755
|
+
):
|
|
15756
|
+
| void
|
|
15757
|
+
| Promise<GaxiosResponseWithHTTP2<void>>
|
|
15758
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
15759
|
+
let params = (paramsOrCallback ||
|
|
15760
|
+
{}) as Params$Resource$Operations$Cancel;
|
|
15761
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
15762
|
+
|
|
15763
|
+
if (typeof paramsOrCallback === 'function') {
|
|
15764
|
+
callback = paramsOrCallback;
|
|
15765
|
+
params = {} as Params$Resource$Operations$Cancel;
|
|
15766
|
+
options = {};
|
|
15767
|
+
}
|
|
15768
|
+
|
|
15769
|
+
if (typeof optionsOrCallback === 'function') {
|
|
15770
|
+
callback = optionsOrCallback;
|
|
15771
|
+
options = {};
|
|
15772
|
+
}
|
|
15773
|
+
|
|
15774
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
15775
|
+
const parameters = {
|
|
15776
|
+
options: Object.assign(
|
|
15777
|
+
{
|
|
15778
|
+
url: (
|
|
15779
|
+
rootUrl + '/storage/v1/b/{bucket}/operations/{operationId}/cancel'
|
|
15780
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
15781
|
+
method: 'POST',
|
|
15782
|
+
apiVersion: '',
|
|
15783
|
+
},
|
|
15784
|
+
options
|
|
15785
|
+
),
|
|
15786
|
+
params,
|
|
15787
|
+
requiredParams: ['bucket', 'operationId'],
|
|
15788
|
+
pathParams: ['bucket', 'operationId'],
|
|
15789
|
+
context: this.context,
|
|
15790
|
+
};
|
|
15791
|
+
if (callback) {
|
|
15792
|
+
createAPIRequest<void>(
|
|
15793
|
+
parameters,
|
|
15794
|
+
callback as BodyResponseCallback<unknown>
|
|
15795
|
+
);
|
|
15796
|
+
} else {
|
|
15797
|
+
return createAPIRequest<void>(parameters);
|
|
15798
|
+
}
|
|
15799
|
+
}
|
|
15800
|
+
|
|
15801
|
+
/**
|
|
15802
|
+
* Gets the latest state of a long-running operation.
|
|
15803
|
+
* @example
|
|
15804
|
+
* ```js
|
|
15805
|
+
* // Before running the sample:
|
|
15806
|
+
* // - Enable the API at:
|
|
15807
|
+
* // https://console.developers.google.com/apis/api/storage.googleapis.com
|
|
15808
|
+
* // - Login into gcloud by running:
|
|
15809
|
+
* // ```sh
|
|
15810
|
+
* // $ gcloud auth application-default login
|
|
15811
|
+
* // ```
|
|
15812
|
+
* // - Install the npm module by running:
|
|
15813
|
+
* // ```sh
|
|
15814
|
+
* // $ npm install googleapis
|
|
15815
|
+
* // ```
|
|
15816
|
+
*
|
|
15817
|
+
* const {google} = require('googleapis');
|
|
15818
|
+
* const storage = google.storage('v1');
|
|
15819
|
+
*
|
|
15820
|
+
* async function main() {
|
|
15821
|
+
* const auth = new google.auth.GoogleAuth({
|
|
15822
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
15823
|
+
* scopes: [
|
|
15824
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
15825
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
15826
|
+
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
15827
|
+
* 'https://www.googleapis.com/auth/devstorage.read_only',
|
|
15828
|
+
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
15829
|
+
* ],
|
|
15830
|
+
* });
|
|
15831
|
+
*
|
|
15832
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
15833
|
+
* const authClient = await auth.getClient();
|
|
15834
|
+
* google.options({auth: authClient});
|
|
15835
|
+
*
|
|
15836
|
+
* // Do the magic
|
|
15837
|
+
* const res = await storage.buckets.operations.get({
|
|
15838
|
+
* // The parent bucket of the operation resource.
|
|
15839
|
+
* bucket: 'placeholder-value',
|
|
15840
|
+
* // The ID of the operation resource.
|
|
15841
|
+
* operationId: 'placeholder-value',
|
|
15842
|
+
* });
|
|
15843
|
+
* console.log(res.data);
|
|
15844
|
+
*
|
|
15845
|
+
* // Example response
|
|
15846
|
+
* // {
|
|
15847
|
+
* // "done": false,
|
|
15848
|
+
* // "error": {},
|
|
15849
|
+
* // "kind": "my_kind",
|
|
15850
|
+
* // "metadata": {},
|
|
15851
|
+
* // "name": "my_name",
|
|
15852
|
+
* // "response": {},
|
|
15853
|
+
* // "selfLink": "my_selfLink"
|
|
15854
|
+
* // }
|
|
15855
|
+
* }
|
|
15856
|
+
*
|
|
15857
|
+
* main().catch(e => {
|
|
15858
|
+
* console.error(e);
|
|
15859
|
+
* throw e;
|
|
15860
|
+
* });
|
|
15861
|
+
*
|
|
15862
|
+
* ```
|
|
15863
|
+
*
|
|
15864
|
+
* @param params - Parameters for request
|
|
15865
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
15866
|
+
* @param callback - Optional callback that handles the response.
|
|
15867
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
15868
|
+
*/
|
|
15869
|
+
get(
|
|
15870
|
+
params: Params$Resource$Operations$Get,
|
|
15871
|
+
options: StreamMethodOptions
|
|
15872
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
15873
|
+
get(
|
|
15874
|
+
params?: Params$Resource$Operations$Get,
|
|
15875
|
+
options?: MethodOptions
|
|
15876
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
|
|
15877
|
+
get(
|
|
15878
|
+
params: Params$Resource$Operations$Get,
|
|
15879
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
15880
|
+
callback: BodyResponseCallback<Readable>
|
|
15881
|
+
): void;
|
|
15882
|
+
get(
|
|
15883
|
+
params: Params$Resource$Operations$Get,
|
|
15884
|
+
options:
|
|
15885
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
15886
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
15887
|
+
): void;
|
|
15888
|
+
get(
|
|
15889
|
+
params: Params$Resource$Operations$Get,
|
|
15890
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
15891
|
+
): void;
|
|
15892
|
+
get(
|
|
15893
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
15894
|
+
): void;
|
|
15895
|
+
get(
|
|
15896
|
+
paramsOrCallback?:
|
|
15897
|
+
| Params$Resource$Operations$Get
|
|
15898
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
15899
|
+
| BodyResponseCallback<Readable>,
|
|
15900
|
+
optionsOrCallback?:
|
|
15901
|
+
| MethodOptions
|
|
15902
|
+
| StreamMethodOptions
|
|
15903
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
15904
|
+
| BodyResponseCallback<Readable>,
|
|
15905
|
+
callback?:
|
|
15906
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
15907
|
+
| BodyResponseCallback<Readable>
|
|
15908
|
+
):
|
|
15909
|
+
| void
|
|
15910
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
|
|
15911
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
15912
|
+
let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get;
|
|
15913
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
15914
|
+
|
|
15915
|
+
if (typeof paramsOrCallback === 'function') {
|
|
15916
|
+
callback = paramsOrCallback;
|
|
15917
|
+
params = {} as Params$Resource$Operations$Get;
|
|
15918
|
+
options = {};
|
|
15919
|
+
}
|
|
15920
|
+
|
|
15921
|
+
if (typeof optionsOrCallback === 'function') {
|
|
15922
|
+
callback = optionsOrCallback;
|
|
15923
|
+
options = {};
|
|
15924
|
+
}
|
|
15925
|
+
|
|
15926
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
15927
|
+
const parameters = {
|
|
15928
|
+
options: Object.assign(
|
|
15929
|
+
{
|
|
15930
|
+
url: (
|
|
15931
|
+
rootUrl + '/storage/v1/b/{bucket}/operations/{operationId}'
|
|
15932
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
15933
|
+
method: 'GET',
|
|
15934
|
+
apiVersion: '',
|
|
15935
|
+
},
|
|
15936
|
+
options
|
|
15937
|
+
),
|
|
15938
|
+
params,
|
|
15939
|
+
requiredParams: ['bucket', 'operationId'],
|
|
15940
|
+
pathParams: ['bucket', 'operationId'],
|
|
15941
|
+
context: this.context,
|
|
15942
|
+
};
|
|
15943
|
+
if (callback) {
|
|
15944
|
+
createAPIRequest<Schema$GoogleLongrunningOperation>(
|
|
15945
|
+
parameters,
|
|
15946
|
+
callback as BodyResponseCallback<unknown>
|
|
15947
|
+
);
|
|
15948
|
+
} else {
|
|
15949
|
+
return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
|
|
15950
|
+
}
|
|
15951
|
+
}
|
|
15952
|
+
|
|
15953
|
+
/**
|
|
15954
|
+
* Lists operations that match the specified filter in the request.
|
|
15955
|
+
* @example
|
|
15956
|
+
* ```js
|
|
15957
|
+
* // Before running the sample:
|
|
15958
|
+
* // - Enable the API at:
|
|
15959
|
+
* // https://console.developers.google.com/apis/api/storage.googleapis.com
|
|
15960
|
+
* // - Login into gcloud by running:
|
|
15961
|
+
* // ```sh
|
|
15962
|
+
* // $ gcloud auth application-default login
|
|
15963
|
+
* // ```
|
|
15964
|
+
* // - Install the npm module by running:
|
|
15965
|
+
* // ```sh
|
|
15966
|
+
* // $ npm install googleapis
|
|
15967
|
+
* // ```
|
|
15968
|
+
*
|
|
15969
|
+
* const {google} = require('googleapis');
|
|
15970
|
+
* const storage = google.storage('v1');
|
|
15971
|
+
*
|
|
15972
|
+
* async function main() {
|
|
15973
|
+
* const auth = new google.auth.GoogleAuth({
|
|
15974
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
15975
|
+
* scopes: [
|
|
15976
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
15977
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
15978
|
+
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
15979
|
+
* 'https://www.googleapis.com/auth/devstorage.read_only',
|
|
15980
|
+
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
15981
|
+
* ],
|
|
15982
|
+
* });
|
|
15983
|
+
*
|
|
15984
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
15985
|
+
* const authClient = await auth.getClient();
|
|
15986
|
+
* google.options({auth: authClient});
|
|
15987
|
+
*
|
|
15988
|
+
* // Do the magic
|
|
15989
|
+
* const res = await storage.buckets.operations.list({
|
|
15990
|
+
* // Name of the bucket in which to look for operations.
|
|
15991
|
+
* bucket: 'placeholder-value',
|
|
15992
|
+
* // A filter to narrow down results to a preferred subset. The filtering language is documented in more detail in [AIP-160](https://google.aip.dev/160).
|
|
15993
|
+
* filter: 'placeholder-value',
|
|
15994
|
+
* // Maximum number of items to return in a single page of responses. Fewer total results may be returned than requested. The service uses this parameter or 100 items, whichever is smaller.
|
|
15995
|
+
* pageSize: 'placeholder-value',
|
|
15996
|
+
* // A previously-returned page token representing part of the larger set of results to view.
|
|
15997
|
+
* pageToken: 'placeholder-value',
|
|
15998
|
+
* });
|
|
15999
|
+
* console.log(res.data);
|
|
16000
|
+
*
|
|
16001
|
+
* // Example response
|
|
16002
|
+
* // {
|
|
16003
|
+
* // "kind": "my_kind",
|
|
16004
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
16005
|
+
* // "operations": []
|
|
16006
|
+
* // }
|
|
16007
|
+
* }
|
|
16008
|
+
*
|
|
16009
|
+
* main().catch(e => {
|
|
16010
|
+
* console.error(e);
|
|
16011
|
+
* throw e;
|
|
16012
|
+
* });
|
|
16013
|
+
*
|
|
16014
|
+
* ```
|
|
16015
|
+
*
|
|
16016
|
+
* @param params - Parameters for request
|
|
16017
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
16018
|
+
* @param callback - Optional callback that handles the response.
|
|
16019
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
16020
|
+
*/
|
|
16021
|
+
list(
|
|
16022
|
+
params: Params$Resource$Operations$List,
|
|
16023
|
+
options: StreamMethodOptions
|
|
16024
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
16025
|
+
list(
|
|
16026
|
+
params?: Params$Resource$Operations$List,
|
|
16027
|
+
options?: MethodOptions
|
|
16028
|
+
): Promise<
|
|
16029
|
+
GaxiosResponseWithHTTP2<Schema$GoogleLongrunningListOperationsResponse>
|
|
16030
|
+
>;
|
|
16031
|
+
list(
|
|
16032
|
+
params: Params$Resource$Operations$List,
|
|
16033
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
16034
|
+
callback: BodyResponseCallback<Readable>
|
|
16035
|
+
): void;
|
|
16036
|
+
list(
|
|
16037
|
+
params: Params$Resource$Operations$List,
|
|
16038
|
+
options:
|
|
16039
|
+
| MethodOptions
|
|
16040
|
+
| BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>,
|
|
16041
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
|
|
16042
|
+
): void;
|
|
16043
|
+
list(
|
|
16044
|
+
params: Params$Resource$Operations$List,
|
|
16045
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
|
|
16046
|
+
): void;
|
|
16047
|
+
list(
|
|
16048
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
|
|
16049
|
+
): void;
|
|
16050
|
+
list(
|
|
16051
|
+
paramsOrCallback?:
|
|
16052
|
+
| Params$Resource$Operations$List
|
|
16053
|
+
| BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
|
|
16054
|
+
| BodyResponseCallback<Readable>,
|
|
16055
|
+
optionsOrCallback?:
|
|
16056
|
+
| MethodOptions
|
|
16057
|
+
| StreamMethodOptions
|
|
16058
|
+
| BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
|
|
16059
|
+
| BodyResponseCallback<Readable>,
|
|
16060
|
+
callback?:
|
|
16061
|
+
| BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
|
|
16062
|
+
| BodyResponseCallback<Readable>
|
|
16063
|
+
):
|
|
16064
|
+
| void
|
|
16065
|
+
| Promise<
|
|
16066
|
+
GaxiosResponseWithHTTP2<Schema$GoogleLongrunningListOperationsResponse>
|
|
16067
|
+
>
|
|
16068
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
16069
|
+
let params = (paramsOrCallback || {}) as Params$Resource$Operations$List;
|
|
16070
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
16071
|
+
|
|
16072
|
+
if (typeof paramsOrCallback === 'function') {
|
|
16073
|
+
callback = paramsOrCallback;
|
|
16074
|
+
params = {} as Params$Resource$Operations$List;
|
|
16075
|
+
options = {};
|
|
16076
|
+
}
|
|
16077
|
+
|
|
16078
|
+
if (typeof optionsOrCallback === 'function') {
|
|
16079
|
+
callback = optionsOrCallback;
|
|
16080
|
+
options = {};
|
|
16081
|
+
}
|
|
16082
|
+
|
|
16083
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
16084
|
+
const parameters = {
|
|
16085
|
+
options: Object.assign(
|
|
16086
|
+
{
|
|
16087
|
+
url: (rootUrl + '/storage/v1/b/{bucket}/operations').replace(
|
|
16088
|
+
/([^:]\/)\/+/g,
|
|
16089
|
+
'$1'
|
|
16090
|
+
),
|
|
16091
|
+
method: 'GET',
|
|
16092
|
+
apiVersion: '',
|
|
16093
|
+
},
|
|
16094
|
+
options
|
|
16095
|
+
),
|
|
16096
|
+
params,
|
|
16097
|
+
requiredParams: ['bucket'],
|
|
16098
|
+
pathParams: ['bucket'],
|
|
16099
|
+
context: this.context,
|
|
16100
|
+
};
|
|
16101
|
+
if (callback) {
|
|
16102
|
+
createAPIRequest<Schema$GoogleLongrunningListOperationsResponse>(
|
|
16103
|
+
parameters,
|
|
16104
|
+
callback as BodyResponseCallback<unknown>
|
|
16105
|
+
);
|
|
16106
|
+
} else {
|
|
16107
|
+
return createAPIRequest<Schema$GoogleLongrunningListOperationsResponse>(
|
|
16108
|
+
parameters
|
|
16109
|
+
);
|
|
16110
|
+
}
|
|
16111
|
+
}
|
|
16112
|
+
}
|
|
16113
|
+
|
|
16114
|
+
export interface Params$Resource$Operations$Advancerelocatebucket extends StandardParameters {
|
|
16115
|
+
/**
|
|
16116
|
+
* Name of the bucket to advance the relocate for.
|
|
16117
|
+
*/
|
|
16118
|
+
bucket?: string;
|
|
16119
|
+
/**
|
|
16120
|
+
* ID of the operation resource.
|
|
16121
|
+
*/
|
|
16122
|
+
operationId?: string;
|
|
16123
|
+
|
|
16124
|
+
/**
|
|
16125
|
+
* Request body metadata
|
|
16126
|
+
*/
|
|
16127
|
+
requestBody?: Schema$AdvanceRelocateBucketOperationRequest;
|
|
16128
|
+
}
|
|
16129
|
+
export interface Params$Resource$Operations$Cancel extends StandardParameters {
|
|
16130
|
+
/**
|
|
16131
|
+
* The parent bucket of the operation resource.
|
|
16132
|
+
*/
|
|
16133
|
+
bucket?: string;
|
|
16134
|
+
/**
|
|
16135
|
+
* The ID of the operation resource.
|
|
16136
|
+
*/
|
|
16137
|
+
operationId?: string;
|
|
16138
|
+
}
|
|
16139
|
+
export interface Params$Resource$Operations$Get extends StandardParameters {
|
|
15460
16140
|
/**
|
|
15461
|
-
*
|
|
16141
|
+
* The parent bucket of the operation resource.
|
|
15462
16142
|
*/
|
|
15463
|
-
|
|
16143
|
+
bucket?: string;
|
|
15464
16144
|
/**
|
|
15465
|
-
*
|
|
16145
|
+
* The ID of the operation resource.
|
|
15466
16146
|
*/
|
|
15467
|
-
|
|
16147
|
+
operationId?: string;
|
|
16148
|
+
}
|
|
16149
|
+
export interface Params$Resource$Operations$List extends StandardParameters {
|
|
15468
16150
|
/**
|
|
15469
|
-
*
|
|
16151
|
+
* Name of the bucket in which to look for operations.
|
|
15470
16152
|
*/
|
|
15471
|
-
|
|
16153
|
+
bucket?: string;
|
|
15472
16154
|
/**
|
|
15473
|
-
*
|
|
16155
|
+
* A filter to narrow down results to a preferred subset. The filtering language is documented in more detail in [AIP-160](https://google.aip.dev/160).
|
|
15474
16156
|
*/
|
|
15475
|
-
|
|
16157
|
+
filter?: string;
|
|
15476
16158
|
/**
|
|
15477
|
-
*
|
|
16159
|
+
* Maximum number of items to return in a single page of responses. Fewer total results may be returned than requested. The service uses this parameter or 100 items, whichever is smaller.
|
|
15478
16160
|
*/
|
|
15479
|
-
|
|
15480
|
-
|
|
16161
|
+
pageSize?: number;
|
|
15481
16162
|
/**
|
|
15482
|
-
*
|
|
16163
|
+
* A previously-returned page token representing part of the larger set of results to view.
|
|
15483
16164
|
*/
|
|
15484
|
-
|
|
16165
|
+
pageToken?: string;
|
|
15485
16166
|
}
|
|
15486
16167
|
|
|
15487
|
-
export class Resource$
|
|
16168
|
+
export class Resource$Projects {
|
|
16169
|
+
context: APIRequestContext;
|
|
16170
|
+
hmacKeys: Resource$Projects$Hmackeys;
|
|
16171
|
+
serviceAccount: Resource$Projects$Serviceaccount;
|
|
16172
|
+
constructor(context: APIRequestContext) {
|
|
16173
|
+
this.context = context;
|
|
16174
|
+
this.hmacKeys = new Resource$Projects$Hmackeys(this.context);
|
|
16175
|
+
this.serviceAccount = new Resource$Projects$Serviceaccount(this.context);
|
|
16176
|
+
}
|
|
16177
|
+
}
|
|
16178
|
+
|
|
16179
|
+
export class Resource$Projects$Hmackeys {
|
|
15488
16180
|
context: APIRequestContext;
|
|
15489
16181
|
constructor(context: APIRequestContext) {
|
|
15490
16182
|
this.context = context;
|
|
15491
16183
|
}
|
|
15492
16184
|
|
|
15493
16185
|
/**
|
|
15494
|
-
*
|
|
16186
|
+
* Creates a new HMAC key for the specified service account.
|
|
15495
16187
|
* @example
|
|
15496
16188
|
* ```js
|
|
15497
16189
|
* // Before running the sample:
|
|
@@ -15515,7 +16207,6 @@ export namespace storage_v1 {
|
|
|
15515
16207
|
* scopes: [
|
|
15516
16208
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
15517
16209
|
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
15518
|
-
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
15519
16210
|
* ],
|
|
15520
16211
|
* });
|
|
15521
16212
|
*
|
|
@@ -15524,20 +16215,158 @@ export namespace storage_v1 {
|
|
|
15524
16215
|
* google.options({auth: authClient});
|
|
15525
16216
|
*
|
|
15526
16217
|
* // Do the magic
|
|
15527
|
-
* const res = await storage.
|
|
15528
|
-
* //
|
|
15529
|
-
*
|
|
15530
|
-
* //
|
|
15531
|
-
*
|
|
16218
|
+
* const res = await storage.projects.hmacKeys.create({
|
|
16219
|
+
* // Project ID owning the service account.
|
|
16220
|
+
* projectId: 'placeholder-value',
|
|
16221
|
+
* // Email address of the service account.
|
|
16222
|
+
* serviceAccountEmail: 'placeholder-value',
|
|
16223
|
+
* // The project to be billed for this request.
|
|
16224
|
+
* userProject: 'placeholder-value',
|
|
16225
|
+
* });
|
|
16226
|
+
* console.log(res.data);
|
|
15532
16227
|
*
|
|
15533
|
-
*
|
|
15534
|
-
*
|
|
15535
|
-
*
|
|
15536
|
-
*
|
|
15537
|
-
*
|
|
15538
|
-
*
|
|
15539
|
-
*
|
|
15540
|
-
*
|
|
16228
|
+
* // Example response
|
|
16229
|
+
* // {
|
|
16230
|
+
* // "kind": "my_kind",
|
|
16231
|
+
* // "metadata": {},
|
|
16232
|
+
* // "secret": "my_secret"
|
|
16233
|
+
* // }
|
|
16234
|
+
* }
|
|
16235
|
+
*
|
|
16236
|
+
* main().catch(e => {
|
|
16237
|
+
* console.error(e);
|
|
16238
|
+
* throw e;
|
|
16239
|
+
* });
|
|
16240
|
+
*
|
|
16241
|
+
* ```
|
|
16242
|
+
*
|
|
16243
|
+
* @param params - Parameters for request
|
|
16244
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
16245
|
+
* @param callback - Optional callback that handles the response.
|
|
16246
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
16247
|
+
*/
|
|
16248
|
+
create(
|
|
16249
|
+
params: Params$Resource$Projects$Hmackeys$Create,
|
|
16250
|
+
options: StreamMethodOptions
|
|
16251
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
16252
|
+
create(
|
|
16253
|
+
params?: Params$Resource$Projects$Hmackeys$Create,
|
|
16254
|
+
options?: MethodOptions
|
|
16255
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$HmacKey>>;
|
|
16256
|
+
create(
|
|
16257
|
+
params: Params$Resource$Projects$Hmackeys$Create,
|
|
16258
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
16259
|
+
callback: BodyResponseCallback<Readable>
|
|
16260
|
+
): void;
|
|
16261
|
+
create(
|
|
16262
|
+
params: Params$Resource$Projects$Hmackeys$Create,
|
|
16263
|
+
options: MethodOptions | BodyResponseCallback<Schema$HmacKey>,
|
|
16264
|
+
callback: BodyResponseCallback<Schema$HmacKey>
|
|
16265
|
+
): void;
|
|
16266
|
+
create(
|
|
16267
|
+
params: Params$Resource$Projects$Hmackeys$Create,
|
|
16268
|
+
callback: BodyResponseCallback<Schema$HmacKey>
|
|
16269
|
+
): void;
|
|
16270
|
+
create(callback: BodyResponseCallback<Schema$HmacKey>): void;
|
|
16271
|
+
create(
|
|
16272
|
+
paramsOrCallback?:
|
|
16273
|
+
| Params$Resource$Projects$Hmackeys$Create
|
|
16274
|
+
| BodyResponseCallback<Schema$HmacKey>
|
|
16275
|
+
| BodyResponseCallback<Readable>,
|
|
16276
|
+
optionsOrCallback?:
|
|
16277
|
+
| MethodOptions
|
|
16278
|
+
| StreamMethodOptions
|
|
16279
|
+
| BodyResponseCallback<Schema$HmacKey>
|
|
16280
|
+
| BodyResponseCallback<Readable>,
|
|
16281
|
+
callback?:
|
|
16282
|
+
BodyResponseCallback<Schema$HmacKey> | BodyResponseCallback<Readable>
|
|
16283
|
+
):
|
|
16284
|
+
| void
|
|
16285
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$HmacKey>>
|
|
16286
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
16287
|
+
let params = (paramsOrCallback ||
|
|
16288
|
+
{}) as Params$Resource$Projects$Hmackeys$Create;
|
|
16289
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
16290
|
+
|
|
16291
|
+
if (typeof paramsOrCallback === 'function') {
|
|
16292
|
+
callback = paramsOrCallback;
|
|
16293
|
+
params = {} as Params$Resource$Projects$Hmackeys$Create;
|
|
16294
|
+
options = {};
|
|
16295
|
+
}
|
|
16296
|
+
|
|
16297
|
+
if (typeof optionsOrCallback === 'function') {
|
|
16298
|
+
callback = optionsOrCallback;
|
|
16299
|
+
options = {};
|
|
16300
|
+
}
|
|
16301
|
+
|
|
16302
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
16303
|
+
const parameters = {
|
|
16304
|
+
options: Object.assign(
|
|
16305
|
+
{
|
|
16306
|
+
url: (
|
|
16307
|
+
rootUrl + '/storage/v1/projects/{projectId}/hmacKeys'
|
|
16308
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
16309
|
+
method: 'POST',
|
|
16310
|
+
apiVersion: '',
|
|
16311
|
+
},
|
|
16312
|
+
options
|
|
16313
|
+
),
|
|
16314
|
+
params,
|
|
16315
|
+
requiredParams: ['projectId', 'serviceAccountEmail'],
|
|
16316
|
+
pathParams: ['projectId'],
|
|
16317
|
+
context: this.context,
|
|
16318
|
+
};
|
|
16319
|
+
if (callback) {
|
|
16320
|
+
createAPIRequest<Schema$HmacKey>(
|
|
16321
|
+
parameters,
|
|
16322
|
+
callback as BodyResponseCallback<unknown>
|
|
16323
|
+
);
|
|
16324
|
+
} else {
|
|
16325
|
+
return createAPIRequest<Schema$HmacKey>(parameters);
|
|
16326
|
+
}
|
|
16327
|
+
}
|
|
16328
|
+
|
|
16329
|
+
/**
|
|
16330
|
+
* Deletes an HMAC key.
|
|
16331
|
+
* @example
|
|
16332
|
+
* ```js
|
|
16333
|
+
* // Before running the sample:
|
|
16334
|
+
* // - Enable the API at:
|
|
16335
|
+
* // https://console.developers.google.com/apis/api/storage.googleapis.com
|
|
16336
|
+
* // - Login into gcloud by running:
|
|
16337
|
+
* // ```sh
|
|
16338
|
+
* // $ gcloud auth application-default login
|
|
16339
|
+
* // ```
|
|
16340
|
+
* // - Install the npm module by running:
|
|
16341
|
+
* // ```sh
|
|
16342
|
+
* // $ npm install googleapis
|
|
16343
|
+
* // ```
|
|
16344
|
+
*
|
|
16345
|
+
* const {google} = require('googleapis');
|
|
16346
|
+
* const storage = google.storage('v1');
|
|
16347
|
+
*
|
|
16348
|
+
* async function main() {
|
|
16349
|
+
* const auth = new google.auth.GoogleAuth({
|
|
16350
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
16351
|
+
* scopes: [
|
|
16352
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
16353
|
+
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
16354
|
+
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
16355
|
+
* ],
|
|
16356
|
+
* });
|
|
16357
|
+
*
|
|
16358
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
16359
|
+
* const authClient = await auth.getClient();
|
|
16360
|
+
* google.options({auth: authClient});
|
|
16361
|
+
*
|
|
16362
|
+
* // Do the magic
|
|
16363
|
+
* const res = await storage.projects.hmacKeys.delete({
|
|
16364
|
+
* // Name of the HMAC key to be deleted.
|
|
16365
|
+
* accessId: 'placeholder-value',
|
|
16366
|
+
* // Project ID owning the requested key
|
|
16367
|
+
* projectId: 'placeholder-value',
|
|
16368
|
+
* // The project to be billed for this request.
|
|
16369
|
+
* userProject: 'placeholder-value',
|
|
15541
16370
|
* });
|
|
15542
16371
|
* console.log(res.data);
|
|
15543
16372
|
* }
|
|
@@ -15554,32 +16383,32 @@ export namespace storage_v1 {
|
|
|
15554
16383
|
* @param callback - Optional callback that handles the response.
|
|
15555
16384
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
15556
16385
|
*/
|
|
15557
|
-
|
|
15558
|
-
params: Params$Resource$
|
|
16386
|
+
delete(
|
|
16387
|
+
params: Params$Resource$Projects$Hmackeys$Delete,
|
|
15559
16388
|
options: StreamMethodOptions
|
|
15560
16389
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
15561
|
-
|
|
15562
|
-
params?: Params$Resource$
|
|
16390
|
+
delete(
|
|
16391
|
+
params?: Params$Resource$Projects$Hmackeys$Delete,
|
|
15563
16392
|
options?: MethodOptions
|
|
15564
16393
|
): Promise<GaxiosResponseWithHTTP2<void>>;
|
|
15565
|
-
|
|
15566
|
-
params: Params$Resource$
|
|
16394
|
+
delete(
|
|
16395
|
+
params: Params$Resource$Projects$Hmackeys$Delete,
|
|
15567
16396
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
15568
16397
|
callback: BodyResponseCallback<Readable>
|
|
15569
16398
|
): void;
|
|
15570
|
-
|
|
15571
|
-
params: Params$Resource$
|
|
16399
|
+
delete(
|
|
16400
|
+
params: Params$Resource$Projects$Hmackeys$Delete,
|
|
15572
16401
|
options: MethodOptions | BodyResponseCallback<void>,
|
|
15573
16402
|
callback: BodyResponseCallback<void>
|
|
15574
16403
|
): void;
|
|
15575
|
-
|
|
15576
|
-
params: Params$Resource$
|
|
16404
|
+
delete(
|
|
16405
|
+
params: Params$Resource$Projects$Hmackeys$Delete,
|
|
15577
16406
|
callback: BodyResponseCallback<void>
|
|
15578
16407
|
): void;
|
|
15579
|
-
|
|
15580
|
-
|
|
16408
|
+
delete(callback: BodyResponseCallback<void>): void;
|
|
16409
|
+
delete(
|
|
15581
16410
|
paramsOrCallback?:
|
|
15582
|
-
| Params$Resource$
|
|
16411
|
+
| Params$Resource$Projects$Hmackeys$Delete
|
|
15583
16412
|
| BodyResponseCallback<void>
|
|
15584
16413
|
| BodyResponseCallback<Readable>,
|
|
15585
16414
|
optionsOrCallback?:
|
|
@@ -15593,12 +16422,12 @@ export namespace storage_v1 {
|
|
|
15593
16422
|
| Promise<GaxiosResponseWithHTTP2<void>>
|
|
15594
16423
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
15595
16424
|
let params = (paramsOrCallback ||
|
|
15596
|
-
{}) as Params$Resource$
|
|
16425
|
+
{}) as Params$Resource$Projects$Hmackeys$Delete;
|
|
15597
16426
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
15598
16427
|
|
|
15599
16428
|
if (typeof paramsOrCallback === 'function') {
|
|
15600
16429
|
callback = paramsOrCallback;
|
|
15601
|
-
params = {} as Params$Resource$
|
|
16430
|
+
params = {} as Params$Resource$Projects$Hmackeys$Delete;
|
|
15602
16431
|
options = {};
|
|
15603
16432
|
}
|
|
15604
16433
|
|
|
@@ -15612,17 +16441,16 @@ export namespace storage_v1 {
|
|
|
15612
16441
|
options: Object.assign(
|
|
15613
16442
|
{
|
|
15614
16443
|
url: (
|
|
15615
|
-
rootUrl +
|
|
15616
|
-
'/storage/v1/b/{bucket}/operations/{operationId}/advanceRelocateBucket'
|
|
16444
|
+
rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}'
|
|
15617
16445
|
).replace(/([^:]\/)\/+/g, '$1'),
|
|
15618
|
-
method: '
|
|
16446
|
+
method: 'DELETE',
|
|
15619
16447
|
apiVersion: '',
|
|
15620
16448
|
},
|
|
15621
16449
|
options
|
|
15622
16450
|
),
|
|
15623
16451
|
params,
|
|
15624
|
-
requiredParams: ['
|
|
15625
|
-
pathParams: ['
|
|
16452
|
+
requiredParams: ['projectId', 'accessId'],
|
|
16453
|
+
pathParams: ['accessId', 'projectId'],
|
|
15626
16454
|
context: this.context,
|
|
15627
16455
|
};
|
|
15628
16456
|
if (callback) {
|
|
@@ -15636,7 +16464,7 @@ export namespace storage_v1 {
|
|
|
15636
16464
|
}
|
|
15637
16465
|
|
|
15638
16466
|
/**
|
|
15639
|
-
*
|
|
16467
|
+
* Retrieves an HMAC key's metadata
|
|
15640
16468
|
* @example
|
|
15641
16469
|
* ```js
|
|
15642
16470
|
* // Before running the sample:
|
|
@@ -15659,8 +16487,9 @@ export namespace storage_v1 {
|
|
|
15659
16487
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
15660
16488
|
* scopes: [
|
|
15661
16489
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
16490
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
15662
16491
|
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
15663
|
-
* 'https://www.googleapis.com/auth/devstorage.
|
|
16492
|
+
* 'https://www.googleapis.com/auth/devstorage.read_only',
|
|
15664
16493
|
* ],
|
|
15665
16494
|
* });
|
|
15666
16495
|
*
|
|
@@ -15668,14 +16497,30 @@ export namespace storage_v1 {
|
|
|
15668
16497
|
* const authClient = await auth.getClient();
|
|
15669
16498
|
* google.options({auth: authClient});
|
|
15670
16499
|
*
|
|
15671
|
-
* // Do the magic
|
|
15672
|
-
* const res = await storage.
|
|
15673
|
-
* //
|
|
15674
|
-
*
|
|
15675
|
-
* //
|
|
15676
|
-
*
|
|
16500
|
+
* // Do the magic
|
|
16501
|
+
* const res = await storage.projects.hmacKeys.get({
|
|
16502
|
+
* // Name of the HMAC key.
|
|
16503
|
+
* accessId: 'placeholder-value',
|
|
16504
|
+
* // Project ID owning the service account of the requested key.
|
|
16505
|
+
* projectId: 'placeholder-value',
|
|
16506
|
+
* // The project to be billed for this request.
|
|
16507
|
+
* userProject: 'placeholder-value',
|
|
15677
16508
|
* });
|
|
15678
16509
|
* console.log(res.data);
|
|
16510
|
+
*
|
|
16511
|
+
* // Example response
|
|
16512
|
+
* // {
|
|
16513
|
+
* // "accessId": "my_accessId",
|
|
16514
|
+
* // "etag": "my_etag",
|
|
16515
|
+
* // "id": "my_id",
|
|
16516
|
+
* // "kind": "my_kind",
|
|
16517
|
+
* // "projectId": "my_projectId",
|
|
16518
|
+
* // "selfLink": "my_selfLink",
|
|
16519
|
+
* // "serviceAccountEmail": "my_serviceAccountEmail",
|
|
16520
|
+
* // "state": "my_state",
|
|
16521
|
+
* // "timeCreated": "my_timeCreated",
|
|
16522
|
+
* // "updated": "my_updated"
|
|
16523
|
+
* // }
|
|
15679
16524
|
* }
|
|
15680
16525
|
*
|
|
15681
16526
|
* main().catch(e => {
|
|
@@ -15690,51 +16535,53 @@ export namespace storage_v1 {
|
|
|
15690
16535
|
* @param callback - Optional callback that handles the response.
|
|
15691
16536
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
15692
16537
|
*/
|
|
15693
|
-
|
|
15694
|
-
params: Params$Resource$
|
|
16538
|
+
get(
|
|
16539
|
+
params: Params$Resource$Projects$Hmackeys$Get,
|
|
15695
16540
|
options: StreamMethodOptions
|
|
15696
16541
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
15697
|
-
|
|
15698
|
-
params?: Params$Resource$
|
|
16542
|
+
get(
|
|
16543
|
+
params?: Params$Resource$Projects$Hmackeys$Get,
|
|
15699
16544
|
options?: MethodOptions
|
|
15700
|
-
): Promise<GaxiosResponseWithHTTP2<
|
|
15701
|
-
|
|
15702
|
-
params: Params$Resource$
|
|
16545
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$HmacKeyMetadata>>;
|
|
16546
|
+
get(
|
|
16547
|
+
params: Params$Resource$Projects$Hmackeys$Get,
|
|
15703
16548
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
15704
16549
|
callback: BodyResponseCallback<Readable>
|
|
15705
16550
|
): void;
|
|
15706
|
-
|
|
15707
|
-
params: Params$Resource$
|
|
15708
|
-
options: MethodOptions | BodyResponseCallback<
|
|
15709
|
-
callback: BodyResponseCallback<
|
|
16551
|
+
get(
|
|
16552
|
+
params: Params$Resource$Projects$Hmackeys$Get,
|
|
16553
|
+
options: MethodOptions | BodyResponseCallback<Schema$HmacKeyMetadata>,
|
|
16554
|
+
callback: BodyResponseCallback<Schema$HmacKeyMetadata>
|
|
15710
16555
|
): void;
|
|
15711
|
-
|
|
15712
|
-
params: Params$Resource$
|
|
15713
|
-
callback: BodyResponseCallback<
|
|
16556
|
+
get(
|
|
16557
|
+
params: Params$Resource$Projects$Hmackeys$Get,
|
|
16558
|
+
callback: BodyResponseCallback<Schema$HmacKeyMetadata>
|
|
15714
16559
|
): void;
|
|
15715
|
-
|
|
15716
|
-
|
|
16560
|
+
get(callback: BodyResponseCallback<Schema$HmacKeyMetadata>): void;
|
|
16561
|
+
get(
|
|
15717
16562
|
paramsOrCallback?:
|
|
15718
|
-
| Params$Resource$
|
|
15719
|
-
| BodyResponseCallback<
|
|
16563
|
+
| Params$Resource$Projects$Hmackeys$Get
|
|
16564
|
+
| BodyResponseCallback<Schema$HmacKeyMetadata>
|
|
15720
16565
|
| BodyResponseCallback<Readable>,
|
|
15721
16566
|
optionsOrCallback?:
|
|
15722
16567
|
| MethodOptions
|
|
15723
16568
|
| StreamMethodOptions
|
|
15724
|
-
| BodyResponseCallback<
|
|
16569
|
+
| BodyResponseCallback<Schema$HmacKeyMetadata>
|
|
15725
16570
|
| BodyResponseCallback<Readable>,
|
|
15726
|
-
callback?:
|
|
16571
|
+
callback?:
|
|
16572
|
+
| BodyResponseCallback<Schema$HmacKeyMetadata>
|
|
16573
|
+
| BodyResponseCallback<Readable>
|
|
15727
16574
|
):
|
|
15728
16575
|
| void
|
|
15729
|
-
| Promise<GaxiosResponseWithHTTP2<
|
|
16576
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$HmacKeyMetadata>>
|
|
15730
16577
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
15731
16578
|
let params = (paramsOrCallback ||
|
|
15732
|
-
{}) as Params$Resource$
|
|
16579
|
+
{}) as Params$Resource$Projects$Hmackeys$Get;
|
|
15733
16580
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
15734
16581
|
|
|
15735
16582
|
if (typeof paramsOrCallback === 'function') {
|
|
15736
16583
|
callback = paramsOrCallback;
|
|
15737
|
-
params = {} as Params$Resource$
|
|
16584
|
+
params = {} as Params$Resource$Projects$Hmackeys$Get;
|
|
15738
16585
|
options = {};
|
|
15739
16586
|
}
|
|
15740
16587
|
|
|
@@ -15748,30 +16595,30 @@ export namespace storage_v1 {
|
|
|
15748
16595
|
options: Object.assign(
|
|
15749
16596
|
{
|
|
15750
16597
|
url: (
|
|
15751
|
-
rootUrl + '/storage/v1/
|
|
16598
|
+
rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}'
|
|
15752
16599
|
).replace(/([^:]\/)\/+/g, '$1'),
|
|
15753
|
-
method: '
|
|
16600
|
+
method: 'GET',
|
|
15754
16601
|
apiVersion: '',
|
|
15755
16602
|
},
|
|
15756
16603
|
options
|
|
15757
16604
|
),
|
|
15758
16605
|
params,
|
|
15759
|
-
requiredParams: ['
|
|
15760
|
-
pathParams: ['
|
|
16606
|
+
requiredParams: ['projectId', 'accessId'],
|
|
16607
|
+
pathParams: ['accessId', 'projectId'],
|
|
15761
16608
|
context: this.context,
|
|
15762
16609
|
};
|
|
15763
16610
|
if (callback) {
|
|
15764
|
-
createAPIRequest<
|
|
16611
|
+
createAPIRequest<Schema$HmacKeyMetadata>(
|
|
15765
16612
|
parameters,
|
|
15766
16613
|
callback as BodyResponseCallback<unknown>
|
|
15767
16614
|
);
|
|
15768
16615
|
} else {
|
|
15769
|
-
return createAPIRequest<
|
|
16616
|
+
return createAPIRequest<Schema$HmacKeyMetadata>(parameters);
|
|
15770
16617
|
}
|
|
15771
16618
|
}
|
|
15772
16619
|
|
|
15773
16620
|
/**
|
|
15774
|
-
*
|
|
16621
|
+
* Retrieves a list of HMAC keys matching the criteria.
|
|
15775
16622
|
* @example
|
|
15776
16623
|
* ```js
|
|
15777
16624
|
* // Before running the sample:
|
|
@@ -15797,7 +16644,6 @@ export namespace storage_v1 {
|
|
|
15797
16644
|
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
15798
16645
|
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
15799
16646
|
* 'https://www.googleapis.com/auth/devstorage.read_only',
|
|
15800
|
-
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
15801
16647
|
* ],
|
|
15802
16648
|
* });
|
|
15803
16649
|
*
|
|
@@ -15806,23 +16652,27 @@ export namespace storage_v1 {
|
|
|
15806
16652
|
* google.options({auth: authClient});
|
|
15807
16653
|
*
|
|
15808
16654
|
* // Do the magic
|
|
15809
|
-
* const res = await storage.
|
|
15810
|
-
* // The
|
|
15811
|
-
*
|
|
15812
|
-
* //
|
|
15813
|
-
*
|
|
16655
|
+
* const res = await storage.projects.hmacKeys.list({
|
|
16656
|
+
* // Maximum number of items to return in a single page of responses. The service uses this parameter or 250 items, whichever is smaller. The max number of items per page will also be limited by the number of distinct service accounts in the response. If the number of service accounts in a single response is too high, the page will truncated and a next page token will be returned.
|
|
16657
|
+
* maxResults: 'placeholder-value',
|
|
16658
|
+
* // A previously-returned page token representing part of the larger set of results to view.
|
|
16659
|
+
* pageToken: 'placeholder-value',
|
|
16660
|
+
* // Name of the project in which to look for HMAC keys.
|
|
16661
|
+
* projectId: 'placeholder-value',
|
|
16662
|
+
* // If present, only keys for the given service account are returned.
|
|
16663
|
+
* serviceAccountEmail: 'placeholder-value',
|
|
16664
|
+
* // Whether or not to show keys in the DELETED state.
|
|
16665
|
+
* showDeletedKeys: 'placeholder-value',
|
|
16666
|
+
* // The project to be billed for this request.
|
|
16667
|
+
* userProject: 'placeholder-value',
|
|
15814
16668
|
* });
|
|
15815
16669
|
* console.log(res.data);
|
|
15816
16670
|
*
|
|
15817
16671
|
* // Example response
|
|
15818
16672
|
* // {
|
|
15819
|
-
* // "
|
|
15820
|
-
* // "error": {},
|
|
16673
|
+
* // "items": [],
|
|
15821
16674
|
* // "kind": "my_kind",
|
|
15822
|
-
* // "
|
|
15823
|
-
* // "name": "my_name",
|
|
15824
|
-
* // "response": {},
|
|
15825
|
-
* // "selfLink": "my_selfLink"
|
|
16675
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
15826
16676
|
* // }
|
|
15827
16677
|
* }
|
|
15828
16678
|
*
|
|
@@ -15838,56 +16688,53 @@ export namespace storage_v1 {
|
|
|
15838
16688
|
* @param callback - Optional callback that handles the response.
|
|
15839
16689
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
15840
16690
|
*/
|
|
15841
|
-
|
|
15842
|
-
params: Params$Resource$
|
|
16691
|
+
list(
|
|
16692
|
+
params: Params$Resource$Projects$Hmackeys$List,
|
|
15843
16693
|
options: StreamMethodOptions
|
|
15844
16694
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
15845
|
-
|
|
15846
|
-
params?: Params$Resource$
|
|
16695
|
+
list(
|
|
16696
|
+
params?: Params$Resource$Projects$Hmackeys$List,
|
|
15847
16697
|
options?: MethodOptions
|
|
15848
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
15849
|
-
|
|
15850
|
-
params: Params$Resource$
|
|
16698
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$HmacKeysMetadata>>;
|
|
16699
|
+
list(
|
|
16700
|
+
params: Params$Resource$Projects$Hmackeys$List,
|
|
15851
16701
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
15852
16702
|
callback: BodyResponseCallback<Readable>
|
|
15853
16703
|
): void;
|
|
15854
|
-
|
|
15855
|
-
params: Params$Resource$
|
|
15856
|
-
options:
|
|
15857
|
-
|
|
15858
|
-
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
15859
|
-
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
15860
|
-
): void;
|
|
15861
|
-
get(
|
|
15862
|
-
params: Params$Resource$Operations$Get,
|
|
15863
|
-
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
16704
|
+
list(
|
|
16705
|
+
params: Params$Resource$Projects$Hmackeys$List,
|
|
16706
|
+
options: MethodOptions | BodyResponseCallback<Schema$HmacKeysMetadata>,
|
|
16707
|
+
callback: BodyResponseCallback<Schema$HmacKeysMetadata>
|
|
15864
16708
|
): void;
|
|
15865
|
-
|
|
15866
|
-
|
|
16709
|
+
list(
|
|
16710
|
+
params: Params$Resource$Projects$Hmackeys$List,
|
|
16711
|
+
callback: BodyResponseCallback<Schema$HmacKeysMetadata>
|
|
15867
16712
|
): void;
|
|
15868
|
-
|
|
16713
|
+
list(callback: BodyResponseCallback<Schema$HmacKeysMetadata>): void;
|
|
16714
|
+
list(
|
|
15869
16715
|
paramsOrCallback?:
|
|
15870
|
-
| Params$Resource$
|
|
15871
|
-
| BodyResponseCallback<Schema$
|
|
16716
|
+
| Params$Resource$Projects$Hmackeys$List
|
|
16717
|
+
| BodyResponseCallback<Schema$HmacKeysMetadata>
|
|
15872
16718
|
| BodyResponseCallback<Readable>,
|
|
15873
16719
|
optionsOrCallback?:
|
|
15874
16720
|
| MethodOptions
|
|
15875
16721
|
| StreamMethodOptions
|
|
15876
|
-
| BodyResponseCallback<Schema$
|
|
16722
|
+
| BodyResponseCallback<Schema$HmacKeysMetadata>
|
|
15877
16723
|
| BodyResponseCallback<Readable>,
|
|
15878
16724
|
callback?:
|
|
15879
|
-
| BodyResponseCallback<Schema$
|
|
16725
|
+
| BodyResponseCallback<Schema$HmacKeysMetadata>
|
|
15880
16726
|
| BodyResponseCallback<Readable>
|
|
15881
16727
|
):
|
|
15882
16728
|
| void
|
|
15883
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
16729
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$HmacKeysMetadata>>
|
|
15884
16730
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
15885
|
-
let params = (paramsOrCallback ||
|
|
16731
|
+
let params = (paramsOrCallback ||
|
|
16732
|
+
{}) as Params$Resource$Projects$Hmackeys$List;
|
|
15886
16733
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
15887
16734
|
|
|
15888
16735
|
if (typeof paramsOrCallback === 'function') {
|
|
15889
16736
|
callback = paramsOrCallback;
|
|
15890
|
-
params = {} as Params$Resource$
|
|
16737
|
+
params = {} as Params$Resource$Projects$Hmackeys$List;
|
|
15891
16738
|
options = {};
|
|
15892
16739
|
}
|
|
15893
16740
|
|
|
@@ -15901,7 +16748,7 @@ export namespace storage_v1 {
|
|
|
15901
16748
|
options: Object.assign(
|
|
15902
16749
|
{
|
|
15903
16750
|
url: (
|
|
15904
|
-
rootUrl + '/storage/v1/
|
|
16751
|
+
rootUrl + '/storage/v1/projects/{projectId}/hmacKeys'
|
|
15905
16752
|
).replace(/([^:]\/)\/+/g, '$1'),
|
|
15906
16753
|
method: 'GET',
|
|
15907
16754
|
apiVersion: '',
|
|
@@ -15909,22 +16756,22 @@ export namespace storage_v1 {
|
|
|
15909
16756
|
options
|
|
15910
16757
|
),
|
|
15911
16758
|
params,
|
|
15912
|
-
requiredParams: ['
|
|
15913
|
-
pathParams: ['
|
|
16759
|
+
requiredParams: ['projectId'],
|
|
16760
|
+
pathParams: ['projectId'],
|
|
15914
16761
|
context: this.context,
|
|
15915
16762
|
};
|
|
15916
16763
|
if (callback) {
|
|
15917
|
-
createAPIRequest<Schema$
|
|
16764
|
+
createAPIRequest<Schema$HmacKeysMetadata>(
|
|
15918
16765
|
parameters,
|
|
15919
16766
|
callback as BodyResponseCallback<unknown>
|
|
15920
16767
|
);
|
|
15921
16768
|
} else {
|
|
15922
|
-
return createAPIRequest<Schema$
|
|
16769
|
+
return createAPIRequest<Schema$HmacKeysMetadata>(parameters);
|
|
15923
16770
|
}
|
|
15924
16771
|
}
|
|
15925
16772
|
|
|
15926
16773
|
/**
|
|
15927
|
-
*
|
|
16774
|
+
* Updates the state of an HMAC key. See the [HMAC Key resource descriptor](https://cloud.google.com/storage/docs/json_api/v1/projects/hmacKeys/update#request-body) for valid states.
|
|
15928
16775
|
* @example
|
|
15929
16776
|
* ```js
|
|
15930
16777
|
* // Before running the sample:
|
|
@@ -15947,10 +16794,7 @@ export namespace storage_v1 {
|
|
|
15947
16794
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
15948
16795
|
* scopes: [
|
|
15949
16796
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
15950
|
-
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
15951
16797
|
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
15952
|
-
* 'https://www.googleapis.com/auth/devstorage.read_only',
|
|
15953
|
-
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
15954
16798
|
* ],
|
|
15955
16799
|
* });
|
|
15956
16800
|
*
|
|
@@ -15959,23 +16803,45 @@ export namespace storage_v1 {
|
|
|
15959
16803
|
* google.options({auth: authClient});
|
|
15960
16804
|
*
|
|
15961
16805
|
* // Do the magic
|
|
15962
|
-
* const res = await storage.
|
|
15963
|
-
* // Name of the
|
|
15964
|
-
*
|
|
15965
|
-
* //
|
|
15966
|
-
*
|
|
15967
|
-
* //
|
|
15968
|
-
*
|
|
15969
|
-
*
|
|
15970
|
-
*
|
|
16806
|
+
* const res = await storage.projects.hmacKeys.update({
|
|
16807
|
+
* // Name of the HMAC key being updated.
|
|
16808
|
+
* accessId: 'placeholder-value',
|
|
16809
|
+
* // Project ID owning the service account of the updated key.
|
|
16810
|
+
* projectId: 'placeholder-value',
|
|
16811
|
+
* // The project to be billed for this request.
|
|
16812
|
+
* userProject: 'placeholder-value',
|
|
16813
|
+
*
|
|
16814
|
+
* // Request body metadata
|
|
16815
|
+
* requestBody: {
|
|
16816
|
+
* // request body parameters
|
|
16817
|
+
* // {
|
|
16818
|
+
* // "accessId": "my_accessId",
|
|
16819
|
+
* // "etag": "my_etag",
|
|
16820
|
+
* // "id": "my_id",
|
|
16821
|
+
* // "kind": "my_kind",
|
|
16822
|
+
* // "projectId": "my_projectId",
|
|
16823
|
+
* // "selfLink": "my_selfLink",
|
|
16824
|
+
* // "serviceAccountEmail": "my_serviceAccountEmail",
|
|
16825
|
+
* // "state": "my_state",
|
|
16826
|
+
* // "timeCreated": "my_timeCreated",
|
|
16827
|
+
* // "updated": "my_updated"
|
|
16828
|
+
* // }
|
|
16829
|
+
* },
|
|
15971
16830
|
* });
|
|
15972
16831
|
* console.log(res.data);
|
|
15973
16832
|
*
|
|
15974
16833
|
* // Example response
|
|
15975
16834
|
* // {
|
|
16835
|
+
* // "accessId": "my_accessId",
|
|
16836
|
+
* // "etag": "my_etag",
|
|
16837
|
+
* // "id": "my_id",
|
|
15976
16838
|
* // "kind": "my_kind",
|
|
15977
|
-
* // "
|
|
15978
|
-
* // "
|
|
16839
|
+
* // "projectId": "my_projectId",
|
|
16840
|
+
* // "selfLink": "my_selfLink",
|
|
16841
|
+
* // "serviceAccountEmail": "my_serviceAccountEmail",
|
|
16842
|
+
* // "state": "my_state",
|
|
16843
|
+
* // "timeCreated": "my_timeCreated",
|
|
16844
|
+
* // "updated": "my_updated"
|
|
15979
16845
|
* // }
|
|
15980
16846
|
* }
|
|
15981
16847
|
*
|
|
@@ -15991,60 +16857,53 @@ export namespace storage_v1 {
|
|
|
15991
16857
|
* @param callback - Optional callback that handles the response.
|
|
15992
16858
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
15993
16859
|
*/
|
|
15994
|
-
|
|
15995
|
-
params: Params$Resource$
|
|
16860
|
+
update(
|
|
16861
|
+
params: Params$Resource$Projects$Hmackeys$Update,
|
|
15996
16862
|
options: StreamMethodOptions
|
|
15997
16863
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
15998
|
-
|
|
15999
|
-
params?: Params$Resource$
|
|
16864
|
+
update(
|
|
16865
|
+
params?: Params$Resource$Projects$Hmackeys$Update,
|
|
16000
16866
|
options?: MethodOptions
|
|
16001
|
-
): Promise<
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
list(
|
|
16005
|
-
params: Params$Resource$Operations$List,
|
|
16867
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$HmacKeyMetadata>>;
|
|
16868
|
+
update(
|
|
16869
|
+
params: Params$Resource$Projects$Hmackeys$Update,
|
|
16006
16870
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
16007
16871
|
callback: BodyResponseCallback<Readable>
|
|
16008
16872
|
): void;
|
|
16009
|
-
|
|
16010
|
-
params: Params$Resource$
|
|
16011
|
-
options:
|
|
16012
|
-
|
|
16013
|
-
| BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>,
|
|
16014
|
-
callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
|
|
16015
|
-
): void;
|
|
16016
|
-
list(
|
|
16017
|
-
params: Params$Resource$Operations$List,
|
|
16018
|
-
callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
|
|
16873
|
+
update(
|
|
16874
|
+
params: Params$Resource$Projects$Hmackeys$Update,
|
|
16875
|
+
options: MethodOptions | BodyResponseCallback<Schema$HmacKeyMetadata>,
|
|
16876
|
+
callback: BodyResponseCallback<Schema$HmacKeyMetadata>
|
|
16019
16877
|
): void;
|
|
16020
|
-
|
|
16021
|
-
|
|
16878
|
+
update(
|
|
16879
|
+
params: Params$Resource$Projects$Hmackeys$Update,
|
|
16880
|
+
callback: BodyResponseCallback<Schema$HmacKeyMetadata>
|
|
16022
16881
|
): void;
|
|
16023
|
-
|
|
16882
|
+
update(callback: BodyResponseCallback<Schema$HmacKeyMetadata>): void;
|
|
16883
|
+
update(
|
|
16024
16884
|
paramsOrCallback?:
|
|
16025
|
-
| Params$Resource$
|
|
16026
|
-
| BodyResponseCallback<Schema$
|
|
16885
|
+
| Params$Resource$Projects$Hmackeys$Update
|
|
16886
|
+
| BodyResponseCallback<Schema$HmacKeyMetadata>
|
|
16027
16887
|
| BodyResponseCallback<Readable>,
|
|
16028
16888
|
optionsOrCallback?:
|
|
16029
16889
|
| MethodOptions
|
|
16030
16890
|
| StreamMethodOptions
|
|
16031
|
-
| BodyResponseCallback<Schema$
|
|
16891
|
+
| BodyResponseCallback<Schema$HmacKeyMetadata>
|
|
16032
16892
|
| BodyResponseCallback<Readable>,
|
|
16033
16893
|
callback?:
|
|
16034
|
-
| BodyResponseCallback<Schema$
|
|
16894
|
+
| BodyResponseCallback<Schema$HmacKeyMetadata>
|
|
16035
16895
|
| BodyResponseCallback<Readable>
|
|
16036
16896
|
):
|
|
16037
16897
|
| void
|
|
16038
|
-
| Promise<
|
|
16039
|
-
GaxiosResponseWithHTTP2<Schema$GoogleLongrunningListOperationsResponse>
|
|
16040
|
-
>
|
|
16898
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$HmacKeyMetadata>>
|
|
16041
16899
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
16042
|
-
let params = (paramsOrCallback ||
|
|
16900
|
+
let params = (paramsOrCallback ||
|
|
16901
|
+
{}) as Params$Resource$Projects$Hmackeys$Update;
|
|
16043
16902
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
16044
16903
|
|
|
16045
16904
|
if (typeof paramsOrCallback === 'function') {
|
|
16046
16905
|
callback = paramsOrCallback;
|
|
16047
|
-
params = {} as Params$Resource$
|
|
16906
|
+
params = {} as Params$Resource$Projects$Hmackeys$Update;
|
|
16048
16907
|
options = {};
|
|
16049
16908
|
}
|
|
16050
16909
|
|
|
@@ -16057,106 +16916,126 @@ export namespace storage_v1 {
|
|
|
16057
16916
|
const parameters = {
|
|
16058
16917
|
options: Object.assign(
|
|
16059
16918
|
{
|
|
16060
|
-
url: (
|
|
16061
|
-
/
|
|
16062
|
-
|
|
16063
|
-
|
|
16064
|
-
method: 'GET',
|
|
16919
|
+
url: (
|
|
16920
|
+
rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}'
|
|
16921
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
16922
|
+
method: 'PUT',
|
|
16065
16923
|
apiVersion: '',
|
|
16066
16924
|
},
|
|
16067
16925
|
options
|
|
16068
16926
|
),
|
|
16069
16927
|
params,
|
|
16070
|
-
requiredParams: ['
|
|
16071
|
-
pathParams: ['
|
|
16928
|
+
requiredParams: ['projectId', 'accessId'],
|
|
16929
|
+
pathParams: ['accessId', 'projectId'],
|
|
16072
16930
|
context: this.context,
|
|
16073
16931
|
};
|
|
16074
16932
|
if (callback) {
|
|
16075
|
-
createAPIRequest<Schema$
|
|
16933
|
+
createAPIRequest<Schema$HmacKeyMetadata>(
|
|
16076
16934
|
parameters,
|
|
16077
16935
|
callback as BodyResponseCallback<unknown>
|
|
16078
16936
|
);
|
|
16079
16937
|
} else {
|
|
16080
|
-
return createAPIRequest<Schema$
|
|
16081
|
-
parameters
|
|
16082
|
-
);
|
|
16938
|
+
return createAPIRequest<Schema$HmacKeyMetadata>(parameters);
|
|
16083
16939
|
}
|
|
16084
16940
|
}
|
|
16085
16941
|
}
|
|
16086
16942
|
|
|
16087
|
-
export interface Params$Resource$
|
|
16943
|
+
export interface Params$Resource$Projects$Hmackeys$Create extends StandardParameters {
|
|
16088
16944
|
/**
|
|
16089
|
-
*
|
|
16945
|
+
* Project ID owning the service account.
|
|
16090
16946
|
*/
|
|
16091
|
-
|
|
16947
|
+
projectId?: string;
|
|
16092
16948
|
/**
|
|
16093
|
-
*
|
|
16949
|
+
* Email address of the service account.
|
|
16094
16950
|
*/
|
|
16095
|
-
|
|
16096
|
-
|
|
16951
|
+
serviceAccountEmail?: string;
|
|
16097
16952
|
/**
|
|
16098
|
-
*
|
|
16953
|
+
* The project to be billed for this request.
|
|
16099
16954
|
*/
|
|
16100
|
-
|
|
16955
|
+
userProject?: string;
|
|
16101
16956
|
}
|
|
16102
|
-
export interface Params$Resource$
|
|
16957
|
+
export interface Params$Resource$Projects$Hmackeys$Delete extends StandardParameters {
|
|
16103
16958
|
/**
|
|
16104
|
-
*
|
|
16959
|
+
* Name of the HMAC key to be deleted.
|
|
16105
16960
|
*/
|
|
16106
|
-
|
|
16961
|
+
accessId?: string;
|
|
16107
16962
|
/**
|
|
16108
|
-
*
|
|
16963
|
+
* Project ID owning the requested key
|
|
16109
16964
|
*/
|
|
16110
|
-
|
|
16111
|
-
}
|
|
16112
|
-
export interface Params$Resource$Operations$Get extends StandardParameters {
|
|
16965
|
+
projectId?: string;
|
|
16113
16966
|
/**
|
|
16114
|
-
* The
|
|
16967
|
+
* The project to be billed for this request.
|
|
16115
16968
|
*/
|
|
16116
|
-
|
|
16969
|
+
userProject?: string;
|
|
16970
|
+
}
|
|
16971
|
+
export interface Params$Resource$Projects$Hmackeys$Get extends StandardParameters {
|
|
16117
16972
|
/**
|
|
16118
|
-
*
|
|
16973
|
+
* Name of the HMAC key.
|
|
16119
16974
|
*/
|
|
16120
|
-
|
|
16121
|
-
}
|
|
16122
|
-
export interface Params$Resource$Operations$List extends StandardParameters {
|
|
16975
|
+
accessId?: string;
|
|
16123
16976
|
/**
|
|
16124
|
-
*
|
|
16977
|
+
* Project ID owning the service account of the requested key.
|
|
16125
16978
|
*/
|
|
16126
|
-
|
|
16979
|
+
projectId?: string;
|
|
16127
16980
|
/**
|
|
16128
|
-
*
|
|
16981
|
+
* The project to be billed for this request.
|
|
16129
16982
|
*/
|
|
16130
|
-
|
|
16983
|
+
userProject?: string;
|
|
16984
|
+
}
|
|
16985
|
+
export interface Params$Resource$Projects$Hmackeys$List extends StandardParameters {
|
|
16131
16986
|
/**
|
|
16132
|
-
* Maximum number of items to return in a single page of responses.
|
|
16987
|
+
* Maximum number of items to return in a single page of responses. The service uses this parameter or 250 items, whichever is smaller. The max number of items per page will also be limited by the number of distinct service accounts in the response. If the number of service accounts in a single response is too high, the page will truncated and a next page token will be returned.
|
|
16133
16988
|
*/
|
|
16134
|
-
|
|
16989
|
+
maxResults?: number;
|
|
16135
16990
|
/**
|
|
16136
16991
|
* A previously-returned page token representing part of the larger set of results to view.
|
|
16137
16992
|
*/
|
|
16138
16993
|
pageToken?: string;
|
|
16994
|
+
/**
|
|
16995
|
+
* Name of the project in which to look for HMAC keys.
|
|
16996
|
+
*/
|
|
16997
|
+
projectId?: string;
|
|
16998
|
+
/**
|
|
16999
|
+
* If present, only keys for the given service account are returned.
|
|
17000
|
+
*/
|
|
17001
|
+
serviceAccountEmail?: string;
|
|
17002
|
+
/**
|
|
17003
|
+
* Whether or not to show keys in the DELETED state.
|
|
17004
|
+
*/
|
|
17005
|
+
showDeletedKeys?: boolean;
|
|
17006
|
+
/**
|
|
17007
|
+
* The project to be billed for this request.
|
|
17008
|
+
*/
|
|
17009
|
+
userProject?: string;
|
|
16139
17010
|
}
|
|
17011
|
+
export interface Params$Resource$Projects$Hmackeys$Update extends StandardParameters {
|
|
17012
|
+
/**
|
|
17013
|
+
* Name of the HMAC key being updated.
|
|
17014
|
+
*/
|
|
17015
|
+
accessId?: string;
|
|
17016
|
+
/**
|
|
17017
|
+
* Project ID owning the service account of the updated key.
|
|
17018
|
+
*/
|
|
17019
|
+
projectId?: string;
|
|
17020
|
+
/**
|
|
17021
|
+
* The project to be billed for this request.
|
|
17022
|
+
*/
|
|
17023
|
+
userProject?: string;
|
|
16140
17024
|
|
|
16141
|
-
|
|
16142
|
-
|
|
16143
|
-
|
|
16144
|
-
|
|
16145
|
-
constructor(context: APIRequestContext) {
|
|
16146
|
-
this.context = context;
|
|
16147
|
-
this.hmacKeys = new Resource$Projects$Hmackeys(this.context);
|
|
16148
|
-
this.serviceAccount = new Resource$Projects$Serviceaccount(this.context);
|
|
16149
|
-
}
|
|
17025
|
+
/**
|
|
17026
|
+
* Request body metadata
|
|
17027
|
+
*/
|
|
17028
|
+
requestBody?: Schema$HmacKeyMetadata;
|
|
16150
17029
|
}
|
|
16151
17030
|
|
|
16152
|
-
export class Resource$Projects$
|
|
17031
|
+
export class Resource$Projects$Serviceaccount {
|
|
16153
17032
|
context: APIRequestContext;
|
|
16154
17033
|
constructor(context: APIRequestContext) {
|
|
16155
17034
|
this.context = context;
|
|
16156
17035
|
}
|
|
16157
17036
|
|
|
16158
17037
|
/**
|
|
16159
|
-
*
|
|
17038
|
+
* Get the email address of this project's Google Cloud Storage service account.
|
|
16160
17039
|
* @example
|
|
16161
17040
|
* ```js
|
|
16162
17041
|
* // Before running the sample:
|
|
@@ -16179,7 +17058,10 @@ export namespace storage_v1 {
|
|
|
16179
17058
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
16180
17059
|
* scopes: [
|
|
16181
17060
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
17061
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
16182
17062
|
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
17063
|
+
* 'https://www.googleapis.com/auth/devstorage.read_only',
|
|
17064
|
+
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
16183
17065
|
* ],
|
|
16184
17066
|
* });
|
|
16185
17067
|
*
|
|
@@ -16188,11 +17070,9 @@ export namespace storage_v1 {
|
|
|
16188
17070
|
* google.options({auth: authClient});
|
|
16189
17071
|
*
|
|
16190
17072
|
* // Do the magic
|
|
16191
|
-
* const res = await storage.projects.
|
|
16192
|
-
* // Project ID
|
|
17073
|
+
* const res = await storage.projects.serviceAccount.get({
|
|
17074
|
+
* // Project ID
|
|
16193
17075
|
* projectId: 'placeholder-value',
|
|
16194
|
-
* // Email address of the service account.
|
|
16195
|
-
* serviceAccountEmail: 'placeholder-value',
|
|
16196
17076
|
* // The project to be billed for this request.
|
|
16197
17077
|
* userProject: 'placeholder-value',
|
|
16198
17078
|
* });
|
|
@@ -16200,9 +17080,8 @@ export namespace storage_v1 {
|
|
|
16200
17080
|
*
|
|
16201
17081
|
* // Example response
|
|
16202
17082
|
* // {
|
|
16203
|
-
* // "
|
|
16204
|
-
* // "
|
|
16205
|
-
* // "secret": "my_secret"
|
|
17083
|
+
* // "email_address": "my_email_address",
|
|
17084
|
+
* // "kind": "my_kind"
|
|
16206
17085
|
* // }
|
|
16207
17086
|
* }
|
|
16208
17087
|
*
|
|
@@ -16218,53 +17097,53 @@ export namespace storage_v1 {
|
|
|
16218
17097
|
* @param callback - Optional callback that handles the response.
|
|
16219
17098
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
16220
17099
|
*/
|
|
16221
|
-
|
|
16222
|
-
params: Params$Resource$Projects$
|
|
17100
|
+
get(
|
|
17101
|
+
params: Params$Resource$Projects$Serviceaccount$Get,
|
|
16223
17102
|
options: StreamMethodOptions
|
|
16224
17103
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
16225
|
-
|
|
16226
|
-
params?: Params$Resource$Projects$
|
|
17104
|
+
get(
|
|
17105
|
+
params?: Params$Resource$Projects$Serviceaccount$Get,
|
|
16227
17106
|
options?: MethodOptions
|
|
16228
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
16229
|
-
|
|
16230
|
-
params: Params$Resource$Projects$
|
|
17107
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ServiceAccount>>;
|
|
17108
|
+
get(
|
|
17109
|
+
params: Params$Resource$Projects$Serviceaccount$Get,
|
|
16231
17110
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
16232
17111
|
callback: BodyResponseCallback<Readable>
|
|
16233
17112
|
): void;
|
|
16234
|
-
|
|
16235
|
-
params: Params$Resource$Projects$
|
|
16236
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
16237
|
-
callback: BodyResponseCallback<Schema$
|
|
17113
|
+
get(
|
|
17114
|
+
params: Params$Resource$Projects$Serviceaccount$Get,
|
|
17115
|
+
options: MethodOptions | BodyResponseCallback<Schema$ServiceAccount>,
|
|
17116
|
+
callback: BodyResponseCallback<Schema$ServiceAccount>
|
|
16238
17117
|
): void;
|
|
16239
|
-
|
|
16240
|
-
params: Params$Resource$Projects$
|
|
16241
|
-
callback: BodyResponseCallback<Schema$
|
|
17118
|
+
get(
|
|
17119
|
+
params: Params$Resource$Projects$Serviceaccount$Get,
|
|
17120
|
+
callback: BodyResponseCallback<Schema$ServiceAccount>
|
|
16242
17121
|
): void;
|
|
16243
|
-
|
|
16244
|
-
|
|
17122
|
+
get(callback: BodyResponseCallback<Schema$ServiceAccount>): void;
|
|
17123
|
+
get(
|
|
16245
17124
|
paramsOrCallback?:
|
|
16246
|
-
| Params$Resource$Projects$
|
|
16247
|
-
| BodyResponseCallback<Schema$
|
|
17125
|
+
| Params$Resource$Projects$Serviceaccount$Get
|
|
17126
|
+
| BodyResponseCallback<Schema$ServiceAccount>
|
|
16248
17127
|
| BodyResponseCallback<Readable>,
|
|
16249
17128
|
optionsOrCallback?:
|
|
16250
17129
|
| MethodOptions
|
|
16251
17130
|
| StreamMethodOptions
|
|
16252
|
-
| BodyResponseCallback<Schema$
|
|
17131
|
+
| BodyResponseCallback<Schema$ServiceAccount>
|
|
16253
17132
|
| BodyResponseCallback<Readable>,
|
|
16254
17133
|
callback?:
|
|
16255
|
-
| BodyResponseCallback<Schema$
|
|
17134
|
+
| BodyResponseCallback<Schema$ServiceAccount>
|
|
16256
17135
|
| BodyResponseCallback<Readable>
|
|
16257
17136
|
):
|
|
16258
17137
|
| void
|
|
16259
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
17138
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ServiceAccount>>
|
|
16260
17139
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
16261
17140
|
let params = (paramsOrCallback ||
|
|
16262
|
-
{}) as Params$Resource$Projects$
|
|
17141
|
+
{}) as Params$Resource$Projects$Serviceaccount$Get;
|
|
16263
17142
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
16264
17143
|
|
|
16265
17144
|
if (typeof paramsOrCallback === 'function') {
|
|
16266
17145
|
callback = paramsOrCallback;
|
|
16267
|
-
params = {} as Params$Resource$Projects$
|
|
17146
|
+
params = {} as Params$Resource$Projects$Serviceaccount$Get;
|
|
16268
17147
|
options = {};
|
|
16269
17148
|
}
|
|
16270
17149
|
|
|
@@ -16278,30 +17157,48 @@ export namespace storage_v1 {
|
|
|
16278
17157
|
options: Object.assign(
|
|
16279
17158
|
{
|
|
16280
17159
|
url: (
|
|
16281
|
-
rootUrl + '/storage/v1/projects/{projectId}/
|
|
17160
|
+
rootUrl + '/storage/v1/projects/{projectId}/serviceAccount'
|
|
16282
17161
|
).replace(/([^:]\/)\/+/g, '$1'),
|
|
16283
|
-
method: '
|
|
17162
|
+
method: 'GET',
|
|
16284
17163
|
apiVersion: '',
|
|
16285
17164
|
},
|
|
16286
17165
|
options
|
|
16287
17166
|
),
|
|
16288
17167
|
params,
|
|
16289
|
-
requiredParams: ['projectId'
|
|
17168
|
+
requiredParams: ['projectId'],
|
|
16290
17169
|
pathParams: ['projectId'],
|
|
16291
17170
|
context: this.context,
|
|
16292
17171
|
};
|
|
16293
17172
|
if (callback) {
|
|
16294
|
-
createAPIRequest<Schema$
|
|
17173
|
+
createAPIRequest<Schema$ServiceAccount>(
|
|
16295
17174
|
parameters,
|
|
16296
17175
|
callback as BodyResponseCallback<unknown>
|
|
16297
17176
|
);
|
|
16298
17177
|
} else {
|
|
16299
|
-
return createAPIRequest<Schema$
|
|
17178
|
+
return createAPIRequest<Schema$ServiceAccount>(parameters);
|
|
16300
17179
|
}
|
|
16301
17180
|
}
|
|
17181
|
+
}
|
|
16302
17182
|
|
|
17183
|
+
export interface Params$Resource$Projects$Serviceaccount$Get extends StandardParameters {
|
|
16303
17184
|
/**
|
|
16304
|
-
*
|
|
17185
|
+
* Project ID
|
|
17186
|
+
*/
|
|
17187
|
+
projectId?: string;
|
|
17188
|
+
/**
|
|
17189
|
+
* The project to be billed for this request.
|
|
17190
|
+
*/
|
|
17191
|
+
userProject?: string;
|
|
17192
|
+
}
|
|
17193
|
+
|
|
17194
|
+
export class Resource$Rapidcaches {
|
|
17195
|
+
context: APIRequestContext;
|
|
17196
|
+
constructor(context: APIRequestContext) {
|
|
17197
|
+
this.context = context;
|
|
17198
|
+
}
|
|
17199
|
+
|
|
17200
|
+
/**
|
|
17201
|
+
* Disables a Rapid Cache instance.
|
|
16305
17202
|
* @example
|
|
16306
17203
|
* ```js
|
|
16307
17204
|
* // Before running the sample:
|
|
@@ -16334,15 +17231,24 @@ export namespace storage_v1 {
|
|
|
16334
17231
|
* google.options({auth: authClient});
|
|
16335
17232
|
*
|
|
16336
17233
|
* // Do the magic
|
|
16337
|
-
* const res = await storage.
|
|
16338
|
-
* // Name of the
|
|
16339
|
-
*
|
|
16340
|
-
* //
|
|
16341
|
-
*
|
|
16342
|
-
* // The project to be billed for this request.
|
|
16343
|
-
* userProject: 'placeholder-value',
|
|
17234
|
+
* const res = await storage.rapidCaches.disable({
|
|
17235
|
+
* // Name of the parent bucket.
|
|
17236
|
+
* bucket: 'placeholder-value',
|
|
17237
|
+
* // The ID of the requested Rapid Cache instance.
|
|
17238
|
+
* rapidCacheId: 'placeholder-value',
|
|
16344
17239
|
* });
|
|
16345
17240
|
* console.log(res.data);
|
|
17241
|
+
*
|
|
17242
|
+
* // Example response
|
|
17243
|
+
* // {
|
|
17244
|
+
* // "done": false,
|
|
17245
|
+
* // "error": {},
|
|
17246
|
+
* // "kind": "my_kind",
|
|
17247
|
+
* // "metadata": {},
|
|
17248
|
+
* // "name": "my_name",
|
|
17249
|
+
* // "response": {},
|
|
17250
|
+
* // "selfLink": "my_selfLink"
|
|
17251
|
+
* // }
|
|
16346
17252
|
* }
|
|
16347
17253
|
*
|
|
16348
17254
|
* main().catch(e => {
|
|
@@ -16357,51 +17263,56 @@ export namespace storage_v1 {
|
|
|
16357
17263
|
* @param callback - Optional callback that handles the response.
|
|
16358
17264
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
16359
17265
|
*/
|
|
16360
|
-
|
|
16361
|
-
params: Params$Resource$
|
|
17266
|
+
disable(
|
|
17267
|
+
params: Params$Resource$Rapidcaches$Disable,
|
|
16362
17268
|
options: StreamMethodOptions
|
|
16363
17269
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
16364
|
-
|
|
16365
|
-
params?: Params$Resource$
|
|
17270
|
+
disable(
|
|
17271
|
+
params?: Params$Resource$Rapidcaches$Disable,
|
|
16366
17272
|
options?: MethodOptions
|
|
16367
|
-
): Promise<GaxiosResponseWithHTTP2<
|
|
16368
|
-
|
|
16369
|
-
params: Params$Resource$
|
|
17273
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
|
|
17274
|
+
disable(
|
|
17275
|
+
params: Params$Resource$Rapidcaches$Disable,
|
|
16370
17276
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
16371
17277
|
callback: BodyResponseCallback<Readable>
|
|
16372
17278
|
): void;
|
|
16373
|
-
|
|
16374
|
-
params: Params$Resource$
|
|
16375
|
-
options:
|
|
16376
|
-
|
|
17279
|
+
disable(
|
|
17280
|
+
params: Params$Resource$Rapidcaches$Disable,
|
|
17281
|
+
options:
|
|
17282
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
17283
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
16377
17284
|
): void;
|
|
16378
|
-
|
|
16379
|
-
params: Params$Resource$
|
|
16380
|
-
callback: BodyResponseCallback<
|
|
17285
|
+
disable(
|
|
17286
|
+
params: Params$Resource$Rapidcaches$Disable,
|
|
17287
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
16381
17288
|
): void;
|
|
16382
|
-
|
|
16383
|
-
|
|
17289
|
+
disable(
|
|
17290
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
17291
|
+
): void;
|
|
17292
|
+
disable(
|
|
16384
17293
|
paramsOrCallback?:
|
|
16385
|
-
| Params$Resource$
|
|
16386
|
-
| BodyResponseCallback<
|
|
17294
|
+
| Params$Resource$Rapidcaches$Disable
|
|
17295
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
16387
17296
|
| BodyResponseCallback<Readable>,
|
|
16388
17297
|
optionsOrCallback?:
|
|
16389
17298
|
| MethodOptions
|
|
16390
17299
|
| StreamMethodOptions
|
|
16391
|
-
| BodyResponseCallback<
|
|
17300
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
16392
17301
|
| BodyResponseCallback<Readable>,
|
|
16393
|
-
callback?:
|
|
17302
|
+
callback?:
|
|
17303
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
17304
|
+
| BodyResponseCallback<Readable>
|
|
16394
17305
|
):
|
|
16395
17306
|
| void
|
|
16396
|
-
| Promise<GaxiosResponseWithHTTP2<
|
|
17307
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
|
|
16397
17308
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
16398
17309
|
let params = (paramsOrCallback ||
|
|
16399
|
-
{}) as Params$Resource$
|
|
17310
|
+
{}) as Params$Resource$Rapidcaches$Disable;
|
|
16400
17311
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
16401
17312
|
|
|
16402
17313
|
if (typeof paramsOrCallback === 'function') {
|
|
16403
17314
|
callback = paramsOrCallback;
|
|
16404
|
-
params = {} as Params$Resource$
|
|
17315
|
+
params = {} as Params$Resource$Rapidcaches$Disable;
|
|
16405
17316
|
options = {};
|
|
16406
17317
|
}
|
|
16407
17318
|
|
|
@@ -16415,30 +17326,31 @@ export namespace storage_v1 {
|
|
|
16415
17326
|
options: Object.assign(
|
|
16416
17327
|
{
|
|
16417
17328
|
url: (
|
|
16418
|
-
rootUrl +
|
|
17329
|
+
rootUrl +
|
|
17330
|
+
'/storage/v1/b/{bucket}/rapidCaches/{rapidCacheId}/disable'
|
|
16419
17331
|
).replace(/([^:]\/)\/+/g, '$1'),
|
|
16420
|
-
method: '
|
|
17332
|
+
method: 'POST',
|
|
16421
17333
|
apiVersion: '',
|
|
16422
17334
|
},
|
|
16423
17335
|
options
|
|
16424
17336
|
),
|
|
16425
17337
|
params,
|
|
16426
|
-
requiredParams: ['
|
|
16427
|
-
pathParams: ['
|
|
17338
|
+
requiredParams: ['bucket', 'rapidCacheId'],
|
|
17339
|
+
pathParams: ['bucket', 'rapidCacheId'],
|
|
16428
17340
|
context: this.context,
|
|
16429
17341
|
};
|
|
16430
17342
|
if (callback) {
|
|
16431
|
-
createAPIRequest<
|
|
17343
|
+
createAPIRequest<Schema$GoogleLongrunningOperation>(
|
|
16432
17344
|
parameters,
|
|
16433
17345
|
callback as BodyResponseCallback<unknown>
|
|
16434
17346
|
);
|
|
16435
17347
|
} else {
|
|
16436
|
-
return createAPIRequest<
|
|
17348
|
+
return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
|
|
16437
17349
|
}
|
|
16438
17350
|
}
|
|
16439
17351
|
|
|
16440
17352
|
/**
|
|
16441
|
-
*
|
|
17353
|
+
* Returns the metadata of a Rapid Cache instance.
|
|
16442
17354
|
* @example
|
|
16443
17355
|
* ```js
|
|
16444
17356
|
* // Before running the sample:
|
|
@@ -16464,6 +17376,7 @@ export namespace storage_v1 {
|
|
|
16464
17376
|
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
16465
17377
|
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
16466
17378
|
* 'https://www.googleapis.com/auth/devstorage.read_only',
|
|
17379
|
+
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
16467
17380
|
* ],
|
|
16468
17381
|
* });
|
|
16469
17382
|
*
|
|
@@ -16472,28 +17385,30 @@ export namespace storage_v1 {
|
|
|
16472
17385
|
* google.options({auth: authClient});
|
|
16473
17386
|
*
|
|
16474
17387
|
* // Do the magic
|
|
16475
|
-
* const res = await storage.
|
|
16476
|
-
* // Name of the
|
|
16477
|
-
*
|
|
16478
|
-
* //
|
|
16479
|
-
*
|
|
16480
|
-
* // The project to be billed for this request.
|
|
16481
|
-
* userProject: 'placeholder-value',
|
|
17388
|
+
* const res = await storage.rapidCaches.get({
|
|
17389
|
+
* // Name of the parent bucket.
|
|
17390
|
+
* bucket: 'placeholder-value',
|
|
17391
|
+
* // The ID of the requested Rapid Cache instance.
|
|
17392
|
+
* rapidCacheId: 'placeholder-value',
|
|
16482
17393
|
* });
|
|
16483
17394
|
* console.log(res.data);
|
|
16484
17395
|
*
|
|
16485
17396
|
* // Example response
|
|
16486
17397
|
* // {
|
|
16487
|
-
* // "
|
|
16488
|
-
* // "
|
|
17398
|
+
* // "admissionPolicy": "my_admissionPolicy",
|
|
17399
|
+
* // "bucket": "my_bucket",
|
|
17400
|
+
* // "cacheType": "my_cacheType",
|
|
17401
|
+
* // "createTime": "my_createTime",
|
|
16489
17402
|
* // "id": "my_id",
|
|
17403
|
+
* // "ingestOnWrite": false,
|
|
16490
17404
|
* // "kind": "my_kind",
|
|
16491
|
-
* // "
|
|
17405
|
+
* // "pendingUpdate": false,
|
|
17406
|
+
* // "rapidCacheId": "my_rapidCacheId",
|
|
16492
17407
|
* // "selfLink": "my_selfLink",
|
|
16493
|
-
* // "serviceAccountEmail": "my_serviceAccountEmail",
|
|
16494
17408
|
* // "state": "my_state",
|
|
16495
|
-
* // "
|
|
16496
|
-
* // "
|
|
17409
|
+
* // "ttl": "my_ttl",
|
|
17410
|
+
* // "updateTime": "my_updateTime",
|
|
17411
|
+
* // "zone": "my_zone"
|
|
16497
17412
|
* // }
|
|
16498
17413
|
* }
|
|
16499
17414
|
*
|
|
@@ -16510,52 +17425,50 @@ export namespace storage_v1 {
|
|
|
16510
17425
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
16511
17426
|
*/
|
|
16512
17427
|
get(
|
|
16513
|
-
params: Params$Resource$
|
|
17428
|
+
params: Params$Resource$Rapidcaches$Get,
|
|
16514
17429
|
options: StreamMethodOptions
|
|
16515
17430
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
16516
17431
|
get(
|
|
16517
|
-
params?: Params$Resource$
|
|
17432
|
+
params?: Params$Resource$Rapidcaches$Get,
|
|
16518
17433
|
options?: MethodOptions
|
|
16519
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
17434
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$RapidCache>>;
|
|
16520
17435
|
get(
|
|
16521
|
-
params: Params$Resource$
|
|
17436
|
+
params: Params$Resource$Rapidcaches$Get,
|
|
16522
17437
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
16523
17438
|
callback: BodyResponseCallback<Readable>
|
|
16524
17439
|
): void;
|
|
16525
17440
|
get(
|
|
16526
|
-
params: Params$Resource$
|
|
16527
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
16528
|
-
callback: BodyResponseCallback<Schema$
|
|
17441
|
+
params: Params$Resource$Rapidcaches$Get,
|
|
17442
|
+
options: MethodOptions | BodyResponseCallback<Schema$RapidCache>,
|
|
17443
|
+
callback: BodyResponseCallback<Schema$RapidCache>
|
|
16529
17444
|
): void;
|
|
16530
17445
|
get(
|
|
16531
|
-
params: Params$Resource$
|
|
16532
|
-
callback: BodyResponseCallback<Schema$
|
|
17446
|
+
params: Params$Resource$Rapidcaches$Get,
|
|
17447
|
+
callback: BodyResponseCallback<Schema$RapidCache>
|
|
16533
17448
|
): void;
|
|
16534
|
-
get(callback: BodyResponseCallback<Schema$
|
|
17449
|
+
get(callback: BodyResponseCallback<Schema$RapidCache>): void;
|
|
16535
17450
|
get(
|
|
16536
17451
|
paramsOrCallback?:
|
|
16537
|
-
| Params$Resource$
|
|
16538
|
-
| BodyResponseCallback<Schema$
|
|
17452
|
+
| Params$Resource$Rapidcaches$Get
|
|
17453
|
+
| BodyResponseCallback<Schema$RapidCache>
|
|
16539
17454
|
| BodyResponseCallback<Readable>,
|
|
16540
17455
|
optionsOrCallback?:
|
|
16541
17456
|
| MethodOptions
|
|
16542
17457
|
| StreamMethodOptions
|
|
16543
|
-
| BodyResponseCallback<Schema$
|
|
17458
|
+
| BodyResponseCallback<Schema$RapidCache>
|
|
16544
17459
|
| BodyResponseCallback<Readable>,
|
|
16545
17460
|
callback?:
|
|
16546
|
-
|
|
16547
|
-
| BodyResponseCallback<Readable>
|
|
17461
|
+
BodyResponseCallback<Schema$RapidCache> | BodyResponseCallback<Readable>
|
|
16548
17462
|
):
|
|
16549
17463
|
| void
|
|
16550
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
17464
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$RapidCache>>
|
|
16551
17465
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
16552
|
-
let params = (paramsOrCallback ||
|
|
16553
|
-
{}) as Params$Resource$Projects$Hmackeys$Get;
|
|
17466
|
+
let params = (paramsOrCallback || {}) as Params$Resource$Rapidcaches$Get;
|
|
16554
17467
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
16555
17468
|
|
|
16556
17469
|
if (typeof paramsOrCallback === 'function') {
|
|
16557
17470
|
callback = paramsOrCallback;
|
|
16558
|
-
params = {} as Params$Resource$
|
|
17471
|
+
params = {} as Params$Resource$Rapidcaches$Get;
|
|
16559
17472
|
options = {};
|
|
16560
17473
|
}
|
|
16561
17474
|
|
|
@@ -16569,7 +17482,7 @@ export namespace storage_v1 {
|
|
|
16569
17482
|
options: Object.assign(
|
|
16570
17483
|
{
|
|
16571
17484
|
url: (
|
|
16572
|
-
rootUrl + '/storage/v1/
|
|
17485
|
+
rootUrl + '/storage/v1/b/{bucket}/rapidCaches/{rapidCacheId}'
|
|
16573
17486
|
).replace(/([^:]\/)\/+/g, '$1'),
|
|
16574
17487
|
method: 'GET',
|
|
16575
17488
|
apiVersion: '',
|
|
@@ -16577,22 +17490,22 @@ export namespace storage_v1 {
|
|
|
16577
17490
|
options
|
|
16578
17491
|
),
|
|
16579
17492
|
params,
|
|
16580
|
-
requiredParams: ['
|
|
16581
|
-
pathParams: ['
|
|
17493
|
+
requiredParams: ['bucket', 'rapidCacheId'],
|
|
17494
|
+
pathParams: ['bucket', 'rapidCacheId'],
|
|
16582
17495
|
context: this.context,
|
|
16583
17496
|
};
|
|
16584
17497
|
if (callback) {
|
|
16585
|
-
createAPIRequest<Schema$
|
|
17498
|
+
createAPIRequest<Schema$RapidCache>(
|
|
16586
17499
|
parameters,
|
|
16587
17500
|
callback as BodyResponseCallback<unknown>
|
|
16588
17501
|
);
|
|
16589
17502
|
} else {
|
|
16590
|
-
return createAPIRequest<Schema$
|
|
17503
|
+
return createAPIRequest<Schema$RapidCache>(parameters);
|
|
16591
17504
|
}
|
|
16592
17505
|
}
|
|
16593
17506
|
|
|
16594
17507
|
/**
|
|
16595
|
-
*
|
|
17508
|
+
* Creates a Rapid Cache instance.
|
|
16596
17509
|
* @example
|
|
16597
17510
|
* ```js
|
|
16598
17511
|
* // Before running the sample:
|
|
@@ -16615,9 +17528,8 @@ export namespace storage_v1 {
|
|
|
16615
17528
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
16616
17529
|
* scopes: [
|
|
16617
17530
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
16618
|
-
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
16619
17531
|
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
16620
|
-
* 'https://www.googleapis.com/auth/devstorage.
|
|
17532
|
+
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
16621
17533
|
* ],
|
|
16622
17534
|
* });
|
|
16623
17535
|
*
|
|
@@ -16626,27 +17538,42 @@ export namespace storage_v1 {
|
|
|
16626
17538
|
* google.options({auth: authClient});
|
|
16627
17539
|
*
|
|
16628
17540
|
* // Do the magic
|
|
16629
|
-
* const res = await storage.
|
|
16630
|
-
* //
|
|
16631
|
-
*
|
|
16632
|
-
*
|
|
16633
|
-
*
|
|
16634
|
-
*
|
|
16635
|
-
*
|
|
16636
|
-
*
|
|
16637
|
-
*
|
|
16638
|
-
*
|
|
16639
|
-
*
|
|
16640
|
-
*
|
|
16641
|
-
*
|
|
17541
|
+
* const res = await storage.rapidCaches.insert({
|
|
17542
|
+
* // Name of the parent bucket.
|
|
17543
|
+
* bucket: 'placeholder-value',
|
|
17544
|
+
*
|
|
17545
|
+
* // Request body metadata
|
|
17546
|
+
* requestBody: {
|
|
17547
|
+
* // request body parameters
|
|
17548
|
+
* // {
|
|
17549
|
+
* // "admissionPolicy": "my_admissionPolicy",
|
|
17550
|
+
* // "bucket": "my_bucket",
|
|
17551
|
+
* // "cacheType": "my_cacheType",
|
|
17552
|
+
* // "createTime": "my_createTime",
|
|
17553
|
+
* // "id": "my_id",
|
|
17554
|
+
* // "ingestOnWrite": false,
|
|
17555
|
+
* // "kind": "my_kind",
|
|
17556
|
+
* // "pendingUpdate": false,
|
|
17557
|
+
* // "rapidCacheId": "my_rapidCacheId",
|
|
17558
|
+
* // "selfLink": "my_selfLink",
|
|
17559
|
+
* // "state": "my_state",
|
|
17560
|
+
* // "ttl": "my_ttl",
|
|
17561
|
+
* // "updateTime": "my_updateTime",
|
|
17562
|
+
* // "zone": "my_zone"
|
|
17563
|
+
* // }
|
|
17564
|
+
* },
|
|
16642
17565
|
* });
|
|
16643
17566
|
* console.log(res.data);
|
|
16644
17567
|
*
|
|
16645
17568
|
* // Example response
|
|
16646
17569
|
* // {
|
|
16647
|
-
* // "
|
|
17570
|
+
* // "done": false,
|
|
17571
|
+
* // "error": {},
|
|
16648
17572
|
* // "kind": "my_kind",
|
|
16649
|
-
* // "
|
|
17573
|
+
* // "metadata": {},
|
|
17574
|
+
* // "name": "my_name",
|
|
17575
|
+
* // "response": {},
|
|
17576
|
+
* // "selfLink": "my_selfLink"
|
|
16650
17577
|
* // }
|
|
16651
17578
|
* }
|
|
16652
17579
|
*
|
|
@@ -16662,53 +17589,56 @@ export namespace storage_v1 {
|
|
|
16662
17589
|
* @param callback - Optional callback that handles the response.
|
|
16663
17590
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
16664
17591
|
*/
|
|
16665
|
-
|
|
16666
|
-
params: Params$Resource$
|
|
17592
|
+
insert(
|
|
17593
|
+
params: Params$Resource$Rapidcaches$Insert,
|
|
16667
17594
|
options: StreamMethodOptions
|
|
16668
17595
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
16669
|
-
|
|
16670
|
-
params?: Params$Resource$
|
|
17596
|
+
insert(
|
|
17597
|
+
params?: Params$Resource$Rapidcaches$Insert,
|
|
16671
17598
|
options?: MethodOptions
|
|
16672
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
16673
|
-
|
|
16674
|
-
params: Params$Resource$
|
|
17599
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
|
|
17600
|
+
insert(
|
|
17601
|
+
params: Params$Resource$Rapidcaches$Insert,
|
|
16675
17602
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
16676
17603
|
callback: BodyResponseCallback<Readable>
|
|
16677
17604
|
): void;
|
|
16678
|
-
|
|
16679
|
-
params: Params$Resource$
|
|
16680
|
-
options:
|
|
16681
|
-
|
|
17605
|
+
insert(
|
|
17606
|
+
params: Params$Resource$Rapidcaches$Insert,
|
|
17607
|
+
options:
|
|
17608
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
17609
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
16682
17610
|
): void;
|
|
16683
|
-
|
|
16684
|
-
params: Params$Resource$
|
|
16685
|
-
callback: BodyResponseCallback<Schema$
|
|
17611
|
+
insert(
|
|
17612
|
+
params: Params$Resource$Rapidcaches$Insert,
|
|
17613
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
16686
17614
|
): void;
|
|
16687
|
-
|
|
16688
|
-
|
|
17615
|
+
insert(
|
|
17616
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
17617
|
+
): void;
|
|
17618
|
+
insert(
|
|
16689
17619
|
paramsOrCallback?:
|
|
16690
|
-
| Params$Resource$
|
|
16691
|
-
| BodyResponseCallback<Schema$
|
|
17620
|
+
| Params$Resource$Rapidcaches$Insert
|
|
17621
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
16692
17622
|
| BodyResponseCallback<Readable>,
|
|
16693
17623
|
optionsOrCallback?:
|
|
16694
17624
|
| MethodOptions
|
|
16695
17625
|
| StreamMethodOptions
|
|
16696
|
-
| BodyResponseCallback<Schema$
|
|
17626
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
16697
17627
|
| BodyResponseCallback<Readable>,
|
|
16698
17628
|
callback?:
|
|
16699
|
-
| BodyResponseCallback<Schema$
|
|
17629
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
16700
17630
|
| BodyResponseCallback<Readable>
|
|
16701
17631
|
):
|
|
16702
17632
|
| void
|
|
16703
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
17633
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
|
|
16704
17634
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
16705
17635
|
let params = (paramsOrCallback ||
|
|
16706
|
-
{}) as Params$Resource$
|
|
17636
|
+
{}) as Params$Resource$Rapidcaches$Insert;
|
|
16707
17637
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
16708
17638
|
|
|
16709
17639
|
if (typeof paramsOrCallback === 'function') {
|
|
16710
17640
|
callback = paramsOrCallback;
|
|
16711
|
-
params = {} as Params$Resource$
|
|
17641
|
+
params = {} as Params$Resource$Rapidcaches$Insert;
|
|
16712
17642
|
options = {};
|
|
16713
17643
|
}
|
|
16714
17644
|
|
|
@@ -16721,31 +17651,32 @@ export namespace storage_v1 {
|
|
|
16721
17651
|
const parameters = {
|
|
16722
17652
|
options: Object.assign(
|
|
16723
17653
|
{
|
|
16724
|
-
url: (
|
|
16725
|
-
|
|
16726
|
-
|
|
16727
|
-
|
|
17654
|
+
url: (rootUrl + '/storage/v1/b/{bucket}/rapidCaches').replace(
|
|
17655
|
+
/([^:]\/)\/+/g,
|
|
17656
|
+
'$1'
|
|
17657
|
+
),
|
|
17658
|
+
method: 'POST',
|
|
16728
17659
|
apiVersion: '',
|
|
16729
17660
|
},
|
|
16730
17661
|
options
|
|
16731
17662
|
),
|
|
16732
17663
|
params,
|
|
16733
|
-
requiredParams: ['
|
|
16734
|
-
pathParams: ['
|
|
17664
|
+
requiredParams: ['bucket'],
|
|
17665
|
+
pathParams: ['bucket'],
|
|
16735
17666
|
context: this.context,
|
|
16736
17667
|
};
|
|
16737
17668
|
if (callback) {
|
|
16738
|
-
createAPIRequest<Schema$
|
|
17669
|
+
createAPIRequest<Schema$GoogleLongrunningOperation>(
|
|
16739
17670
|
parameters,
|
|
16740
17671
|
callback as BodyResponseCallback<unknown>
|
|
16741
17672
|
);
|
|
16742
17673
|
} else {
|
|
16743
|
-
return createAPIRequest<Schema$
|
|
17674
|
+
return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
|
|
16744
17675
|
}
|
|
16745
17676
|
}
|
|
16746
17677
|
|
|
16747
17678
|
/**
|
|
16748
|
-
*
|
|
17679
|
+
* Returns a list of Rapid Cache instances of the bucket.
|
|
16749
17680
|
* @example
|
|
16750
17681
|
* ```js
|
|
16751
17682
|
* // Before running the sample:
|
|
@@ -16768,7 +17699,10 @@ export namespace storage_v1 {
|
|
|
16768
17699
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
16769
17700
|
* scopes: [
|
|
16770
17701
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
17702
|
+
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
16771
17703
|
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
17704
|
+
* 'https://www.googleapis.com/auth/devstorage.read_only',
|
|
17705
|
+
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
16772
17706
|
* ],
|
|
16773
17707
|
* });
|
|
16774
17708
|
*
|
|
@@ -16777,45 +17711,21 @@ export namespace storage_v1 {
|
|
|
16777
17711
|
* google.options({auth: authClient});
|
|
16778
17712
|
*
|
|
16779
17713
|
* // Do the magic
|
|
16780
|
-
* const res = await storage.
|
|
16781
|
-
* // Name of the
|
|
16782
|
-
*
|
|
16783
|
-
* //
|
|
16784
|
-
*
|
|
16785
|
-
* //
|
|
16786
|
-
*
|
|
16787
|
-
*
|
|
16788
|
-
* // Request body metadata
|
|
16789
|
-
* requestBody: {
|
|
16790
|
-
* // request body parameters
|
|
16791
|
-
* // {
|
|
16792
|
-
* // "accessId": "my_accessId",
|
|
16793
|
-
* // "etag": "my_etag",
|
|
16794
|
-
* // "id": "my_id",
|
|
16795
|
-
* // "kind": "my_kind",
|
|
16796
|
-
* // "projectId": "my_projectId",
|
|
16797
|
-
* // "selfLink": "my_selfLink",
|
|
16798
|
-
* // "serviceAccountEmail": "my_serviceAccountEmail",
|
|
16799
|
-
* // "state": "my_state",
|
|
16800
|
-
* // "timeCreated": "my_timeCreated",
|
|
16801
|
-
* // "updated": "my_updated"
|
|
16802
|
-
* // }
|
|
16803
|
-
* },
|
|
17714
|
+
* const res = await storage.rapidCaches.list({
|
|
17715
|
+
* // Name of the parent bucket.
|
|
17716
|
+
* bucket: 'placeholder-value',
|
|
17717
|
+
* // Maximum number of items to return in a single page of responses.
|
|
17718
|
+
* pageSize: 'placeholder-value',
|
|
17719
|
+
* // A previously-returned page token representing part of the larger set of results to view.
|
|
17720
|
+
* pageToken: 'placeholder-value',
|
|
16804
17721
|
* });
|
|
16805
17722
|
* console.log(res.data);
|
|
16806
17723
|
*
|
|
16807
17724
|
* // Example response
|
|
16808
17725
|
* // {
|
|
16809
|
-
* // "
|
|
16810
|
-
* // "etag": "my_etag",
|
|
16811
|
-
* // "id": "my_id",
|
|
17726
|
+
* // "items": [],
|
|
16812
17727
|
* // "kind": "my_kind",
|
|
16813
|
-
* // "
|
|
16814
|
-
* // "selfLink": "my_selfLink",
|
|
16815
|
-
* // "serviceAccountEmail": "my_serviceAccountEmail",
|
|
16816
|
-
* // "state": "my_state",
|
|
16817
|
-
* // "timeCreated": "my_timeCreated",
|
|
16818
|
-
* // "updated": "my_updated"
|
|
17728
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
16819
17729
|
* // }
|
|
16820
17730
|
* }
|
|
16821
17731
|
*
|
|
@@ -16831,53 +17741,52 @@ export namespace storage_v1 {
|
|
|
16831
17741
|
* @param callback - Optional callback that handles the response.
|
|
16832
17742
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
16833
17743
|
*/
|
|
16834
|
-
|
|
16835
|
-
params: Params$Resource$
|
|
17744
|
+
list(
|
|
17745
|
+
params: Params$Resource$Rapidcaches$List,
|
|
16836
17746
|
options: StreamMethodOptions
|
|
16837
17747
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
16838
|
-
|
|
16839
|
-
params?: Params$Resource$
|
|
17748
|
+
list(
|
|
17749
|
+
params?: Params$Resource$Rapidcaches$List,
|
|
16840
17750
|
options?: MethodOptions
|
|
16841
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
16842
|
-
|
|
16843
|
-
params: Params$Resource$
|
|
17751
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$RapidCaches>>;
|
|
17752
|
+
list(
|
|
17753
|
+
params: Params$Resource$Rapidcaches$List,
|
|
16844
17754
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
16845
17755
|
callback: BodyResponseCallback<Readable>
|
|
16846
17756
|
): void;
|
|
16847
|
-
|
|
16848
|
-
params: Params$Resource$
|
|
16849
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
16850
|
-
callback: BodyResponseCallback<Schema$
|
|
16851
|
-
): void;
|
|
16852
|
-
update(
|
|
16853
|
-
params: Params$Resource$Projects$Hmackeys$Update,
|
|
16854
|
-
callback: BodyResponseCallback<Schema$HmacKeyMetadata>
|
|
17757
|
+
list(
|
|
17758
|
+
params: Params$Resource$Rapidcaches$List,
|
|
17759
|
+
options: MethodOptions | BodyResponseCallback<Schema$RapidCaches>,
|
|
17760
|
+
callback: BodyResponseCallback<Schema$RapidCaches>
|
|
16855
17761
|
): void;
|
|
16856
|
-
|
|
16857
|
-
|
|
17762
|
+
list(
|
|
17763
|
+
params: Params$Resource$Rapidcaches$List,
|
|
17764
|
+
callback: BodyResponseCallback<Schema$RapidCaches>
|
|
17765
|
+
): void;
|
|
17766
|
+
list(callback: BodyResponseCallback<Schema$RapidCaches>): void;
|
|
17767
|
+
list(
|
|
16858
17768
|
paramsOrCallback?:
|
|
16859
|
-
| Params$Resource$
|
|
16860
|
-
| BodyResponseCallback<Schema$
|
|
17769
|
+
| Params$Resource$Rapidcaches$List
|
|
17770
|
+
| BodyResponseCallback<Schema$RapidCaches>
|
|
16861
17771
|
| BodyResponseCallback<Readable>,
|
|
16862
17772
|
optionsOrCallback?:
|
|
16863
17773
|
| MethodOptions
|
|
16864
17774
|
| StreamMethodOptions
|
|
16865
|
-
| BodyResponseCallback<Schema$
|
|
17775
|
+
| BodyResponseCallback<Schema$RapidCaches>
|
|
16866
17776
|
| BodyResponseCallback<Readable>,
|
|
16867
17777
|
callback?:
|
|
16868
|
-
| BodyResponseCallback<Schema$
|
|
17778
|
+
| BodyResponseCallback<Schema$RapidCaches>
|
|
16869
17779
|
| BodyResponseCallback<Readable>
|
|
16870
17780
|
):
|
|
16871
17781
|
| void
|
|
16872
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
17782
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$RapidCaches>>
|
|
16873
17783
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
16874
|
-
let params = (paramsOrCallback ||
|
|
16875
|
-
{}) as Params$Resource$Projects$Hmackeys$Update;
|
|
17784
|
+
let params = (paramsOrCallback || {}) as Params$Resource$Rapidcaches$List;
|
|
16876
17785
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
16877
17786
|
|
|
16878
17787
|
if (typeof paramsOrCallback === 'function') {
|
|
16879
17788
|
callback = paramsOrCallback;
|
|
16880
|
-
params = {} as Params$Resource$
|
|
17789
|
+
params = {} as Params$Resource$Rapidcaches$List;
|
|
16881
17790
|
options = {};
|
|
16882
17791
|
}
|
|
16883
17792
|
|
|
@@ -16890,126 +17799,32 @@ export namespace storage_v1 {
|
|
|
16890
17799
|
const parameters = {
|
|
16891
17800
|
options: Object.assign(
|
|
16892
17801
|
{
|
|
16893
|
-
url: (
|
|
16894
|
-
|
|
16895
|
-
|
|
16896
|
-
|
|
17802
|
+
url: (rootUrl + '/storage/v1/b/{bucket}/rapidCaches').replace(
|
|
17803
|
+
/([^:]\/)\/+/g,
|
|
17804
|
+
'$1'
|
|
17805
|
+
),
|
|
17806
|
+
method: 'GET',
|
|
16897
17807
|
apiVersion: '',
|
|
16898
17808
|
},
|
|
16899
17809
|
options
|
|
16900
17810
|
),
|
|
16901
17811
|
params,
|
|
16902
|
-
requiredParams: ['
|
|
16903
|
-
pathParams: ['
|
|
17812
|
+
requiredParams: ['bucket'],
|
|
17813
|
+
pathParams: ['bucket'],
|
|
16904
17814
|
context: this.context,
|
|
16905
17815
|
};
|
|
16906
17816
|
if (callback) {
|
|
16907
|
-
createAPIRequest<Schema$
|
|
17817
|
+
createAPIRequest<Schema$RapidCaches>(
|
|
16908
17818
|
parameters,
|
|
16909
17819
|
callback as BodyResponseCallback<unknown>
|
|
16910
17820
|
);
|
|
16911
17821
|
} else {
|
|
16912
|
-
return createAPIRequest<Schema$
|
|
17822
|
+
return createAPIRequest<Schema$RapidCaches>(parameters);
|
|
16913
17823
|
}
|
|
16914
17824
|
}
|
|
16915
|
-
}
|
|
16916
|
-
|
|
16917
|
-
export interface Params$Resource$Projects$Hmackeys$Create extends StandardParameters {
|
|
16918
|
-
/**
|
|
16919
|
-
* Project ID owning the service account.
|
|
16920
|
-
*/
|
|
16921
|
-
projectId?: string;
|
|
16922
|
-
/**
|
|
16923
|
-
* Email address of the service account.
|
|
16924
|
-
*/
|
|
16925
|
-
serviceAccountEmail?: string;
|
|
16926
|
-
/**
|
|
16927
|
-
* The project to be billed for this request.
|
|
16928
|
-
*/
|
|
16929
|
-
userProject?: string;
|
|
16930
|
-
}
|
|
16931
|
-
export interface Params$Resource$Projects$Hmackeys$Delete extends StandardParameters {
|
|
16932
|
-
/**
|
|
16933
|
-
* Name of the HMAC key to be deleted.
|
|
16934
|
-
*/
|
|
16935
|
-
accessId?: string;
|
|
16936
|
-
/**
|
|
16937
|
-
* Project ID owning the requested key
|
|
16938
|
-
*/
|
|
16939
|
-
projectId?: string;
|
|
16940
|
-
/**
|
|
16941
|
-
* The project to be billed for this request.
|
|
16942
|
-
*/
|
|
16943
|
-
userProject?: string;
|
|
16944
|
-
}
|
|
16945
|
-
export interface Params$Resource$Projects$Hmackeys$Get extends StandardParameters {
|
|
16946
|
-
/**
|
|
16947
|
-
* Name of the HMAC key.
|
|
16948
|
-
*/
|
|
16949
|
-
accessId?: string;
|
|
16950
|
-
/**
|
|
16951
|
-
* Project ID owning the service account of the requested key.
|
|
16952
|
-
*/
|
|
16953
|
-
projectId?: string;
|
|
16954
|
-
/**
|
|
16955
|
-
* The project to be billed for this request.
|
|
16956
|
-
*/
|
|
16957
|
-
userProject?: string;
|
|
16958
|
-
}
|
|
16959
|
-
export interface Params$Resource$Projects$Hmackeys$List extends StandardParameters {
|
|
16960
|
-
/**
|
|
16961
|
-
* Maximum number of items to return in a single page of responses. The service uses this parameter or 250 items, whichever is smaller. The max number of items per page will also be limited by the number of distinct service accounts in the response. If the number of service accounts in a single response is too high, the page will truncated and a next page token will be returned.
|
|
16962
|
-
*/
|
|
16963
|
-
maxResults?: number;
|
|
16964
|
-
/**
|
|
16965
|
-
* A previously-returned page token representing part of the larger set of results to view.
|
|
16966
|
-
*/
|
|
16967
|
-
pageToken?: string;
|
|
16968
|
-
/**
|
|
16969
|
-
* Name of the project in which to look for HMAC keys.
|
|
16970
|
-
*/
|
|
16971
|
-
projectId?: string;
|
|
16972
|
-
/**
|
|
16973
|
-
* If present, only keys for the given service account are returned.
|
|
16974
|
-
*/
|
|
16975
|
-
serviceAccountEmail?: string;
|
|
16976
|
-
/**
|
|
16977
|
-
* Whether or not to show keys in the DELETED state.
|
|
16978
|
-
*/
|
|
16979
|
-
showDeletedKeys?: boolean;
|
|
16980
|
-
/**
|
|
16981
|
-
* The project to be billed for this request.
|
|
16982
|
-
*/
|
|
16983
|
-
userProject?: string;
|
|
16984
|
-
}
|
|
16985
|
-
export interface Params$Resource$Projects$Hmackeys$Update extends StandardParameters {
|
|
16986
|
-
/**
|
|
16987
|
-
* Name of the HMAC key being updated.
|
|
16988
|
-
*/
|
|
16989
|
-
accessId?: string;
|
|
16990
|
-
/**
|
|
16991
|
-
* Project ID owning the service account of the updated key.
|
|
16992
|
-
*/
|
|
16993
|
-
projectId?: string;
|
|
16994
|
-
/**
|
|
16995
|
-
* The project to be billed for this request.
|
|
16996
|
-
*/
|
|
16997
|
-
userProject?: string;
|
|
16998
|
-
|
|
16999
|
-
/**
|
|
17000
|
-
* Request body metadata
|
|
17001
|
-
*/
|
|
17002
|
-
requestBody?: Schema$HmacKeyMetadata;
|
|
17003
|
-
}
|
|
17004
|
-
|
|
17005
|
-
export class Resource$Projects$Serviceaccount {
|
|
17006
|
-
context: APIRequestContext;
|
|
17007
|
-
constructor(context: APIRequestContext) {
|
|
17008
|
-
this.context = context;
|
|
17009
|
-
}
|
|
17010
17825
|
|
|
17011
17826
|
/**
|
|
17012
|
-
*
|
|
17827
|
+
* Updates the configuration of a Rapid Cache instance.
|
|
17013
17828
|
* @example
|
|
17014
17829
|
* ```js
|
|
17015
17830
|
* // Before running the sample:
|
|
@@ -17032,9 +17847,7 @@ export namespace storage_v1 {
|
|
|
17032
17847
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
17033
17848
|
* scopes: [
|
|
17034
17849
|
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
17035
|
-
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
17036
17850
|
* 'https://www.googleapis.com/auth/devstorage.full_control',
|
|
17037
|
-
* 'https://www.googleapis.com/auth/devstorage.read_only',
|
|
17038
17851
|
* 'https://www.googleapis.com/auth/devstorage.read_write',
|
|
17039
17852
|
* ],
|
|
17040
17853
|
* });
|
|
@@ -17044,18 +17857,44 @@ export namespace storage_v1 {
|
|
|
17044
17857
|
* google.options({auth: authClient});
|
|
17045
17858
|
*
|
|
17046
17859
|
* // Do the magic
|
|
17047
|
-
* const res = await storage.
|
|
17048
|
-
* //
|
|
17049
|
-
*
|
|
17050
|
-
* // The
|
|
17051
|
-
*
|
|
17860
|
+
* const res = await storage.rapidCaches.update({
|
|
17861
|
+
* // Name of the parent bucket.
|
|
17862
|
+
* bucket: 'placeholder-value',
|
|
17863
|
+
* // The ID of the requested Rapid Cache instance.
|
|
17864
|
+
* rapidCacheId: 'placeholder-value',
|
|
17865
|
+
*
|
|
17866
|
+
* // Request body metadata
|
|
17867
|
+
* requestBody: {
|
|
17868
|
+
* // request body parameters
|
|
17869
|
+
* // {
|
|
17870
|
+
* // "admissionPolicy": "my_admissionPolicy",
|
|
17871
|
+
* // "bucket": "my_bucket",
|
|
17872
|
+
* // "cacheType": "my_cacheType",
|
|
17873
|
+
* // "createTime": "my_createTime",
|
|
17874
|
+
* // "id": "my_id",
|
|
17875
|
+
* // "ingestOnWrite": false,
|
|
17876
|
+
* // "kind": "my_kind",
|
|
17877
|
+
* // "pendingUpdate": false,
|
|
17878
|
+
* // "rapidCacheId": "my_rapidCacheId",
|
|
17879
|
+
* // "selfLink": "my_selfLink",
|
|
17880
|
+
* // "state": "my_state",
|
|
17881
|
+
* // "ttl": "my_ttl",
|
|
17882
|
+
* // "updateTime": "my_updateTime",
|
|
17883
|
+
* // "zone": "my_zone"
|
|
17884
|
+
* // }
|
|
17885
|
+
* },
|
|
17052
17886
|
* });
|
|
17053
17887
|
* console.log(res.data);
|
|
17054
17888
|
*
|
|
17055
17889
|
* // Example response
|
|
17056
17890
|
* // {
|
|
17057
|
-
* // "
|
|
17058
|
-
* // "
|
|
17891
|
+
* // "done": false,
|
|
17892
|
+
* // "error": {},
|
|
17893
|
+
* // "kind": "my_kind",
|
|
17894
|
+
* // "metadata": {},
|
|
17895
|
+
* // "name": "my_name",
|
|
17896
|
+
* // "response": {},
|
|
17897
|
+
* // "selfLink": "my_selfLink"
|
|
17059
17898
|
* // }
|
|
17060
17899
|
* }
|
|
17061
17900
|
*
|
|
@@ -17071,53 +17910,56 @@ export namespace storage_v1 {
|
|
|
17071
17910
|
* @param callback - Optional callback that handles the response.
|
|
17072
17911
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
17073
17912
|
*/
|
|
17074
|
-
|
|
17075
|
-
params: Params$Resource$
|
|
17913
|
+
update(
|
|
17914
|
+
params: Params$Resource$Rapidcaches$Update,
|
|
17076
17915
|
options: StreamMethodOptions
|
|
17077
17916
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
17078
|
-
|
|
17079
|
-
params?: Params$Resource$
|
|
17917
|
+
update(
|
|
17918
|
+
params?: Params$Resource$Rapidcaches$Update,
|
|
17080
17919
|
options?: MethodOptions
|
|
17081
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
17082
|
-
|
|
17083
|
-
params: Params$Resource$
|
|
17920
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
|
|
17921
|
+
update(
|
|
17922
|
+
params: Params$Resource$Rapidcaches$Update,
|
|
17084
17923
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
17085
17924
|
callback: BodyResponseCallback<Readable>
|
|
17086
17925
|
): void;
|
|
17087
|
-
|
|
17088
|
-
params: Params$Resource$
|
|
17089
|
-
options:
|
|
17090
|
-
|
|
17926
|
+
update(
|
|
17927
|
+
params: Params$Resource$Rapidcaches$Update,
|
|
17928
|
+
options:
|
|
17929
|
+
MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
17930
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
17091
17931
|
): void;
|
|
17092
|
-
|
|
17093
|
-
params: Params$Resource$
|
|
17094
|
-
callback: BodyResponseCallback<Schema$
|
|
17932
|
+
update(
|
|
17933
|
+
params: Params$Resource$Rapidcaches$Update,
|
|
17934
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
17095
17935
|
): void;
|
|
17096
|
-
|
|
17097
|
-
|
|
17936
|
+
update(
|
|
17937
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
17938
|
+
): void;
|
|
17939
|
+
update(
|
|
17098
17940
|
paramsOrCallback?:
|
|
17099
|
-
| Params$Resource$
|
|
17100
|
-
| BodyResponseCallback<Schema$
|
|
17941
|
+
| Params$Resource$Rapidcaches$Update
|
|
17942
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
17101
17943
|
| BodyResponseCallback<Readable>,
|
|
17102
17944
|
optionsOrCallback?:
|
|
17103
17945
|
| MethodOptions
|
|
17104
17946
|
| StreamMethodOptions
|
|
17105
|
-
| BodyResponseCallback<Schema$
|
|
17947
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
17106
17948
|
| BodyResponseCallback<Readable>,
|
|
17107
17949
|
callback?:
|
|
17108
|
-
| BodyResponseCallback<Schema$
|
|
17950
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
17109
17951
|
| BodyResponseCallback<Readable>
|
|
17110
17952
|
):
|
|
17111
17953
|
| void
|
|
17112
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
17954
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
|
|
17113
17955
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
17114
17956
|
let params = (paramsOrCallback ||
|
|
17115
|
-
{}) as Params$Resource$
|
|
17957
|
+
{}) as Params$Resource$Rapidcaches$Update;
|
|
17116
17958
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
17117
17959
|
|
|
17118
17960
|
if (typeof paramsOrCallback === 'function') {
|
|
17119
17961
|
callback = paramsOrCallback;
|
|
17120
|
-
params = {} as Params$Resource$
|
|
17962
|
+
params = {} as Params$Resource$Rapidcaches$Update;
|
|
17121
17963
|
options = {};
|
|
17122
17964
|
}
|
|
17123
17965
|
|
|
@@ -17131,37 +17973,87 @@ export namespace storage_v1 {
|
|
|
17131
17973
|
options: Object.assign(
|
|
17132
17974
|
{
|
|
17133
17975
|
url: (
|
|
17134
|
-
rootUrl + '/storage/v1/
|
|
17976
|
+
rootUrl + '/storage/v1/b/{bucket}/rapidCaches/{rapidCacheId}'
|
|
17135
17977
|
).replace(/([^:]\/)\/+/g, '$1'),
|
|
17136
|
-
method: '
|
|
17978
|
+
method: 'PATCH',
|
|
17137
17979
|
apiVersion: '',
|
|
17138
17980
|
},
|
|
17139
17981
|
options
|
|
17140
17982
|
),
|
|
17141
17983
|
params,
|
|
17142
|
-
requiredParams: ['
|
|
17143
|
-
pathParams: ['
|
|
17984
|
+
requiredParams: ['bucket', 'rapidCacheId'],
|
|
17985
|
+
pathParams: ['bucket', 'rapidCacheId'],
|
|
17144
17986
|
context: this.context,
|
|
17145
17987
|
};
|
|
17146
17988
|
if (callback) {
|
|
17147
|
-
createAPIRequest<Schema$
|
|
17989
|
+
createAPIRequest<Schema$GoogleLongrunningOperation>(
|
|
17148
17990
|
parameters,
|
|
17149
17991
|
callback as BodyResponseCallback<unknown>
|
|
17150
17992
|
);
|
|
17151
17993
|
} else {
|
|
17152
|
-
return createAPIRequest<Schema$
|
|
17994
|
+
return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
|
|
17153
17995
|
}
|
|
17154
17996
|
}
|
|
17155
17997
|
}
|
|
17156
17998
|
|
|
17157
|
-
export interface Params$Resource$
|
|
17999
|
+
export interface Params$Resource$Rapidcaches$Disable extends StandardParameters {
|
|
17158
18000
|
/**
|
|
17159
|
-
*
|
|
18001
|
+
* Name of the parent bucket.
|
|
17160
18002
|
*/
|
|
17161
|
-
|
|
18003
|
+
bucket?: string;
|
|
17162
18004
|
/**
|
|
17163
|
-
* The
|
|
18005
|
+
* The ID of the requested Rapid Cache instance.
|
|
17164
18006
|
*/
|
|
17165
|
-
|
|
18007
|
+
rapidCacheId?: string;
|
|
18008
|
+
}
|
|
18009
|
+
export interface Params$Resource$Rapidcaches$Get extends StandardParameters {
|
|
18010
|
+
/**
|
|
18011
|
+
* Name of the parent bucket.
|
|
18012
|
+
*/
|
|
18013
|
+
bucket?: string;
|
|
18014
|
+
/**
|
|
18015
|
+
* The ID of the requested Rapid Cache instance.
|
|
18016
|
+
*/
|
|
18017
|
+
rapidCacheId?: string;
|
|
18018
|
+
}
|
|
18019
|
+
export interface Params$Resource$Rapidcaches$Insert extends StandardParameters {
|
|
18020
|
+
/**
|
|
18021
|
+
* Name of the parent bucket.
|
|
18022
|
+
*/
|
|
18023
|
+
bucket?: string;
|
|
18024
|
+
|
|
18025
|
+
/**
|
|
18026
|
+
* Request body metadata
|
|
18027
|
+
*/
|
|
18028
|
+
requestBody?: Schema$RapidCache;
|
|
18029
|
+
}
|
|
18030
|
+
export interface Params$Resource$Rapidcaches$List extends StandardParameters {
|
|
18031
|
+
/**
|
|
18032
|
+
* Name of the parent bucket.
|
|
18033
|
+
*/
|
|
18034
|
+
bucket?: string;
|
|
18035
|
+
/**
|
|
18036
|
+
* Maximum number of items to return in a single page of responses.
|
|
18037
|
+
*/
|
|
18038
|
+
pageSize?: number;
|
|
18039
|
+
/**
|
|
18040
|
+
* A previously-returned page token representing part of the larger set of results to view.
|
|
18041
|
+
*/
|
|
18042
|
+
pageToken?: string;
|
|
18043
|
+
}
|
|
18044
|
+
export interface Params$Resource$Rapidcaches$Update extends StandardParameters {
|
|
18045
|
+
/**
|
|
18046
|
+
* Name of the parent bucket.
|
|
18047
|
+
*/
|
|
18048
|
+
bucket?: string;
|
|
18049
|
+
/**
|
|
18050
|
+
* The ID of the requested Rapid Cache instance.
|
|
18051
|
+
*/
|
|
18052
|
+
rapidCacheId?: string;
|
|
18053
|
+
|
|
18054
|
+
/**
|
|
18055
|
+
* Request body metadata
|
|
18056
|
+
*/
|
|
18057
|
+
requestBody?: Schema$RapidCache;
|
|
17166
18058
|
}
|
|
17167
18059
|
}
|