v1beta1.d.ts
56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { OAuth2Client, JWT, Compute, UserRefreshClient } from 'google-auth-library';
import { GoogleConfigurable, MethodOptions, GlobalOptions, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
import { GaxiosPromise } from 'gaxios';
export declare namespace storage_v1beta1 {
export interface Options extends GlobalOptions {
version: 'v1beta1';
}
interface StandardParameters {
/**
* Data format for the response.
*/
alt?: string;
/**
* Selector specifying which fields to include in a partial response.
*/
fields?: string;
/**
* API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
*/
key?: string;
/**
* OAuth 2.0 token for the current user.
*/
oauth_token?: string;
/**
* Returns response with indentations and line breaks.
*/
prettyPrint?: boolean;
/**
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
*/
quotaUser?: string;
/**
* Deprecated. Please use quotaUser instead.
*/
userIp?: string;
}
/**
* Cloud Storage JSON API
*
* Lets you store and retrieve potentially-large, immutable data objects.
*
* @example
* const {google} = require('googleapis');
* const storage = google.storage('v1beta1');
*
* @namespace storage
* @type {Function}
* @version v1beta1
* @variation v1beta1
* @param {object=} options Options for Storage
*/
export class Storage {
context: APIRequestContext;
bucketAccessControls: Resource$Bucketaccesscontrols;
buckets: Resource$Buckets;
objectAccessControls: Resource$Objectaccesscontrols;
objects: Resource$Objects;
constructor(options: GlobalOptions, google?: GoogleConfigurable);
}
/**
* A bucket.
*/
export interface Schema$Bucket {
/**
* Access controls on the bucket.
*/
acl?: Schema$BucketAccessControl[];
/**
* Default access controls to apply to new objects when no ACL is provided.
*/
defaultObjectAcl?: Schema$ObjectAccessControl[];
/**
* The name of the bucket.
*/
id?: string | null;
/**
* The kind of item this is. For buckets, this is always storage#bucket.
*/
kind?: string | null;
/**
* The location of the bucket. Object data for objects in the bucket resides in physical storage in this location. Can be US or EU. Defaults to US.
*/
location?: string | null;
/**
* The owner of the bucket. This will always be the project team's owner group.
*/
owner?: {
entity?: string;
entityId?: string;
} | null;
/**
* The project the bucket belongs to.
*/
projectId?: string | null;
/**
* The URI of this bucket.
*/
selfLink?: string | null;
/**
* Creation time of the bucket in RFC 3339 format.
*/
timeCreated?: string | null;
/**
* The bucket's website configuration.
*/
website?: {
mainPageSuffix?: string;
notFoundPage?: string;
} | null;
}
/**
* An access-control entry.
*/
export interface Schema$BucketAccessControl {
/**
* The name of the bucket.
*/
bucket?: string | null;
/**
* The domain associated with the entity, if any.
*/
domain?: string | null;
/**
* The email address associated with the entity, if any.
*/
email?: string | null;
/**
* The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - allUsers - allAuthenticatedUsers Examples: - The user liz@example.com would be user-liz@example.com. - The group example@googlegroups.com would be group-example@googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
*/
entity?: string | null;
/**
* The ID for the entity, if any.
*/
entityId?: string | null;
/**
* The ID of the access-control entry.
*/
id?: string | null;
/**
* The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
*/
kind?: string | null;
/**
* The access permission for the entity. Can be READER, WRITER, or OWNER.
*/
role?: string | null;
/**
* The link to this access-control entry.
*/
selfLink?: string | null;
}
/**
* An access-control list.
*/
export interface Schema$BucketAccessControls {
/**
* The list of items.
*/
items?: Schema$BucketAccessControl[];
/**
* The kind of item this is. For lists of bucket access control entries, this is always storage#bucketAccessControls.
*/
kind?: string | null;
}
/**
* A list of buckets.
*/
export interface Schema$Buckets {
/**
* The list of items.
*/
items?: Schema$Bucket[];
/**
* The kind of item this is. For lists of buckets, this is always storage#buckets.
*/
kind?: string | null;
/**
* The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
*/
nextPageToken?: string | null;
}
/**
* An object.
*/
export interface Schema$Object {
/**
* Access controls on the object.
*/
acl?: Schema$ObjectAccessControl[];
/**
* The bucket containing this object.
*/
bucket?: string | null;
/**
* Cache-Control directive for the object data.
*/
cacheControl?: string | null;
/**
* Content-Disposition of the object data.
*/
contentDisposition?: string | null;
/**
* Content-Encoding of the object data.
*/
contentEncoding?: string | null;
/**
* Content-Language of the object data.
*/
contentLanguage?: string | null;
/**
* The ID of the object.
*/
id?: string | null;
/**
* The kind of item this is. For objects, this is always storage#object.
*/
kind?: string | null;
/**
* Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part.
*/
media?: {
algorithm?: string;
contentType?: string;
data?: string;
hash?: string;
length?: string;
link?: string;
timeCreated?: string;
} | null;
/**
* User-provided metadata, in key/value pairs.
*/
metadata?: {
[key: string]: string;
} | null;
/**
* The name of this object. Required if not specified by URL parameter.
*/
name?: string | null;
/**
* The owner of the object. This will always be the uploader of the object.
*/
owner?: {
entity?: string;
entityId?: string;
} | null;
/**
* The link to this object.
*/
selfLink?: string | null;
}
/**
* An access-control entry.
*/
export interface Schema$ObjectAccessControl {
/**
* The name of the bucket.
*/
bucket?: string | null;
/**
* The domain associated with the entity, if any.
*/
domain?: string | null;
/**
* The email address associated with the entity, if any.
*/
email?: string | null;
/**
* The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - allUsers - allAuthenticatedUsers Examples: - The user liz@example.com would be user-liz@example.com. - The group example@googlegroups.com would be group-example@googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
*/
entity?: string | null;
/**
* The ID for the entity, if any.
*/
entityId?: string | null;
/**
* The ID of the access-control entry.
*/
id?: string | null;
/**
* The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
*/
kind?: string | null;
/**
* The name of the object.
*/
object?: string | null;
/**
* The access permission for the entity. Can be READER or OWNER.
*/
role?: string | null;
/**
* The link to this access-control entry.
*/
selfLink?: string | null;
}
/**
* An access-control list.
*/
export interface Schema$ObjectAccessControls {
/**
* The list of items.
*/
items?: Schema$ObjectAccessControl[];
/**
* The kind of item this is. For lists of object access control entries, this is always storage#objectAccessControls.
*/
kind?: string | null;
}
/**
* A list of objects.
*/
export interface Schema$Objects {
/**
* The list of items.
*/
items?: Schema$Object[];
/**
* The kind of item this is. For lists of objects, this is always storage#objects.
*/
kind?: string | null;
/**
* The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
*/
nextPageToken?: string | null;
/**
* The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.
*/
prefixes?: string[] | null;
}
export class Resource$Bucketaccesscontrols {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* storage.bucketAccessControls.delete
* @desc Deletes the ACL entry for the specified entity on the specified bucket.
* @alias storage.bucketAccessControls.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Bucketaccesscontrols$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Bucketaccesscontrols$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Bucketaccesscontrols$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* storage.bucketAccessControls.get
* @desc Returns the ACL entry for the specified entity on the specified bucket.
* @alias storage.bucketAccessControls.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Bucketaccesscontrols$Get, options?: MethodOptions): GaxiosPromise<Schema$BucketAccessControl>;
get(params: Params$Resource$Bucketaccesscontrols$Get, options: MethodOptions | BodyResponseCallback<Schema$BucketAccessControl>, callback: BodyResponseCallback<Schema$BucketAccessControl>): void;
get(params: Params$Resource$Bucketaccesscontrols$Get, callback: BodyResponseCallback<Schema$BucketAccessControl>): void;
get(callback: BodyResponseCallback<Schema$BucketAccessControl>): void;
/**
* storage.bucketAccessControls.insert
* @desc Creates a new ACL entry on the specified bucket.
* @alias storage.bucketAccessControls.insert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {().BucketAccessControl} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params?: Params$Resource$Bucketaccesscontrols$Insert, options?: MethodOptions): GaxiosPromise<Schema$BucketAccessControl>;
insert(params: Params$Resource$Bucketaccesscontrols$Insert, options: MethodOptions | BodyResponseCallback<Schema$BucketAccessControl>, callback: BodyResponseCallback<Schema$BucketAccessControl>): void;
insert(params: Params$Resource$Bucketaccesscontrols$Insert, callback: BodyResponseCallback<Schema$BucketAccessControl>): void;
insert(callback: BodyResponseCallback<Schema$BucketAccessControl>): void;
/**
* storage.bucketAccessControls.list
* @desc Retrieves ACL entries on the specified bucket.
* @alias storage.bucketAccessControls.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Bucketaccesscontrols$List, options?: MethodOptions): GaxiosPromise<Schema$BucketAccessControls>;
list(params: Params$Resource$Bucketaccesscontrols$List, options: MethodOptions | BodyResponseCallback<Schema$BucketAccessControls>, callback: BodyResponseCallback<Schema$BucketAccessControls>): void;
list(params: Params$Resource$Bucketaccesscontrols$List, callback: BodyResponseCallback<Schema$BucketAccessControls>): void;
list(callback: BodyResponseCallback<Schema$BucketAccessControls>): void;
/**
* storage.bucketAccessControls.patch
* @desc Updates an ACL entry on the specified bucket. This method supports patch semantics.
* @alias storage.bucketAccessControls.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
* @param {().BucketAccessControl} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: Params$Resource$Bucketaccesscontrols$Patch, options?: MethodOptions): GaxiosPromise<Schema$BucketAccessControl>;
patch(params: Params$Resource$Bucketaccesscontrols$Patch, options: MethodOptions | BodyResponseCallback<Schema$BucketAccessControl>, callback: BodyResponseCallback<Schema$BucketAccessControl>): void;
patch(params: Params$Resource$Bucketaccesscontrols$Patch, callback: BodyResponseCallback<Schema$BucketAccessControl>): void;
patch(callback: BodyResponseCallback<Schema$BucketAccessControl>): void;
/**
* storage.bucketAccessControls.update
* @desc Updates an ACL entry on the specified bucket.
* @alias storage.bucketAccessControls.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
* @param {().BucketAccessControl} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Bucketaccesscontrols$Update, options?: MethodOptions): GaxiosPromise<Schema$BucketAccessControl>;
update(params: Params$Resource$Bucketaccesscontrols$Update, options: MethodOptions | BodyResponseCallback<Schema$BucketAccessControl>, callback: BodyResponseCallback<Schema$BucketAccessControl>): void;
update(params: Params$Resource$Bucketaccesscontrols$Update, callback: BodyResponseCallback<Schema$BucketAccessControl>): void;
update(callback: BodyResponseCallback<Schema$BucketAccessControl>): void;
}
export interface Params$Resource$Bucketaccesscontrols$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
/**
* The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
*/
entity?: string;
}
export interface Params$Resource$Bucketaccesscontrols$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
/**
* The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
*/
entity?: string;
}
export interface Params$Resource$Bucketaccesscontrols$Insert extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
/**
* Request body metadata
*/
requestBody?: Schema$BucketAccessControl;
}
export interface Params$Resource$Bucketaccesscontrols$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
}
export interface Params$Resource$Bucketaccesscontrols$Patch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
/**
* The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
*/
entity?: string;
/**
* Request body metadata
*/
requestBody?: Schema$BucketAccessControl;
}
export interface Params$Resource$Bucketaccesscontrols$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
/**
* The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
*/
entity?: string;
/**
* Request body metadata
*/
requestBody?: Schema$BucketAccessControl;
}
export class Resource$Buckets {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* storage.buckets.delete
* @desc Deletes an empty bucket.
* @alias storage.buckets.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Buckets$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Buckets$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Buckets$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* storage.buckets.get
* @desc Returns metadata for the specified bucket.
* @alias storage.buckets.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {string=} params.projection Set of properties to return. Defaults to no_acl.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Buckets$Get, options?: MethodOptions): GaxiosPromise<Schema$Bucket>;
get(params: Params$Resource$Buckets$Get, options: MethodOptions | BodyResponseCallback<Schema$Bucket>, callback: BodyResponseCallback<Schema$Bucket>): void;
get(params: Params$Resource$Buckets$Get, callback: BodyResponseCallback<Schema$Bucket>): void;
get(callback: BodyResponseCallback<Schema$Bucket>): void;
/**
* storage.buckets.insert
* @desc Creates a new bucket.
* @alias storage.buckets.insert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string=} params.projection Set of properties to return. Defaults to no_acl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.
* @param {().Bucket} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params?: Params$Resource$Buckets$Insert, options?: MethodOptions): GaxiosPromise<Schema$Bucket>;
insert(params: Params$Resource$Buckets$Insert, options: MethodOptions | BodyResponseCallback<Schema$Bucket>, callback: BodyResponseCallback<Schema$Bucket>): void;
insert(params: Params$Resource$Buckets$Insert, callback: BodyResponseCallback<Schema$Bucket>): void;
insert(callback: BodyResponseCallback<Schema$Bucket>): void;
/**
* storage.buckets.list
* @desc Retrieves a list of buckets for a given project.
* @alias storage.buckets.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {integer=} params.max-results Maximum number of buckets to return.
* @param {string=} params.pageToken A previously-returned page token representing part of the larger set of results to view.
* @param {string} params.projectId A valid API project identifier.
* @param {string=} params.projection Set of properties to return. Defaults to no_acl.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Buckets$List, options?: MethodOptions): GaxiosPromise<Schema$Buckets>;
list(params: Params$Resource$Buckets$List, options: MethodOptions | BodyResponseCallback<Schema$Buckets>, callback: BodyResponseCallback<Schema$Buckets>): void;
list(params: Params$Resource$Buckets$List, callback: BodyResponseCallback<Schema$Buckets>): void;
list(callback: BodyResponseCallback<Schema$Buckets>): void;
/**
* storage.buckets.patch
* @desc Updates a bucket. This method supports patch semantics.
* @alias storage.buckets.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {string=} params.projection Set of properties to return. Defaults to full.
* @param {().Bucket} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: Params$Resource$Buckets$Patch, options?: MethodOptions): GaxiosPromise<Schema$Bucket>;
patch(params: Params$Resource$Buckets$Patch, options: MethodOptions | BodyResponseCallback<Schema$Bucket>, callback: BodyResponseCallback<Schema$Bucket>): void;
patch(params: Params$Resource$Buckets$Patch, callback: BodyResponseCallback<Schema$Bucket>): void;
patch(callback: BodyResponseCallback<Schema$Bucket>): void;
/**
* storage.buckets.update
* @desc Updates a bucket.
* @alias storage.buckets.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {string=} params.projection Set of properties to return. Defaults to full.
* @param {().Bucket} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Buckets$Update, options?: MethodOptions): GaxiosPromise<Schema$Bucket>;
update(params: Params$Resource$Buckets$Update, options: MethodOptions | BodyResponseCallback<Schema$Bucket>, callback: BodyResponseCallback<Schema$Bucket>): void;
update(params: Params$Resource$Buckets$Update, callback: BodyResponseCallback<Schema$Bucket>): void;
update(callback: BodyResponseCallback<Schema$Bucket>): void;
}
export interface Params$Resource$Buckets$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
}
export interface Params$Resource$Buckets$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
/**
* Set of properties to return. Defaults to no_acl.
*/
projection?: string;
}
export interface Params$Resource$Buckets$Insert extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Set of properties to return. Defaults to no_acl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.
*/
projection?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Bucket;
}
export interface Params$Resource$Buckets$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Maximum number of buckets to return.
*/
'max-results'?: number;
/**
* A previously-returned page token representing part of the larger set of results to view.
*/
pageToken?: string;
/**
* A valid API project identifier.
*/
projectId?: string;
/**
* Set of properties to return. Defaults to no_acl.
*/
projection?: string;
}
export interface Params$Resource$Buckets$Patch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
/**
* Set of properties to return. Defaults to full.
*/
projection?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Bucket;
}
export interface Params$Resource$Buckets$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
/**
* Set of properties to return. Defaults to full.
*/
projection?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Bucket;
}
export class Resource$Objectaccesscontrols {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* storage.objectAccessControls.delete
* @desc Deletes the ACL entry for the specified entity on the specified object.
* @alias storage.objectAccessControls.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
* @param {string} params.object Name of the object.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Objectaccesscontrols$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Objectaccesscontrols$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Objectaccesscontrols$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* storage.objectAccessControls.get
* @desc Returns the ACL entry for the specified entity on the specified object.
* @alias storage.objectAccessControls.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
* @param {string} params.object Name of the object.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Objectaccesscontrols$Get, options?: MethodOptions): GaxiosPromise<Schema$ObjectAccessControl>;
get(params: Params$Resource$Objectaccesscontrols$Get, options: MethodOptions | BodyResponseCallback<Schema$ObjectAccessControl>, callback: BodyResponseCallback<Schema$ObjectAccessControl>): void;
get(params: Params$Resource$Objectaccesscontrols$Get, callback: BodyResponseCallback<Schema$ObjectAccessControl>): void;
get(callback: BodyResponseCallback<Schema$ObjectAccessControl>): void;
/**
* storage.objectAccessControls.insert
* @desc Creates a new ACL entry on the specified object.
* @alias storage.objectAccessControls.insert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {string} params.object Name of the object.
* @param {().ObjectAccessControl} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params?: Params$Resource$Objectaccesscontrols$Insert, options?: MethodOptions): GaxiosPromise<Schema$ObjectAccessControl>;
insert(params: Params$Resource$Objectaccesscontrols$Insert, options: MethodOptions | BodyResponseCallback<Schema$ObjectAccessControl>, callback: BodyResponseCallback<Schema$ObjectAccessControl>): void;
insert(params: Params$Resource$Objectaccesscontrols$Insert, callback: BodyResponseCallback<Schema$ObjectAccessControl>): void;
insert(callback: BodyResponseCallback<Schema$ObjectAccessControl>): void;
/**
* storage.objectAccessControls.list
* @desc Retrieves ACL entries on the specified object.
* @alias storage.objectAccessControls.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {string} params.object Name of the object.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Objectaccesscontrols$List, options?: MethodOptions): GaxiosPromise<Schema$ObjectAccessControls>;
list(params: Params$Resource$Objectaccesscontrols$List, options: MethodOptions | BodyResponseCallback<Schema$ObjectAccessControls>, callback: BodyResponseCallback<Schema$ObjectAccessControls>): void;
list(params: Params$Resource$Objectaccesscontrols$List, callback: BodyResponseCallback<Schema$ObjectAccessControls>): void;
list(callback: BodyResponseCallback<Schema$ObjectAccessControls>): void;
/**
* storage.objectAccessControls.patch
* @desc Updates an ACL entry on the specified object. This method supports patch semantics.
* @alias storage.objectAccessControls.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
* @param {string} params.object Name of the object.
* @param {().ObjectAccessControl} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: Params$Resource$Objectaccesscontrols$Patch, options?: MethodOptions): GaxiosPromise<Schema$ObjectAccessControl>;
patch(params: Params$Resource$Objectaccesscontrols$Patch, options: MethodOptions | BodyResponseCallback<Schema$ObjectAccessControl>, callback: BodyResponseCallback<Schema$ObjectAccessControl>): void;
patch(params: Params$Resource$Objectaccesscontrols$Patch, callback: BodyResponseCallback<Schema$ObjectAccessControl>): void;
patch(callback: BodyResponseCallback<Schema$ObjectAccessControl>): void;
/**
* storage.objectAccessControls.update
* @desc Updates an ACL entry on the specified object.
* @alias storage.objectAccessControls.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of a bucket.
* @param {string} params.entity The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
* @param {string} params.object Name of the object.
* @param {().ObjectAccessControl} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Objectaccesscontrols$Update, options?: MethodOptions): GaxiosPromise<Schema$ObjectAccessControl>;
update(params: Params$Resource$Objectaccesscontrols$Update, options: MethodOptions | BodyResponseCallback<Schema$ObjectAccessControl>, callback: BodyResponseCallback<Schema$ObjectAccessControl>): void;
update(params: Params$Resource$Objectaccesscontrols$Update, callback: BodyResponseCallback<Schema$ObjectAccessControl>): void;
update(callback: BodyResponseCallback<Schema$ObjectAccessControl>): void;
}
export interface Params$Resource$Objectaccesscontrols$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
/**
* The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
*/
entity?: string;
/**
* Name of the object.
*/
object?: string;
}
export interface Params$Resource$Objectaccesscontrols$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
/**
* The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
*/
entity?: string;
/**
* Name of the object.
*/
object?: string;
}
export interface Params$Resource$Objectaccesscontrols$Insert extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
/**
* Name of the object.
*/
object?: string;
/**
* Request body metadata
*/
requestBody?: Schema$ObjectAccessControl;
}
export interface Params$Resource$Objectaccesscontrols$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
/**
* Name of the object.
*/
object?: string;
}
export interface Params$Resource$Objectaccesscontrols$Patch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
/**
* The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
*/
entity?: string;
/**
* Name of the object.
*/
object?: string;
/**
* Request body metadata
*/
requestBody?: Schema$ObjectAccessControl;
}
export interface Params$Resource$Objectaccesscontrols$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of a bucket.
*/
bucket?: string;
/**
* The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.
*/
entity?: string;
/**
* Name of the object.
*/
object?: string;
/**
* Request body metadata
*/
requestBody?: Schema$ObjectAccessControl;
}
export class Resource$Objects {
context: APIRequestContext;
constructor(context: APIRequestContext);
/**
* storage.objects.delete
* @desc Deletes data blobs and associated metadata.
* @alias storage.objects.delete
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of the bucket in which the object resides.
* @param {string} params.object Name of the object.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
delete(params?: Params$Resource$Objects$Delete, options?: MethodOptions): GaxiosPromise<void>;
delete(params: Params$Resource$Objects$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
delete(params: Params$Resource$Objects$Delete, callback: BodyResponseCallback<void>): void;
delete(callback: BodyResponseCallback<void>): void;
/**
* storage.objects.get
* @desc Retrieves objects or their associated metadata.
* @alias storage.objects.get
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of the bucket in which the object resides.
* @param {string} params.object Name of the object.
* @param {string=} params.projection Set of properties to return. Defaults to no_acl.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
get(params?: Params$Resource$Objects$Get, options?: MethodOptions): GaxiosPromise<Schema$Object>;
get(params: Params$Resource$Objects$Get, options: MethodOptions | BodyResponseCallback<Schema$Object>, callback: BodyResponseCallback<Schema$Object>): void;
get(params: Params$Resource$Objects$Get, callback: BodyResponseCallback<Schema$Object>): void;
get(callback: BodyResponseCallback<Schema$Object>): void;
/**
* storage.objects.insert
* @desc Stores new data blobs and associated metadata.
* @alias storage.objects.insert
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.
* @param {string=} params.name Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.
* @param {string=} params.projection Set of properties to return. Defaults to no_acl, unless the object resource specifies the acl property, when it defaults to full.
* @param {object} params.resource Media resource metadata
* @param {object} params.media Media object
* @param {string} params.media.mimeType Media mime-type
* @param {string|object} params.media.body Media body contents
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
insert(params?: Params$Resource$Objects$Insert, options?: MethodOptions): GaxiosPromise<Schema$Object>;
insert(params: Params$Resource$Objects$Insert, options: MethodOptions | BodyResponseCallback<Schema$Object>, callback: BodyResponseCallback<Schema$Object>): void;
insert(params: Params$Resource$Objects$Insert, callback: BodyResponseCallback<Schema$Object>): void;
insert(callback: BodyResponseCallback<Schema$Object>): void;
/**
* storage.objects.list
* @desc Retrieves a list of objects matching the criteria.
* @alias storage.objects.list
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of the bucket in which to look for objects.
* @param {string=} params.delimiter 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.
* @param {integer=} params.max-results Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.
* @param {string=} params.pageToken A previously-returned page token representing part of the larger set of results to view.
* @param {string=} params.prefix Filter results to objects whose names begin with this prefix.
* @param {string=} params.projection Set of properties to return. Defaults to no_acl.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
list(params?: Params$Resource$Objects$List, options?: MethodOptions): GaxiosPromise<Schema$Objects>;
list(params: Params$Resource$Objects$List, options: MethodOptions | BodyResponseCallback<Schema$Objects>, callback: BodyResponseCallback<Schema$Objects>): void;
list(params: Params$Resource$Objects$List, callback: BodyResponseCallback<Schema$Objects>): void;
list(callback: BodyResponseCallback<Schema$Objects>): void;
/**
* storage.objects.patch
* @desc Updates a data blob's associated metadata. This method supports patch semantics.
* @alias storage.objects.patch
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of the bucket in which the object resides.
* @param {string} params.object Name of the object.
* @param {string=} params.projection Set of properties to return. Defaults to full.
* @param {().Object} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
patch(params?: Params$Resource$Objects$Patch, options?: MethodOptions): GaxiosPromise<Schema$Object>;
patch(params: Params$Resource$Objects$Patch, options: MethodOptions | BodyResponseCallback<Schema$Object>, callback: BodyResponseCallback<Schema$Object>): void;
patch(params: Params$Resource$Objects$Patch, callback: BodyResponseCallback<Schema$Object>): void;
patch(callback: BodyResponseCallback<Schema$Object>): void;
/**
* storage.objects.update
* @desc Updates a data blob's associated metadata.
* @alias storage.objects.update
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.bucket Name of the bucket in which the object resides.
* @param {string} params.object Name of the object.
* @param {string=} params.projection Set of properties to return. Defaults to full.
* @param {().Object} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
*/
update(params?: Params$Resource$Objects$Update, options?: MethodOptions): GaxiosPromise<Schema$Object>;
update(params: Params$Resource$Objects$Update, options: MethodOptions | BodyResponseCallback<Schema$Object>, callback: BodyResponseCallback<Schema$Object>): void;
update(params: Params$Resource$Objects$Update, callback: BodyResponseCallback<Schema$Object>): void;
update(callback: BodyResponseCallback<Schema$Object>): void;
}
export interface Params$Resource$Objects$Delete extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the bucket in which the object resides.
*/
bucket?: string;
/**
* Name of the object.
*/
object?: string;
}
export interface Params$Resource$Objects$Get extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the bucket in which the object resides.
*/
bucket?: string;
/**
* Name of the object.
*/
object?: string;
/**
* Set of properties to return. Defaults to no_acl.
*/
projection?: string;
}
export interface Params$Resource$Objects$Insert extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.
*/
bucket?: string;
/**
* Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.
*/
name?: string;
/**
* Set of properties to return. Defaults to no_acl, unless the object resource specifies the acl property, when it defaults to full.
*/
projection?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Object;
/**
* Media metadata
*/
media?: {
/**
* Media mime-type
*/
mimeType?: string;
/**
* Media body contents
*/
body?: any;
};
}
export interface Params$Resource$Objects$List extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the bucket in which to look for objects.
*/
bucket?: string;
/**
* 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.
*/
delimiter?: string;
/**
* Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.
*/
'max-results'?: number;
/**
* A previously-returned page token representing part of the larger set of results to view.
*/
pageToken?: string;
/**
* Filter results to objects whose names begin with this prefix.
*/
prefix?: string;
/**
* Set of properties to return. Defaults to no_acl.
*/
projection?: string;
}
export interface Params$Resource$Objects$Patch extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the bucket in which the object resides.
*/
bucket?: string;
/**
* Name of the object.
*/
object?: string;
/**
* Set of properties to return. Defaults to full.
*/
projection?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Object;
}
export interface Params$Resource$Objects$Update extends StandardParameters {
/**
* Auth client or API Key for the request
*/
auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient;
/**
* Name of the bucket in which the object resides.
*/
bucket?: string;
/**
* Name of the object.
*/
object?: string;
/**
* Set of properties to return. Defaults to full.
*/
projection?: string;
/**
* Request body metadata
*/
requestBody?: Schema$Object;
}
export {};
}