@azure/storage-file-share 12.25.1-alpha.20241014.1 → 12.26.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +228 -7
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob/src/Clients.js +33 -0
- package/dist-esm/storage-blob/src/Clients.js.map +1 -1
- package/dist-esm/storage-blob/src/ContainerClient.js +30 -0
- package/dist-esm/storage-blob/src/ContainerClient.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/index.js +2 -0
- package/dist-esm/storage-blob/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/parameters.js +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/blob.js +18 -3
- package/dist-esm/storage-blob/src/generated/src/operations/blob.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClient.js +2 -2
- package/dist-esm/storage-blob/src/generated/src/storageClient.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js +2 -2
- package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
- package/dist-esm/storage-file-share/src/Clients.js.map +1 -1
- package/dist-esm/storage-file-share/src/generated/src/models/index.js +4 -0
- package/dist-esm/storage-file-share/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/storage-file-share/src/generated/src/models/mappers.js +196 -0
- package/dist-esm/storage-file-share/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/storage-file-share/src/generated/src/models/parameters.js +22 -2
- package/dist-esm/storage-file-share/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/storage-file-share/src/generated/src/operations/file.js +1 -0
- package/dist-esm/storage-file-share/src/generated/src/operations/file.js.map +1 -1
- package/dist-esm/storage-file-share/src/generated/src/operations/share.js +5 -1
- package/dist-esm/storage-file-share/src/generated/src/operations/share.js.map +1 -1
- package/dist-esm/storage-file-share/src/generated/src/storageClient.js +2 -2
- package/dist-esm/storage-file-share/src/generated/src/storageClient.js.map +1 -1
- package/dist-esm/storage-file-share/src/utils/constants.js +2 -2
- package/dist-esm/storage-file-share/src/utils/constants.js.map +1 -1
- package/package.json +3 -3
- package/types/latest/storage-file-share.d.ts +84 -2
package/dist/index.js
CHANGED
@@ -336,8 +336,8 @@ function ipRangeToString(ipRange) {
|
|
336
336
|
|
337
337
|
// Copyright (c) Microsoft Corporation.
|
338
338
|
// Licensed under the MIT License.
|
339
|
-
const SDK_VERSION = "12.
|
340
|
-
const SERVICE_VERSION = "
|
339
|
+
const SDK_VERSION = "12.26.0-beta.1";
|
340
|
+
const SERVICE_VERSION = "2025-01-05";
|
341
341
|
const FILE_MAX_SIZE_BYTES = 4 * 1024 * 1024 * 1024 * 1024; // 4TB
|
342
342
|
const FILE_RANGE_MAX_SIZE_BYTES = 4 * 1024 * 1024; // 4MB
|
343
343
|
const DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS = 5;
|
@@ -3357,6 +3357,34 @@ const SharePropertiesInternal = {
|
|
3357
3357
|
type: {
|
3358
3358
|
name: "Number"
|
3359
3359
|
}
|
3360
|
+
},
|
3361
|
+
includedBurstIops: {
|
3362
|
+
serializedName: "IncludedBurstIops",
|
3363
|
+
xmlName: "IncludedBurstIops",
|
3364
|
+
type: {
|
3365
|
+
name: "Number"
|
3366
|
+
}
|
3367
|
+
},
|
3368
|
+
maxBurstCreditsForIops: {
|
3369
|
+
serializedName: "MaxBurstCreditsForIops",
|
3370
|
+
xmlName: "MaxBurstCreditsForIops",
|
3371
|
+
type: {
|
3372
|
+
name: "Number"
|
3373
|
+
}
|
3374
|
+
},
|
3375
|
+
nextAllowedProvisionedIopsDowngradeTime: {
|
3376
|
+
serializedName: "NextAllowedProvisionedIopsDowngradeTime",
|
3377
|
+
xmlName: "NextAllowedProvisionedIopsDowngradeTime",
|
3378
|
+
type: {
|
3379
|
+
name: "DateTimeRfc1123"
|
3380
|
+
}
|
3381
|
+
},
|
3382
|
+
nextAllowedProvisionedBandwidthDowngradeTime: {
|
3383
|
+
serializedName: "NextAllowedProvisionedBandwidthDowngradeTime",
|
3384
|
+
xmlName: "NextAllowedProvisionedBandwidthDowngradeTime",
|
3385
|
+
type: {
|
3386
|
+
name: "DateTimeRfc1123"
|
3387
|
+
}
|
3360
3388
|
}
|
3361
3389
|
}
|
3362
3390
|
}
|
@@ -4170,6 +4198,41 @@ const ShareCreateHeaders = {
|
|
4170
4198
|
name: "DateTimeRfc1123"
|
4171
4199
|
}
|
4172
4200
|
},
|
4201
|
+
quota: {
|
4202
|
+
serializedName: "x-ms-share-quota",
|
4203
|
+
xmlName: "x-ms-share-quota",
|
4204
|
+
type: {
|
4205
|
+
name: "Number"
|
4206
|
+
}
|
4207
|
+
},
|
4208
|
+
shareProvisionedIops: {
|
4209
|
+
serializedName: "x-ms-share-provisioned-iops",
|
4210
|
+
xmlName: "x-ms-share-provisioned-iops",
|
4211
|
+
type: {
|
4212
|
+
name: "Number"
|
4213
|
+
}
|
4214
|
+
},
|
4215
|
+
shareProvisionedBandwidthMibps: {
|
4216
|
+
serializedName: "x-ms-share-provisioned-bandwidth-mibps",
|
4217
|
+
xmlName: "x-ms-share-provisioned-bandwidth-mibps",
|
4218
|
+
type: {
|
4219
|
+
name: "Number"
|
4220
|
+
}
|
4221
|
+
},
|
4222
|
+
shareIncludedBurstIops: {
|
4223
|
+
serializedName: "x-ms-share-included-burst-iops",
|
4224
|
+
xmlName: "x-ms-share-included-burst-iops",
|
4225
|
+
type: {
|
4226
|
+
name: "Number"
|
4227
|
+
}
|
4228
|
+
},
|
4229
|
+
maxBurstCreditsForIops: {
|
4230
|
+
serializedName: "x-ms-share-max-burst-credits-for-iops",
|
4231
|
+
xmlName: "x-ms-share-max-burst-credits-for-iops",
|
4232
|
+
type: {
|
4233
|
+
name: "Number"
|
4234
|
+
}
|
4235
|
+
},
|
4173
4236
|
errorCode: {
|
4174
4237
|
serializedName: "x-ms-error-code",
|
4175
4238
|
xmlName: "x-ms-error-code",
|
@@ -4382,6 +4445,34 @@ const ShareGetPropertiesHeaders = {
|
|
4382
4445
|
name: "Number"
|
4383
4446
|
}
|
4384
4447
|
},
|
4448
|
+
includedBurstIops: {
|
4449
|
+
serializedName: "x-ms-share-included-burst-iops",
|
4450
|
+
xmlName: "x-ms-share-included-burst-iops",
|
4451
|
+
type: {
|
4452
|
+
name: "Number"
|
4453
|
+
}
|
4454
|
+
},
|
4455
|
+
maxBurstCreditsForIops: {
|
4456
|
+
serializedName: "x-ms-share-max-burst-credits-for-iops",
|
4457
|
+
xmlName: "x-ms-share-max-burst-credits-for-iops",
|
4458
|
+
type: {
|
4459
|
+
name: "Number"
|
4460
|
+
}
|
4461
|
+
},
|
4462
|
+
nextAllowedProvisionedIopsDowngradeTime: {
|
4463
|
+
serializedName: "x-ms-share-next-allowed-provisioned-iops-downgrade-time",
|
4464
|
+
xmlName: "x-ms-share-next-allowed-provisioned-iops-downgrade-time",
|
4465
|
+
type: {
|
4466
|
+
name: "DateTimeRfc1123"
|
4467
|
+
}
|
4468
|
+
},
|
4469
|
+
nextAllowedProvisionedBandwidthDowngradeTime: {
|
4470
|
+
serializedName: "x-ms-share-next-allowed-provisioned-bandwidth-downgrade-time",
|
4471
|
+
xmlName: "x-ms-share-next-allowed-provisioned-bandwidth-downgrade-time",
|
4472
|
+
type: {
|
4473
|
+
name: "DateTimeRfc1123"
|
4474
|
+
}
|
4475
|
+
},
|
4385
4476
|
errorCode: {
|
4386
4477
|
serializedName: "x-ms-error-code",
|
4387
4478
|
xmlName: "x-ms-error-code",
|
@@ -4435,6 +4526,20 @@ const ShareDeleteHeaders = {
|
|
4435
4526
|
name: "DateTimeRfc1123"
|
4436
4527
|
}
|
4437
4528
|
},
|
4529
|
+
usageBytes: {
|
4530
|
+
serializedName: "x-ms-file-share-usage-bytes",
|
4531
|
+
xmlName: "x-ms-file-share-usage-bytes",
|
4532
|
+
type: {
|
4533
|
+
name: "Number"
|
4534
|
+
}
|
4535
|
+
},
|
4536
|
+
snapshotUsageBytes: {
|
4537
|
+
serializedName: "x-ms-file-share-snapshot-usage-bytes",
|
4538
|
+
xmlName: "x-ms-file-share-snapshot-usage-bytes",
|
4539
|
+
type: {
|
4540
|
+
name: "Number"
|
4541
|
+
}
|
4542
|
+
},
|
4438
4543
|
errorCode: {
|
4439
4544
|
serializedName: "x-ms-error-code",
|
4440
4545
|
xmlName: "x-ms-error-code",
|
@@ -5059,6 +5164,62 @@ const ShareSetPropertiesHeaders = {
|
|
5059
5164
|
name: "DateTimeRfc1123"
|
5060
5165
|
}
|
5061
5166
|
},
|
5167
|
+
quota: {
|
5168
|
+
serializedName: "x-ms-share-quota",
|
5169
|
+
xmlName: "x-ms-share-quota",
|
5170
|
+
type: {
|
5171
|
+
name: "Number"
|
5172
|
+
}
|
5173
|
+
},
|
5174
|
+
provisionedIops: {
|
5175
|
+
serializedName: "x-ms-share-provisioned-iops",
|
5176
|
+
xmlName: "x-ms-share-provisioned-iops",
|
5177
|
+
type: {
|
5178
|
+
name: "Number"
|
5179
|
+
}
|
5180
|
+
},
|
5181
|
+
provisionedBandwidthMibps: {
|
5182
|
+
serializedName: "x-ms-share-provisioned-bandwidth-mibps",
|
5183
|
+
xmlName: "x-ms-share-provisioned-bandwidth-mibps",
|
5184
|
+
type: {
|
5185
|
+
name: "Number"
|
5186
|
+
}
|
5187
|
+
},
|
5188
|
+
includedBurstIops: {
|
5189
|
+
serializedName: "x-ms-share-included-burst-iops",
|
5190
|
+
xmlName: "x-ms-share-included-burst-iops",
|
5191
|
+
type: {
|
5192
|
+
name: "Number"
|
5193
|
+
}
|
5194
|
+
},
|
5195
|
+
maxBurstCreditsForIops: {
|
5196
|
+
serializedName: "x-ms-share-max-burst-credits-for-iops",
|
5197
|
+
xmlName: "x-ms-share-max-burst-credits-for-iops",
|
5198
|
+
type: {
|
5199
|
+
name: "Number"
|
5200
|
+
}
|
5201
|
+
},
|
5202
|
+
nextAllowedQuotaDowngradeTime: {
|
5203
|
+
serializedName: "x-ms-share-next-allowed-quota-downgrade-time",
|
5204
|
+
xmlName: "x-ms-share-next-allowed-quota-downgrade-time",
|
5205
|
+
type: {
|
5206
|
+
name: "DateTimeRfc1123"
|
5207
|
+
}
|
5208
|
+
},
|
5209
|
+
nextAllowedProvisionedIopsDowngradeTime: {
|
5210
|
+
serializedName: "x-ms-share-next-allowed-provisioned-iops-downgrade-time",
|
5211
|
+
xmlName: "x-ms-share-next-allowed-provisioned-iops-downgrade-time",
|
5212
|
+
type: {
|
5213
|
+
name: "DateTimeRfc1123"
|
5214
|
+
}
|
5215
|
+
},
|
5216
|
+
nextAllowedProvisionedBandwidthDowngradeTime: {
|
5217
|
+
serializedName: "x-ms-share-next-allowed-provisioned-bandwidth-downgrade-time",
|
5218
|
+
xmlName: "x-ms-share-next-allowed-provisioned-bandwidth-downgrade-time",
|
5219
|
+
type: {
|
5220
|
+
name: "DateTimeRfc1123"
|
5221
|
+
}
|
5222
|
+
},
|
5062
5223
|
errorCode: {
|
5063
5224
|
serializedName: "x-ms-error-code",
|
5064
5225
|
xmlName: "x-ms-error-code",
|
@@ -5400,6 +5561,41 @@ const ShareRestoreHeaders = {
|
|
5400
5561
|
type: {
|
5401
5562
|
name: "DateTimeRfc1123"
|
5402
5563
|
}
|
5564
|
+
},
|
5565
|
+
quota: {
|
5566
|
+
serializedName: "x-ms-share-quota",
|
5567
|
+
xmlName: "x-ms-share-quota",
|
5568
|
+
type: {
|
5569
|
+
name: "Number"
|
5570
|
+
}
|
5571
|
+
},
|
5572
|
+
provisionedIops: {
|
5573
|
+
serializedName: "x-ms-share-provisioned-iops",
|
5574
|
+
xmlName: "x-ms-share-provisioned-iops",
|
5575
|
+
type: {
|
5576
|
+
name: "Number"
|
5577
|
+
}
|
5578
|
+
},
|
5579
|
+
provisionedBandwidthMibps: {
|
5580
|
+
serializedName: "x-ms-share-provisioned-bandwidth-mibps",
|
5581
|
+
xmlName: "x-ms-share-provisioned-bandwidth-mibps",
|
5582
|
+
type: {
|
5583
|
+
name: "Number"
|
5584
|
+
}
|
5585
|
+
},
|
5586
|
+
includedBurstIops: {
|
5587
|
+
serializedName: "x-ms-share-included-burst-iops",
|
5588
|
+
xmlName: "x-ms-share-included-burst-iops",
|
5589
|
+
type: {
|
5590
|
+
name: "Number"
|
5591
|
+
}
|
5592
|
+
},
|
5593
|
+
maxBurstCreditsForIops: {
|
5594
|
+
serializedName: "x-ms-share-max-burst-credits-for-iops",
|
5595
|
+
xmlName: "x-ms-share-max-burst-credits-for-iops",
|
5596
|
+
type: {
|
5597
|
+
name: "Number"
|
5598
|
+
}
|
5403
5599
|
}
|
5404
5600
|
}
|
5405
5601
|
}
|
@@ -8262,7 +8458,7 @@ const timeoutInSeconds = {
|
|
8262
8458
|
const version = {
|
8263
8459
|
parameterPath: "version",
|
8264
8460
|
mapper: {
|
8265
|
-
defaultValue: "
|
8461
|
+
defaultValue: "2025-01-05",
|
8266
8462
|
isConstant: true,
|
8267
8463
|
serializedName: "x-ms-version",
|
8268
8464
|
type: {
|
@@ -8396,7 +8592,7 @@ const accessTier = {
|
|
8396
8592
|
xmlName: "x-ms-access-tier",
|
8397
8593
|
type: {
|
8398
8594
|
name: "Enum",
|
8399
|
-
allowedValues: ["TransactionOptimized", "Hot", "Cool"]
|
8595
|
+
allowedValues: ["TransactionOptimized", "Hot", "Cool", "Premium"]
|
8400
8596
|
}
|
8401
8597
|
}
|
8402
8598
|
};
|
@@ -8461,6 +8657,26 @@ const paidBurstingMaxIops = {
|
|
8461
8657
|
}
|
8462
8658
|
}
|
8463
8659
|
};
|
8660
|
+
const shareProvisionedIops = {
|
8661
|
+
parameterPath: ["options", "shareProvisionedIops"],
|
8662
|
+
mapper: {
|
8663
|
+
serializedName: "x-ms-share-provisioned-iops",
|
8664
|
+
xmlName: "x-ms-share-provisioned-iops",
|
8665
|
+
type: {
|
8666
|
+
name: "Number"
|
8667
|
+
}
|
8668
|
+
}
|
8669
|
+
};
|
8670
|
+
const shareProvisionedBandwidthMibps = {
|
8671
|
+
parameterPath: ["options", "shareProvisionedBandwidthMibps"],
|
8672
|
+
mapper: {
|
8673
|
+
serializedName: "x-ms-share-provisioned-bandwidth-mibps",
|
8674
|
+
xmlName: "x-ms-share-provisioned-bandwidth-mibps",
|
8675
|
+
type: {
|
8676
|
+
name: "Number"
|
8677
|
+
}
|
8678
|
+
}
|
8679
|
+
};
|
8464
8680
|
const shareSnapshot = {
|
8465
8681
|
parameterPath: ["options", "shareSnapshot"],
|
8466
8682
|
mapper: {
|
@@ -9727,7 +9943,9 @@ const createOperationSpec$2 = {
|
|
9727
9943
|
enableSnapshotVirtualDirectoryAccess,
|
9728
9944
|
paidBurstingEnabled,
|
9729
9945
|
paidBurstingMaxBandwidthMibps,
|
9730
|
-
paidBurstingMaxIops
|
9946
|
+
paidBurstingMaxIops,
|
9947
|
+
shareProvisionedIops,
|
9948
|
+
shareProvisionedBandwidthMibps
|
9731
9949
|
],
|
9732
9950
|
isXML: true,
|
9733
9951
|
serializer: xmlSerializer$2
|
@@ -10052,6 +10270,8 @@ const setPropertiesOperationSpec$1 = {
|
|
10052
10270
|
paidBurstingEnabled,
|
10053
10271
|
paidBurstingMaxBandwidthMibps,
|
10054
10272
|
paidBurstingMaxIops,
|
10273
|
+
shareProvisionedIops,
|
10274
|
+
shareProvisionedBandwidthMibps,
|
10055
10275
|
leaseId
|
10056
10276
|
],
|
10057
10277
|
isXML: true,
|
@@ -11190,6 +11410,7 @@ const startCopyOperationSpec = {
|
|
11190
11410
|
accept1,
|
11191
11411
|
metadata,
|
11192
11412
|
leaseId,
|
11413
|
+
filePermissionFormat,
|
11193
11414
|
allowTrailingDot,
|
11194
11415
|
filePermission,
|
11195
11416
|
filePermissionKey1,
|
@@ -11359,7 +11580,7 @@ let StorageClient$1 = class StorageClient extends coreHttpCompat__namespace.Exte
|
|
11359
11580
|
const defaults = {
|
11360
11581
|
requestContentType: "application/json; charset=utf-8"
|
11361
11582
|
};
|
11362
|
-
const packageDetails = `azsdk-js-azure-storage-file-share/12.
|
11583
|
+
const packageDetails = `azsdk-js-azure-storage-file-share/12.26.0-beta.1`;
|
11363
11584
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
11364
11585
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
11365
11586
|
: `${packageDetails}`;
|
@@ -11370,7 +11591,7 @@ let StorageClient$1 = class StorageClient extends coreHttpCompat__namespace.Exte
|
|
11370
11591
|
// Parameter assignments
|
11371
11592
|
this.url = url;
|
11372
11593
|
// Assigning values to Constant parameters
|
11373
|
-
this.version = options.version || "
|
11594
|
+
this.version = options.version || "2025-01-05";
|
11374
11595
|
this.fileRangeWriteFromUrl = options.fileRangeWriteFromUrl || "update";
|
11375
11596
|
this.service = new ServiceImpl(this);
|
11376
11597
|
this.share = new ShareImpl(this);
|