@azure/storage-file-share 12.33.0 → 12.34.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 +39 -0
- package/dist/browser/Clients.d.ts +130 -6
- package/dist/browser/Clients.d.ts.map +1 -1
- package/dist/browser/Clients.js +182 -16
- package/dist/browser/Clients.js.map +1 -1
- package/dist/browser/Pipeline.js +1 -1
- package/dist/browser/Pipeline.js.map +1 -1
- package/dist/browser/ShareServiceClient.d.ts.map +1 -1
- package/dist/browser/ShareServiceClient.js +1 -2
- package/dist/browser/ShareServiceClient.js.map +1 -1
- package/dist/browser/generated/api/directory/index.d.ts +1 -1
- package/dist/browser/generated/api/directory/index.d.ts.map +1 -1
- package/dist/browser/generated/api/directory/index.js +1 -1
- package/dist/browser/generated/api/directory/index.js.map +1 -1
- package/dist/browser/generated/api/directory/operations.d.ts +8 -10
- package/dist/browser/generated/api/directory/operations.d.ts.map +1 -1
- package/dist/browser/generated/api/directory/operations.js +27 -23
- package/dist/browser/generated/api/directory/operations.js.map +1 -1
- package/dist/browser/generated/api/file/index.d.ts +2 -2
- package/dist/browser/generated/api/file/index.d.ts.map +1 -1
- package/dist/browser/generated/api/file/index.js +1 -1
- package/dist/browser/generated/api/file/index.js.map +1 -1
- package/dist/browser/generated/api/file/operations.d.ts +137 -12
- package/dist/browser/generated/api/file/operations.d.ts.map +1 -1
- package/dist/browser/generated/api/file/operations.js +237 -39
- package/dist/browser/generated/api/file/operations.js.map +1 -1
- package/dist/browser/generated/api/file/options.d.ts +15 -0
- package/dist/browser/generated/api/file/options.d.ts.map +1 -1
- package/dist/browser/generated/api/file/options.js.map +1 -1
- package/dist/browser/generated/api/fileContext.d.ts.map +1 -1
- package/dist/browser/generated/api/fileContext.js +4 -3
- package/dist/browser/generated/api/fileContext.js.map +1 -1
- package/dist/browser/generated/api/service/operations.js +4 -4
- package/dist/browser/generated/api/service/operations.js.map +1 -1
- package/dist/browser/generated/api/share/index.d.ts +1 -1
- package/dist/browser/generated/api/share/index.d.ts.map +1 -1
- package/dist/browser/generated/api/share/index.js +1 -1
- package/dist/browser/generated/api/share/index.js.map +1 -1
- package/dist/browser/generated/api/share/operations.d.ts +17 -10
- package/dist/browser/generated/api/share/operations.d.ts.map +1 -1
- package/dist/browser/generated/api/share/operations.js +60 -31
- package/dist/browser/generated/api/share/operations.js.map +1 -1
- package/dist/browser/generated/api/share/options.d.ts +8 -0
- package/dist/browser/generated/api/share/options.d.ts.map +1 -1
- package/dist/browser/generated/api/share/options.js.map +1 -1
- package/dist/browser/generated/classic/directory/index.d.ts +3 -6
- package/dist/browser/generated/classic/directory/index.d.ts.map +1 -1
- package/dist/browser/generated/classic/directory/index.js +2 -2
- package/dist/browser/generated/classic/directory/index.js.map +1 -1
- package/dist/browser/generated/classic/file/index.d.ts +85 -8
- package/dist/browser/generated/classic/file/index.d.ts.map +1 -1
- package/dist/browser/generated/classic/file/index.js +3 -2
- package/dist/browser/generated/classic/file/index.js.map +1 -1
- package/dist/browser/generated/classic/share/index.d.ts +9 -6
- package/dist/browser/generated/classic/share/index.d.ts.map +1 -1
- package/dist/browser/generated/classic/share/index.js +2 -2
- package/dist/browser/generated/classic/share/index.js.map +1 -1
- package/dist/browser/generated/fileClient.d.ts.map +1 -1
- package/dist/browser/generated/fileClient.js +1 -8
- package/dist/browser/generated/fileClient.js.map +1 -1
- package/dist/browser/generated/index.d.ts +2 -2
- package/dist/browser/generated/index.d.ts.map +1 -1
- package/dist/browser/generated/index.js.map +1 -1
- package/dist/browser/generated/models/index.d.ts +1 -1
- package/dist/browser/generated/models/index.d.ts.map +1 -1
- package/dist/browser/generated/models/index.js.map +1 -1
- package/dist/browser/generated/models/models.d.ts +133 -8
- package/dist/browser/generated/models/models.d.ts.map +1 -1
- package/dist/browser/generated/models/models.js +644 -0
- package/dist/browser/generated/models/models.js.map +1 -1
- package/dist/browser/generated/static-helpers/storageCompatResponse.d.ts +1 -1
- package/dist/browser/generated/static-helpers/storageCompatResponse.d.ts.map +1 -1
- package/dist/browser/generated/static-helpers/storageCompatResponse.js +2 -2
- package/dist/browser/generated/static-helpers/storageCompatResponse.js.map +1 -1
- package/dist/browser/generated/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/browser/generated/static-helpers/urlTemplate.js +4 -2
- package/dist/browser/generated/static-helpers/urlTemplate.js.map +1 -1
- package/dist/browser/generated-classic-models.d.ts +10 -0
- package/dist/browser/generated-classic-models.d.ts.map +1 -1
- package/dist/browser/generated-classic-models.js.map +1 -1
- package/dist/browser/generatedModels.d.ts +10 -0
- package/dist/browser/generatedModels.d.ts.map +1 -1
- package/dist/browser/generatedModels.js.map +1 -1
- package/dist/browser/package.json +6 -1
- package/dist/browser/utils/constants.d.ts +1 -0
- package/dist/browser/utils/constants.d.ts.map +1 -1
- package/dist/browser/utils/constants.js +3 -2
- package/dist/browser/utils/constants.js.map +1 -1
- package/dist/browser/utils/utils.common.d.ts +23 -0
- package/dist/browser/utils/utils.common.d.ts.map +1 -1
- package/dist/browser/utils/utils.common.js +86 -11
- package/dist/browser/utils/utils.common.js.map +1 -1
- package/dist/commonjs/Clients.d.ts +130 -6
- package/dist/commonjs/Clients.d.ts.map +1 -1
- package/dist/commonjs/Clients.js +206 -15
- package/dist/commonjs/Clients.js.map +2 -2
- package/dist/commonjs/Pipeline.js +1 -1
- package/dist/commonjs/Pipeline.js.map +2 -2
- package/dist/commonjs/ShareServiceClient.d.ts.map +1 -1
- package/dist/commonjs/ShareServiceClient.js +1 -2
- package/dist/commonjs/ShareServiceClient.js.map +2 -2
- package/dist/commonjs/generated/api/directory/index.d.ts +1 -1
- package/dist/commonjs/generated/api/directory/index.d.ts.map +1 -1
- package/dist/commonjs/generated/api/directory/index.js +2 -2
- package/dist/commonjs/generated/api/directory/index.js.map +1 -1
- package/dist/commonjs/generated/api/directory/operations.d.ts +8 -10
- package/dist/commonjs/generated/api/directory/operations.d.ts.map +1 -1
- package/dist/commonjs/generated/api/directory/operations.js +35 -28
- package/dist/commonjs/generated/api/directory/operations.js.map +2 -2
- package/dist/commonjs/generated/api/file/index.d.ts +2 -2
- package/dist/commonjs/generated/api/file/index.d.ts.map +1 -1
- package/dist/commonjs/generated/api/file/index.js +4 -2
- package/dist/commonjs/generated/api/file/index.js.map +2 -2
- package/dist/commonjs/generated/api/file/operations.d.ts +137 -12
- package/dist/commonjs/generated/api/file/operations.d.ts.map +1 -1
- package/dist/commonjs/generated/api/file/operations.js +162 -43
- package/dist/commonjs/generated/api/file/operations.js.map +2 -2
- package/dist/commonjs/generated/api/file/options.d.ts +15 -0
- package/dist/commonjs/generated/api/file/options.d.ts.map +1 -1
- package/dist/commonjs/generated/api/file/options.js.map +1 -1
- package/dist/commonjs/generated/api/fileContext.d.ts.map +1 -1
- package/dist/commonjs/generated/api/fileContext.js +13 -2
- package/dist/commonjs/generated/api/fileContext.js.map +3 -3
- package/dist/commonjs/generated/api/service/operations.js +4 -4
- package/dist/commonjs/generated/api/service/operations.js.map +1 -1
- package/dist/commonjs/generated/api/share/index.d.ts +1 -1
- package/dist/commonjs/generated/api/share/index.d.ts.map +1 -1
- package/dist/commonjs/generated/api/share/index.js +2 -2
- package/dist/commonjs/generated/api/share/index.js.map +1 -1
- package/dist/commonjs/generated/api/share/operations.d.ts +17 -10
- package/dist/commonjs/generated/api/share/operations.d.ts.map +1 -1
- package/dist/commonjs/generated/api/share/operations.js +50 -36
- package/dist/commonjs/generated/api/share/operations.js.map +2 -2
- package/dist/commonjs/generated/api/share/options.d.ts +8 -0
- package/dist/commonjs/generated/api/share/options.d.ts.map +1 -1
- package/dist/commonjs/generated/api/share/options.js.map +1 -1
- package/dist/commonjs/generated/classic/directory/index.d.ts +3 -6
- package/dist/commonjs/generated/classic/directory/index.d.ts.map +1 -1
- package/dist/commonjs/generated/classic/directory/index.js +1 -1
- package/dist/commonjs/generated/classic/directory/index.js.map +2 -2
- package/dist/commonjs/generated/classic/file/index.d.ts +85 -8
- package/dist/commonjs/generated/classic/file/index.d.ts.map +1 -1
- package/dist/commonjs/generated/classic/file/index.js +2 -1
- package/dist/commonjs/generated/classic/file/index.js.map +2 -2
- package/dist/commonjs/generated/classic/share/index.d.ts +9 -6
- package/dist/commonjs/generated/classic/share/index.d.ts.map +1 -1
- package/dist/commonjs/generated/classic/share/index.js +1 -1
- package/dist/commonjs/generated/classic/share/index.js.map +2 -2
- package/dist/commonjs/generated/fileClient.d.ts.map +1 -1
- package/dist/commonjs/generated/fileClient.js +1 -6
- package/dist/commonjs/generated/fileClient.js.map +2 -2
- package/dist/commonjs/generated/index.d.ts +2 -2
- package/dist/commonjs/generated/index.d.ts.map +1 -1
- package/dist/commonjs/generated/index.js.map +2 -2
- package/dist/commonjs/generated/models/index.d.ts +1 -1
- package/dist/commonjs/generated/models/index.d.ts.map +1 -1
- package/dist/commonjs/generated/models/index.js.map +2 -2
- package/dist/commonjs/generated/models/models.d.ts +133 -8
- package/dist/commonjs/generated/models/models.d.ts.map +1 -1
- package/dist/commonjs/generated/models/models.js +683 -5
- package/dist/commonjs/generated/models/models.js.map +2 -2
- package/dist/commonjs/generated/static-helpers/storageCompatResponse.d.ts +1 -1
- package/dist/commonjs/generated/static-helpers/storageCompatResponse.d.ts.map +1 -1
- package/dist/commonjs/generated/static-helpers/storageCompatResponse.js +1 -1
- package/dist/commonjs/generated/static-helpers/storageCompatResponse.js.map +2 -2
- package/dist/commonjs/generated/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/commonjs/generated/static-helpers/urlTemplate.js +2 -2
- package/dist/commonjs/generated/static-helpers/urlTemplate.js.map +2 -2
- package/dist/commonjs/generated-classic-models.d.ts +10 -0
- package/dist/commonjs/generated-classic-models.d.ts.map +1 -1
- package/dist/commonjs/generated-classic-models.js.map +2 -2
- package/dist/commonjs/generatedModels.d.ts +10 -0
- package/dist/commonjs/generatedModels.d.ts.map +1 -1
- package/dist/commonjs/generatedModels.js.map +2 -2
- package/dist/commonjs/package.json +6 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/commonjs/utils/constants.d.ts +1 -0
- package/dist/commonjs/utils/constants.d.ts.map +1 -1
- package/dist/commonjs/utils/constants.js +3 -2
- package/dist/commonjs/utils/constants.js.map +2 -2
- package/dist/commonjs/utils/utils.common.d.ts +23 -0
- package/dist/commonjs/utils/utils.common.d.ts.map +1 -1
- package/dist/commonjs/utils/utils.common.js +61 -11
- package/dist/commonjs/utils/utils.common.js.map +2 -2
- package/dist/esm/Clients.d.ts +130 -6
- package/dist/esm/Clients.d.ts.map +1 -1
- package/dist/esm/Clients.js +182 -16
- package/dist/esm/Clients.js.map +1 -1
- package/dist/esm/Pipeline.js +1 -1
- package/dist/esm/Pipeline.js.map +1 -1
- package/dist/esm/ShareServiceClient.d.ts.map +1 -1
- package/dist/esm/ShareServiceClient.js +1 -2
- package/dist/esm/ShareServiceClient.js.map +1 -1
- package/dist/esm/generated/api/directory/index.d.ts +1 -1
- package/dist/esm/generated/api/directory/index.d.ts.map +1 -1
- package/dist/esm/generated/api/directory/index.js +1 -1
- package/dist/esm/generated/api/directory/index.js.map +1 -1
- package/dist/esm/generated/api/directory/operations.d.ts +8 -10
- package/dist/esm/generated/api/directory/operations.d.ts.map +1 -1
- package/dist/esm/generated/api/directory/operations.js +27 -23
- package/dist/esm/generated/api/directory/operations.js.map +1 -1
- package/dist/esm/generated/api/file/index.d.ts +2 -2
- package/dist/esm/generated/api/file/index.d.ts.map +1 -1
- package/dist/esm/generated/api/file/index.js +1 -1
- package/dist/esm/generated/api/file/index.js.map +1 -1
- package/dist/esm/generated/api/file/operations.d.ts +137 -12
- package/dist/esm/generated/api/file/operations.d.ts.map +1 -1
- package/dist/esm/generated/api/file/operations.js +237 -39
- package/dist/esm/generated/api/file/operations.js.map +1 -1
- package/dist/esm/generated/api/file/options.d.ts +15 -0
- package/dist/esm/generated/api/file/options.d.ts.map +1 -1
- package/dist/esm/generated/api/file/options.js.map +1 -1
- package/dist/esm/generated/api/fileContext.d.ts.map +1 -1
- package/dist/esm/generated/api/fileContext.js +4 -3
- package/dist/esm/generated/api/fileContext.js.map +1 -1
- package/dist/esm/generated/api/service/operations.js +4 -4
- package/dist/esm/generated/api/service/operations.js.map +1 -1
- package/dist/esm/generated/api/share/index.d.ts +1 -1
- package/dist/esm/generated/api/share/index.d.ts.map +1 -1
- package/dist/esm/generated/api/share/index.js +1 -1
- package/dist/esm/generated/api/share/index.js.map +1 -1
- package/dist/esm/generated/api/share/operations.d.ts +17 -10
- package/dist/esm/generated/api/share/operations.d.ts.map +1 -1
- package/dist/esm/generated/api/share/operations.js +60 -31
- package/dist/esm/generated/api/share/operations.js.map +1 -1
- package/dist/esm/generated/api/share/options.d.ts +8 -0
- package/dist/esm/generated/api/share/options.d.ts.map +1 -1
- package/dist/esm/generated/api/share/options.js.map +1 -1
- package/dist/esm/generated/classic/directory/index.d.ts +3 -6
- package/dist/esm/generated/classic/directory/index.d.ts.map +1 -1
- package/dist/esm/generated/classic/directory/index.js +2 -2
- package/dist/esm/generated/classic/directory/index.js.map +1 -1
- package/dist/esm/generated/classic/file/index.d.ts +85 -8
- package/dist/esm/generated/classic/file/index.d.ts.map +1 -1
- package/dist/esm/generated/classic/file/index.js +3 -2
- package/dist/esm/generated/classic/file/index.js.map +1 -1
- package/dist/esm/generated/classic/share/index.d.ts +9 -6
- package/dist/esm/generated/classic/share/index.d.ts.map +1 -1
- package/dist/esm/generated/classic/share/index.js +2 -2
- package/dist/esm/generated/classic/share/index.js.map +1 -1
- package/dist/esm/generated/fileClient.d.ts.map +1 -1
- package/dist/esm/generated/fileClient.js +1 -8
- package/dist/esm/generated/fileClient.js.map +1 -1
- package/dist/esm/generated/index.d.ts +2 -2
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/index.js.map +1 -1
- package/dist/esm/generated/models/index.d.ts +1 -1
- package/dist/esm/generated/models/index.d.ts.map +1 -1
- package/dist/esm/generated/models/index.js.map +1 -1
- package/dist/esm/generated/models/models.d.ts +133 -8
- package/dist/esm/generated/models/models.d.ts.map +1 -1
- package/dist/esm/generated/models/models.js +644 -0
- package/dist/esm/generated/models/models.js.map +1 -1
- package/dist/esm/generated/static-helpers/storageCompatResponse.d.ts +1 -1
- package/dist/esm/generated/static-helpers/storageCompatResponse.d.ts.map +1 -1
- package/dist/esm/generated/static-helpers/storageCompatResponse.js +2 -2
- package/dist/esm/generated/static-helpers/storageCompatResponse.js.map +1 -1
- package/dist/esm/generated/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/esm/generated/static-helpers/urlTemplate.js +4 -2
- package/dist/esm/generated/static-helpers/urlTemplate.js.map +1 -1
- package/dist/esm/generated-classic-models.d.ts +10 -0
- package/dist/esm/generated-classic-models.d.ts.map +1 -1
- package/dist/esm/generated-classic-models.js.map +1 -1
- package/dist/esm/generatedModels.d.ts +10 -0
- package/dist/esm/generatedModels.d.ts.map +1 -1
- package/dist/esm/generatedModels.js.map +1 -1
- package/dist/esm/package.json +6 -1
- package/dist/esm/utils/constants.d.ts +1 -0
- package/dist/esm/utils/constants.d.ts.map +1 -1
- package/dist/esm/utils/constants.js +3 -2
- package/dist/esm/utils/constants.js.map +1 -1
- package/dist/esm/utils/utils.common.d.ts +23 -0
- package/dist/esm/utils/utils.common.d.ts.map +1 -1
- package/dist/esm/utils/utils.common.js +86 -11
- package/dist/esm/utils/utils.common.js.map +1 -1
- package/dist/react-native/Clients.d.ts +130 -6
- package/dist/react-native/Clients.d.ts.map +1 -1
- package/dist/react-native/Clients.js +182 -16
- package/dist/react-native/Clients.js.map +1 -1
- package/dist/react-native/Pipeline.js +1 -1
- package/dist/react-native/Pipeline.js.map +1 -1
- package/dist/react-native/ShareServiceClient.d.ts.map +1 -1
- package/dist/react-native/ShareServiceClient.js +1 -2
- package/dist/react-native/ShareServiceClient.js.map +1 -1
- package/dist/react-native/generated/api/directory/index.d.ts +1 -1
- package/dist/react-native/generated/api/directory/index.d.ts.map +1 -1
- package/dist/react-native/generated/api/directory/index.js +1 -1
- package/dist/react-native/generated/api/directory/index.js.map +1 -1
- package/dist/react-native/generated/api/directory/operations.d.ts +8 -10
- package/dist/react-native/generated/api/directory/operations.d.ts.map +1 -1
- package/dist/react-native/generated/api/directory/operations.js +27 -23
- package/dist/react-native/generated/api/directory/operations.js.map +1 -1
- package/dist/react-native/generated/api/file/index.d.ts +2 -2
- package/dist/react-native/generated/api/file/index.d.ts.map +1 -1
- package/dist/react-native/generated/api/file/index.js +1 -1
- package/dist/react-native/generated/api/file/index.js.map +1 -1
- package/dist/react-native/generated/api/file/operations.d.ts +137 -12
- package/dist/react-native/generated/api/file/operations.d.ts.map +1 -1
- package/dist/react-native/generated/api/file/operations.js +237 -39
- package/dist/react-native/generated/api/file/operations.js.map +1 -1
- package/dist/react-native/generated/api/file/options.d.ts +15 -0
- package/dist/react-native/generated/api/file/options.d.ts.map +1 -1
- package/dist/react-native/generated/api/file/options.js.map +1 -1
- package/dist/react-native/generated/api/fileContext.d.ts.map +1 -1
- package/dist/react-native/generated/api/fileContext.js +4 -3
- package/dist/react-native/generated/api/fileContext.js.map +1 -1
- package/dist/react-native/generated/api/service/operations.js +4 -4
- package/dist/react-native/generated/api/service/operations.js.map +1 -1
- package/dist/react-native/generated/api/share/index.d.ts +1 -1
- package/dist/react-native/generated/api/share/index.d.ts.map +1 -1
- package/dist/react-native/generated/api/share/index.js +1 -1
- package/dist/react-native/generated/api/share/index.js.map +1 -1
- package/dist/react-native/generated/api/share/operations.d.ts +17 -10
- package/dist/react-native/generated/api/share/operations.d.ts.map +1 -1
- package/dist/react-native/generated/api/share/operations.js +60 -31
- package/dist/react-native/generated/api/share/operations.js.map +1 -1
- package/dist/react-native/generated/api/share/options.d.ts +8 -0
- package/dist/react-native/generated/api/share/options.d.ts.map +1 -1
- package/dist/react-native/generated/api/share/options.js.map +1 -1
- package/dist/react-native/generated/classic/directory/index.d.ts +3 -6
- package/dist/react-native/generated/classic/directory/index.d.ts.map +1 -1
- package/dist/react-native/generated/classic/directory/index.js +2 -2
- package/dist/react-native/generated/classic/directory/index.js.map +1 -1
- package/dist/react-native/generated/classic/file/index.d.ts +85 -8
- package/dist/react-native/generated/classic/file/index.d.ts.map +1 -1
- package/dist/react-native/generated/classic/file/index.js +3 -2
- package/dist/react-native/generated/classic/file/index.js.map +1 -1
- package/dist/react-native/generated/classic/share/index.d.ts +9 -6
- package/dist/react-native/generated/classic/share/index.d.ts.map +1 -1
- package/dist/react-native/generated/classic/share/index.js +2 -2
- package/dist/react-native/generated/classic/share/index.js.map +1 -1
- package/dist/react-native/generated/fileClient.d.ts.map +1 -1
- package/dist/react-native/generated/fileClient.js +1 -8
- package/dist/react-native/generated/fileClient.js.map +1 -1
- package/dist/react-native/generated/index.d.ts +2 -2
- package/dist/react-native/generated/index.d.ts.map +1 -1
- package/dist/react-native/generated/index.js.map +1 -1
- package/dist/react-native/generated/models/index.d.ts +1 -1
- package/dist/react-native/generated/models/index.d.ts.map +1 -1
- package/dist/react-native/generated/models/index.js.map +1 -1
- package/dist/react-native/generated/models/models.d.ts +133 -8
- package/dist/react-native/generated/models/models.d.ts.map +1 -1
- package/dist/react-native/generated/models/models.js +644 -0
- package/dist/react-native/generated/models/models.js.map +1 -1
- package/dist/react-native/generated/static-helpers/storageCompatResponse.d.ts +1 -1
- package/dist/react-native/generated/static-helpers/storageCompatResponse.d.ts.map +1 -1
- package/dist/react-native/generated/static-helpers/storageCompatResponse.js +2 -2
- package/dist/react-native/generated/static-helpers/storageCompatResponse.js.map +1 -1
- package/dist/react-native/generated/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/react-native/generated/static-helpers/urlTemplate.js +4 -2
- package/dist/react-native/generated/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/generated-classic-models.d.ts +10 -0
- package/dist/react-native/generated-classic-models.d.ts.map +1 -1
- package/dist/react-native/generated-classic-models.js.map +1 -1
- package/dist/react-native/generatedModels.d.ts +10 -0
- package/dist/react-native/generatedModels.d.ts.map +1 -1
- package/dist/react-native/generatedModels.js.map +1 -1
- package/dist/react-native/package.json +6 -1
- package/dist/react-native/utils/constants.d.ts +1 -0
- package/dist/react-native/utils/constants.d.ts.map +1 -1
- package/dist/react-native/utils/constants.js +3 -2
- package/dist/react-native/utils/constants.js.map +1 -1
- package/dist/react-native/utils/utils.common.d.ts +23 -0
- package/dist/react-native/utils/utils.common.d.ts.map +1 -1
- package/dist/react-native/utils/utils.common.js +86 -11
- package/dist/react-native/utils/utils.common.js.map +1 -1
- package/package.json +14 -18
- package/dist/browser/generated/static-helpers/platform-types-browser.d.mts +0 -6
- package/dist/browser/generated/static-helpers/platform-types-browser.d.mts.map +0 -1
- package/dist/browser/generated/static-helpers/platform-types-browser.mjs +0 -2
- package/dist/browser/generated/static-helpers/platform-types-browser.mjs.map +0 -1
- package/dist/browser/generated/static-helpers/platform-types.d.ts +0 -6
- package/dist/browser/generated/static-helpers/platform-types.d.ts.map +0 -1
- package/dist/browser/generated/static-helpers/platform-types.js +0 -2
- package/dist/browser/generated/static-helpers/platform-types.js.map +0 -1
- package/dist/browser/generated/static-helpers/serialization/get-binary-stream-response.d.ts +0 -13
- package/dist/browser/generated/static-helpers/serialization/get-binary-stream-response.d.ts.map +0 -1
- package/dist/browser/generated/static-helpers/serialization/get-binary-stream-response.js +0 -15
- package/dist/browser/generated/static-helpers/serialization/get-binary-stream-response.js.map +0 -1
- package/dist/commonjs/generated/static-helpers/platform-types.d.ts +0 -8
- package/dist/commonjs/generated/static-helpers/platform-types.d.ts.map +0 -1
- package/dist/commonjs/generated/static-helpers/platform-types.js +0 -16
- package/dist/commonjs/generated/static-helpers/platform-types.js.map +0 -7
- package/dist/commonjs/generated/static-helpers/serialization/get-binary-stream-response.d.ts +0 -13
- package/dist/commonjs/generated/static-helpers/serialization/get-binary-stream-response.d.ts.map +0 -1
- package/dist/commonjs/generated/static-helpers/serialization/get-binary-stream-response.js +0 -35
- package/dist/commonjs/generated/static-helpers/serialization/get-binary-stream-response.js.map +0 -7
- package/dist/esm/generated/static-helpers/platform-types.d.ts +0 -8
- package/dist/esm/generated/static-helpers/platform-types.d.ts.map +0 -1
- package/dist/esm/generated/static-helpers/platform-types.js +0 -4
- package/dist/esm/generated/static-helpers/platform-types.js.map +0 -1
- package/dist/esm/generated/static-helpers/serialization/get-binary-stream-response.d.ts +0 -13
- package/dist/esm/generated/static-helpers/serialization/get-binary-stream-response.d.ts.map +0 -1
- package/dist/esm/generated/static-helpers/serialization/get-binary-stream-response.js +0 -17
- package/dist/esm/generated/static-helpers/serialization/get-binary-stream-response.js.map +0 -1
- package/dist/react-native/generated/static-helpers/platform-types-browser.d.mts +0 -6
- package/dist/react-native/generated/static-helpers/platform-types-browser.d.mts.map +0 -1
- package/dist/react-native/generated/static-helpers/platform-types-browser.mjs +0 -2
- package/dist/react-native/generated/static-helpers/platform-types-browser.mjs.map +0 -1
- package/dist/react-native/generated/static-helpers/platform-types.d.ts +0 -6
- package/dist/react-native/generated/static-helpers/platform-types.d.ts.map +0 -1
- package/dist/react-native/generated/static-helpers/platform-types.js +0 -2
- package/dist/react-native/generated/static-helpers/platform-types.js.map +0 -1
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response-browser.d.mts +0 -13
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response-browser.d.mts.map +0 -1
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response-browser.mjs +0 -15
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response-browser.mjs.map +0 -1
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response.d.ts +0 -2
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response.d.ts.map +0 -1
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response.js +0 -2
- package/dist/react-native/generated/static-helpers/serialization/get-binary-stream-response.js.map +0 -1
package/dist/commonjs/Clients.js
CHANGED
|
@@ -197,6 +197,39 @@ class ShareClient extends import_StorageClient.StorageClient {
|
|
|
197
197
|
get rootDirectoryClient() {
|
|
198
198
|
return this.getDirectoryClient("");
|
|
199
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Creates a {@link ShareFileClient} that addresses a file in an SMB file share by its file ID instead of its path.
|
|
202
|
+
* Only {@link ShareFileClient.getProperties}, {@link ShareFileClient.getFileLinks} and
|
|
203
|
+
* {@link ShareFileClient.withShareSnapshot} are supported on it; its other methods throw an error
|
|
204
|
+
* without sending a request.
|
|
205
|
+
*
|
|
206
|
+
* @param fileId - The file ID of the file, such as the `fileId` returned by {@link ShareFileClient.getProperties}.
|
|
207
|
+
* A `RangeError` is thrown when it's empty or only whitespace.
|
|
208
|
+
* @returns A ShareFileClient that addresses the file by its file ID.
|
|
209
|
+
*/
|
|
210
|
+
getShareFileClient(fileId) {
|
|
211
|
+
return new ShareFileClient(
|
|
212
|
+
(0, import_utils_common.setFileIdOnShareURL)(this.url, fileId),
|
|
213
|
+
this.pipeline,
|
|
214
|
+
this.shareClientConfig
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Creates a {@link ShareDirectoryClient} that addresses a directory in an SMB file share by its file ID instead of
|
|
219
|
+
* its path. Only {@link ShareDirectoryClient.getProperties} is supported on it; its other methods throw an error
|
|
220
|
+
* without sending a request.
|
|
221
|
+
*
|
|
222
|
+
* @param fileId - The file ID of the directory, such as the `fileId` returned by {@link ShareDirectoryClient.getProperties}.
|
|
223
|
+
* A `RangeError` is thrown when it's empty or only whitespace.
|
|
224
|
+
* @returns A ShareDirectoryClient that addresses the directory by its file ID.
|
|
225
|
+
*/
|
|
226
|
+
getShareDirectoryClient(fileId) {
|
|
227
|
+
return new ShareDirectoryClient(
|
|
228
|
+
(0, import_utils_common.setFileIdOnShareURL)(this.url, fileId),
|
|
229
|
+
this.pipeline,
|
|
230
|
+
this.shareClientConfig
|
|
231
|
+
);
|
|
232
|
+
}
|
|
200
233
|
/**
|
|
201
234
|
* Creates a new subdirectory under this share.
|
|
202
235
|
* @see https://learn.microsoft.com/rest/api/storageservices/create-directory
|
|
@@ -358,7 +391,7 @@ class ShareClient extends import_StorageClient.StorageClient {
|
|
|
358
391
|
return import_tracing.tracingClient.withSpan("ShareClient-delete", options, async (updatedOptions) => {
|
|
359
392
|
return (0, import_utils_common.assertResponse)(
|
|
360
393
|
(0, import_utils_common.adjustResponse)(
|
|
361
|
-
await this.context.
|
|
394
|
+
await this.context.deleteShare({
|
|
362
395
|
...updatedOptions,
|
|
363
396
|
...updatedOptions.leaseAccessConditions,
|
|
364
397
|
...this.shareClientConfig
|
|
@@ -767,6 +800,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
767
800
|
_shareName;
|
|
768
801
|
_path;
|
|
769
802
|
_name;
|
|
803
|
+
_fileId;
|
|
770
804
|
shareClientConfig;
|
|
771
805
|
/**
|
|
772
806
|
* The share name corresponding to this directory client
|
|
@@ -775,17 +809,24 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
775
809
|
return this._shareName;
|
|
776
810
|
}
|
|
777
811
|
/**
|
|
778
|
-
* The full path of the directory
|
|
812
|
+
* The full path of the directory. Empty when the client addresses the directory by its file ID.
|
|
779
813
|
*/
|
|
780
814
|
get path() {
|
|
781
815
|
return this._path;
|
|
782
816
|
}
|
|
783
817
|
/**
|
|
784
|
-
* The name of the directory
|
|
818
|
+
* The name of the directory. Empty when the client addresses the directory by its file ID.
|
|
785
819
|
*/
|
|
786
820
|
get name() {
|
|
787
821
|
return this._name;
|
|
788
822
|
}
|
|
823
|
+
/**
|
|
824
|
+
* The file ID the client addresses the directory by, such as for a client created with
|
|
825
|
+
* {@link ShareClient.getShareDirectoryClient}. Undefined when the client addresses the directory by its path.
|
|
826
|
+
*/
|
|
827
|
+
get fileId() {
|
|
828
|
+
return this._fileId;
|
|
829
|
+
}
|
|
789
830
|
constructor(url, credentialOrPipeline, options = {}) {
|
|
790
831
|
let pipeline;
|
|
791
832
|
if ((0, import_Pipeline.isPipelineLike)(credentialOrPipeline)) {
|
|
@@ -801,6 +842,11 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
801
842
|
shareName: this._shareName,
|
|
802
843
|
path: this._path
|
|
803
844
|
} = (0, import_utils_common.getShareNameAndPathFromUrl)(this.url));
|
|
845
|
+
this._fileId = (0, import_utils_common.getFileIdFromURL)(this.url);
|
|
846
|
+
if (this._fileId) {
|
|
847
|
+
this._name = "";
|
|
848
|
+
this._path = "";
|
|
849
|
+
}
|
|
804
850
|
this.shareClientConfig = options;
|
|
805
851
|
this.context = this.storageClientContext.directory;
|
|
806
852
|
}
|
|
@@ -812,6 +858,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
812
858
|
* @returns Response data for the Directory operation.
|
|
813
859
|
*/
|
|
814
860
|
async create(options = {}) {
|
|
861
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "create");
|
|
815
862
|
if (!options.fileAttributes) {
|
|
816
863
|
options = (0, import_models2.validateAndSetDefaultsForFileAndDirectoryCreateCommonOptions)(options);
|
|
817
864
|
}
|
|
@@ -858,6 +905,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
858
905
|
* @param options -
|
|
859
906
|
*/
|
|
860
907
|
async createIfNotExists(options = {}) {
|
|
908
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "createIfNotExists");
|
|
861
909
|
return import_tracing.tracingClient.withSpan(
|
|
862
910
|
"ShareDirectoryClient-createIfNotExists",
|
|
863
911
|
options,
|
|
@@ -890,6 +938,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
890
938
|
* existing values will be preserved.
|
|
891
939
|
*/
|
|
892
940
|
async setProperties(properties = {}) {
|
|
941
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "setProperties");
|
|
893
942
|
properties = (0, import_models2.validateAndSetDefaultsForFileAndDirectorySetPropertiesCommonOptions)(properties);
|
|
894
943
|
return import_tracing.tracingClient.withSpan(
|
|
895
944
|
"ShareDirectoryClient-setProperties",
|
|
@@ -951,6 +1000,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
951
1000
|
* ```
|
|
952
1001
|
*/
|
|
953
1002
|
getDirectoryClient(subDirectoryName) {
|
|
1003
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "getDirectoryClient");
|
|
954
1004
|
return new ShareDirectoryClient(
|
|
955
1005
|
(0, import_utils_common.appendToURLPath)(this.url, (0, import_utils_common.EscapePath)(subDirectoryName)),
|
|
956
1006
|
this.pipeline,
|
|
@@ -966,6 +1016,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
966
1016
|
* @returns Directory create response data and the corresponding DirectoryClient instance.
|
|
967
1017
|
*/
|
|
968
1018
|
async createSubdirectory(directoryName, options = {}) {
|
|
1019
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "createSubdirectory");
|
|
969
1020
|
return import_tracing.tracingClient.withSpan(
|
|
970
1021
|
"ShareDirectoryClient-createSubdirectory",
|
|
971
1022
|
options,
|
|
@@ -989,6 +1040,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
989
1040
|
* @returns Directory deletion response data.
|
|
990
1041
|
*/
|
|
991
1042
|
async deleteSubdirectory(directoryName, options = {}) {
|
|
1043
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "deleteSubdirectory");
|
|
992
1044
|
return import_tracing.tracingClient.withSpan(
|
|
993
1045
|
"ShareDirectoryClient-deleteSubdirectory",
|
|
994
1046
|
options,
|
|
@@ -1008,6 +1060,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
1008
1060
|
* @returns File creation response data and the corresponding file client.
|
|
1009
1061
|
*/
|
|
1010
1062
|
async createFile(fileName, size, options = {}) {
|
|
1063
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "createFile");
|
|
1011
1064
|
return import_tracing.tracingClient.withSpan(
|
|
1012
1065
|
"ShareDirectoryClient-createFile",
|
|
1013
1066
|
options,
|
|
@@ -1040,6 +1093,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
1040
1093
|
* @returns File deletion response data.
|
|
1041
1094
|
*/
|
|
1042
1095
|
async deleteFile(fileName, options = {}) {
|
|
1096
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "deleteFile");
|
|
1043
1097
|
return import_tracing.tracingClient.withSpan(
|
|
1044
1098
|
"ShareDirectoryClient-deleteFile",
|
|
1045
1099
|
options,
|
|
@@ -1087,6 +1141,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
1087
1141
|
// Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.
|
|
1088
1142
|
/* eslint-disable-next-line @azure/azure-sdk/ts-naming-subclients */
|
|
1089
1143
|
getFileClient(fileName) {
|
|
1144
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "getFileClient");
|
|
1090
1145
|
return new ShareFileClient(
|
|
1091
1146
|
(0, import_utils_common.appendToURLPath)(this.url, (0, import_utils_common.EscapePath)(fileName)),
|
|
1092
1147
|
this.pipeline,
|
|
@@ -1103,6 +1158,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
1103
1158
|
* @param options - options to Exists operation.
|
|
1104
1159
|
*/
|
|
1105
1160
|
async exists(options = {}) {
|
|
1161
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "exists");
|
|
1106
1162
|
return import_tracing.tracingClient.withSpan(
|
|
1107
1163
|
"ShareDirectoryClient-exists",
|
|
1108
1164
|
options,
|
|
@@ -1165,13 +1221,14 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
1165
1221
|
* @returns Response data for the Directory Delete operation.
|
|
1166
1222
|
*/
|
|
1167
1223
|
async delete(options = {}) {
|
|
1224
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "delete");
|
|
1168
1225
|
return import_tracing.tracingClient.withSpan(
|
|
1169
1226
|
"ShareDirectoryClient-delete",
|
|
1170
1227
|
options,
|
|
1171
1228
|
async (updatedOptions) => {
|
|
1172
1229
|
return (0, import_utils_common.assertResponse)(
|
|
1173
1230
|
(0, import_utils_common.adjustResponse)(
|
|
1174
|
-
await this.context.
|
|
1231
|
+
await this.context.deleteDirectory({ ...updatedOptions, ...this.shareClientConfig })
|
|
1175
1232
|
)
|
|
1176
1233
|
);
|
|
1177
1234
|
}
|
|
@@ -1185,6 +1242,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
1185
1242
|
* @param options -
|
|
1186
1243
|
*/
|
|
1187
1244
|
async deleteIfExists(options = {}) {
|
|
1245
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "deleteIfExists");
|
|
1188
1246
|
return import_tracing.tracingClient.withSpan(
|
|
1189
1247
|
"ShareDirectoryClient-deleteIfExists",
|
|
1190
1248
|
options,
|
|
@@ -1218,6 +1276,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
1218
1276
|
* @returns Response data for the Directory Set Metadata operation.
|
|
1219
1277
|
*/
|
|
1220
1278
|
async setMetadata(metadata, options = {}) {
|
|
1279
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "setMetadata");
|
|
1221
1280
|
return import_tracing.tracingClient.withSpan(
|
|
1222
1281
|
"ShareDirectoryClient-setMetadata",
|
|
1223
1282
|
options,
|
|
@@ -1267,9 +1326,8 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
1267
1326
|
if (options.prefix === "") {
|
|
1268
1327
|
options.prefix = void 0;
|
|
1269
1328
|
}
|
|
1270
|
-
let marker;
|
|
1271
1329
|
for await (const listFilesAndDirectoriesResponse of this.iterateFilesAndDirectoriesSegments(
|
|
1272
|
-
|
|
1330
|
+
void 0,
|
|
1273
1331
|
options
|
|
1274
1332
|
)) {
|
|
1275
1333
|
for (const file of listFilesAndDirectoriesResponse.segment.fileItems) {
|
|
@@ -1430,6 +1488,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
1430
1488
|
* @returns An asyncIterableIterator that supports paging.
|
|
1431
1489
|
*/
|
|
1432
1490
|
listFilesAndDirectories(options = {}) {
|
|
1491
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "listFilesAndDirectories");
|
|
1433
1492
|
const include = [];
|
|
1434
1493
|
if (options.includeTimestamps) {
|
|
1435
1494
|
include.push("Timestamps");
|
|
@@ -1542,8 +1601,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
1542
1601
|
* @param options - Options to list handles operation.
|
|
1543
1602
|
*/
|
|
1544
1603
|
async *listHandleItems(options = {}) {
|
|
1545
|
-
|
|
1546
|
-
for await (const listHandlesResponse of this.iterateHandleSegments(marker, options)) {
|
|
1604
|
+
for await (const listHandlesResponse of this.iterateHandleSegments(void 0, options)) {
|
|
1547
1605
|
if (listHandlesResponse.handleList) {
|
|
1548
1606
|
for (const handle of listHandlesResponse.handleList) {
|
|
1549
1607
|
yield handle;
|
|
@@ -1675,6 +1733,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
1675
1733
|
* An asyncIterableIterator that supports paging.
|
|
1676
1734
|
*/
|
|
1677
1735
|
listHandles(options = {}) {
|
|
1736
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "listHandles");
|
|
1678
1737
|
const iter = this.listHandleItems(options);
|
|
1679
1738
|
return {
|
|
1680
1739
|
/**
|
|
@@ -1783,6 +1842,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
1783
1842
|
* @param options -
|
|
1784
1843
|
*/
|
|
1785
1844
|
async forceCloseAllHandles(options = {}) {
|
|
1845
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "forceCloseAllHandles");
|
|
1786
1846
|
return import_tracing.tracingClient.withSpan(
|
|
1787
1847
|
"ShareDirectoryClient-forceCloseAllHandles",
|
|
1788
1848
|
options,
|
|
@@ -1818,6 +1878,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
1818
1878
|
* @param options -
|
|
1819
1879
|
*/
|
|
1820
1880
|
async forceCloseHandle(handleId, options = {}) {
|
|
1881
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "forceCloseHandle");
|
|
1821
1882
|
return import_tracing.tracingClient.withSpan(
|
|
1822
1883
|
"ShareDirectoryClient-forceCloseHandle",
|
|
1823
1884
|
options,
|
|
@@ -1871,6 +1932,7 @@ class ShareDirectoryClient extends import_StorageClient.StorageClient {
|
|
|
1871
1932
|
* ```
|
|
1872
1933
|
*/
|
|
1873
1934
|
async rename(destinationPath, options = {}) {
|
|
1935
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "rename");
|
|
1874
1936
|
const split = destinationPath.split("?");
|
|
1875
1937
|
let destinationUrl;
|
|
1876
1938
|
if (split.length === 2) {
|
|
@@ -1924,6 +1986,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
1924
1986
|
_shareName;
|
|
1925
1987
|
_path;
|
|
1926
1988
|
_name;
|
|
1989
|
+
_fileId;
|
|
1927
1990
|
shareClientConfig;
|
|
1928
1991
|
/**
|
|
1929
1992
|
* The share name corresponding to this file client
|
|
@@ -1932,17 +1995,24 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
1932
1995
|
return this._shareName;
|
|
1933
1996
|
}
|
|
1934
1997
|
/**
|
|
1935
|
-
* The full path of the file
|
|
1998
|
+
* The full path of the file. Empty when the client addresses the file by its file ID.
|
|
1936
1999
|
*/
|
|
1937
2000
|
get path() {
|
|
1938
2001
|
return this._path;
|
|
1939
2002
|
}
|
|
1940
2003
|
/**
|
|
1941
|
-
* The name of the file
|
|
2004
|
+
* The name of the file. Empty when the client addresses the file by its file ID.
|
|
1942
2005
|
*/
|
|
1943
2006
|
get name() {
|
|
1944
2007
|
return this._name;
|
|
1945
2008
|
}
|
|
2009
|
+
/**
|
|
2010
|
+
* The file ID the client addresses the file by, such as for a client created with
|
|
2011
|
+
* {@link ShareClient.getShareFileClient}. Undefined when the client addresses the file by its path.
|
|
2012
|
+
*/
|
|
2013
|
+
get fileId() {
|
|
2014
|
+
return this._fileId;
|
|
2015
|
+
}
|
|
1946
2016
|
constructor(url, credentialOrPipeline, options) {
|
|
1947
2017
|
let pipeline;
|
|
1948
2018
|
if ((0, import_Pipeline.isPipelineLike)(credentialOrPipeline)) {
|
|
@@ -1958,6 +2028,11 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
1958
2028
|
shareName: this._shareName,
|
|
1959
2029
|
path: this._path
|
|
1960
2030
|
} = (0, import_utils_common.getShareNameAndPathFromUrl)(this.url));
|
|
2031
|
+
this._fileId = (0, import_utils_common.getFileIdFromURL)(this.url);
|
|
2032
|
+
if (this._fileId) {
|
|
2033
|
+
this._name = "";
|
|
2034
|
+
this._path = "";
|
|
2035
|
+
}
|
|
1961
2036
|
this.shareClientConfig = options;
|
|
1962
2037
|
this.context = this.storageClientContext.file;
|
|
1963
2038
|
}
|
|
@@ -2017,6 +2092,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2017
2092
|
* ```
|
|
2018
2093
|
*/
|
|
2019
2094
|
async create(size, options = {}) {
|
|
2095
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "create");
|
|
2020
2096
|
if (size < 0 || size > import_constants.FILE_MAX_SIZE_BYTES) {
|
|
2021
2097
|
throw new RangeError(`File size must >= 0 and < ${import_constants.FILE_MAX_SIZE_BYTES}.`);
|
|
2022
2098
|
}
|
|
@@ -2146,6 +2222,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2146
2222
|
* ```
|
|
2147
2223
|
*/
|
|
2148
2224
|
async download(offset = 0, count, options = {}) {
|
|
2225
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "download");
|
|
2149
2226
|
return import_tracing.tracingClient.withSpan("ShareFileClient-download", options, async (updatedOptions) => {
|
|
2150
2227
|
let contentChecksumAlgorithm = options.contentChecksumAlgorithm ?? this.shareClientConfig?.downloadContentChecksumAlgorithm;
|
|
2151
2228
|
if (contentChecksumAlgorithm === void 0) {
|
|
@@ -2243,6 +2320,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2243
2320
|
* @param options - options to Exists operation.
|
|
2244
2321
|
*/
|
|
2245
2322
|
async exists(options = {}) {
|
|
2323
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "exists");
|
|
2246
2324
|
return import_tracing.tracingClient.withSpan("ShareFileClient-exists", options, async (updatedOptions) => {
|
|
2247
2325
|
try {
|
|
2248
2326
|
await this.getProperties(updatedOptions);
|
|
@@ -2295,6 +2373,83 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2295
2373
|
}
|
|
2296
2374
|
);
|
|
2297
2375
|
}
|
|
2376
|
+
/**
|
|
2377
|
+
* Returns the hard links of the file, along with all user-defined metadata, standard HTTP properties,
|
|
2378
|
+
* and system properties for the file. It does not return the content of the file.
|
|
2379
|
+
*
|
|
2380
|
+
* Only supported when the client addresses the file by its file ID, such as a client created with
|
|
2381
|
+
* {@link ShareClient.getShareFileClient}; otherwise it throws an error before sending a request. Addressing by
|
|
2382
|
+
* file ID is supported only on SMB file shares, where a file has a single link: its own name in the directory
|
|
2383
|
+
* that contains it.
|
|
2384
|
+
*
|
|
2385
|
+
* @param options - Options to File Get File Links operation.
|
|
2386
|
+
* @returns Response data for the File Get File Links operation.
|
|
2387
|
+
*/
|
|
2388
|
+
async getFileLinks(options = {}) {
|
|
2389
|
+
if (!this._fileId) {
|
|
2390
|
+
throw new Error(
|
|
2391
|
+
"getFileLinks is only supported when the client addresses the resource by file ID."
|
|
2392
|
+
);
|
|
2393
|
+
}
|
|
2394
|
+
return import_tracing.tracingClient.withSpan(
|
|
2395
|
+
"ShareFileClient-getFileLinks",
|
|
2396
|
+
options,
|
|
2397
|
+
async (updatedOptions) => {
|
|
2398
|
+
const response = (0, import_utils_common.adjustResponse)(
|
|
2399
|
+
await this.context.getHardLinks({
|
|
2400
|
+
...updatedOptions,
|
|
2401
|
+
...updatedOptions.leaseAccessConditions,
|
|
2402
|
+
...this.shareClientConfig
|
|
2403
|
+
})
|
|
2404
|
+
);
|
|
2405
|
+
const {
|
|
2406
|
+
fileContentType,
|
|
2407
|
+
fileContentLength,
|
|
2408
|
+
fileContentMD5,
|
|
2409
|
+
fileContentEncoding,
|
|
2410
|
+
fileContentLanguage,
|
|
2411
|
+
fileCacheControl,
|
|
2412
|
+
fileContentDisposition,
|
|
2413
|
+
serverEncrypted,
|
|
2414
|
+
hardLinks,
|
|
2415
|
+
_response: rawResponse,
|
|
2416
|
+
...properties
|
|
2417
|
+
} = response;
|
|
2418
|
+
const headers = {
|
|
2419
|
+
...properties,
|
|
2420
|
+
contentType: fileContentType,
|
|
2421
|
+
contentLength: fileContentLength,
|
|
2422
|
+
contentMD5: fileContentMD5,
|
|
2423
|
+
contentEncoding: fileContentEncoding,
|
|
2424
|
+
contentLanguage: fileContentLanguage,
|
|
2425
|
+
cacheControl: fileCacheControl,
|
|
2426
|
+
contentDisposition: fileContentDisposition,
|
|
2427
|
+
isServerEncrypted: serverEncrypted,
|
|
2428
|
+
metadata: (0, import_models2.rawHeadersToMetadata)(rawResponse.headers.rawHeaders()),
|
|
2429
|
+
posixProperties: {
|
|
2430
|
+
fileMode: (0, import_utils_common.parseOctalFileMode)(response.fileMode),
|
|
2431
|
+
fileType: response.nfsFileType,
|
|
2432
|
+
owner: response.owner,
|
|
2433
|
+
group: response.group,
|
|
2434
|
+
linkCount: response.linkCount
|
|
2435
|
+
},
|
|
2436
|
+
leaseDuration: response.leaseDuration ? response.leaseDuration : void 0,
|
|
2437
|
+
leaseState: response.leaseState ? response.leaseState : void 0,
|
|
2438
|
+
leaseStatus: response.leaseStatus ? response.leaseStatus : void 0
|
|
2439
|
+
};
|
|
2440
|
+
const links = (hardLinks ?? []).map((link) => ({
|
|
2441
|
+
name: (0, import_utils_common.StringEncodedToString)(link.fileName),
|
|
2442
|
+
parentId: link.parentId
|
|
2443
|
+
}));
|
|
2444
|
+
const wrappedRes = {
|
|
2445
|
+
...headers,
|
|
2446
|
+
links,
|
|
2447
|
+
_response: { ...rawResponse, parsedHeaders: headers, parsedBody: links }
|
|
2448
|
+
};
|
|
2449
|
+
return (0, import_utils_common.assertResponse)(wrappedRes);
|
|
2450
|
+
}
|
|
2451
|
+
);
|
|
2452
|
+
}
|
|
2298
2453
|
/**
|
|
2299
2454
|
* Sets properties on the file.
|
|
2300
2455
|
* @see https://learn.microsoft.com/rest/api/storageservices/set-file-properties
|
|
@@ -2305,6 +2460,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2305
2460
|
* existing values will be preserved.
|
|
2306
2461
|
*/
|
|
2307
2462
|
async setProperties(properties = {}) {
|
|
2463
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "setProperties");
|
|
2308
2464
|
properties = (0, import_models2.validateAndSetDefaultsForFileAndDirectorySetPropertiesCommonOptions)(properties);
|
|
2309
2465
|
properties.fileHttpHeaders = properties.fileHttpHeaders || {};
|
|
2310
2466
|
return import_tracing.tracingClient.withSpan(
|
|
@@ -2359,10 +2515,11 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2359
2515
|
* @returns Response data for the File Delete operation.
|
|
2360
2516
|
*/
|
|
2361
2517
|
async delete(options = {}) {
|
|
2518
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "delete");
|
|
2362
2519
|
return import_tracing.tracingClient.withSpan("ShareFileClient-delete", options, async (updatedOptions) => {
|
|
2363
2520
|
return (0, import_utils_common.assertResponse)(
|
|
2364
2521
|
(0, import_utils_common.adjustResponse)(
|
|
2365
|
-
await this.context.
|
|
2522
|
+
await this.context.deleteFile({
|
|
2366
2523
|
...updatedOptions,
|
|
2367
2524
|
...updatedOptions.leaseAccessConditions,
|
|
2368
2525
|
...this.shareClientConfig
|
|
@@ -2388,6 +2545,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2388
2545
|
* @param options -
|
|
2389
2546
|
*/
|
|
2390
2547
|
async deleteIfExists(options = {}) {
|
|
2548
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "deleteIfExists");
|
|
2391
2549
|
return import_tracing.tracingClient.withSpan(
|
|
2392
2550
|
"ShareFileClient-deleteIfExists",
|
|
2393
2551
|
options,
|
|
@@ -2425,6 +2583,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2425
2583
|
* @returns Response data for the File Set HTTP Headers operation.
|
|
2426
2584
|
*/
|
|
2427
2585
|
async setHttpHeaders(fileHttpHeaders = {}, options = {}) {
|
|
2586
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "setHttpHeaders");
|
|
2428
2587
|
options = (0, import_models2.validateAndSetDefaultsForFileAndDirectorySetPropertiesCommonOptions)(options);
|
|
2429
2588
|
return import_tracing.tracingClient.withSpan(
|
|
2430
2589
|
"ShareFileClient-setHTTPHeaders",
|
|
@@ -2472,6 +2631,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2472
2631
|
* @returns Response data for the File Set HTTP Headers operation.
|
|
2473
2632
|
*/
|
|
2474
2633
|
async resize(length, options = {}) {
|
|
2634
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "resize");
|
|
2475
2635
|
if (length < 0) {
|
|
2476
2636
|
throw new RangeError(`Size cannot less than 0 when resizing file.`);
|
|
2477
2637
|
}
|
|
@@ -2517,6 +2677,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2517
2677
|
* @returns Response data for the File Set Metadata operation.
|
|
2518
2678
|
*/
|
|
2519
2679
|
async setMetadata(metadata = {}, options = {}) {
|
|
2680
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "setMetadata");
|
|
2520
2681
|
return import_tracing.tracingClient.withSpan(
|
|
2521
2682
|
"ShareFileClient-setMetadata",
|
|
2522
2683
|
options,
|
|
@@ -2578,6 +2739,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2578
2739
|
* ```
|
|
2579
2740
|
*/
|
|
2580
2741
|
async uploadRange(body, offset, contentLength, options = {}) {
|
|
2742
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "uploadRange");
|
|
2581
2743
|
return import_tracing.tracingClient.withSpan(
|
|
2582
2744
|
"ShareFileClient-uploadRange",
|
|
2583
2745
|
options,
|
|
@@ -2632,6 +2794,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2632
2794
|
* @param options - Options to configure File - Upload Range from URL operation.
|
|
2633
2795
|
*/
|
|
2634
2796
|
async uploadRangeFromURL(sourceURL, sourceOffset, destOffset, count, options = {}) {
|
|
2797
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "uploadRangeFromURL");
|
|
2635
2798
|
return import_tracing.tracingClient.withSpan(
|
|
2636
2799
|
"ShareFileClient-uploadRangeFromURL",
|
|
2637
2800
|
options,
|
|
@@ -2682,6 +2845,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2682
2845
|
* @param options - Options to File Clear Range operation.
|
|
2683
2846
|
*/
|
|
2684
2847
|
async clearRange(offset, contentLength, options = {}) {
|
|
2848
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "clearRange");
|
|
2685
2849
|
return import_tracing.tracingClient.withSpan("ShareFileClient-clearRange", options, async (updatedOptions) => {
|
|
2686
2850
|
if (offset < 0 || contentLength <= 0) {
|
|
2687
2851
|
throw new RangeError(`offset must >= 0 and contentLength must be > 0`);
|
|
@@ -2711,6 +2875,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2711
2875
|
* @param options - Options to File Get range List operation.
|
|
2712
2876
|
*/
|
|
2713
2877
|
async getRangeList(options = {}) {
|
|
2878
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "getRangeList");
|
|
2714
2879
|
return import_tracing.tracingClient.withSpan(
|
|
2715
2880
|
"ShareFileClient-getRangeList",
|
|
2716
2881
|
options,
|
|
@@ -2744,6 +2909,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2744
2909
|
* @param options -
|
|
2745
2910
|
*/
|
|
2746
2911
|
async getRangeListDiff(prevShareSnapshot, options = {}) {
|
|
2912
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "getRangeListDiff");
|
|
2747
2913
|
return import_tracing.tracingClient.withSpan(
|
|
2748
2914
|
"ShareFileClient-getRangeListDiff",
|
|
2749
2915
|
options,
|
|
@@ -2774,6 +2940,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2774
2940
|
* @returns An asyncIterableIterator that supports paging.
|
|
2775
2941
|
*/
|
|
2776
2942
|
listRanges(options = {}) {
|
|
2943
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "listRanges");
|
|
2777
2944
|
const iter = this.listRangeItems(options);
|
|
2778
2945
|
return {
|
|
2779
2946
|
/**
|
|
@@ -2812,6 +2979,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2812
2979
|
* @returns An asyncIterableIterator that supports paging.
|
|
2813
2980
|
*/
|
|
2814
2981
|
listRangesDiff(prevShareSnapshot, options = {}) {
|
|
2982
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "listRangesDiff");
|
|
2815
2983
|
const iter = this.listRangeItems({ ...options, prevShareSnapshot });
|
|
2816
2984
|
return {
|
|
2817
2985
|
/**
|
|
@@ -2908,6 +3076,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2908
3076
|
* @param options - Options to File Start Copy operation.
|
|
2909
3077
|
*/
|
|
2910
3078
|
async startCopyFromURL(copySource, options = {}) {
|
|
3079
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "startCopyFromURL");
|
|
2911
3080
|
return import_tracing.tracingClient.withSpan(
|
|
2912
3081
|
"ShareFileClient-startCopyFromURL",
|
|
2913
3082
|
options,
|
|
@@ -2940,6 +3109,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2940
3109
|
* @param options - Options to File Abort Copy From URL operation.
|
|
2941
3110
|
*/
|
|
2942
3111
|
async abortCopyFromURL(copyId, options = {}) {
|
|
3112
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "abortCopyFromURL");
|
|
2943
3113
|
return import_tracing.tracingClient.withSpan(
|
|
2944
3114
|
"ShareFileClient-abortCopyFromURL",
|
|
2945
3115
|
options,
|
|
@@ -2964,6 +3134,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
2964
3134
|
* @param options -
|
|
2965
3135
|
*/
|
|
2966
3136
|
async uploadData(data, options = {}) {
|
|
3137
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "uploadData");
|
|
2967
3138
|
return import_tracing.tracingClient.withSpan("ShareFileClient-uploadData", options, async (updatedOptions) => {
|
|
2968
3139
|
if (import_core_util.isNodeLike) {
|
|
2969
3140
|
let buffer;
|
|
@@ -3001,6 +3172,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3001
3172
|
* @param options -
|
|
3002
3173
|
*/
|
|
3003
3174
|
async uploadSeekableBlob(blobFactory, size, options = {}) {
|
|
3175
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "uploadSeekableBlob");
|
|
3004
3176
|
return import_tracing.tracingClient.withSpan(
|
|
3005
3177
|
"ShareFileClient-UploadSeekableBlob",
|
|
3006
3178
|
options,
|
|
@@ -3019,6 +3191,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3019
3191
|
* @param options -
|
|
3020
3192
|
*/
|
|
3021
3193
|
async uploadFile(filePath, options = {}) {
|
|
3194
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "uploadFile");
|
|
3022
3195
|
return import_tracing.tracingClient.withSpan("ShareFileClient-uploadFile", options, async (updatedOptions) => {
|
|
3023
3196
|
const size = (await (0, import_utils.fsStat)(filePath)).size;
|
|
3024
3197
|
return this.uploadSeekableInternal(
|
|
@@ -3048,6 +3221,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3048
3221
|
* @param options -
|
|
3049
3222
|
*/
|
|
3050
3223
|
async uploadResetableStream(streamFactory, size, options = {}) {
|
|
3224
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "uploadResetableStream");
|
|
3051
3225
|
return import_tracing.tracingClient.withSpan(
|
|
3052
3226
|
"ShareFileClient-uploadResetableStream",
|
|
3053
3227
|
options,
|
|
@@ -3121,6 +3295,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3121
3295
|
);
|
|
3122
3296
|
}
|
|
3123
3297
|
async downloadToBuffer(bufferOrOffset, offsetOrCount, countOrOptions, optOptions = {}) {
|
|
3298
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "downloadToBuffer");
|
|
3124
3299
|
let buffer = void 0;
|
|
3125
3300
|
let offset;
|
|
3126
3301
|
let count;
|
|
@@ -3174,7 +3349,8 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3174
3349
|
buffer = Buffer.alloc(count);
|
|
3175
3350
|
} catch (error) {
|
|
3176
3351
|
throw new Error(
|
|
3177
|
-
`Unable to allocate a buffer of size: ${count} bytes. Please try passing your own Buffer to the "downloadToBuffer method or try using other methods like "download" or "downloadToFile". ${error.message}
|
|
3352
|
+
`Unable to allocate a buffer of size: ${count} bytes. Please try passing your own Buffer to the "downloadToBuffer method or try using other methods like "download" or "downloadToFile". ${error.message}`,
|
|
3353
|
+
{ cause: error }
|
|
3178
3354
|
);
|
|
3179
3355
|
}
|
|
3180
3356
|
}
|
|
@@ -3233,6 +3409,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3233
3409
|
* @param options -
|
|
3234
3410
|
*/
|
|
3235
3411
|
async uploadStream(stream, size, bufferSize, maxBuffers, options = {}) {
|
|
3412
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "uploadStream");
|
|
3236
3413
|
return import_tracing.tracingClient.withSpan(
|
|
3237
3414
|
"ShareFileClient-uploadStream",
|
|
3238
3415
|
options,
|
|
@@ -3302,6 +3479,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3302
3479
|
* at the specified path.
|
|
3303
3480
|
*/
|
|
3304
3481
|
async downloadToFile(filePath, offset = 0, count, options = {}) {
|
|
3482
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "downloadToFile");
|
|
3305
3483
|
return import_tracing.tracingClient.withSpan(
|
|
3306
3484
|
"ShareFileClient-downloadToFile",
|
|
3307
3485
|
options,
|
|
@@ -3382,8 +3560,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3382
3560
|
* @param options - Options to list handles operation.
|
|
3383
3561
|
*/
|
|
3384
3562
|
async *listHandleItems(options = {}) {
|
|
3385
|
-
|
|
3386
|
-
for await (const listHandlesResponse of this.iterateHandleSegments(marker, options)) {
|
|
3563
|
+
for await (const listHandlesResponse of this.iterateHandleSegments(void 0, options)) {
|
|
3387
3564
|
if (listHandlesResponse.handleList) {
|
|
3388
3565
|
for (const handle of listHandlesResponse.handleList) {
|
|
3389
3566
|
yield handle;
|
|
@@ -3402,6 +3579,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3402
3579
|
* An asyncIterableIterator that supports paging.
|
|
3403
3580
|
*/
|
|
3404
3581
|
listHandles(options = {}) {
|
|
3582
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "listHandles");
|
|
3405
3583
|
const iter = this.listHandleItems(options);
|
|
3406
3584
|
return {
|
|
3407
3585
|
/**
|
|
@@ -3465,6 +3643,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3465
3643
|
* @param options - Options to force close handles operation.
|
|
3466
3644
|
*/
|
|
3467
3645
|
async forceCloseAllHandles(options = {}) {
|
|
3646
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "forceCloseAllHandles");
|
|
3468
3647
|
return import_tracing.tracingClient.withSpan(
|
|
3469
3648
|
"ShareFileClient-forceCloseAllHandles",
|
|
3470
3649
|
options,
|
|
@@ -3501,6 +3680,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3501
3680
|
* @param FileForceCloseHandlesOptions - Options to force close handles operation.
|
|
3502
3681
|
*/
|
|
3503
3682
|
async forceCloseHandle(handleId, options = {}) {
|
|
3683
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "forceCloseHandle");
|
|
3504
3684
|
return import_tracing.tracingClient.withSpan(
|
|
3505
3685
|
"ShareFileClient-forceCloseHandle",
|
|
3506
3686
|
options,
|
|
@@ -3530,6 +3710,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3530
3710
|
* @param options - Options to create hard link operation.
|
|
3531
3711
|
*/
|
|
3532
3712
|
async createHardLink(targetFile, options = {}) {
|
|
3713
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "createHardLink");
|
|
3533
3714
|
return import_tracing.tracingClient.withSpan(
|
|
3534
3715
|
"ShareFileClient-createHardLink",
|
|
3535
3716
|
options,
|
|
@@ -3565,6 +3746,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3565
3746
|
* @param options - Options to create hard link operation.
|
|
3566
3747
|
*/
|
|
3567
3748
|
async createSymbolicLink(linkText, options = {}) {
|
|
3749
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "createSymbolicLink");
|
|
3568
3750
|
return import_tracing.tracingClient.withSpan(
|
|
3569
3751
|
"ShareFileClient-createSymbolicLink",
|
|
3570
3752
|
options,
|
|
@@ -3600,6 +3782,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3600
3782
|
* @param options - Options to get symbolic link operation.
|
|
3601
3783
|
*/
|
|
3602
3784
|
async getSymbolicLink(options = {}) {
|
|
3785
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "getSymbolicLink");
|
|
3603
3786
|
return import_tracing.tracingClient.withSpan(
|
|
3604
3787
|
"ShareFileClient-getSymbolicLink",
|
|
3605
3788
|
options,
|
|
@@ -3622,6 +3805,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3622
3805
|
* @returns A new ShareLeaseClient object for managing leases on the file.
|
|
3623
3806
|
*/
|
|
3624
3807
|
getShareLeaseClient(proposeLeaseId) {
|
|
3808
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "getShareLeaseClient");
|
|
3625
3809
|
return new ShareLeaseClient(this, proposeLeaseId);
|
|
3626
3810
|
}
|
|
3627
3811
|
/**
|
|
@@ -3636,6 +3820,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3636
3820
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
3637
3821
|
*/
|
|
3638
3822
|
generateSasUrl(options) {
|
|
3823
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "generateSasUrl");
|
|
3639
3824
|
if (!(this.credential instanceof import_storage_common2.StorageSharedKeyCredential)) {
|
|
3640
3825
|
throw RangeError(
|
|
3641
3826
|
"Can only generate the SAS when the client is initialized with a shared key credential"
|
|
@@ -3664,6 +3849,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3664
3849
|
*/
|
|
3665
3850
|
/* eslint-disable-next-line @azure/azure-sdk/ts-naming-options*/
|
|
3666
3851
|
generateSasStringToSign(options) {
|
|
3852
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "generateSasStringToSign");
|
|
3667
3853
|
if (!(this.credential instanceof import_storage_common2.StorageSharedKeyCredential)) {
|
|
3668
3854
|
throw RangeError(
|
|
3669
3855
|
"Can only generate the SAS when the client is initialized with a shared key credential"
|
|
@@ -3690,6 +3876,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3690
3876
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
3691
3877
|
*/
|
|
3692
3878
|
generateUserDelegationSasUrl(options, userDelegationKey) {
|
|
3879
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "generateUserDelegationSasUrl");
|
|
3693
3880
|
const sas = (0, import_FileSASSignatureValues.generateFileSASQueryParameters)(
|
|
3694
3881
|
{
|
|
3695
3882
|
shareName: this.shareName,
|
|
@@ -3713,6 +3900,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3713
3900
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
3714
3901
|
*/
|
|
3715
3902
|
generateUserDelegationStringToSign(options, userDelegationKey) {
|
|
3903
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "generateUserDelegationStringToSign");
|
|
3716
3904
|
return (0, import_FileSASSignatureValues.generateFileSASQueryParametersInternal)(
|
|
3717
3905
|
{
|
|
3718
3906
|
shareName: this.shareName,
|
|
@@ -3758,6 +3946,7 @@ class ShareFileClient extends import_StorageClient.StorageClient {
|
|
|
3758
3946
|
* ```
|
|
3759
3947
|
*/
|
|
3760
3948
|
async rename(destinationPath, options = {}) {
|
|
3949
|
+
(0, import_utils_common.assertNotFileIdAddressed)(this._fileId, "rename");
|
|
3761
3950
|
const split = destinationPath.split("?");
|
|
3762
3951
|
let destinationUrl;
|
|
3763
3952
|
if (split.length === 2) {
|
|
@@ -3819,7 +4008,8 @@ class ShareLeaseClient {
|
|
|
3819
4008
|
}
|
|
3820
4009
|
/**
|
|
3821
4010
|
* Creates an instance of ShareLeaseClient.
|
|
3822
|
-
* @param client - The client to make the lease operation requests.
|
|
4011
|
+
* @param client - The client to make the lease operation requests. A {@link ShareFileClient} that
|
|
4012
|
+
* addresses its file by file ID isn't supported and makes the constructor throw an error.
|
|
3823
4013
|
* @param leaseId - Initial proposed lease id.
|
|
3824
4014
|
*/
|
|
3825
4015
|
constructor(client, leaseId) {
|
|
@@ -3828,6 +4018,7 @@ class ShareLeaseClient {
|
|
|
3828
4018
|
this.fileOrShare = clientContext.share;
|
|
3829
4019
|
this.shareClientConfig = client["shareClientConfig"];
|
|
3830
4020
|
} else {
|
|
4021
|
+
(0, import_utils_common.assertNotFileIdAddressed)(client.fileId, "ShareLeaseClient");
|
|
3831
4022
|
this.fileOrShare = clientContext.file;
|
|
3832
4023
|
this.shareClientConfig = client["shareClientConfig"];
|
|
3833
4024
|
}
|