@azure/storage-file-share 12.8.1-alpha.20211025.1 → 12.9.0-alpha.20211202.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/CHANGELOG.md +7 -1
- package/dist/index.js +53 -19
- package/dist/index.js.map +1 -1
- package/dist-esm/src/AccountSASSignatureValues.js +34 -14
- package/dist-esm/src/AccountSASSignatureValues.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 +14 -0
- package/dist-esm/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/src/models/parameters.js +1 -1
- package/dist-esm/src/generated/src/models/parameters.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/package.json +3 -3
- package/typings/3.1/storage-file-share.d.ts +4 -8
- package/typings/latest/storage-file-share.d.ts +4 -9
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
-
## 12.
|
3
|
+
## 12.9.0-beta.2 (Unreleased)
|
4
4
|
|
5
5
|
### Features Added
|
6
6
|
|
@@ -10,6 +10,12 @@
|
|
10
10
|
|
11
11
|
### Other Changes
|
12
12
|
|
13
|
+
## 12.9.0-beta.1 (2021-11-09)
|
14
|
+
|
15
|
+
### Features Added
|
16
|
+
|
17
|
+
- Added support for service version 2020-12-06.
|
18
|
+
|
13
19
|
## 12.8.0 (2021-09-10)
|
14
20
|
|
15
21
|
### Features Added
|
package/dist/index.js
CHANGED
@@ -311,8 +311,8 @@ function ipRangeToString(ipRange) {
|
|
311
311
|
|
312
312
|
// Copyright (c) Microsoft Corporation.
|
313
313
|
// Licensed under the MIT license.
|
314
|
-
const SDK_VERSION = "12.
|
315
|
-
const SERVICE_VERSION = "2020-
|
314
|
+
const SDK_VERSION = "12.9.0-beta.2";
|
315
|
+
const SERVICE_VERSION = "2020-12-06";
|
316
316
|
const FILE_MAX_SIZE_BYTES = 4 * 1024 * 1024 * 1024 * 1024; // 4TB
|
317
317
|
const FILE_RANGE_MAX_SIZE_BYTES = 4 * 1024 * 1024; // 4MB
|
318
318
|
const DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS = 5;
|
@@ -991,20 +991,40 @@ function generateAccountSASQueryParameters(accountSASSignatureValues, sharedKeyC
|
|
991
991
|
const parsedPermissions = AccountSASPermissions.parse(accountSASSignatureValues.permissions.toString()).toString();
|
992
992
|
const parsedServices = AccountSASServices.parse(accountSASSignatureValues.services).toString();
|
993
993
|
const parsedResourceTypes = AccountSASResourceTypes.parse(accountSASSignatureValues.resourceTypes).toString();
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
994
|
+
let stringToSign;
|
995
|
+
if (version >= "2020-12-06") {
|
996
|
+
stringToSign = [
|
997
|
+
sharedKeyCredential.accountName,
|
998
|
+
parsedPermissions,
|
999
|
+
parsedServices,
|
1000
|
+
parsedResourceTypes,
|
1001
|
+
accountSASSignatureValues.startsOn
|
1002
|
+
? truncatedISO8061Date(accountSASSignatureValues.startsOn, false)
|
1003
|
+
: "",
|
1004
|
+
truncatedISO8061Date(accountSASSignatureValues.expiresOn, false),
|
1005
|
+
accountSASSignatureValues.ipRange ? ipRangeToString(accountSASSignatureValues.ipRange) : "",
|
1006
|
+
accountSASSignatureValues.protocol ? accountSASSignatureValues.protocol : "",
|
1007
|
+
version,
|
1008
|
+
"",
|
1009
|
+
"" // Account SAS requires an additional newline character
|
1010
|
+
].join("\n");
|
1011
|
+
}
|
1012
|
+
else {
|
1013
|
+
stringToSign = [
|
1014
|
+
sharedKeyCredential.accountName,
|
1015
|
+
parsedPermissions,
|
1016
|
+
parsedServices,
|
1017
|
+
parsedResourceTypes,
|
1018
|
+
accountSASSignatureValues.startsOn
|
1019
|
+
? truncatedISO8061Date(accountSASSignatureValues.startsOn, false)
|
1020
|
+
: "",
|
1021
|
+
truncatedISO8061Date(accountSASSignatureValues.expiresOn, false),
|
1022
|
+
accountSASSignatureValues.ipRange ? ipRangeToString(accountSASSignatureValues.ipRange) : "",
|
1023
|
+
accountSASSignatureValues.protocol ? accountSASSignatureValues.protocol : "",
|
1024
|
+
version,
|
1025
|
+
"" // Account SAS requires an additional newline character
|
1026
|
+
].join("\n");
|
1027
|
+
}
|
1008
1028
|
const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);
|
1009
1029
|
return new SASQueryParameters(version, signature, parsedPermissions, parsedServices, parsedResourceTypes, accountSASSignatureValues.protocol, accountSASSignatureValues.startsOn, accountSASSignatureValues.expiresOn, accountSASSignatureValues.ipRange);
|
1010
1030
|
}
|
@@ -1674,6 +1694,13 @@ const SharePropertiesInternal = {
|
|
1674
1694
|
name: "Number"
|
1675
1695
|
}
|
1676
1696
|
},
|
1697
|
+
provisionedBandwidthMiBps: {
|
1698
|
+
serializedName: "ProvisionedBandwidthMiBps",
|
1699
|
+
xmlName: "ProvisionedBandwidthMiBps",
|
1700
|
+
type: {
|
1701
|
+
name: "Number"
|
1702
|
+
}
|
1703
|
+
},
|
1677
1704
|
nextAllowedQuotaDowngradeTime: {
|
1678
1705
|
serializedName: "NextAllowedQuotaDowngradeTime",
|
1679
1706
|
xmlName: "NextAllowedQuotaDowngradeTime",
|
@@ -2620,6 +2647,13 @@ const ShareGetPropertiesHeaders = {
|
|
2620
2647
|
name: "DateTimeRfc1123"
|
2621
2648
|
}
|
2622
2649
|
},
|
2650
|
+
provisionedBandwidthMibps: {
|
2651
|
+
serializedName: "x-ms-share-provisioned-bandwidth-mibps",
|
2652
|
+
xmlName: "x-ms-share-provisioned-bandwidth-mibps",
|
2653
|
+
type: {
|
2654
|
+
name: "Number"
|
2655
|
+
}
|
2656
|
+
},
|
2623
2657
|
leaseDuration: {
|
2624
2658
|
serializedName: "x-ms-lease-duration",
|
2625
2659
|
xmlName: "x-ms-lease-duration",
|
@@ -6315,7 +6349,7 @@ const timeoutInSeconds = {
|
|
6315
6349
|
const version = {
|
6316
6350
|
parameterPath: "version",
|
6317
6351
|
mapper: {
|
6318
|
-
defaultValue: "
|
6352
|
+
defaultValue: "2021-02-12",
|
6319
6353
|
isConstant: true,
|
6320
6354
|
serializedName: "x-ms-version",
|
6321
6355
|
type: {
|
@@ -9863,7 +9897,7 @@ function convertTracingToRequestOptionsBase(options) {
|
|
9863
9897
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9864
9898
|
*/
|
9865
9899
|
const packageName = "azure-storage-file-share";
|
9866
|
-
const packageVersion = "12.
|
9900
|
+
const packageVersion = "12.9.0-beta.2";
|
9867
9901
|
class StorageClientContext extends coreHttp.ServiceClient {
|
9868
9902
|
/**
|
9869
9903
|
* Initializes a new instance of the StorageClientContext class.
|
@@ -9889,7 +9923,7 @@ class StorageClientContext extends coreHttp.ServiceClient {
|
|
9889
9923
|
// Parameter assignments
|
9890
9924
|
this.url = url;
|
9891
9925
|
// Assigning values to Constant parameters
|
9892
|
-
this.version = options.version || "
|
9926
|
+
this.version = options.version || "2021-02-12";
|
9893
9927
|
this.fileRangeWriteFromUrl = options.fileRangeWriteFromUrl || "update";
|
9894
9928
|
}
|
9895
9929
|
}
|