Creates an instance of ShareClient. Creates an instance of ShareClient.
Account connection string or a SAS connection string of an Azure storage account.
[ Note - Account connection string can only be used in NODE.JS runtime. ]
Account connection string example -
DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net
SAS connection string example -
BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString
Share name.
Creates an instance of ShareClient.
A URL string pointing to Azure Storage file share, such as "https://myaccount.file.core.windows.net/share". You can append a SAS if using AnonymousCredential, such as "https://myaccount.file.core.windows.net/share?sasString".
Creates an instance of ShareClient.
A URL string pointing to Azure Storage file share, such as "https://myaccount.file.core.windows.net/share". You can append a SAS if using AnonymousCredential, such as "https://myaccount.file.core.windows.net/share?sasString".
Call newPipeline() to create a default pipeline, or provide a customized pipeline.
StorageClient is a reference to protocol layer operations entry, which is generated by AutoRest generator.
URL string value.
Gets the directory client for the root directory of this share. Note that the root directory always exists and cannot be deleted.
Creates a new share under the specified account. If the share with the same name already exists, the operation fails.
Response data for the Share Create operation.
Creates a new subdirectory under this share.
} Directory creation response data and the corresponding directory client.
Creates a new file or replaces a file under the root directory of this share. Note it only initializes the file with no content.
Specifies the maximum size in bytes for the file, up to 1 TB.
} File creation response data and the corresponding file client.
Creates a file permission (a security descriptor) at the share level. The created security descriptor can be used for the files/directories in the share.
File permission described in the SDDL
Creates a read-only snapshot of a share.
Response data for the Share Create Snapshot operation.
Marks the specified share for deletion. The share and any directories or files contained within it are later deleted during garbage collection.
Response data for the Share Delete operation.
Removes the specified empty sub directory under this share. Note that the directory must be empty before it can be deleted.
Directory deletion response data.
Removes a file under the root directory of this share from the storage account. When a file is successfully deleted, it is immediately removed from the storage account's index and is no longer accessible to clients. The file's data is later removed from the service during garbage collection.
Delete File will fail with status code 409 (Conflict) and error code SharingViolation if the file is open on an SMB client.
Delete File is not supported on a share snapshot, which is a read-only copy of a share. An attempt to perform this operation on a share snapshot will fail with 400 (InvalidQueryParameterValue)
Promise
Gets the permissions for the specified share. The permissions indicate whether share data may be accessed publicly.
WARNING: JavaScript Date will potential lost precision when parsing start and expiry string. For example, new Date("2018-12-31T03:44:23.8827891Z").toISOString() will get "2018-12-31T03:44:23.882Z".
Response data for the Share Get Access Policy operation.
Creates a ShareDirectoryClient object.
A directory name
The ShareDirectoryClient object for the given directory name.
Gets the Security Descriptor Definition Language (SDDL) for a given file permission key which indicates a security descriptor.
File permission key which indicates the security descriptor of the permission.
Returns all user-defined metadata and system properties for the specified share.
Response data for the Share Get Properties operation.
Retrieves statistics related to the share.
Response data for the Share Get Statistics operation.
Sets the permissions for the specified share. The permissions indicate whether directories or files in a share may be accessed publicly.
When you set permissions for a share, the existing permissions are replaced. If no shareAcl provided, the existing share ACL will be removed.
Response data for the Share Set Access Policy operation.
Sets one or more user-defined name-value pairs for the specified share.
If no option provided, or no metadata defined in the option parameter, the share metadata will be removed.
Response data for the Share Set Metadata operation.
Sets quota for the specified share.
Specifies the maximum size of the share in gigabytes
Response data for the Share Get Quota operation.
Creates a new ShareClient object identical to the source but with the specified snapshot timestamp. Provide "" will remove the snapshot and return a URL to the base share.
The snapshot timestamp.
A new ShareClient object identical to the source but with the specified snapshot timestamp
Generated using TypeDoc
A ShareClient represents a URL to the Azure Storage share allowing you to manipulate its directories and files.
ShareClient