@azure/storage-file-datalake 12.27.0-beta.1 → 12.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/DataLakeFileSystemClient.d.ts +13 -13
- package/dist/browser/DataLakeFileSystemClient.js +136 -93
- package/dist/browser/DataLakeFileSystemClient.js.map +1 -1
- package/dist/browser/DataLakeLeaseClient.js +1 -0
- package/dist/browser/DataLakeLeaseClient.js.map +1 -1
- package/dist/browser/DataLakeServiceClient.d.ts +6 -6
- package/dist/browser/DataLakeServiceClient.js +28 -11
- package/dist/browser/DataLakeServiceClient.js.map +1 -1
- package/dist/browser/Pipeline.js +24 -15
- package/dist/browser/Pipeline.js.map +1 -1
- package/dist/browser/StorageClient.js +43 -3
- package/dist/browser/StorageClient.js.map +1 -1
- package/dist/browser/StorageContextClient.js +2 -3
- package/dist/browser/StorageContextClient.js.map +1 -1
- package/dist/browser/clients.d.ts +33 -33
- package/dist/browser/clients.js +269 -89
- package/dist/browser/clients.js.map +1 -1
- package/dist/browser/generated/src/operations/fileSystemOperations.js +1 -0
- package/dist/browser/generated/src/operations/fileSystemOperations.js.map +1 -1
- package/dist/browser/generated/src/operations/pathOperations.js +1 -0
- package/dist/browser/generated/src/operations/pathOperations.js.map +1 -1
- package/dist/browser/generated/src/operations/service.js +1 -0
- package/dist/browser/generated/src/operations/service.js.map +1 -1
- package/dist/browser/generated/src/storageClient.js +15 -4
- package/dist/browser/generated/src/storageClient.js.map +1 -1
- package/dist/browser/index-browser.d.mts.map +1 -1
- package/dist/browser/index-browser.mjs.map +1 -1
- package/dist/browser/index.d.ts +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/models.d.ts +1 -1
- package/dist/browser/models.js.map +1 -1
- package/dist/browser/sas/AccountSASPermissions.d.ts +1 -1
- package/dist/browser/sas/AccountSASPermissions.js +34 -36
- package/dist/browser/sas/AccountSASPermissions.js.map +1 -1
- package/dist/browser/sas/AccountSASResourceTypes.d.ts +1 -1
- package/dist/browser/sas/AccountSASResourceTypes.js +13 -15
- package/dist/browser/sas/AccountSASResourceTypes.js.map +1 -1
- package/dist/browser/sas/AccountSASServices.js +16 -18
- package/dist/browser/sas/AccountSASServices.js.map +1 -1
- package/dist/browser/sas/AccountSASSignatureValues.d.ts +3 -3
- package/dist/browser/sas/AccountSASSignatureValues.js +1 -1
- package/dist/browser/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/browser/sas/DataLakeSASPermissions.js +39 -41
- package/dist/browser/sas/DataLakeSASPermissions.js.map +1 -1
- package/dist/browser/sas/DataLakeSASSignatureValues.d.ts +1 -1
- package/dist/browser/sas/DataLakeSASSignatureValues.js +4 -3
- package/dist/browser/sas/DataLakeSASSignatureValues.js.map +1 -1
- package/dist/browser/sas/DirectorySASPermissions.d.ts +1 -1
- package/dist/browser/sas/DirectorySASPermissions.js +44 -46
- package/dist/browser/sas/DirectorySASPermissions.js.map +1 -1
- package/dist/browser/sas/FileSystemSASPermissions.d.ts +1 -1
- package/dist/browser/sas/FileSystemSASPermissions.js +44 -46
- package/dist/browser/sas/FileSystemSASPermissions.js.map +1 -1
- package/dist/browser/sas/SASQueryParameters.d.ts +2 -2
- package/dist/browser/sas/SASQueryParameters.js +131 -2
- package/dist/browser/sas/SASQueryParameters.js.map +1 -1
- package/dist/browser/transforms.js +8 -1
- package/dist/browser/transforms.js.map +1 -1
- package/dist/browser/utils/Batch.js +29 -21
- package/dist/browser/utils/Batch.js.map +1 -1
- package/dist/browser/utils/BufferScheduler.js +70 -44
- package/dist/browser/utils/BufferScheduler.js.map +1 -1
- package/dist/browser/utils/DataLakeAclChangeFailedError.js +8 -0
- package/dist/browser/utils/DataLakeAclChangeFailedError.js.map +1 -1
- package/dist/browser/utils/PathClientInternal.js +4 -0
- package/dist/browser/utils/PathClientInternal.js.map +1 -1
- package/dist/browser/utils/constants.d.ts.map +1 -1
- package/dist/browser/utils/constants.js +1 -1
- package/dist/browser/utils/constants.js.map +1 -1
- package/dist/browser/utils/utils.common.d.ts +2 -2
- package/dist/browser/utils/utils.common.js +5 -7
- package/dist/browser/utils/utils.common.js.map +1 -1
- package/dist/commonjs/DataLakeFileSystemClient.d.ts +13 -13
- package/dist/commonjs/DataLakeFileSystemClient.js +136 -93
- package/dist/commonjs/DataLakeFileSystemClient.js.map +1 -1
- package/dist/commonjs/DataLakeLeaseClient.js +1 -0
- package/dist/commonjs/DataLakeLeaseClient.js.map +1 -1
- package/dist/commonjs/DataLakeServiceClient.d.ts +6 -6
- package/dist/commonjs/DataLakeServiceClient.js +28 -11
- package/dist/commonjs/DataLakeServiceClient.js.map +1 -1
- package/dist/commonjs/Pipeline.js +32 -23
- package/dist/commonjs/Pipeline.js.map +1 -1
- package/dist/commonjs/StorageClient.js +43 -3
- package/dist/commonjs/StorageClient.js.map +1 -1
- package/dist/commonjs/StorageContextClient.js +2 -3
- package/dist/commonjs/StorageContextClient.js.map +1 -1
- package/dist/commonjs/clients.d.ts +33 -33
- package/dist/commonjs/clients.js +269 -89
- package/dist/commonjs/clients.js.map +1 -1
- package/dist/commonjs/credentials/UserDelegationKeyCredential.d.ts +1 -1
- package/dist/commonjs/credentials/UserDelegationKeyCredential.js +13 -1
- package/dist/commonjs/credentials/UserDelegationKeyCredential.js.map +1 -1
- package/dist/commonjs/generated/src/operations/fileSystemOperations.js +1 -0
- package/dist/commonjs/generated/src/operations/fileSystemOperations.js.map +1 -1
- package/dist/commonjs/generated/src/operations/pathOperations.js +1 -0
- package/dist/commonjs/generated/src/operations/pathOperations.js.map +1 -1
- package/dist/commonjs/generated/src/operations/service.js +1 -0
- package/dist/commonjs/generated/src/operations/service.js.map +1 -1
- package/dist/commonjs/generated/src/storageClient.js +15 -4
- package/dist/commonjs/generated/src/storageClient.js.map +1 -1
- package/dist/commonjs/models.d.ts +1 -1
- package/dist/commonjs/models.js.map +1 -1
- package/dist/commonjs/sas/AccountSASPermissions.d.ts +1 -1
- package/dist/commonjs/sas/AccountSASPermissions.js +34 -36
- package/dist/commonjs/sas/AccountSASPermissions.js.map +1 -1
- package/dist/commonjs/sas/AccountSASResourceTypes.d.ts +1 -1
- package/dist/commonjs/sas/AccountSASResourceTypes.js +13 -15
- package/dist/commonjs/sas/AccountSASResourceTypes.js.map +1 -1
- package/dist/commonjs/sas/AccountSASServices.js +16 -18
- package/dist/commonjs/sas/AccountSASServices.js.map +1 -1
- package/dist/commonjs/sas/AccountSASSignatureValues.d.ts +3 -3
- package/dist/commonjs/sas/AccountSASSignatureValues.js +1 -1
- package/dist/commonjs/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/commonjs/sas/DataLakeSASPermissions.js +39 -41
- package/dist/commonjs/sas/DataLakeSASPermissions.js.map +1 -1
- package/dist/commonjs/sas/DataLakeSASSignatureValues.d.ts +1 -1
- package/dist/commonjs/sas/DataLakeSASSignatureValues.js +4 -3
- package/dist/commonjs/sas/DataLakeSASSignatureValues.js.map +1 -1
- package/dist/commonjs/sas/DirectorySASPermissions.d.ts +1 -1
- package/dist/commonjs/sas/DirectorySASPermissions.js +44 -46
- package/dist/commonjs/sas/DirectorySASPermissions.js.map +1 -1
- package/dist/commonjs/sas/FileSystemSASPermissions.d.ts +1 -1
- package/dist/commonjs/sas/FileSystemSASPermissions.js +44 -46
- package/dist/commonjs/sas/FileSystemSASPermissions.js.map +1 -1
- package/dist/commonjs/sas/SASQueryParameters.d.ts +2 -2
- package/dist/commonjs/sas/SASQueryParameters.js +131 -2
- package/dist/commonjs/sas/SASQueryParameters.js.map +1 -1
- package/dist/commonjs/transforms.js +8 -1
- package/dist/commonjs/transforms.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/commonjs/utils/Batch.js +29 -21
- package/dist/commonjs/utils/Batch.js.map +1 -1
- package/dist/commonjs/utils/BufferScheduler.js +70 -44
- package/dist/commonjs/utils/BufferScheduler.js.map +1 -1
- package/dist/commonjs/utils/DataLakeAclChangeFailedError.js +8 -0
- package/dist/commonjs/utils/DataLakeAclChangeFailedError.js.map +1 -1
- package/dist/commonjs/utils/PathClientInternal.js +4 -0
- package/dist/commonjs/utils/PathClientInternal.js.map +1 -1
- package/dist/commonjs/utils/constants.d.ts.map +1 -1
- package/dist/commonjs/utils/constants.js +1 -1
- package/dist/commonjs/utils/constants.js.map +1 -1
- package/dist/commonjs/utils/utils.common.d.ts +2 -2
- package/dist/commonjs/utils/utils.common.js +5 -7
- package/dist/commonjs/utils/utils.common.js.map +1 -1
- package/dist/commonjs/utils/utils.d.ts +1 -1
- package/dist/commonjs/utils/utils.d.ts.map +1 -1
- package/dist/commonjs/utils/utils.js +4 -4
- package/dist/commonjs/utils/utils.js.map +1 -1
- package/dist/esm/DataLakeFileSystemClient.d.ts +13 -13
- package/dist/esm/DataLakeFileSystemClient.js +136 -93
- package/dist/esm/DataLakeFileSystemClient.js.map +1 -1
- package/dist/esm/DataLakeLeaseClient.js +1 -0
- package/dist/esm/DataLakeLeaseClient.js.map +1 -1
- package/dist/esm/DataLakeServiceClient.d.ts +6 -6
- package/dist/esm/DataLakeServiceClient.js +28 -11
- package/dist/esm/DataLakeServiceClient.js.map +1 -1
- package/dist/esm/Pipeline.js +24 -15
- package/dist/esm/Pipeline.js.map +1 -1
- package/dist/esm/StorageClient.js +43 -3
- package/dist/esm/StorageClient.js.map +1 -1
- package/dist/esm/StorageContextClient.js +2 -3
- package/dist/esm/StorageContextClient.js.map +1 -1
- package/dist/esm/clients.d.ts +33 -33
- package/dist/esm/clients.js +269 -89
- package/dist/esm/clients.js.map +1 -1
- package/dist/esm/credentials/UserDelegationKeyCredential.d.ts +1 -1
- package/dist/esm/credentials/UserDelegationKeyCredential.js +13 -1
- package/dist/esm/credentials/UserDelegationKeyCredential.js.map +1 -1
- package/dist/esm/generated/src/operations/fileSystemOperations.js +1 -0
- package/dist/esm/generated/src/operations/fileSystemOperations.js.map +1 -1
- package/dist/esm/generated/src/operations/pathOperations.js +1 -0
- package/dist/esm/generated/src/operations/pathOperations.js.map +1 -1
- package/dist/esm/generated/src/operations/service.js +1 -0
- package/dist/esm/generated/src/operations/service.js.map +1 -1
- package/dist/esm/generated/src/storageClient.js +15 -4
- package/dist/esm/generated/src/storageClient.js.map +1 -1
- package/dist/esm/models.d.ts +1 -1
- package/dist/esm/models.js.map +1 -1
- package/dist/esm/sas/AccountSASPermissions.d.ts +1 -1
- package/dist/esm/sas/AccountSASPermissions.js +34 -36
- package/dist/esm/sas/AccountSASPermissions.js.map +1 -1
- package/dist/esm/sas/AccountSASResourceTypes.d.ts +1 -1
- package/dist/esm/sas/AccountSASResourceTypes.js +13 -15
- package/dist/esm/sas/AccountSASResourceTypes.js.map +1 -1
- package/dist/esm/sas/AccountSASServices.js +16 -18
- package/dist/esm/sas/AccountSASServices.js.map +1 -1
- package/dist/esm/sas/AccountSASSignatureValues.d.ts +3 -3
- package/dist/esm/sas/AccountSASSignatureValues.js +1 -1
- package/dist/esm/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/esm/sas/DataLakeSASPermissions.js +39 -41
- package/dist/esm/sas/DataLakeSASPermissions.js.map +1 -1
- package/dist/esm/sas/DataLakeSASSignatureValues.d.ts +1 -1
- package/dist/esm/sas/DataLakeSASSignatureValues.js +4 -3
- package/dist/esm/sas/DataLakeSASSignatureValues.js.map +1 -1
- package/dist/esm/sas/DirectorySASPermissions.d.ts +1 -1
- package/dist/esm/sas/DirectorySASPermissions.js +44 -46
- package/dist/esm/sas/DirectorySASPermissions.js.map +1 -1
- package/dist/esm/sas/FileSystemSASPermissions.d.ts +1 -1
- package/dist/esm/sas/FileSystemSASPermissions.js +44 -46
- package/dist/esm/sas/FileSystemSASPermissions.js.map +1 -1
- package/dist/esm/sas/SASQueryParameters.d.ts +2 -2
- package/dist/esm/sas/SASQueryParameters.js +131 -2
- package/dist/esm/sas/SASQueryParameters.js.map +1 -1
- package/dist/esm/transforms.js +8 -1
- package/dist/esm/transforms.js.map +1 -1
- package/dist/esm/utils/Batch.js +29 -21
- package/dist/esm/utils/Batch.js.map +1 -1
- package/dist/esm/utils/BufferScheduler.js +70 -44
- package/dist/esm/utils/BufferScheduler.js.map +1 -1
- package/dist/esm/utils/DataLakeAclChangeFailedError.js +8 -0
- package/dist/esm/utils/DataLakeAclChangeFailedError.js.map +1 -1
- package/dist/esm/utils/PathClientInternal.js +4 -0
- package/dist/esm/utils/PathClientInternal.js.map +1 -1
- package/dist/esm/utils/constants.d.ts.map +1 -1
- package/dist/esm/utils/constants.js +1 -1
- package/dist/esm/utils/constants.js.map +1 -1
- package/dist/esm/utils/utils.common.d.ts +2 -2
- package/dist/esm/utils/utils.common.js +5 -7
- package/dist/esm/utils/utils.common.js.map +1 -1
- package/dist/esm/utils/utils.d.ts +1 -1
- package/dist/esm/utils/utils.d.ts.map +1 -1
- package/dist/esm/utils/utils.js +2 -2
- package/dist/esm/utils/utils.js.map +1 -1
- package/dist/react-native/DataLakeFileSystemClient.d.ts +13 -13
- package/dist/react-native/DataLakeFileSystemClient.js +136 -93
- package/dist/react-native/DataLakeFileSystemClient.js.map +1 -1
- package/dist/react-native/DataLakeLeaseClient.js +1 -0
- package/dist/react-native/DataLakeLeaseClient.js.map +1 -1
- package/dist/react-native/DataLakeServiceClient.d.ts +6 -6
- package/dist/react-native/DataLakeServiceClient.js +28 -11
- package/dist/react-native/DataLakeServiceClient.js.map +1 -1
- package/dist/react-native/Pipeline.js +24 -15
- package/dist/react-native/Pipeline.js.map +1 -1
- package/dist/react-native/StorageClient.js +43 -3
- package/dist/react-native/StorageClient.js.map +1 -1
- package/dist/react-native/StorageContextClient.js +2 -3
- package/dist/react-native/StorageContextClient.js.map +1 -1
- package/dist/react-native/clients.d.ts +33 -33
- package/dist/react-native/clients.js +269 -89
- package/dist/react-native/clients.js.map +1 -1
- package/dist/react-native/credentials/UserDelegationKeyCredential.d.ts +1 -1
- package/dist/react-native/credentials/UserDelegationKeyCredential.js +13 -1
- package/dist/react-native/credentials/UserDelegationKeyCredential.js.map +1 -1
- package/dist/react-native/generated/src/operations/fileSystemOperations.js +1 -0
- package/dist/react-native/generated/src/operations/fileSystemOperations.js.map +1 -1
- package/dist/react-native/generated/src/operations/pathOperations.js +1 -0
- package/dist/react-native/generated/src/operations/pathOperations.js.map +1 -1
- package/dist/react-native/generated/src/operations/service.js +1 -0
- package/dist/react-native/generated/src/operations/service.js.map +1 -1
- package/dist/react-native/generated/src/storageClient.js +15 -4
- package/dist/react-native/generated/src/storageClient.js.map +1 -1
- package/dist/react-native/models.d.ts +1 -1
- package/dist/react-native/models.js.map +1 -1
- package/dist/react-native/sas/AccountSASPermissions.d.ts +1 -1
- package/dist/react-native/sas/AccountSASPermissions.js +34 -36
- package/dist/react-native/sas/AccountSASPermissions.js.map +1 -1
- package/dist/react-native/sas/AccountSASResourceTypes.d.ts +1 -1
- package/dist/react-native/sas/AccountSASResourceTypes.js +13 -15
- package/dist/react-native/sas/AccountSASResourceTypes.js.map +1 -1
- package/dist/react-native/sas/AccountSASServices.js +16 -18
- package/dist/react-native/sas/AccountSASServices.js.map +1 -1
- package/dist/react-native/sas/AccountSASSignatureValues.d.ts +3 -3
- package/dist/react-native/sas/AccountSASSignatureValues.js +1 -1
- package/dist/react-native/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/react-native/sas/DataLakeSASPermissions.js +39 -41
- package/dist/react-native/sas/DataLakeSASPermissions.js.map +1 -1
- package/dist/react-native/sas/DataLakeSASSignatureValues.d.ts +1 -1
- package/dist/react-native/sas/DataLakeSASSignatureValues.js +4 -3
- package/dist/react-native/sas/DataLakeSASSignatureValues.js.map +1 -1
- package/dist/react-native/sas/DirectorySASPermissions.d.ts +1 -1
- package/dist/react-native/sas/DirectorySASPermissions.js +44 -46
- package/dist/react-native/sas/DirectorySASPermissions.js.map +1 -1
- package/dist/react-native/sas/FileSystemSASPermissions.d.ts +1 -1
- package/dist/react-native/sas/FileSystemSASPermissions.js +44 -46
- package/dist/react-native/sas/FileSystemSASPermissions.js.map +1 -1
- package/dist/react-native/sas/SASQueryParameters.d.ts +2 -2
- package/dist/react-native/sas/SASQueryParameters.js +131 -2
- package/dist/react-native/sas/SASQueryParameters.js.map +1 -1
- package/dist/react-native/transforms.js +8 -1
- package/dist/react-native/transforms.js.map +1 -1
- package/dist/react-native/utils/Batch.js +29 -21
- package/dist/react-native/utils/Batch.js.map +1 -1
- package/dist/react-native/utils/BufferScheduler.js +70 -44
- package/dist/react-native/utils/BufferScheduler.js.map +1 -1
- package/dist/react-native/utils/DataLakeAclChangeFailedError.js +8 -0
- package/dist/react-native/utils/DataLakeAclChangeFailedError.js.map +1 -1
- package/dist/react-native/utils/PathClientInternal.js +4 -0
- package/dist/react-native/utils/PathClientInternal.js.map +1 -1
- package/dist/react-native/utils/constants.d.ts.map +1 -1
- package/dist/react-native/utils/constants.js +1 -1
- package/dist/react-native/utils/constants.js.map +1 -1
- package/dist/react-native/utils/utils.common.d.ts +2 -2
- package/dist/react-native/utils/utils.common.js +5 -7
- package/dist/react-native/utils/utils.common.js.map +1 -1
- package/dist/react-native/utils/utils.d.ts +1 -1
- package/dist/react-native/utils/utils.d.ts.map +1 -1
- package/dist/react-native/utils/utils.js +2 -2
- package/dist/react-native/utils/utils.js.map +1 -1
- package/package.json +8 -8
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
2
1
|
import { ContainerClient } from "@azure/storage-blob";
|
|
3
2
|
import { isPipelineLike, newPipeline } from "./Pipeline.js";
|
|
4
3
|
import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential.js";
|
|
@@ -18,6 +17,18 @@ import { PathClientInternal } from "./utils/PathClientInternal.js";
|
|
|
18
17
|
* allowing you to manipulate its directories and files.
|
|
19
18
|
*/
|
|
20
19
|
export class DataLakeFileSystemClient extends StorageClient {
|
|
20
|
+
/**
|
|
21
|
+
* fileSystemContext provided by protocol layer.
|
|
22
|
+
*/
|
|
23
|
+
fileSystemContext;
|
|
24
|
+
/**
|
|
25
|
+
* fileSystemContext provided by protocol layer.
|
|
26
|
+
*/
|
|
27
|
+
fileSystemContextToBlobEndpoint;
|
|
28
|
+
/**
|
|
29
|
+
* blobContainerClient provided by `@azure/storage-blob` package.
|
|
30
|
+
*/
|
|
31
|
+
blobContainerClient;
|
|
21
32
|
constructor(url, credentialOrPipeline,
|
|
22
33
|
// Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.
|
|
23
34
|
/* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */
|
|
@@ -80,26 +91,36 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
80
91
|
* Creates a new file system under the specified account. If the file system with
|
|
81
92
|
* the same name already exists, the operation fails.
|
|
82
93
|
*
|
|
83
|
-
* @see https://learn.microsoft.com/
|
|
94
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-container
|
|
84
95
|
*
|
|
85
96
|
* @param options - Optional. Options when creating file system.
|
|
86
97
|
*/
|
|
87
98
|
async create(options = {}) {
|
|
88
99
|
return tracingClient.withSpan("DataLakeFileSystemClient-create", options, async (updatedOptions) => {
|
|
89
|
-
return this.blobContainerClient.create(
|
|
100
|
+
return this.blobContainerClient.create({
|
|
101
|
+
...options,
|
|
102
|
+
access: toContainerPublicAccessType(options.access),
|
|
103
|
+
tracingOptions: updatedOptions.tracingOptions,
|
|
104
|
+
containerEncryptionScope: options.fileSystemEncryptionScope,
|
|
105
|
+
});
|
|
90
106
|
});
|
|
91
107
|
}
|
|
92
108
|
/**
|
|
93
109
|
* Creates a new file system under the specified account. If the file system with
|
|
94
110
|
* the same name already exists, it is not changed.
|
|
95
111
|
*
|
|
96
|
-
* @see https://learn.microsoft.com/
|
|
112
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/create-container
|
|
97
113
|
*
|
|
98
114
|
* @param options -
|
|
99
115
|
*/
|
|
100
116
|
async createIfNotExists(options = {}) {
|
|
101
117
|
return tracingClient.withSpan("DataLakeFileSystemClient-createIfNotExists", options, async (updatedOptions) => {
|
|
102
|
-
return this.blobContainerClient.createIfNotExists(
|
|
118
|
+
return this.blobContainerClient.createIfNotExists({
|
|
119
|
+
...options,
|
|
120
|
+
access: toContainerPublicAccessType(options.access),
|
|
121
|
+
containerEncryptionScope: options.fileSystemEncryptionScope,
|
|
122
|
+
tracingOptions: updatedOptions.tracingOptions,
|
|
123
|
+
});
|
|
103
124
|
});
|
|
104
125
|
}
|
|
105
126
|
/**
|
|
@@ -119,19 +140,22 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
119
140
|
/**
|
|
120
141
|
* Delete current file system.
|
|
121
142
|
*
|
|
122
|
-
* @see https://learn.microsoft.com/
|
|
143
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-container
|
|
123
144
|
*
|
|
124
145
|
* @param options - Optional. Options when deleting file system.
|
|
125
146
|
*/
|
|
126
147
|
async delete(options = {}) {
|
|
127
148
|
return tracingClient.withSpan("DataLakeFileSystemClient-delete", options, async (updatedOptions) => {
|
|
128
|
-
return this.blobContainerClient.delete(
|
|
149
|
+
return this.blobContainerClient.delete({
|
|
150
|
+
...options,
|
|
151
|
+
tracingOptions: updatedOptions.tracingOptions,
|
|
152
|
+
});
|
|
129
153
|
});
|
|
130
154
|
}
|
|
131
155
|
/**
|
|
132
156
|
* Delete current file system if it exists.
|
|
133
157
|
*
|
|
134
|
-
* @see https://learn.microsoft.com/
|
|
158
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/delete-container
|
|
135
159
|
*
|
|
136
160
|
* @param options -
|
|
137
161
|
*/
|
|
@@ -149,13 +173,16 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
149
173
|
* the `listFileSystems` method of {@link DataLakeServiceClient} using the `includeMetadata` option, which
|
|
150
174
|
* will retain their original casing.
|
|
151
175
|
*
|
|
152
|
-
* @see https://learn.microsoft.com/
|
|
176
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-container-properties
|
|
153
177
|
*
|
|
154
178
|
* @param options - Optional. Options when getting file system properties.
|
|
155
179
|
*/
|
|
156
180
|
async getProperties(options = {}) {
|
|
157
181
|
return tracingClient.withSpan("DataLakeFileSystemClient-getProperties", options, async (updatedOptions) => {
|
|
158
|
-
const rawResponse = await this.blobContainerClient.getProperties(
|
|
182
|
+
const rawResponse = await this.blobContainerClient.getProperties({
|
|
183
|
+
...options,
|
|
184
|
+
tracingOptions: updatedOptions.tracingOptions,
|
|
185
|
+
});
|
|
159
186
|
// Transfer and rename blobPublicAccess to publicAccess
|
|
160
187
|
const response = rawResponse;
|
|
161
188
|
response.publicAccess = toPublicAccessType(rawResponse.blobPublicAccess);
|
|
@@ -171,7 +198,7 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
171
198
|
* If no option provided, or no metadata defined in the parameter, the file system
|
|
172
199
|
* metadata will be removed.
|
|
173
200
|
*
|
|
174
|
-
* @see https://learn.microsoft.com/
|
|
201
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-container-metadata
|
|
175
202
|
*
|
|
176
203
|
* @param metadata - Replace existing metadata with this value.
|
|
177
204
|
* If no value provided the existing metadata will be removed.
|
|
@@ -179,7 +206,10 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
179
206
|
*/
|
|
180
207
|
async setMetadata(metadata, options = {}) {
|
|
181
208
|
return tracingClient.withSpan("DataLakeFileSystemClient-setMetadata", options, async (updatedOptions) => {
|
|
182
|
-
return this.blobContainerClient.setMetadata(metadata,
|
|
209
|
+
return this.blobContainerClient.setMetadata(metadata, {
|
|
210
|
+
...options,
|
|
211
|
+
tracingOptions: updatedOptions.tracingOptions,
|
|
212
|
+
});
|
|
183
213
|
});
|
|
184
214
|
}
|
|
185
215
|
/**
|
|
@@ -189,13 +219,16 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
189
219
|
* WARNING: JavaScript Date will potentially lose precision when parsing startsOn and expiresOn strings.
|
|
190
220
|
* For example, new Date("2018-12-31T03:44:23.8827891Z").toISOString() will get "2018-12-31T03:44:23.882Z".
|
|
191
221
|
*
|
|
192
|
-
* @see https://learn.microsoft.com/
|
|
222
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-container-acl
|
|
193
223
|
*
|
|
194
224
|
* @param options - Optional. Options when getting file system access policy.
|
|
195
225
|
*/
|
|
196
226
|
async getAccessPolicy(options = {}) {
|
|
197
227
|
return tracingClient.withSpan("DataLakeFileSystemClient-getAccessPolicy", options, async (updatedOptions) => {
|
|
198
|
-
const rawResponse = await this.blobContainerClient.getAccessPolicy(
|
|
228
|
+
const rawResponse = await this.blobContainerClient.getAccessPolicy({
|
|
229
|
+
...options,
|
|
230
|
+
tracingOptions: updatedOptions.tracingOptions,
|
|
231
|
+
});
|
|
199
232
|
// Transfer and rename blobPublicAccess to publicAccess
|
|
200
233
|
const response = rawResponse;
|
|
201
234
|
response.publicAccess = toPublicAccessType(rawResponse.blobPublicAccess);
|
|
@@ -213,7 +246,7 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
213
246
|
* If no access or containerAcl provided, the existing file system ACL will be
|
|
214
247
|
* removed.
|
|
215
248
|
*
|
|
216
|
-
* @see https://learn.microsoft.com/
|
|
249
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-container-acl
|
|
217
250
|
*
|
|
218
251
|
* @param access - Optional. The level of public access to data in the file system.
|
|
219
252
|
* @param fileSystemAcl - Optional. Array of elements each having a unique Id and details of the access policy.
|
|
@@ -221,7 +254,10 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
221
254
|
*/
|
|
222
255
|
async setAccessPolicy(access, fileSystemAcl, options = {}) {
|
|
223
256
|
return tracingClient.withSpan("DataLakeFileSystemClient-setAccessPolicy", options, async (updatedOptions) => {
|
|
224
|
-
return this.blobContainerClient.setAccessPolicy(toContainerPublicAccessType(access), fileSystemAcl,
|
|
257
|
+
return this.blobContainerClient.setAccessPolicy(toContainerPublicAccessType(access), fileSystemAcl, {
|
|
258
|
+
...options,
|
|
259
|
+
tracingOptions: updatedOptions.tracingOptions,
|
|
260
|
+
});
|
|
225
261
|
});
|
|
226
262
|
}
|
|
227
263
|
/**
|
|
@@ -353,49 +389,44 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
353
389
|
return this;
|
|
354
390
|
},
|
|
355
391
|
byPage: (settings = {}) => {
|
|
356
|
-
return this.listSegments(settings.continuationToken,
|
|
392
|
+
return this.listSegments(settings.continuationToken, {
|
|
393
|
+
maxResults: settings.maxPageSize,
|
|
394
|
+
...options,
|
|
395
|
+
});
|
|
357
396
|
},
|
|
358
397
|
};
|
|
359
398
|
}
|
|
360
|
-
listItems() {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
for (var _d = true, _e = __asyncValues(this.listSegments(undefined, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
365
|
-
_c = _f.value;
|
|
366
|
-
_d = false;
|
|
367
|
-
const response = _c;
|
|
368
|
-
yield __await(yield* __asyncDelegator(__asyncValues(response.pathItems || [])));
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
372
|
-
finally {
|
|
373
|
-
try {
|
|
374
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
375
|
-
}
|
|
376
|
-
finally { if (e_1) throw e_1.error; }
|
|
377
|
-
}
|
|
378
|
-
});
|
|
399
|
+
async *listItems(options = {}) {
|
|
400
|
+
for await (const response of this.listSegments(undefined, options)) {
|
|
401
|
+
yield* response.pathItems || [];
|
|
402
|
+
}
|
|
379
403
|
}
|
|
380
|
-
listSegments(
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
}
|
|
390
|
-
});
|
|
404
|
+
async *listSegments(continuation, options = {}) {
|
|
405
|
+
let response;
|
|
406
|
+
if (!!continuation || continuation === undefined) {
|
|
407
|
+
do {
|
|
408
|
+
response = await this.listPathsSegment(continuation, options);
|
|
409
|
+
continuation = response.continuation;
|
|
410
|
+
yield response;
|
|
411
|
+
} while (continuation);
|
|
412
|
+
}
|
|
391
413
|
}
|
|
392
414
|
async listPathsSegment(continuation, options = {}) {
|
|
393
415
|
return tracingClient.withSpan("DataLakeFileSystemClient-listPathsSegment", options, async (updatedOptions) => {
|
|
394
|
-
const rawResponse = await this.fileSystemContext.listPaths(options.recursive || false,
|
|
416
|
+
const rawResponse = await this.fileSystemContext.listPaths(options.recursive || false, {
|
|
417
|
+
continuation,
|
|
418
|
+
...updatedOptions,
|
|
419
|
+
upn: options.userPrincipalName,
|
|
420
|
+
});
|
|
395
421
|
const response = rawResponse;
|
|
396
422
|
response.pathItems = [];
|
|
397
423
|
for (const path of rawResponse.paths || []) {
|
|
398
|
-
response.pathItems.push(
|
|
424
|
+
response.pathItems.push({
|
|
425
|
+
...path,
|
|
426
|
+
permissions: toPermissions(path.permissions),
|
|
427
|
+
createdOn: windowsFileTimeTicksToTime(path.creationTime),
|
|
428
|
+
expiresOn: windowsFileTimeTicksToTime(path.expiryTime),
|
|
429
|
+
});
|
|
399
430
|
}
|
|
400
431
|
delete rawResponse.paths;
|
|
401
432
|
return response;
|
|
@@ -531,45 +562,35 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
531
562
|
return this;
|
|
532
563
|
},
|
|
533
564
|
byPage: (settings = {}) => {
|
|
534
|
-
return this.listDeletedSegments(settings.continuationToken,
|
|
565
|
+
return this.listDeletedSegments(settings.continuationToken, {
|
|
566
|
+
maxResults: settings.maxPageSize,
|
|
567
|
+
...options,
|
|
568
|
+
});
|
|
535
569
|
},
|
|
536
570
|
};
|
|
537
571
|
}
|
|
538
|
-
listDeletedItems() {
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
for (var _d = true, _e = __asyncValues(this.listDeletedSegments(undefined, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
543
|
-
_c = _f.value;
|
|
544
|
-
_d = false;
|
|
545
|
-
const response = _c;
|
|
546
|
-
yield __await(yield* __asyncDelegator(__asyncValues(response.pathItems || [])));
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
550
|
-
finally {
|
|
551
|
-
try {
|
|
552
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
553
|
-
}
|
|
554
|
-
finally { if (e_2) throw e_2.error; }
|
|
555
|
-
}
|
|
556
|
-
});
|
|
572
|
+
async *listDeletedItems(options = {}) {
|
|
573
|
+
for await (const response of this.listDeletedSegments(undefined, options)) {
|
|
574
|
+
yield* response.pathItems || [];
|
|
575
|
+
}
|
|
557
576
|
}
|
|
558
|
-
listDeletedSegments(
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
568
|
-
});
|
|
577
|
+
async *listDeletedSegments(continuation, options = {}) {
|
|
578
|
+
let response;
|
|
579
|
+
if (!!continuation || continuation === undefined) {
|
|
580
|
+
do {
|
|
581
|
+
response = await this.listDeletedPathsSegment(continuation, options);
|
|
582
|
+
continuation = response.continuation;
|
|
583
|
+
yield response;
|
|
584
|
+
} while (continuation);
|
|
585
|
+
}
|
|
569
586
|
}
|
|
570
587
|
async listDeletedPathsSegment(continuation, options = {}) {
|
|
571
588
|
return tracingClient.withSpan("DataLakeFileSystemClient-listDeletedPathsSegment", options, async (updatedOptions) => {
|
|
572
|
-
const rawResponse = await this.fileSystemContextToBlobEndpoint.listBlobHierarchySegment(
|
|
589
|
+
const rawResponse = await this.fileSystemContextToBlobEndpoint.listBlobHierarchySegment({
|
|
590
|
+
marker: continuation,
|
|
591
|
+
...updatedOptions,
|
|
592
|
+
prefix: options.prefix === "" ? undefined : options.prefix,
|
|
593
|
+
});
|
|
573
594
|
const response = rawResponse;
|
|
574
595
|
response.pathItems = [];
|
|
575
596
|
for (const path of rawResponse.segment.blobItems || []) {
|
|
@@ -589,7 +610,7 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
589
610
|
/**
|
|
590
611
|
* Restores a soft deleted path.
|
|
591
612
|
*
|
|
592
|
-
* @see https://learn.microsoft.com/
|
|
613
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/undelete-blob
|
|
593
614
|
*
|
|
594
615
|
* @param deletedPath - Required. The path of the deleted path.
|
|
595
616
|
*
|
|
@@ -599,12 +620,22 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
599
620
|
async undeletePath(deletedPath, deletionId, options = {}) {
|
|
600
621
|
return tracingClient.withSpan("DataLakeFileSystemClient-undeletePath", options, async (updatedOptions) => {
|
|
601
622
|
const pathClient = new PathClientInternal(appendToURLPath(this.blobEndpointUrl, EscapePath(deletedPath)), this.pipeline);
|
|
602
|
-
const rawResponse = assertResponse(await pathClient.blobPathContext.undelete(
|
|
623
|
+
const rawResponse = assertResponse(await pathClient.blobPathContext.undelete({
|
|
624
|
+
undeleteSource: "?" + DeletionIdKey + "=" + deletionId,
|
|
625
|
+
...options,
|
|
626
|
+
tracingOptions: updatedOptions.tracingOptions,
|
|
627
|
+
}));
|
|
603
628
|
if (rawResponse.resourceType === PathResultTypeConstants.DirectoryResourceType) {
|
|
604
|
-
return
|
|
629
|
+
return {
|
|
630
|
+
pathClient: this.getDirectoryClient(deletedPath),
|
|
631
|
+
...rawResponse,
|
|
632
|
+
};
|
|
605
633
|
}
|
|
606
634
|
else {
|
|
607
|
-
return
|
|
635
|
+
return {
|
|
636
|
+
pathClient: this.getFileClient(deletedPath),
|
|
637
|
+
...rawResponse,
|
|
638
|
+
};
|
|
608
639
|
}
|
|
609
640
|
});
|
|
610
641
|
}
|
|
@@ -614,7 +645,7 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
614
645
|
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
|
615
646
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
|
616
647
|
*
|
|
617
|
-
* @see https://learn.microsoft.com/
|
|
648
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
618
649
|
*
|
|
619
650
|
* @param options - Optional parameters.
|
|
620
651
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
@@ -624,7 +655,10 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
624
655
|
if (!(this.credential instanceof StorageSharedKeyCredential)) {
|
|
625
656
|
throw RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
|
|
626
657
|
}
|
|
627
|
-
const sas = generateDataLakeSASQueryParameters(
|
|
658
|
+
const sas = generateDataLakeSASQueryParameters({
|
|
659
|
+
fileSystemName: this.name,
|
|
660
|
+
...options,
|
|
661
|
+
}, this.credential).toString();
|
|
628
662
|
resolve(appendToURLQuery(this.url, sas));
|
|
629
663
|
});
|
|
630
664
|
}
|
|
@@ -634,7 +668,7 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
634
668
|
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
|
635
669
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
|
636
670
|
*
|
|
637
|
-
* @see https://learn.microsoft.com/
|
|
671
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
638
672
|
*
|
|
639
673
|
* @param options - Optional parameters.
|
|
640
674
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
@@ -644,13 +678,16 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
644
678
|
if (!(this.credential instanceof StorageSharedKeyCredential)) {
|
|
645
679
|
throw RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
|
|
646
680
|
}
|
|
647
|
-
return generateDataLakeSASQueryParametersInternal(
|
|
681
|
+
return generateDataLakeSASQueryParametersInternal({
|
|
682
|
+
fileSystemName: this.name,
|
|
683
|
+
...options,
|
|
684
|
+
}, this.credential).stringToSign;
|
|
648
685
|
}
|
|
649
686
|
/**
|
|
650
687
|
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
|
651
688
|
* and parameters passed in. The SAS is signed by the input user delegation key.
|
|
652
689
|
*
|
|
653
|
-
* @see https://learn.microsoft.com/
|
|
690
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
654
691
|
*
|
|
655
692
|
* @param options - Optional parameters.
|
|
656
693
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
|
@@ -658,7 +695,10 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
658
695
|
*/
|
|
659
696
|
generateUserDelegationSasUrl(options, userDelegationKey) {
|
|
660
697
|
return new Promise((resolve) => {
|
|
661
|
-
const sas = generateDataLakeSASQueryParameters(
|
|
698
|
+
const sas = generateDataLakeSASQueryParameters({
|
|
699
|
+
fileSystemName: this.name,
|
|
700
|
+
...options,
|
|
701
|
+
}, userDelegationKey, this.accountName).toString();
|
|
662
702
|
resolve(appendToURLQuery(this.url, sas));
|
|
663
703
|
});
|
|
664
704
|
}
|
|
@@ -666,14 +706,17 @@ export class DataLakeFileSystemClient extends StorageClient {
|
|
|
666
706
|
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
|
667
707
|
* and parameters passed in. The SAS is signed by the input user delegation key.
|
|
668
708
|
*
|
|
669
|
-
* @see https://learn.microsoft.com/
|
|
709
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
670
710
|
*
|
|
671
711
|
* @param options - Optional parameters.
|
|
672
712
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
|
673
713
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
674
714
|
*/
|
|
675
715
|
generateUserDelegationSasStringToSign(options, userDelegationKey) {
|
|
676
|
-
return generateDataLakeSASQueryParametersInternal(
|
|
716
|
+
return generateDataLakeSASQueryParametersInternal({
|
|
717
|
+
fileSystemName: this.name,
|
|
718
|
+
...options,
|
|
719
|
+
}, userDelegationKey, this.accountName).stringToSign;
|
|
677
720
|
}
|
|
678
721
|
}
|
|
679
722
|
//# sourceMappingURL=DataLakeFileSystemClient.js.map
|