Share via


BlockBlobClientLike interface

An interface compatible with Storage Blob's BlockBlobClient class.

Methods

setMetadata(Metadata, BlobSetMetadataOptions)

Sets user-defined metadata for the specified blob as one or more name-value pairs.

upload(RequestBodyType, number, BlockBlobUploadOptions)

Creates a new block blob, or updated the content of an existing block blob.

Method Details

setMetadata(Metadata, BlobSetMetadataOptions)

Sets user-defined metadata for the specified blob as one or more name-value pairs.

function setMetadata(metadata?: Metadata, options?: BlobSetMetadataOptions): Promise<ContainerSetMetadataResponse>

Parameters

metadata
Metadata

Returns

upload(RequestBodyType, number, BlockBlobUploadOptions)

Creates a new block blob, or updated the content of an existing block blob.

function upload(body: RequestBodyType, contentLength: number, options?: BlockBlobUploadOptions): Promise<BlockBlobUploadResponse>

Parameters

contentLength

number

Returns