@azure/storage-file-datalake 12.26.0 → 12.27.0-beta.1
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/README.md +117 -190
- package/dist/browser/DataLakeFileSystemClient.d.ts +473 -0
- package/dist/browser/DataLakeFileSystemClient.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/DataLakeFileSystemClient.js +170 -75
- package/dist/browser/DataLakeFileSystemClient.js.map +1 -0
- package/dist/browser/DataLakeLeaseClient.d.ts +14 -0
- package/dist/browser/DataLakeLeaseClient.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/DataLakeLeaseClient.js +3 -1
- package/dist/browser/DataLakeLeaseClient.js.map +1 -0
- package/dist/browser/DataLakeServiceClient.d.ts +281 -0
- package/dist/browser/DataLakeServiceClient.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/DataLakeServiceClient.js +94 -62
- package/dist/browser/DataLakeServiceClient.js.map +1 -0
- package/dist/browser/Pipeline.d.ts +52 -0
- package/dist/browser/Pipeline.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/Pipeline.js +8 -8
- package/dist/browser/Pipeline.js.map +1 -0
- package/dist/browser/StorageClient.d.ts +61 -0
- package/dist/browser/StorageClient.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/StorageClient.js +5 -3
- package/dist/browser/StorageClient.js.map +1 -0
- package/dist/browser/StorageContextClient.d.ts +9 -0
- package/dist/browser/StorageContextClient.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/StorageContextClient.js +3 -3
- package/dist/browser/StorageContextClient.js.map +1 -0
- package/dist/browser/clients.d.ts +689 -0
- package/dist/browser/clients.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/clients.js +87 -45
- package/dist/browser/clients.js.map +1 -0
- package/dist/browser/credentials/StorageSharedKeyCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/StorageSharedKeyCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/StorageSharedKeyCredential.d.ts +3 -0
- package/{dist-esm/storage-file-datalake/src/credentials/StorageSharedKeyCredential.browser.js → dist/browser/credentials/StorageSharedKeyCredential.js} +1 -1
- package/dist/browser/credentials/UserDelegationKeyCredential-browser.d.mts.map +1 -0
- package/dist/browser/credentials/UserDelegationKeyCredential-browser.mjs.map +1 -0
- package/dist/browser/credentials/UserDelegationKeyCredential.d.ts +3 -0
- package/{dist-esm/storage-file-datalake/src/credentials/UserDelegationKeyCredential.browser.js → dist/browser/credentials/UserDelegationKeyCredential.js} +1 -1
- package/dist/browser/generated/src/index.d.ts +4 -0
- package/dist/browser/generated/src/index.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/index.js +3 -3
- package/dist/browser/generated/src/index.js.map +1 -0
- package/dist/browser/generated/src/models/index.d.ts +1091 -0
- package/dist/browser/generated/src/models/index.d.ts.map +1 -0
- package/dist/browser/generated/src/models/index.js.map +1 -0
- package/dist/browser/generated/src/models/mappers.d.ts +53 -0
- package/dist/browser/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/browser/generated/src/models/mappers.js.map +1 -0
- package/dist/browser/generated/src/models/parameters.d.ts +87 -0
- package/dist/browser/generated/src/models/parameters.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/models/parameters.js +1 -1
- package/dist/browser/generated/src/models/parameters.js.map +1 -0
- package/dist/browser/generated/src/operations/fileSystemOperations.d.ts +55 -0
- package/dist/browser/generated/src/operations/fileSystemOperations.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/operations/fileSystemOperations.js +2 -2
- package/dist/browser/generated/src/operations/fileSystemOperations.js.map +1 -0
- package/dist/browser/generated/src/operations/index.d.ts +4 -0
- package/dist/browser/generated/src/operations/index.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src/generated/src/operationsInterfaces → dist/browser/generated/src/operations}/index.js +3 -3
- package/dist/browser/generated/src/operations/index.js.map +1 -0
- package/dist/browser/generated/src/operations/pathOperations.d.ts +120 -0
- package/dist/browser/generated/src/operations/pathOperations.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/operations/pathOperations.js +2 -2
- package/dist/browser/generated/src/operations/pathOperations.js.map +1 -0
- package/dist/browser/generated/src/operations/service.d.ts +18 -0
- package/dist/browser/generated/src/operations/service.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/operations/service.js +2 -2
- package/dist/browser/generated/src/operations/service.js.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/fileSystemOperations.d.ts +47 -0
- package/dist/browser/generated/src/operationsInterfaces/fileSystemOperations.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/fileSystemOperations.js.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts +4 -0
- package/dist/browser/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/index.js +11 -0
- package/dist/browser/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/pathOperations.d.ts +112 -0
- package/dist/browser/generated/src/operationsInterfaces/pathOperations.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/pathOperations.js.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/service.d.ts +10 -0
- package/dist/browser/generated/src/operationsInterfaces/service.d.ts.map +1 -0
- package/dist/browser/generated/src/operationsInterfaces/service.js.map +1 -0
- package/dist/browser/generated/src/storageClient.d.ts +20 -0
- package/dist/browser/generated/src/storageClient.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/storageClient.js +3 -3
- package/dist/browser/generated/src/storageClient.js.map +1 -0
- package/dist/browser/index-browser.d.mts.map +1 -0
- package/dist/browser/index-browser.mjs.map +1 -0
- package/dist/browser/index.d.ts +13 -0
- package/{dist-esm/storage-file-datalake/src/index.browser.js → dist/browser/index.js} +10 -10
- package/dist/browser/log.d.ts +5 -0
- package/dist/browser/log.d.ts.map +1 -0
- package/dist/browser/log.js.map +1 -0
- package/dist/browser/models.d.ts +1318 -0
- package/dist/browser/models.d.ts.map +1 -0
- package/dist/browser/models.internal.d.ts +2 -0
- package/dist/browser/models.internal.d.ts.map +1 -0
- package/dist/browser/models.internal.js.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/models.js +2 -0
- package/dist/browser/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/sas/AccountSASPermissions.d.ts +61 -0
- package/dist/browser/sas/AccountSASPermissions.d.ts.map +1 -0
- package/dist/browser/sas/AccountSASPermissions.js.map +1 -0
- package/dist/browser/sas/AccountSASResourceTypes.d.ts +38 -0
- package/dist/browser/sas/AccountSASResourceTypes.d.ts.map +1 -0
- package/dist/browser/sas/AccountSASResourceTypes.js.map +1 -0
- package/dist/browser/sas/AccountSASServices.d.ts +40 -0
- package/dist/browser/sas/AccountSASServices.d.ts.map +1 -0
- package/dist/browser/sas/AccountSASServices.js.map +1 -0
- package/dist/browser/sas/AccountSASSignatureValues.d.ts +78 -0
- package/dist/browser/sas/AccountSASSignatureValues.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/AccountSASSignatureValues.js +7 -7
- package/dist/browser/sas/AccountSASSignatureValues.js.map +1 -0
- package/dist/browser/sas/DataLakeSASPermissions.d.ts +65 -0
- package/dist/browser/sas/DataLakeSASPermissions.d.ts.map +1 -0
- package/dist/browser/sas/DataLakeSASPermissions.js.map +1 -0
- package/dist/browser/sas/DataLakeSASSignatureValues.d.ts +205 -0
- package/dist/browser/sas/DataLakeSASSignatureValues.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/DataLakeSASSignatureValues.js +107 -10
- package/dist/browser/sas/DataLakeSASSignatureValues.js.map +1 -0
- package/dist/browser/sas/DirectorySASPermissions.d.ts +69 -0
- package/dist/browser/sas/DirectorySASPermissions.d.ts.map +1 -0
- package/dist/browser/sas/DirectorySASPermissions.js.map +1 -0
- package/dist/browser/sas/FileSystemSASPermissions.d.ts +69 -0
- package/dist/browser/sas/FileSystemSASPermissions.d.ts.map +1 -0
- package/dist/browser/sas/FileSystemSASPermissions.js.map +1 -0
- package/dist/browser/sas/SASQueryParameters.d.ts +309 -0
- package/dist/browser/sas/SASQueryParameters.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/SASQueryParameters.js +4 -2
- package/dist/browser/sas/SASQueryParameters.js.map +1 -0
- package/dist/browser/sas/SasIPRange.d.ts +24 -0
- package/dist/browser/sas/SasIPRange.d.ts.map +1 -0
- package/dist/browser/sas/SasIPRange.js.map +1 -0
- package/dist/browser/transforms.d.ts +51 -0
- package/dist/browser/transforms.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/transforms.js +2 -2
- package/dist/browser/transforms.js.map +1 -0
- package/dist/browser/utils/Batch.d.ts +68 -0
- package/dist/browser/utils/Batch.d.ts.map +1 -0
- package/dist/browser/utils/Batch.js.map +1 -0
- package/dist/browser/utils/BufferScheduler.d.ts +158 -0
- package/dist/browser/utils/BufferScheduler.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/utils/BufferScheduler.js +1 -1
- package/dist/browser/utils/BufferScheduler.js.map +1 -0
- package/dist/browser/utils/DataLakeAclChangeFailedError.d.ts +16 -0
- package/dist/browser/utils/DataLakeAclChangeFailedError.d.ts.map +1 -0
- package/dist/browser/utils/DataLakeAclChangeFailedError.js.map +1 -0
- package/dist/browser/utils/PathClientInternal.d.ts +24 -0
- package/dist/browser/utils/PathClientInternal.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/utils/PathClientInternal.js +2 -2
- package/dist/browser/utils/PathClientInternal.js.map +1 -0
- package/dist/browser/utils/constants.d.ts +70 -0
- package/dist/browser/utils/constants.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/utils/constants.js +2 -2
- package/dist/browser/utils/constants.js.map +1 -0
- package/dist/browser/utils/tracing.d.ts +6 -0
- package/dist/browser/utils/tracing.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/utils/tracing.js +1 -1
- package/dist/browser/utils/tracing.js.map +1 -0
- package/dist/browser/utils/utils-browser.d.mts.map +1 -0
- package/dist/browser/utils/utils-browser.mjs.map +1 -0
- package/dist/browser/utils/utils.common.d.ts +236 -0
- package/dist/browser/utils/utils.common.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/browser}/utils/utils.common.js +5 -5
- package/dist/browser/utils/utils.common.js.map +1 -0
- package/dist/browser/utils/utils.d.ts +3 -0
- package/dist/browser/utils/utils.js +9 -0
- package/dist/commonjs/DataLakeFileSystemClient.d.ts +473 -0
- package/dist/commonjs/DataLakeFileSystemClient.d.ts.map +1 -0
- package/dist/commonjs/DataLakeFileSystemClient.js +683 -0
- package/dist/commonjs/DataLakeFileSystemClient.js.map +1 -0
- package/dist/commonjs/DataLakeLeaseClient.d.ts +14 -0
- package/dist/commonjs/DataLakeLeaseClient.d.ts.map +1 -0
- package/dist/commonjs/DataLakeLeaseClient.js +49 -0
- package/dist/commonjs/DataLakeLeaseClient.js.map +1 -0
- package/dist/commonjs/DataLakeServiceClient.d.ts +281 -0
- package/dist/commonjs/DataLakeServiceClient.d.ts.map +1 -0
- package/dist/commonjs/DataLakeServiceClient.js +372 -0
- package/dist/commonjs/DataLakeServiceClient.js.map +1 -0
- package/dist/commonjs/Pipeline.d.ts +52 -0
- package/dist/commonjs/Pipeline.d.ts.map +1 -0
- package/dist/commonjs/Pipeline.js +222 -0
- package/dist/commonjs/Pipeline.js.map +1 -0
- package/dist/commonjs/StorageClient.d.ts +61 -0
- package/dist/commonjs/StorageClient.d.ts.map +1 -0
- package/dist/commonjs/StorageClient.js +55 -0
- package/dist/commonjs/StorageClient.js.map +1 -0
- package/dist/commonjs/StorageContextClient.d.ts +9 -0
- package/dist/commonjs/StorageContextClient.d.ts.map +1 -0
- package/dist/commonjs/StorageContextClient.js +39 -0
- package/dist/commonjs/StorageContextClient.js.map +1 -0
- package/dist/commonjs/clients.d.ts +689 -0
- package/dist/commonjs/clients.d.ts.map +1 -0
- package/dist/commonjs/clients.js +1195 -0
- package/dist/commonjs/clients.js.map +1 -0
- package/dist/commonjs/credentials/StorageSharedKeyCredential.d.ts +2 -0
- package/dist/commonjs/credentials/StorageSharedKeyCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/StorageSharedKeyCredential.js +8 -0
- package/dist/commonjs/credentials/StorageSharedKeyCredential.js.map +1 -0
- package/dist/commonjs/credentials/UserDelegationKeyCredential.d.ts +34 -0
- package/dist/commonjs/credentials/UserDelegationKeyCredential.d.ts.map +1 -0
- package/dist/commonjs/credentials/UserDelegationKeyCredential.js +35 -0
- package/dist/commonjs/credentials/UserDelegationKeyCredential.js.map +1 -0
- package/dist/commonjs/generated/src/index.d.ts +4 -0
- package/dist/commonjs/generated/src/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/index.js +16 -0
- package/dist/commonjs/generated/src/index.js.map +1 -0
- package/dist/commonjs/generated/src/models/index.d.ts +1091 -0
- package/dist/commonjs/generated/src/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/index.js +19 -0
- package/dist/commonjs/generated/src/models/index.js.map +1 -0
- package/dist/commonjs/generated/src/models/mappers.d.ts +53 -0
- package/dist/commonjs/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/mappers.js +2450 -0
- package/dist/commonjs/generated/src/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts +87 -0
- package/dist/commonjs/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/src/models/parameters.js +952 -0
- package/dist/commonjs/generated/src/models/parameters.js.map +1 -0
- package/dist/commonjs/generated/src/operations/fileSystemOperations.d.ts +55 -0
- package/dist/commonjs/generated/src/operations/fileSystemOperations.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/fileSystemOperations.js +236 -0
- package/dist/commonjs/generated/src/operations/fileSystemOperations.js.map +1 -0
- package/dist/commonjs/generated/src/operations/index.d.ts +4 -0
- package/dist/commonjs/generated/src/operations/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/index.js +14 -0
- package/dist/commonjs/generated/src/operations/index.js.map +1 -0
- package/dist/commonjs/generated/src/operations/pathOperations.d.ts +120 -0
- package/dist/commonjs/generated/src/operations/pathOperations.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/pathOperations.js +596 -0
- package/dist/commonjs/generated/src/operations/pathOperations.js.map +1 -0
- package/dist/commonjs/generated/src/operations/service.d.ts +18 -0
- package/dist/commonjs/generated/src/operations/service.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operations/service.js +63 -0
- package/dist/commonjs/generated/src/operations/service.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/fileSystemOperations.d.ts +47 -0
- package/dist/commonjs/generated/src/operationsInterfaces/fileSystemOperations.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src/generated/src/operations/index.js → dist/commonjs/generated/src/operationsInterfaces/fileSystemOperations.js} +3 -4
- package/dist/commonjs/generated/src/operationsInterfaces/fileSystemOperations.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts +4 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.js +14 -0
- package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/pathOperations.d.ts +112 -0
- package/dist/commonjs/generated/src/operationsInterfaces/pathOperations.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/pathOperations.js +10 -0
- package/dist/commonjs/generated/src/operationsInterfaces/pathOperations.js.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/service.d.ts +10 -0
- package/dist/commonjs/generated/src/operationsInterfaces/service.d.ts.map +1 -0
- package/dist/commonjs/generated/src/operationsInterfaces/service.js +10 -0
- package/dist/commonjs/generated/src/operationsInterfaces/service.js.map +1 -0
- package/dist/commonjs/generated/src/storageClient.d.ts +20 -0
- package/dist/commonjs/generated/src/storageClient.d.ts.map +1 -0
- package/dist/commonjs/generated/src/storageClient.js +52 -0
- package/dist/commonjs/generated/src/storageClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +23 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +49 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/log.d.ts +5 -0
- package/dist/commonjs/log.d.ts.map +1 -0
- package/dist/commonjs/log.js +11 -0
- package/dist/commonjs/log.js.map +1 -0
- package/dist/commonjs/models.d.ts +1318 -0
- package/dist/commonjs/models.d.ts.map +1 -0
- package/dist/commonjs/models.internal.d.ts +2 -0
- package/dist/commonjs/models.internal.d.ts.map +1 -0
- package/dist/commonjs/models.internal.js +5 -0
- package/dist/commonjs/models.internal.js.map +1 -0
- package/dist/commonjs/models.js +57 -0
- package/dist/commonjs/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/sas/AccountSASPermissions.d.ts +61 -0
- package/dist/commonjs/sas/AccountSASPermissions.d.ts.map +1 -0
- package/dist/commonjs/sas/AccountSASPermissions.js +132 -0
- package/dist/commonjs/sas/AccountSASPermissions.js.map +1 -0
- package/dist/commonjs/sas/AccountSASResourceTypes.d.ts +38 -0
- package/dist/commonjs/sas/AccountSASResourceTypes.d.ts.map +1 -0
- package/dist/commonjs/sas/AccountSASResourceTypes.js +76 -0
- package/dist/commonjs/sas/AccountSASResourceTypes.js.map +1 -0
- package/dist/commonjs/sas/AccountSASServices.d.ts +40 -0
- package/dist/commonjs/sas/AccountSASServices.d.ts.map +1 -0
- package/dist/commonjs/sas/AccountSASServices.js +84 -0
- package/dist/commonjs/sas/AccountSASServices.js.map +1 -0
- package/dist/commonjs/sas/AccountSASSignatureValues.d.ts +78 -0
- package/dist/commonjs/sas/AccountSASSignatureValues.d.ts.map +1 -0
- package/dist/commonjs/sas/AccountSASSignatureValues.js +76 -0
- package/dist/commonjs/sas/AccountSASSignatureValues.js.map +1 -0
- package/dist/commonjs/sas/DataLakeSASPermissions.d.ts +65 -0
- package/dist/commonjs/sas/DataLakeSASPermissions.d.ts.map +1 -0
- package/dist/commonjs/sas/DataLakeSASPermissions.js +139 -0
- package/dist/commonjs/sas/DataLakeSASPermissions.js.map +1 -0
- package/dist/commonjs/sas/DataLakeSASSignatureValues.d.ts +205 -0
- package/dist/commonjs/sas/DataLakeSASSignatureValues.d.ts.map +1 -0
- package/dist/commonjs/sas/DataLakeSASSignatureValues.js +722 -0
- package/dist/commonjs/sas/DataLakeSASSignatureValues.js.map +1 -0
- package/dist/commonjs/sas/DirectorySASPermissions.d.ts +69 -0
- package/dist/commonjs/sas/DirectorySASPermissions.d.ts.map +1 -0
- package/dist/commonjs/sas/DirectorySASPermissions.js +149 -0
- package/dist/commonjs/sas/DirectorySASPermissions.js.map +1 -0
- package/dist/commonjs/sas/FileSystemSASPermissions.d.ts +69 -0
- package/dist/commonjs/sas/FileSystemSASPermissions.d.ts.map +1 -0
- package/dist/commonjs/sas/FileSystemSASPermissions.js +149 -0
- package/dist/commonjs/sas/FileSystemSASPermissions.js.map +1 -0
- package/dist/commonjs/sas/SASQueryParameters.d.ts +309 -0
- package/dist/commonjs/sas/SASQueryParameters.d.ts.map +1 -0
- package/dist/commonjs/sas/SASQueryParameters.js +252 -0
- package/dist/commonjs/sas/SASQueryParameters.js.map +1 -0
- package/dist/commonjs/sas/SasIPRange.d.ts +24 -0
- package/dist/commonjs/sas/SasIPRange.d.ts.map +1 -0
- package/dist/commonjs/sas/SasIPRange.js +16 -0
- package/dist/commonjs/sas/SasIPRange.js.map +1 -0
- package/dist/commonjs/transforms.d.ts +51 -0
- package/dist/commonjs/transforms.d.ts.map +1 -0
- package/dist/commonjs/transforms.js +357 -0
- package/dist/commonjs/transforms.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/commonjs/utils/Batch.d.ts +68 -0
- package/dist/commonjs/utils/Batch.d.ts.map +1 -0
- package/dist/commonjs/utils/Batch.js +126 -0
- package/dist/commonjs/utils/Batch.js.map +1 -0
- package/dist/commonjs/utils/BufferScheduler.d.ts +158 -0
- package/dist/commonjs/utils/BufferScheduler.d.ts.map +1 -0
- package/dist/commonjs/utils/BufferScheduler.js +268 -0
- package/dist/commonjs/utils/BufferScheduler.js.map +1 -0
- package/dist/commonjs/utils/DataLakeAclChangeFailedError.d.ts +16 -0
- package/dist/commonjs/utils/DataLakeAclChangeFailedError.d.ts.map +1 -0
- package/dist/commonjs/utils/DataLakeAclChangeFailedError.js +17 -0
- package/dist/commonjs/utils/DataLakeAclChangeFailedError.js.map +1 -0
- package/dist/commonjs/utils/PathClientInternal.d.ts +24 -0
- package/dist/commonjs/utils/PathClientInternal.d.ts.map +1 -0
- package/dist/commonjs/utils/PathClientInternal.js +28 -0
- package/dist/commonjs/utils/PathClientInternal.js.map +1 -0
- package/dist/commonjs/utils/constants.d.ts +70 -0
- package/dist/commonjs/utils/constants.d.ts.map +1 -0
- package/dist/commonjs/utils/constants.js +247 -0
- package/dist/commonjs/utils/constants.js.map +1 -0
- package/dist/commonjs/utils/tracing.d.ts +6 -0
- package/dist/commonjs/utils/tracing.d.ts.map +1 -0
- package/dist/commonjs/utils/tracing.js +17 -0
- package/dist/commonjs/utils/tracing.js.map +1 -0
- package/dist/commonjs/utils/utils.common.d.ts +236 -0
- package/dist/commonjs/utils/utils.common.d.ts.map +1 -0
- package/dist/commonjs/utils/utils.common.js +595 -0
- package/dist/commonjs/utils/utils.common.js.map +1 -0
- package/dist/commonjs/utils/utils.d.ts +29 -0
- package/dist/commonjs/utils/utils.d.ts.map +1 -0
- package/dist/commonjs/utils/utils.js +91 -0
- package/dist/commonjs/utils/utils.js.map +1 -0
- package/dist/esm/DataLakeFileSystemClient.d.ts +473 -0
- package/dist/esm/DataLakeFileSystemClient.d.ts.map +1 -0
- package/dist/esm/DataLakeFileSystemClient.js +679 -0
- package/dist/esm/DataLakeFileSystemClient.js.map +1 -0
- package/dist/esm/DataLakeLeaseClient.d.ts +14 -0
- package/dist/esm/DataLakeLeaseClient.d.ts.map +1 -0
- package/dist/esm/DataLakeLeaseClient.js +45 -0
- package/dist/esm/DataLakeLeaseClient.js.map +1 -0
- package/dist/esm/DataLakeServiceClient.d.ts +281 -0
- package/dist/esm/DataLakeServiceClient.d.ts.map +1 -0
- package/dist/esm/DataLakeServiceClient.js +368 -0
- package/dist/esm/DataLakeServiceClient.js.map +1 -0
- package/dist/esm/Pipeline.d.ts +52 -0
- package/dist/esm/Pipeline.d.ts.map +1 -0
- package/dist/esm/Pipeline.js +216 -0
- package/dist/esm/Pipeline.js.map +1 -0
- package/dist/esm/StorageClient.d.ts +61 -0
- package/dist/esm/StorageClient.d.ts.map +1 -0
- package/dist/esm/StorageClient.js +51 -0
- package/dist/esm/StorageClient.js.map +1 -0
- package/dist/esm/StorageContextClient.d.ts +9 -0
- package/dist/esm/StorageContextClient.d.ts.map +1 -0
- package/dist/esm/StorageContextClient.js +35 -0
- package/dist/esm/StorageContextClient.js.map +1 -0
- package/dist/esm/clients.d.ts +689 -0
- package/dist/esm/clients.d.ts.map +1 -0
- package/dist/esm/clients.js +1189 -0
- package/dist/esm/clients.js.map +1 -0
- package/dist/esm/credentials/StorageSharedKeyCredential.d.ts +2 -0
- package/dist/esm/credentials/StorageSharedKeyCredential.d.ts.map +1 -0
- package/dist/esm/credentials/StorageSharedKeyCredential.js.map +1 -0
- package/dist/esm/credentials/UserDelegationKeyCredential.d.ts +34 -0
- package/dist/esm/credentials/UserDelegationKeyCredential.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src → dist/esm}/credentials/UserDelegationKeyCredential.js +1 -1
- package/dist/esm/credentials/UserDelegationKeyCredential.js.map +1 -0
- package/dist/esm/generated/src/index.d.ts +4 -0
- package/dist/esm/generated/src/index.d.ts.map +1 -0
- package/dist/esm/generated/src/index.js +11 -0
- package/dist/esm/generated/src/index.js.map +1 -0
- package/dist/esm/generated/src/models/index.d.ts +1091 -0
- package/dist/esm/generated/src/models/index.d.ts.map +1 -0
- package/dist/esm/generated/src/models/index.js +16 -0
- package/dist/esm/generated/src/models/index.js.map +1 -0
- package/dist/esm/generated/src/models/mappers.d.ts +53 -0
- package/dist/esm/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/src/models/mappers.js +2446 -0
- package/dist/esm/generated/src/models/mappers.js.map +1 -0
- package/dist/esm/generated/src/models/parameters.d.ts +87 -0
- package/dist/esm/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/esm/generated/src/models/parameters.js +948 -0
- package/dist/esm/generated/src/models/parameters.js.map +1 -0
- package/dist/esm/generated/src/operations/fileSystemOperations.d.ts +55 -0
- package/dist/esm/generated/src/operations/fileSystemOperations.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/fileSystemOperations.js +231 -0
- package/dist/esm/generated/src/operations/fileSystemOperations.js.map +1 -0
- package/dist/esm/generated/src/operations/index.d.ts +4 -0
- package/dist/esm/generated/src/operations/index.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/index.js +11 -0
- package/dist/esm/generated/src/operations/index.js.map +1 -0
- package/dist/esm/generated/src/operations/pathOperations.d.ts +120 -0
- package/dist/esm/generated/src/operations/pathOperations.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/pathOperations.js +591 -0
- package/dist/esm/generated/src/operations/pathOperations.js.map +1 -0
- package/dist/esm/generated/src/operations/service.d.ts +18 -0
- package/dist/esm/generated/src/operations/service.d.ts.map +1 -0
- package/dist/esm/generated/src/operations/service.js +58 -0
- package/dist/esm/generated/src/operations/service.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/fileSystemOperations.d.ts +47 -0
- package/dist/esm/generated/src/operationsInterfaces/fileSystemOperations.d.ts.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/fileSystemOperations.js +9 -0
- package/dist/esm/generated/src/operationsInterfaces/fileSystemOperations.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts +4 -0
- package/dist/esm/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/index.js +11 -0
- package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/pathOperations.d.ts +112 -0
- package/dist/esm/generated/src/operationsInterfaces/pathOperations.d.ts.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/pathOperations.js +9 -0
- package/dist/esm/generated/src/operationsInterfaces/pathOperations.js.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/service.d.ts +10 -0
- package/dist/esm/generated/src/operationsInterfaces/service.d.ts.map +1 -0
- package/dist/esm/generated/src/operationsInterfaces/service.js +9 -0
- package/dist/esm/generated/src/operationsInterfaces/service.js.map +1 -0
- package/dist/esm/generated/src/storageClient.d.ts +20 -0
- package/dist/esm/generated/src/storageClient.d.ts.map +1 -0
- package/dist/esm/generated/src/storageClient.js +47 -0
- package/dist/esm/generated/src/storageClient.js.map +1 -0
- package/dist/esm/index.d.ts +23 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +23 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/log.d.ts +5 -0
- package/dist/esm/log.d.ts.map +1 -0
- package/{dist-esm/storage-blob/src → dist/esm}/log.js +1 -1
- package/dist/esm/log.js.map +1 -0
- package/dist/esm/models.d.ts +1318 -0
- package/dist/esm/models.d.ts.map +1 -0
- package/dist/esm/models.internal.d.ts +2 -0
- package/dist/esm/models.internal.d.ts.map +1 -0
- package/dist/esm/models.internal.js +4 -0
- package/dist/esm/models.internal.js.map +1 -0
- package/dist/esm/models.js +53 -0
- package/dist/esm/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/sas/AccountSASPermissions.d.ts +61 -0
- package/dist/esm/sas/AccountSASPermissions.d.ts.map +1 -0
- package/dist/esm/sas/AccountSASPermissions.js +128 -0
- package/dist/esm/sas/AccountSASPermissions.js.map +1 -0
- package/dist/esm/sas/AccountSASResourceTypes.d.ts +38 -0
- package/dist/esm/sas/AccountSASResourceTypes.d.ts.map +1 -0
- package/dist/esm/sas/AccountSASResourceTypes.js +72 -0
- package/dist/esm/sas/AccountSASResourceTypes.js.map +1 -0
- package/dist/esm/sas/AccountSASServices.d.ts +40 -0
- package/dist/esm/sas/AccountSASServices.d.ts.map +1 -0
- package/dist/esm/sas/AccountSASServices.js +80 -0
- package/dist/esm/sas/AccountSASServices.js.map +1 -0
- package/dist/esm/sas/AccountSASSignatureValues.d.ts +78 -0
- package/dist/esm/sas/AccountSASSignatureValues.d.ts.map +1 -0
- package/dist/esm/sas/AccountSASSignatureValues.js +72 -0
- package/dist/esm/sas/AccountSASSignatureValues.js.map +1 -0
- package/dist/esm/sas/DataLakeSASPermissions.d.ts +65 -0
- package/dist/esm/sas/DataLakeSASPermissions.d.ts.map +1 -0
- package/dist/esm/sas/DataLakeSASPermissions.js +135 -0
- package/dist/esm/sas/DataLakeSASPermissions.js.map +1 -0
- package/dist/esm/sas/DataLakeSASSignatureValues.d.ts +205 -0
- package/dist/esm/sas/DataLakeSASSignatureValues.d.ts.map +1 -0
- package/dist/esm/sas/DataLakeSASSignatureValues.js +718 -0
- package/dist/esm/sas/DataLakeSASSignatureValues.js.map +1 -0
- package/dist/esm/sas/DirectorySASPermissions.d.ts +69 -0
- package/dist/esm/sas/DirectorySASPermissions.d.ts.map +1 -0
- package/dist/esm/sas/DirectorySASPermissions.js +145 -0
- package/dist/esm/sas/DirectorySASPermissions.js.map +1 -0
- package/dist/esm/sas/FileSystemSASPermissions.d.ts +69 -0
- package/dist/esm/sas/FileSystemSASPermissions.d.ts.map +1 -0
- package/dist/esm/sas/FileSystemSASPermissions.js +145 -0
- package/dist/esm/sas/FileSystemSASPermissions.js.map +1 -0
- package/dist/esm/sas/SASQueryParameters.d.ts +309 -0
- package/dist/esm/sas/SASQueryParameters.d.ts.map +1 -0
- package/dist/esm/sas/SASQueryParameters.js +248 -0
- package/dist/esm/sas/SASQueryParameters.js.map +1 -0
- package/dist/esm/sas/SasIPRange.d.ts +24 -0
- package/dist/esm/sas/SasIPRange.d.ts.map +1 -0
- package/dist/esm/sas/SasIPRange.js +13 -0
- package/dist/esm/sas/SasIPRange.js.map +1 -0
- package/dist/esm/transforms.d.ts +51 -0
- package/dist/esm/transforms.d.ts.map +1 -0
- package/dist/esm/transforms.js +337 -0
- package/dist/esm/transforms.js.map +1 -0
- package/dist/esm/utils/Batch.d.ts +68 -0
- package/dist/esm/utils/Batch.d.ts.map +1 -0
- package/dist/esm/utils/Batch.js.map +1 -0
- package/dist/esm/utils/BufferScheduler.d.ts +158 -0
- package/dist/esm/utils/BufferScheduler.d.ts.map +1 -0
- package/{dist-esm/storage-common/src → dist/esm/utils}/BufferScheduler.js +27 -15
- package/dist/esm/utils/BufferScheduler.js.map +1 -0
- package/dist/esm/utils/DataLakeAclChangeFailedError.d.ts +16 -0
- package/dist/esm/utils/DataLakeAclChangeFailedError.d.ts.map +1 -0
- package/dist/esm/utils/DataLakeAclChangeFailedError.js +13 -0
- package/dist/esm/utils/DataLakeAclChangeFailedError.js.map +1 -0
- package/dist/esm/utils/PathClientInternal.d.ts +24 -0
- package/dist/esm/utils/PathClientInternal.d.ts.map +1 -0
- package/dist/esm/utils/PathClientInternal.js +24 -0
- package/dist/esm/utils/PathClientInternal.js.map +1 -0
- package/dist/esm/utils/constants.d.ts +70 -0
- package/dist/esm/utils/constants.d.ts.map +1 -0
- package/{dist-esm/storage-blob/src → dist/esm}/utils/constants.js +85 -67
- package/dist/esm/utils/constants.js.map +1 -0
- package/dist/esm/utils/tracing.d.ts +6 -0
- package/dist/esm/utils/tracing.d.ts.map +1 -0
- package/{dist-esm/storage-blob/src → dist/esm}/utils/tracing.js +2 -2
- package/dist/esm/utils/tracing.js.map +1 -0
- package/dist/esm/utils/utils.common.d.ts +236 -0
- package/dist/esm/utils/utils.common.d.ts.map +1 -0
- package/{dist-esm/storage-blob/src → dist/esm}/utils/utils.common.js +105 -297
- package/dist/esm/utils/utils.common.js.map +1 -0
- package/dist/esm/utils/utils.d.ts +29 -0
- package/dist/esm/utils/utils.d.ts.map +1 -0
- package/{dist-esm/storage-file-datalake/src/utils/utils.node.js → dist/esm/utils/utils.js} +3 -3
- package/dist/esm/utils/utils.js.map +1 -0
- package/dist/react-native/DataLakeFileSystemClient.d.ts +473 -0
- package/dist/react-native/DataLakeFileSystemClient.d.ts.map +1 -0
- package/dist/react-native/DataLakeFileSystemClient.js +679 -0
- package/dist/react-native/DataLakeFileSystemClient.js.map +1 -0
- package/dist/react-native/DataLakeLeaseClient.d.ts +14 -0
- package/dist/react-native/DataLakeLeaseClient.d.ts.map +1 -0
- package/dist/react-native/DataLakeLeaseClient.js +45 -0
- package/dist/react-native/DataLakeLeaseClient.js.map +1 -0
- package/dist/react-native/DataLakeServiceClient.d.ts +281 -0
- package/dist/react-native/DataLakeServiceClient.d.ts.map +1 -0
- package/dist/react-native/DataLakeServiceClient.js +368 -0
- package/dist/react-native/DataLakeServiceClient.js.map +1 -0
- package/dist/react-native/Pipeline.d.ts +52 -0
- package/dist/react-native/Pipeline.d.ts.map +1 -0
- package/dist/react-native/Pipeline.js +216 -0
- package/dist/react-native/Pipeline.js.map +1 -0
- package/dist/react-native/StorageClient.d.ts +61 -0
- package/dist/react-native/StorageClient.d.ts.map +1 -0
- package/dist/react-native/StorageClient.js +51 -0
- package/dist/react-native/StorageClient.js.map +1 -0
- package/dist/react-native/StorageContextClient.d.ts +9 -0
- package/dist/react-native/StorageContextClient.d.ts.map +1 -0
- package/dist/react-native/StorageContextClient.js +35 -0
- package/dist/react-native/StorageContextClient.js.map +1 -0
- package/dist/react-native/clients.d.ts +689 -0
- package/dist/react-native/clients.d.ts.map +1 -0
- package/dist/react-native/clients.js +1189 -0
- package/dist/react-native/clients.js.map +1 -0
- package/dist/react-native/credentials/StorageSharedKeyCredential.d.ts +2 -0
- package/dist/react-native/credentials/StorageSharedKeyCredential.d.ts.map +1 -0
- package/dist/react-native/credentials/StorageSharedKeyCredential.js +4 -0
- package/dist/react-native/credentials/StorageSharedKeyCredential.js.map +1 -0
- package/dist/react-native/credentials/UserDelegationKeyCredential.d.ts +34 -0
- package/dist/react-native/credentials/UserDelegationKeyCredential.d.ts.map +1 -0
- package/dist/react-native/credentials/UserDelegationKeyCredential.js +31 -0
- package/dist/react-native/credentials/UserDelegationKeyCredential.js.map +1 -0
- package/dist/react-native/generated/src/index.d.ts +4 -0
- package/dist/react-native/generated/src/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/index.js +11 -0
- package/dist/react-native/generated/src/index.js.map +1 -0
- package/dist/react-native/generated/src/models/index.d.ts +1091 -0
- package/dist/react-native/generated/src/models/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/index.js +16 -0
- package/dist/react-native/generated/src/models/index.js.map +1 -0
- package/dist/react-native/generated/src/models/mappers.d.ts +53 -0
- package/dist/react-native/generated/src/models/mappers.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/mappers.js +2446 -0
- package/dist/react-native/generated/src/models/mappers.js.map +1 -0
- package/dist/react-native/generated/src/models/parameters.d.ts +87 -0
- package/dist/react-native/generated/src/models/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/src/models/parameters.js +948 -0
- package/dist/react-native/generated/src/models/parameters.js.map +1 -0
- package/dist/react-native/generated/src/operations/fileSystemOperations.d.ts +55 -0
- package/dist/react-native/generated/src/operations/fileSystemOperations.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/fileSystemOperations.js +231 -0
- package/dist/react-native/generated/src/operations/fileSystemOperations.js.map +1 -0
- package/dist/react-native/generated/src/operations/index.d.ts +4 -0
- package/dist/react-native/generated/src/operations/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/index.js +11 -0
- package/dist/react-native/generated/src/operations/index.js.map +1 -0
- package/dist/react-native/generated/src/operations/pathOperations.d.ts +120 -0
- package/dist/react-native/generated/src/operations/pathOperations.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/pathOperations.js +591 -0
- package/dist/react-native/generated/src/operations/pathOperations.js.map +1 -0
- package/dist/react-native/generated/src/operations/service.d.ts +18 -0
- package/dist/react-native/generated/src/operations/service.d.ts.map +1 -0
- package/dist/react-native/generated/src/operations/service.js +58 -0
- package/dist/react-native/generated/src/operations/service.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/fileSystemOperations.d.ts +47 -0
- package/dist/react-native/generated/src/operationsInterfaces/fileSystemOperations.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/fileSystemOperations.js +9 -0
- package/dist/react-native/generated/src/operationsInterfaces/fileSystemOperations.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts +4 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.js +11 -0
- package/dist/react-native/generated/src/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/pathOperations.d.ts +112 -0
- package/dist/react-native/generated/src/operationsInterfaces/pathOperations.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/pathOperations.js +9 -0
- package/dist/react-native/generated/src/operationsInterfaces/pathOperations.js.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/service.d.ts +10 -0
- package/dist/react-native/generated/src/operationsInterfaces/service.d.ts.map +1 -0
- package/dist/react-native/generated/src/operationsInterfaces/service.js +9 -0
- package/dist/react-native/generated/src/operationsInterfaces/service.js.map +1 -0
- package/dist/react-native/generated/src/storageClient.d.ts +20 -0
- package/dist/react-native/generated/src/storageClient.d.ts.map +1 -0
- package/dist/react-native/generated/src/storageClient.js +47 -0
- package/dist/react-native/generated/src/storageClient.js.map +1 -0
- package/dist/react-native/index.d.ts +23 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +23 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/log.d.ts +5 -0
- package/dist/react-native/log.d.ts.map +1 -0
- package/dist/react-native/log.js +8 -0
- package/dist/react-native/log.js.map +1 -0
- package/dist/react-native/models.d.ts +1318 -0
- package/dist/react-native/models.d.ts.map +1 -0
- package/dist/react-native/models.internal.d.ts +2 -0
- package/dist/react-native/models.internal.d.ts.map +1 -0
- package/dist/react-native/models.internal.js +4 -0
- package/dist/react-native/models.internal.js.map +1 -0
- package/dist/react-native/models.js +53 -0
- package/dist/react-native/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/sas/AccountSASPermissions.d.ts +61 -0
- package/dist/react-native/sas/AccountSASPermissions.d.ts.map +1 -0
- package/dist/react-native/sas/AccountSASPermissions.js +128 -0
- package/dist/react-native/sas/AccountSASPermissions.js.map +1 -0
- package/dist/react-native/sas/AccountSASResourceTypes.d.ts +38 -0
- package/dist/react-native/sas/AccountSASResourceTypes.d.ts.map +1 -0
- package/dist/react-native/sas/AccountSASResourceTypes.js +72 -0
- package/dist/react-native/sas/AccountSASResourceTypes.js.map +1 -0
- package/dist/react-native/sas/AccountSASServices.d.ts +40 -0
- package/dist/react-native/sas/AccountSASServices.d.ts.map +1 -0
- package/dist/react-native/sas/AccountSASServices.js +80 -0
- package/dist/react-native/sas/AccountSASServices.js.map +1 -0
- package/dist/react-native/sas/AccountSASSignatureValues.d.ts +78 -0
- package/dist/react-native/sas/AccountSASSignatureValues.d.ts.map +1 -0
- package/dist/react-native/sas/AccountSASSignatureValues.js +72 -0
- package/dist/react-native/sas/AccountSASSignatureValues.js.map +1 -0
- package/dist/react-native/sas/DataLakeSASPermissions.d.ts +65 -0
- package/dist/react-native/sas/DataLakeSASPermissions.d.ts.map +1 -0
- package/dist/react-native/sas/DataLakeSASPermissions.js +135 -0
- package/dist/react-native/sas/DataLakeSASPermissions.js.map +1 -0
- package/dist/react-native/sas/DataLakeSASSignatureValues.d.ts +205 -0
- package/dist/react-native/sas/DataLakeSASSignatureValues.d.ts.map +1 -0
- package/dist/react-native/sas/DataLakeSASSignatureValues.js +718 -0
- package/dist/react-native/sas/DataLakeSASSignatureValues.js.map +1 -0
- package/dist/react-native/sas/DirectorySASPermissions.d.ts +69 -0
- package/dist/react-native/sas/DirectorySASPermissions.d.ts.map +1 -0
- package/dist/react-native/sas/DirectorySASPermissions.js +145 -0
- package/dist/react-native/sas/DirectorySASPermissions.js.map +1 -0
- package/dist/react-native/sas/FileSystemSASPermissions.d.ts +69 -0
- package/dist/react-native/sas/FileSystemSASPermissions.d.ts.map +1 -0
- package/dist/react-native/sas/FileSystemSASPermissions.js +145 -0
- package/dist/react-native/sas/FileSystemSASPermissions.js.map +1 -0
- package/dist/react-native/sas/SASQueryParameters.d.ts +309 -0
- package/dist/react-native/sas/SASQueryParameters.d.ts.map +1 -0
- package/dist/react-native/sas/SASQueryParameters.js +248 -0
- package/dist/react-native/sas/SASQueryParameters.js.map +1 -0
- package/dist/react-native/sas/SasIPRange.d.ts +24 -0
- package/dist/react-native/sas/SasIPRange.d.ts.map +1 -0
- package/dist/react-native/sas/SasIPRange.js +13 -0
- package/dist/react-native/sas/SasIPRange.js.map +1 -0
- package/dist/react-native/transforms.d.ts +51 -0
- package/dist/react-native/transforms.d.ts.map +1 -0
- package/dist/react-native/transforms.js +337 -0
- package/dist/react-native/transforms.js.map +1 -0
- package/dist/react-native/utils/Batch.d.ts +68 -0
- package/dist/react-native/utils/Batch.d.ts.map +1 -0
- package/dist/react-native/utils/Batch.js +122 -0
- package/dist/react-native/utils/Batch.js.map +1 -0
- package/dist/react-native/utils/BufferScheduler.d.ts +158 -0
- package/dist/react-native/utils/BufferScheduler.d.ts.map +1 -0
- package/dist/react-native/utils/BufferScheduler.js +264 -0
- package/dist/react-native/utils/BufferScheduler.js.map +1 -0
- package/dist/react-native/utils/DataLakeAclChangeFailedError.d.ts +16 -0
- package/dist/react-native/utils/DataLakeAclChangeFailedError.d.ts.map +1 -0
- package/dist/react-native/utils/DataLakeAclChangeFailedError.js +13 -0
- package/dist/react-native/utils/DataLakeAclChangeFailedError.js.map +1 -0
- package/dist/react-native/utils/PathClientInternal.d.ts +24 -0
- package/dist/react-native/utils/PathClientInternal.d.ts.map +1 -0
- package/dist/react-native/utils/PathClientInternal.js +24 -0
- package/dist/react-native/utils/PathClientInternal.js.map +1 -0
- package/dist/react-native/utils/constants.d.ts +70 -0
- package/dist/react-native/utils/constants.d.ts.map +1 -0
- package/dist/react-native/utils/constants.js +244 -0
- package/dist/react-native/utils/constants.js.map +1 -0
- package/dist/react-native/utils/tracing.d.ts +6 -0
- package/dist/react-native/utils/tracing.d.ts.map +1 -0
- package/dist/react-native/utils/tracing.js +14 -0
- package/dist/react-native/utils/tracing.js.map +1 -0
- package/dist/react-native/utils/utils.common.d.ts +236 -0
- package/dist/react-native/utils/utils.common.d.ts.map +1 -0
- package/dist/react-native/utils/utils.common.js +564 -0
- package/dist/react-native/utils/utils.common.js.map +1 -0
- package/dist/react-native/utils/utils.d.ts +29 -0
- package/dist/react-native/utils/utils.d.ts.map +1 -0
- package/{dist-esm/storage-blob/src/utils/utils.node.js → dist/react-native/utils/utils.js} +4 -51
- package/dist/react-native/utils/utils.js.map +1 -0
- package/package.json +70 -83
- package/dist/index.js +0 -9735
- package/dist/index.js.map +0 -1
- package/dist-esm/storage-blob/src/StorageBrowserPolicyFactory.js +0 -19
- package/dist-esm/storage-blob/src/StorageBrowserPolicyFactory.js.map +0 -1
- package/dist-esm/storage-blob/src/StorageRetryPolicyFactory.js +0 -26
- package/dist-esm/storage-blob/src/StorageRetryPolicyFactory.js.map +0 -1
- package/dist-esm/storage-blob/src/log.js.map +0 -1
- package/dist-esm/storage-blob/src/policies/AnonymousCredentialPolicy.js +0 -20
- package/dist-esm/storage-blob/src/policies/AnonymousCredentialPolicy.js.map +0 -1
- package/dist-esm/storage-blob/src/policies/CredentialPolicy.js +0 -29
- package/dist-esm/storage-blob/src/policies/CredentialPolicy.js.map +0 -1
- package/dist-esm/storage-blob/src/policies/RequestPolicy.js +0 -40
- package/dist-esm/storage-blob/src/policies/RequestPolicy.js.map +0 -1
- package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js +0 -47
- package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js.map +0 -1
- package/dist-esm/storage-blob/src/policies/StorageBrowserPolicyV2.js +0 -31
- package/dist-esm/storage-blob/src/policies/StorageBrowserPolicyV2.js.map +0 -1
- package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.browser.js +0 -18
- package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.browser.js.map +0 -1
- package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.js +0 -27
- package/dist-esm/storage-blob/src/policies/StorageCorrectContentLengthPolicy.js.map +0 -1
- package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js +0 -229
- package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js.map +0 -1
- package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js +0 -180
- package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js.map +0 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js +0 -141
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js.map +0 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.js +0 -18
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.js.map +0 -1
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js +0 -132
- package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js.map +0 -1
- package/dist-esm/storage-blob/src/utils/Batch.js.map +0 -1
- package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js +0 -111
- package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js.map +0 -1
- package/dist-esm/storage-blob/src/utils/Mutex.js +0 -65
- package/dist-esm/storage-blob/src/utils/Mutex.js.map +0 -1
- package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js +0 -119
- package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js.map +0 -1
- package/dist-esm/storage-blob/src/utils/SharedKeyComparator.js +0 -73
- package/dist-esm/storage-blob/src/utils/SharedKeyComparator.js.map +0 -1
- package/dist-esm/storage-blob/src/utils/cache.js +0 -11
- package/dist-esm/storage-blob/src/utils/cache.js.map +0 -1
- package/dist-esm/storage-blob/src/utils/constants.js.map +0 -1
- package/dist-esm/storage-blob/src/utils/tracing.js.map +0 -1
- package/dist-esm/storage-blob/src/utils/utils.common.js.map +0 -1
- package/dist-esm/storage-blob/src/utils/utils.node.js.map +0 -1
- package/dist-esm/storage-common/src/BufferScheduler.browser.js +0 -8
- package/dist-esm/storage-common/src/BufferScheduler.browser.js.map +0 -1
- package/dist-esm/storage-common/src/BufferScheduler.js.map +0 -1
- package/dist-esm/storage-common/src/BuffersStream.js +0 -83
- package/dist-esm/storage-common/src/BuffersStream.js.map +0 -1
- package/dist-esm/storage-common/src/PooledBuffer.js +0 -87
- package/dist-esm/storage-common/src/PooledBuffer.js.map +0 -1
- package/dist-esm/storage-common/src/index.browser.js +0 -4
- package/dist-esm/storage-common/src/index.browser.js.map +0 -1
- package/dist-esm/storage-common/src/index.js +0 -4
- package/dist-esm/storage-common/src/index.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/DataLakeFileSystemClient.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/DataLakeLeaseClient.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/DataLakeServiceClient.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/Pipeline.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/StorageClient.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/StorageContextClient.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/clients.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/credentials/StorageSharedKeyCredential.browser.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/credentials/StorageSharedKeyCredential.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/credentials/UserDelegationKeyCredential.browser.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/credentials/UserDelegationKeyCredential.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/generated/src/index.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/generated/src/models/index.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/generated/src/models/mappers.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/generated/src/models/parameters.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/generated/src/operations/fileSystemOperations.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/generated/src/operations/index.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/generated/src/operations/pathOperations.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/generated/src/operations/service.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/generated/src/operationsInterfaces/fileSystemOperations.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/generated/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/generated/src/operationsInterfaces/pathOperations.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/generated/src/operationsInterfaces/service.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/generated/src/storageClient.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/index.browser.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/index.js +0 -23
- package/dist-esm/storage-file-datalake/src/index.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/log.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/models.internal.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/models.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/sas/AccountSASPermissions.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/sas/AccountSASResourceTypes.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/sas/AccountSASServices.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/sas/AccountSASSignatureValues.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/sas/DataLakeSASPermissions.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/sas/DataLakeSASSignatureValues.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/sas/DirectorySASPermissions.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/sas/FileSystemSASPermissions.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/sas/SASQueryParameters.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/sas/SasIPRange.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/transforms.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/utils/Batch.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/utils/BufferScheduler.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/utils/DataLakeAclChangeFailedError.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/utils/PathClientInternal.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/utils/constants.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/utils/tracing.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/utils/utils.browser.js +0 -39
- package/dist-esm/storage-file-datalake/src/utils/utils.browser.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/utils/utils.common.js.map +0 -1
- package/dist-esm/storage-file-datalake/src/utils/utils.node.js.map +0 -1
- package/types/latest/storage-file-datalake.d.ts +0 -5102
- /package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/models/index.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/models/mappers.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/operationsInterfaces/fileSystemOperations.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/operationsInterfaces/pathOperations.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/browser}/generated/src/operationsInterfaces/service.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/browser}/log.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/browser}/models.internal.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/AccountSASPermissions.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/AccountSASResourceTypes.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/AccountSASServices.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/DataLakeSASPermissions.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/DirectorySASPermissions.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/FileSystemSASPermissions.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/browser}/sas/SasIPRange.js +0 -0
- /package/{dist-esm/storage-blob/src → dist/browser}/utils/Batch.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/browser}/utils/DataLakeAclChangeFailedError.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/esm}/credentials/StorageSharedKeyCredential.js +0 -0
- /package/{dist-esm/storage-file-datalake/src → dist/esm}/utils/Batch.js +0 -0
|
@@ -0,0 +1,683 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataLakeFileSystemClient = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const storage_blob_1 = require("@azure/storage-blob");
|
|
6
|
+
const Pipeline_js_1 = require("./Pipeline.js");
|
|
7
|
+
const StorageSharedKeyCredential_js_1 = require("./credentials/StorageSharedKeyCredential.js");
|
|
8
|
+
const storage_blob_2 = require("@azure/storage-blob");
|
|
9
|
+
const DataLakeLeaseClient_js_1 = require("./DataLakeLeaseClient.js");
|
|
10
|
+
const index_js_1 = require("./generated/src/operations/index.js");
|
|
11
|
+
const StorageClient_js_1 = require("./StorageClient.js");
|
|
12
|
+
const transforms_js_1 = require("./transforms.js");
|
|
13
|
+
const tracing_js_1 = require("./utils/tracing.js");
|
|
14
|
+
const utils_common_js_1 = require("./utils/utils.common.js");
|
|
15
|
+
const clients_js_1 = require("./clients.js");
|
|
16
|
+
const DataLakeSASSignatureValues_js_1 = require("./sas/DataLakeSASSignatureValues.js");
|
|
17
|
+
const constants_js_1 = require("./utils/constants.js");
|
|
18
|
+
const PathClientInternal_js_1 = require("./utils/PathClientInternal.js");
|
|
19
|
+
/**
|
|
20
|
+
* A DataLakeFileSystemClient represents a URL to the Azure Storage file system
|
|
21
|
+
* allowing you to manipulate its directories and files.
|
|
22
|
+
*/
|
|
23
|
+
class DataLakeFileSystemClient extends StorageClient_js_1.StorageClient {
|
|
24
|
+
constructor(url, credentialOrPipeline,
|
|
25
|
+
// Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.
|
|
26
|
+
/* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */
|
|
27
|
+
options) {
|
|
28
|
+
if ((0, Pipeline_js_1.isPipelineLike)(credentialOrPipeline)) {
|
|
29
|
+
super(url, credentialOrPipeline);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
let credential;
|
|
33
|
+
if (credentialOrPipeline === undefined) {
|
|
34
|
+
credential = new storage_blob_2.AnonymousCredential();
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
credential = credentialOrPipeline;
|
|
38
|
+
}
|
|
39
|
+
const pipeline = (0, Pipeline_js_1.newPipeline)(credential, options);
|
|
40
|
+
super(url, pipeline);
|
|
41
|
+
}
|
|
42
|
+
this.fileSystemContext = new index_js_1.FileSystemOperationsImpl(this.storageClientContext);
|
|
43
|
+
this.fileSystemContextToBlobEndpoint = new index_js_1.FileSystemOperationsImpl(this.storageClientContextToBlobEndpoint);
|
|
44
|
+
this.blobContainerClient = new storage_blob_1.ContainerClient(this.blobEndpointUrl, this.pipeline);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Name of current file system.
|
|
48
|
+
*
|
|
49
|
+
* @readonly
|
|
50
|
+
*/
|
|
51
|
+
get name() {
|
|
52
|
+
return this.blobContainerClient.containerName;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Creates a {@link DataLakeDirectoryClient} object under current file system.
|
|
56
|
+
*
|
|
57
|
+
* @param directoryName -
|
|
58
|
+
*/
|
|
59
|
+
// Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.
|
|
60
|
+
/* eslint-disable-next-line @azure/azure-sdk/ts-naming-subclients */
|
|
61
|
+
getDirectoryClient(directoryName) {
|
|
62
|
+
return new clients_js_1.DataLakeDirectoryClient((0, utils_common_js_1.appendToURLPath)(this.url, (0, utils_common_js_1.EscapePath)(directoryName)), this.pipeline);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Creates a {@link DataLakeFileClient} object under current file system.
|
|
66
|
+
*
|
|
67
|
+
* @param fileName -
|
|
68
|
+
*/
|
|
69
|
+
// Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.
|
|
70
|
+
/* eslint-disable-next-line @azure/azure-sdk/ts-naming-subclients */
|
|
71
|
+
getFileClient(fileName) {
|
|
72
|
+
return new clients_js_1.DataLakeFileClient((0, utils_common_js_1.appendToURLPath)(this.url, (0, utils_common_js_1.EscapePath)(fileName)), this.pipeline);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get a {@link DataLakeLeaseClient} that manages leases on the file system.
|
|
76
|
+
*
|
|
77
|
+
* @param proposeLeaseId - Optional. Initial proposed lease Id.
|
|
78
|
+
*/
|
|
79
|
+
getDataLakeLeaseClient(proposeLeaseId) {
|
|
80
|
+
return new DataLakeLeaseClient_js_1.DataLakeLeaseClient(this.blobContainerClient.getBlobLeaseClient(proposeLeaseId));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Creates a new file system under the specified account. If the file system with
|
|
84
|
+
* the same name already exists, the operation fails.
|
|
85
|
+
*
|
|
86
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-container
|
|
87
|
+
*
|
|
88
|
+
* @param options - Optional. Options when creating file system.
|
|
89
|
+
*/
|
|
90
|
+
async create(options = {}) {
|
|
91
|
+
return tracing_js_1.tracingClient.withSpan("DataLakeFileSystemClient-create", options, async (updatedOptions) => {
|
|
92
|
+
return this.blobContainerClient.create(Object.assign(Object.assign({}, options), { access: (0, transforms_js_1.toContainerPublicAccessType)(options.access), tracingOptions: updatedOptions.tracingOptions, containerEncryptionScope: options.fileSystemEncryptionScope }));
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Creates a new file system under the specified account. If the file system with
|
|
97
|
+
* the same name already exists, it is not changed.
|
|
98
|
+
*
|
|
99
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-container
|
|
100
|
+
*
|
|
101
|
+
* @param options -
|
|
102
|
+
*/
|
|
103
|
+
async createIfNotExists(options = {}) {
|
|
104
|
+
return tracing_js_1.tracingClient.withSpan("DataLakeFileSystemClient-createIfNotExists", options, async (updatedOptions) => {
|
|
105
|
+
return this.blobContainerClient.createIfNotExists(Object.assign(Object.assign({}, options), { access: (0, transforms_js_1.toContainerPublicAccessType)(options.access), containerEncryptionScope: options.fileSystemEncryptionScope, tracingOptions: updatedOptions.tracingOptions }));
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Returns true if the File system represented by this client exists; false otherwise.
|
|
110
|
+
*
|
|
111
|
+
* NOTE: use this function with care since an existing file system might be deleted by other clients or
|
|
112
|
+
* applications. Vice versa new file system with the same name might be added by other clients or
|
|
113
|
+
* applications after this function completes.
|
|
114
|
+
*
|
|
115
|
+
* @param options -
|
|
116
|
+
*/
|
|
117
|
+
async exists(options = {}) {
|
|
118
|
+
return tracing_js_1.tracingClient.withSpan("DataLakeFileSystemClient-exists", options, async (updatedOptions) => {
|
|
119
|
+
return this.blobContainerClient.exists(updatedOptions);
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Delete current file system.
|
|
124
|
+
*
|
|
125
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-container
|
|
126
|
+
*
|
|
127
|
+
* @param options - Optional. Options when deleting file system.
|
|
128
|
+
*/
|
|
129
|
+
async delete(options = {}) {
|
|
130
|
+
return tracing_js_1.tracingClient.withSpan("DataLakeFileSystemClient-delete", options, async (updatedOptions) => {
|
|
131
|
+
return this.blobContainerClient.delete(Object.assign(Object.assign({}, options), { tracingOptions: updatedOptions.tracingOptions }));
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Delete current file system if it exists.
|
|
136
|
+
*
|
|
137
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-container
|
|
138
|
+
*
|
|
139
|
+
* @param options -
|
|
140
|
+
*/
|
|
141
|
+
async deleteIfExists(options = {}) {
|
|
142
|
+
return tracing_js_1.tracingClient.withSpan("DataLakeFileSystemClient-deleteIfExists", options, async (updatedOptions) => {
|
|
143
|
+
return this.blobContainerClient.deleteIfExists(updatedOptions);
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Returns all user-defined metadata and system properties for the specified
|
|
148
|
+
* file system.
|
|
149
|
+
*
|
|
150
|
+
* WARNING: The `metadata` object returned in the response will have its keys in lowercase, even if
|
|
151
|
+
* they originally contained uppercase characters. This differs from the metadata keys returned by
|
|
152
|
+
* the `listFileSystems` method of {@link DataLakeServiceClient} using the `includeMetadata` option, which
|
|
153
|
+
* will retain their original casing.
|
|
154
|
+
*
|
|
155
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-container-properties
|
|
156
|
+
*
|
|
157
|
+
* @param options - Optional. Options when getting file system properties.
|
|
158
|
+
*/
|
|
159
|
+
async getProperties(options = {}) {
|
|
160
|
+
return tracing_js_1.tracingClient.withSpan("DataLakeFileSystemClient-getProperties", options, async (updatedOptions) => {
|
|
161
|
+
const rawResponse = await this.blobContainerClient.getProperties(Object.assign(Object.assign({}, options), { tracingOptions: updatedOptions.tracingOptions }));
|
|
162
|
+
// Transfer and rename blobPublicAccess to publicAccess
|
|
163
|
+
const response = rawResponse;
|
|
164
|
+
response.publicAccess = (0, transforms_js_1.toPublicAccessType)(rawResponse.blobPublicAccess);
|
|
165
|
+
response._response.parsedHeaders.publicAccess = response.publicAccess;
|
|
166
|
+
delete rawResponse.blobPublicAccess;
|
|
167
|
+
delete rawResponse._response.parsedHeaders.blobPublicAccess;
|
|
168
|
+
return response;
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Sets one or more user-defined name-value pairs for the specified file system.
|
|
173
|
+
*
|
|
174
|
+
* If no option provided, or no metadata defined in the parameter, the file system
|
|
175
|
+
* metadata will be removed.
|
|
176
|
+
*
|
|
177
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-container-metadata
|
|
178
|
+
*
|
|
179
|
+
* @param metadata - Replace existing metadata with this value.
|
|
180
|
+
* If no value provided the existing metadata will be removed.
|
|
181
|
+
* @param options - Optional. Options when setting file system metadata.
|
|
182
|
+
*/
|
|
183
|
+
async setMetadata(metadata, options = {}) {
|
|
184
|
+
return tracing_js_1.tracingClient.withSpan("DataLakeFileSystemClient-setMetadata", options, async (updatedOptions) => {
|
|
185
|
+
return this.blobContainerClient.setMetadata(metadata, Object.assign(Object.assign({}, options), { tracingOptions: updatedOptions.tracingOptions }));
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Gets the permissions for the specified file system. The permissions indicate
|
|
190
|
+
* whether file system data may be accessed publicly.
|
|
191
|
+
*
|
|
192
|
+
* WARNING: JavaScript Date will potentially lose precision when parsing startsOn and expiresOn strings.
|
|
193
|
+
* For example, new Date("2018-12-31T03:44:23.8827891Z").toISOString() will get "2018-12-31T03:44:23.882Z".
|
|
194
|
+
*
|
|
195
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-container-acl
|
|
196
|
+
*
|
|
197
|
+
* @param options - Optional. Options when getting file system access policy.
|
|
198
|
+
*/
|
|
199
|
+
async getAccessPolicy(options = {}) {
|
|
200
|
+
return tracing_js_1.tracingClient.withSpan("DataLakeFileSystemClient-getAccessPolicy", options, async (updatedOptions) => {
|
|
201
|
+
const rawResponse = await this.blobContainerClient.getAccessPolicy(Object.assign(Object.assign({}, options), { tracingOptions: updatedOptions.tracingOptions }));
|
|
202
|
+
// Transfer and rename blobPublicAccess to publicAccess
|
|
203
|
+
const response = rawResponse;
|
|
204
|
+
response.publicAccess = (0, transforms_js_1.toPublicAccessType)(rawResponse.blobPublicAccess);
|
|
205
|
+
response._response.parsedHeaders.publicAccess = response.publicAccess;
|
|
206
|
+
delete rawResponse.blobPublicAccess;
|
|
207
|
+
delete rawResponse._response.parsedHeaders.blobPublicAccess;
|
|
208
|
+
return response;
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Sets the permissions for the specified file system. The permissions indicate
|
|
213
|
+
* whether directories or files in a file system may be accessed publicly.
|
|
214
|
+
*
|
|
215
|
+
* When you set permissions for a file system, the existing permissions are replaced.
|
|
216
|
+
* If no access or containerAcl provided, the existing file system ACL will be
|
|
217
|
+
* removed.
|
|
218
|
+
*
|
|
219
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-container-acl
|
|
220
|
+
*
|
|
221
|
+
* @param access - Optional. The level of public access to data in the file system.
|
|
222
|
+
* @param fileSystemAcl - Optional. Array of elements each having a unique Id and details of the access policy.
|
|
223
|
+
* @param options - Optional. Options when setting file system access policy.
|
|
224
|
+
*/
|
|
225
|
+
async setAccessPolicy(access, fileSystemAcl, options = {}) {
|
|
226
|
+
return tracing_js_1.tracingClient.withSpan("DataLakeFileSystemClient-setAccessPolicy", options, async (updatedOptions) => {
|
|
227
|
+
return this.blobContainerClient.setAccessPolicy((0, transforms_js_1.toContainerPublicAccessType)(access), fileSystemAcl, Object.assign(Object.assign({}, options), { tracingOptions: updatedOptions.tracingOptions }));
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Returns an async iterable iterator to list all the paths (directories and files)
|
|
232
|
+
* under the specified file system.
|
|
233
|
+
*
|
|
234
|
+
* .byPage() returns an async iterable iterator to list the paths in pages.
|
|
235
|
+
*
|
|
236
|
+
* Example using `for await` syntax:
|
|
237
|
+
*
|
|
238
|
+
* ```ts snippet:ReadmeSampleListPaths
|
|
239
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
240
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
241
|
+
*
|
|
242
|
+
* const account = "<account>";
|
|
243
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
244
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
245
|
+
* new DefaultAzureCredential(),
|
|
246
|
+
* );
|
|
247
|
+
*
|
|
248
|
+
* const fileSystemName = "<file system name>";
|
|
249
|
+
* const fileSystemClient = datalakeServiceClient.getFileSystemClient(fileSystemName);
|
|
250
|
+
*
|
|
251
|
+
* let i = 1;
|
|
252
|
+
* const paths = fileSystemClient.listPaths();
|
|
253
|
+
* for await (const path of paths) {
|
|
254
|
+
* console.log(`Path ${i++}: ${path.name}, is directory: ${path.isDirectory}`);
|
|
255
|
+
* }
|
|
256
|
+
* ```
|
|
257
|
+
*
|
|
258
|
+
* Example using `iter.next()`:
|
|
259
|
+
*
|
|
260
|
+
* ```ts snippet:ReadmeSampleListPaths_Iterator
|
|
261
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
262
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
263
|
+
*
|
|
264
|
+
* const account = "<account>";
|
|
265
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
266
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
267
|
+
* new DefaultAzureCredential(),
|
|
268
|
+
* );
|
|
269
|
+
*
|
|
270
|
+
* const fileSystemName = "<file system name>";
|
|
271
|
+
* const fileSystemClient = datalakeServiceClient.getFileSystemClient(fileSystemName);
|
|
272
|
+
*
|
|
273
|
+
* let i = 1;
|
|
274
|
+
* const paths = fileSystemClient.listPaths();
|
|
275
|
+
* let { value, done } = await paths.next();
|
|
276
|
+
* while (!done) {
|
|
277
|
+
* console.log(`Path ${i++}: ${value.name}, is directory: ${value.isDirectory}`);
|
|
278
|
+
* ({ value, done } = await paths.next());
|
|
279
|
+
* }
|
|
280
|
+
* ```
|
|
281
|
+
*
|
|
282
|
+
* Example using `byPage()`:
|
|
283
|
+
*
|
|
284
|
+
* ```ts snippet:ReadmeSampleListPaths_ByPage
|
|
285
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
286
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
287
|
+
*
|
|
288
|
+
* const account = "<account>";
|
|
289
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
290
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
291
|
+
* new DefaultAzureCredential(),
|
|
292
|
+
* );
|
|
293
|
+
*
|
|
294
|
+
* const fileSystemName = "<file system name>";
|
|
295
|
+
* const fileSystemClient = datalakeServiceClient.getFileSystemClient(fileSystemName);
|
|
296
|
+
*
|
|
297
|
+
* let i = 1;
|
|
298
|
+
* for await (const response of fileSystemClient.listPaths().byPage({ maxPageSize: 20 })) {
|
|
299
|
+
* if (response.pathItems) {
|
|
300
|
+
* for (const path of response.pathItems) {
|
|
301
|
+
* console.log(`Path ${i++}: ${path.name}, is directory: ${path.isDirectory}`);
|
|
302
|
+
* }
|
|
303
|
+
* }
|
|
304
|
+
* }
|
|
305
|
+
* ```
|
|
306
|
+
*
|
|
307
|
+
* Example using paging with a marker:
|
|
308
|
+
*
|
|
309
|
+
* ```ts snippet:ReadmeSampleListPaths_Continuation
|
|
310
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
311
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
312
|
+
*
|
|
313
|
+
* const account = "<account>";
|
|
314
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
315
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
316
|
+
* new DefaultAzureCredential(),
|
|
317
|
+
* );
|
|
318
|
+
*
|
|
319
|
+
* const fileSystemName = "<file system name>";
|
|
320
|
+
* const fileSystemClient = datalakeServiceClient.getFileSystemClient(fileSystemName);
|
|
321
|
+
*
|
|
322
|
+
* let i = 1;
|
|
323
|
+
* let paths = fileSystemClient.listPaths().byPage({ maxPageSize: 2 });
|
|
324
|
+
* let response = (await paths.next()).value;
|
|
325
|
+
* // Prints 2 paths
|
|
326
|
+
* if (response.pathItems) {
|
|
327
|
+
* for (const path of response.pathItems) {
|
|
328
|
+
* console.log(`Path ${i++}: ${path.name}, is directory: ${path.isDirectory}`);
|
|
329
|
+
* }
|
|
330
|
+
* }
|
|
331
|
+
* // Gets next marker
|
|
332
|
+
* let marker = response.continuationToken;
|
|
333
|
+
* // Passing next marker as continuationToken
|
|
334
|
+
* paths = fileSystemClient.listPaths().byPage({ continuationToken: marker, maxPageSize: 10 });
|
|
335
|
+
* response = (await paths.next()).value;
|
|
336
|
+
* // Prints 10 paths
|
|
337
|
+
* if (response.pathItems) {
|
|
338
|
+
* for (const path of response.pathItems) {
|
|
339
|
+
* console.log(`Path ${i++}: ${path.name}, is directory: ${path.isDirectory}`);
|
|
340
|
+
* }
|
|
341
|
+
* }
|
|
342
|
+
* ```
|
|
343
|
+
*
|
|
344
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/list-blobs
|
|
345
|
+
*
|
|
346
|
+
* @param options - Optional. Options when listing paths.
|
|
347
|
+
*/
|
|
348
|
+
listPaths(options = {}) {
|
|
349
|
+
options.path = options.path === "" ? undefined : options.path;
|
|
350
|
+
const iter = this.listItems(options);
|
|
351
|
+
return {
|
|
352
|
+
next() {
|
|
353
|
+
return iter.next();
|
|
354
|
+
},
|
|
355
|
+
[Symbol.asyncIterator]() {
|
|
356
|
+
return this;
|
|
357
|
+
},
|
|
358
|
+
byPage: (settings = {}) => {
|
|
359
|
+
return this.listSegments(settings.continuationToken, Object.assign({ maxResults: settings.maxPageSize }, options));
|
|
360
|
+
},
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
listItems() {
|
|
364
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listItems_1(options = {}) {
|
|
365
|
+
var _a, e_1, _b, _c;
|
|
366
|
+
try {
|
|
367
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listSegments(undefined, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
368
|
+
_c = _f.value;
|
|
369
|
+
_d = false;
|
|
370
|
+
const response = _c;
|
|
371
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(response.pathItems || [])));
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
375
|
+
finally {
|
|
376
|
+
try {
|
|
377
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
378
|
+
}
|
|
379
|
+
finally { if (e_1) throw e_1.error; }
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
listSegments(continuation_1) {
|
|
384
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listSegments_1(continuation, options = {}) {
|
|
385
|
+
let response;
|
|
386
|
+
if (!!continuation || continuation === undefined) {
|
|
387
|
+
do {
|
|
388
|
+
response = yield tslib_1.__await(this.listPathsSegment(continuation, options));
|
|
389
|
+
continuation = response.continuation;
|
|
390
|
+
yield yield tslib_1.__await(response);
|
|
391
|
+
} while (continuation);
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
async listPathsSegment(continuation, options = {}) {
|
|
396
|
+
return tracing_js_1.tracingClient.withSpan("DataLakeFileSystemClient-listPathsSegment", options, async (updatedOptions) => {
|
|
397
|
+
const rawResponse = await this.fileSystemContext.listPaths(options.recursive || false, Object.assign(Object.assign({ continuation }, updatedOptions), { upn: options.userPrincipalName }));
|
|
398
|
+
const response = rawResponse;
|
|
399
|
+
response.pathItems = [];
|
|
400
|
+
for (const path of rawResponse.paths || []) {
|
|
401
|
+
response.pathItems.push(Object.assign(Object.assign({}, path), { permissions: (0, transforms_js_1.toPermissions)(path.permissions), createdOn: (0, utils_common_js_1.windowsFileTimeTicksToTime)(path.creationTime), expiresOn: (0, utils_common_js_1.windowsFileTimeTicksToTime)(path.expiryTime) }));
|
|
402
|
+
}
|
|
403
|
+
delete rawResponse.paths;
|
|
404
|
+
return response;
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Returns an async iterable iterator to list all the paths (directories and files)
|
|
409
|
+
* under the specified file system.
|
|
410
|
+
*
|
|
411
|
+
* .byPage() returns an async iterable iterator to list the paths in pages.
|
|
412
|
+
*
|
|
413
|
+
* Example using `for await` syntax:
|
|
414
|
+
*
|
|
415
|
+
* ```ts snippet:ReadmeSampleListDeletedPaths
|
|
416
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
417
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
418
|
+
*
|
|
419
|
+
* const account = "<account>";
|
|
420
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
421
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
422
|
+
* new DefaultAzureCredential(),
|
|
423
|
+
* );
|
|
424
|
+
*
|
|
425
|
+
* const fileSystemName = "<file system name>";
|
|
426
|
+
* const fileSystemClient = datalakeServiceClient.getFileSystemClient(fileSystemName);
|
|
427
|
+
*
|
|
428
|
+
* let i = 1;
|
|
429
|
+
* const deletedPaths = fileSystemClient.listDeletedPaths();
|
|
430
|
+
* for await (const deletedPath of deletedPaths) {
|
|
431
|
+
* console.log(`Deleted path ${i++}: ${deletedPath.name}, deleted on: ${deletedPath.deletedOn}`);
|
|
432
|
+
* }
|
|
433
|
+
* ```
|
|
434
|
+
*
|
|
435
|
+
* Example using `iter.next()`:
|
|
436
|
+
*
|
|
437
|
+
* ```ts snippet:ReadmeSampleListDeletedPaths_Iterator
|
|
438
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
439
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
440
|
+
*
|
|
441
|
+
* const account = "<account>";
|
|
442
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
443
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
444
|
+
* new DefaultAzureCredential(),
|
|
445
|
+
* );
|
|
446
|
+
*
|
|
447
|
+
* const fileSystemName = "<file system name>";
|
|
448
|
+
* const fileSystemClient = datalakeServiceClient.getFileSystemClient(fileSystemName);
|
|
449
|
+
*
|
|
450
|
+
* let i = 1;
|
|
451
|
+
* const deletedPaths = fileSystemClient.listDeletedPaths();
|
|
452
|
+
* let { value, done } = await deletedPaths.next();
|
|
453
|
+
* while (!done) {
|
|
454
|
+
* console.log(`Deleted path ${i++}: ${value.name}, deleted on: ${value.deletedOn}`);
|
|
455
|
+
* ({ value, done } = await deletedPaths.next());
|
|
456
|
+
* }
|
|
457
|
+
* ```
|
|
458
|
+
*
|
|
459
|
+
* Example using `byPage()`:
|
|
460
|
+
*
|
|
461
|
+
* ```ts snippet:ReadmeSampleListDeletedPaths_ByPage
|
|
462
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
463
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
464
|
+
*
|
|
465
|
+
* const account = "<account>";
|
|
466
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
467
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
468
|
+
* new DefaultAzureCredential(),
|
|
469
|
+
* );
|
|
470
|
+
*
|
|
471
|
+
* const fileSystemName = "<file system name>";
|
|
472
|
+
* const fileSystemClient = datalakeServiceClient.getFileSystemClient(fileSystemName);
|
|
473
|
+
*
|
|
474
|
+
* let i = 1;
|
|
475
|
+
* for await (const response of fileSystemClient.listDeletedPaths().byPage({ maxPageSize: 20 })) {
|
|
476
|
+
* if (response.pathItems) {
|
|
477
|
+
* for (const deletedPath of response.pathItems) {
|
|
478
|
+
* console.log(`Deleted path ${i++}: ${deletedPath.name}, deleted on: ${deletedPath.deletedOn}`);
|
|
479
|
+
* }
|
|
480
|
+
* }
|
|
481
|
+
* }
|
|
482
|
+
* ```
|
|
483
|
+
*
|
|
484
|
+
* Example using paging with a marker:
|
|
485
|
+
*
|
|
486
|
+
* ```ts snippet:ReadmeSampleListDeletedPaths_Continuation
|
|
487
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
488
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
489
|
+
*
|
|
490
|
+
* const account = "<account>";
|
|
491
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
492
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
493
|
+
* new DefaultAzureCredential(),
|
|
494
|
+
* );
|
|
495
|
+
*
|
|
496
|
+
* const fileSystemName = "<file system name>";
|
|
497
|
+
* const fileSystemClient = datalakeServiceClient.getFileSystemClient(fileSystemName);
|
|
498
|
+
*
|
|
499
|
+
* let i = 1;
|
|
500
|
+
* let deletedPaths = fileSystemClient.listDeletedPaths().byPage({ maxPageSize: 2 });
|
|
501
|
+
* let response = (await deletedPaths.next()).value;
|
|
502
|
+
* // Prints 2 deleted paths
|
|
503
|
+
* if (response.deletedPathItems) {
|
|
504
|
+
* for (const deletedPath of response.deletedPathItems) {
|
|
505
|
+
* console.log(`Deleted path ${i++}: ${deletedPath.name}, deleted on: ${deletedPath.deletedOn}`);
|
|
506
|
+
* }
|
|
507
|
+
* }
|
|
508
|
+
* // Gets next marker
|
|
509
|
+
* let marker = response.continuationToken;
|
|
510
|
+
* // Passing next marker as continuationToken
|
|
511
|
+
* deletedPaths = fileSystemClient
|
|
512
|
+
* .listDeletedPaths()
|
|
513
|
+
* .byPage({ continuationToken: marker, maxPageSize: 10 });
|
|
514
|
+
* response = (await deletedPaths.next()).value;
|
|
515
|
+
* // Prints 10 deleted paths
|
|
516
|
+
* if (response.deletedPathItems) {
|
|
517
|
+
* for (const deletedPath of response.deletedPathItems) {
|
|
518
|
+
* console.log(`Deleted path ${i++}: ${deletedPath.name}, deleted on: ${deletedPath.deletedOn}`);
|
|
519
|
+
* }
|
|
520
|
+
* }
|
|
521
|
+
* ```
|
|
522
|
+
*
|
|
523
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/list-blobs
|
|
524
|
+
*
|
|
525
|
+
* @param options - Optional. Options when listing deleted paths.
|
|
526
|
+
*/
|
|
527
|
+
listDeletedPaths(options = {}) {
|
|
528
|
+
const iter = this.listDeletedItems(options);
|
|
529
|
+
return {
|
|
530
|
+
next() {
|
|
531
|
+
return iter.next();
|
|
532
|
+
},
|
|
533
|
+
[Symbol.asyncIterator]() {
|
|
534
|
+
return this;
|
|
535
|
+
},
|
|
536
|
+
byPage: (settings = {}) => {
|
|
537
|
+
return this.listDeletedSegments(settings.continuationToken, Object.assign({ maxResults: settings.maxPageSize }, options));
|
|
538
|
+
},
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
listDeletedItems() {
|
|
542
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listDeletedItems_1(options = {}) {
|
|
543
|
+
var _a, e_2, _b, _c;
|
|
544
|
+
try {
|
|
545
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listDeletedSegments(undefined, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
546
|
+
_c = _f.value;
|
|
547
|
+
_d = false;
|
|
548
|
+
const response = _c;
|
|
549
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(response.pathItems || [])));
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
553
|
+
finally {
|
|
554
|
+
try {
|
|
555
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
556
|
+
}
|
|
557
|
+
finally { if (e_2) throw e_2.error; }
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
listDeletedSegments(continuation_1) {
|
|
562
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listDeletedSegments_1(continuation, options = {}) {
|
|
563
|
+
let response;
|
|
564
|
+
if (!!continuation || continuation === undefined) {
|
|
565
|
+
do {
|
|
566
|
+
response = yield tslib_1.__await(this.listDeletedPathsSegment(continuation, options));
|
|
567
|
+
continuation = response.continuation;
|
|
568
|
+
yield yield tslib_1.__await(response);
|
|
569
|
+
} while (continuation);
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
async listDeletedPathsSegment(continuation, options = {}) {
|
|
574
|
+
return tracing_js_1.tracingClient.withSpan("DataLakeFileSystemClient-listDeletedPathsSegment", options, async (updatedOptions) => {
|
|
575
|
+
const rawResponse = await this.fileSystemContextToBlobEndpoint.listBlobHierarchySegment(Object.assign(Object.assign({ marker: continuation }, updatedOptions), { prefix: options.prefix === "" ? undefined : options.prefix }));
|
|
576
|
+
const response = rawResponse;
|
|
577
|
+
response.pathItems = [];
|
|
578
|
+
for (const path of rawResponse.segment.blobItems || []) {
|
|
579
|
+
response.pathItems.push({
|
|
580
|
+
name: path.name,
|
|
581
|
+
deletionId: path.deletionId,
|
|
582
|
+
deletedOn: path.properties.deletedTime,
|
|
583
|
+
remainingRetentionDays: path.properties.remainingRetentionDays,
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
if (response.nextMarker) {
|
|
587
|
+
response.continuation = response.nextMarker;
|
|
588
|
+
}
|
|
589
|
+
return response;
|
|
590
|
+
});
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* Restores a soft deleted path.
|
|
594
|
+
*
|
|
595
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/undelete-blob
|
|
596
|
+
*
|
|
597
|
+
* @param deletedPath - Required. The path of the deleted path.
|
|
598
|
+
*
|
|
599
|
+
* @param deletionId - Required. The deletion ID associated with the soft deleted path.
|
|
600
|
+
*
|
|
601
|
+
*/
|
|
602
|
+
async undeletePath(deletedPath, deletionId, options = {}) {
|
|
603
|
+
return tracing_js_1.tracingClient.withSpan("DataLakeFileSystemClient-undeletePath", options, async (updatedOptions) => {
|
|
604
|
+
const pathClient = new PathClientInternal_js_1.PathClientInternal((0, utils_common_js_1.appendToURLPath)(this.blobEndpointUrl, (0, utils_common_js_1.EscapePath)(deletedPath)), this.pipeline);
|
|
605
|
+
const rawResponse = (0, utils_common_js_1.assertResponse)(await pathClient.blobPathContext.undelete(Object.assign(Object.assign({ undeleteSource: "?" + constants_js_1.DeletionIdKey + "=" + deletionId }, options), { tracingOptions: updatedOptions.tracingOptions })));
|
|
606
|
+
if (rawResponse.resourceType === constants_js_1.PathResultTypeConstants.DirectoryResourceType) {
|
|
607
|
+
return Object.assign({ pathClient: this.getDirectoryClient(deletedPath) }, rawResponse);
|
|
608
|
+
}
|
|
609
|
+
else {
|
|
610
|
+
return Object.assign({ pathClient: this.getFileClient(deletedPath) }, rawResponse);
|
|
611
|
+
}
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* Only available for DataLakeFileSystemClient constructed with a shared key credential.
|
|
616
|
+
*
|
|
617
|
+
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
|
618
|
+
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
|
619
|
+
*
|
|
620
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
|
|
621
|
+
*
|
|
622
|
+
* @param options - Optional parameters.
|
|
623
|
+
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
624
|
+
*/
|
|
625
|
+
generateSasUrl(options) {
|
|
626
|
+
return new Promise((resolve) => {
|
|
627
|
+
if (!(this.credential instanceof StorageSharedKeyCredential_js_1.StorageSharedKeyCredential)) {
|
|
628
|
+
throw RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
|
|
629
|
+
}
|
|
630
|
+
const sas = (0, DataLakeSASSignatureValues_js_1.generateDataLakeSASQueryParameters)(Object.assign({ fileSystemName: this.name }, options), this.credential).toString();
|
|
631
|
+
resolve((0, utils_common_js_1.appendToURLQuery)(this.url, sas));
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Only available for DataLakeFileSystemClient constructed with a shared key credential.
|
|
636
|
+
*
|
|
637
|
+
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
|
638
|
+
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
|
639
|
+
*
|
|
640
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
|
|
641
|
+
*
|
|
642
|
+
* @param options - Optional parameters.
|
|
643
|
+
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
644
|
+
*/
|
|
645
|
+
/* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
|
|
646
|
+
generateSasStringToSign(options) {
|
|
647
|
+
if (!(this.credential instanceof StorageSharedKeyCredential_js_1.StorageSharedKeyCredential)) {
|
|
648
|
+
throw RangeError("Can only generate the SAS when the client is initialized with a shared key credential");
|
|
649
|
+
}
|
|
650
|
+
return (0, DataLakeSASSignatureValues_js_1.generateDataLakeSASQueryParametersInternal)(Object.assign({ fileSystemName: this.name }, options), this.credential).stringToSign;
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
|
654
|
+
* and parameters passed in. The SAS is signed by the input user delegation key.
|
|
655
|
+
*
|
|
656
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
|
|
657
|
+
*
|
|
658
|
+
* @param options - Optional parameters.
|
|
659
|
+
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
|
660
|
+
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
661
|
+
*/
|
|
662
|
+
generateUserDelegationSasUrl(options, userDelegationKey) {
|
|
663
|
+
return new Promise((resolve) => {
|
|
664
|
+
const sas = (0, DataLakeSASSignatureValues_js_1.generateDataLakeSASQueryParameters)(Object.assign({ fileSystemName: this.name }, options), userDelegationKey, this.accountName).toString();
|
|
665
|
+
resolve((0, utils_common_js_1.appendToURLQuery)(this.url, sas));
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
|
670
|
+
* and parameters passed in. The SAS is signed by the input user delegation key.
|
|
671
|
+
*
|
|
672
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
|
|
673
|
+
*
|
|
674
|
+
* @param options - Optional parameters.
|
|
675
|
+
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
|
676
|
+
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
677
|
+
*/
|
|
678
|
+
generateUserDelegationSasStringToSign(options, userDelegationKey) {
|
|
679
|
+
return (0, DataLakeSASSignatureValues_js_1.generateDataLakeSASQueryParametersInternal)(Object.assign({ fileSystemName: this.name }, options), userDelegationKey, this.accountName).stringToSign;
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
exports.DataLakeFileSystemClient = DataLakeFileSystemClient;
|
|
683
|
+
//# sourceMappingURL=DataLakeFileSystemClient.js.map
|