@types/google-cloud__storage
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -58,2 +58,4 @@ // Type definitions for @google-cloud/storage 1.7 | ||
}; | ||
// Note: This is not documented, but it is used in examples (https://cloud.google.com/nodejs/docs/reference/storage/1.7.x/Storage) | ||
storageClass?: 'COLDLINE' | 'DURABLE_REDUCED_AVAILABILITY' | 'MULTI_REGIONAL' | 'NEARLINE' | 'REGIONAL'; | ||
} | ||
@@ -206,2 +208,4 @@ | ||
componentCount?: number; | ||
// Note: this property is accessed in one of the examples | ||
component_count?: number; | ||
contentDisposition?: string; | ||
@@ -413,18 +417,2 @@ contentEncoding?: string; | ||
/** | ||
* The Storage class allows you interact with Google Cloud Storage. | ||
*/ | ||
class Storage { | ||
constructor(config?: ConfigurationObject); | ||
acl: Acl; | ||
bucket(name: string | Bucket): Bucket; | ||
channel(id: string, resourceId: string): Channel; | ||
createBucket(name: string, metadata?: BucketConfig): Promise<[Bucket, ApiResponse]>; | ||
getBuckets(query?: BucketQuery): Promise<[Bucket[]]>; | ||
getBucketsStream(query?: BucketQuery): Promise<[ReadStream]>; | ||
Channel: (storage: Storage, id: string, resourceId: string) => Channel; | ||
File: (bucket: Bucket, name: string, opts: BucketFileOptions) => File; | ||
Bucket: (storage: Storage, name: string) => Bucket; | ||
} | ||
/** | ||
* This class allows you interact with Google Cloud Storage. | ||
@@ -466,4 +454,18 @@ */ | ||
declare function Storage(config?: Storage.ConfigurationObject): Storage.Storage; | ||
/** | ||
* The Storage class allows you interact with Google Cloud Storage. | ||
*/ | ||
declare class Storage { | ||
constructor(config?: Storage.ConfigurationObject); | ||
acl: Storage.Acl; | ||
bucket(name: string | Storage.Bucket): Storage.Bucket; | ||
channel(id: string, resourceId: string): Storage.Channel; | ||
createBucket(name: string, metadata?: Storage.BucketConfig): Promise<[Storage.Bucket, Storage.ApiResponse]>; | ||
getBuckets(query?: Storage.BucketQuery): Promise<[Storage.Bucket[]]>; | ||
getBucketsStream(query?: Storage.BucketQuery): Promise<[ReadStream]>; | ||
Channel: (storage: Storage, id: string, resourceId: string) => Storage.Channel; | ||
File: (bucket: Storage.Bucket, name: string, opts: Storage.BucketFileOptions) => Storage.File; | ||
Bucket: (storage: Storage, name: string) => Storage.Bucket; | ||
} | ||
export = Storage; |
{ | ||
"name": "@types/google-cloud__storage", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "TypeScript definitions for @google-cloud/storage", | ||
@@ -38,4 +38,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "40c65cea57ceebf357148bbe221dcbbe6a7fb66a7426848de46102da95f41162", | ||
"typesPublisherContentHash": "2efac711a43125cb15591f4c74e954bd5ea58d7a80a0a755a2fe2b53867d7425", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Sat, 21 Jul 2018 02:05:50 GMT | ||
* Last updated: Tue, 14 Aug 2018 00:52:13 GMT | ||
* Dependencies: fs, request, node | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16714
426