storage.StorageObjectData interface

Google Cloud Storage 中的对象。参考:https://github.com/googleapis/google-cloudevents-nodejs/blob/main/cloud/storage/v1/StorageObjectData.ts

签名:

export interface StorageObjectData 

特性

财产类型描述
细绳包含该对象的存储桶的名称。
缓存控制细绳对象数据的 Cache-Control 指令,匹配 [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]。
组件数量数字组成该对象的底层组件的数量。组件是通过组合操作累积的。尝试设置此字段将导致错误。
内容配置细绳对象数据的内容处置,匹配 [https://tools.ietf.org/html/rfc6266][RFC 6266]。
内容编码细绳对象数据的内容编码,匹配 [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
内容语言细绳对象数据的内容语言,匹配 [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2]。
内容类型细绳对象数据的 Content-Type,匹配 [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]。如果存储的对象没有 Content-Type,则它将作为application/octet-stream
CRC32c细绳CRC32c 校验和。有关使用 CRC32c 校验和的更多信息,请参阅 [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][哈希和 ETags:最佳实践]。
客户加密客户加密客户提供的加密密钥的元数据(如果对象是通过此类密钥加密的)。
埃塔格细绳对象的 HTTP 1.1 实体标记。请参阅 [https://tools.ietf.org/html/rfc7232#section-2.3][RFC 7232 §2.3]。
一代数字该对象的内容生成。用于对象版本控制。尝试设置此字段将导致错误。
ID细绳对象的ID,包括存储桶名称、对象名称和生成编号。
种类细绳这是一种物品。对于对象,这始终是“storage#object”。
md5哈希值细绳数据的 MD5 哈希值;根据 [https://tools.ietf.org/html/rfc4648#section-4][RFC 4648 §4] 使用 base64 进行编码。有关使用 MD5 哈希的更多信息,请参阅 [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][哈希和 ETag:最佳实践]。
媒体链接细绳媒体下载链接。
元数据{ [键:字符串]:字符串; }用户提供的元数据,以键/值对的形式。
元代数字该对象在这一代的元数据版本。用于前提条件和检测元数据的更改。元世代编号仅在特定对象的特定世代的上下文中才有意义。
姓名细绳对象的名称。
自链接细绳到该对象的链接。
尺寸数字对象数据的内容长度(以字节为单位),匹配 [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2]。
存储类细绳对象的存储类别。
创建时间日期 |细绳对象的创建时间。尝试设置此字段将导致错误。
删除时间日期 |细绳对象的删除时间。当且仅当该版本的对象已被删除时才会返回。
timeStorageClassUpdated日期 |细绳对象的存储类别上次更改的时间。
更新日期 |细绳对象元数据的修改时间。

存储.StorageObjectData.bucket

包含该对象的存储桶的名称。

签名:

bucket: string;

存储.StorageObjectData.cacheControl

对象数据的 Cache-Control 指令,匹配 [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2]。

签名:

cacheControl?: string;

storage.StorageObjectData.componentCount

组成该对象的底层组件的数量。组件是通过组合操作累积的。尝试设置此字段将导致错误。

签名:

componentCount?: number;

storage.StorageObjectData.contentDisposition

对象数据的内容处置,匹配 [https://tools.ietf.org/html/rfc6266][RFC 6266]。

签名:

contentDisposition?: string;

storage.StorageObjectData.contentEncoding

对象数据的内容编码,匹配 [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]

签名:

contentEncoding?: string;

storage.StorageObjectData.contentLanguage

对象数据的内容语言,匹配 [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2]。

签名:

contentLanguage?: string;

storage.StorageObjectData.contentType

对象数据的 Content-Type,匹配 [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5]。如果存储的对象没有 Content-Type,则它将作为application/octet-stream

签名:

contentType?: string;

存储.StorageObjectData.crc32c

CRC32c 校验和。有关使用 CRC32c 校验和的更多信息,请参阅 [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][哈希和 ETags:最佳实践]。

签名:

crc32c?: string;

storage.StorageObjectData.customerEncryption

客户提供的加密密钥的元数据(如果对象是通过此类密钥加密的)。

签名:

customerEncryption?: CustomerEncryption;

存储.StorageObjectData.etag

对象的 HTTP 1.1 实体标记。请参阅 [https://tools.ietf.org/html/rfc7232#section-2.3][RFC 7232 §2.3]。

签名:

etag?: string;

storage.StorageObjectData. Generation

该对象的内容生成。用于对象版本控制。尝试设置此字段将导致错误。

签名:

generation: number;

存储.StorageObjectData.id

对象的ID,包括存储桶名称、对象名称和生成编号。

签名:

id: string;

storage.StorageObjectData.kind

这是一种物品。对于对象,这始终是“storage#object”。

签名:

kind?: string;

存储.StorageObjectData.md5Hash

数据的 MD5 哈希值;根据 [https://tools.ietf.org/html/rfc4648#section-4][RFC 4648 §4] 使用 base64 进行编码。有关使用 MD5 哈希的更多信息,请参阅 [https://cloud.google.com/storage/docs/hashes-etags#_JSONAPI][哈希和 ETag:最佳实践]。

签名:

md5Hash?: string;

媒体下载链接。

签名:

mediaLink?: string;

存储.StorageObjectData.元数据

用户提供的元数据,以键/值对的形式。

签名:

metadata?: {
        [key: string]: string;
    };

storage.StorageObjectData.meta Generation

该对象在这一代的元数据版本。用于前提条件和检测元数据的更改。元世代编号仅在特定对象的特定世代的上下文中才有意义。

签名:

metageneration: number;

storage.StorageObjectData.name

对象的名称。

签名:

name: string;

到该对象的链接。

签名:

selfLink?: string;

存储.StorageObjectData.大小

对象数据的内容长度(以字节为单位),匹配 [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2]。

签名:

size: number;

storage.StorageObjectData.storageClass

对象的存储类别。

签名:

storageClass: string;

storage.StorageObjectData.timeCreated

对象的创建时间。尝试设置此字段将导致错误。

签名:

timeCreated?: Date | string;

storage.StorageObjectData.timeDeleted

对象的删除时间。当且仅当该版本的对象已被删除时才会返回。

签名:

timeDeleted?: Date | string;

storage.StorageObjectData.timeStorageClassUpdated

对象的存储类别上次更改的时间。

签名:

timeStorageClassUpdated?: Date | string;

存储.StorageObjectData.更新

对象元数据的修改时间。

签名:

updated?: Date | string;