你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FileCreateIfNotExistsOptions interface

每个远程作通用选项的接口。

扩展

继承属性

abortSignal
acl

自选。 对文件和目录的 POSIX 访问控制权限。

customerProvidedKey

客户提供的密钥信息。

encryptionContext

自选。 指定要在文件上设置的加密上下文。

expiresOn

自选。 用于计划删除路径的选项。 数字值指示文件删除前的持续时间(以毫秒为单位)。 日期值指示要为路径删除的时间设置的时间。 不适用于目录。

group

自选。 Blob 或目录的拥有组。

leaseDuration

获取租约需要租约持续时间,并指定租约持续时间(以秒为单位)。 租约持续时间必须介于 15 到 60 秒之间,或 -1 无限租约。

metadata
owner

自选。 Blob 或目录的所有者。

pathHttpHeaders
permissions
proposedLeaseId

建议的租约 ID,采用 GUID 字符串格式。 如果建议的租约 ID 格式不正确,Blob 服务将返回 400 (无效请求)。 有关有效 GUID 字符串格式的列表,请参阅 Guid 构造函数(字符串)。

tracingOptions
umask

继承属性详细信息

abortSignal

abortSignal?: AbortSignalLike

属性值

继承自 PathCreateIfNotExistsOptions.abortSignal

acl

自选。 对文件和目录的 POSIX 访问控制权限。

acl?: PathAccessControlItem[]

属性值

继承自PathCreateIfNotExistsOptions.acl

customerProvidedKey

客户提供的密钥信息。

customerProvidedKey?: CpkInfo

属性值

继承自PathCreateIfNotExistsOptions.customerProvidedKey

encryptionContext

自选。 指定要在文件上设置的加密上下文。

encryptionContext?: string

属性值

string

继承自 PathCreateIfNotExistsOptions.encryptionContext

expiresOn

自选。 用于计划删除路径的选项。 数字值指示文件删除前的持续时间(以毫秒为单位)。 日期值指示要为路径删除的时间设置的时间。 不适用于目录。

expiresOn?: number | Date

属性值

number | Date

继承自 PathCreateIfNotExistsOptions.expiresOn

group

自选。 Blob 或目录的拥有组。

group?: string

属性值

string

继承自PathCreateIfNotExistsOptions.group

leaseDuration

获取租约需要租约持续时间,并指定租约持续时间(以秒为单位)。 租约持续时间必须介于 15 到 60 秒之间,或 -1 无限租约。

leaseDuration?: number

属性值

number

继承自 PathCreateIfNotExistsOptions.leaseDuration

metadata

metadata?: Metadata

属性值

继承自 PathCreateIfNotExistsOptions.metadata

owner

自选。 Blob 或目录的所有者。

owner?: string

属性值

string

继承自 PathCreateIfNotExistsOptions.owner

pathHttpHeaders

pathHttpHeaders?: PathCreateHttpHeaders

属性值

继承自PathCreateIfNotExistsOptions.pathHttpHeaders

permissions

permissions?: string

属性值

string

继承自PathCreateIfNotExistsOptions.permissions

proposedLeaseId

建议的租约 ID,采用 GUID 字符串格式。 如果建议的租约 ID 格式不正确,Blob 服务将返回 400 (无效请求)。 有关有效 GUID 字符串格式的列表,请参阅 Guid 构造函数(字符串)。

proposedLeaseId?: string

属性值

string

继承自 PathCreateIfNotExistsOptions.proposedLeaseId

tracingOptions

tracingOptions?: OperationTracingOptions

属性值

继承自PathCreateIfNotExistsOptions.tracingOptions

umask

umask?: string

属性值

string

继承自 PathCreateIfNotExistsOptions.umask