Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Path

Package version

Class representing a Path.

Hierarchy

  • Path

Index

Constructors

constructor

Properties

Optional contentLength

contentLength: undefined | number

Optional createdOn

createdOn: Date

Creation time of the path.

Optional creationTime

creationTime: undefined | string

Optional encryptionScope

encryptionScope: undefined | string

The name of the encryption scope under which the blob is encrypted. The name of the encryption scope under which the blob is encrypted.

Optional etag

etag: undefined | string

Optional expiresOn

expiresOn: Date

Expiry time of the path.

Optional expiryTime

expiryTime: undefined | string

Optional group

group: undefined | string

Optional isDirectory

isDirectory: undefined | false | true

Optional lastModified

lastModified: Date

Optional name

name: undefined | string

Optional owner

owner: undefined | string

Optional permissions

permissions: PathPermissions

Methods

appendData

create

delete

flushData

getProperties

lease

  • Create and manage a lease to restrict write and delete access to the path. This operation supports conditional HTTP requests. For more information, see Specifying Conditional Headers for Blob Service Operations.

    Parameters

    • xMsLeaseAction: PathLeaseAction

      There are five lease actions: "acquire", "break", "change", "renew", and "release". Use "acquire" and specify the "x-ms-proposed-lease-id" and "x-ms-lease-duration" to acquire a new lease. Use "break" to break an existing lease. When a lease is broken, the lease break period is allowed to elapse, during which time no lease operation except break and release can be performed on the file. When a lease is successfully broken, the response indicates the interval in seconds until a new lease can be acquired. Use "change" and specify the current lease ID in "x-ms-lease-id" and the new lease ID in "x-ms-proposed-lease-id" to change the lease ID of an active lease. Use "renew" and specify the "x-ms-lease-id" to renew an existing lease. Use "release" and specify the "x-ms-lease-id" to release a lease.

    • Optional options: PathLeaseOptionalParams

      The options parameters.

    Returns Promise<PathLeaseResponse>

read

setAccessControl

setAccessControlRecursive

setExpiry

undelete

update

  • Uploads data to be appended to a file, flushes (writes) previously uploaded data to a file, sets properties for a file or directory, or sets access control for a file or directory. Data can only be appended to a file. Concurrent writes to the same file using multiple clients are not supported. This operation supports conditional HTTP requests. For more information, see Specifying Conditional Headers for Blob Service Operations.

    Parameters

    • action: PathUpdateAction

      The action must be "append" to upload data to be appended to a file, "flush" to flush previously uploaded data to a file, "setProperties" to set the properties of a file or directory, "setAccessControl" to set the owner, group, permissions, or access control list for a file or directory, or "setAccessControlRecursive" to set the access control list for a directory recursively. Note that Hierarchical Namespace must be enabled for the account in order to use access control. Also note that the Access Control List (ACL) includes permissions for the owner, owning group, and others, so the x-ms-permissions and x-ms-acl request headers are mutually exclusive.

    • mode: PathSetAccessControlRecursiveMode

      Mode "set" sets POSIX access control rights on files and directories, "modify" modifies one or more POSIX access control rights that pre-exist on files and directories, "remove" removes one or more POSIX access control rights that were present earlier on files and directories

    • body: coreHttp.HttpRequestBody

      Initial data

    • Optional options: PathUpdateOptionalParams

      The options parameters.

    Returns Promise<PathUpdateResponse>

Generated using TypeDoc