@googleapis/storage 5.1.2 → 6.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 +25 -0
- package/build/v1.d.ts +595 -5
- package/build/v1.js +386 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1640 -141
package/build/v1.d.ts
CHANGED
|
@@ -60,9 +60,11 @@ export declare namespace storage_v1 {
|
|
|
60
60
|
buckets: Resource$Buckets;
|
|
61
61
|
channels: Resource$Channels;
|
|
62
62
|
defaultObjectAccessControls: Resource$Defaultobjectaccesscontrols;
|
|
63
|
+
managedFolders: Resource$Managedfolders;
|
|
63
64
|
notifications: Resource$Notifications;
|
|
64
65
|
objectAccessControls: Resource$Objectaccesscontrols;
|
|
65
66
|
objects: Resource$Objects;
|
|
67
|
+
operations: Resource$Operations;
|
|
66
68
|
projects: Resource$Projects;
|
|
67
69
|
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
|
68
70
|
}
|
|
@@ -79,6 +81,8 @@ export declare namespace storage_v1 {
|
|
|
79
81
|
*/
|
|
80
82
|
autoclass?: {
|
|
81
83
|
enabled?: boolean;
|
|
84
|
+
terminalStorageClass?: string;
|
|
85
|
+
terminalStorageClassUpdateTime?: string;
|
|
82
86
|
toggleTime?: string;
|
|
83
87
|
} | null;
|
|
84
88
|
/**
|
|
@@ -196,6 +200,12 @@ export declare namespace storage_v1 {
|
|
|
196
200
|
* The name of the bucket.
|
|
197
201
|
*/
|
|
198
202
|
name?: string | null;
|
|
203
|
+
/**
|
|
204
|
+
* The bucket's object retention config.
|
|
205
|
+
*/
|
|
206
|
+
objectRetention?: {
|
|
207
|
+
mode?: string;
|
|
208
|
+
} | null;
|
|
199
209
|
/**
|
|
200
210
|
* The owner of the bucket. This is always the project team's owner group.
|
|
201
211
|
*/
|
|
@@ -227,6 +237,13 @@ export declare namespace storage_v1 {
|
|
|
227
237
|
* The URI of this bucket.
|
|
228
238
|
*/
|
|
229
239
|
selfLink?: string | null;
|
|
240
|
+
/**
|
|
241
|
+
* The bucket's soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.
|
|
242
|
+
*/
|
|
243
|
+
softDeletePolicy?: {
|
|
244
|
+
effectiveTime?: string;
|
|
245
|
+
retentionDurationSeconds?: string;
|
|
246
|
+
} | null;
|
|
230
247
|
/**
|
|
231
248
|
* The bucket's default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see storage classes.
|
|
232
249
|
*/
|
|
@@ -346,6 +363,31 @@ export declare namespace storage_v1 {
|
|
|
346
363
|
*/
|
|
347
364
|
nextPageToken?: string | null;
|
|
348
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* A bulk restore objects request.
|
|
368
|
+
*/
|
|
369
|
+
export interface Schema$BulkRestoreObjectsRequest {
|
|
370
|
+
/**
|
|
371
|
+
* If false (default), the restore will not overwrite live objects with the same name at the destination. This means some deleted objects may be skipped. If true, live objects will be overwritten resulting in a noncurrent object (if versioning is enabled). If versioning is not enabled, overwriting the object will result in a soft-deleted object. In either case, if a noncurrent object already exists with the same name, a live version can be written without issue.
|
|
372
|
+
*/
|
|
373
|
+
allowOverwrite?: boolean | null;
|
|
374
|
+
/**
|
|
375
|
+
* If true, copies the source object's ACL; otherwise, uses the bucket's default object ACL. The default is false.
|
|
376
|
+
*/
|
|
377
|
+
copySourceAcl?: boolean | null;
|
|
378
|
+
/**
|
|
379
|
+
* Restores only the objects matching any of the specified glob(s). If this parameter is not specified, all objects will be restored within the specified time range.
|
|
380
|
+
*/
|
|
381
|
+
matchGlobs?: string[] | null;
|
|
382
|
+
/**
|
|
383
|
+
* Restores only the objects that were soft-deleted after this time.
|
|
384
|
+
*/
|
|
385
|
+
softDeletedAfterTime?: string | null;
|
|
386
|
+
/**
|
|
387
|
+
* Restores only the objects that were soft-deleted before this time.
|
|
388
|
+
*/
|
|
389
|
+
softDeletedBeforeTime?: string | null;
|
|
390
|
+
}
|
|
349
391
|
/**
|
|
350
392
|
* An notification channel used to watch for resource changes.
|
|
351
393
|
*/
|
|
@@ -437,6 +479,67 @@ export declare namespace storage_v1 {
|
|
|
437
479
|
*/
|
|
438
480
|
title?: string | null;
|
|
439
481
|
}
|
|
482
|
+
/**
|
|
483
|
+
* The response message for storage.buckets.operations.list.
|
|
484
|
+
*/
|
|
485
|
+
export interface Schema$GoogleLongrunningListOperationsResponse {
|
|
486
|
+
/**
|
|
487
|
+
* The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
|
|
488
|
+
*/
|
|
489
|
+
nextPageToken?: string | null;
|
|
490
|
+
/**
|
|
491
|
+
* A list of operations that matches the specified filter in the request.
|
|
492
|
+
*/
|
|
493
|
+
operations?: Schema$GoogleLongrunningOperation[];
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* This resource represents a long-running operation that is the result of a network API call.
|
|
497
|
+
*/
|
|
498
|
+
export interface Schema$GoogleLongrunningOperation {
|
|
499
|
+
/**
|
|
500
|
+
* If the value is "false", it means the operation is still in progress. If "true", the operation is completed, and either "error" or "response" is available.
|
|
501
|
+
*/
|
|
502
|
+
done?: boolean | null;
|
|
503
|
+
/**
|
|
504
|
+
* The error result of the operation in case of failure or cancellation.
|
|
505
|
+
*/
|
|
506
|
+
error?: Schema$GoogleRpcStatus;
|
|
507
|
+
/**
|
|
508
|
+
* Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
|
509
|
+
*/
|
|
510
|
+
metadata?: {
|
|
511
|
+
[key: string]: any;
|
|
512
|
+
} | null;
|
|
513
|
+
/**
|
|
514
|
+
* The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the "name" should be a resource name ending with "operations/{operationId\}".
|
|
515
|
+
*/
|
|
516
|
+
name?: string | null;
|
|
517
|
+
/**
|
|
518
|
+
* The normal response of the operation in case of success. If the original method returns no data on success, such as "Delete", the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type "XxxResponse", where "Xxx" is the original method name. For example, if the original method name is "TakeSnapshot()", the inferred response type is "TakeSnapshotResponse".
|
|
519
|
+
*/
|
|
520
|
+
response?: {
|
|
521
|
+
[key: string]: any;
|
|
522
|
+
} | null;
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* The "Status" type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each "Status" message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
526
|
+
*/
|
|
527
|
+
export interface Schema$GoogleRpcStatus {
|
|
528
|
+
/**
|
|
529
|
+
* The status code, which should be an enum value of google.rpc.Code.
|
|
530
|
+
*/
|
|
531
|
+
code?: number | null;
|
|
532
|
+
/**
|
|
533
|
+
* A list of messages that carry the error details. There is a common set of message types for APIs to use.
|
|
534
|
+
*/
|
|
535
|
+
details?: Array<{
|
|
536
|
+
[key: string]: any;
|
|
537
|
+
}> | null;
|
|
538
|
+
/**
|
|
539
|
+
* A developer-facing error message, which should be in English.
|
|
540
|
+
*/
|
|
541
|
+
message?: string | null;
|
|
542
|
+
}
|
|
440
543
|
/**
|
|
441
544
|
* JSON template to produce a JSON-style HMAC Key resource for Create responses.
|
|
442
545
|
*/
|
|
@@ -516,6 +619,60 @@ export declare namespace storage_v1 {
|
|
|
516
619
|
*/
|
|
517
620
|
nextPageToken?: string | null;
|
|
518
621
|
}
|
|
622
|
+
/**
|
|
623
|
+
* A managed folder.
|
|
624
|
+
*/
|
|
625
|
+
export interface Schema$ManagedFolder {
|
|
626
|
+
/**
|
|
627
|
+
* The name of the bucket containing this managed folder.
|
|
628
|
+
*/
|
|
629
|
+
bucket?: string | null;
|
|
630
|
+
/**
|
|
631
|
+
* The creation time of the managed folder in RFC 3339 format.
|
|
632
|
+
*/
|
|
633
|
+
createTime?: string | null;
|
|
634
|
+
/**
|
|
635
|
+
* The ID of the managed folder, including the bucket name and managed folder name.
|
|
636
|
+
*/
|
|
637
|
+
id?: string | null;
|
|
638
|
+
/**
|
|
639
|
+
* The kind of item this is. For managed folders, this is always storage#managedFolder.
|
|
640
|
+
*/
|
|
641
|
+
kind?: string | null;
|
|
642
|
+
/**
|
|
643
|
+
* The version of the metadata for this managed folder. Used for preconditions and for detecting changes in metadata.
|
|
644
|
+
*/
|
|
645
|
+
metageneration?: string | null;
|
|
646
|
+
/**
|
|
647
|
+
* The name of the managed folder. Required if not specified by URL parameter.
|
|
648
|
+
*/
|
|
649
|
+
name?: string | null;
|
|
650
|
+
/**
|
|
651
|
+
* The link to this managed folder.
|
|
652
|
+
*/
|
|
653
|
+
selfLink?: string | null;
|
|
654
|
+
/**
|
|
655
|
+
* The last update time of the managed folder metadata in RFC 3339 format.
|
|
656
|
+
*/
|
|
657
|
+
updateTime?: string | null;
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* A list of managed folders.
|
|
661
|
+
*/
|
|
662
|
+
export interface Schema$ManagedFolders {
|
|
663
|
+
/**
|
|
664
|
+
* The list of items.
|
|
665
|
+
*/
|
|
666
|
+
items?: Schema$ManagedFolder[];
|
|
667
|
+
/**
|
|
668
|
+
* The kind of item this is. For lists of managed folders, this is always storage#managedFolders.
|
|
669
|
+
*/
|
|
670
|
+
kind?: string | null;
|
|
671
|
+
/**
|
|
672
|
+
* The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
|
|
673
|
+
*/
|
|
674
|
+
nextPageToken?: string | null;
|
|
675
|
+
}
|
|
519
676
|
/**
|
|
520
677
|
* A subscription to receive Google PubSub notifications.
|
|
521
678
|
*/
|
|
@@ -635,6 +792,10 @@ export declare namespace storage_v1 {
|
|
|
635
792
|
* The content generation of this object. Used for object versioning.
|
|
636
793
|
*/
|
|
637
794
|
generation?: string | null;
|
|
795
|
+
/**
|
|
796
|
+
* This is the time (in the future) when the soft-deleted object will no longer be restorable. It is equal to the soft delete time plus the current soft delete retention duration of the bucket.
|
|
797
|
+
*/
|
|
798
|
+
hardDeleteTime?: string | null;
|
|
638
799
|
/**
|
|
639
800
|
* The ID of the object, including the bucket name, object name, and generation number.
|
|
640
801
|
*/
|
|
@@ -676,6 +837,13 @@ export declare namespace storage_v1 {
|
|
|
676
837
|
entity?: string;
|
|
677
838
|
entityId?: string;
|
|
678
839
|
} | null;
|
|
840
|
+
/**
|
|
841
|
+
* A collection of object level retention parameters.
|
|
842
|
+
*/
|
|
843
|
+
retention?: {
|
|
844
|
+
mode?: string;
|
|
845
|
+
retainUntilTime?: string;
|
|
846
|
+
} | null;
|
|
679
847
|
/**
|
|
680
848
|
* A server-determined value that specifies the earliest time that the object's retention period expires. This value is in RFC 3339 format. Note 1: This field is not provided for objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that the user can reason about policy without having to first unset the temporary hold).
|
|
681
849
|
*/
|
|
@@ -688,6 +856,10 @@ export declare namespace storage_v1 {
|
|
|
688
856
|
* Content-Length of the data in bytes.
|
|
689
857
|
*/
|
|
690
858
|
size?: string | null;
|
|
859
|
+
/**
|
|
860
|
+
* The time at which the object became soft-deleted in RFC 3339 format.
|
|
861
|
+
*/
|
|
862
|
+
softDeleteTime?: string | null;
|
|
691
863
|
/**
|
|
692
864
|
* Storage class of the object.
|
|
693
865
|
*/
|
|
@@ -701,7 +873,7 @@ export declare namespace storage_v1 {
|
|
|
701
873
|
*/
|
|
702
874
|
timeCreated?: string | null;
|
|
703
875
|
/**
|
|
704
|
-
* The
|
|
876
|
+
* 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.
|
|
705
877
|
*/
|
|
706
878
|
timeDeleted?: string | null;
|
|
707
879
|
/**
|
|
@@ -819,7 +991,7 @@ export declare namespace storage_v1 {
|
|
|
819
991
|
prefixes?: string[] | null;
|
|
820
992
|
}
|
|
821
993
|
/**
|
|
822
|
-
* A bucket/object IAM policy.
|
|
994
|
+
* A bucket/object/managedFolder IAM policy.
|
|
823
995
|
*/
|
|
824
996
|
export interface Schema$Policy {
|
|
825
997
|
/**
|
|
@@ -839,7 +1011,7 @@ export declare namespace storage_v1 {
|
|
|
839
1011
|
*/
|
|
840
1012
|
kind?: string | null;
|
|
841
1013
|
/**
|
|
842
|
-
* The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets,
|
|
1014
|
+
* The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets, projects/_/buckets/bucket/objects/object for objects, and projects/_/buckets/bucket/managedFolders/managedFolder. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.
|
|
843
1015
|
*/
|
|
844
1016
|
resourceId?: string | null;
|
|
845
1017
|
/**
|
|
@@ -890,7 +1062,7 @@ export declare namespace storage_v1 {
|
|
|
890
1062
|
kind?: string | null;
|
|
891
1063
|
}
|
|
892
1064
|
/**
|
|
893
|
-
* A storage.(buckets|objects).testIamPermissions response.
|
|
1065
|
+
* A storage.(buckets|objects|managedFolders).testIamPermissions response.
|
|
894
1066
|
*/
|
|
895
1067
|
export interface Schema$TestIamPermissionsResponse {
|
|
896
1068
|
/**
|
|
@@ -898,7 +1070,7 @@ export declare namespace storage_v1 {
|
|
|
898
1070
|
*/
|
|
899
1071
|
kind?: string | null;
|
|
900
1072
|
/**
|
|
901
|
-
* The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets or
|
|
1073
|
+
* 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:
|
|
902
1074
|
* - storage.buckets.delete — Delete bucket.
|
|
903
1075
|
* - storage.buckets.get — Read bucket metadata.
|
|
904
1076
|
* - storage.buckets.getIamPolicy — Read bucket IAM policy.
|
|
@@ -913,6 +1085,12 @@ export declare namespace storage_v1 {
|
|
|
913
1085
|
* - storage.objects.list — List objects.
|
|
914
1086
|
* - storage.objects.setIamPolicy — Update object IAM policy.
|
|
915
1087
|
* - storage.objects.update — Update object metadata.
|
|
1088
|
+
* - storage.managedFolders.delete — Delete managed folder.
|
|
1089
|
+
* - storage.managedFolders.get — Read managed folder metadata.
|
|
1090
|
+
* - storage.managedFolders.getIamPolicy — Read managed folder IAM policy.
|
|
1091
|
+
* - storage.managedFolders.create — Create managed folder.
|
|
1092
|
+
* - storage.managedFolders.list — List managed folders.
|
|
1093
|
+
* - storage.managedFolders.setIamPolicy — Update managed folder IAM policy.
|
|
916
1094
|
*/
|
|
917
1095
|
permissions?: string[] | null;
|
|
918
1096
|
}
|
|
@@ -1291,6 +1469,10 @@ export declare namespace storage_v1 {
|
|
|
1291
1469
|
userProject?: string;
|
|
1292
1470
|
}
|
|
1293
1471
|
export interface Params$Resource$Buckets$Insert extends StandardParameters {
|
|
1472
|
+
/**
|
|
1473
|
+
* When set to true, object retention is enabled for this bucket.
|
|
1474
|
+
*/
|
|
1475
|
+
enableObjectRetention?: boolean;
|
|
1294
1476
|
/**
|
|
1295
1477
|
* Apply a predefined set of access controls to this bucket.
|
|
1296
1478
|
*/
|
|
@@ -1660,6 +1842,226 @@ export declare namespace storage_v1 {
|
|
|
1660
1842
|
*/
|
|
1661
1843
|
requestBody?: Schema$ObjectAccessControl;
|
|
1662
1844
|
}
|
|
1845
|
+
export class Resource$Managedfolders {
|
|
1846
|
+
context: APIRequestContext;
|
|
1847
|
+
constructor(context: APIRequestContext);
|
|
1848
|
+
/**
|
|
1849
|
+
* Permanently deletes a managed folder.
|
|
1850
|
+
*
|
|
1851
|
+
* @param params - Parameters for request
|
|
1852
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1853
|
+
* @param callback - Optional callback that handles the response.
|
|
1854
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1855
|
+
*/
|
|
1856
|
+
delete(params: Params$Resource$Managedfolders$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1857
|
+
delete(params?: Params$Resource$Managedfolders$Delete, options?: MethodOptions): GaxiosPromise<void>;
|
|
1858
|
+
delete(params: Params$Resource$Managedfolders$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1859
|
+
delete(params: Params$Resource$Managedfolders$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
|
1860
|
+
delete(params: Params$Resource$Managedfolders$Delete, callback: BodyResponseCallback<void>): void;
|
|
1861
|
+
delete(callback: BodyResponseCallback<void>): void;
|
|
1862
|
+
/**
|
|
1863
|
+
* Returns metadata of the specified managed folder.
|
|
1864
|
+
*
|
|
1865
|
+
* @param params - Parameters for request
|
|
1866
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1867
|
+
* @param callback - Optional callback that handles the response.
|
|
1868
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1869
|
+
*/
|
|
1870
|
+
get(params: Params$Resource$Managedfolders$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1871
|
+
get(params?: Params$Resource$Managedfolders$Get, options?: MethodOptions): GaxiosPromise<Schema$ManagedFolder>;
|
|
1872
|
+
get(params: Params$Resource$Managedfolders$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1873
|
+
get(params: Params$Resource$Managedfolders$Get, options: MethodOptions | BodyResponseCallback<Schema$ManagedFolder>, callback: BodyResponseCallback<Schema$ManagedFolder>): void;
|
|
1874
|
+
get(params: Params$Resource$Managedfolders$Get, callback: BodyResponseCallback<Schema$ManagedFolder>): void;
|
|
1875
|
+
get(callback: BodyResponseCallback<Schema$ManagedFolder>): void;
|
|
1876
|
+
/**
|
|
1877
|
+
* Returns an IAM policy for the specified managed folder.
|
|
1878
|
+
*
|
|
1879
|
+
* @param params - Parameters for request
|
|
1880
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1881
|
+
* @param callback - Optional callback that handles the response.
|
|
1882
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1883
|
+
*/
|
|
1884
|
+
getIamPolicy(params: Params$Resource$Managedfolders$Getiampolicy, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1885
|
+
getIamPolicy(params?: Params$Resource$Managedfolders$Getiampolicy, options?: MethodOptions): GaxiosPromise<Schema$Policy>;
|
|
1886
|
+
getIamPolicy(params: Params$Resource$Managedfolders$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1887
|
+
getIamPolicy(params: Params$Resource$Managedfolders$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
1888
|
+
getIamPolicy(params: Params$Resource$Managedfolders$Getiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
1889
|
+
getIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
|
|
1890
|
+
/**
|
|
1891
|
+
* Creates a new managed folder.
|
|
1892
|
+
*
|
|
1893
|
+
* @param params - Parameters for request
|
|
1894
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1895
|
+
* @param callback - Optional callback that handles the response.
|
|
1896
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1897
|
+
*/
|
|
1898
|
+
insert(params: Params$Resource$Managedfolders$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1899
|
+
insert(params?: Params$Resource$Managedfolders$Insert, options?: MethodOptions): GaxiosPromise<Schema$ManagedFolder>;
|
|
1900
|
+
insert(params: Params$Resource$Managedfolders$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1901
|
+
insert(params: Params$Resource$Managedfolders$Insert, options: MethodOptions | BodyResponseCallback<Schema$ManagedFolder>, callback: BodyResponseCallback<Schema$ManagedFolder>): void;
|
|
1902
|
+
insert(params: Params$Resource$Managedfolders$Insert, callback: BodyResponseCallback<Schema$ManagedFolder>): void;
|
|
1903
|
+
insert(callback: BodyResponseCallback<Schema$ManagedFolder>): void;
|
|
1904
|
+
/**
|
|
1905
|
+
* Lists managed folders in the given bucket.
|
|
1906
|
+
*
|
|
1907
|
+
* @param params - Parameters for request
|
|
1908
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1909
|
+
* @param callback - Optional callback that handles the response.
|
|
1910
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1911
|
+
*/
|
|
1912
|
+
list(params: Params$Resource$Managedfolders$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1913
|
+
list(params?: Params$Resource$Managedfolders$List, options?: MethodOptions): GaxiosPromise<Schema$ManagedFolders>;
|
|
1914
|
+
list(params: Params$Resource$Managedfolders$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1915
|
+
list(params: Params$Resource$Managedfolders$List, options: MethodOptions | BodyResponseCallback<Schema$ManagedFolders>, callback: BodyResponseCallback<Schema$ManagedFolders>): void;
|
|
1916
|
+
list(params: Params$Resource$Managedfolders$List, callback: BodyResponseCallback<Schema$ManagedFolders>): void;
|
|
1917
|
+
list(callback: BodyResponseCallback<Schema$ManagedFolders>): void;
|
|
1918
|
+
/**
|
|
1919
|
+
* Updates an IAM policy for the specified managed folder.
|
|
1920
|
+
*
|
|
1921
|
+
* @param params - Parameters for request
|
|
1922
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1923
|
+
* @param callback - Optional callback that handles the response.
|
|
1924
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1925
|
+
*/
|
|
1926
|
+
setIamPolicy(params: Params$Resource$Managedfolders$Setiampolicy, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1927
|
+
setIamPolicy(params?: Params$Resource$Managedfolders$Setiampolicy, options?: MethodOptions): GaxiosPromise<Schema$Policy>;
|
|
1928
|
+
setIamPolicy(params: Params$Resource$Managedfolders$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1929
|
+
setIamPolicy(params: Params$Resource$Managedfolders$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$Policy>, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
1930
|
+
setIamPolicy(params: Params$Resource$Managedfolders$Setiampolicy, callback: BodyResponseCallback<Schema$Policy>): void;
|
|
1931
|
+
setIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
|
|
1932
|
+
/**
|
|
1933
|
+
* Tests a set of permissions on the given managed folder to see which, if any, are held by the caller.
|
|
1934
|
+
*
|
|
1935
|
+
* @param params - Parameters for request
|
|
1936
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1937
|
+
* @param callback - Optional callback that handles the response.
|
|
1938
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1939
|
+
*/
|
|
1940
|
+
testIamPermissions(params: Params$Resource$Managedfolders$Testiampermissions, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1941
|
+
testIamPermissions(params?: Params$Resource$Managedfolders$Testiampermissions, options?: MethodOptions): GaxiosPromise<Schema$TestIamPermissionsResponse>;
|
|
1942
|
+
testIamPermissions(params: Params$Resource$Managedfolders$Testiampermissions, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1943
|
+
testIamPermissions(params: Params$Resource$Managedfolders$Testiampermissions, options: MethodOptions | BodyResponseCallback<Schema$TestIamPermissionsResponse>, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
1944
|
+
testIamPermissions(params: Params$Resource$Managedfolders$Testiampermissions, callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
1945
|
+
testIamPermissions(callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>): void;
|
|
1946
|
+
}
|
|
1947
|
+
export interface Params$Resource$Managedfolders$Delete extends StandardParameters {
|
|
1948
|
+
/**
|
|
1949
|
+
* Name of the bucket containing the managed folder.
|
|
1950
|
+
*/
|
|
1951
|
+
bucket?: string;
|
|
1952
|
+
/**
|
|
1953
|
+
* If set, only deletes the managed folder if its metageneration matches this value.
|
|
1954
|
+
*/
|
|
1955
|
+
ifMetagenerationMatch?: string;
|
|
1956
|
+
/**
|
|
1957
|
+
* If set, only deletes the managed folder if its metageneration does not match this value.
|
|
1958
|
+
*/
|
|
1959
|
+
ifMetagenerationNotMatch?: string;
|
|
1960
|
+
/**
|
|
1961
|
+
* The managed folder name/path.
|
|
1962
|
+
*/
|
|
1963
|
+
managedFolder?: string;
|
|
1964
|
+
}
|
|
1965
|
+
export interface Params$Resource$Managedfolders$Get extends StandardParameters {
|
|
1966
|
+
/**
|
|
1967
|
+
* Name of the bucket containing the managed folder.
|
|
1968
|
+
*/
|
|
1969
|
+
bucket?: string;
|
|
1970
|
+
/**
|
|
1971
|
+
* Makes the return of the managed folder metadata conditional on whether the managed folder's current metageneration matches the given value.
|
|
1972
|
+
*/
|
|
1973
|
+
ifMetagenerationMatch?: string;
|
|
1974
|
+
/**
|
|
1975
|
+
* Makes the return of the managed folder metadata conditional on whether the managed folder's current metageneration does not match the given value.
|
|
1976
|
+
*/
|
|
1977
|
+
ifMetagenerationNotMatch?: string;
|
|
1978
|
+
/**
|
|
1979
|
+
* The managed folder name/path.
|
|
1980
|
+
*/
|
|
1981
|
+
managedFolder?: string;
|
|
1982
|
+
}
|
|
1983
|
+
export interface Params$Resource$Managedfolders$Getiampolicy extends StandardParameters {
|
|
1984
|
+
/**
|
|
1985
|
+
* Name of the bucket containing the managed folder.
|
|
1986
|
+
*/
|
|
1987
|
+
bucket?: string;
|
|
1988
|
+
/**
|
|
1989
|
+
* The managed folder name/path.
|
|
1990
|
+
*/
|
|
1991
|
+
managedFolder?: string;
|
|
1992
|
+
/**
|
|
1993
|
+
* 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.
|
|
1994
|
+
*/
|
|
1995
|
+
optionsRequestedPolicyVersion?: number;
|
|
1996
|
+
/**
|
|
1997
|
+
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
1998
|
+
*/
|
|
1999
|
+
userProject?: string;
|
|
2000
|
+
}
|
|
2001
|
+
export interface Params$Resource$Managedfolders$Insert extends StandardParameters {
|
|
2002
|
+
/**
|
|
2003
|
+
* Name of the bucket containing the managed folder.
|
|
2004
|
+
*/
|
|
2005
|
+
bucket?: string;
|
|
2006
|
+
/**
|
|
2007
|
+
* Request body metadata
|
|
2008
|
+
*/
|
|
2009
|
+
requestBody?: Schema$ManagedFolder;
|
|
2010
|
+
}
|
|
2011
|
+
export interface Params$Resource$Managedfolders$List extends StandardParameters {
|
|
2012
|
+
/**
|
|
2013
|
+
* Name of the bucket containing the managed folder.
|
|
2014
|
+
*/
|
|
2015
|
+
bucket?: string;
|
|
2016
|
+
/**
|
|
2017
|
+
* Maximum number of items return in a single page of responses.
|
|
2018
|
+
*/
|
|
2019
|
+
pageSize?: number;
|
|
2020
|
+
/**
|
|
2021
|
+
* A previously-returned page token representing part of the larger set of results to view.
|
|
2022
|
+
*/
|
|
2023
|
+
pageToken?: string;
|
|
2024
|
+
/**
|
|
2025
|
+
* The managed folder name/path prefix to filter the output list of results.
|
|
2026
|
+
*/
|
|
2027
|
+
prefix?: string;
|
|
2028
|
+
}
|
|
2029
|
+
export interface Params$Resource$Managedfolders$Setiampolicy extends StandardParameters {
|
|
2030
|
+
/**
|
|
2031
|
+
* Name of the bucket containing the managed folder.
|
|
2032
|
+
*/
|
|
2033
|
+
bucket?: string;
|
|
2034
|
+
/**
|
|
2035
|
+
* The managed folder name/path.
|
|
2036
|
+
*/
|
|
2037
|
+
managedFolder?: string;
|
|
2038
|
+
/**
|
|
2039
|
+
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
2040
|
+
*/
|
|
2041
|
+
userProject?: string;
|
|
2042
|
+
/**
|
|
2043
|
+
* Request body metadata
|
|
2044
|
+
*/
|
|
2045
|
+
requestBody?: Schema$Policy;
|
|
2046
|
+
}
|
|
2047
|
+
export interface Params$Resource$Managedfolders$Testiampermissions extends StandardParameters {
|
|
2048
|
+
/**
|
|
2049
|
+
* Name of the bucket containing the managed folder.
|
|
2050
|
+
*/
|
|
2051
|
+
bucket?: string;
|
|
2052
|
+
/**
|
|
2053
|
+
* The managed folder name/path.
|
|
2054
|
+
*/
|
|
2055
|
+
managedFolder?: string;
|
|
2056
|
+
/**
|
|
2057
|
+
* Permissions to test.
|
|
2058
|
+
*/
|
|
2059
|
+
permissions?: string[];
|
|
2060
|
+
/**
|
|
2061
|
+
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
2062
|
+
*/
|
|
2063
|
+
userProject?: string;
|
|
2064
|
+
}
|
|
1663
2065
|
export class Resource$Notifications {
|
|
1664
2066
|
context: APIRequestContext;
|
|
1665
2067
|
constructor(context: APIRequestContext);
|
|
@@ -1999,6 +2401,20 @@ export declare namespace storage_v1 {
|
|
|
1999
2401
|
export class Resource$Objects {
|
|
2000
2402
|
context: APIRequestContext;
|
|
2001
2403
|
constructor(context: APIRequestContext);
|
|
2404
|
+
/**
|
|
2405
|
+
* Initiates a long-running bulk restore operation on the specified bucket.
|
|
2406
|
+
*
|
|
2407
|
+
* @param params - Parameters for request
|
|
2408
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2409
|
+
* @param callback - Optional callback that handles the response.
|
|
2410
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2411
|
+
*/
|
|
2412
|
+
bulkRestore(params: Params$Resource$Objects$Bulkrestore, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2413
|
+
bulkRestore(params?: Params$Resource$Objects$Bulkrestore, options?: MethodOptions): GaxiosPromise<Schema$GoogleLongrunningOperation>;
|
|
2414
|
+
bulkRestore(params: Params$Resource$Objects$Bulkrestore, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2415
|
+
bulkRestore(params: Params$Resource$Objects$Bulkrestore, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
2416
|
+
bulkRestore(params: Params$Resource$Objects$Bulkrestore, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
2417
|
+
bulkRestore(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
2002
2418
|
/**
|
|
2003
2419
|
* Concatenates a list of existing objects into a new object in the same bucket.
|
|
2004
2420
|
*
|
|
@@ -2111,6 +2527,20 @@ export declare namespace storage_v1 {
|
|
|
2111
2527
|
patch(params: Params$Resource$Objects$Patch, options: MethodOptions | BodyResponseCallback<Schema$Object>, callback: BodyResponseCallback<Schema$Object>): void;
|
|
2112
2528
|
patch(params: Params$Resource$Objects$Patch, callback: BodyResponseCallback<Schema$Object>): void;
|
|
2113
2529
|
patch(callback: BodyResponseCallback<Schema$Object>): void;
|
|
2530
|
+
/**
|
|
2531
|
+
* Restores a soft-deleted object.
|
|
2532
|
+
*
|
|
2533
|
+
* @param params - Parameters for request
|
|
2534
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2535
|
+
* @param callback - Optional callback that handles the response.
|
|
2536
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2537
|
+
*/
|
|
2538
|
+
restore(params: Params$Resource$Objects$Restore, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
2539
|
+
restore(params?: Params$Resource$Objects$Restore, options?: MethodOptions): GaxiosPromise<Schema$Object>;
|
|
2540
|
+
restore(params: Params$Resource$Objects$Restore, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2541
|
+
restore(params: Params$Resource$Objects$Restore, options: MethodOptions | BodyResponseCallback<Schema$Object>, callback: BodyResponseCallback<Schema$Object>): void;
|
|
2542
|
+
restore(params: Params$Resource$Objects$Restore, callback: BodyResponseCallback<Schema$Object>): void;
|
|
2543
|
+
restore(callback: BodyResponseCallback<Schema$Object>): void;
|
|
2114
2544
|
/**
|
|
2115
2545
|
* Rewrites a source object to a destination object. Optionally overrides metadata.
|
|
2116
2546
|
*
|
|
@@ -2182,6 +2612,16 @@ export declare namespace storage_v1 {
|
|
|
2182
2612
|
watchAll(params: Params$Resource$Objects$Watchall, callback: BodyResponseCallback<Schema$Channel>): void;
|
|
2183
2613
|
watchAll(callback: BodyResponseCallback<Schema$Channel>): void;
|
|
2184
2614
|
}
|
|
2615
|
+
export interface Params$Resource$Objects$Bulkrestore extends StandardParameters {
|
|
2616
|
+
/**
|
|
2617
|
+
* Name of the bucket in which the object resides.
|
|
2618
|
+
*/
|
|
2619
|
+
bucket?: string;
|
|
2620
|
+
/**
|
|
2621
|
+
* Request body metadata
|
|
2622
|
+
*/
|
|
2623
|
+
requestBody?: Schema$BulkRestoreObjectsRequest;
|
|
2624
|
+
}
|
|
2185
2625
|
export interface Params$Resource$Objects$Compose extends StandardParameters {
|
|
2186
2626
|
/**
|
|
2187
2627
|
* Name of the bucket containing the source objects. The destination object is stored in this bucket.
|
|
@@ -2357,6 +2797,10 @@ export declare namespace storage_v1 {
|
|
|
2357
2797
|
* Set of properties to return. Defaults to noAcl.
|
|
2358
2798
|
*/
|
|
2359
2799
|
projection?: string;
|
|
2800
|
+
/**
|
|
2801
|
+
* If true, only soft-deleted object versions will be listed. The default is false. For more information, see Soft Delete.
|
|
2802
|
+
*/
|
|
2803
|
+
softDeleted?: boolean;
|
|
2360
2804
|
/**
|
|
2361
2805
|
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
2362
2806
|
*/
|
|
@@ -2456,6 +2900,10 @@ export declare namespace storage_v1 {
|
|
|
2456
2900
|
* 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).
|
|
2457
2901
|
*/
|
|
2458
2902
|
endOffset?: string;
|
|
2903
|
+
/**
|
|
2904
|
+
* Only applicable if delimiter is set to '/'. If true, will also include folders and managed folders (besides objects) in the returned prefixes.
|
|
2905
|
+
*/
|
|
2906
|
+
includeFoldersAsPrefixes?: boolean;
|
|
2459
2907
|
/**
|
|
2460
2908
|
* If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes.
|
|
2461
2909
|
*/
|
|
@@ -2480,6 +2928,10 @@ export declare namespace storage_v1 {
|
|
|
2480
2928
|
* Set of properties to return. Defaults to noAcl.
|
|
2481
2929
|
*/
|
|
2482
2930
|
projection?: string;
|
|
2931
|
+
/**
|
|
2932
|
+
* If true, only soft-deleted object versions will be listed. The default is false. For more information, see Soft Delete.
|
|
2933
|
+
*/
|
|
2934
|
+
softDeleted?: boolean;
|
|
2483
2935
|
/**
|
|
2484
2936
|
* 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).
|
|
2485
2937
|
*/
|
|
@@ -2522,6 +2974,10 @@ export declare namespace storage_v1 {
|
|
|
2522
2974
|
* Name of the 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).
|
|
2523
2975
|
*/
|
|
2524
2976
|
object?: string;
|
|
2977
|
+
/**
|
|
2978
|
+
* Must be true to remove the retention configuration, reduce its unlocked retention period, or change its mode from unlocked to locked.
|
|
2979
|
+
*/
|
|
2980
|
+
overrideUnlockedRetention?: boolean;
|
|
2525
2981
|
/**
|
|
2526
2982
|
* Apply a predefined set of access controls to this object.
|
|
2527
2983
|
*/
|
|
@@ -2539,6 +2995,52 @@ export declare namespace storage_v1 {
|
|
|
2539
2995
|
*/
|
|
2540
2996
|
requestBody?: Schema$Object;
|
|
2541
2997
|
}
|
|
2998
|
+
export interface Params$Resource$Objects$Restore extends StandardParameters {
|
|
2999
|
+
/**
|
|
3000
|
+
* Name of the bucket in which the object resides.
|
|
3001
|
+
*/
|
|
3002
|
+
bucket?: string;
|
|
3003
|
+
/**
|
|
3004
|
+
* If true, copies the source object's ACL; otherwise, uses the bucket's default object ACL. The default is false.
|
|
3005
|
+
*/
|
|
3006
|
+
copySourceAcl?: boolean;
|
|
3007
|
+
/**
|
|
3008
|
+
* Selects a specific revision of this object.
|
|
3009
|
+
*/
|
|
3010
|
+
generation?: string;
|
|
3011
|
+
/**
|
|
3012
|
+
* Makes the operation conditional on whether the object's one live generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
|
|
3013
|
+
*/
|
|
3014
|
+
ifGenerationMatch?: string;
|
|
3015
|
+
/**
|
|
3016
|
+
* Makes the operation conditional on whether none of the object's live generations 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.
|
|
3017
|
+
*/
|
|
3018
|
+
ifGenerationNotMatch?: string;
|
|
3019
|
+
/**
|
|
3020
|
+
* Makes the operation conditional on whether the object's one live metageneration matches the given value.
|
|
3021
|
+
*/
|
|
3022
|
+
ifMetagenerationMatch?: string;
|
|
3023
|
+
/**
|
|
3024
|
+
* Makes the operation conditional on whether none of the object's live metagenerations match the given value.
|
|
3025
|
+
*/
|
|
3026
|
+
ifMetagenerationNotMatch?: string;
|
|
3027
|
+
/**
|
|
3028
|
+
* Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.
|
|
3029
|
+
*/
|
|
3030
|
+
object?: string;
|
|
3031
|
+
/**
|
|
3032
|
+
* Set of properties to return. Defaults to full.
|
|
3033
|
+
*/
|
|
3034
|
+
projection?: string;
|
|
3035
|
+
/**
|
|
3036
|
+
* The project to be billed for this request. Required for Requester Pays buckets.
|
|
3037
|
+
*/
|
|
3038
|
+
userProject?: string;
|
|
3039
|
+
/**
|
|
3040
|
+
* Request body metadata
|
|
3041
|
+
*/
|
|
3042
|
+
requestBody?: Schema$Object;
|
|
3043
|
+
}
|
|
2542
3044
|
export interface Params$Resource$Objects$Rewrite extends StandardParameters {
|
|
2543
3045
|
/**
|
|
2544
3046
|
* Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.
|
|
@@ -2694,6 +3196,10 @@ export declare namespace storage_v1 {
|
|
|
2694
3196
|
* Name of the 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).
|
|
2695
3197
|
*/
|
|
2696
3198
|
object?: string;
|
|
3199
|
+
/**
|
|
3200
|
+
* Must be true to remove the retention configuration, reduce its unlocked retention period, or change its mode from unlocked to locked.
|
|
3201
|
+
*/
|
|
3202
|
+
overrideUnlockedRetention?: boolean;
|
|
2697
3203
|
/**
|
|
2698
3204
|
* Apply a predefined set of access controls to this object.
|
|
2699
3205
|
*/
|
|
@@ -2761,6 +3267,90 @@ export declare namespace storage_v1 {
|
|
|
2761
3267
|
*/
|
|
2762
3268
|
requestBody?: Schema$Channel;
|
|
2763
3269
|
}
|
|
3270
|
+
export class Resource$Operations {
|
|
3271
|
+
context: APIRequestContext;
|
|
3272
|
+
constructor(context: APIRequestContext);
|
|
3273
|
+
/**
|
|
3274
|
+
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed.
|
|
3275
|
+
*
|
|
3276
|
+
* @param params - Parameters for request
|
|
3277
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3278
|
+
* @param callback - Optional callback that handles the response.
|
|
3279
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3280
|
+
*/
|
|
3281
|
+
cancel(params: Params$Resource$Operations$Cancel, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
3282
|
+
cancel(params?: Params$Resource$Operations$Cancel, options?: MethodOptions): GaxiosPromise<void>;
|
|
3283
|
+
cancel(params: Params$Resource$Operations$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3284
|
+
cancel(params: Params$Resource$Operations$Cancel, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
|
3285
|
+
cancel(params: Params$Resource$Operations$Cancel, callback: BodyResponseCallback<void>): void;
|
|
3286
|
+
cancel(callback: BodyResponseCallback<void>): void;
|
|
3287
|
+
/**
|
|
3288
|
+
* Gets the latest state of a long-running operation.
|
|
3289
|
+
*
|
|
3290
|
+
* @param params - Parameters for request
|
|
3291
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3292
|
+
* @param callback - Optional callback that handles the response.
|
|
3293
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3294
|
+
*/
|
|
3295
|
+
get(params: Params$Resource$Operations$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
3296
|
+
get(params?: Params$Resource$Operations$Get, options?: MethodOptions): GaxiosPromise<Schema$GoogleLongrunningOperation>;
|
|
3297
|
+
get(params: Params$Resource$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3298
|
+
get(params: Params$Resource$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
3299
|
+
get(params: Params$Resource$Operations$Get, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
3300
|
+
get(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
|
|
3301
|
+
/**
|
|
3302
|
+
* Lists operations that match the specified filter in the request.
|
|
3303
|
+
*
|
|
3304
|
+
* @param params - Parameters for request
|
|
3305
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3306
|
+
* @param callback - Optional callback that handles the response.
|
|
3307
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3308
|
+
*/
|
|
3309
|
+
list(params: Params$Resource$Operations$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
3310
|
+
list(params?: Params$Resource$Operations$List, options?: MethodOptions): GaxiosPromise<Schema$GoogleLongrunningListOperationsResponse>;
|
|
3311
|
+
list(params: Params$Resource$Operations$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3312
|
+
list(params: Params$Resource$Operations$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>, callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>): void;
|
|
3313
|
+
list(params: Params$Resource$Operations$List, callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>): void;
|
|
3314
|
+
list(callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>): void;
|
|
3315
|
+
}
|
|
3316
|
+
export interface Params$Resource$Operations$Cancel extends StandardParameters {
|
|
3317
|
+
/**
|
|
3318
|
+
* The parent bucket of the operation resource.
|
|
3319
|
+
*/
|
|
3320
|
+
bucket?: string;
|
|
3321
|
+
/**
|
|
3322
|
+
* The ID of the operation resource.
|
|
3323
|
+
*/
|
|
3324
|
+
operationId?: string;
|
|
3325
|
+
}
|
|
3326
|
+
export interface Params$Resource$Operations$Get extends StandardParameters {
|
|
3327
|
+
/**
|
|
3328
|
+
* The parent bucket of the operation resource.
|
|
3329
|
+
*/
|
|
3330
|
+
bucket?: string;
|
|
3331
|
+
/**
|
|
3332
|
+
* The ID of the operation resource.
|
|
3333
|
+
*/
|
|
3334
|
+
operationId?: string;
|
|
3335
|
+
}
|
|
3336
|
+
export interface Params$Resource$Operations$List extends StandardParameters {
|
|
3337
|
+
/**
|
|
3338
|
+
* Name of the bucket in which to look for operations.
|
|
3339
|
+
*/
|
|
3340
|
+
bucket?: string;
|
|
3341
|
+
/**
|
|
3342
|
+
* 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).
|
|
3343
|
+
*/
|
|
3344
|
+
filter?: string;
|
|
3345
|
+
/**
|
|
3346
|
+
* 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.
|
|
3347
|
+
*/
|
|
3348
|
+
pageSize?: number;
|
|
3349
|
+
/**
|
|
3350
|
+
* A previously-returned page token representing part of the larger set of results to view.
|
|
3351
|
+
*/
|
|
3352
|
+
pageToken?: string;
|
|
3353
|
+
}
|
|
2764
3354
|
export class Resource$Projects {
|
|
2765
3355
|
context: APIRequestContext;
|
|
2766
3356
|
hmacKeys: Resource$Projects$Hmackeys;
|