@googleapis/storage 15.6.0 → 15.9.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 +37 -0
- package/build/v1.d.ts +193 -25
- package/build/v1.js +96 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +428 -32
package/v1.ts
CHANGED
|
@@ -139,6 +139,19 @@ export namespace storage_v1 {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
/**
|
|
143
|
+
* An AdvanceRelocateBucketOperation request.
|
|
144
|
+
*/
|
|
145
|
+
export interface Schema$AdvanceRelocateBucketOperationRequest {
|
|
146
|
+
/**
|
|
147
|
+
* Specifies the time when the relocation will revert to the sync stage if the relocation hasn't succeeded.
|
|
148
|
+
*/
|
|
149
|
+
expireTime?: string | null;
|
|
150
|
+
/**
|
|
151
|
+
* Specifies the duration after which the relocation will revert to the sync stage if the relocation hasn't succeeded. Optional, if not supplied, a default value of 12h will be used.
|
|
152
|
+
*/
|
|
153
|
+
ttl?: string | null;
|
|
154
|
+
}
|
|
142
155
|
/**
|
|
143
156
|
* An Anywhere Cache instance.
|
|
144
157
|
*/
|
|
@@ -1058,6 +1071,10 @@ export namespace storage_v1 {
|
|
|
1058
1071
|
* The owner of the object. This will always be the uploader of the object.
|
|
1059
1072
|
*/
|
|
1060
1073
|
owner?: {entity?: string; entityId?: string} | null;
|
|
1074
|
+
/**
|
|
1075
|
+
* Restore token used to differentiate deleted objects with the same name and generation. This field is only returned for deleted objects in hierarchical namespace buckets.
|
|
1076
|
+
*/
|
|
1077
|
+
restoreToken?: string | null;
|
|
1061
1078
|
/**
|
|
1062
1079
|
* A collection of object level retention parameters.
|
|
1063
1080
|
*/
|
|
@@ -1094,6 +1111,10 @@ export namespace storage_v1 {
|
|
|
1094
1111
|
* The time at which the object became noncurrent in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
|
|
1095
1112
|
*/
|
|
1096
1113
|
timeDeleted?: string | null;
|
|
1114
|
+
/**
|
|
1115
|
+
* The time when the object was finalized.
|
|
1116
|
+
*/
|
|
1117
|
+
timeFinalized?: string | null;
|
|
1097
1118
|
/**
|
|
1098
1119
|
* The time at which the object's storage class was last changed. When the object is initially created, it will be set to timeCreated.
|
|
1099
1120
|
*/
|
|
@@ -1234,6 +1255,23 @@ export namespace storage_v1 {
|
|
|
1234
1255
|
*/
|
|
1235
1256
|
version?: number | null;
|
|
1236
1257
|
}
|
|
1258
|
+
/**
|
|
1259
|
+
* A Relocate Bucket request.
|
|
1260
|
+
*/
|
|
1261
|
+
export interface Schema$RelocateBucketRequest {
|
|
1262
|
+
/**
|
|
1263
|
+
* The bucket's new custom placement configuration if relocating to a Custom Dual Region.
|
|
1264
|
+
*/
|
|
1265
|
+
destinationCustomPlacementConfig?: {dataLocations?: string[]} | null;
|
|
1266
|
+
/**
|
|
1267
|
+
* The new location the bucket will be relocated to.
|
|
1268
|
+
*/
|
|
1269
|
+
destinationLocation?: string | null;
|
|
1270
|
+
/**
|
|
1271
|
+
* If true, validate the operation, but do not actually relocate the bucket.
|
|
1272
|
+
*/
|
|
1273
|
+
validateOnly?: boolean | null;
|
|
1274
|
+
}
|
|
1237
1275
|
/**
|
|
1238
1276
|
* A rewrite response.
|
|
1239
1277
|
*/
|
|
@@ -1286,26 +1324,26 @@ export namespace storage_v1 {
|
|
|
1286
1324
|
kind?: string | null;
|
|
1287
1325
|
/**
|
|
1288
1326
|
* 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:
|
|
1289
|
-
* - storage.buckets.delete
|
|
1290
|
-
* - storage.buckets.get
|
|
1291
|
-
* - storage.buckets.getIamPolicy
|
|
1292
|
-
* - storage.buckets.create
|
|
1293
|
-
* - storage.buckets.list
|
|
1294
|
-
* - storage.buckets.setIamPolicy
|
|
1295
|
-
* - storage.buckets.update
|
|
1296
|
-
* - storage.objects.delete
|
|
1297
|
-
* - storage.objects.get
|
|
1298
|
-
* - storage.objects.getIamPolicy
|
|
1299
|
-
* - storage.objects.create
|
|
1300
|
-
* - storage.objects.list
|
|
1301
|
-
* - storage.objects.setIamPolicy
|
|
1302
|
-
* - storage.objects.update
|
|
1303
|
-
* - storage.managedFolders.delete
|
|
1304
|
-
* - storage.managedFolders.get
|
|
1305
|
-
* - storage.managedFolders.getIamPolicy
|
|
1306
|
-
* - storage.managedFolders.create
|
|
1307
|
-
* - storage.managedFolders.list
|
|
1308
|
-
* - storage.managedFolders.setIamPolicy
|
|
1327
|
+
* - storage.buckets.delete - Delete bucket.
|
|
1328
|
+
* - storage.buckets.get - Read bucket metadata.
|
|
1329
|
+
* - storage.buckets.getIamPolicy - Read bucket IAM policy.
|
|
1330
|
+
* - storage.buckets.create - Create bucket.
|
|
1331
|
+
* - storage.buckets.list - List buckets.
|
|
1332
|
+
* - storage.buckets.setIamPolicy - Update bucket IAM policy.
|
|
1333
|
+
* - storage.buckets.update - Update bucket metadata.
|
|
1334
|
+
* - storage.objects.delete - Delete object.
|
|
1335
|
+
* - storage.objects.get - Read object data and metadata.
|
|
1336
|
+
* - storage.objects.getIamPolicy - Read object IAM policy.
|
|
1337
|
+
* - storage.objects.create - Create object.
|
|
1338
|
+
* - storage.objects.list - List objects.
|
|
1339
|
+
* - storage.objects.setIamPolicy - Update object IAM policy.
|
|
1340
|
+
* - storage.objects.update - Update object metadata.
|
|
1341
|
+
* - storage.managedFolders.delete - Delete managed folder.
|
|
1342
|
+
* - storage.managedFolders.get - Read managed folder metadata.
|
|
1343
|
+
* - storage.managedFolders.getIamPolicy - Read managed folder IAM policy.
|
|
1344
|
+
* - storage.managedFolders.create - Create managed folder.
|
|
1345
|
+
* - storage.managedFolders.list - List managed folders.
|
|
1346
|
+
* - storage.managedFolders.setIamPolicy - Update managed folder IAM policy.
|
|
1309
1347
|
*/
|
|
1310
1348
|
permissions?: string[] | null;
|
|
1311
1349
|
}
|
|
@@ -3384,6 +3422,100 @@ export namespace storage_v1 {
|
|
|
3384
3422
|
}
|
|
3385
3423
|
}
|
|
3386
3424
|
|
|
3425
|
+
/**
|
|
3426
|
+
* Initiates a long-running Relocate Bucket operation on the specified bucket.
|
|
3427
|
+
*
|
|
3428
|
+
* @param params - Parameters for request
|
|
3429
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3430
|
+
* @param callback - Optional callback that handles the response.
|
|
3431
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3432
|
+
*/
|
|
3433
|
+
relocate(
|
|
3434
|
+
params: Params$Resource$Buckets$Relocate,
|
|
3435
|
+
options: StreamMethodOptions
|
|
3436
|
+
): GaxiosPromise<Readable>;
|
|
3437
|
+
relocate(
|
|
3438
|
+
params?: Params$Resource$Buckets$Relocate,
|
|
3439
|
+
options?: MethodOptions
|
|
3440
|
+
): GaxiosPromise<Schema$GoogleLongrunningOperation>;
|
|
3441
|
+
relocate(
|
|
3442
|
+
params: Params$Resource$Buckets$Relocate,
|
|
3443
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3444
|
+
callback: BodyResponseCallback<Readable>
|
|
3445
|
+
): void;
|
|
3446
|
+
relocate(
|
|
3447
|
+
params: Params$Resource$Buckets$Relocate,
|
|
3448
|
+
options:
|
|
3449
|
+
| MethodOptions
|
|
3450
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
3451
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
3452
|
+
): void;
|
|
3453
|
+
relocate(
|
|
3454
|
+
params: Params$Resource$Buckets$Relocate,
|
|
3455
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
3456
|
+
): void;
|
|
3457
|
+
relocate(
|
|
3458
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
3459
|
+
): void;
|
|
3460
|
+
relocate(
|
|
3461
|
+
paramsOrCallback?:
|
|
3462
|
+
| Params$Resource$Buckets$Relocate
|
|
3463
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
3464
|
+
| BodyResponseCallback<Readable>,
|
|
3465
|
+
optionsOrCallback?:
|
|
3466
|
+
| MethodOptions
|
|
3467
|
+
| StreamMethodOptions
|
|
3468
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
3469
|
+
| BodyResponseCallback<Readable>,
|
|
3470
|
+
callback?:
|
|
3471
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
3472
|
+
| BodyResponseCallback<Readable>
|
|
3473
|
+
):
|
|
3474
|
+
| void
|
|
3475
|
+
| GaxiosPromise<Schema$GoogleLongrunningOperation>
|
|
3476
|
+
| GaxiosPromise<Readable> {
|
|
3477
|
+
let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Relocate;
|
|
3478
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3479
|
+
|
|
3480
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3481
|
+
callback = paramsOrCallback;
|
|
3482
|
+
params = {} as Params$Resource$Buckets$Relocate;
|
|
3483
|
+
options = {};
|
|
3484
|
+
}
|
|
3485
|
+
|
|
3486
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3487
|
+
callback = optionsOrCallback;
|
|
3488
|
+
options = {};
|
|
3489
|
+
}
|
|
3490
|
+
|
|
3491
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
3492
|
+
const parameters = {
|
|
3493
|
+
options: Object.assign(
|
|
3494
|
+
{
|
|
3495
|
+
url: (rootUrl + '/storage/v1/b/{bucket}/relocate').replace(
|
|
3496
|
+
/([^:]\/)\/+/g,
|
|
3497
|
+
'$1'
|
|
3498
|
+
),
|
|
3499
|
+
method: 'POST',
|
|
3500
|
+
apiVersion: '',
|
|
3501
|
+
},
|
|
3502
|
+
options
|
|
3503
|
+
),
|
|
3504
|
+
params,
|
|
3505
|
+
requiredParams: ['bucket'],
|
|
3506
|
+
pathParams: ['bucket'],
|
|
3507
|
+
context: this.context,
|
|
3508
|
+
};
|
|
3509
|
+
if (callback) {
|
|
3510
|
+
createAPIRequest<Schema$GoogleLongrunningOperation>(
|
|
3511
|
+
parameters,
|
|
3512
|
+
callback as BodyResponseCallback<unknown>
|
|
3513
|
+
);
|
|
3514
|
+
} else {
|
|
3515
|
+
return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
|
|
3516
|
+
}
|
|
3517
|
+
}
|
|
3518
|
+
|
|
3387
3519
|
/**
|
|
3388
3520
|
* Restores a soft-deleted bucket.
|
|
3389
3521
|
*
|
|
@@ -3399,7 +3531,7 @@ export namespace storage_v1 {
|
|
|
3399
3531
|
restore(
|
|
3400
3532
|
params?: Params$Resource$Buckets$Restore,
|
|
3401
3533
|
options?: MethodOptions
|
|
3402
|
-
): GaxiosPromise<
|
|
3534
|
+
): GaxiosPromise<Schema$Bucket>;
|
|
3403
3535
|
restore(
|
|
3404
3536
|
params: Params$Resource$Buckets$Restore,
|
|
3405
3537
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -3407,26 +3539,28 @@ export namespace storage_v1 {
|
|
|
3407
3539
|
): void;
|
|
3408
3540
|
restore(
|
|
3409
3541
|
params: Params$Resource$Buckets$Restore,
|
|
3410
|
-
options: MethodOptions | BodyResponseCallback<
|
|
3411
|
-
callback: BodyResponseCallback<
|
|
3542
|
+
options: MethodOptions | BodyResponseCallback<Schema$Bucket>,
|
|
3543
|
+
callback: BodyResponseCallback<Schema$Bucket>
|
|
3412
3544
|
): void;
|
|
3413
3545
|
restore(
|
|
3414
3546
|
params: Params$Resource$Buckets$Restore,
|
|
3415
|
-
callback: BodyResponseCallback<
|
|
3547
|
+
callback: BodyResponseCallback<Schema$Bucket>
|
|
3416
3548
|
): void;
|
|
3417
|
-
restore(callback: BodyResponseCallback<
|
|
3549
|
+
restore(callback: BodyResponseCallback<Schema$Bucket>): void;
|
|
3418
3550
|
restore(
|
|
3419
3551
|
paramsOrCallback?:
|
|
3420
3552
|
| Params$Resource$Buckets$Restore
|
|
3421
|
-
| BodyResponseCallback<
|
|
3553
|
+
| BodyResponseCallback<Schema$Bucket>
|
|
3422
3554
|
| BodyResponseCallback<Readable>,
|
|
3423
3555
|
optionsOrCallback?:
|
|
3424
3556
|
| MethodOptions
|
|
3425
3557
|
| StreamMethodOptions
|
|
3426
|
-
| BodyResponseCallback<
|
|
3558
|
+
| BodyResponseCallback<Schema$Bucket>
|
|
3427
3559
|
| BodyResponseCallback<Readable>,
|
|
3428
|
-
callback?:
|
|
3429
|
-
|
|
3560
|
+
callback?:
|
|
3561
|
+
| BodyResponseCallback<Schema$Bucket>
|
|
3562
|
+
| BodyResponseCallback<Readable>
|
|
3563
|
+
): void | GaxiosPromise<Schema$Bucket> | GaxiosPromise<Readable> {
|
|
3430
3564
|
let params = (paramsOrCallback || {}) as Params$Resource$Buckets$Restore;
|
|
3431
3565
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3432
3566
|
|
|
@@ -3460,12 +3594,12 @@ export namespace storage_v1 {
|
|
|
3460
3594
|
context: this.context,
|
|
3461
3595
|
};
|
|
3462
3596
|
if (callback) {
|
|
3463
|
-
createAPIRequest<
|
|
3597
|
+
createAPIRequest<Schema$Bucket>(
|
|
3464
3598
|
parameters,
|
|
3465
3599
|
callback as BodyResponseCallback<unknown>
|
|
3466
3600
|
);
|
|
3467
3601
|
} else {
|
|
3468
|
-
return createAPIRequest<
|
|
3602
|
+
return createAPIRequest<Schema$Bucket>(parameters);
|
|
3469
3603
|
}
|
|
3470
3604
|
}
|
|
3471
3605
|
|
|
@@ -3924,6 +4058,17 @@ export namespace storage_v1 {
|
|
|
3924
4058
|
*/
|
|
3925
4059
|
requestBody?: Schema$Bucket;
|
|
3926
4060
|
}
|
|
4061
|
+
export interface Params$Resource$Buckets$Relocate extends StandardParameters {
|
|
4062
|
+
/**
|
|
4063
|
+
* Name of the bucket to be moved.
|
|
4064
|
+
*/
|
|
4065
|
+
bucket?: string;
|
|
4066
|
+
|
|
4067
|
+
/**
|
|
4068
|
+
* Request body metadata
|
|
4069
|
+
*/
|
|
4070
|
+
requestBody?: Schema$RelocateBucketRequest;
|
|
4071
|
+
}
|
|
3927
4072
|
export interface Params$Resource$Buckets$Restore extends StandardParameters {
|
|
3928
4073
|
/**
|
|
3929
4074
|
* Name of a bucket.
|
|
@@ -3933,6 +4078,10 @@ export namespace storage_v1 {
|
|
|
3933
4078
|
* Generation of a bucket.
|
|
3934
4079
|
*/
|
|
3935
4080
|
generation?: string;
|
|
4081
|
+
/**
|
|
4082
|
+
* Set of properties to return. Defaults to full.
|
|
4083
|
+
*/
|
|
4084
|
+
projection?: string;
|
|
3936
4085
|
/**
|
|
3937
4086
|
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
3938
4087
|
*/
|
|
@@ -5245,7 +5394,7 @@ export namespace storage_v1 {
|
|
|
5245
5394
|
*/
|
|
5246
5395
|
bucket?: string;
|
|
5247
5396
|
/**
|
|
5248
|
-
* If true, any parent folder which doesn
|
|
5397
|
+
* If true, any parent folder which doesn't exist will be created automatically.
|
|
5249
5398
|
*/
|
|
5250
5399
|
recursive?: boolean;
|
|
5251
5400
|
|
|
@@ -7893,6 +8042,93 @@ export namespace storage_v1 {
|
|
|
7893
8042
|
}
|
|
7894
8043
|
}
|
|
7895
8044
|
|
|
8045
|
+
/**
|
|
8046
|
+
* Moves the source object to the destination object in the same bucket.
|
|
8047
|
+
*
|
|
8048
|
+
* @param params - Parameters for request
|
|
8049
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
8050
|
+
* @param callback - Optional callback that handles the response.
|
|
8051
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8052
|
+
*/
|
|
8053
|
+
move(
|
|
8054
|
+
params: Params$Resource$Objects$Move,
|
|
8055
|
+
options: StreamMethodOptions
|
|
8056
|
+
): GaxiosPromise<Readable>;
|
|
8057
|
+
move(
|
|
8058
|
+
params?: Params$Resource$Objects$Move,
|
|
8059
|
+
options?: MethodOptions
|
|
8060
|
+
): GaxiosPromise<Schema$Object>;
|
|
8061
|
+
move(
|
|
8062
|
+
params: Params$Resource$Objects$Move,
|
|
8063
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8064
|
+
callback: BodyResponseCallback<Readable>
|
|
8065
|
+
): void;
|
|
8066
|
+
move(
|
|
8067
|
+
params: Params$Resource$Objects$Move,
|
|
8068
|
+
options: MethodOptions | BodyResponseCallback<Schema$Object>,
|
|
8069
|
+
callback: BodyResponseCallback<Schema$Object>
|
|
8070
|
+
): void;
|
|
8071
|
+
move(
|
|
8072
|
+
params: Params$Resource$Objects$Move,
|
|
8073
|
+
callback: BodyResponseCallback<Schema$Object>
|
|
8074
|
+
): void;
|
|
8075
|
+
move(callback: BodyResponseCallback<Schema$Object>): void;
|
|
8076
|
+
move(
|
|
8077
|
+
paramsOrCallback?:
|
|
8078
|
+
| Params$Resource$Objects$Move
|
|
8079
|
+
| BodyResponseCallback<Schema$Object>
|
|
8080
|
+
| BodyResponseCallback<Readable>,
|
|
8081
|
+
optionsOrCallback?:
|
|
8082
|
+
| MethodOptions
|
|
8083
|
+
| StreamMethodOptions
|
|
8084
|
+
| BodyResponseCallback<Schema$Object>
|
|
8085
|
+
| BodyResponseCallback<Readable>,
|
|
8086
|
+
callback?:
|
|
8087
|
+
| BodyResponseCallback<Schema$Object>
|
|
8088
|
+
| BodyResponseCallback<Readable>
|
|
8089
|
+
): void | GaxiosPromise<Schema$Object> | GaxiosPromise<Readable> {
|
|
8090
|
+
let params = (paramsOrCallback || {}) as Params$Resource$Objects$Move;
|
|
8091
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
8092
|
+
|
|
8093
|
+
if (typeof paramsOrCallback === 'function') {
|
|
8094
|
+
callback = paramsOrCallback;
|
|
8095
|
+
params = {} as Params$Resource$Objects$Move;
|
|
8096
|
+
options = {};
|
|
8097
|
+
}
|
|
8098
|
+
|
|
8099
|
+
if (typeof optionsOrCallback === 'function') {
|
|
8100
|
+
callback = optionsOrCallback;
|
|
8101
|
+
options = {};
|
|
8102
|
+
}
|
|
8103
|
+
|
|
8104
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
8105
|
+
const parameters = {
|
|
8106
|
+
options: Object.assign(
|
|
8107
|
+
{
|
|
8108
|
+
url: (
|
|
8109
|
+
rootUrl +
|
|
8110
|
+
'/storage/v1/b/{bucket}/o/{sourceObject}/moveTo/o/{destinationObject}'
|
|
8111
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
8112
|
+
method: 'POST',
|
|
8113
|
+
apiVersion: '',
|
|
8114
|
+
},
|
|
8115
|
+
options
|
|
8116
|
+
),
|
|
8117
|
+
params,
|
|
8118
|
+
requiredParams: ['bucket', 'sourceObject', 'destinationObject'],
|
|
8119
|
+
pathParams: ['bucket', 'destinationObject', 'sourceObject'],
|
|
8120
|
+
context: this.context,
|
|
8121
|
+
};
|
|
8122
|
+
if (callback) {
|
|
8123
|
+
createAPIRequest<Schema$Object>(
|
|
8124
|
+
parameters,
|
|
8125
|
+
callback as BodyResponseCallback<unknown>
|
|
8126
|
+
);
|
|
8127
|
+
} else {
|
|
8128
|
+
return createAPIRequest<Schema$Object>(parameters);
|
|
8129
|
+
}
|
|
8130
|
+
}
|
|
8131
|
+
|
|
7896
8132
|
/**
|
|
7897
8133
|
* Patches an object's metadata.
|
|
7898
8134
|
*
|
|
@@ -8709,6 +8945,10 @@ export namespace storage_v1 {
|
|
|
8709
8945
|
* Set of properties to return. Defaults to noAcl.
|
|
8710
8946
|
*/
|
|
8711
8947
|
projection?: string;
|
|
8948
|
+
/**
|
|
8949
|
+
* Restore token used to differentiate soft-deleted objects with the same name and generation. Only applicable for hierarchical namespace buckets and if softDeleted is set to true. This parameter is optional, and is only required in the rare case when there are multiple soft-deleted objects with the same name and generation.
|
|
8950
|
+
*/
|
|
8951
|
+
restoreToken?: string;
|
|
8712
8952
|
/**
|
|
8713
8953
|
* If true, only soft-deleted object versions will be listed. The default is false. For more information, see [Soft Delete](https://cloud.google.com/storage/docs/soft-delete).
|
|
8714
8954
|
*/
|
|
@@ -8861,6 +9101,56 @@ export namespace storage_v1 {
|
|
|
8861
9101
|
*/
|
|
8862
9102
|
versions?: boolean;
|
|
8863
9103
|
}
|
|
9104
|
+
export interface Params$Resource$Objects$Move extends StandardParameters {
|
|
9105
|
+
/**
|
|
9106
|
+
* Name of the bucket in which the object resides.
|
|
9107
|
+
*/
|
|
9108
|
+
bucket?: string;
|
|
9109
|
+
/**
|
|
9110
|
+
* Name of the destination object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
|
|
9111
|
+
*/
|
|
9112
|
+
destinationObject?: string;
|
|
9113
|
+
/**
|
|
9114
|
+
* Makes the operation conditional on whether the destination object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object. `ifGenerationMatch` and `ifGenerationNotMatch` conditions are mutually exclusive: it's an error for both of them to be set in the request.
|
|
9115
|
+
*/
|
|
9116
|
+
ifGenerationMatch?: string;
|
|
9117
|
+
/**
|
|
9118
|
+
* Makes the operation conditional on whether the destination object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.`ifGenerationMatch` and `ifGenerationNotMatch` conditions are mutually exclusive: it's an error for both of them to be set in the request.
|
|
9119
|
+
*/
|
|
9120
|
+
ifGenerationNotMatch?: string;
|
|
9121
|
+
/**
|
|
9122
|
+
* Makes the operation conditional on whether the destination object's current metageneration matches the given value. `ifMetagenerationMatch` and `ifMetagenerationNotMatch` conditions are mutually exclusive: it's an error for both of them to be set in the request.
|
|
9123
|
+
*/
|
|
9124
|
+
ifMetagenerationMatch?: string;
|
|
9125
|
+
/**
|
|
9126
|
+
* Makes the operation conditional on whether the destination object's current metageneration does not match the given value. `ifMetagenerationMatch` and `ifMetagenerationNotMatch` conditions are mutually exclusive: it's an error for both of them to be set in the request.
|
|
9127
|
+
*/
|
|
9128
|
+
ifMetagenerationNotMatch?: string;
|
|
9129
|
+
/**
|
|
9130
|
+
* Makes the operation conditional on whether the source object's current generation matches the given value. `ifSourceGenerationMatch` and `ifSourceGenerationNotMatch` conditions are mutually exclusive: it's an error for both of them to be set in the request.
|
|
9131
|
+
*/
|
|
9132
|
+
ifSourceGenerationMatch?: string;
|
|
9133
|
+
/**
|
|
9134
|
+
* Makes the operation conditional on whether the source object's current generation does not match the given value. `ifSourceGenerationMatch` and `ifSourceGenerationNotMatch` conditions are mutually exclusive: it's an error for both of them to be set in the request.
|
|
9135
|
+
*/
|
|
9136
|
+
ifSourceGenerationNotMatch?: string;
|
|
9137
|
+
/**
|
|
9138
|
+
* Makes the operation conditional on whether the source object's current metageneration matches the given value. `ifSourceMetagenerationMatch` and `ifSourceMetagenerationNotMatch` conditions are mutually exclusive: it's an error for both of them to be set in the request.
|
|
9139
|
+
*/
|
|
9140
|
+
ifSourceMetagenerationMatch?: string;
|
|
9141
|
+
/**
|
|
9142
|
+
* Makes the operation conditional on whether the source object's current metageneration does not match the given value. `ifSourceMetagenerationMatch` and `ifSourceMetagenerationNotMatch` conditions are mutually exclusive: it's an error for both of them to be set in the request.
|
|
9143
|
+
*/
|
|
9144
|
+
ifSourceMetagenerationNotMatch?: string;
|
|
9145
|
+
/**
|
|
9146
|
+
* Name of the source object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).
|
|
9147
|
+
*/
|
|
9148
|
+
sourceObject?: string;
|
|
9149
|
+
/**
|
|
9150
|
+
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
9151
|
+
*/
|
|
9152
|
+
userProject?: string;
|
|
9153
|
+
}
|
|
8864
9154
|
export interface Params$Resource$Objects$Patch extends StandardParameters {
|
|
8865
9155
|
/**
|
|
8866
9156
|
* Name of the bucket in which the object resides.
|
|
@@ -8949,6 +9239,10 @@ export namespace storage_v1 {
|
|
|
8949
9239
|
* Set of properties to return. Defaults to full.
|
|
8950
9240
|
*/
|
|
8951
9241
|
projection?: string;
|
|
9242
|
+
/**
|
|
9243
|
+
* Restore token used to differentiate sof-deleted objects with the same name and generation. Only applicable for hierarchical namespace buckets. This parameter is optional, and is only required in the rare case when there are multiple soft-deleted objects with the same name and generation.
|
|
9244
|
+
*/
|
|
9245
|
+
restoreToken?: string;
|
|
8952
9246
|
/**
|
|
8953
9247
|
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
8954
9248
|
*/
|
|
@@ -9193,6 +9487,92 @@ export namespace storage_v1 {
|
|
|
9193
9487
|
this.context = context;
|
|
9194
9488
|
}
|
|
9195
9489
|
|
|
9490
|
+
/**
|
|
9491
|
+
* 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.
|
|
9492
|
+
*
|
|
9493
|
+
* @param params - Parameters for request
|
|
9494
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
9495
|
+
* @param callback - Optional callback that handles the response.
|
|
9496
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9497
|
+
*/
|
|
9498
|
+
advanceRelocateBucket(
|
|
9499
|
+
params: Params$Resource$Operations$Advancerelocatebucket,
|
|
9500
|
+
options: StreamMethodOptions
|
|
9501
|
+
): GaxiosPromise<Readable>;
|
|
9502
|
+
advanceRelocateBucket(
|
|
9503
|
+
params?: Params$Resource$Operations$Advancerelocatebucket,
|
|
9504
|
+
options?: MethodOptions
|
|
9505
|
+
): GaxiosPromise<void>;
|
|
9506
|
+
advanceRelocateBucket(
|
|
9507
|
+
params: Params$Resource$Operations$Advancerelocatebucket,
|
|
9508
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9509
|
+
callback: BodyResponseCallback<Readable>
|
|
9510
|
+
): void;
|
|
9511
|
+
advanceRelocateBucket(
|
|
9512
|
+
params: Params$Resource$Operations$Advancerelocatebucket,
|
|
9513
|
+
options: MethodOptions | BodyResponseCallback<void>,
|
|
9514
|
+
callback: BodyResponseCallback<void>
|
|
9515
|
+
): void;
|
|
9516
|
+
advanceRelocateBucket(
|
|
9517
|
+
params: Params$Resource$Operations$Advancerelocatebucket,
|
|
9518
|
+
callback: BodyResponseCallback<void>
|
|
9519
|
+
): void;
|
|
9520
|
+
advanceRelocateBucket(callback: BodyResponseCallback<void>): void;
|
|
9521
|
+
advanceRelocateBucket(
|
|
9522
|
+
paramsOrCallback?:
|
|
9523
|
+
| Params$Resource$Operations$Advancerelocatebucket
|
|
9524
|
+
| BodyResponseCallback<void>
|
|
9525
|
+
| BodyResponseCallback<Readable>,
|
|
9526
|
+
optionsOrCallback?:
|
|
9527
|
+
| MethodOptions
|
|
9528
|
+
| StreamMethodOptions
|
|
9529
|
+
| BodyResponseCallback<void>
|
|
9530
|
+
| BodyResponseCallback<Readable>,
|
|
9531
|
+
callback?: BodyResponseCallback<void> | BodyResponseCallback<Readable>
|
|
9532
|
+
): void | GaxiosPromise<void> | GaxiosPromise<Readable> {
|
|
9533
|
+
let params = (paramsOrCallback ||
|
|
9534
|
+
{}) as Params$Resource$Operations$Advancerelocatebucket;
|
|
9535
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9536
|
+
|
|
9537
|
+
if (typeof paramsOrCallback === 'function') {
|
|
9538
|
+
callback = paramsOrCallback;
|
|
9539
|
+
params = {} as Params$Resource$Operations$Advancerelocatebucket;
|
|
9540
|
+
options = {};
|
|
9541
|
+
}
|
|
9542
|
+
|
|
9543
|
+
if (typeof optionsOrCallback === 'function') {
|
|
9544
|
+
callback = optionsOrCallback;
|
|
9545
|
+
options = {};
|
|
9546
|
+
}
|
|
9547
|
+
|
|
9548
|
+
const rootUrl = options.rootUrl || 'https://storage.googleapis.com/';
|
|
9549
|
+
const parameters = {
|
|
9550
|
+
options: Object.assign(
|
|
9551
|
+
{
|
|
9552
|
+
url: (
|
|
9553
|
+
rootUrl +
|
|
9554
|
+
'/storage/v1/b/{bucket}/operations/{operationId}/advanceRelocateBucket'
|
|
9555
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
9556
|
+
method: 'POST',
|
|
9557
|
+
apiVersion: '',
|
|
9558
|
+
},
|
|
9559
|
+
options
|
|
9560
|
+
),
|
|
9561
|
+
params,
|
|
9562
|
+
requiredParams: ['bucket', 'operationId'],
|
|
9563
|
+
pathParams: ['bucket', 'operationId'],
|
|
9564
|
+
context: this.context,
|
|
9565
|
+
};
|
|
9566
|
+
if (callback) {
|
|
9567
|
+
createAPIRequest<void>(
|
|
9568
|
+
parameters,
|
|
9569
|
+
callback as BodyResponseCallback<unknown>
|
|
9570
|
+
);
|
|
9571
|
+
} else {
|
|
9572
|
+
return createAPIRequest<void>(parameters);
|
|
9573
|
+
}
|
|
9574
|
+
}
|
|
9575
|
+
|
|
9196
9576
|
/**
|
|
9197
9577
|
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed.
|
|
9198
9578
|
*
|
|
@@ -9468,6 +9848,22 @@ export namespace storage_v1 {
|
|
|
9468
9848
|
}
|
|
9469
9849
|
}
|
|
9470
9850
|
|
|
9851
|
+
export interface Params$Resource$Operations$Advancerelocatebucket
|
|
9852
|
+
extends StandardParameters {
|
|
9853
|
+
/**
|
|
9854
|
+
* Name of the bucket to advance the relocate for.
|
|
9855
|
+
*/
|
|
9856
|
+
bucket?: string;
|
|
9857
|
+
/**
|
|
9858
|
+
* ID of the operation resource.
|
|
9859
|
+
*/
|
|
9860
|
+
operationId?: string;
|
|
9861
|
+
|
|
9862
|
+
/**
|
|
9863
|
+
* Request body metadata
|
|
9864
|
+
*/
|
|
9865
|
+
requestBody?: Schema$AdvanceRelocateBucketOperationRequest;
|
|
9866
|
+
}
|
|
9471
9867
|
export interface Params$Resource$Operations$Cancel
|
|
9472
9868
|
extends StandardParameters {
|
|
9473
9869
|
/**
|