SettableMetadata interface

Object metadata that can be set at any time.

Signature:

exportinterfaceSettableMetadata

Properties

PropertyTypeDescription
cacheControlstring | undefinedServed as the 'Cache-Control' header on object download.
contentDispositionstring | undefinedServed as the 'Content-Disposition' header on object download.
contentEncodingstring | undefinedServed as the 'Content-Encoding' header on object download.
contentLanguagestring | undefinedServed as the 'Content-Language' header on object download.
contentTypestring | undefinedServed as the 'Content-Type' header on object download.
customMetadata{ [key: string]: string; } | undefinedAdditional user-defined custom metadata.

SettableMetadata.cacheControl

Served as the 'Cache-Control' header on object download.

Signature:

cacheControl?:string|undefined;

SettableMetadata.contentDisposition

Served as the 'Content-Disposition' header on object download.

Signature:

contentDisposition?:string|undefined;

SettableMetadata.contentEncoding

Served as the 'Content-Encoding' header on object download.

Signature:

contentEncoding?:string|undefined;

SettableMetadata.contentLanguage

Served as the 'Content-Language' header on object download.

Signature:

contentLanguage?:string|undefined;

SettableMetadata.contentType

Served as the 'Content-Type' header on object download.

Signature:

contentType?:string|undefined;

SettableMetadata.customMetadata

Additional user-defined custom metadata.

Signature:

customMetadata?:{[key:string]:string;}|undefined;