@azure/storage-file-share 12.9.0-alpha.20220111.2 → 12.9.0-alpha.20220211.2
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/CHANGELOG.md +12 -5
- package/README.md +6 -5
- package/dist/index.js +786 -227
- package/dist/index.js.map +1 -1
- package/dist-esm/src/Clients.js +125 -1
- package/dist-esm/src/Clients.js.map +1 -1
- package/dist-esm/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/src/generated/src/models/mappers.js +232 -0
- package/dist-esm/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/src/models/parameters.js +101 -35
- package/dist-esm/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/src/operations/directory.js +48 -0
- package/dist-esm/src/generated/src/operations/directory.js.map +1 -1
- package/dist-esm/src/generated/src/operations/file.js +51 -7
- package/dist-esm/src/generated/src/operations/file.js.map +1 -1
- package/dist-esm/src/generated/src/storageClientContext.js +2 -2
- package/dist-esm/src/generated/src/storageClientContext.js.map +1 -1
- package/dist-esm/src/generatedModels.js.map +1 -1
- package/dist-esm/src/utils/constants.js +2 -2
- package/dist-esm/src/utils/constants.js.map +1 -1
- package/dist-esm/src/utils/utils.common.js +22 -0
- package/dist-esm/src/utils/utils.common.js.map +1 -1
- package/package.json +33 -34
- package/{typings → types}/3.1/storage-file-share.d.ts +225 -4
- package/{typings → types}/latest/storage-file-share.d.ts +231 -4
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
-
## 12.9.0-beta.
|
3
|
+
## 12.9.0-beta.4 (Unreleased)
|
4
4
|
|
5
5
|
### Features Added
|
6
6
|
|
@@ -10,6 +10,13 @@
|
|
10
10
|
|
11
11
|
### Other Changes
|
12
12
|
|
13
|
+
## 12.9.0-beta.3 (2022-02-11)
|
14
|
+
|
15
|
+
### Features Added
|
16
|
+
|
17
|
+
- Added support for service version 2021-04-10.
|
18
|
+
- Added support for renaming a file or a directory.
|
19
|
+
|
13
20
|
## 12.9.0-beta.2 (2021-12-03)
|
14
21
|
|
15
22
|
### Features Added
|
@@ -206,14 +213,14 @@
|
|
206
213
|
Before this change the option is specified as
|
207
214
|
```js
|
208
215
|
fileServiceClient.listShares({
|
209
|
-
include: ["metadata", "snapshots"]
|
216
|
+
include: ["metadata", "snapshots"],
|
210
217
|
});
|
211
218
|
```
|
212
219
|
After this change:
|
213
220
|
```js
|
214
221
|
fileServiceClient.listShares({
|
215
222
|
includeMetadata: true,
|
216
|
-
includeSnapshots: true
|
223
|
+
includeSnapshots: true,
|
217
224
|
});
|
218
225
|
```
|
219
226
|
|
@@ -244,7 +251,7 @@
|
|
244
251
|
- Added `DirectoryClient.listHandlesSegment()` and `FileClient.listHandlesSegment()` to returns a list of open handles on a directory or a file.
|
245
252
|
- Added `DirectoryClient.forceCloseHandlesSegment()`, `FileClient.forceCloseHandlesSegment()`, `DirectoryClient.forceCloseHandle()` and `FileClient.forceCloseHandle()` to close handles.
|
246
253
|
- Pass through `options.abortSignal` to the optional `abortSignal` attribute in option bags instead of using `AbortSignal.none` as the default value when `options.abortSignal` is not specified.
|
247
|
-
- Basic HTTP proxy authentication support is added. Proxy settings can be passed in the options while creating a new client. Example - [
|
254
|
+
- Basic HTTP proxy authentication support is added. Proxy settings can be passed in the options while creating a new client. Example - [proxyAuth.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-file-share/samples-dev/proxyAuth.ts)
|
248
255
|
- Connection strings for explicit storage endpoints are supported. - [Configure Azure Storage connection strings](https://docs.microsoft.com/azure/storage/common/storage-configure-connection-string#create-a-connection-string-for-an-explicit-storage-endpoint)
|
249
256
|
|
250
257
|
## 12.0.0-preview.2 (2019-08-01)
|
@@ -285,7 +292,7 @@
|
|
285
292
|
- Creation/Deletion of child resources are duplicated to parent client type.
|
286
293
|
- HTTP proxy support is added (Node.js only).
|
287
294
|
|
288
|
-
- Please refer to the `proxyAuth.ts` sample in the `samples/typescript` folder.
|
295
|
+
- Please refer to the `proxyAuth.ts` sample in the `samples/v12/typescript` folder.
|
289
296
|
|
290
297
|
- Request and response headers are now logged at INFO level, with sensitive data redacted.
|
291
298
|
- `downloadToFile()` is added to `FileClient`.
|
package/README.md
CHANGED
@@ -16,6 +16,7 @@ Use the client libraries in this package to:
|
|
16
16
|
> for Azure Storage Files DataLake and provide a consistent set of APIs for working with files on Azure.
|
17
17
|
|
18
18
|
Key links:
|
19
|
+
|
19
20
|
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-file-share)
|
20
21
|
- [Package (npm)](https://www.npmjs.com/package/@azure/storage-file-share/)
|
21
22
|
- [API Reference Documentation](https://docs.microsoft.com/javascript/api/@azure/storage-file-share)
|
@@ -34,7 +35,7 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
|
|
34
35
|
|
35
36
|
### Prerequisites
|
36
37
|
|
37
|
-
- An [Azure subscription](https://azure.microsoft.com/free/)
|
38
|
+
- An [Azure subscription](https://azure.microsoft.com/free/)
|
38
39
|
- A [Storage Account](https://docs.microsoft.com/azure/storage/common/storage-account-create)
|
39
40
|
|
40
41
|
### Install the package
|
@@ -388,7 +389,7 @@ async function main() {
|
|
388
389
|
main();
|
389
390
|
```
|
390
391
|
|
391
|
-
For a complete sample on iterating please see [samples/typescript/src/
|
392
|
+
For a complete sample on iterating please see [samples/v12/typescript/src/listFilesAndDirectories.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-file-share/samples/v12/typescript/src/listFilesAndDirectories.ts).
|
392
393
|
|
393
394
|
### Download a file and convert it to a string (Node.js)
|
394
395
|
|
@@ -481,7 +482,7 @@ async function blobToString(blob) {
|
|
481
482
|
main();
|
482
483
|
```
|
483
484
|
|
484
|
-
A complete example of
|
485
|
+
A complete example of simple `ShareServiceClient` scenarios is at [samples/v12/typescript/src/shareSerivceClient.ts](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/storage/storage-file-share/samples/v12/typescript/src/shareServiceClient.ts).
|
485
486
|
|
486
487
|
## Troubleshooting
|
487
488
|
|
@@ -497,8 +498,8 @@ setLogLevel("info");
|
|
497
498
|
|
498
499
|
More code samples
|
499
500
|
|
500
|
-
- [File Share Storage Samples (JavaScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-file-share/samples/javascript)
|
501
|
-
- [File Share Storage Samples (TypeScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-file-share/samples/typescript)
|
501
|
+
- [File Share Storage Samples (JavaScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-file-share/samples/v12/javascript)
|
502
|
+
- [File Share Storage Samples (TypeScript)](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-file-share/samples/v12/typescript)
|
502
503
|
- [File Share Storage Test Cases](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-file-share/test)
|
503
504
|
|
504
505
|
## Contributing
|