1 |
|
2 |
|
3 |
|
4 |
|
5 | import { ApiError, BodyResponseCallback, DecorateRequestOptions, DeleteCallback, ExistsCallback, GetConfig, Metadata, MetadataCallback, ResponseBody, ServiceObject, SetMetadataResponse } from './nodejs-common';
|
6 | import * as http from 'http';
|
7 | import { Acl } from './acl';
|
8 | import { Channel } from './channel';
|
9 | import { File, FileOptions, CreateResumableUploadOptions, CreateWriteStreamOptions } from './file';
|
10 | import { Iam } from './iam';
|
11 | import { Notification } from './notification';
|
12 | import { Storage, Cors, PreconditionOptions, BucketOptions } from './storage';
|
13 | import { GetSignedUrlResponse, GetSignedUrlCallback, URLSigner, Query } from './signer';
|
14 | import { Readable } from 'stream';
|
15 | import { CRC32CValidatorGenerator } from './crc32c';
|
16 | import { URL } from 'url';
|
17 | import { SetMetadataOptions } from './nodejs-common/service-object';
|
18 | export type GetFilesResponse = [File[], {}, Metadata];
|
19 | export interface GetFilesCallback {
|
20 | (err: Error | null, files?: File[], nextQuery?: {}, apiResponse?: Metadata): void;
|
21 | }
|
22 | interface WatchAllOptions {
|
23 | delimiter?: string;
|
24 | maxResults?: number;
|
25 | pageToken?: string;
|
26 | prefix?: string;
|
27 | projection?: string;
|
28 | userProject?: string;
|
29 | versions?: boolean;
|
30 | }
|
31 | export interface AddLifecycleRuleOptions extends PreconditionOptions {
|
32 | append?: boolean;
|
33 | }
|
34 | export interface LifecycleRule {
|
35 | action: {
|
36 | type: string;
|
37 | storageClass?: string;
|
38 | } | string;
|
39 | condition: {
|
40 | [key: string]: boolean | Date | number | string | string[];
|
41 | };
|
42 | storageClass?: string;
|
43 | }
|
44 | export interface EnableLoggingOptions extends PreconditionOptions {
|
45 | bucket?: string | Bucket;
|
46 | prefix: string;
|
47 | }
|
48 | export interface GetFilesOptions {
|
49 | autoPaginate?: boolean;
|
50 | delimiter?: string;
|
51 | endOffset?: string;
|
52 | includeTrailingDelimiter?: boolean;
|
53 | prefix?: string;
|
54 | maxApiCalls?: number;
|
55 | maxResults?: number;
|
56 | pageToken?: string;
|
57 | startOffset?: string;
|
58 | userProject?: string;
|
59 | versions?: boolean;
|
60 | }
|
61 | export interface CombineOptions extends PreconditionOptions {
|
62 | kmsKeyName?: string;
|
63 | userProject?: string;
|
64 | }
|
65 | export interface CombineCallback {
|
66 | (err: Error | null, newFile: File | null, apiResponse: Metadata): void;
|
67 | }
|
68 | export type CombineResponse = [File, Metadata];
|
69 | export interface CreateChannelConfig extends WatchAllOptions {
|
70 | address: string;
|
71 | }
|
72 | export interface CreateChannelOptions {
|
73 | userProject?: string;
|
74 | }
|
75 | export type CreateChannelResponse = [Channel, Metadata];
|
76 | export interface CreateChannelCallback {
|
77 | (err: Error | null, channel: Channel | null, apiResponse: Metadata): void;
|
78 | }
|
79 | export interface CreateNotificationOptions {
|
80 | customAttributes?: {
|
81 | [key: string]: string;
|
82 | };
|
83 | eventTypes?: string[];
|
84 | objectNamePrefix?: string;
|
85 | payloadFormat?: string;
|
86 | userProject?: string;
|
87 | }
|
88 | export interface CreateNotificationCallback {
|
89 | (err: Error | null, notification: Notification | null, apiResponse: Metadata): void;
|
90 | }
|
91 | export type CreateNotificationResponse = [Notification, Metadata];
|
92 | export interface DeleteBucketOptions {
|
93 | ignoreNotFound?: boolean;
|
94 | userProject?: string;
|
95 | }
|
96 | export type DeleteBucketResponse = [Metadata];
|
97 | export interface DeleteBucketCallback extends DeleteCallback {
|
98 | (err: Error | null, apiResponse: Metadata): void;
|
99 | }
|
100 | export interface DeleteFilesOptions extends GetFilesOptions, PreconditionOptions {
|
101 | force?: boolean;
|
102 | }
|
103 | export interface DeleteFilesCallback {
|
104 | (err: Error | Error[] | null, apiResponse?: object): void;
|
105 | }
|
106 | export type DeleteLabelsResponse = [Metadata];
|
107 | export type DeleteLabelsCallback = SetLabelsCallback;
|
108 | export type DeleteLabelsOptions = PreconditionOptions;
|
109 | export type DisableRequesterPaysOptions = PreconditionOptions;
|
110 | export type DisableRequesterPaysResponse = [Metadata];
|
111 | export interface DisableRequesterPaysCallback {
|
112 | (err?: Error | null, apiResponse?: object): void;
|
113 | }
|
114 | export type EnableRequesterPaysResponse = [Metadata];
|
115 | export interface EnableRequesterPaysCallback {
|
116 | (err?: Error | null, apiResponse?: Metadata): void;
|
117 | }
|
118 | export type EnableRequesterPaysOptions = PreconditionOptions;
|
119 | export interface BucketExistsOptions extends GetConfig {
|
120 | userProject?: string;
|
121 | }
|
122 | export type BucketExistsResponse = [boolean];
|
123 | export type BucketExistsCallback = ExistsCallback;
|
124 | export interface GetBucketOptions extends GetConfig {
|
125 | userProject?: string;
|
126 | }
|
127 | export type GetBucketResponse = [Bucket, Metadata];
|
128 | export interface GetBucketCallback {
|
129 | (err: ApiError | null, bucket: Bucket | null, apiResponse: Metadata): void;
|
130 | }
|
131 | export interface GetLabelsOptions {
|
132 | userProject?: string;
|
133 | }
|
134 | export type GetLabelsResponse = [Metadata];
|
135 | export interface GetLabelsCallback {
|
136 | (err: Error | null, labels: object | null): void;
|
137 | }
|
138 | export type GetBucketMetadataResponse = [Metadata, Metadata];
|
139 | export interface GetBucketMetadataCallback {
|
140 | (err: ApiError | null, metadata: Metadata | null, apiResponse: Metadata): void;
|
141 | }
|
142 | export interface GetBucketMetadataOptions {
|
143 | userProject?: string;
|
144 | }
|
145 | export interface GetBucketSignedUrlConfig {
|
146 | action: 'list';
|
147 | version?: 'v2' | 'v4';
|
148 | cname?: string;
|
149 | virtualHostedStyle?: boolean;
|
150 | expires: string | number | Date;
|
151 | extensionHeaders?: http.OutgoingHttpHeaders;
|
152 | queryParams?: Query;
|
153 | }
|
154 | export declare enum BucketActionToHTTPMethod {
|
155 | list = "GET"
|
156 | }
|
157 | export declare enum AvailableServiceObjectMethods {
|
158 | setMetadata = 0,
|
159 | delete = 1
|
160 | }
|
161 | export interface GetNotificationsOptions {
|
162 | userProject?: string;
|
163 | }
|
164 | export interface GetNotificationsCallback {
|
165 | (err: Error | null, notifications: Notification[] | null, apiResponse: Metadata): void;
|
166 | }
|
167 | export type GetNotificationsResponse = [Notification[], Metadata];
|
168 | export interface MakeBucketPrivateOptions {
|
169 | includeFiles?: boolean;
|
170 | force?: boolean;
|
171 | metadata?: Metadata;
|
172 | userProject?: string;
|
173 | preconditionOpts?: PreconditionOptions;
|
174 | }
|
175 | export type MakeBucketPrivateResponse = [File[]];
|
176 | export interface MakeBucketPrivateCallback {
|
177 | (err?: Error | null, files?: File[]): void;
|
178 | }
|
179 | export interface MakeBucketPublicOptions {
|
180 | includeFiles?: boolean;
|
181 | force?: boolean;
|
182 | }
|
183 | export interface MakeBucketPublicCallback {
|
184 | (err?: Error | null, files?: File[]): void;
|
185 | }
|
186 | export type MakeBucketPublicResponse = [File[]];
|
187 | export interface SetBucketMetadataOptions extends PreconditionOptions {
|
188 | userProject?: string;
|
189 | }
|
190 | export type SetBucketMetadataResponse = [Metadata];
|
191 | export interface SetBucketMetadataCallback {
|
192 | (err?: Error | null, metadata?: Metadata): void;
|
193 | }
|
194 | export interface BucketLockCallback {
|
195 | (err?: Error | null, apiResponse?: Metadata): void;
|
196 | }
|
197 | export type BucketLockResponse = [Metadata];
|
198 | export interface Labels {
|
199 | [key: string]: string;
|
200 | }
|
201 | export interface SetLabelsOptions extends PreconditionOptions {
|
202 | userProject?: string;
|
203 | }
|
204 | export type SetLabelsResponse = [Metadata];
|
205 | export interface SetLabelsCallback {
|
206 | (err?: Error | null, metadata?: Metadata): void;
|
207 | }
|
208 | export interface SetBucketStorageClassOptions extends PreconditionOptions {
|
209 | userProject?: string;
|
210 | }
|
211 | export interface SetBucketStorageClassCallback {
|
212 | (err?: Error | null): void;
|
213 | }
|
214 | export type UploadResponse = [File, Metadata];
|
215 | export interface UploadCallback {
|
216 | (err: Error | null, file?: File | null, apiResponse?: Metadata): void;
|
217 | }
|
218 | export interface UploadOptions extends CreateResumableUploadOptions, CreateWriteStreamOptions {
|
219 | destination?: string | File;
|
220 | encryptionKey?: string | Buffer;
|
221 | kmsKeyName?: string;
|
222 | onUploadProgress?: (progressEvent: any) => void;
|
223 | }
|
224 | export interface MakeAllFilesPublicPrivateOptions {
|
225 | force?: boolean;
|
226 | private?: boolean;
|
227 | public?: boolean;
|
228 | userProject?: string;
|
229 | }
|
230 | interface MakeAllFilesPublicPrivateCallback {
|
231 | (err?: Error | Error[] | null, files?: File[]): void;
|
232 | }
|
233 | type MakeAllFilesPublicPrivateResponse = [File[]];
|
234 | export declare enum BucketExceptionMessages {
|
235 | PROVIDE_SOURCE_FILE = "You must provide at least one source file.",
|
236 | DESTINATION_FILE_NOT_SPECIFIED = "A destination file must be specified.",
|
237 | CHANNEL_ID_REQUIRED = "An ID is required to create a channel.",
|
238 | CHANNEL_ADDRESS_REQUIRED = "An address is required to create a channel.",
|
239 | TOPIC_NAME_REQUIRED = "A valid topic name is required.",
|
240 | CONFIGURATION_OBJECT_PREFIX_REQUIRED = "A configuration object with a prefix is required.",
|
241 | SPECIFY_FILE_NAME = "A file name must be specified.",
|
242 | METAGENERATION_NOT_PROVIDED = "A metageneration must be provided.",
|
243 | SUPPLY_NOTIFICATION_ID = "You must supply a notification ID."
|
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 | declare class Bucket extends ServiceObject {
|
523 | metadata: Metadata;
|
524 | name: string;
|
525 | |
526 |
|
527 |
|
528 |
|
529 |
|
530 |
|
531 | storage: Storage;
|
532 | |
533 |
|
534 |
|
535 |
|
536 |
|
537 | userProject?: string;
|
538 | acl: Acl;
|
539 | iam: Iam;
|
540 | crc32cGenerator: CRC32CValidatorGenerator;
|
541 | getFilesStream(query?: GetFilesOptions): Readable;
|
542 | signer?: URLSigner;
|
543 | private instanceRetryValue?;
|
544 | instancePreconditionOpts?: PreconditionOptions;
|
545 | constructor(storage: Storage, name: string, options?: BucketOptions);
|
546 | /**
|
547 | * The bucket's Cloud Storage URI (`gs:
|
548 | *
|
549 | * @example
|
550 | * ```ts
|
551 | * const {Storage} = require('@google-cloud/storage');
|
552 | * const storage = new Storage();
|
553 | * const bucket = storage.bucket('my-bucket');
|
554 | *
|
555 | *
|
556 | * const href = bucket.cloudStorageURI.href;
|
557 | * ```
|
558 | */
|
559 | get cloudStorageURI(): URL;
|
560 | addLifecycleRule(rule: LifecycleRule | LifecycleRule[], options?: AddLifecycleRuleOptions): Promise<SetBucketMetadataResponse>;
|
561 | addLifecycleRule(rule: LifecycleRule | LifecycleRule[], options: AddLifecycleRuleOptions, callback: SetBucketMetadataCallback): void;
|
562 | addLifecycleRule(rule: LifecycleRule | LifecycleRule[], callback: SetBucketMetadataCallback): void;
|
563 | combine(sources: string[] | File[], destination: string | File, options?: CombineOptions): Promise<CombineResponse>;
|
564 | combine(sources: string[] | File[], destination: string | File, options: CombineOptions, callback: CombineCallback): void;
|
565 | combine(sources: string[] | File[], destination: string | File, callback: CombineCallback): void;
|
566 | createChannel(id: string, config: CreateChannelConfig, options?: CreateChannelOptions): Promise<CreateChannelResponse>;
|
567 | createChannel(id: string, config: CreateChannelConfig, callback: CreateChannelCallback): void;
|
568 | createChannel(id: string, config: CreateChannelConfig, options: CreateChannelOptions, callback: CreateChannelCallback): void;
|
569 | createNotification(topic: string, options?: CreateNotificationOptions): Promise<CreateNotificationResponse>;
|
570 | createNotification(topic: string, options: CreateNotificationOptions, callback: CreateNotificationCallback): void;
|
571 | createNotification(topic: string, callback: CreateNotificationCallback): void;
|
572 | deleteFiles(query?: DeleteFilesOptions): Promise<void>;
|
573 | deleteFiles(callback: DeleteFilesCallback): void;
|
574 | deleteFiles(query: DeleteFilesOptions, callback: DeleteFilesCallback): void;
|
575 | deleteLabels(labels?: string | string[]): Promise<DeleteLabelsResponse>;
|
576 | deleteLabels(options: DeleteLabelsOptions): Promise<DeleteLabelsResponse>;
|
577 | deleteLabels(callback: DeleteLabelsCallback): void;
|
578 | deleteLabels(labels: string | string[], options: DeleteLabelsOptions): Promise<DeleteLabelsResponse>;
|
579 | deleteLabels(labels: string | string[], callback: DeleteLabelsCallback): void;
|
580 | deleteLabels(labels: string | string[], options: DeleteLabelsOptions, callback: DeleteLabelsCallback): void;
|
581 | disableRequesterPays(options?: DisableRequesterPaysOptions): Promise<DisableRequesterPaysResponse>;
|
582 | disableRequesterPays(callback: DisableRequesterPaysCallback): void;
|
583 | disableRequesterPays(options: DisableRequesterPaysOptions, callback: DisableRequesterPaysCallback): void;
|
584 | enableLogging(config: EnableLoggingOptions): Promise<SetBucketMetadataResponse>;
|
585 | enableLogging(config: EnableLoggingOptions, callback: SetBucketMetadataCallback): void;
|
586 | enableRequesterPays(options?: EnableRequesterPaysOptions): Promise<EnableRequesterPaysResponse>;
|
587 | enableRequesterPays(callback: EnableRequesterPaysCallback): void;
|
588 | enableRequesterPays(options: EnableRequesterPaysOptions, callback: EnableRequesterPaysCallback): void;
|
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 | file(name: string, options?: FileOptions): File;
|
616 | getFiles(query?: GetFilesOptions): Promise<GetFilesResponse>;
|
617 | getFiles(query: GetFilesOptions, callback: GetFilesCallback): void;
|
618 | getFiles(callback: GetFilesCallback): void;
|
619 | getLabels(options?: GetLabelsOptions): Promise<GetLabelsResponse>;
|
620 | getLabels(callback: GetLabelsCallback): void;
|
621 | getLabels(options: GetLabelsOptions, callback: GetLabelsCallback): void;
|
622 | getNotifications(options?: GetNotificationsOptions): Promise<GetNotificationsResponse>;
|
623 | getNotifications(callback: GetNotificationsCallback): void;
|
624 | getNotifications(options: GetNotificationsOptions, callback: GetNotificationsCallback): void;
|
625 | getSignedUrl(cfg: GetBucketSignedUrlConfig): Promise<GetSignedUrlResponse>;
|
626 | getSignedUrl(cfg: GetBucketSignedUrlConfig, callback: GetSignedUrlCallback): void;
|
627 | lock(metageneration: number | string): Promise<BucketLockResponse>;
|
628 | lock(metageneration: number | string, callback: BucketLockCallback): void;
|
629 | makePrivate(options?: MakeBucketPrivateOptions): Promise<MakeBucketPrivateResponse>;
|
630 | makePrivate(callback: MakeBucketPrivateCallback): void;
|
631 | makePrivate(options: MakeBucketPrivateOptions, callback: MakeBucketPrivateCallback): void;
|
632 | makePublic(options?: MakeBucketPublicOptions): Promise<MakeBucketPublicResponse>;
|
633 | makePublic(callback: MakeBucketPublicCallback): void;
|
634 | makePublic(options: MakeBucketPublicOptions, callback: MakeBucketPublicCallback): void;
|
635 | |
636 |
|
637 |
|
638 |
|
639 |
|
640 |
|
641 |
|
642 |
|
643 |
|
644 |
|
645 |
|
646 |
|
647 |
|
648 |
|
649 |
|
650 | notification(id: string): Notification;
|
651 | removeRetentionPeriod(options?: SetBucketMetadataOptions): Promise<SetBucketMetadataResponse>;
|
652 | removeRetentionPeriod(callback: SetBucketMetadataCallback): void;
|
653 | removeRetentionPeriod(options: SetBucketMetadataOptions, callback: SetBucketMetadataCallback): void;
|
654 | request(reqOpts: DecorateRequestOptions): Promise<[ResponseBody, Metadata]>;
|
655 | request(reqOpts: DecorateRequestOptions, callback: BodyResponseCallback): void;
|
656 | setLabels(labels: Labels, options?: SetLabelsOptions): Promise<SetLabelsResponse>;
|
657 | setLabels(labels: Labels, callback: SetLabelsCallback): void;
|
658 | setLabels(labels: Labels, options: SetLabelsOptions, callback: SetLabelsCallback): void;
|
659 | setMetadata(metadata: Metadata, options?: SetMetadataOptions): Promise<SetMetadataResponse>;
|
660 | setMetadata(metadata: Metadata, callback: MetadataCallback): void;
|
661 | setMetadata(metadata: Metadata, options: SetMetadataOptions, callback: MetadataCallback): void;
|
662 | setRetentionPeriod(duration: number, options?: SetBucketMetadataOptions): Promise<SetBucketMetadataResponse>;
|
663 | setRetentionPeriod(duration: number, callback: SetBucketMetadataCallback): void;
|
664 | setRetentionPeriod(duration: number, options: SetBucketMetadataOptions, callback: SetBucketMetadataCallback): void;
|
665 | setCorsConfiguration(corsConfiguration: Cors[], options?: SetBucketMetadataOptions): Promise<SetBucketMetadataResponse>;
|
666 | setCorsConfiguration(corsConfiguration: Cors[], callback: SetBucketMetadataCallback): void;
|
667 | setCorsConfiguration(corsConfiguration: Cors[], options: SetBucketMetadataOptions, callback: SetBucketMetadataCallback): void;
|
668 | setStorageClass(storageClass: string, options?: SetBucketStorageClassOptions): Promise<SetBucketMetadataResponse>;
|
669 | setStorageClass(storageClass: string, callback: SetBucketStorageClassCallback): void;
|
670 | setStorageClass(storageClass: string, options: SetBucketStorageClassOptions, callback: SetBucketStorageClassCallback): void;
|
671 | |
672 |
|
673 |
|
674 |
|
675 |
|
676 |
|
677 |
|
678 |
|
679 |
|
680 |
|
681 |
|
682 |
|
683 |
|
684 |
|
685 |
|
686 | setUserProject(userProject: string): void;
|
687 | upload(pathString: string, options?: UploadOptions): Promise<UploadResponse>;
|
688 | upload(pathString: string, options: UploadOptions, callback: UploadCallback): void;
|
689 | upload(pathString: string, callback: UploadCallback): void;
|
690 | makeAllFilesPublicPrivate_(options?: MakeAllFilesPublicPrivateOptions): Promise<MakeAllFilesPublicPrivateResponse>;
|
691 | makeAllFilesPublicPrivate_(callback: MakeAllFilesPublicPrivateCallback): void;
|
692 | makeAllFilesPublicPrivate_(options: MakeAllFilesPublicPrivateOptions, callback: MakeAllFilesPublicPrivateCallback): void;
|
693 | getId(): string;
|
694 | disableAutoRetryConditionallyIdempotent_(coreOpts: any, methodType: AvailableServiceObjectMethods, localPreconditionOptions?: PreconditionOptions): void;
|
695 | }
|
696 |
|
697 |
|
698 |
|
699 |
|
700 |
|
701 | export { Bucket };
|
702 |
|
\ | No newline at end of file |