mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
* Added constructor function to the Storage class.
This commit is contained in:
+16
@@ -301,6 +301,21 @@ declare module "@google-cloud/storage/storage" {
|
||||
updated?: string;
|
||||
}
|
||||
|
||||
interface Credentials {
|
||||
client_email?: string;
|
||||
private_key?: string;
|
||||
}
|
||||
|
||||
interface ConfigurationObject {
|
||||
autoRetry?: boolean;
|
||||
credentials?: Credentials;
|
||||
email?: string;
|
||||
keyFilename?: string;
|
||||
maxRetries?: number;
|
||||
projectId?: string;
|
||||
promise?: Function;
|
||||
}
|
||||
|
||||
/**
|
||||
* The options when downloading a file.
|
||||
*/
|
||||
@@ -343,6 +358,7 @@ declare module "@google-cloud/storage/storage" {
|
||||
* The Storage class allows you interact with Google Cloud Storage.
|
||||
*/
|
||||
class Storage {
|
||||
constructor(options?: ConfigurationObject);
|
||||
acl: Acl;
|
||||
bucket(name: string|Bucket): Bucket;
|
||||
channel(id: string, resourceId: string): Channel;
|
||||
|
||||
Reference in New Issue
Block a user