Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BlobClient

Package version

Hierarchy

Index

Constructors

constructor

Properties

accountName

accountName: string

credential

credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential

Protected isHttps

isHttps: boolean

Protected storageClientContext

storageClientContext: StorageClientContext

url

url: string

Accessors

containerName

containerName:

name

name:

Methods

abortCopyFromURL

beginCopyFromURL

createSnapshot

delete

download

  • download(offset?: number, count: undefined | number, options?: BlobDownloadOptions): Promise<BlobDownloadResponseModel>
  • Parameters

    • Default value offset: number = 0
    • Optional count: undefined | number
    • Default value options: BlobDownloadOptions = {}

    Returns Promise<BlobDownloadResponseModel>

downloadToBuffer

  • downloadToBuffer(offset: undefined | number, count: undefined | number, options: BlobDownloadToBufferOptions): Promise<Buffer>
  • downloadToBuffer(buffer: Buffer, offset: undefined | number, count: undefined | number, options: BlobDownloadToBufferOptions): Promise<Buffer>

downloadToFile

  • downloadToFile(filePath: string, offset?: number, count: undefined | number, options?: BlobDownloadOptions): Promise<BlobDownloadResponseModel>
  • Parameters

    • filePath: string
    • Default value offset: number = 0
    • Optional count: undefined | number
    • Default value options: BlobDownloadOptions = {}

    Returns Promise<BlobDownloadResponseModel>

    The response data for blob download operation, but with readableStreamBody set to undefined since its content is already read and written into a local file at the specified path.

exists

getAppendBlobClient

getBlobLeaseClient

  • Parameters

    • Optional proposeLeaseId: undefined | string

    Returns BlobLeaseClient

    A new BlobLeaseClient object for managing leases on the blob.

getBlockBlobClient

getPageBlobClient

getProperties

setAccessTier

setHTTPHeaders

setMetadata

syncCopyFromURL

undelete

withSnapshot

  • Parameters

    • snapshot: string

    Returns BlobClient

    A new BlobClient object identical to the source but with the specified snapshot timestamp

Generated using TypeDoc