@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,281 @@
|
|
|
1
|
+
import type { TokenCredential } from "@azure/core-auth";
|
|
2
|
+
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
3
|
+
import type { ServiceGetPropertiesOptions, ServiceSetPropertiesOptions, ServiceSetPropertiesResponse } from "@azure/storage-blob";
|
|
4
|
+
import type { Pipeline, StoragePipelineOptions } from "./Pipeline.js";
|
|
5
|
+
import { AnonymousCredential } from "@azure/storage-blob";
|
|
6
|
+
import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential.js";
|
|
7
|
+
import { DataLakeFileSystemClient } from "./DataLakeFileSystemClient.js";
|
|
8
|
+
import type { FileSystemItem, ServiceGenerateAccountSasUrlOptions, ServiceListFileSystemsOptions, ServiceListFileSystemsSegmentResponse, ServiceUndeleteFileSystemOptions, FileSystemUndeleteResponse } from "./models.js";
|
|
9
|
+
import { StorageClient } from "./StorageClient.js";
|
|
10
|
+
import type { ServiceGetUserDelegationKeyOptions, ServiceGetUserDelegationKeyResponse } from "./models.js";
|
|
11
|
+
import { AccountSASPermissions } from "./sas/AccountSASPermissions.js";
|
|
12
|
+
import type { DataLakeServiceGetPropertiesResponse, DataLakeServiceProperties } from "./index.js";
|
|
13
|
+
/**
|
|
14
|
+
* DataLakeServiceClient allows you to manipulate Azure
|
|
15
|
+
* Data Lake service resources and file systems. The storage account provides
|
|
16
|
+
* the top-level namespace for the Data Lake service.
|
|
17
|
+
*/
|
|
18
|
+
export declare class DataLakeServiceClient extends StorageClient {
|
|
19
|
+
/**
|
|
20
|
+
* blobServiceClient provided by `@azure/storage-blob` package.
|
|
21
|
+
*/
|
|
22
|
+
private blobServiceClient;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* Creates an instance of DataLakeServiceClient from connection string.
|
|
26
|
+
*
|
|
27
|
+
* @param connectionString - Account connection string or a SAS connection string of an Azure storage account.
|
|
28
|
+
* [ Note - Account connection string can only be used in NODE.JS runtime. ]
|
|
29
|
+
* Account connection string example -
|
|
30
|
+
* `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
|
|
31
|
+
* SAS connection string example -
|
|
32
|
+
* `BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
|
|
33
|
+
* @param options - Optional. Options to configure the HTTP pipeline.
|
|
34
|
+
*/
|
|
35
|
+
static fromConnectionString(connectionString: string, options?: StoragePipelineOptions): DataLakeServiceClient;
|
|
36
|
+
/**
|
|
37
|
+
* Creates an instance of DataLakeServiceClient from url.
|
|
38
|
+
*
|
|
39
|
+
* @param url - A Client string pointing to Azure Storage data lake service, such as
|
|
40
|
+
* "https://myaccount.dfs.core.windows.net". You can append a SAS
|
|
41
|
+
* if using AnonymousCredential, such as "https://myaccount.dfs.core.windows.net?sasString".
|
|
42
|
+
* @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.
|
|
43
|
+
* @param options - Optional. Options to configure the HTTP pipeline.
|
|
44
|
+
*/
|
|
45
|
+
constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions);
|
|
46
|
+
/**
|
|
47
|
+
* Creates an instance of DataLakeServiceClient from url and pipeline.
|
|
48
|
+
*
|
|
49
|
+
* @param url - A Client string pointing to Azure Storage data lake service, such as
|
|
50
|
+
* "https://myaccount.dfs.core.windows.net". You can append a SAS
|
|
51
|
+
* if using AnonymousCredential, such as "https://myaccount.dfs.core.windows.net?sasString".
|
|
52
|
+
* @param pipeline - Call newPipeline() to create a default
|
|
53
|
+
* pipeline, or provide a customized pipeline.
|
|
54
|
+
*/
|
|
55
|
+
constructor(url: string, pipeline: Pipeline);
|
|
56
|
+
/**
|
|
57
|
+
* Creates a {@link DataLakeFileSystemClient} object.
|
|
58
|
+
*
|
|
59
|
+
* @param fileSystemName - File system name.
|
|
60
|
+
*/
|
|
61
|
+
getFileSystemClient(fileSystemName: string): DataLakeFileSystemClient;
|
|
62
|
+
/**
|
|
63
|
+
* ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).
|
|
64
|
+
*
|
|
65
|
+
* Retrieves a user delegation key for the Data Lake service. This is only a valid operation when using
|
|
66
|
+
* bearer token authentication.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts snippet:DatalakeServiceClientGetUserDelegationKey
|
|
70
|
+
* import {
|
|
71
|
+
* DataLakeServiceClient,
|
|
72
|
+
* generateDataLakeSASQueryParameters,
|
|
73
|
+
* FileSystemSASPermissions,
|
|
74
|
+
* SASProtocol,
|
|
75
|
+
* } from "@azure/storage-file-datalake";
|
|
76
|
+
*
|
|
77
|
+
* const account = "<account>";
|
|
78
|
+
* const sas = "<sas token>";
|
|
79
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
80
|
+
* `https://${account}.dfs.core.windows.net${sas}`,
|
|
81
|
+
* );
|
|
82
|
+
*
|
|
83
|
+
* const fileSystemName = "<file system name>";
|
|
84
|
+
* const accountName = "<account name>";
|
|
85
|
+
* const startsOn = new Date();
|
|
86
|
+
* const expiresOn = new Date(+new Date() + 86400 * 1000);
|
|
87
|
+
* // Generate user delegation SAS for a file system
|
|
88
|
+
* const userDelegationKey = await datalakeServiceClient.getUserDelegationKey(startsOn, expiresOn);
|
|
89
|
+
* const fileSystemSAS = generateDataLakeSASQueryParameters(
|
|
90
|
+
* {
|
|
91
|
+
* fileSystemName, // Required
|
|
92
|
+
* permissions: FileSystemSASPermissions.parse("racwdl"), // Required
|
|
93
|
+
* startsOn, // Required. Date type
|
|
94
|
+
* expiresOn, // Optional. Date type
|
|
95
|
+
* ipRange: { start: "0.0.0.0", end: "255.255.255.255" }, // Optional
|
|
96
|
+
* protocol: SASProtocol.HttpsAndHttp, // Optional
|
|
97
|
+
* version: "2018-11-09", // Must greater than or equal to 2018-11-09 to generate user delegation SAS
|
|
98
|
+
* },
|
|
99
|
+
* userDelegationKey, // UserDelegationKey
|
|
100
|
+
* accountName,
|
|
101
|
+
* ).toString();
|
|
102
|
+
* ```
|
|
103
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-user-delegation-key
|
|
104
|
+
*
|
|
105
|
+
* @param startsOn - The start time for the user delegation SAS. Must be within 7 days of the current time.
|
|
106
|
+
* @param expiresOn - The end time for the user delegation SAS. Must be within 7 days of the current time.
|
|
107
|
+
* @param options -
|
|
108
|
+
*/
|
|
109
|
+
getUserDelegationKey(startsOn: Date, expiresOn: Date, options?: ServiceGetUserDelegationKeyOptions): Promise<ServiceGetUserDelegationKeyResponse>;
|
|
110
|
+
/**
|
|
111
|
+
* Returns an async iterable iterator to list all the file systems
|
|
112
|
+
* under the specified account.
|
|
113
|
+
*
|
|
114
|
+
* .byPage() returns an async iterable iterator to list the file systems in pages.
|
|
115
|
+
*
|
|
116
|
+
* Example using `for await` syntax:
|
|
117
|
+
*
|
|
118
|
+
* ```ts snippet:ReadmeSampleListFileSystems
|
|
119
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
120
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
121
|
+
*
|
|
122
|
+
* const account = "<account>";
|
|
123
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
124
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
125
|
+
* new DefaultAzureCredential(),
|
|
126
|
+
* );
|
|
127
|
+
*
|
|
128
|
+
* let i = 1;
|
|
129
|
+
* const fileSystems = datalakeServiceClient.listFileSystems();
|
|
130
|
+
* for await (const fileSystem of fileSystems) {
|
|
131
|
+
* console.log(`File system ${i++}: ${fileSystem.name}`);
|
|
132
|
+
* }
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* Example using `iter.next()`:
|
|
136
|
+
*
|
|
137
|
+
* ```ts snippet:ReadmeSampleListFileSystems_Iterator
|
|
138
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
139
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
140
|
+
*
|
|
141
|
+
* const account = "<account>";
|
|
142
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
143
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
144
|
+
* new DefaultAzureCredential(),
|
|
145
|
+
* );
|
|
146
|
+
*
|
|
147
|
+
* let i = 1;
|
|
148
|
+
* const fileSystems = datalakeServiceClient.listFileSystems();
|
|
149
|
+
* let { value, done } = await fileSystems.next();
|
|
150
|
+
* while (!done) {
|
|
151
|
+
* console.log(`File system ${i++}: ${value.name}`);
|
|
152
|
+
* ({ value, done } = await fileSystems.next());
|
|
153
|
+
* }
|
|
154
|
+
* ```
|
|
155
|
+
*
|
|
156
|
+
* Example using `byPage()`:
|
|
157
|
+
*
|
|
158
|
+
* ```ts snippet:ReadmeSampleListFileSystems_ByPage
|
|
159
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
160
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
161
|
+
*
|
|
162
|
+
* const account = "<account>";
|
|
163
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
164
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
165
|
+
* new DefaultAzureCredential(),
|
|
166
|
+
* );
|
|
167
|
+
*
|
|
168
|
+
* let i = 1;
|
|
169
|
+
* for await (const response of datalakeServiceClient.listFileSystems().byPage({ maxPageSize: 20 })) {
|
|
170
|
+
* if (response.fileSystemItems) {
|
|
171
|
+
* for (const fileSystem of response.fileSystemItems) {
|
|
172
|
+
* console.log(`File System ${i++}: ${fileSystem.name}`);
|
|
173
|
+
* }
|
|
174
|
+
* }
|
|
175
|
+
* }
|
|
176
|
+
* ```
|
|
177
|
+
*
|
|
178
|
+
* Example using paging with a marker:
|
|
179
|
+
*
|
|
180
|
+
* ```ts snippet:ReadmeSampleListFileSystems_Continuation
|
|
181
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
182
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
183
|
+
*
|
|
184
|
+
* const account = "<account>";
|
|
185
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
186
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
187
|
+
* new DefaultAzureCredential(),
|
|
188
|
+
* );
|
|
189
|
+
*
|
|
190
|
+
* let i = 1;
|
|
191
|
+
* let fileSystems = datalakeServiceClient.listFileSystems().byPage({ maxPageSize: 2 });
|
|
192
|
+
* let response = (await fileSystems.next()).value;
|
|
193
|
+
* // Prints 2 file systems
|
|
194
|
+
* if (response.fileSystemItems) {
|
|
195
|
+
* for (const fileSystem of response.fileSystemItems) {
|
|
196
|
+
* console.log(`File system ${i++}: ${fileSystem.name}`);
|
|
197
|
+
* }
|
|
198
|
+
* }
|
|
199
|
+
* // Gets next marker
|
|
200
|
+
* let marker = response.continuationToken;
|
|
201
|
+
* // Passing next marker as continuationToken
|
|
202
|
+
* fileSystems = datalakeServiceClient
|
|
203
|
+
* .listFileSystems()
|
|
204
|
+
* .byPage({ continuationToken: marker, maxPageSize: 10 });
|
|
205
|
+
* response = (await fileSystems.next()).value;
|
|
206
|
+
* // Prints 10 file systems
|
|
207
|
+
* if (response.fileSystemItems) {
|
|
208
|
+
* for (const fileSystem of response.fileSystemItems) {
|
|
209
|
+
* console.log(`File system ${i++}: ${fileSystem.name}`);
|
|
210
|
+
* }
|
|
211
|
+
* }
|
|
212
|
+
* ```
|
|
213
|
+
*
|
|
214
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/list-containers2
|
|
215
|
+
*
|
|
216
|
+
* @param options -
|
|
217
|
+
*/
|
|
218
|
+
listFileSystems(options?: ServiceListFileSystemsOptions): PagedAsyncIterableIterator<FileSystemItem, ServiceListFileSystemsSegmentResponse>;
|
|
219
|
+
/**
|
|
220
|
+
* Only available for DataLakeServiceClient constructed with a shared key credential.
|
|
221
|
+
*
|
|
222
|
+
* Generates an account Shared Access Signature (SAS) URI based on the client properties
|
|
223
|
+
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
|
224
|
+
*
|
|
225
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas
|
|
226
|
+
*
|
|
227
|
+
* @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.
|
|
228
|
+
* @param permissions - Specifies the list of permissions to be associated with the SAS.
|
|
229
|
+
* @param resourceTypes - Specifies the resource types associated with the shared access signature.
|
|
230
|
+
* @param options - Optional parameters.
|
|
231
|
+
* @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
232
|
+
*/
|
|
233
|
+
generateAccountSasUrl(expiresOn?: Date, permissions?: AccountSASPermissions, resourceTypes?: string, options?: ServiceGenerateAccountSasUrlOptions): string;
|
|
234
|
+
/**
|
|
235
|
+
* Only available for DataLakeServiceClient constructed with a shared key credential.
|
|
236
|
+
*
|
|
237
|
+
* Generates string to sign for an account Shared Access Signature (SAS) based on the client properties
|
|
238
|
+
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
|
239
|
+
*
|
|
240
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas
|
|
241
|
+
*
|
|
242
|
+
* @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.
|
|
243
|
+
* @param permissions - Specifies the list of permissions to be associated with the SAS.
|
|
244
|
+
* @param resourceTypes - Specifies the resource types associated with the shared access signature.
|
|
245
|
+
* @param options - Optional parameters.
|
|
246
|
+
* @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
247
|
+
*/
|
|
248
|
+
generateSasStringToSign(expiresOn?: Date, permissions?: AccountSASPermissions, resourceTypes?: string, options?: ServiceGenerateAccountSasUrlOptions): string;
|
|
249
|
+
/**
|
|
250
|
+
* Restore a previously deleted File System.
|
|
251
|
+
* This API is only functional if Container Soft Delete is enabled for the storage account.
|
|
252
|
+
*
|
|
253
|
+
* @param deletedFileSystemName - The name of the source File System.
|
|
254
|
+
* @param deleteFileSystemVersion - The new name of the File System.
|
|
255
|
+
* @param options - Options to configure File System Restore operation.
|
|
256
|
+
*/
|
|
257
|
+
undeleteFileSystem(deletedFileSystemName: string, deleteFileSystemVersion: string, options?: ServiceUndeleteFileSystemOptions): Promise<{
|
|
258
|
+
fileSystemClient: DataLakeFileSystemClient;
|
|
259
|
+
fileSystemUndeleteResponse: FileSystemUndeleteResponse;
|
|
260
|
+
}>;
|
|
261
|
+
/**
|
|
262
|
+
* Gets the properties of a storage account’s Blob service endpoint, including properties
|
|
263
|
+
* for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
|
|
264
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob-service-properties
|
|
265
|
+
*
|
|
266
|
+
* @param options - Options to the Service Get Properties operation.
|
|
267
|
+
* @returns Response data for the Service Get Properties operation.
|
|
268
|
+
*/
|
|
269
|
+
getProperties(options?: ServiceGetPropertiesOptions): Promise<DataLakeServiceGetPropertiesResponse>;
|
|
270
|
+
/**
|
|
271
|
+
* Sets properties for a storage account’s Blob service endpoint, including properties
|
|
272
|
+
* for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings.
|
|
273
|
+
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-service-properties
|
|
274
|
+
*
|
|
275
|
+
* @param properties -
|
|
276
|
+
* @param options - Options to the Service Set Properties operation.
|
|
277
|
+
* @returns Response data for the Service Set Properties operation.
|
|
278
|
+
*/
|
|
279
|
+
setProperties(properties: DataLakeServiceProperties, options?: ServiceSetPropertiesOptions): Promise<ServiceSetPropertiesResponse>;
|
|
280
|
+
}
|
|
281
|
+
//# sourceMappingURL=DataLakeServiceClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataLakeServiceClient.d.ts","sourceRoot":"","sources":["../../src/DataLakeServiceClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGrE,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,EAC7B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAE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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2GG;IACI,eAAe,CACpB,OAAO,GAAE,6BAAkC,GAC1C,0BAA0B,CAAC,cAAc,EAAE,qCAAqC,CAAC;IAYpF;;;;;;;;;;;;;OAaG;IACI,qBAAqB,CAC1B,SAAS,CAAC,EAAE,IAAI,EAChB,WAAW,GAAE,qBAAwD,EACrE,aAAa,GAAE,MAAc,EAC7B,OAAO,GAAE,mCAAwC,GAChD,MAAM;IA0BT;;;;;;;;;;;;;OAaG;IACI,uBAAuB,CAC5B,SAAS,CAAC,EAAE,IAAI,EAChB,WAAW,GAAE,qBAAwD,EACrE,aAAa,GAAE,MAAc,EAC7B,OAAO,GAAE,mCAAwC,GAChD,MAAM;IAwBT;;;;;;;OAOG;IACU,kBAAkB,CAC7B,qBAAqB,EAAE,MAAM,EAC7B,uBAAuB,EAAE,MAAM,EAC/B,OAAO,GAAE,gCAAqC,GAC7C,OAAO,CAAC;QACT,gBAAgB,EAAE,wBAAwB,CAAC;QAC3C,0BAA0B,EAAE,0BAA0B,CAAC;KACxD,CAAC;IA0BF;;;;;;;OAOG;IACU,aAAa,CACxB,OAAO,GAAE,2BAAgC,GACxC,OAAO,CAAC,oCAAoC,CAAC;IAahD;;;;;;;;OAQG;IACU,aAAa,CACxB,UAAU,EAAE,yBAAyB,EACrC,OAAO,GAAE,2BAAgC,GACxC,OAAO,CAAC,4BAA4B,CAAC;CAYzC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
import { getDefaultProxySettings } from "@azure/core-rest-pipeline";
|
|
4
|
-
import {
|
|
4
|
+
import { isNodeLike } from "@azure/core-util";
|
|
5
5
|
import { BlobServiceClient } from "@azure/storage-blob";
|
|
6
|
-
import { isPipelineLike, newPipeline } from "./Pipeline";
|
|
6
|
+
import { isPipelineLike, newPipeline } from "./Pipeline.js";
|
|
7
7
|
import { AnonymousCredential } from "@azure/storage-blob";
|
|
8
|
-
import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential";
|
|
9
|
-
import { DataLakeFileSystemClient } from "./DataLakeFileSystemClient";
|
|
10
|
-
import { StorageClient } from "./StorageClient";
|
|
11
|
-
import { appendToURLPath, appendToURLQuery, extractConnectionStringParts, } from "./utils/utils.common";
|
|
12
|
-
import { toDfsEndpointUrl, toFileSystemPagedAsyncIterableIterator } from "./transforms";
|
|
13
|
-
import { tracingClient } from "./utils/tracing";
|
|
14
|
-
import { AccountSASPermissions } from "./sas/AccountSASPermissions";
|
|
15
|
-
import { generateAccountSASQueryParameters, generateAccountSASQueryParametersInternal, } from "./sas/AccountSASSignatureValues";
|
|
16
|
-
import { AccountSASServices } from "./sas/AccountSASServices";
|
|
8
|
+
import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential.js";
|
|
9
|
+
import { DataLakeFileSystemClient } from "./DataLakeFileSystemClient.js";
|
|
10
|
+
import { StorageClient } from "./StorageClient.js";
|
|
11
|
+
import { appendToURLPath, appendToURLQuery, extractConnectionStringParts, } from "./utils/utils.common.js";
|
|
12
|
+
import { toDfsEndpointUrl, toFileSystemPagedAsyncIterableIterator } from "./transforms.js";
|
|
13
|
+
import { tracingClient } from "./utils/tracing.js";
|
|
14
|
+
import { AccountSASPermissions } from "./sas/AccountSASPermissions.js";
|
|
15
|
+
import { generateAccountSASQueryParameters, generateAccountSASQueryParametersInternal, } from "./sas/AccountSASSignatureValues.js";
|
|
16
|
+
import { AccountSASServices } from "./sas/AccountSASServices.js";
|
|
17
17
|
/**
|
|
18
18
|
* DataLakeServiceClient allows you to manipulate Azure
|
|
19
19
|
* Data Lake service resources and file systems. The storage account provides
|
|
@@ -40,7 +40,7 @@ export class DataLakeServiceClient extends StorageClient {
|
|
|
40
40
|
options = options || {};
|
|
41
41
|
const extractedCreds = extractConnectionStringParts(connectionString);
|
|
42
42
|
if (extractedCreds.kind === "AccountConnString") {
|
|
43
|
-
if (
|
|
43
|
+
if (isNodeLike) {
|
|
44
44
|
const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
|
|
45
45
|
if (!options.proxyOptions) {
|
|
46
46
|
options.proxyOptions = getDefaultProxySettings(extractedCreds.proxyUri);
|
|
@@ -98,20 +98,38 @@ export class DataLakeServiceClient extends StorageClient {
|
|
|
98
98
|
* bearer token authentication.
|
|
99
99
|
*
|
|
100
100
|
* @example
|
|
101
|
-
* ```
|
|
101
|
+
* ```ts snippet:DatalakeServiceClientGetUserDelegationKey
|
|
102
|
+
* import {
|
|
103
|
+
* DataLakeServiceClient,
|
|
104
|
+
* generateDataLakeSASQueryParameters,
|
|
105
|
+
* FileSystemSASPermissions,
|
|
106
|
+
* SASProtocol,
|
|
107
|
+
* } from "@azure/storage-file-datalake";
|
|
108
|
+
*
|
|
109
|
+
* const account = "<account>";
|
|
110
|
+
* const sas = "<sas token>";
|
|
111
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
112
|
+
* `https://${account}.dfs.core.windows.net${sas}`,
|
|
113
|
+
* );
|
|
114
|
+
*
|
|
115
|
+
* const fileSystemName = "<file system name>";
|
|
116
|
+
* const accountName = "<account name>";
|
|
117
|
+
* const startsOn = new Date();
|
|
118
|
+
* const expiresOn = new Date(+new Date() + 86400 * 1000);
|
|
102
119
|
* // Generate user delegation SAS for a file system
|
|
103
|
-
* const userDelegationKey = await
|
|
104
|
-
* const fileSystemSAS = generateDataLakeSASQueryParameters(
|
|
120
|
+
* const userDelegationKey = await datalakeServiceClient.getUserDelegationKey(startsOn, expiresOn);
|
|
121
|
+
* const fileSystemSAS = generateDataLakeSASQueryParameters(
|
|
122
|
+
* {
|
|
105
123
|
* fileSystemName, // Required
|
|
106
124
|
* permissions: FileSystemSASPermissions.parse("racwdl"), // Required
|
|
107
125
|
* startsOn, // Required. Date type
|
|
108
126
|
* expiresOn, // Optional. Date type
|
|
109
127
|
* ipRange: { start: "0.0.0.0", end: "255.255.255.255" }, // Optional
|
|
110
128
|
* protocol: SASProtocol.HttpsAndHttp, // Optional
|
|
111
|
-
* version: "2018-11-09" // Must greater than or equal to 2018-11-09 to generate user delegation SAS
|
|
129
|
+
* version: "2018-11-09", // Must greater than or equal to 2018-11-09 to generate user delegation SAS
|
|
112
130
|
* },
|
|
113
131
|
* userDelegationKey, // UserDelegationKey
|
|
114
|
-
* accountName
|
|
132
|
+
* accountName,
|
|
115
133
|
* ).toString();
|
|
116
134
|
* ```
|
|
117
135
|
* @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-user-delegation-key
|
|
@@ -133,34 +151,61 @@ export class DataLakeServiceClient extends StorageClient {
|
|
|
133
151
|
*
|
|
134
152
|
* Example using `for await` syntax:
|
|
135
153
|
*
|
|
136
|
-
* ```
|
|
154
|
+
* ```ts snippet:ReadmeSampleListFileSystems
|
|
155
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
156
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
157
|
+
*
|
|
158
|
+
* const account = "<account>";
|
|
159
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
160
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
161
|
+
* new DefaultAzureCredential(),
|
|
162
|
+
* );
|
|
163
|
+
*
|
|
137
164
|
* let i = 1;
|
|
138
|
-
*
|
|
139
|
-
*
|
|
165
|
+
* const fileSystems = datalakeServiceClient.listFileSystems();
|
|
166
|
+
* for await (const fileSystem of fileSystems) {
|
|
167
|
+
* console.log(`File system ${i++}: ${fileSystem.name}`);
|
|
140
168
|
* }
|
|
141
169
|
* ```
|
|
142
170
|
*
|
|
143
171
|
* Example using `iter.next()`:
|
|
144
172
|
*
|
|
145
|
-
* ```
|
|
173
|
+
* ```ts snippet:ReadmeSampleListFileSystems_Iterator
|
|
174
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
175
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
176
|
+
*
|
|
177
|
+
* const account = "<account>";
|
|
178
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
179
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
180
|
+
* new DefaultAzureCredential(),
|
|
181
|
+
* );
|
|
182
|
+
*
|
|
146
183
|
* let i = 1;
|
|
147
|
-
* const
|
|
148
|
-
* let
|
|
149
|
-
* while (!
|
|
150
|
-
* console.log(`
|
|
151
|
-
*
|
|
184
|
+
* const fileSystems = datalakeServiceClient.listFileSystems();
|
|
185
|
+
* let { value, done } = await fileSystems.next();
|
|
186
|
+
* while (!done) {
|
|
187
|
+
* console.log(`File system ${i++}: ${value.name}`);
|
|
188
|
+
* ({ value, done } = await fileSystems.next());
|
|
152
189
|
* }
|
|
153
190
|
* ```
|
|
154
191
|
*
|
|
155
192
|
* Example using `byPage()`:
|
|
156
193
|
*
|
|
157
|
-
* ```
|
|
158
|
-
*
|
|
194
|
+
* ```ts snippet:ReadmeSampleListFileSystems_ByPage
|
|
195
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
196
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
197
|
+
*
|
|
198
|
+
* const account = "<account>";
|
|
199
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
200
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
201
|
+
* new DefaultAzureCredential(),
|
|
202
|
+
* );
|
|
203
|
+
*
|
|
159
204
|
* let i = 1;
|
|
160
|
-
* for await (const response of
|
|
205
|
+
* for await (const response of datalakeServiceClient.listFileSystems().byPage({ maxPageSize: 20 })) {
|
|
161
206
|
* if (response.fileSystemItems) {
|
|
162
207
|
* for (const fileSystem of response.fileSystemItems) {
|
|
163
|
-
* console.log(`
|
|
208
|
+
* console.log(`File System ${i++}: ${fileSystem.name}`);
|
|
164
209
|
* }
|
|
165
210
|
* }
|
|
166
211
|
* }
|
|
@@ -168,30 +213,36 @@ export class DataLakeServiceClient extends StorageClient {
|
|
|
168
213
|
*
|
|
169
214
|
* Example using paging with a marker:
|
|
170
215
|
*
|
|
171
|
-
* ```
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
* let response = (await iterator.next()).value;
|
|
216
|
+
* ```ts snippet:ReadmeSampleListFileSystems_Continuation
|
|
217
|
+
* import { DataLakeServiceClient } from "@azure/storage-file-datalake";
|
|
218
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
175
219
|
*
|
|
176
|
-
*
|
|
220
|
+
* const account = "<account>";
|
|
221
|
+
* const datalakeServiceClient = new DataLakeServiceClient(
|
|
222
|
+
* `https://${account}.dfs.core.windows.net`,
|
|
223
|
+
* new DefaultAzureCredential(),
|
|
224
|
+
* );
|
|
225
|
+
*
|
|
226
|
+
* let i = 1;
|
|
227
|
+
* let fileSystems = datalakeServiceClient.listFileSystems().byPage({ maxPageSize: 2 });
|
|
228
|
+
* let response = (await fileSystems.next()).value;
|
|
229
|
+
* // Prints 2 file systems
|
|
177
230
|
* if (response.fileSystemItems) {
|
|
178
231
|
* for (const fileSystem of response.fileSystemItems) {
|
|
179
|
-
* console.log(`
|
|
232
|
+
* console.log(`File system ${i++}: ${fileSystem.name}`);
|
|
180
233
|
* }
|
|
181
234
|
* }
|
|
182
|
-
*
|
|
183
235
|
* // Gets next marker
|
|
184
236
|
* let marker = response.continuationToken;
|
|
185
237
|
* // Passing next marker as continuationToken
|
|
186
|
-
*
|
|
187
|
-
* .
|
|
238
|
+
* fileSystems = datalakeServiceClient
|
|
239
|
+
* .listFileSystems()
|
|
188
240
|
* .byPage({ continuationToken: marker, maxPageSize: 10 });
|
|
189
|
-
* response = (await
|
|
190
|
-
*
|
|
191
|
-
* // Prints 10 file system names
|
|
241
|
+
* response = (await fileSystems.next()).value;
|
|
242
|
+
* // Prints 10 file systems
|
|
192
243
|
* if (response.fileSystemItems) {
|
|
193
244
|
* for (const fileSystem of response.fileSystemItems) {
|
|
194
|
-
*
|
|
245
|
+
* console.log(`File system ${i++}: ${fileSystem.name}`);
|
|
195
246
|
* }
|
|
196
247
|
* }
|
|
197
248
|
* ```
|
|
@@ -262,25 +313,6 @@ export class DataLakeServiceClient extends StorageClient {
|
|
|
262
313
|
expiresOn,
|
|
263
314
|
resourceTypes, services: AccountSASServices.parse("b").toString() }, options), this.credential).stringToSign;
|
|
264
315
|
}
|
|
265
|
-
/**
|
|
266
|
-
* Renames an existing File System.
|
|
267
|
-
*
|
|
268
|
-
* @param sourceFileSystemName - The name of the source File System.
|
|
269
|
-
* @param destinationContainerName - The new name of the File System.
|
|
270
|
-
* @param options - Options to configure File System Rename operation.
|
|
271
|
-
*/
|
|
272
|
-
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
|
|
273
|
-
// @ts-ignore Need to hide this interface for now. Make it public and turn on the live tests for it when the service is ready.
|
|
274
|
-
async renameFileSystem(sourceFileSystemName, destinationFileSystemName, options = {}) {
|
|
275
|
-
return tracingClient.withSpan("DataLakeServiceClient-renameFileSystem", options, async (updatedOptions) => {
|
|
276
|
-
const res = await this.blobServiceClient["renameContainer"](sourceFileSystemName, destinationFileSystemName, updatedOptions);
|
|
277
|
-
const fileSystemClient = this.getFileSystemClient(destinationFileSystemName);
|
|
278
|
-
return {
|
|
279
|
-
fileSystemClient,
|
|
280
|
-
fileSystemRenameResponse: res.containerRenameResponse,
|
|
281
|
-
};
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
316
|
/**
|
|
285
317
|
* Restore a previously deleted File System.
|
|
286
318
|
* This API is only functional if Container Soft Delete is enabled for the storage account.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataLakeServiceClient.js","sourceRoot":"","sources":["../../src/DataLakeServiceClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;A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AW,EAAE,OAAO,CAAC,WAAW;gBAChC,cAAc,EAAE,cAAc,CAAC,cAAc;aAC9C,CAAC,CAAC;QACL,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { getDefaultProxySettings } from \"@azure/core-rest-pipeline\";\nimport { isNodeLike } from \"@azure/core-util\";\nimport type {\n ServiceGetPropertiesOptions,\n ServiceSetPropertiesOptions,\n ServiceSetPropertiesResponse,\n} from \"@azure/storage-blob\";\nimport { BlobServiceClient } from \"@azure/storage-blob\";\nimport type { Pipeline, StoragePipelineOptions } from \"./Pipeline.js\";\nimport { isPipelineLike, newPipeline } from \"./Pipeline.js\";\nimport { AnonymousCredential } from \"@azure/storage-blob\";\nimport { StorageSharedKeyCredential } from \"./credentials/StorageSharedKeyCredential.js\";\nimport { DataLakeFileSystemClient } from \"./DataLakeFileSystemClient.js\";\nimport type {\n FileSystemItem,\n ServiceGenerateAccountSasUrlOptions,\n ServiceListFileSystemsOptions,\n ServiceListFileSystemsSegmentResponse,\n ServiceUndeleteFileSystemOptions,\n FileSystemUndeleteResponse,\n} from \"./models.js\";\nimport { StorageClient } from \"./StorageClient.js\";\nimport {\n appendToURLPath,\n appendToURLQuery,\n extractConnectionStringParts,\n} from \"./utils/utils.common.js\";\nimport { toDfsEndpointUrl, toFileSystemPagedAsyncIterableIterator } from \"./transforms.js\";\nimport type {\n ServiceGetUserDelegationKeyOptions,\n ServiceGetUserDelegationKeyResponse,\n} from \"./models.js\";\nimport { tracingClient } from \"./utils/tracing.js\";\nimport { AccountSASPermissions } from \"./sas/AccountSASPermissions.js\";\nimport {\n generateAccountSASQueryParameters,\n generateAccountSASQueryParametersInternal,\n} from \"./sas/AccountSASSignatureValues.js\";\nimport { AccountSASServices } from \"./sas/AccountSASServices.js\";\nimport type { DataLakeServiceGetPropertiesResponse, DataLakeServiceProperties } from \"./index.js\";\n\n/**\n * DataLakeServiceClient allows you to manipulate Azure\n * Data Lake service resources and file systems. The storage account provides\n * the top-level namespace for the Data Lake service.\n */\nexport class DataLakeServiceClient extends StorageClient {\n // private serviceContext: Service;\n\n /**\n * blobServiceClient provided by `@azure/storage-blob` package.\n */\n private blobServiceClient: BlobServiceClient;\n\n /**\n *\n * Creates an instance of DataLakeServiceClient from connection string.\n *\n * @param connectionString - Account connection string or a SAS connection string of an Azure storage account.\n * [ Note - Account connection string can only be used in NODE.JS runtime. ]\n * Account connection string example -\n * `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`\n * SAS connection string example -\n * `BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n\n public static fromConnectionString(\n connectionString: string,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: StoragePipelineOptions,\n ): DataLakeServiceClient {\n options = options || {};\n const extractedCreds = extractConnectionStringParts(connectionString);\n if (extractedCreds.kind === \"AccountConnString\") {\n if (isNodeLike) {\n const sharedKeyCredential = new StorageSharedKeyCredential(\n extractedCreds.accountName!,\n extractedCreds.accountKey,\n );\n if (!options.proxyOptions) {\n options.proxyOptions = getDefaultProxySettings(extractedCreds.proxyUri);\n }\n const pipeline = newPipeline(sharedKeyCredential, options);\n return new DataLakeServiceClient(toDfsEndpointUrl(extractedCreds.url), pipeline);\n } else {\n throw new Error(\"Account connection string is only supported in Node.js environment\");\n }\n } else if (extractedCreds.kind === \"SASConnString\") {\n const pipeline = newPipeline(new AnonymousCredential(), options);\n return new DataLakeServiceClient(\n toDfsEndpointUrl(extractedCreds.url) + \"?\" + extractedCreds.accountSas,\n pipeline,\n );\n } else {\n throw new Error(\n \"Connection string must be either an Account connection string or a SAS connection string\",\n );\n }\n }\n\n /**\n * Creates an instance of DataLakeServiceClient from url.\n *\n * @param url - A Client string pointing to Azure Storage data lake service, such as\n * \"https://myaccount.dfs.core.windows.net\". You can append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.dfs.core.windows.net?sasString\".\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(\n url: string,\n credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: StoragePipelineOptions,\n );\n\n /**\n * Creates an instance of DataLakeServiceClient from url and pipeline.\n *\n * @param url - A Client string pointing to Azure Storage data lake service, such as\n * \"https://myaccount.dfs.core.windows.net\". You can append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.dfs.core.windows.net?sasString\".\n * @param pipeline - Call newPipeline() to create a default\n * pipeline, or provide a customized pipeline.\n */\n public constructor(url: string, pipeline: Pipeline);\n\n public constructor(\n url: string,\n credentialOrPipeline?:\n | StorageSharedKeyCredential\n | AnonymousCredential\n | TokenCredential\n | Pipeline,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: StoragePipelineOptions,\n ) {\n if (isPipelineLike(credentialOrPipeline)) {\n super(url, credentialOrPipeline);\n } else {\n let credential;\n if (credentialOrPipeline === undefined) {\n credential = new AnonymousCredential();\n } else {\n credential = credentialOrPipeline;\n }\n\n const pipeline = newPipeline(credential, options);\n super(url, pipeline);\n }\n\n // this.serviceContext = new Service(this.storageClientContext);\n this.blobServiceClient = new BlobServiceClient(this.blobEndpointUrl, this.pipeline);\n }\n\n /**\n * Creates a {@link DataLakeFileSystemClient} object.\n *\n * @param fileSystemName - File system name.\n */\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-subclients */\n public getFileSystemClient(fileSystemName: string): DataLakeFileSystemClient {\n return new DataLakeFileSystemClient(\n appendToURLPath(this.url, encodeURIComponent(fileSystemName)),\n this.pipeline,\n );\n }\n\n /**\n * ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).\n *\n * Retrieves a user delegation key for the Data Lake service. This is only a valid operation when using\n * bearer token authentication.\n *\n * @example\n * ```ts snippet:DatalakeServiceClientGetUserDelegationKey\n * import {\n * DataLakeServiceClient,\n * generateDataLakeSASQueryParameters,\n * FileSystemSASPermissions,\n * SASProtocol,\n * } from \"@azure/storage-file-datalake\";\n *\n * const account = \"<account>\";\n * const sas = \"<sas token>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net${sas}`,\n * );\n *\n * const fileSystemName = \"<file system name>\";\n * const accountName = \"<account name>\";\n * const startsOn = new Date();\n * const expiresOn = new Date(+new Date() + 86400 * 1000);\n * // Generate user delegation SAS for a file system\n * const userDelegationKey = await datalakeServiceClient.getUserDelegationKey(startsOn, expiresOn);\n * const fileSystemSAS = generateDataLakeSASQueryParameters(\n * {\n * fileSystemName, // Required\n * permissions: FileSystemSASPermissions.parse(\"racwdl\"), // Required\n * startsOn, // Required. Date type\n * expiresOn, // Optional. Date type\n * ipRange: { start: \"0.0.0.0\", end: \"255.255.255.255\" }, // Optional\n * protocol: SASProtocol.HttpsAndHttp, // Optional\n * version: \"2018-11-09\", // Must greater than or equal to 2018-11-09 to generate user delegation SAS\n * },\n * userDelegationKey, // UserDelegationKey\n * accountName,\n * ).toString();\n * ```\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-user-delegation-key\n *\n * @param startsOn - The start time for the user delegation SAS. Must be within 7 days of the current time.\n * @param expiresOn - The end time for the user delegation SAS. Must be within 7 days of the current time.\n * @param options -\n */\n public async getUserDelegationKey(\n startsOn: Date,\n expiresOn: Date,\n options: ServiceGetUserDelegationKeyOptions = {},\n ): Promise<ServiceGetUserDelegationKeyResponse> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-getUserDelegationKey\",\n options,\n async (updatedOptions) => {\n return this.blobServiceClient.getUserDelegationKey(startsOn, expiresOn, updatedOptions);\n },\n );\n }\n\n /**\n * Returns an async iterable iterator to list all the file systems\n * under the specified account.\n *\n * .byPage() returns an async iterable iterator to list the file systems in pages.\n *\n * Example using `for await` syntax:\n *\n * ```ts snippet:ReadmeSampleListFileSystems\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * const fileSystems = datalakeServiceClient.listFileSystems();\n * for await (const fileSystem of fileSystems) {\n * console.log(`File system ${i++}: ${fileSystem.name}`);\n * }\n * ```\n *\n * Example using `iter.next()`:\n *\n * ```ts snippet:ReadmeSampleListFileSystems_Iterator\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * const fileSystems = datalakeServiceClient.listFileSystems();\n * let { value, done } = await fileSystems.next();\n * while (!done) {\n * console.log(`File system ${i++}: ${value.name}`);\n * ({ value, done } = await fileSystems.next());\n * }\n * ```\n *\n * Example using `byPage()`:\n *\n * ```ts snippet:ReadmeSampleListFileSystems_ByPage\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * for await (const response of datalakeServiceClient.listFileSystems().byPage({ maxPageSize: 20 })) {\n * if (response.fileSystemItems) {\n * for (const fileSystem of response.fileSystemItems) {\n * console.log(`File System ${i++}: ${fileSystem.name}`);\n * }\n * }\n * }\n * ```\n *\n * Example using paging with a marker:\n *\n * ```ts snippet:ReadmeSampleListFileSystems_Continuation\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * let fileSystems = datalakeServiceClient.listFileSystems().byPage({ maxPageSize: 2 });\n * let response = (await fileSystems.next()).value;\n * // Prints 2 file systems\n * if (response.fileSystemItems) {\n * for (const fileSystem of response.fileSystemItems) {\n * console.log(`File system ${i++}: ${fileSystem.name}`);\n * }\n * }\n * // Gets next marker\n * let marker = response.continuationToken;\n * // Passing next marker as continuationToken\n * fileSystems = datalakeServiceClient\n * .listFileSystems()\n * .byPage({ continuationToken: marker, maxPageSize: 10 });\n * response = (await fileSystems.next()).value;\n * // Prints 10 file systems\n * if (response.fileSystemItems) {\n * for (const fileSystem of response.fileSystemItems) {\n * console.log(`File system ${i++}: ${fileSystem.name}`);\n * }\n * }\n * ```\n *\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/list-containers2\n *\n * @param options -\n */\n public listFileSystems(\n options: ServiceListFileSystemsOptions = {},\n ): PagedAsyncIterableIterator<FileSystemItem, ServiceListFileSystemsSegmentResponse> {\n return toFileSystemPagedAsyncIterableIterator(this.blobServiceClient.listContainers(options));\n }\n\n // public async createFileSystem(): Promise<DataLakeFileSystemClient> {\n // throw Error(\"NotImplemented\");\n // }\n\n // public async deleteFileSystem(fileSystem: string): Promise<ServiceDeleteFileSystemResponse> {\n // throw Error(\"NotImplemented\");\n // }\n\n /**\n * Only available for DataLakeServiceClient constructed with a shared key credential.\n *\n * Generates an account Shared Access Signature (SAS) URI based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateAccountSasUrl(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n const sas = generateAccountSASQueryParameters(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"b\").toString(),\n ...options,\n },\n this.credential,\n ).toString();\n\n return appendToURLQuery(this.url, sas);\n }\n\n /**\n * Only available for DataLakeServiceClient constructed with a shared key credential.\n *\n * Generates string to sign for an account Shared Access Signature (SAS) based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateSasStringToSign(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n return generateAccountSASQueryParametersInternal(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"b\").toString(),\n ...options,\n },\n this.credential,\n ).stringToSign;\n }\n\n /**\n * Restore a previously deleted File System.\n * This API is only functional if Container Soft Delete is enabled for the storage account.\n *\n * @param deletedFileSystemName - The name of the source File System.\n * @param deleteFileSystemVersion - The new name of the File System.\n * @param options - Options to configure File System Restore operation.\n */\n public async undeleteFileSystem(\n deletedFileSystemName: string,\n deleteFileSystemVersion: string,\n options: ServiceUndeleteFileSystemOptions = {},\n ): Promise<{\n fileSystemClient: DataLakeFileSystemClient;\n fileSystemUndeleteResponse: FileSystemUndeleteResponse;\n }> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-undeleteFileSystem\",\n options,\n async (updatedOptions) => {\n const res = await this.blobServiceClient.undeleteContainer(\n deletedFileSystemName,\n deleteFileSystemVersion,\n {\n ...options,\n destinationContainerName: options.destinationFileSystemName,\n tracingOptions: updatedOptions.tracingOptions,\n },\n );\n\n const fileSystemClient = this.getFileSystemClient(\n options.destinationFileSystemName || deletedFileSystemName,\n );\n return {\n fileSystemClient,\n fileSystemUndeleteResponse: res.containerUndeleteResponse,\n };\n },\n );\n }\n\n /**\n * Gets the properties of a storage account’s Blob service endpoint, including properties\n * for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob-service-properties\n *\n * @param options - Options to the Service Get Properties operation.\n * @returns Response data for the Service Get Properties operation.\n */\n public async getProperties(\n options: ServiceGetPropertiesOptions = {},\n ): Promise<DataLakeServiceGetPropertiesResponse> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-getProperties\",\n options,\n async (updatedOptions) => {\n return this.blobServiceClient.getProperties({\n abortSignal: options.abortSignal,\n tracingOptions: updatedOptions.tracingOptions,\n });\n },\n );\n }\n\n /**\n * Sets properties for a storage account’s Blob service endpoint, including properties\n * for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings.\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-service-properties\n *\n * @param properties -\n * @param options - Options to the Service Set Properties operation.\n * @returns Response data for the Service Set Properties operation.\n */\n public async setProperties(\n properties: DataLakeServiceProperties,\n options: ServiceSetPropertiesOptions = {},\n ): Promise<ServiceSetPropertiesResponse> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-setProperties\",\n options,\n async (updatedOptions) => {\n return this.blobServiceClient.setProperties(properties, {\n abortSignal: options.abortSignal,\n tracingOptions: updatedOptions.tracingOptions,\n });\n },\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { KeepAliveOptions, ExtendedServiceClientOptions } from "@azure/core-http-compat";
|
|
2
|
+
import { CompatResponse as HttpOperationResponse, RequestPolicy as IHttpClient, HttpHeadersLike as HttpHeaders, RequestPolicy, RequestPolicyFactory, RequestPolicyOptionsLike as RequestPolicyOptions, WebResourceLike as WebResource } from "@azure/core-http-compat";
|
|
3
|
+
import type { ProxySettings as ProxyOptions, UserAgentPolicyOptions as UserAgentOptions } from "@azure/core-rest-pipeline";
|
|
4
|
+
import { RequestBodyType as HttpRequestBody } from "@azure/core-rest-pipeline";
|
|
5
|
+
import type { TokenCredential } from "@azure/core-auth";
|
|
6
|
+
import type { StorageRetryOptions } from "@azure/storage-blob";
|
|
7
|
+
import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential.js";
|
|
8
|
+
import { AnonymousCredential } from "@azure/storage-blob";
|
|
9
|
+
import { StorageOAuthScopes } from "./utils/constants.js";
|
|
10
|
+
import { ServiceClientOptions, PipelineOptions, PipelineLike, isPipelineLike, Pipeline } from "@azure/storage-blob";
|
|
11
|
+
export { StorageOAuthScopes, IHttpClient, HttpHeaders, HttpRequestBody, HttpOperationResponse, WebResource, RequestPolicyFactory, RequestPolicy, RequestPolicyOptions, ServiceClientOptions, PipelineOptions, PipelineLike, Pipeline, isPipelineLike, };
|
|
12
|
+
/**
|
|
13
|
+
* Options interface for the {@link newPipeline} function.
|
|
14
|
+
*/
|
|
15
|
+
export interface StoragePipelineOptions {
|
|
16
|
+
/**
|
|
17
|
+
* Options to configure a proxy for outgoing requests.
|
|
18
|
+
*/
|
|
19
|
+
proxyOptions?: ProxyOptions;
|
|
20
|
+
/**
|
|
21
|
+
* Options for adding user agent details to outgoing requests.
|
|
22
|
+
*/
|
|
23
|
+
userAgentOptions?: UserAgentOptions;
|
|
24
|
+
/**
|
|
25
|
+
* Configures the built-in retry policy behavior.
|
|
26
|
+
*/
|
|
27
|
+
retryOptions?: StorageRetryOptions;
|
|
28
|
+
/**
|
|
29
|
+
* Keep alive configurations. Default keep-alive is enabled.
|
|
30
|
+
*/
|
|
31
|
+
keepAliveOptions?: KeepAliveOptions;
|
|
32
|
+
/**
|
|
33
|
+
* Configures the HTTP client to send requests and receive responses.
|
|
34
|
+
*/
|
|
35
|
+
httpClient?: IHttpClient;
|
|
36
|
+
/**
|
|
37
|
+
* The audience used to retrieve an AAD token.
|
|
38
|
+
* By default, audience 'https://storage.azure.com/.default' will be used.
|
|
39
|
+
*/
|
|
40
|
+
audience?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Creates a new Pipeline object with Credential provided.
|
|
44
|
+
*
|
|
45
|
+
* @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.
|
|
46
|
+
* @param pipelineOptions - Optional. Options.
|
|
47
|
+
* @returns A new Pipeline object.
|
|
48
|
+
*/
|
|
49
|
+
export declare function newPipeline(credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, pipelineOptions?: StoragePipelineOptions): Pipeline;
|
|
50
|
+
export declare function getCoreClientOptions(pipeline: PipelineLike): ExtendedServiceClientOptions;
|
|
51
|
+
export declare function getCredentialFromPipeline(pipeline: PipelineLike): StorageSharedKeyCredential | AnonymousCredential | TokenCredential;
|
|
52
|
+
//# sourceMappingURL=Pipeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pipeline.d.ts","sourceRoot":"","sources":["../../src/Pipeline.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,gBAAgB,EAChB,4BAA4B,EAE7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,cAAc,IAAI,qBAAqB,EACvC,aAAa,IAAI,WAAW,EAC5B,eAAe,IAAI,WAAW,EAC9B,aAAa,EACb,oBAAoB,EACpB,wBAAwB,IAAI,oBAAoB,EAChD,eAAe,IAAI,WAAW,EAG/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,aAAa,IAAI,YAAY,EAC7B,sBAAsB,IAAI,gBAAgB,EAI3C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,eAAe,IAAI,eAAe,EAGnC,MAAM,2BAA2B,CAAC;AAGnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EACL,kBAAkB,EAInB,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf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